/* =========================================================
   CITY GOVERNMENT OF SAN PEDRO
   Main Website Styles
   ========================================================= */

:root {
    --primary: #055b25;
    --primary-dark: #34784e;
    --secondary: #d2ae47;

    --green: #318d52;
    --sage: #538e6b;
    --light-green: #7baf94;
    --olive: #4f793f;
    --muted-green: #72b588;

    --dark: #193322;
    --light: #e4efe5;

    --white: #ffffff;
    --text: #26382d;
    --muted: #5f7165;
    --border: #c9dccd;
}


/* =========================================================
   GENERAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.top-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.top-header {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    order: initial !important;
    display: block !important;
}

header {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    order: initial !important;
}

.city-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-right: 18px;
}

.government-title {
    line-height: 1.15;
}

.republic {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 5px;
}

.city-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .3px;
}

.province {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-navbar {
    background: var(--primary);
    padding: 0;
}

.main-navbar .navbar-nav {
    gap: 4px;
}

.main-navbar .nav-link {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 16px 15px !important;
    transition: .2s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus {
    background: var(--primary-dark);
    color: var(--white);
}

.main-navbar .nav-link i {
    margin-right: 5px;
}

.navbar-toggler {
    margin: 10px 0;
    border-color: rgba(255,255,255,.5);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 32, 76, .88) 0%,
            rgba(7, 32, 76, .55) 45%,
            rgba(7, 32, 76, .10) 100%
        );
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--white);
    max-width: 650px;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 21px;
    margin-bottom: 25px;
}

.hero-content .btn {
    padding: 11px 24px;
    font-weight: 600;
    border-radius: 5px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.news-section,
.quick-links {
    padding: 80px 0;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading > span,
.section-label {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-heading h2 {
    color: var(--dark);
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-heading p {
    max-width: 700px;
    color: var(--muted);
    margin: 0 auto;
    line-height: 1.7;
}


/* =========================================================
   NEWS CARDS
   ========================================================= */

.news-card {
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .10);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.03);
}

.news-content {
    padding: 22px;
}

.news-content small {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.news-content h3 {
    color: var(--dark);
    font-size: 20px;
    line-height: 1.35;
    margin: 9px 0 10px;
}

.news-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.news-content a {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.news-content a i {
    margin-left: 5px;
}



/* =========================================================
   ANNOUNCEMENTS
   ========================================================= */

.announcement-section {
    padding: 75px 0;
    background: var(--light);
}

.announcement-section h2 {
    color: var(--dark);
    font-size: 34px;
    font-weight: 700;
}

.announcement-section p {
    color: var(--muted);
    line-height: 1.7;
}

.announcement-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    transition: background .2s ease;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background: var(--light);
}

.announcement-item > i:first-child {
    color: var(--primary);
    font-size: 21px;
}

.announcement-item strong {
    display: block;
    font-size: 15px;
}

.announcement-item small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}


/* =========================================================
   QUICK LINKS
   ========================================================= */

.quick-links {
    background: var(--white);
}

.quick-link {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--dark);
    transition: .2s ease;
}

.quick-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 24, 40, .10);
}

.quick-link i {
    font-size: 30px;
    color: var(--primary);
}

.quick-link:hover i {
    color: var(--white);
}

.quick-link span {
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 50px 0 25px;
    background: #101828;
    color: #d0d5dd;
}

.site-footer h5 {
    color: var(--white);
    margin-bottom: 12px;
}

.site-footer h6 {
    color: var(--white);
}

.site-footer p {
    margin-bottom: 7px;
}

.site-footer a {
    color: #d0d5dd;
    font-size: 14px;
    line-height: 2;
}

.site-footer a:hover {
    color: var(--white);
}

.site-footer hr {
    border-color: rgba(255,255,255,.15);
    margin: 30px 0 20px;
}

.site-footer small {
    color: #98a2b3;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991px) {

    .main-navbar .navbar-nav {
        padding-bottom: 10px;
    }

    .main-navbar .nav-link {
        padding: 12px 15px !important;
    }

    .hero {
        height: 460px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

}

@media (max-width: 576px) {

    .top-header {
        padding: 12px 0;
    }

    .city-logo {
        width: 65px;
        height: 65px;
        margin-right: 12px;
    }

    .republic {
        font-size: 9px;
    }

    .city-name {
        font-size: 17px;
    }

    .province {
        font-size: 11px;
    }

    .hero {
        height: 430px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .news-section,
    .quick-links {
        padding: 55px 0;
    }

    .announcement-section {
        padding: 55px 0;
    }

    .section-heading h2,
    .announcement-section h2 {
        font-size: 28px;
    }

}
/* =========================================================
   NEWS PAGE
   ========================================================= */

.page-header {
    padding: 70px 0;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.page-header span {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.page-header h1 {
    color: var(--dark);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}


.news-list-section {
    padding: 70px 0;
}


.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.news-meta span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.news-meta .news-category {
    background: var(--light);
    color: var(--primary);
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 11px;
}


.news-content h2 {
    color: var(--dark);
    font-size: 21px;
    line-height: 1.4;
    margin: 8px 0 10px;
}


.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}


.empty-news {
    text-align: center;
    padding: 80px 20px;
}

.empty-news i {
    display: block;
    color: var(--primary);
    font-size: 55px;
    margin-bottom: 20px;
}

.empty-news h2 {
    color: var(--dark);
    font-size: 28px;
}

.empty-news p {
    color: var(--muted);
}
/* =========================================================
   NEWS ARTICLE
   ========================================================= */

.article-header {
    padding: 65px 0 55px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 18px;
}

.article-header h1 {
    max-width: 900px;
    color: var(--dark);
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

.article-meta i {
    color: var(--primary);
    margin-right: 5px;
}


.article-section {
    padding: 65px 0 80px;
}

.article-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}


.article-content {
    color: var(--text);
}

.article-excerpt {
    font-size: 20px;
    line-height: 1.7;
    font-weight: 600;
    color: var(--dark);
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
}

.article-body p {
    margin-bottom: 20px;
}


.article-footer {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}


@media (max-width: 576px) {

    .article-header {
        padding: 45px 0;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .article-section {
        padding: 45px 0 60px;
    }

    .article-body {
        font-size: 16px;
    }

}

/* =========================================================
   ADMIN LOGIN
   ========================================================= */

.admin-login-page {
    min-height: 100vh;
    background: var(--light);
}

.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.admin-login-card {
    width: 100%;
    max-width: 430px;
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(16, 24, 40, .08);
}

.admin-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

.admin-login-card h1 {
    color: var(--dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.admin-login-card p {
    color: var(--muted);
    margin-bottom: 30px;
}

.admin-login-card .form-control {
    min-height: 46px;
}

.admin-login-card .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}


/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard {
    min-height: 70vh;
    padding: 70px 0;
    background: var(--light);
}

.admin-dashboard h1 {
    color: var(--dark);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.admin-dashboard p {
    color: var(--muted);
}

.admin-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: .2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 24, 40, .08);
}

.admin-stat-card i {
    display: block;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 15px;
}

.admin-stat-card h3 {
    color: var(--dark);
    font-size: 21px;
    margin-bottom: 7px;
}

.admin-stat-card p {
    margin: 0;
}
/* =========================
   ADMIN POSTS
========================= */

.admin-page {
    background: var(--light-green);
    min-height: 70vh;
    padding: 70px 0;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 35px;
}

.admin-label {
    display: block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
}

.admin-page-header h1 {
    color: var(--dark);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-page-header p {
    color: var(--muted);
    margin-bottom: 0;
}

.admin-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-table-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(25, 51, 34, 0.06);
}

.admin-posts-table {
    margin-bottom: 0;
}

.admin-posts-table thead th {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px 18px;
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-posts-table tbody td {
    padding: 18px;
    border-color: var(--border);
    color: var(--text);
}

.post-title {
    font-weight: 600;
    color: var(--dark);
}

.post-category {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-published {
    background: #dff1e5;
    color: var(--primary);
}

.status-draft {
    background: #f1ead2;
    color: #80651d;
}

.admin-empty-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.admin-pagination {
    padding: 20px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {

    .admin-page {
        padding: 45px 0;
    }

    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-page-header h1 {
        font-size: 2rem;
    }

}

/* =========================
   ADMIN FORM
========================= */

.admin-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(25, 51, 34, 0.06);
}

.admin-form-card .form-label {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.admin-form-card .form-control,
.admin-form-card .form-select {
    border-color: var(--border);
    border-radius: 8px;
    padding: 11px 13px;
}

.admin-form-card .form-control:focus,
.admin-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(5, 91, 37, 0.12);
}

.admin-form-card textarea {
    resize: vertical;
}

.admin-form-card .form-text {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 6px;
}

@media (max-width: 768px) {

    .admin-form-card {
        padding: 22px;
    }

}

/* =========================
   ADMIN DASHBOARD CARDS
========================= */

.admin-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 35px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    color: var(--text);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(25, 51, 34, 0.12);
}

.admin-card i {
    display: inline-block;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 22px;
}

.admin-card h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.admin-card p {
    color: var(--muted);
    margin-bottom: 0;
}

/* =========================
   MEDIA MANAGEMENT
========================= */

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.media-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(25, 51, 34, 0.06);
}

.media-preview {
    height: 190px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-info {
    padding: 16px;
}

.media-filename {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.media-empty i {
    display: block;
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 15px;
}

.media-empty h4 {
    color: var(--dark);
}

.media-empty p {
    color: var(--muted);
}

@media (max-width: 992px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FEATURED IMAGE SELECTOR
========================= */

.featured-image-selector {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    background: #fafdfb;
}

.featured-image-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.selected-image-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light);
    border-radius: 10px;
}

.selected-image-preview img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.selected-image-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.selected-image-info strong {
    color: var(--dark);
    word-break: break-word;
}

.media-selector {
    display: block;
    width: 100%;
    padding: 0;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.media-selector:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.media-selector img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.media-selector span {
    display: block;
    padding: 10px;
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mediaLibraryModal .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

#mediaLibraryModal .modal-header {
    background: var(--primary);
    color: var(--white);
}

#mediaLibraryModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

@media (max-width: 576px) {

    .selected-image-preview {
        flex-direction: column;
        align-items: flex-start;
    }

    .selected-image-preview img {
        width: 100%;
        height: 180px;
    }

}

/* =========================
   MEDIA FILTER
========================= */

.media-filter-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(25, 51, 34, 0.06);
}

.media-filter-card .form-label {
    color: var(--dark);
    font-weight: 600;
}

.media-count {
    color: var(--muted);
    font-size: 0.9rem;
    padding-top: 25px;
}

.media-count strong {
    color: var(--primary);
}

#mediaSearch {
    border-color: var(--border);
}

#mediaSearch:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(5, 91, 37, 0.12);
}

/* =========================================================
   NEWS PAGE
   ========================================================= */

.news-page {
    background: var(--light-green);
    min-height: 70vh;
    padding: 70px 0 80px;
}

/* Page Header */

/* Bidding Type Badge */
.page-header .bidding-type-badge {
    display: inline-block;
    width: auto;
    padding: 9px 18px;
    background: #193322;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1.2;
}



.news-page-header {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.news-page-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-page-header h1 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.news-page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}



/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header span {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.page-header {
    padding: 70px 0;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
}

.page-header span {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.page-header h1 {
    color: var(--dark);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* News Card */

.news-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.14);
}

/* Image */

.news-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dce9df;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

/* Card Body */

.news-card-body {
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: calc(100% - auto);
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.news-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    background: var(--light-green);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.news-date {
    color: var(--muted);
    font-size: 0.78rem;
}

.news-date i {
    margin-right: 4px;
}

/* Title */

.news-card-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 700;
}

.news-card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: var(--primary);
}

/* Excerpt */

.news-card-excerpt {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;

    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More */

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.news-read-more i {
    transition: transform 0.2s ease;
}

.news-read-more:hover {
    color: var(--primary-dark);
}

.news-read-more:hover i {
    transform: translateX(4px);
}

/* Pagination */

.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.news-pagination .pagination {
    margin: 0;
    gap: 5px;
}

.news-pagination .page-link {
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
    background: var(--white);
}

.news-pagination .page-link:hover {
    background: var(--light-green);
    color: var(--primary);
}

.news-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Empty State */

.news-empty {
    max-width: 650px;
    margin: 20px auto 0;
    padding: 60px 30px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.news-empty-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--light-green);
    color: var(--primary);
    font-size: 2rem;
}

.news-empty h2 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.5rem;
}

.news-empty p {
    margin-bottom: 25px;
    color: var(--muted);
}

/* Mobile */

@media (max-width: 767.98px) {

    .news-page {
        padding: 50px 0 60px;
    }

    .news-page-header {
        margin-bottom: 35px;
    }

    .news-page-header h1 {
        font-size: 2rem;
    }

    .news-card-body {
        padding: 20px;
    }

    .news-card-title {
        font-size: 1.1rem;
    }

    .news-pagination {
        margin-top: 35px;
    }

}

/* =========================================================
   NEWS ARTICLE PAGE
   ========================================================= */

.news-article-page {
    background: var(--light-green);
    min-height: 70vh;
    padding: 45px 0 80px;
}

/* Back Link */

.news-article-back {
    max-width: 950px;
    margin: 0 auto 25px;
}

.news-article-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.news-article-back a:hover {
    color: var(--primary-dark);
}

.news-article-back i {
    transition: transform 0.2s ease;
}

.news-article-back a:hover i {
    transform: translateX(-3px);
}

/* Article */

.news-article {
    max-width: 950px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(25, 51, 34, 0.09);
}

/* Header */

.news-article-header {
    padding: 40px 50px 30px;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.news-article-header h1 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.2;
    font-weight: 700;
}

.news-article-author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.88rem;
}

.news-article-author i {
    color: var(--primary);
}

/* Featured Image */

.news-article-image {
    width: 100%;
    background: #dce9df;
}

.news-article-image img {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

/* Content */

.news-article-content {
    padding: 40px 50px 50px;
}

.news-article-content > * {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.news-article-excerpt {
    margin: 0 0 32px;
    padding: 18px 20px;
    border-left: 4px solid var(--secondary);
    background: #f5f8f5;
    color: var(--dark);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.75;
    border-radius: 0 8px 8px 0;
}

.news-article-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
}

.news-article-text br {
    display: block;
    content: "";
    margin-bottom: 0.7rem;
}

.news-article-text p {
    margin-bottom: 1rem;
}
/* =========================================================
   NEWS ARTICLE NAVIGATION
   ========================================================= */

.news-article-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 20px;
    margin: 30px 0 50px;
}

.news-article-nav {
    min-width: 0;
    display: flex;
}

.news-article-nav-prev {
    justify-content: flex-start;
}

.news-article-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.news-article-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-nav-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-height: 150px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-nav-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 51, 34, 0.08);
}

.news-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-nav-title {
    display: block;
    margin-top: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
}

.news-nav-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.news-nav-home:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .news-article-footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-article-nav-next {
        text-align: left;
    }

    .news-article-nav-center {
        order: -1;
    }

    .news-nav-link {
        min-height: 120px;
    }

}

/* =========================================================
   HOME PAGE - LATEST NEWS
   ========================================================= */

.home-news-section {
    padding: 80px 0;
    background: var(--white);
}

/* Section Heading */

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.home-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-section-heading h2 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 700;
}

.home-section-heading p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* View All */

.home-news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.home-news-view-all i {
    transition: transform 0.2s ease;
}

.home-news-view-all:hover {
    color: var(--primary-dark);
}

.home-news-view-all:hover i {
    transform: translateX(4px);
}

/* News Card */

.home-news-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.13);
}

/* Image */

.home-news-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dce9df;
}

.home-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-news-card:hover .home-news-image img {
    transform: scale(1.04);
}

/* Body */

.home-news-body {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 22px;
}

.home-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.home-news-body h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
}

.home-news-body h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-news-body h3 a:hover {
    color: var(--primary);
}

.home-news-body p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More */

.home-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.home-news-read-more i {
    transition: transform 0.2s ease;
}

.home-news-read-more:hover {
    color: var(--primary-dark);
}

.home-news-read-more:hover i {
    transform: translateX(4px);
}

/* Empty */

.home-news-empty {
    padding: 50px 20px;
    text-align: center;
    background: var(--light-green);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.home-news-empty > i {
    color: var(--primary);
    font-size: 2.5rem;
}

.home-news-empty h3 {
    margin: 15px 0 8px;
    color: var(--dark);
}

.home-news-empty p {
    margin: 0;
    color: var(--muted);
}

/* Mobile */

@media (max-width: 767.98px) {

    .home-news-section {
        padding: 60px 0;
    }

    .home-section-heading {
        display: block;
        margin-bottom: 30px;
    }

    .home-news-view-all {
        margin-top: 18px;
    }

}
/* =========================================================
HOME PAGE - ANNOUNCEMENTS
========================================================= */

.announcement-section {
padding: 80px 0;
background: var(--light-green);
}

/* Introduction */

.announcement-intro {
max-width: 380px;
}

.announcement-intro .section-label {
display: inline-flex;
align-items: center;
gap: 7px;
margin-bottom: 12px;
color: var(--primary);
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.08em;
}

.announcement-intro h2 {
margin: 0 0 14px;
color: var(--dark);
font-size: clamp(1.9rem, 3vw, 2.5rem);
font-weight: 700;
}

.announcement-intro p {
margin: 0 0 22px;
color: var(--dark);
line-height: 1.75;
}

/* View All */

.announcement-view-all {
display: inline-flex;
align-items: center;
gap: 7px;
color: var(--primary);
font-size: 0.9rem;
font-weight: 700;
text-decoration: none;
}

.announcement-view-all i {
transition: transform 0.2s ease;
}

.announcement-view-all:hover {
color: var(--primary-dark);
}

.announcement-view-all:hover i {
transform: translateX(4px);
}

/* List */

.announcement-list {
display: flex;
flex-direction: column;
gap: 12px;
}

/* Item */

.announcement-item {
display: flex;
align-items: center;
gap: 18px;
padding: 20px 22px;
background: var(--white);
border: 1px solid var(--border);
border-radius: 12px;
color: var(--text);
text-decoration: none;
box-shadow: 0 5px 18px rgba(25, 51, 34, 0.06);
transition:
transform 0.2s ease,
box-shadow 0.2s ease,
border-color 0.2s ease;
}

.announcement-item:hover {
transform: translateX(4px);
border-color: var(--primary);
box-shadow: 0 9px 22px rgba(25, 51, 34, 0.11);
}

/* Icon */

.announcement-icon {
width: 46px;
height: 46px;
flex: 0 0 46px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
background: var(--light-green);
color: var(--primary);
font-size: 1.15rem;
}

/* Content */

.announcement-content {
min-width: 0;
flex: 1;
}

.announcement-content strong {
display: block;
margin-bottom: 5px;
color: var(--dark);
font-size: 0.98rem;
font-weight: 700;
}

.announcement-content small {
display: flex;
align-items: center;
gap: 6px;
color: var(--muted);
font-size: 0.78rem;
}

.announcement-content small i {
color: var(--primary);
}

/* Arrow */

.announcement-arrow {
color: var(--primary);
font-size: 1rem;
transition: transform 0.2s ease;
}

.announcement-item:hover .announcement-arrow {
transform: translateX(4px);
}

/* Mobile */

@media (max-width: 767.98px) {


.announcement-section {
    padding: 60px 0;

}
.announcement-intro {
    max-width: none;
}

.announcement-item {
    gap: 12px;
    padding: 16px;
}

.announcement-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

}

/* =========================================================
   ADMIN - ANNOUNCEMENTS
   ========================================================= */
.admin-post-title {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 3px;
}

.admin-table-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.admin-table-actions form {
    margin: 0;
}
/* =========================================================
   PUBLIC ANNOUNCEMENTS PAGE
   ========================================================= */

.announcement-page-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.announcement-page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.12);
}

.announcement-page-icon {
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--light-green);
    color: var(--primary);
    font-size: 1.3rem;
    text-decoration: none;
}

.announcement-page-content {
    flex: 1;
    min-width: 0;
}

.announcement-page-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.announcement-page-content h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 700;
}

.announcement-page-content h2 a {
    color: var(--dark);
    text-decoration: none;
}

.announcement-page-content h2 a:hover {
    color: var(--primary);
}

.announcement-page-content p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-page-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.announcement-page-read-more i {
    transition: transform 0.2s ease;
}

.announcement-page-read-more:hover {
    color: var(--primary-dark);
}

.announcement-page-read-more:hover i {
    transform: translateX(4px);
}

@media (max-width: 767.98px) {

    .announcement-page-card {
        padding: 20px;
        gap: 14px;
    }

    .announcement-page-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 1.1rem;
    }

}

/* =========================================================
   PUBLIC ANNOUNCEMENT DETAIL
   ========================================================= */

.announcement-detail-page {
    padding: 50px 0 70px;
    background: var(--light-green);
    min-height: 70vh;
}

.announcement-detail-back {
    max-width: 900px;
    margin: 0 auto 18px;
}

.announcement-detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.announcement-detail-back a:hover {
    color: var(--primary-dark);
}

.announcement-detail-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(25, 51, 34, 0.08);
}

/* Header */

.announcement-detail-header {
    padding: 38px 42px 32px;
}

.announcement-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.announcement-detail-header h1 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
}

.announcement-detail-author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.85rem;
}

.announcement-detail-author i {
    color: var(--primary);
}

/* Body */

.announcement-detail-body {
    padding: 0 42px 42px;
}

.announcement-detail-excerpt {
    position: relative;
    margin-bottom: 32px;
    padding: 22px 26px 22px 52px;
    background: #f3f7f4;
    border-left: 4px solid var(--secondary);
    border-radius: 0 10px 10px 0;
}

.announcement-detail-excerpt i {
    position: absolute;
    left: 19px;
    top: 22px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.announcement-detail-excerpt p {
    margin: 0;
    color: var(--dark);
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 600;
}

.announcement-detail-content {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
}

.announcement-detail-content br {
    display: block;
    content: "";
    margin-bottom: 0.7rem;
}

.announcement-detail-content p {
    margin-bottom: 18px;
}

/* Footer */
.announcement-detail-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Only Next Announcement exists */
.announcement-detail-footer.has-next-only {
    grid-template-columns: 1fr auto;
}

.announcement-detail-footer.has-next-only
.announcement-detail-nav-next {
    grid-column: 2;
}

/* Only Previous Announcement exists */
.announcement-detail-footer.has-previous-only {
    grid-template-columns: auto 1fr;
}

.announcement-detail-footer.has-previous-only
.announcement-detail-nav-prev {
    grid-column: 1;
}

.announcement-detail-footer.has-previous-only
.announcement-detail-nav-center {
    grid-column: 2;
}

/* No adjacent announcements */
.announcement-detail-footer.has-no-adjacent {
    display: flex;
    justify-content: center;
}
/* Mobile */

@media (max-width: 767.98px) {

    .announcement-detail-page {
        padding: 35px 0 50px;
    }

    .announcement-detail-header {
        padding: 28px 22px 25px;
    }

    .announcement-detail-header h1 {
        font-size: 1.8rem;
    }

    .announcement-detail-body {
        padding: 0 22px 28px;
    }

    .announcement-detail-card {
        border-radius: 12px;
    }

    .announcement-detail-footer {
        margin-top: 14px;
    }

}

/* =========================================================
   HOME - GOVERNMENT SERVICES
   ========================================================= */

.quick-links {
    padding: 85px 0;
    background: var(--white);
}

.quick-links .section-heading {
    max-width: 650px;
    margin: 0 auto 45px;
}

.quick-links .section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.quick-links .section-heading h2 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
}

.quick-links .section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* Service Card */

.quick-link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(25, 51, 34, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.12);
}

/* Icon */

.quick-link-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--light-green);
    color: var(--primary);
    font-size: 1.3rem;
}

/* Content */

.quick-link-content {
    flex: 1;
}

.quick-link-content h3 {
    margin: 0 0 9px;
    color: var(--dark);
    font-size: 1.08rem;
    font-weight: 700;
}

.quick-link-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.65;
}

/* Arrow */

.quick-link-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 22px;
    color: var(--primary);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.quick-link-card:hover .quick-link-arrow {
    transform: translateX(5px);
}

/* Mobile */

@media (max-width: 767.98px) {

    .quick-links {
        padding: 60px 0;
    }

    .quick-links .section-heading {
        margin-bottom: 30px;
    }

    .quick-link-card {
        padding: 23px;
    }



}

/* =========================================================
   ABOUT PAGE
   ========================================================= */

.page-header {
    padding: 70px 0;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    color: var(--white);
}

.page-header-content {
    max-width: 760px;
}

.page-header-label,
.section-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-header-label {
    color: var(--secondary);
}

.page-header h1 {
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
}

.page-header p {
    margin: 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.about-intro {
    background: var(--white);
}

.section-label {
    color: var(--primary);
}

.section-title {
    margin-bottom: 18px;
    color: var(--dark);
    font-weight: 700;
}

.section-description {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
}

.about-lead {
    color: var(--text);
    font-size: 1.12rem;
    line-height: 1.8;
}

.about-intro p {
    line-height: 1.8;
    color: var(--muted);
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(25, 51, 34, 0.16);
}

.about-city-image {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.about-image-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(5, 91, 37, 0.92);
    color: var(--white);
    font-size: 0.9rem;
}

.city-profile-section {
    background: var(--light);
}

.profile-card {
    height: 100%;
    padding: 30px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(25, 51, 34, 0.10);
}

.profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--light-green);
    color: var(--white);
    font-size: 1.4rem;
}

.profile-card h4 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.profile-card p {
    margin: 0;
    color: var(--muted);
}

.about-history {
    background: var(--white);
}

.history-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.6rem;
}

.about-history p {
    color: var(--muted);
    line-height: 1.8;
}

.mission-vision-section {
    background: var(--light);
}

.mission-card {
    height: 100%;
    padding: 35px;
    background: var(--white);
    border-top: 4px solid var(--secondary);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(25, 51, 34, 0.07);
}

.mission-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
}

.mission-card h3 {
    color: var(--dark);
    font-weight: 700;
}

.mission-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.8;
}

.about-cta {
    background: var(--primary);
    color: var(--white);
}

.about-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.about-cta .section-label {
    color: var(--secondary);
}

.about-cta h2 {
    margin-bottom: 12px;
    font-weight: 700;
}

.about-cta p {
    max-width: 650px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.about-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-cta-buttons .btn {
    white-space: nowrap;
}


/* About page mobile */
@media (max-width: 767.98px) {

    .page-header {
        padding: 50px 0;
    }

    .about-city-image {
        height: 300px;
    }

    .about-cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-cta-buttons {
        width: 100%;
    }

    .about-cta-buttons .btn {
        flex: 1;
    }

}

/* =========================================================
   CITY OFFICIALS PAGE
   ========================================================= */

.officials-page-header {
    background:
        linear-gradient(
            rgba(5, 91, 37, 0.92),
            rgba(52, 120, 78, 0.92)
        ),
        url('/images/city-hall.jpg') center/cover;
}

.officials-leadership {
    background: var(--white);
}

.official-feature-card {
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(25, 51, 34, 0.09);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.official-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(25, 51, 34, 0.14);
}

.official-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    background:
        linear-gradient(
            135deg,
            var(--light-green),
            var(--primary)
        );
    color: var(--white);
    font-size: 5rem;
}

.official-feature-content {
    padding: 30px;
    text-align: center;
}

.official-position {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.official-feature-content h3 {
    margin-bottom: 14px;
    color: var(--dark);
    font-size: 1.45rem;
    font-weight: 700;
}

.official-divider {
    width: 55px;
    height: 3px;
    margin: 0 auto 15px;
    background: var(--secondary);
}

.official-feature-content p {
    margin: 0;
    color: var(--muted);
}


.council-section {
    background: var(--light);
}

.councilor-card {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 145px;
    padding: 25px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.councilor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(25, 51, 34, 0.10);
}

.councilor-number {
    position: absolute;
    top: 10px;
    right: 15px;
    color: rgba(5, 91, 37, 0.08);
    font-size: 2.5rem;
    font-weight: 800;
}

.councilor-icon {
    display: flex;
    flex: 0 0 55px;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-right: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
}

.councilor-info {
    min-width: 0;
}

.councilor-info > span {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.councilor-info h3 {
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.councilor-info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}


.officials-info-section {
    background: var(--white);
}

.officials-info-box {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 35px;
    background: var(--light);
    border-left: 5px solid var(--secondary);
    border-radius: 12px;
}

.officials-info-icon {
    display: flex;
    flex: 0 0 55px;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.4rem;
}

.officials-info-box h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.officials-info-box p {
    margin-bottom: 10px;
    color: var(--muted);
    line-height: 1.7;
}


/* City Officials mobile */
@media (max-width: 767.98px) {

    .official-photo-placeholder {
        height: 230px;
        font-size: 4rem;
    }

    .official-feature-content {
        padding: 25px 20px;
    }

    .official-feature-content h3 {
        font-size: 1.25rem;
    }

    .councilor-card {
        min-height: 125px;
        padding: 20px;
    }

    .officials-info-box {
        flex-direction: column;
        padding: 25px;
    }

}
.about-cta {
    background: var(--primary) !important;
    color: var(--white);
}

.about-cta h2 {
    color: var(--white);
}

.about-cta p {
    color: rgba(255, 255, 255, 0.85);
}

.about-cta .section-label {
    color: var(--secondary);
}

.about-cta .btn-outline-success {
    border-color: var(--white);
    color: var(--white);
}

.about-cta .btn-outline-success:hover {
    background: var(--white);
    color: var(--primary);
}
/* =========================================================
   DEPARTMENTS PAGE
   ========================================================= */

.departments-page-header {
    background:
        linear-gradient(
            rgba(5, 91, 37, 0.92),
            rgba(52, 120, 78, 0.92)
        ),
        url('/images/city-hall.jpg') center/cover;
}

.departments-section {
    background: var(--white);
}

.department-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 7px 24px rgba(25, 51, 34, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.department-card:hover {
    transform: translateY(-6px);
    border-color: var(--light-green);
    box-shadow: 0 15px 35px rgba(25, 51, 34, 0.11);
}

.department-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--light);
    color: var(--primary);
    font-size: 1.5rem;
}

.department-acronym {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.department-content h3 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
}

.department-content p {
    margin-bottom: 20px;
    color: var(--muted);
    line-height: 1.7;
}

.department-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.department-link:hover {
    color: var(--primary-dark);
}

.department-link i {
    transition: transform 0.2s ease;
}

.department-link:hover i {
    transform: translateX(4px);
}

.departments-info {
    background: var(--light);
}

.departments-info-box {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px;
    background: var(--white);
    border-left: 5px solid var(--secondary);
    border-radius: 12px;
}

.departments-info-icon {
    display: flex;
    flex: 0 0 55px;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.35rem;
}

.departments-info-box h3 {
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 700;
}

.departments-info-box p {
    color: var(--muted);
}


/* Departments mobile */
@media (max-width: 767.98px) {

    .department-card {
        padding: 25px;
    }

    .departments-info-box {
        align-items: flex-start;
        padding: 25px;
    }

}

/* =========================================================
   DEPARTMENT DETAIL PAGE
   ========================================================= */

.department-detail-section {
    background: var(--white);
}

.department-detail-card {
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(25, 51, 34, 0.07);
}

.department-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin-bottom: 25px;
    border-radius: 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.8rem;
}

.department-detail-card h2 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: 2rem;
    font-weight: 700;
}

.department-detail-description {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.department-services-card {
    padding: 35px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.department-detail-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.department-heading-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--light);
    color: var(--primary);
    font-size: 1.2rem;
}

.department-detail-heading h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.35rem;
    font-weight: 700;
}

.department-services-card > p {
    color: var(--muted);
    line-height: 1.7;
}

.service-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--light);
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.service-placeholder i {
    color: var(--primary);
    font-size: 1.1rem;
}

.department-contact-card {
    padding: 30px;
    background: var(--light);
    border-radius: 16px;
    border-top: 4px solid var(--secondary);
}

.department-contact-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.department-contact-heading h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-detail > i {
    margin-top: 2px;
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-detail span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.78rem;
}

.contact-detail strong {
    display: block;
    color: var(--dark);
    font-size: 0.92rem;
}

.department-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.department-back-link:hover {
    color: var(--primary-dark);
}

.department-back-link i {
    transition: transform 0.2s ease;
}

.department-back-link:hover i {
    transform: translateX(-4px);
}


/* Department detail mobile */
@media (max-width: 767.98px) {

    .department-detail-card,
    .department-services-card {
        padding: 28px 22px;
    }

    .department-detail-card h2 {
        font-size: 1.6rem;
    }

    .department-contact-card {
        padding: 25px 22px;
    }

}

/* =========================================================
   FINAL PAGE HEADER OVERRIDE
   ========================================================= */

.page-header {
    padding: 70px 0 !important;
    background:
        linear-gradient(
            135deg,
            rgba(5, 91, 37, 0.94),
            rgba(52, 120, 78, 0.94)
        ) !important;
    border-bottom: none !important;
    color: var(--white) !important;
}

.page-header h1 {
    color: var(--white) !important;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.page-header-label {
    color: var(--secondary) !important;
}

.departments-page-header {
    background:
        linear-gradient(
            rgba(5, 91, 37, 0.92),
            rgba(52, 120, 78, 0.92)
        ),
        url('/images/city-hall.jpg') center center / cover no-repeat !important;
}
/* =========================================================
   GOVERNMENT SERVICES PAGE
   ========================================================= */

.services-page {
    background: #f8fbf8;
}

.service-category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(25, 51, 34, 0.10);
    border-color: var(--primary);
}

.service-category-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.service-category-card h3 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-category-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.service-category-link {
    margin-top: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.service-category-link:hover {
    color: var(--primary-dark);
}

.service-category-link i {
    margin-left: 5px;
    transition: margin-left 0.2s ease;
}

.service-category-link:hover i {
    margin-left: 9px;
}
/* =========================================================
   GOVERNMENT SERVICE DETAIL PAGE
   ========================================================= */

.service-detail-page {
    background: #f8fbf8;
}

.service-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 35px;
}

.service-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-detail-card h2 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.service-detail-intro {
    color: var(--muted);
    line-height: 1.7;
}

.service-detail-card h3 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-placeholder {
    background: var(--light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.service-placeholder i {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 12px;
}

.service-placeholder p {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.service-placeholder small {
    color: var(--muted);
    line-height: 1.6;
}

.service-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 20px;
}

.service-info-card h4 {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-info-card h4 i {
    color: var(--primary);
    margin-right: 7px;
}

.service-info-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: var(--primary-dark);
}

.back-link i {
    margin-right: 6px;
}
/* =========================================================
   SERVICE ITEMS
   ========================================================= */

.service-item-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.service-item-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(25, 51, 34, 0.08);
}

.service-item-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.service-item-content h4 {
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.service-item-content p {
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.service-item-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.service-item-link:hover {
    color: var(--primary-dark);
}

.service-item-link i {
    margin-left: 4px;
}
/* =========================================================
   INDIVIDUAL SERVICE INFORMATION PAGE
   ========================================================= */

.service-information-page {
    background: #f8fbf8;
}

.service-information-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
}

.service-information-card h2 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.service-information-card > h3 {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-information-card h3 i {
    color: var(--primary);
    margin-right: 7px;
}

.service-information-card p {
    color: var(--muted);
    line-height: 1.7;
}

.service-info-section {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.service-info-section:first-of-type {
    margin-top: 25px;
}

.service-info-section h3 {
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-info-section h3 i {
    color: var(--primary);
    margin-right: 7px;
}
/* =========================================================
   SERVICE REQUIREMENTS
   ========================================================= */

.service-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-requirements li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    line-height: 1.6;
}

.service-requirements li:last-child {
    border-bottom: none;
}

.service-requirements li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}
/* =========================================================
   SERVICE SOURCE NOTE
   ========================================================= */

.service-source-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 20px 0 25px;
}

.service-source-note > i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.service-source-note strong {
    color: var(--dark);
}

.service-source-note p {
    margin: 3px 0;
    color: var(--text);
}

.service-source-note small {
    color: var(--muted);
    line-height: 1.5;
}
/* =========================================================
   SERVICE PROCEDURE
   ========================================================= */

.service-procedure {
    margin: 0;
    padding-left: 25px;
}

.service-procedure li {
    padding: 10px 0 10px 8px;
    color: var(--text);
    line-height: 1.6;
    border-bottom: 1px solid var(--border);
}

.service-procedure li:last-child {
    border-bottom: none;
}
/* =========================================================
   SERVICE PROCEDURE TABLE
   ========================================================= */

.service-procedure-table {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.procedure-row {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
}

.procedure-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.procedure-content {
    flex: 1;
}

.procedure-column {
    margin-bottom: 18px;
}

.procedure-label {
    display: block;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.procedure-column p,
.procedure-meta p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0;
}

.procedure-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {

    .procedure-row {
        padding: 16px;
    }

    .procedure-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page {
    background: var(--white);
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.06);
    transition: all 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.12);
    border-color: var(--secondary);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light);
    color: var(--primary);

    border-radius: 50%;
    font-size: 28px;
}

.contact-card h3 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.7;
}

.contact-card .contact-detail {
    margin-top: 15px;
    color: var(--text);
}
/* =========================================================
   CONTACT INFORMATION - CENTERED
   ========================================================= */

.contact-information {
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-card {
    width: 100%;
    padding: 28px 40px;
    background: var(--light);
    border-radius: 16px;
    border-top: 5px solid var(--secondary);
    text-align: center;
    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.05);
}

.contact-info-card h2 {
    margin-top: 10px;
    margin-bottom: 12px;
    color: var(--dark);
}

.contact-info-card > p {
    max-width: 750px;
    margin: 0 auto 25px;
    color: var(--muted);
    line-height: 1.7;
}


/* Contact Details */

.contact-list {
    max-width: 700px;
    margin: 20px auto 0;
}

.contact-list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    padding: 14px 0;
    border-bottom: 1px solid var(--border);

    text-align: left;
}

.contact-list-item:last-child {
    border-bottom: none;
}

.contact-list-item > i {
    flex-shrink: 0;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);
    color: var(--primary);

    border-radius: 10px;
    font-size: 18px;
}

.contact-list-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 3px;
}

.contact-list-item span {
    color: var(--muted);
}

.contact-list-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-list-item a:hover {
    text-decoration: underline;
}


/* Map */

.contact-map-section {
    width: 100%;
    margin-top: 45px;
    text-align: center;
}

.map-heading {
    margin-bottom: 20px;
}

.map-heading h2 {
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 700;
}

.map-heading p {
    color: var(--muted);
    margin-bottom: 0;
}

.contact-map {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.08);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* =========================================================
   CONTACT PAGE - FINAL LAYOUT
   ========================================================= */

.contact-page {
    background: var(--white);
}


/* Contact Cards */

.contact-cards {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 25px;
    text-align: center;

    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.06);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.12);
    border-color: var(--secondary);
}

.contact-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light);
    color: var(--primary);

    border-radius: 50%;

    font-size: 24px;
}

.contact-card h3 {
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.contact-card .contact-detail {
    margin-top: 15px;
    color: var(--text);
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}


/* Office Information */

.contact-information {
    max-width: 900px;
    margin: 55px auto 0;
}

.contact-info-card {
    width: 100%;

    padding: 35px 45px;

    background: var(--light);

    border-radius: 16px;

    border-top: 5px solid var(--secondary);

    text-align: center;

    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.05);
}

.contact-info-card h2 {
    margin: 10px 0 12px;

    color: var(--dark);
    font-weight: 700;
}

.contact-info-card > p {
    max-width: 700px;

    margin: 0 auto 25px;

    color: var(--muted);

    line-height: 1.7;
}


/* Contact Details */

.contact-list {
    max-width: 650px;

    margin: 20px auto 0;
}

.contact-list-item {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);

    text-align: left;
}

.contact-list-item:last-child {
    border-bottom: none;
}

.contact-list-item > i {
    flex-shrink: 0;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);

    color: var(--primary);

    border-radius: 10px;

    font-size: 18px;
}

.contact-list-item strong {
    display: block;

    color: var(--dark);

    margin-bottom: 3px;
}

.contact-list-item span {
    color: var(--muted);
}

.contact-list-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}


/* Map */

.contact-map-section {
    max-width: 1000px;

    margin: 55px auto 0;

    text-align: center;
}

.map-heading {
    margin-bottom: 20px;
}

.map-heading h2 {
    margin-top: 8px;
    margin-bottom: 8px;

    color: var(--dark);

    font-weight: 700;
}

.map-heading p {
    color: var(--muted);

    margin-bottom: 0;
}

.contact-map {
    width: 100%;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.08);
}

.contact-map iframe {
    display: block;

    width: 100%;
    height: 400px;

    border: 0;
}


/* Mobile */

@media (max-width: 767.98px) {

    .contact-card {
        padding: 28px 22px;
    }

    .contact-info-card {
        padding: 30px 22px;
    }

    .contact-list-item {
        align-items: flex-start;
    }

    .contact-map iframe {
        height: 320px;
    }

}
/* Contact Page - Spacing Refinement */

.contact-information {
    margin-top: 40px;
}

.contact-map-section {
    margin-top: 40px;
}

.contact-info-card {
    padding: 30px 40px;
}

.contact-info-card > p {
    margin-bottom: 18px;
}

.contact-list {
    margin-top: 15px;
}

.contact-list-item {
    padding: 8px 0;
}

.contact-map {
    margin-top: 15px;
}
/* =========================================================
   CONTACT CARD - TEXT FIX
   ========================================================= */

.contact-card {
    overflow: hidden;
}

.contact-card .contact-detail {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-card a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-card .contact-detail strong {
    display: inline-block;
    margin-right: 6px;
}
.contact-cards .contact-card {
    min-width: 0;
}

.contact-cards .contact-detail {
    max-width: 100%;
}
@media (max-width: 767.98px) {

    .contact-list-item {
        gap: 12px;
        padding: 12px 5px;
    }

    .contact-list-item > i {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .contact-card a {
        font-size: 0.9rem;
    }

}
/* Fix contact card email layout */

.contact-card .contact-detail strong {
    display: block;
    margin-bottom: 8px;
}

.contact-card .contact-detail a {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}
/* Final fix for contact card details */

.contact-card .contact-detail {
    display: block !important;
    width: 100%;
    text-align: center;
}

.contact-card .contact-detail strong {
    display: block !important;
    width: 100%;
    margin-bottom: 8px;
    white-space: normal;
}

.contact-card .contact-detail a {
    display: block !important;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
/* =========================================================
   DOWNLOADS PAGE
   ========================================================= */

.downloads-page {
    background: var(--white);
}

.download-category-card {
    padding: 35px 30px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 16px;

    text-align: center;

    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.download-category-card:hover {
    transform: translateY(-5px);

    border-color: var(--secondary);

    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.12);
}

.download-category-icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light);
    color: var(--primary);

    border-radius: 50%;

    font-size: 30px;
}

.download-category-card h3 {
    margin-bottom: 12px;

    color: var(--dark);

    font-size: 1.2rem;
    font-weight: 700;
}

.download-category-card p {
    margin-bottom: 20px;

    color: var(--muted);

    line-height: 1.7;
}

.download-category-status {
    display: inline-block;

    padding: 6px 12px;

    background: var(--light);

    color: var(--primary);

    border-radius: 20px;

    font-size: 0.8rem;
    font-weight: 600;
}
/* =========================================================
   DOWNLOADS PAGE
   ========================================================= */

.downloads-page {
    background: var(--white);
}

.download-category-card {
    padding: 35px 30px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 16px;

    text-align: center;

    box-shadow: 0 8px 24px rgba(25, 51, 34, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.download-category-card:hover {
    transform: translateY(-5px);

    border-color: var(--secondary);

    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.12);
}

.download-category-icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light);
    color: var(--primary);

    border-radius: 50%;

    font-size: 30px;
}

.download-category-card h3 {
    margin-bottom: 12px;

    color: var(--dark);

    font-size: 1.2rem;
    font-weight: 700;
}

.download-category-card p {
    margin-bottom: 20px;

    color: var(--muted);

    line-height: 1.7;
}

.download-category-status {
    display: inline-block;

    padding: 6px 12px;

    background: var(--light);

    color: var(--primary);

    border-radius: 20px;

    font-size: 0.8rem;
    font-weight: 600;
}
/* =========================================================
   DOWNLOAD CATEGORY PAGE
   ========================================================= */

.download-category-header {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.download-category-header .download-category-icon {
    margin-bottom: 20px;
}

.download-category-header h2 {
    margin-top: 8px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.download-category-header p {
    color: var(--muted);
    line-height: 1.7;
}


/* Category Card Link */

.download-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--primary);
    text-decoration: none;

    font-weight: 600;
}

.download-category-link:hover {
    color: var(--primary-dark);
}

.download-category-link i {
    transition: transform 0.2s ease;
}

.download-category-link:hover i {
    transform: translateX(4px);
}


/* Empty State */

.download-empty-state {
    max-width: 750px;
    margin: 0 auto;

    padding: 55px 30px;

    background: var(--light);

    border: 1px solid var(--border);
    border-radius: 16px;

    text-align: center;
}

.download-empty-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);
    color: var(--primary);

    border-radius: 50%;

    font-size: 30px;
}

.download-empty-state h3 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.download-empty-state p {
    max-width: 550px;
    margin: 0 auto 25px;

    color: var(--muted);
    line-height: 1.7;
}

.download-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--primary);

    text-decoration: none;
    font-weight: 600;
}

.download-back-link:hover {
    color: var(--primary-dark);
}
/* =========================================================
   DOWNLOAD DOCUMENTS
   ========================================================= */

.download-document-list {
    max-width: 900px;
    margin: 0 auto;
}

.download-document-card {
    display: flex;
    align-items: center;
    gap: 22px;

    padding: 24px;

    margin-bottom: 16px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 6px 18px rgba(25, 51, 34, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.download-document-card:hover {
    transform: translateY(-2px);

    border-color: var(--secondary);

    box-shadow: 0 10px 24px rgba(25, 51, 34, 0.09);
}

.download-document-icon {
    flex: 0 0 55px;

    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light);

    color: var(--primary);

    border-radius: 12px;

    font-size: 26px;
}

.download-document-content {
    flex: 1;
    min-width: 0;
}

.download-document-content h3 {
    margin: 0 0 6px;

    color: var(--dark);

    font-size: 1.1rem;
    font-weight: 700;
}

.download-document-content p {
    margin: 0 0 10px;

    color: var(--muted);

    line-height: 1.6;
}

.download-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    color: var(--muted);

    font-size: 0.85rem;
}

.download-document-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.download-document-action {
    flex-shrink: 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    background: var(--primary);
    color: var(--white);

    border-radius: 8px;

    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 600;

    transition: background 0.2s ease;
}

.download-button:hover {
    background: var(--primary-dark);
    color: var(--white);
}


/* Mobile */

@media (max-width: 767.98px) {

    .download-document-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .download-document-content {
        flex-basis: calc(100% - 77px);
    }

    .download-document-action {
        width: 100%;
        margin-left: 77px;
    }

}
.facebook-embed {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start;
    margin: 0 auto 35px;
    padding: 0;
}

.facebook-embed iframe {
    display: block;
    width: 500px;
    max-width: 100%;
    border: none;
    margin: 0 auto !important;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: var(--dark);
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-brand {
    padding-right: 30px;
}

/* Footer logos - compact */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.footer-logos img {
    display: block !important;
    object-fit: contain !important;
}

.footer-city-logo {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
}

.footer-una-logo {
    width: 180px !important;
    height: 90px !important;
    max-width: 180px !important;
    max-height: 90px !important;
    object-fit: contain !important;
    transform: scale(1.25);
}

.footer-bagong-logo {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
}

.footer-brand h5 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 5px;
}


.footer-links h6 {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links a {
    display: block;
    width: fit-content;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.footer-links a i {
    font-size: 0.7rem;
    margin-right: 7px;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(3px);
}

.site-footer hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 35px 0 18px;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom small {
    font-size: 0.85rem;
}


/* Mobile */
@media (max-width: 767.98px) {

    .site-footer {
        text-align: center;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-logos {
        justify-content: center;
    }

    .footer-links {
        margin-top: 15px;
    }

    .footer-links a {
        margin-left: auto;
        margin-right: auto;
    }
    

}

/* Bidding Detail Page */
.bidding-detail-section {
    padding: 50px 0 60px;
}
/* =========================================
   BIDDINGS LIST
   ========================================= */

.bidding-list-section {
    padding: 60px 0 80px;
}

.page-header-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 14px;
    background: var(--secondary);
    color: var(--dark);
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.bidding-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.bidding-list-header h2 {
    margin-bottom: 6px;
    color: var(--dark);
}

.bidding-list-header p {
    margin-bottom: 0;
    color: var(--muted);
}

.bidding-count {
    flex-shrink: 0;
    padding: 8px 14px;
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
}

.bidding-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bidding-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(25, 51, 34, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bidding-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 51, 34, 0.10);
}

.bidding-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 25px 28px 20px;
}

.bidding-type-badge {
    display: inline-block;
    width: auto;
    margin-bottom: 12px;
    padding: 7px 14px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.bidding-card h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 600;
}

.bidding-reference {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.bidding-reference i {
    color: var(--primary);
}

.bidding-posting-date {
    min-width: 120px;
    padding-left: 25px;
    border-left: 1px solid var(--border);
    text-align: right;
}

.bidding-posting-date small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.bidding-posting-date strong {
    color: var(--primary);
    font-size: 0.95rem;
}

.bidding-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #f8fbf8;
}

.bidding-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
}

.bidding-detail + .bidding-detail {
    border-left: 1px solid var(--border);
}

.bidding-detail > i {
    color: var(--primary);
    font-size: 1.35rem;
}

.bidding-detail small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.78rem;
}

.bidding-detail strong {
    color: var(--dark);
    font-size: 0.95rem;
}

.bidding-deadline > i {
    color: var(--secondary);
}

.bidding-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 28px;
}

.bidding-card-footer > span {
    color: var(--muted);
    font-size: 0.85rem;
}

.bidding-card-footer > span i {
    margin-right: 5px;
    color: var(--primary);
}

.bidding-card-footer .btn {
    white-space: nowrap;
}

.bidding-empty-state {
    max-width: 650px;
    margin: 20px auto;
    padding: 60px 30px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.bidding-empty-icon {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 3rem;
}

.bidding-empty-state h2 {
    margin-bottom: 10px;
    color: var(--dark);
}

.bidding-empty-state p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}


/* Responsive */
@media (max-width: 767.98px) {

    .bidding-list-header {
        align-items: flex-start;
    }

    .bidding-card-top {
        flex-direction: column;
    }

    .bidding-posting-date {
        width: 100%;
        padding: 0;
        border-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 15px;
        text-align: left;
    }

    .bidding-card-details {
        grid-template-columns: 1fr;
    }

    .bidding-detail + .bidding-detail {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .bidding-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .bidding-card-footer .btn {
        width: 100%;
    }
}
.page-header .page-header-label {
    display: inline-block !important;
    width: fit-content !important;
    max-width: max-content;
    margin-bottom: 12px;
    padding: 7px 16px;
    background: var(--secondary);
    color: var(--dark) !important;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.8px;
}
.admin-biddings-table th:nth-child(4),
.admin-biddings-table td:nth-child(4) {
    min-width: 160px;
    max-width: 220px;
    white-space: normal;
}
/* Bidding Deadline Status */

.bidding-status-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.bidding-status-open {
    background: #dcefe2;
    color: #176b35;
    border: 1px solid #b9dcc4;
}

.bidding-status-soon {
    background: #fff1c9;
    color: #765900;
    border: 1px solid #e8cf80;
}

.bidding-status-closed {
    background: #f5dddd;
    color: #8a2525;
    border: 1px solid #e2b8b8;
}
/* =========================================================
   HOME - LATEST BIDDINGS
   ========================================================= */

.home-biddings-section {
    padding: 85px 0;
    background: #f6faf7;
}

.home-bidding-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(25, 51, 34, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.home-bidding-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.12);
}

.home-bidding-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.home-bidding-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: var(--primary);
    border-radius: 5px;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
}

.home-bidding-top small {
    color: var(--muted);
    font-size: 0.78rem;
}

.home-bidding-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.home-bidding-card h3 a {
    color: var(--dark);
    text-decoration: none;
}

.home-bidding-card h3 a:hover {
    color: var(--primary);
}

.home-bidding-reference {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.88rem;
}

.home-bidding-reference i {
    color: var(--primary);
}

.home-bidding-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.home-bidding-detail span {
    color: var(--muted);
    font-size: 0.78rem;
}

.home-bidding-detail strong {
    color: var(--dark);
    font-size: 0.92rem;
}

.home-bidding-footer {
    margin-top: auto;
    padding-top: 22px;
}

.home-bidding-footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.home-bidding-footer a:hover {
    color: var(--primary-dark);
}

.home-bidding-footer i {
    transition: transform 0.2s ease;
}

.home-bidding-footer a:hover i {
    transform: translateX(4px);
}
.news-article-details {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.news-article-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.88rem;
}

.news-article-time i {
    color: var(--primary);
}
/* =========================================================
   NEWS ARTICLE CONTENT
   ========================================================= */

.news-article-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 50px 55px;
}

.news-article-excerpt {
    position: relative;
    margin: 0 0 35px;
    padding: 24px 28px 24px 52px;
    background: #f3f7f4;
    border-left: 4px solid var(--secondary);
    border-radius: 0 10px 10px 0;
}

.news-article-excerpt i {
    position: absolute;
    left: 20px;
    top: 22px;
    font-size: 1.4rem;
    color: var(--secondary);
}

.news-article-excerpt p {
    margin: 0;
    color: var(--dark);
    font-size: 1.08rem;
    line-height: 1.8;
    font-weight: 600;
}

.news-article-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.9;
}

.news-article-text br {
    display: block;
    content: "";
    margin-bottom: 1rem;
}
/* =========================================================
   ANNOUNCEMENT DETAIL - BOTTOM NAVIGATION
   ========================================================= */

.announcement-detail-footer {
    margin-top: 30px;
    margin-bottom: 50px;
}

.announcement-detail-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.announcement-detail-back-button:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* =========================================================
   ANNOUNCEMENT DETAIL NAVIGATION
   ========================================================= */

.announcement-detail-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.announcement-detail-nav {
    min-width: 0;
    display: flex;
}

.announcement-detail-nav-prev {
    justify-content: flex-start;
}

.announcement-detail-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.announcement-detail-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-nav-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-height: 150px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.announcement-nav-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 51, 34, 0.08);
}

.announcement-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.announcement-nav-title {
    display: block;
    margin-top: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
}

.announcement-nav-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.announcement-nav-home:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .announcement-detail-footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .announcement-detail-nav-next {
        text-align: left;
    }

    .announcement-detail-nav-center {
        order: -1;
    }

    .announcement-nav-link {
        min-height: 120px;
    }

}

/* =========================================================
   DEPARTMENT CARD - VIEW OFFICE
   ========================================================= */

.department-view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.department-view-link i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.department-view-link:hover {
    color: var(--primary-dark);
}

.department-view-link:hover i {
    transform: translateX(4px);
}
/* =========================================================
   DEPARTMENT DETAIL - BACK LINK
   ========================================================= */

.department-detail-back {
    padding-top: 24px;
    padding-bottom: 0;
}

.department-detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.department-detail-back a i {
    transition: transform 0.2s ease;
}

.department-detail-back a:hover {
    color: var(--primary-dark);
}

.department-detail-back a:hover i {
    transform: translateX(-3px);
}
/* =========================================================
   SERVICE DETAIL - BACK LINK
   ========================================================= */

.service-detail-back {
    padding-top: 24px;
    padding-bottom: 0;
}

.service-detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-detail-back a i {
    transition: transform 0.2s ease;
}

.service-detail-back a:hover {
    color: var(--primary-dark);
}

.service-detail-back a:hover i {
    transform: translateX(-3px);
}
/* =========================================================
   SERVICE DOWNLOADS
   ========================================================= */

.service-download-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.service-download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.service-download-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(25, 51, 34, 0.08);
}

.service-download-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef6ef;
    color: var(--primary);
    font-size: 1.4rem;
}

.service-download-content {
    flex: 1;
    min-width: 0;
}

.service-download-content h4 {
    margin: 0 0 6px;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
}

.service-download-content p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.service-download-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 0.78rem;
}

.service-download-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-download-action {
    flex-shrink: 0;
}

.service-download-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-download-button:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.service-download-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 10px;
    background: #f6f9f6;
    color: var(--muted);
}

.service-download-empty i {
    font-size: 1.1rem;
}

.service-download-empty p {
    margin: 0;
}


/* Mobile */
@media (max-width: 767.98px) {

    .service-download-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .service-download-content {
        flex: 1 1 calc(100% - 64px);
    }

    .service-download-action {
        width: 100%;
        margin-left: 64px;
    }

    .service-download-button {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================================
   JOB OPPORTUNITIES PAGE HEADER
   ========================================================= */

.job-opportunities-page-header {
    background:
        linear-gradient(
            rgba(5, 91, 37, 0.92),
            rgba(52, 120, 78, 0.92)
        ),
        url("../images/city-hall.jpg") center center / cover no-repeat;

    padding: 65px 0;
    color: var(--white);
}

.job-opportunities-page-header .page-header-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 14px;

    background: var(--secondary);
    color: var(--dark) !important;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    border-radius: 5px;
}

.job-opportunities-page-header h1 {
    color: var(--white);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.job-opportunities-page-header p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}
/* =========================================================
   JOB OPPORTUNITIES
   ========================================================= */

.job-opportunities-section {
    padding: 55px 0 70px;
}

.job-opportunities-heading {
    text-align: center;
    margin-bottom: 45px;
}

.job-opportunities-heading .section-label {
    display: block;
    margin-bottom: 10px;
}

.job-opportunities-heading h2 {
    margin-bottom: 12px;
}

.job-opportunities-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}

.job-opportunities-section .empty-news {
    max-width: 700px;
    margin: 0 auto;
    padding: 35px 20px;
}
/* =========================================================
   JOB OPPORTUNITY DETAIL
   ========================================================= */

.job-detail-section {
    padding: 55px 0 75px;
    background: var(--white);
}

.job-detail-back {
    margin-bottom: 25px;
}

.job-detail-back a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.job-detail-back a:hover {
    color: var(--primary-dark);
}


/* Main Job Card */

.job-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(25, 51, 34, 0.06);
}

.job-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--light);
    color: var(--dark);

    font-size: 13px;
    font-weight: 600;
}

.job-badge-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}


/* Detail Sections */

.job-detail-block {
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.job-detail-block-last {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.job-detail-block h2 {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--dark);
    font-size: 22px;
    font-weight: 700;

    margin-bottom: 18px;
}

.job-detail-block h2 i {
    color: var(--primary);
}

.job-detail-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
    white-space: normal;
}


/* Information Sidebar */

.job-info-card {
    position: sticky;
    top: 30px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 30px;

    box-shadow: 0 8px 25px rgba(25, 51, 34, 0.06);
}

.job-info-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-bottom: 20px;
    margin-bottom: 5px;

    border-bottom: 1px solid var(--border);
}

.job-info-header i {
    color: var(--primary);
    font-size: 22px;
}

.job-info-header h2 {
    color: var(--dark);
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.job-info-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.job-info-item:last-of-type {
    border-bottom: 0;
}

.job-info-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.job-info-item strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
    line-height: 1.5;
}


/* Deadline Notice */

.job-deadline-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 20px;
    padding: 15px;

    background: var(--light);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
}

.job-deadline-note > i {
    color: var(--primary);
    font-size: 20px;
}

.job-deadline-note strong {
    display: block;
    color: var(--dark);
    font-size: 13px;
    margin-bottom: 3px;
}

.job-deadline-note span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}


/* Bottom Navigation */

.job-detail-footer {
    margin-top: 35px;
}


/* Mobile */

@media (max-width: 991.98px) {

    .job-info-card {
        position: static;
    }

}

@media (max-width: 767.98px) {

    .job-detail-section {
        padding: 40px 0 55px;
    }

    .job-detail-card {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .job-info-card {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .job-detail-block h2 {
        font-size: 19px;
    }

    .job-detail-content {
        font-size: 14px;
        line-height: 1.7;
    }

}

/* Job Opportunity Listing Card */

.job-opportunity-card {
    height: 100%;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(25, 51, 34, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-opportunity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(25, 51, 34, 0.10);
}

.job-opportunity-card h2 {
    color: var(--dark);
    font-size: 23px;
    font-weight: 700;
    margin: 18px 0 12px;
}

.job-opportunity-card p {
    color: var(--muted);
    line-height: 1.7;
}

.job-opportunity-card .job-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.job-opportunity-card .job-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 15px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.job-opportunity-card .job-card-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Philippine Standard Time Clock */


/* Header layout */
.top-header {
    position: relative;
    z-index: 2;
}

.top-header > .container > .d-flex {
    min-height: 100px;
    gap: 20px;
}

/* Philippine Standard Time */
.pst-clock {
    color: #1f2937;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    opacity: 1;
    visibility: visible;
}

.pst-clock .pst-label {
    color: #006b35;
    font-weight: 700;
}
/* Navigation visibility */
.main-navbar {
    position: relative;
    z-index: 1;
}

/* Responsive header */
@media (max-width: 768px) {
    .top-header > .container > .d-flex {
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .pst-clock {
        margin-left: auto;
    }
}
