@media (max-width: 600px) {
    .dual-sections {
        flex-direction: column !important;
        gap: 0.3rem;
    }
    .dual-sections > .section-panel {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    /* Ad panel in mobile: reasonable compact size */
    .dual-sections > .section-panel:last-child {
        padding: 0.5rem !important;
        min-height: 120px !important;
    }
    .dual-sections > .section-panel:last-child h2 {
        font-size: 1rem !important;
        margin-bottom: 0.3rem !important;
    }
    .dual-sections > .section-panel:last-child .ad-container {
        max-height: none !important;
        flex: 1 !important;
    }
    .dual-sections > .section-panel:last-child .ad-placeholder {
        max-height: none !important;
        min-height: 80px !important;
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }
}
@media (max-width: 600px) {
    .welcome-content-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .left-text-content, .right-calendar-content {
        width: 100%;
        min-height: auto;
        margin: 0 auto;
    }
    .hamburger {
        display: block !important;
        cursor: pointer;
        width: 32px;
        height: 32px;
        position: absolute;
        right: 1rem;
        top: 1rem;
        z-index: 1100;
    }
    .hamburger span {
        display: block;
        height: 4px;
        margin: 6px 0;
        background: #fff;
        border-radius: 2px;
        transition: 0.3s;
    }
}
/* Ensure Downloads & Links nav button matches height with others */
.downloads-nav-btn {
    font-size: 0.98em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    display: inline-block;
    line-height: 1.2;
}
.highlight-place {
    color: #fff;
    background: linear-gradient(90deg, #ff1744 0%, #ff9100 100%);
    padding: 0 0.22em;
    border-radius: 0.22em;
    font-weight: bold;
    box-shadow: 0 1px 8px rgba(255,23,68,0.18);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.13);
    border: 2px solid #ff3d00;
    animation: kurnool-flash 1.1s infinite alternate;
}
@keyframes kurnool-flash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.22); }
}
/* Additional Styles for Pages */
/* Additional Styles for Pages */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 0.3rem 0.8rem;
    position: relative;
        max-width: 100%;
        margin: 0;
}

/* Fix for pages that use custom logo markup (e.g. who-is-who) */
.appa-logo-title {
    margin: 0;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    font-size: 3rem;
}

.appa-logo-img {
    height: 2.4rem;
    width: auto;
    margin-bottom: 0.35rem;
}

.appa-tagline {
    font-size: 1.1rem;
    color: white;
    margin: 0.1rem 0 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.05em;
    display: flex;
    align-items: flex-end;
}

.appa-tagline-dot {
    display: inline-block;
    animation: blink-dot 2s infinite;
    margin-left: 0.4rem;
    margin-bottom: -0.25rem;
    opacity: 0;
    font-size: 1.4rem;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: #5a3d7a;
}

.page-header .container {
    max-width: 450px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Back button for sub-pages */
.back-btn {
    display: inline-block;
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(0,0,0,0.08);
}

.back-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.14); }

@media (max-width: 600px) {
    .back-btn { font-size: 0.8rem; padding: 0.25rem 0.45rem; }
}

/* Mobile navigation for very small screens */
@media (max-width: 480px) {
    /* stack header and center logo on very small screens */
    .navbar .container { flex-direction: column; align-items: center; gap: 0.25rem; }
    .logo { 
        text-align: center; 
        margin: 1.2rem 0 0.6rem 0;
        padding: 0 !important;
        background: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .site-logo-title { font-size: 1.25rem; display:flex; align-items:center; justify-content:center; gap:0.5rem; position:static !important; padding:0 !important; }
    .logo-sm { margin-top: 0.25rem; }
    .site-logo-title .brand-text { position: static !important; transform:none !important; }
    .site-logo-title .logo-mark { position: static !important; transform:none !important; }

    /* Compact multi-column nav for small/mobile screens */
    .nav-menu {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.18rem 0.8%;
        width: 100%;
        position: static; /* flow under header to avoid overlap */
        top: auto;
        left: auto;
        /* match header gradient for consistent look */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 1000;
        padding: 0.18rem 0.18rem;
        box-sizing: border-box;
        margin-top: 0.3rem;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
            .nav-menu {
                display: none !important;
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 0.18rem 0.8%;
                width: 100%;
                position: static; /* flow under header to avoid overlap */
                top: auto;
                left: auto;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                z-index: 1000;
                padding: 0.18rem 0.18rem;
                box-sizing: border-box;
                margin-top: 0.3rem;
            }
            .nav-menu.active {
                display: flex !important;
            }
        color: #fff; /* white text to contrast header */
        background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
        border-radius: 6px;
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 6px 18px rgba(2,6,23,0.12); /* stronger, softer shadow */
        box-sizing: border-box;
        white-space: normal; /* allow wrap for long labels */
        text-align: center;
        transform: translateZ(0);
    }
    /* ensure long labels (Downloads & Links) wrap cleanly */
    .nav-menu a.wrap-label,
    .nav-menu a.downloads-nav-btn {
        white-space: normal !important;
        word-break: break-word !important;
        hyphens: auto !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        line-height: 1.05 !important;
    }
    /* Keep navbar container as row for hamburger positioning */
    .navbar .container {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    .logo {
        flex: 1;
        background: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .site-logo-title {
        font-size: 1.2rem;
    }
    /* Main content adjustments */
    .page-header, .main-content, .container {
        padding: 0.3rem 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    .page-header p {
        font-size: 0.8rem;
    }
    /* Hide desktop-only elements if any */
    .desktop-only {
        display: none !important;
    }
    /* Ensure images scale */
    img {
        max-width: 100%;
        height: auto;
    }

    .section-title {
        font-size: 1.1rem;
    }
}

/* Utilities and classes to replace inline styles in specific pages */
.logo-inner { display:flex; align-items:center; gap:0.5rem; }
.site-logo-title { margin:0; display:flex; align-items:flex-end; gap:1rem; font-size:3rem; }
.logo-sm { height:2.0rem; width:auto; margin-bottom:0.35rem; margin-right:0.4rem; }
.appa-tagline { font-size:1.1rem; color:white; margin:0.1rem 0 0; text-shadow:2px 2px 4px rgba(0,0,0,0.5); letter-spacing:0.05em; display:flex; align-items:flex-end; }
.appa-tagline-dot { display:inline-block; animation:blink-dot 2s infinite; margin-left:0.4rem; margin-bottom:-0.25rem; opacity:0; font-size:1.4rem; }

.page-header--compact { margin-top: 0.5rem; }
.page-header-inner--wide { max-width: 900px; display:flex; align-items:center; gap:1rem; }
.full-width-container { max-width: 100%; }
.councils-table { width:100%; border-collapse:collapse; border:1px solid #e6e6e6; }
.councils-table td, .councils-table th { padding:0.6rem 0.8rem; }
.table-link { font-size:0.95rem; color:#0074cc; }
.mt-2em { margin-top:2em; }
.footer--spaced { margin-top:2rem; }

/* Buttons used across pages */
.summary-download-btn, .btn-primary { background: #667eea; color: #fff; padding: 0.5rem 1rem; text-decoration: none; border-radius: 5px; font-weight: 500; display: inline-block; box-shadow: 0 4px 6px rgba(102,126,234,0.35); transition: all 0.22s ease; }
.summary-download-btn.secondary { background: #764ba2; box-shadow: 0 4px 6px rgba(118,75,162,0.28); }
.summary-download-btn:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.12); }

/* Section panel variants formerly inline */
.section-panel { padding:1.25rem 1.25rem 0 1.25rem; border-radius:10px; box-shadow:0 6px 18px rgba(2,6,23,0.06); }
.section-panel--blue { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); border:1px solid #c7d2fe; }
.section-panel--green { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%); border:1px solid #a7f3d0; }
.section-panel--promo { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); border-radius:10px; border:2px dashed #667eea; }

/* Who-is-who cleanup classes */
.center-block { text-align:center; margin-bottom:1.5rem; }
.who-heading { color:#2c3e50; font-size:1.8rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; margin:0; }
.section-header--spaced { margin-top:3rem; }
.section-card { background:white; border-radius:10px; padding:2rem; box-shadow:0 4px 15px rgba(0,0,0,0.1); }
.row-divider { border-bottom:2px solid #f0f0f0; padding-bottom:1.5rem; margin-bottom:1.5rem; }
.row-flex { display:flex; justify-content:space-between; align-items:start; margin-bottom:1rem; flex-wrap:wrap; }
.title-h4 { color:#667eea; margin:0; font-size:1.1rem; font-weight:700; }
.role { color:#666; margin:0.3rem 0 0; font-weight:600; }
.contact-details { color:#555; line-height:1.8; font-size:0.95rem; }
.mb-xs { margin:0.3rem 0; }
.placeholder-box { background:#f0f4ff; border:2px dashed #667eea; border-radius:10px; padding:2rem; text-align:center; margin-top:2rem; }
.link-no-underline { color:#667eea; text-decoration:none; }
.link-accent { color: #667eea; text-decoration: underline; }

/* Force larger header/logo sizes for desktop (override pages.css defaults) */
@media (min-width: 769px) {
  .navbar .logo h2.site-logo-title,
  .navbar .logo .site-logo-title {
    font-size: 3.2rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
  }
  .navbar .logo img.logo-sm {
    height: 2.2rem !important;
    width: auto !important;
    margin-top: 1.0rem !important;
  }
  .appa-tagline {
    font-size: 1.1rem !important;
    opacity: 1 !important;
  }
}

/* Ensure tagline is visible on mobile */
@media (max-width: 768px) {
  .appa-tagline {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 0.85rem !important;
    min-height: 1.2em;
    color: white !important;
  }
}

    /* Accent utilities (replace inline heading colors) */
    .accent-green { color: #27ae60; }
    .accent-purple { color: #764ba2; }
    .accent-blue { color: #667eea; }

    /* Small utility for centered muted text */
    .muted-center { text-align: center; color: #666; margin-bottom: 0.5rem; }

    /* Narrow container variant used on some pages */
    .container--narrow { max-width: 700px; margin-left: auto; margin-right: auto; }

    /* Reusable muted paragraph */
    .text-muted { color: #666; font-size: 0.95rem; margin-bottom: 1rem; }

    /* Small muted note */
    .muted-note { margin-top: 0.5rem; font-size: 0.7rem; opacity: 0.8; }


/* Reports & cards */
.report-card { background: white; border: 2px solid #667eea; border-radius: 10px; padding: 1.2rem; text-align: center; box-shadow: 0 8px 12px rgba(0,0,0,0.12); }
/* Color-coded report cards matching heading bar */
.reports-grid--warning .report-card { border-color: #ff6b6b; box-shadow: 0 8px 12px rgba(201,42,42,0.12); }
.reports-grid--warning .report-card:hover { box-shadow: 0 12px 20px rgba(201,42,42,0.2) !important; }
.reports-grid--purple .report-card { border-color: #9c27b0; box-shadow: 0 8px 12px rgba(106,27,154,0.12); }
.reports-grid--purple .report-card:hover { box-shadow: 0 12px 20px rgba(106,27,154,0.2) !important; }
.report-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.report-title { margin-bottom: 0.5rem; font-size: 1rem; }
.badge { background: #667eea; color: #fff; padding: 0.4rem 1rem; border-radius: 5px; font-size: 0.8rem; display: inline-block; }
.reports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

/* Compact list used across reports and cards (replaces inline UL styles) */
.list-compact { margin: 0; padding-left: 1rem; text-align: left; color: #666; line-height: 1.6; font-size: 0.9rem; }
.section-intro { margin-bottom: 1rem; padding: 0.8rem; text-align: center; }
.section-intro h3 { color: #2c3e50; margin-bottom: 0.2rem; font-size: 0.9rem; font-weight: 700; }
.section-intro p { color: #34495e; margin: 0; font-size: 0.85rem; font-weight: 600; }
.mb-sm { margin-bottom: 0.8rem; }
.mt-xs { margin-top: 0.5rem; }
.text-italic { font-style: italic; }
.alert-panel { margin-bottom: 1.5rem; padding: 0.8rem; border-radius: 5px; color: #fff; }
.alert-panel p { margin: 0; font-size: 0.9rem; font-weight: 600; color: inherit; }
.alert-panel.warning { background: #ff6b6b; border-left: 4px solid #c92a2a; box-shadow: 0 6px 12px rgba(201,42,42,0.18); }
.alert-panel.purple { background: #9c27b0; border-left: 4px solid #6a1b9a; box-shadow: 0 6px 12px rgba(106,27,154,0.18); }

/* District promo/content utilities */
.section-panel--promo { 
    padding: 0; 
    border-radius: 5px; 
    box-shadow: none; 
    width: 100%;
    margin: 0 auto; 
    border: 1px dashed #667eea; 
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: auto;
    min-height: 0;
}
.content-panel { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); max-width: 800px; margin: 0 auto; }
.container-muted { padding: 2rem; background: #f8f9fa; border-radius: 8px; }

/* Centering utility for ad/image placeholders */
.ad-center { display:flex; align-items:center; justify-content:center; min-height:0; }

/* Utilities for small repeated inline rules */
.nowrap-title { white-space: nowrap; }
.section-title { text-align: center; color: #667eea; margin-bottom: 2rem; font-size: 1.4rem; }

.announcement-section {
    background: #e3f2fd;
    padding: 0.7rem 0 0.7rem 0;
    border-top: none;
    margin-bottom: 0;
}
.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 1.7rem;
}
.flashing-star {
    color: #00bcd4;
    font-size: 1.1rem;
    animation: flash 1s infinite;
}
@keyframes flash {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}
.announcement-content p {
    margin: 0;
    font-size: 0.93rem;
    color: #e65100;
    /* Deep orange for high contrast */
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-shadow: 0 1px 4px #fffde7, 0 0.5px 0 #ffecb3;
}
.announcement-content .small-note {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e65100;
    line-height: 1.15;
}
.content-box { border-left: 5px solid #667eea; padding: 1rem; }
.star-rating { color: red; font-size: 1.2em; }
.link-underline { color: white; text-decoration: underline; }
.mt-2 { margin-top: 2rem; }
.ad-placeholder { width: 100%; height: auto; max-height: 40px; border-radius:4px; display:block; box-sizing: border-box; }
.divider { border: none; border-top: 2px solid #ddd; }
.back-link { color: white; text-decoration: underline; margin-top: 1rem; display: inline-block; }
.muted-note { margin-top: 0.5rem; font-size: 0.7rem; opacity: 0.8; }

.announcement-section.highlight-flash {
    background: linear-gradient(90deg, #b2ebf2 0%, #81d4fa 100%);
    border: none;
    animation: flash-bg 1.2s infinite alternate;
}
@keyframes flash-bg {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.13); }
}
.highlight-date {
    color: #fff;
    font-weight: bold;
    background: linear-gradient(90deg, #d50000 0%, #ff1744 100%);
    padding: 0 0.28em;
    border-radius: 0.22em;
    border: 2px solid #b71c1c;
    box-shadow: 0 1px 10px rgba(213,0,0,0.18);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    animation: date-flash 1.2s infinite alternate;
}
@keyframes date-flash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.22); }
}




@media (max-width: 768px) {
    .page-header {
        padding: 0.3rem 0.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

/* Page Content */
.page-content {
    padding: 0.8rem 0 2rem;
    min-height: 60vh;
}

.content-box {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.content-box h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

.objectives-list {
    list-style: none;
    padding-left: 0;
}

.objectives-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.objectives-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Districts Grid */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Interactive Map Styles */
.map-section {
    margin-bottom: 3rem;
}

.ap-map-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ap-map-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Interactive district overlays */
.district-overlay {
    position: absolute;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1;
}

.district-overlay:hover {
    background: rgba(102, 126, 234, 0.4);
    border: 2px solid #667eea;
    transform: scale(1.05);
    z-index: 100;
}

.district-hover-label {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    pointer-events: none;
    position: relative;
    z-index: 101;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.district-overlay:hover .district-hover-label {
    opacity: 1;
}

.district-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.district-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.district-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.district-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.district-card p {
    color: #666;
    font-weight: 500;
}

.district-total {
    text-align: center;
    color: #666;
    font-weight: 600;
    margin: -0.5rem 0 1rem;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.stacked-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 0.6rem;
}

.councils-stacked {
    display: none; /* Hide card container since we're using table */
}

/* Table responsive design */
.responsive-table {
    display: block !important;
    overflow-x: auto;
    width: 100%;
    margin: 0.5rem 0;
}

.councils-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    margin: 0.5rem 0;
    table-layout: fixed;
}

.councils-table th,
.councils-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.councils-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.councils-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.councils-table tr:hover {
    background-color: #e3f2fd;
}

/* Mobile table styling */
@media (max-width: 768px) {
    .councils-table {
        font-size: 0.7rem;
        min-width: 0;
        line-height: 1.3;
        margin-left: 0;
        table-layout: fixed;
        width: 100%;
    }

    .councils-table th,
    .councils-table td {
        padding: 0.5rem 0.3rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .councils-table th:nth-child(1),
    .councils-table td:nth-child(1) {
        width: 8%;
        text-align: center;
        font-size: 0.6rem;
    }

    .councils-table th:nth-child(2),
    .councils-table td:nth-child(2) {
        width: 38%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    .councils-table th:nth-child(3),
    .councils-table td:nth-child(3) {
        width: 54%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .councils-table {
        font-size: 0.6rem;
        min-width: 0;
        line-height: 1.2;
        margin-left: 0;
    }

    .councils-table th,
    .councils-table td {
        padding: 0.4rem 0.2rem;
    }

    .councils-table th:nth-child(1),
    .councils-table td:nth-child(1) {
        width: 8%;
        text-align: center;
        font-size: 0.55rem;
    }

    .councils-table th:nth-child(2),
    .councils-table td:nth-child(2) {
        width: 35%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    .councils-table th:nth-child(3),
    .councils-table td:nth-child(3) {
        width: 57%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

@media (max-width: 360px) {
    .councils-table {
        font-size: 0.55rem;
        line-height: 1.1;
        margin-left: 0;
    }

    .councils-table th,
    .councils-table td {
        padding: 0.3rem 0.15rem;
    }

    .councils-table th:nth-child(1),
    .councils-table td:nth-child(1) {
        width: 7%;
        text-align: center;
        font-size: 0.5rem;
    }

    .councils-table th:nth-child(2),
    .councils-table td:nth-child(2) {
        width: 33%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .councils-table th:nth-child(3),
    .councils-table td:nth-child(3) {
        width: 60%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/* Card styles removed - using table instead */

/* Compact stack removed - using table instead */

.dual-sections {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 0;
    margin-bottom: 0;
}

.dual-sections > .section-panel:first-child {
    flex: 0 1 65%;
    max-width: 65%;
    padding-left: 0.05rem;
    padding-right: 0.05rem;
}
.dual-sections > .section-panel:last-child {
    flex: 1 1 35%;
    max-width: 35%;
    display: flex;
    flex-direction: column;
}

/* Home page: State Executive Body (40%) | Advertisement (60%) */
.dual-sections.home-split > .section-panel:first-child {
    flex: 0 1 40%;
    max-width: 40%;
}
.dual-sections.home-split > .section-panel:last-child {
    flex: 1 1 60%;
    max-width: 60%;
}

.section-panel {
    flex: 1 1 0;
    max-width: none;
    width: 100%;
    perspective: 800px;
    align-self: stretch;
    margin: 0;
}

.dual-sections > .section-panel {
    min-height: 0; 
    height: auto;
}

.section-panel h2,
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.section-panel h2,
.section-panel h3 {
    margin-left: 0.1rem;
}

.section-panel p {
    margin-left: 0.1rem;
}

.section-header {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 0 0.08rem;
    padding: 0;
}

.section-header h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.1;
}

.section-header p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.2;
}

.section-header h3 {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.1;
}

.stacked-item {
    background: linear-gradient(145deg, #ffffff, #f1f3ff);
    border-left: 4px solid #667eea;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    display: block;
    animation: stacked-float 6s ease-in-out infinite;
    animation-play-state: running;
    will-change: transform;
}
.downloads-list li, .important-links-list li {
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
    line-height: 1.2;
}

.stacked-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(102,126,234,0.05) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stacked-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 22px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.9);
}

.stacked-item:hover::after {
    opacity: 1;
}

.stacked-item:active {
    transform: translateY(-1px) scale(0.99);
}

.stacked-item.blue {
    border-left-color: #667eea;
}

.stacked-item.purple {
    border-left-color: #764ba2;
}

.stacked-item.teal {
    border-left-color: #14b8a6;
}

.stacked-item.green {
    border-left-color: #059669;
}

.stacked-item h3 {
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
    line-height: 1.2;
}

.stacked-item.blue h3 {
    color: #667eea;
}

.stacked-item.purple h3 {
    color: #764ba2;
}

.stacked-item.teal h3 {
    color: #14b8a6;
}

.stacked-item.green h3 {
    color: #059669;
}

.stacked-item p {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
}

.stacked-item p:last-child {
    margin-bottom: 0;
}

@keyframes stacked-float {
    0%, 100% {
        transform: translateY(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-6px) rotateX(1.2deg);
    }
}

@media (max-width: 900px) {
    .dual-sections {
        flex-direction: column;
    }

    .section-panel {
        max-width: 100%;
    }

    }
    .section-panel h2 {
        text-align: center;
    }
    }
}

.stacked-btn {
    color: white;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 3px 5px rgba(0,0,0,0.18);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.download-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.download-item p {
    color: #666;
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
    animation: swing 0.5s ease !important;
}

@keyframes swing {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(-5deg) scale(1.05); }
    75% { transform: rotate(3deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1.05); }
}

/* Media Gallery */
.media-section {
    margin-bottom: 3rem;
}

.media-section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

.gallery-item p {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.prakasam-gallery .gallery-item img {
    height: 260px;
    object-fit: contain;
    background: #f8f8f8;
}

.guntur-gallery .gallery-item img {
    height: 260px;
    object-fit: contain;
    background: #f8f8f8;
}

.prakasam-youtube {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.prakasam-youtube .youtube-thumb {
    display: block;
    width: min(64px, 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    background: #000;
}

.prakasam-youtube .youtube-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.prakasam-youtube .youtube-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prakasam-youtube .youtube-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.prakasam-youtube .youtube-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.prakasam-youtube svg {
    width: 100%;
    height: 100%;
}

.guntur-youtube {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.guntur-youtube .youtube-thumb {
    display: block;
    width: min(64px, 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    background: #000;
}

.guntur-youtube .youtube-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.guntur-youtube .youtube-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guntur-youtube .youtube-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.guntur-youtube .youtube-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.guntur-youtube svg {
    width: 100%;
    height: 100%;
}

/* News List */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.news-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.news-date {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

    .designation.designation-secondary {
        font-size: 0.85em;
        margin-top: 0.1rem;
    }
/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info,
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-info h2,
.contact-form h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: #666;
    line-height: 1.8;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* District Detail Page */
.district-executives {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

.district-executives h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

.executives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.exec-member {
    text-align: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s ease;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.exec-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.exec-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    overflow: hidden;
}

.exec-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.exec-member h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.exec-member .designation {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.exec-member .phone {
    color: #666;
    font-size: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 300px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.clear-btn, .download-btn {
    padding: 0.75rem 1.5rem;
    min-height: 48px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.clear-btn {
    background: #6c757d;
    color: white;
}

.clear-btn:hover {
    background: #5a6268;
}

.download-btn {
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: #5568d3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3) !important;
    animation: swing 0.5s ease !important;
}

/* Pharmacists Table */
.pharmacists-table {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pharmacists-table h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

/* Remove Head of Department column from district pharmacist lists */
.pharmacists-table table th:nth-child(5),
.pharmacists-table table td:nth-child(5) {
    display: none;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background-color: #f5f7fa;
}

tbody tr:hover {
    background-color: #e8ebf0;
}

/* Highlight rows with vacant or missing name entries */
.pharmacists-table table tbody tr.vacant-row td {
    background-color: #ffe5e5 !important;
}

.pharmacists-table table tbody tr.vacant-row:hover td {
    background-color: #ffd0d0 !important;
}

/* Red text for the NAME column in vacant rows */
.pharmacists-table table tbody tr.vacant-row td:nth-child(2) {
    color: #dc3545;
    font-weight: 700;
    font-style: italic;
}

td {
    padding: 0.6rem 0.8rem;
    color: #333;
    font-size: 0.85rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Light pastel green names in district pharmacy officers lists */
.pharmacists-table table tbody tr td:nth-child(2) {
    color: #4f8f68;
    font-weight: 700;
}

.pharmacists-table table tbody tr td:nth-child(3) {
    font-weight: 400;
}

/* Distinct designation color schemes for district pharmacy officers */
.pharmacists-table table tbody tr.designation-po:not(.vacant-row) td:nth-child(3) {
    color: #6f82df;
    font-weight: 400;
}

.pharmacists-table table tbody tr.designation-spo:not(.vacant-row) td:nth-child(3) {
    color: #3a9c80;
    font-weight: 400;
}

.pharmacists-table table tbody tr.designation-cpo:not(.vacant-row) td:nth-child(3) {
    color: #a66c92;
    font-weight: 400;
}

.pharmacists-table table tbody tr.designation-po:hover:not(.vacant-row) td:nth-child(3) {
    color: #6678d6;
}

.pharmacists-table table tbody tr.designation-spo:hover:not(.vacant-row) td:nth-child(3) {
    color: #2f8d73;
}

.pharmacists-table table tbody tr.designation-cpo:hover:not(.vacant-row) td:nth-child(3) {
    color: #985c85;
}

/* Table Section Labels for organizing by department */
.table-section-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* District-level section labels */
.table-section-label.table-section-district {
    background: linear-gradient(135deg, #1f4f8a 0%, #2f6fad 100%);
    font-size: 0.95rem;
}

/* Department-level section labels with uniform scheme across district pages */
.table-section-label.table-section-dphfw {
    background: linear-gradient(135deg, #13795b 0%, #0f9d76 100%);
}

.table-section-label.table-section-apvvp {
    background: linear-gradient(135deg, #8a5d00 0%, #c98b00 100%);
}

.table-section-label.table-section-dme {
    background: linear-gradient(135deg, #7f1d5a 0%, #a33879 100%);
}

/* Mobile responsive table */
@media (max-width: 768px) {
    .pharmacists-table {
        padding: 0.5rem;
        margin: 0 -0.5rem;
        border-radius: 6px;
    }

    .pharmacists-table h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    table {
        min-width: unset;
        width: 100%;
        display: table;
    }

    th, td {
        padding: 0.35rem 0.25rem;
        font-size: 0.6rem;
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    th {
        font-size: 0.55rem;
        padding: 0.4rem 0.2rem;
    }

    /* Hide less critical columns on mobile */
    th:nth-child(5),
    td:nth-child(5),
    th:nth-child(7),
    td:nth-child(7) {
        display: none;
    }

    /* S.NO column compact */
    th:nth-child(1),
    td:nth-child(1) {
        width: 1.5rem;
        text-align: center;
        padding: 0.3rem 0.1rem;
    }

    .table-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-container {
        min-width: unset;
        width: 100%;
    }

    .search-input {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }

    .clear-btn, .download-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-height: 36px;
        width: 100%;
        justify-content: center;
    }
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 300px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.clear-btn, .download-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn {
    background-color: #f0f0f0;
    color: #333;
}

.clear-btn:hover {
    background-color: #e0e0e0;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .districts-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .executives-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 600px) {
    .page-header h1 {
        font-size: 2rem;
    }

    /* make header container a bit narrower and reduce vertical padding */
    .page-header .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .content-box {
        padding: 1rem;
    }

    .districts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* tighter table on small screens */
    .dataframe {
        font-size: 0.65rem;
        line-height: 1.1;
    }

    .dataframe th, .dataframe td {
        padding: 0.2rem 0.35rem;
    }
}

/* Pay Scales Table Styles */
.dataframe {
    font-size: 0.75rem;
    line-height: 1.2;
    width: 100%;
    border-collapse: collapse;
    display: block;           /* allow horizontal scroll on narrow screens */
    overflow: auto;
}

.dataframe th, .dataframe td {
    padding: 0.3rem 0.5rem;
    border: 1px solid #ddd;
    text-align: left;
}

.dataframe th {
    background-color: #667eea;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Mobile card-list fallback for the pay scales table */
.payscale-cards {
    display: none;
}
.payscale-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.3;
    border-left: 4px solid #667eea;
}
.payscale-card h4 {
    margin: 0 0 0.35rem 0;
    color: #3b49a6;
    font-size: 0.95rem;
}
.payscale-card .meta {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.35rem;
}
.payscale-card .remark {
    color: #444;
    font-size: 0.78rem;
}

@media (max-width: 480px) {
    .dataframe {
        display: none;    /* hide wide table on very small screens */
    }
    .payscale-cards {
        display: block;
    }
}

.signature-footer {
    text-align: center;
    margin: 2.2rem 0 0 0;
    font-weight: 400;
    color: #e0e0e0;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    line-height: 1.3;
}
.signature-footer .signature-maintainer {
    font-size: 0.85em;
    color: #b0b0b0;
    margin-bottom: 0.2rem;
    display: block;
}
.signature-footer .signature-credentials {
    font-size: 0.62em;
    color: #cfcfcf;
}

.signature-footer .signature-role {
    font-size: 0.74em;
    color: #bdbdbd;
    font-weight: 400;
}

.footer-mail-icon {
    filter: drop-shadow(0 0 2px #000);
}

.footer-mail-link {
    color: #fff;
}

.district-ad-wrap {
    margin-bottom: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .district-executives {
        padding: 0.8rem;
        width: calc(100% - 1rem);
        margin-bottom: 1.5rem;
    }
    .executives-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    .exec-member {
        padding: 0.5rem;
    }
    .exec-photo {
        width: 60px;
        height: 60px;
    }
    .exec-member h3 {
        font-size: 0.65rem;
    }
    .exec-member .designation {
        font-size: 0.58rem;
    }
    .exec-member .phone {
        font-size: 0.58rem;
    }
    .section-panel--promo {
        padding: 0;
        width: 100%;
        height: auto;
        min-height: 0;
    }
}
    font-weight: 400;
}
@media (max-width: 600px) {
    .signature-footer .signature-credentials {
        font-size: 0.52em;
    }
}

/* Force remove bottom white space from Executive Body section - all views */
.dual-sections,
section.dual-sections {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.dual-sections > .section-panel {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.dual-sections .scrolling-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.section-panel {
    padding-bottom: 0 !important;
}
