* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #9d0202;
    --hover-red: #c45555;
    --hover-yellow: #ffd700;
    --active-red: #7a0202;
    --dark-red: #5c0101;
    --light-red: #c45555;
    --light-bg-1: #fef5f5;
    --light-bg-2: #fce8e8;
    --light-bg-3: #f5d0d0;
    --soft-accent: #d68888;
    --muted-red: #ebb3b3;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;

    --header-topbar: #ffffff;
    --header-main: #9d0202;
    --header-nav: #780000;
}

.top-contact-bar,
.top-header {
    position: relative;
}

/* =========================
   TOP CONTACT BAR
========================= */

.top-contact-bar {
    background: white;
}

.contact-info {
    color: var(--dark-red);
    display: flex;
    flex-wrap: wrap;
}

.social-icon {
    color: var(--dark-red);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--hover-red);
}

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

.top-header {
    overflow: hidden;
}

.top-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/mainbar-bg.jpg');
    background-size: cover;
    background-position: center right;
    z-index: 0;
}

.top-header::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(157, 2, 2, 0.95) 0%,
        rgba(157, 2, 2, 0.95) 70%,
        rgba(157, 2, 2, 0.75) 80%,
        rgba(157, 2, 2, 0.45) 90%,
        rgba(157, 2, 2, 0.15) 100%
    );

    z-index: 1;
}

.top-header .container {
    position: relative;
    z-index: 2;
}

.location {
    color: var(--hover-yellow);
}

.city-logo {
    max-width: 100px;
    height: auto;
}

/* =========================
   NAVBAR
========================= */

.nav-main {
    background: var(--header-main);
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: all 0.25s ease;
    margin-top: -1px;
}

.nav-main.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-item{
    padding: 0 0.5rem 0 0.5rem;
}

/* nav links */
.nav-link {
    color: #fff !important;
    font-size: 14px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* ACTIVE LINK (simple + stable) */
.navbar-nav .nav-link.active {
    border-bottom: 3px solid var(--hover-yellow);
}

.dropdown-item.active {
    background-color: var(--primary-red) !important;
    color: #fff !important;
}

.nav-item.dropdown.active > .main-link {
    border-bottom: 3px solid var(--hover-yellow);
    color: #fff;
}

/* Bootstrap chevron fix */
.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 5px;
}

.dropdown-menu {
    border-radius: 6px;
    border: none;
    padding: 5px 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* dropdown items */
.dropdown-item {
    position: relative;
    padding: 8px 15px;
    font-size: small;
}

.dropdown-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-red);
    transform: scaleY(0);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover {
    background: rgba(157, 2, 2, 0.06);
}

.main-link::after {
    display: none !important;
}

.toggle-btn {
    padding-left: 5px;
}

/* =========================
   SEARCH BOX
========================= */

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 0.3rem 0.8rem;
}

.search-box input {
    order: 1;
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-box button {
    order: 0;
    border: none;
    background: none;
    color: rgba(255,255,255,0.7);
    margin-right: 10px;
}

/* hover simple */
.search-box:hover {
    background: rgba(255,255,255,0.2);
}

input[type="search"]::-webkit-search-cancel-button {
    filter: brightness(0) invert(1);
}

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

.footer {
    background: var(--header-main);
    color: var(--bg-white);
}

.footer a{
    color: var(--bg-white);
    font-size: 14px;
}

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

.footer .list{
    font-size: 14px;
}
.footer-bottom {
    font-size: 12px;
}

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

.hero-carousel {
    padding: 40px 0 20px;
}

/* Swiper: relative so coverflow works correctly */
.swiper {
    position: relative;
    padding: 30px 0 10px;
    overflow: hidden;
}

/* slide width — desktop */
.swiper-slide {
    width: 65%;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* CARD BASE */
.card-slide {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.6s ease;
}

/* IMAGE */
.card-slide img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

/* CENTER ACTIVE */
.swiper-slide-active .card-slide {
    transform: scale(1.04);
    opacity: 1;
    box-shadow: 0 20px 55px rgba(0,0,0,0.3);
    z-index: 5;
}

/* ADJACENT SLIDES */
.swiper-slide-prev .card-slide,
.swiper-slide-next .card-slide {
    transform: scale(0.88);
    opacity: 0.55;
    filter: blur(1.5px);
}

/* FAR SLIDES */
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) .card-slide {
    transform: scale(0.75);
    opacity: 0.3;
    filter: blur(2.5px);
}

/* GLASS OVERLAY on side slides */
.card-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.swiper-slide-prev .card-slide::after,
.swiper-slide-next .card-slide::after {
    opacity: 1;
}

/*/* CAPTION */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 24px; /* tall top padding = gradient has room to fade */
    color: #fff;
    /* stronger, longer gradient — fully opaque at bottom, fades over ~60% of height */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.60) 40%,
        transparent 100%
    );
    /* NO border-radius here — card-slide overflow:hidden handles clipping */
}

.caption h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* =========================
   CAROUSEL CONTROLS
   — sits BELOW the slides,
     outside the image area
========================= */

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    background: rgba(30, 10, 10, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    width: fit-content;
    margin-inline: auto;
    white-space: nowrap;
}

.custom-arrow {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-arrow:hover {
    background: var(--hover-red);
    color: var(--bg-light);
}

.custom-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

/* PAGINATION — inline with arrows */
.swiper-pagination {
    position: static !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    margin: 0 !important;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 50px;
    flex-shrink: 0;
}

.swiper-pagination-bullet-active {
    background: var(--hover-red);
    width: 20px;
}

/* =========================
   CAROUSEL — MOBILE
========================= */

@media (max-width: 767.98px) {

    .hero-carousel {
        padding: 20px 0 10px;
    }

    .swiper {
        padding: 15px 0 60px;
    }

    /* Full-width single slide on mobile */
    .swiper-slide {
        width: 88%;
    }

    .card-slide img {
        height: 220px;
    }

    /* Disable coverflow depth effect on mobile — too heavy */
    .swiper-slide-prev .card-slide,
    .swiper-slide-next .card-slide {
        transform: scale(0.92);
        opacity: 0.5;
        filter: blur(1px);
    }

    .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) .card-slide {
        transform: scale(0.8);
        opacity: 0.25;
        filter: blur(2px);
    }

    .swiper-slide-active .card-slide {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .caption {
        padding: 16px 18px;
    }

    .caption h2 {
        font-size: 1rem;
    }

    .caption p {
        font-size: 0.78rem;
    }

    .custom-arrow {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}

/* =========================
   CAROUSEL — TABLET
========================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .swiper-slide {
        width: 75%;
    }

    .card-slide img {
        height: 340px;
    }
}

/* =========================
   DESKTOP VIEW
========================= */

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        margin-top: 0;
    }

    .toggle-btn {
        display: none;
    }

    .main-link::after {
        display: inline-block !important;
        margin-left: 5px;
    }
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 991.98px) {

    /* show chevron */
    .toggle-btn {
        display: block;
    }

    /* Make nav item layout horizontal */
    .navbar-nav .nav-item.dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Keep main link inline */
    .navbar-nav .main-link {
        flex: 1;
        display: flex;
        align-items: center;
    }

    /* Put chevron beside the link */
    .navbar-nav .toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        padding: 0;
        margin-left: auto;
    }

    /* Prevent dropdown trigger button from taking full width */
    .navbar-nav .dropdown-toggle-split {
        border: none;
        background: transparent;
    }

    /* Make dropdown push content instead of floating */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding-left: 15px;
        background: rgba(255, 255, 255, 0.05);
    }

    /* Ensure dropdown items stack properly */
    .navbar-nav .dropdown-item {
        color: #fff;
        padding: 8px 10px;
    }

    /* Optional: indent submenu for clarity */
    .navbar-nav .dropdown-menu {
        border-left: 2px solid rgba(255, 255, 255, 0.2);
    }

    /* Prevent weird absolute positioning inheritance */
    .navbar-nav .dropdown {
        position: static;
    }
}

@media (max-width: 768px) {

    .contact-left {
        flex-direction: column !important;
        align-items: center;
        gap: 4px !important;
    }

    .contact-info {
        line-height: 1;
    }

    .contact-right {
        justify-content: center;
        margin-top: 5px;
    }

    .top-header {
        padding: 0 20px;
    }
}
/* =========================
   CAROUSEL CONTROLS — MOBILE
========================= */
@media (max-width: 767.98px) {
    .carousel-controls {
        margin-top: 12px;
        padding: 5px 12px;
        gap: 6px;
    }
}

/* =========================
   NEWS AND ARTICLES
========================= */

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

.news-header {
    margin-bottom: 32px;
}

.news-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 12px;
}

.news-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
    opacity: 0.25;
    margin-top: 12px;
}

/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* CARD */
.news-card {
    background: var(--bg-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

/* CARD IMAGE BLOCK */
.news-card-img {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Category badge overlay */
.news-card-img .news-category {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Fallback icon block when no image */
.news-card-img.no-img {
    background: var(--primary-red);
}

.news-card-img.no-img .news-icon {
    font-size: 2.4rem;
    color: rgba(255,255,255,0.85);
}

/* CARD BODY */

.news-card-body .btn-read-more {
    display: inline-block;
    align-self: flex-start;
    background: var(--primary-red);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
}

.news-card-body .btn-read-more:hover {
    background: var(--dark-red);
    color: #fff;
}

/* =========================
   NEWS — TABLET
========================= */
@media (max-width: 991.98px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   NEWS — MOBILE
========================= */
@media (max-width: 575.98px) {
    .news-section {
        padding: 40px 0 50px;
    }

    .news-header h2 {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-card-img {
        height: 170px;
    }
}

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

.announcements-section {
    padding: 60px 0 70px;
}

/* ITEM */
.announce-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    border-left: 4px solid var(--primary-red);
    background: var(--bg-white);
    border-radius: 0 10px 10px 0;
    transition: background 0.2s ease;
    cursor: default;
}

.announce-item:hover {
    background: var(--light-bg-1);
}

.announce-item + .announce-item {
    margin-top: 16px;
}

/* TOP ROW: badge + date */
.announce-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.announce-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
}

/* badge colors by category */
.badge-important { background: #e05c5c; }
.badge-health     { background: #3cb87a; }
.badge-event      { background: #4a90d9; }
.badge-notice     { background: #e07a5c; }
.badge-default    { background: var(--soft-accent); }

.announce-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.announce-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.announce-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* divider between items */
.announce-divider {
    height: 1px;
    background: var(--border-color);
    margin-top: 16px;
}

/* PAGINATION */
.announce-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.announce-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.announce-pagination button:hover {
    background: var(--light-bg-2);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.announce-pagination button.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    font-weight: 600;
}

.announce-pagination button:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* =========================
   ANNOUNCEMENTS — MOBILE
========================= */
@media (max-width: 575.98px) {
    .announcements-section {
        padding: 40px 0 50px;
    }

    .announce-item {
        padding: 16px 16px;
    }

    .announce-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .announce-title {
        font-size: 0.95rem;
    }
}

/* =========================
   ABOUT PAGE
========================= */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "header image"
        "paragraph image";
    column-gap: 4rem;
    row-gap: 0.5rem;
    align-items: start;
}

.about-header {
    grid-area: header;
}

.about-image-column {
    grid-area: image;
}

.about-paragraph-column {
    grid-area: paragraph;
}

.about-header {
    padding-right: 1rem;
}

.about-label{
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-main-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

.about-title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin-bottom: 2rem;
}

.about-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-paragraph strong {
    color: var(--text-dark);
    font-weight: 600;
}

.about-image-column {
    position: relative;
}

.about-feature-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 14px 32px;
    background-color: white;
    color: var(--header-nav);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: 2px solid var(--header-nav);
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 260px;
}

.about-btn:hover {
    background-color: var(--header-nav);
    color: white;
}
/* =========================
   ABOUT PAGE — MOBILE
========================= */
@media (max-width: 575.98px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "image"
            "paragraph";
        gap: 2rem;
    }

    .about-main-title {
        font-size: 2rem;
    }

    .about-header {
        padding-right: 0;
    }

    .about-main-title {
        font-size: 2rem;
    }
}

/* ----------------------
   HERO BANNER
---------------------- */

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--header-main);
    line-height: 1.15;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary-red);
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.9rem; }
}

/* ==============================================
   CITY GOVERNMENT PAGE
============================================== */

/* ----------------------
   TAB NAV
---------------------- */
.cg-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 36px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.cg-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;  /* sits on top of the nav border */
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.cg-tab-btn:hover {
    color: var(--primary-red);
}

.cg-tab-btn.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.cg-tab-btn i {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 575.98px) {
    .cg-tab-btn { padding: 8px 10px; font-size: 0.78rem; }
    .cg-tab-btn span { display: none; }
    .cg-tab-btn i { font-size: 1rem; opacity: 1; margin: 0 !important; }
}

/* ----------------------
   TAB CONTENT
---------------------- */
.cg-tab-content {
    display: none;
    animation: cgFadeIn 0.25s ease;
}

.cg-tab-content.active {
    display: block;
}

@keyframes cgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------
   SECTION HEADER
---------------------- */
.cg-section-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
}

.cg-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--header-main);
    margin-bottom: 4px;
}

.cg-section-sub {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ----------------------
   MISSION / VISION CARDS
---------------------- */
.cg-mv-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    height: 100%;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(157, 2, 2, 0.25);
    transition: all 0.3s ease;
}

.cg-mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(196, 85, 85, 0.35);
}

.cg-mv-title {
    color: var(--bg-light);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cg-mv-text {
    color: var(--bg-light);
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.95;
    text-align: justify;
}

/* ----------------------
   CITY HALL INFO BLOCK
---------------------- */
.cg-info-block {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
}

.cg-info-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.cg-info-title i {
    color: var(--primary-red);
}

.cg-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    height: 100%;
}

.cg-detail-item > i {
    color: var(--primary-red);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.cg-detail-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cg-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
}

.cg-detail-value {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.cg-detail-value small {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ----------------------
   OFFICIALS GRID + CARDS
---------------------- */
.cg-group-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.cg-group-title::before,
.cg-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--primary-red);
    opacity: 0.4;
}

/* ── Departments: per-category block spacing ─────────────────── */
.cg-dept-category-section {
    margin-bottom: 2.5rem;
}

.cg-dept-category-section:last-child {
    margin-bottom: 0;
}

/* ── Councilors section spacing ──────────────────────────────── */
.cg-councilors-section {
    margin-top: 0.5rem;
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.official-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.official-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(157, 2, 2, 0.15);
}

.official-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.official-info {
    padding: 16px;
    text-align: center;
    border-top: 2px solid var(--light-bg-2);
}

.official-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.official-position {
    font-size: 0.88rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 2px;
}

.official-department {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 575.98px) {
    .officials-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 14px;
    }
    .official-image { height: 360px; }
    .official-info  { padding: 12px 10px; }
    .official-name  { font-size: 0.85rem; }
}

/* ----------------------
   FUNCTIONS BLOCK
---------------------- */
.cg-functions-block {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 8px;
}

.cg-functions-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.cg-functions-title i {
    color: var(--primary-red);
}

.cg-functions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cg-functions-list li {
    font-size: 0.92rem;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.cg-functions-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-red);
    opacity: 0.7;
}

        /* ================================================
           DIRECTORY PAGE — extra styles
           Extends the shared .hl-* calling-card classes.
           Scoped with .dir-* prefix for directory-specific rules.
        ================================================ */

        /* ── Equal-height cards ── */
        #dir-dept-grid {
            align-items: stretch;
        }

        #dir-dept-grid .hl-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        #dir-dept-grid .hl-numbers {
            flex: 1;
        }

        /* ── Icon wrap: fixed square so all icons align consistently ── */
        #dir-dept-grid .hl-card-icon-wrap,
        .dir-info-card .hl-card-icon-wrap {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }

        /* ── Facebook link row ── */
        .dir-card-fb {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 6px;
            padding-top: 10px;
            border-top: 1px solid var(--border-color);
            font-size: 0.82rem;
            font-weight: 600;
            color: #1877f2;
            text-decoration: none;
            transition: color 0.18s ease;
            word-break: break-word;
        }

        .dir-card-fb:hover {
            color: #0f5bbf;
            text-decoration: underline;
        }

        .dir-card-fb i {
            font-size: 1rem;
            flex-shrink: 0;
        }

        /* ── Location badge (neutral grey-blue) ── */
        .dir-badge--location {
            background: #eef2f7;
            color: #4a6580;
            min-width: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
        }

        .dir-badge--phone {
            background: #eef2f7;
            color: #7a0202;
            min-width: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
        }

        /* ── Icon-only badges: center the FA icon ── */
        .hl-badge i {
            font-size: 0.7rem;
        }

        /* ── Tel / location text values ── */
        .dir-card-tel {
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .dir-card-location {
            font-size: 0.82rem;
            color: var(--text-light);
            line-height: 1.4;
        }

        /* ── General info card ── */

        .dir-info-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--header-main);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* ================================================
           HOTLINES PAGE — Calling Card Layout
           Scoped with .hl- prefix (no conflicts with style.css)
        ================================================ */
        /* ── Alert banner ── */
        .hl-alert {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            background: #fff5f5;
            border: 1px solid #f5c2c2;
            border-radius: 8px;
            padding: 14px 18px;
            margin-bottom: 2.5rem;
        }

        .hl-alert-icon {
            color: var(--primary-red);
            font-size: 1.1rem;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .hl-alert p {
            margin: 0;
            font-size: 0.88rem;
            line-height: 1.6;
            color: var(--text-dark);
        }

        /* ── Section header ── */
        .hl-section-header {
            margin-bottom: 1.5rem;
        }

        .hl-section-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--header-main);
            margin-bottom: 3px;
        }

        .hl-section-sub {
            font-size: 0.85rem;
            color: var(--text-light);
            margin: 0;
        }

        /* ── Calling-card grid ── */
        .hl-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 3rem;
        }

        /* ── Calling card ── */
        .hl-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px 20px 16px;
            display: flex;
            flex-direction: column;
            gap: 0;
            transition: box-shadow 0.22s ease, transform 0.22s ease;
            /* subtle top accent — like a physical card's color band */
        }

        .hl-card:hover {
            box-shadow: 0 8px 22px rgba(157, 2, 2, 0.10);
            transform: translateY(-3px);
        }

        /* ── Card header row: icon + title ── */
        .hl-card-header {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 14px;
        }

        .hl-card-icon-wrap {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--light-bg-2);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .hl-card-icon-wrap i {
            font-size: 1.1rem;
            color: var(--primary-red);
        }

        .hl-card-titles {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .hl-card-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-dark);
            margin: 0;
            line-height: 1.3;
        }

        .hl-card-dept {
            font-size: 0.75rem;
            color: var(--text-light);
            line-height: 1.4;
        }

        /* ── Divider ── */
        .hl-divider {
            height: 1px;
            background: var(--border-color);
            margin-bottom: 14px;
        }

        /* ── Number rows ── */
        .hl-numbers {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .hl-number-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* ── Type badges ── */
        .hl-badge {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            padding: 3px 8px;
            border-radius: 4px;
            flex-shrink: 0;
            min-width: 58px;
            text-align: center;
        }

        .hl-badge--mobile {
            background: #e8f4fd;
            color: #1a6ea8;
        }

        .hl-badge--landline {
            background: var(--light-bg-2);
            color: var(--active-red);
        }

        /* ── Number link — tap-to-call ── */
        .hl-number-link {
            font-size: 0.92rem;
            font-weight: 600;
            color: var(--text-dark);
            text-decoration: none;
            letter-spacing: 0.01em;
            transition: color 0.18s ease;
        }

        .hl-number-link:hover {
            color: var(--primary-red);
            text-decoration: underline;
        }

        /* ── National section ── */
        .hl-national-section {
            margin-top: 1rem;
        }

        .hl-national-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 14px;
            margin-top: 1rem;
        }

        .hl-national-card {
            background: var(--header-main);
            border-radius: 10px;
            padding: 18px 20px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .hl-national-card:hover {
            background: var(--dark-red);
            transform: translateY(-2px);
        }

        .hl-national-label {
            font-size: 0.78rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.75);
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .hl-national-number {
            font-size: 1.35rem;
            font-weight: 700;
            color: #fff;
            text-decoration: none;
            letter-spacing: 0.02em;
            line-height: 1;
        }

        .hl-national-number:hover {
            color: var(--hover-yellow);
        }

        /* ── Mobile tweaks ── */
        @media (max-width: 575.98px) {
            .hl-page {
                padding: 1.5rem 0 3rem;
            }

            .hl-grid {
                grid-template-columns: 1fr;
                gap: 14px;
            }

            .hl-national-grid {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .hl-national-number {
                font-size: 1.1rem;
            }

            .hl-card {
                padding: 16px 16px 14px;
            }

            .hl-card-emoji {
                font-size: 1.3rem;
            }
        }

        @media (min-width: 576px) and (max-width: 767.98px) {
            .hl-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

/* ----------------------
   CITIZENS PAGE
---------------------- */
/* INTRO WRAPPER */
.citizens-overview-section {
    margin: 40px 0;
}

/* MAIN INTRO BOX */
.citizens-intro-box {
    position: relative;
    background: #f9f9f9;
    padding: 12px 28px;
    border-radius: 6px;
}

/* LEFT RED ACCENT BAR */
.citizens-intro-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* TITLE */
.citizens-intro-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 12px;
    padding-left: 14px;
}

/* BODY TEXT */
.citizens-intro-body {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    text-align: justify;
    padding-left: 14px;
}

/* CARD STYLE */
.citizens-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.citizens-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* TITLE */
.citizens-card .card-title {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* ICON */
.card-icon {
    font-size: 1.3rem;
    color: var(--primary-red);
}

/* DESCRIPTION */
.citizens-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* LINK */
.card-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
}

.card-link:hover {
    color: var(--hover-red);
    text-decoration: underline;
}

/* ----------------------
   CITIZENS PAGE
---------------------- */
.charter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
}

.charter-list li {
    position: relative;
    padding-left: 20px; /* reduced from 40px */
    line-height: 1.6;
}

.charter-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em; /* better vertical alignment with text */
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--active-red);
}

/* Card styling */
.charter-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #f9f9fb;
}

/* Title */
.charter-title {
    color: var(--header-main);
    font-weight: 700;
}

/* Button */
.charter-btn {
    background: var(--header-nav);
    color: var(--bg-light);
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.charter-btn:hover {
    background: var(--hover-red);
}

/* Meta text */
.charter-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 575.98px) {
    .charter-list{
        text-align: center;
    }
}

/* ----------------------
   INVESTMENT PAGE
---------------------- */
.investment-title{
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--header-nav);
    margin-bottom: 12px;
}
.investment-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  cursor: pointer;
}

.investment-card i {
  margin-bottom: 10px;
  font-size: 36px;
  color: var(--header-nav); /* red like your design */
  font-weight: 700;  
}

.investment-card h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--header-nav); /* red like your design */
  font-weight: 700;
}

.investment-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.investment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* ----------------------
   TRANSPARENCY PAGE
---------------------- */
.transparency-list{
    list-style: none;
}

.transparency-list li{
    margin-bottom: 5px;
}

.transparency-list li a{
    text-decoration: none;
    color: var(--text-dark);
}

.transparency-list a:hover {
    color: var(--header-main);
}

.transparency-list li a::after {
    content: " \f0c1";              /* Unicode for arrow-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.5em;
}

/* ----------------------
BID OPPORTUNITIES PAGE
---------------------- */
.back-to-transparency-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.back-to-transparency-btn:hover,
.back-to-transparency-btn:focus-visible {
    background: var(--hover-red);
    color: white;
    border-color: var(--hover-red);
    transform: translateX(-5px);
    outline: none;
}

.back-to-transparency-btn span:first-child {
    font-size: 1.5rem;
    line-height: 1;
}

/*--------- Office List SERVICES ----------------*/
.office-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.office-btn {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.office-btn:hover,
.office-btn.active {
    background: #f5f5f5;
    border-color: #8b0000;
    color: #8b0000;
}
.office-services-container {
    padding: 0;
    margin-top: 1.5rem;
}
.category-content {
    display: none;
}
 
/* Show active panel */
.category-content.active {
    display: block;
    animation: slideIn 0.4s ease;
}
 
/* Title inside category panels (matches .tourism-content-title style) */
.category-content-title {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--primary-red);
    font-weight: 700;
}
 
/* Inside service cards, the title is smaller */
.service-details .category-content-title {
    font-size: 1rem;
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}
/* ── Simple service list ── */
.service-list-simple {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.service-list-item {
    background: #f5f5f5;
    color: var(--primary-red);
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid var(--primary-red);
}
.section-title {
    text-align: center;
    color: #7d0c0c;
    font-size: 30px;
    font-weight: bold;
    margin: 40px 0;
    border-top: 2px solid #7d0c0c;
    border-bottom: 2px solid #7d0c0c;
    padding: 20px 0;
}

.sub-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.sub-tab {
    background: #fff;
    color: #7d0c0c;
    border: 1px solid #ccc;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.sub-tab.active,
.sub-tab:hover {
    background: #8B0000;
    color: white;
    border-color: #8B0000;
}

.sub-content {
    display: none;
    padding: 35px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 24px;
    line-height: 1.8;
}

.sub-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    
    
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.split-slide {
    display: flex;
    align-items: center;
    min-height: 420px;
    overflow: hidden;
}

.split-text {
    flex: 0 0 38%;
    padding: 2rem 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #222;
    text-align: justify;
}

.split-image {
    flex: 0 0 62%;
    height: 420px;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .split-slide {
        flex-direction: column;
    }

    .split-text,
    .split-image {
        flex: unset;
        width: 100%;
    }

    .split-image {
        height: 250px;
    }
}
/* ── Accordion ────────────────────────────────────────────────── */

.accordion {
    width: 100%;
    margin-top: 1.5rem;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: #f5f5f5;
    border: none;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #e9e9e9;
}

.accordion-header .arrow {
    font-size: 1.25rem;
    transition: transform 0.3s;
    display: inline-block;
}

/* Content hidden by default */
.accordion-content {
    display: none;
    padding: 1rem 1.25rem;
    background: #fff;
}

/* When parent item is active — show content and rotate arrow */
.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .accordion-header {
    background: #e2e2e2;
}

.accordion-item.active .arrow {
    transform: rotate(90deg);
}

.image-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-row img {
  width: 100%;
}
.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 1rem;
}

.image-grid-3 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.tables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center; 
}

.table-card {
    margin-bottom: 8px;
}

.table-card h2 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #111;
}

.table-card.full-width {
    grid-column: 1 / -1;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px 12px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

td:last-child {
    text-align: right;
}

.telecom-table td.category-cell {
    font-weight: bold;
    background-color: #f0f0f0;
    vertical-align: middle;
    text-align: left;
}

.telecom-table td.provider-cell:last-child {
    text-align: left;
}

.source-note {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

@media (max-width: 600px) {
.tables-grid {
    grid-template-columns: 1fr;
}
.table-card.full-width {
    grid-column: 1;
 }
}

.ud-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;             /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.ud-overlay.active { display: flex; }

.ud-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;        /* centers the text */
  max-width: 340px;
  width: 90%;

  /* center child elements too */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
/* =========================
   SCHOOL DIRECTORY
   Uses style.css variables & patterns only.
   No new color values — everything defers to :root.
========================= */

/* =========================
   SECTION HEADERS
========================= */
.dir-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--header-main);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 36px;
    margin-bottom: 6px;
}

.dir-section-title:first-child {
    margin-top: 0;
}

.dir-section-divider {
    border: none;
    border-top: 2px solid var(--primary-red);
    opacity: 0.35;
    margin-bottom: 12px;
}

/* =========================
   ACCORDION ROW
   Reuses .office-btn feel from style.css
========================= */
.dir-accordion-item {
    width: 100%;
    text-align: left;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.dir-accordion-item:hover {
    background: var(--light-bg-1);
    border-color: var(--primary-red);
}

.dir-accordion-item.active {
    background: var(--light-bg-2);
    border-color: var(--primary-red);
}

.dir-accordion-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.dir-accordion-arrow {
    color: var(--primary-red);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.dir-accordion-item.active .dir-accordion-arrow {
    transform: rotate(90deg);
}

/* =========================
   ACCORDION PANEL
   Reuses .charter-card / .cg-info-block feel
========================= */
.dir-accordion-panel {
    display: none;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    margin-bottom: 4px;
    animation: dirFadeIn 0.22s ease;
}

.dir-accordion-panel.open {
    display: block;
}

@keyframes dirFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Panel title — reuses .cg-group-title pattern */
.dir-panel-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dir-panel-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--primary-red);
    opacity: 0.3;
}

/* =========================
   TABLE CONTROLS
========================= */
.dir-table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.dir-entries-control {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.dir-entries-control select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.82rem;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.dir-entries-control select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.dir-search-control {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.dir-search-control input {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.82rem;
    width: 190px;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.dir-search-control input:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* =========================
   DATA TABLE
   Header: --primary-red bg + white text
   Rows: light-bg-1 stripe, light-bg-2 hover
   Matches the site's table color language
========================= */
.dir-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dir-table thead tr {
    background: var(--primary-red);
}

.dir-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--bg-white);
    border: 1px solid var(--active-red);
    white-space: nowrap;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.dir-table th .dir-sort-icon {
    display: inline-block;
    margin-left: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
}

.dir-table tbody tr:nth-child(even) {
    background: var(--light-bg-1);
}

.dir-table tbody tr:hover {
    background: var(--light-bg-2);
}

.dir-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

/* =========================
   PAGINATION
   Mirrors .announce-pagination from style.css exactly
========================= */
.dir-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.dir-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.dir-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dir-page-btn:hover {
    background: var(--light-bg-2);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.dir-page-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--bg-white);
    font-weight: 600;
}

.dir-page-btn.nav {
    color: var(--primary-red);
    font-weight: 700;
}

.dir-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
