/* GP PADALI – PREMIUM REDESIGN: Emerald Green + Amber Gold Theme */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ===================== THEME VARIABLES ===================== */
:root {
    --c-primary:     #1a3a6b;   /* Deep Navy Blue */
    --c-secondary:   #2a5298;   /* Royal Blue */
    --c-accent:      #c9952a;   /* Warm Gold */
    --c-scroll-thumb: var(--c-accent);
    --c-scroll-track: rgba(0,0,0,0.05);

    --c-accent-dark: #a07318;   /* Deep Gold */
    --c-green:       #1a3a6b;   /* Navy (replacing old green) */
    --c-bg:          #f5f6fa;   /* Soft Lavender-White */
    --c-surface:     #ffffff;
    --c-text:        #1e2a3a;
    --c-light-text:  #4a5568;
    --c-border:      #dde3ed;
    --c-gradient:    linear-gradient(135deg, #1a3a6b 0%, #2a5298 60%, #1e3f7a 100%);
    --shadow-sm:     0 4px 12px rgba(26, 58, 107, 0.10);
    --shadow-md:     0 10px 30px rgba(26, 58, 107, 0.14);
    --shadow-lg:     0 20px 50px rgba(26, 58, 107, 0.18);
    --radius:        14px;
    --radius-sm:     8px;
    --radius-full:   50px;
}

/* ===================== BASE RESET ===================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    background-color: var(--c-bg) !important;
    color: var(--c-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif !important;
    color: var(--c-primary);
    line-height: 1.25;
}

/* ===================== KEYFRAME ANIMATIONS ===================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,146,10,0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(232,146,10,0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}
@keyframes marqueeLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================== HEADER ===================== */
.new-royal-header {
    background: var(--c-gradient);
    color: white;
    box-shadow: 0 4px 24px rgba(26,58,107,0.35);
    position: static;
    z-index: 1100;
    animation: fadeInDown 0.5s ease-out;
    margin-bottom: 0 !important;
}

/* Top info bar */
.royal-top-bar {
    background: rgba(0,0,0,0.20);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #c8ddf7;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 12px;
}
.royal-top-bar a { color: #c8ddf7; }

/* Main nav row */
.royal-main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* Brand / Logo */
.royal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.royal-brand img {
    height: 62px;
    background: white;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid var(--c-accent);
    transition: transform 0.3s;
}
.royal-brand img:hover { transform: scale(1.08) rotate(5deg); }

.royal-brand-text h1 {
    margin: 0;
    font-size: 1.35rem !important;
    color: white !important;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.2;
}
.royal-brand-text p {
    margin: 3px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #bee3f8;
    font-weight: 500;
}

/* Navigation menu */
.royal-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.royal-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.25s;
    white-space: nowrap;
}
.royal-menu a:hover,
.royal-menu a.active {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}
.royal-menu a.active {
    background: var(--c-accent);
    color: white;
    box-shadow: 0 3px 10px rgba(232,146,10,0.4);
}

/* Actions (language + seal) */
.royal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.royal-actions img {
    height: 44px;
    background: white;
    border-radius: 6px;
    padding: 3px;
    box-shadow: var(--shadow-sm);
}
.lang-sel {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.lang-sel:hover { background: rgba(255,255,255,0.22); }
.lang-sel option { color: black; background: white; }

/* ===================== INNER PAGE SPACER ===================== */
.inner-page-spacer {
    height: 0;
    background: transparent;
    margin: 0;
    padding: 0;
}

/* ===================== HERO SPLIT ===================== */
.split-hero {
    display: flex;
    align-items: stretch;
    background: white;
    margin: 0 0 30px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 320px;
    animation: zoomIn 0.7s ease-out;
}
.split-hero-text {
    flex: 1;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-hero-text h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 14px;
    background: var(--c-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.split-hero-text p {
    font-size: 1rem;
    color: var(--c-light-text);
    margin-bottom: 20px;
    line-height: 1.6;
}
.split-hero-slider {
    flex: 1;
    min-height: 320px;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}
.split-hero-slider .h-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.split-hero-slider .h-slide.active { opacity: 1; }

/* CTA Button */
.btn-royal {
    background: var(--c-gradient);
    color: white;
    padding: 13px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 18px rgba(26,58,107,0.35);
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.btn-royal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(26,58,107,0.45);
    filter: brightness(1.1);
}

/* ===================== MINISTERS STRIP ===================== */
.royal-ministers {
    padding: 20px 5%;
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5298 60%, #1e3f7a 100%);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: white;
    border-top: 3px solid var(--c-accent);
    position: relative;
    overflow: hidden;
}
.royal-ministers::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.royal-minister-card {
    text-align: center;
    width: 115px;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    transition: transform 0.3s;
}
.royal-minister-card:hover { transform: translateY(-5px); }
.royal-minister-card img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 3px solid var(--c-accent);
    margin-bottom: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, border-color 0.3s;
}
.royal-minister-card:hover img {
    transform: scale(1.08);
    border-color: white;
}
.royal-minister-card strong {
    display: block;
    font-size: 0.82rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}
.royal-minister-card span {
    font-size: 0.72rem;
    color: #c8ddf7;
    font-family: 'Poppins', sans-serif;
}

/* ===================== MAIN SECTION GRID ===================== */
.royal-section {
    padding: 20px 4%;
    animation: fadeInUp 0.6s ease-out;
}
.royal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Cards */
.royal-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--c-accent);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    box-sizing: border-box;
}
.royal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.royal-card h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--c-border);
    padding-bottom: 10px;
}

/* Alerts */
.royal-alert {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    background: #eef3fb;
    border-left: 4px solid var(--c-secondary);
    border-radius: 6px;
    transition: transform 0.2s;
}
.royal-alert:hover { transform: translateX(5px); }

/* Scheme links */
.royal-scheme {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    padding: 18px;
    background: #eef3fb;
    border: 1px solid #c3cfe2;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--c-text);
    transition: all 0.3s;
    border-left: 4px solid var(--c-secondary);
}
.royal-scheme:hover {
    background: var(--c-primary);
    color: white;
    transform: translateX(8px);
    border-left-color: var(--c-accent);
}
.royal-scheme:hover .royal-icon { filter: brightness(10); }
.royal-icon { font-size: 2.2rem; }

/* ===================== POPULATION STATS ===================== */
.royal-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    padding: 45px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 36px;
    border-top: 4px solid var(--c-secondary);
    position: relative;
    overflow: hidden;
}
.royal-stats::after {
    content: '🇮🇳';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.08;
}
.stat-box {
    text-align: center;
    flex: 1;
    min-width: 130px;
    animation: zoomIn 0.6s ease-out;
}
.stat-box strong {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--c-primary);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-box span {
    font-size: 0.9rem;
    color: var(--c-light-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* ===================== CENSUS TABLE ===================== */
.census-table-wrap {
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    width: 100%;
}
.census-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: auto;
}
.census-table th {
    background: var(--c-primary);
    color: white;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    word-break: break-word;
}
.census-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--c-border);
    text-align: center;
    word-break: break-word;
}
.census-table tr:nth-child(even) td { background: #f0f4fb; }
.census-table tr:hover td { background: #d5e3f7; }

@media (max-width: 768px) {
    .census-table th, .census-table td {
        font-size: 0.75rem;
        padding: 6px 4px;
    }
}

/* ===================== MEMBERS GRID ===================== */
.royal-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding: 10px 0;
}
.member-ref-card, .royal-member {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 3px solid var(--c-accent);
}
.member-ref-card:hover, .royal-member:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.member-img-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--c-accent);
    margin: 25px auto 15px;
    display: block;
    box-shadow: 0 4px 12px rgba(26,58,107,0.15);
    transition: transform 0.3s;
}
.member-ref-card:hover .member-img-circle { transform: scale(1.06); }
.member-info-box {
    padding: 0 20px 22px;
}
.member-name-ref {
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--c-primary);
    margin: 0 0 6px;
}
.member-role-ref {
    font-size: 0.82rem;
    color: var(--c-accent-dark);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #eef3fb;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Home member cards */
.member-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--c-secondary);
    transition: transform 0.3s, box-shadow 0.3s;
}
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.profile-frame {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--c-accent);
    box-shadow: 0 3px 10px rgba(26,58,107,0.15);
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-primary);
    margin: 0 0 4px;
    font-family: 'Poppins', sans-serif;
}
.profile-role {
    font-size: 0.75rem;
    color: var(--c-accent-dark);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: #eef3fb;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* Initials placeholder */
.initials-placeholder {
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5298 100%) !important;
    color: white !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    border: 3px solid var(--c-accent) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* ===================== GALLERY ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.gallery-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.gallery-card::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(26,58,107,0.6);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-card:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.gallery-card:hover::after { opacity: 1; }
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.close-lightbox {
    position: fixed;
    top: 20px;
    right: 28px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s;
}
.close-lightbox:hover { transform: rotate(90deg) scale(1.2); }

/* ===================== CONTACT PAGE ===================== */
.contact-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 20px;
}
.contact-ref-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--c-secondary);
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-ref-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.contact-icon-ref {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 14px;
}
.contact-role-title {
    font-weight: 700;
    color: var(--c-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-detail-row {
    font-size: 0.9rem;
    color: var(--c-light-text);
    margin: 6px 0;
    border-top: 1px solid var(--c-border);
    padding-top: 6px;
}
.contact-detail-row strong {
    color: var(--c-text);
    font-weight: 600;
    margin-right: 6px;
}
.address-ref-box {
    background: #eef3fb;
    border-left: 4px solid var(--c-secondary);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--c-text);
}
.emergency-ref-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.emergency-item-ref {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    padding: 18px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid #e53e3e;
    flex: 1;
    min-width: 180px;
    transition: transform 0.2s;
}
.emergency-item-ref:hover { transform: translateX(6px); }
.em-icon { font-size: 2rem; }
.em-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-text);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}
.em-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #e53e3e;
    font-family: 'Playfair Display', serif;
}

/* ===================== FOOTER ===================== */
.main-footer {
    background: var(--c-gradient);
    color: rgba(255,255,255,0.85);
    padding: 50px 5% 25px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-col h3 {
    color: var(--c-accent) !important;
    font-size: 1.1rem;
    margin-bottom: 18px;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(232,146,10,0.3);
    padding-bottom: 10px;
}
.footer-col p, .footer-col li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin: 0 0 8px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-links strong { color: rgba(255,255,255,0.95); }
.copyright-text, .disclaimer-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* ===================== CERTIFICATE / SCHEME CARDS ===================== */
.glass-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--c-secondary);
    transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.card-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eef3fb;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 2.2rem;
    transition: all 0.3s;
    border: 2px solid var(--c-border);
}
.glass-card:hover .card-icon-circle {
    background: var(--c-primary);
    color: white;
    transform: rotate(12deg) scale(1.1);
}
.declaration-download-btn {
    background: var(--c-gradient);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(26,58,107,0.25);
}
.declaration-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,58,107,0.35);
}

/* ===================== TABLES (Services, Revenue) ===================== */
.ref-table-container { overflow-x: auto; border-radius: var(--radius-sm); }
.ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.ref-table th {
    background: var(--c-primary);
    color: white;
    padding: 12px 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
}
.ref-table td {
    padding: 10px;
    border-bottom: 1px solid var(--c-border);
    text-align: center;
    vertical-align: middle;
}
.ref-table tr:nth-child(even) td { background: #f0f4fb; }
.ref-table tr:hover td { background: #d5e3f7; }

.scheme-link-ext.scheme-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--c-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}
.scheme-btn:hover {
    background: var(--c-primary-dark);
}

/* Leadership Scroll Row */
.royal-ministers-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    margin: 0 10px;
}
.royal-ministers-scroll-wrap::-webkit-scrollbar {
    height: 6px;
}
.royal-ministers-scroll-wrap::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}
.royal-ministers-scroll-wrap::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
.royal-ministers-scroll-wrap::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.scheme-link-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-gradient);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.scheme-link-external:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

/* ===================== SECTION HEADINGS ===================== */
.section-heading {
    font-size: 2rem;
    color: var(--c-primary);
    margin-bottom: 12px;
    font-weight: 700;
}
.heading-underline {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-secondary));
    margin: 0 auto 30px;
    border-radius: 10px;
}

/* ===================== MAIN CONTENT AREA ===================== */
.main-container { min-height: calc(100vh - 200px); }
.content-wrapper { min-height: 0; padding: 0; }

/* Generic grid for non-home pages */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 12px 4% 30px;
}
.scheme-detail-box {
    background: white;
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

/* ===================== EXCLUDED SERVICES / NOTES ===================== */
.excluded-services-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}
.excluded-service-card {
    background: #FFF8E1;
    border: 1px solid #F6D860;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}
.notes-box {
    background: #FFF0EE;
    border-left: 4px solid #e53e3e;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}
.gp-service-contact {
    background: #eef3fb;
    border: 1px solid #c3cfe2;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}
.detail-subtitle {
    color: var(--c-primary);
    font-size: 1.1rem;
    margin: 22px 0 10px;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
}
.detail-list {
    padding-left: 20px;
    line-height: 1.8;
}
.numbered-list { list-style: decimal; }
.reference-box {
    background: #eef3fb;
    border-left: 4px solid var(--c-secondary);
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}
.back-btn {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.back-btn:hover { background: var(--c-border); }

/* Members page inner grid overrides */
.members-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .royal-grid-2 { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
}

/* ===================== MOBILE HAMBURGER MENU ===================== */
.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    color: white;
    font-size: 1.3rem;
    line-height: 1;
    transition: background 0.2s;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.25); }

.royal-bottom-nav.mobile-open .royal-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
}
.royal-bottom-nav.mobile-open .royal-menu a {
    padding: 12px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .royal-main-nav-container { padding: 8px 4%; gap: 8px; }
    .royal-brand img { height: 48px; }
    .royal-brand-text h1 { font-size: 1rem !important; white-space: normal; }
    .royal-brand-text p { font-size: 0.7rem; }
    .royal-actions img { height: 36px; }
    .lang-sel { font-size: 0.78rem; padding: 4px 8px; }
    
    /* Mobile hamburger */
    .mobile-menu-toggle { display: flex; align-items: center; gap: 6px; font-size: 1rem; }
    
    /* Nav: hide by default on mobile */
    .royal-bottom-nav {
        padding: 0 4%;
        flex-direction: column;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    }
    .royal-sticky-mobile-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        width: 100%;
    }
    .royal-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .royal-menu li { width: 100%; }
    .royal-menu a {
        display: block;
        padding: 10px 12px;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-radius: 0;
    }
    .royal-menu.open { display: flex; }
    
    .split-hero { flex-direction: column; margin: 8px 3%; }
    .split-hero-text { padding: 24px 20px; }
    .split-hero-text h2 { font-size: 1.6rem; }
    .split-hero-slider { min-height: 200px; }
    
    .royal-ministers { padding: 14px 4%; gap: 12px; }
    .royal-minister-card { width: 80px; }
    .royal-minister-card img { width: 60px; height: 60px; }
    .royal-minister-card strong { font-size: 0.72rem; }
    .royal-minister-card span { font-size: 0.62rem; }
    
    .royal-section { padding: 14px 3%; }
    .royal-grid-2 { grid-template-columns: 1fr; gap: 16px; }
    .royal-card { padding: 16px; }
    .royal-card h3 { font-size: 1.1rem; }
    
    .royal-stats { padding: 20px 16px; }
    .stat-box strong { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .excluded-services-box { grid-template-columns: 1fr; }
    
    .main-content-grid { padding: 8px 3% 24px; }
    .scheme-detail-box { padding: 18px; }
    .royal-members-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
    .member-img-circle { width: 90px; height: 90px; }
    .member-name-ref { font-size: 0.85rem; }
    
    .ref-table { font-size: 0.78rem; }
    .ref-table th, .ref-table td { padding: 8px 6px; }
    
    .contact-ref-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .emergency-ref-container { flex-direction: column; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .royal-brand-text h1 { font-size: 0.9rem !important; }
    .royal-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .royal-members-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .contact-ref-grid { grid-template-columns: 1fr; }
    .split-hero-text h2 { font-size: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .ref-table-container { font-size: 0.72rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .member-img-circle { width: 75px; height: 75px; }
}

html { scroll-padding-top: 0; }

.royal-main-nav-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 4%; flex-wrap: nowrap; }
.royal-bottom-nav { background: rgba(0,0,0,0.18); padding: 6px 4%; display: flex; justify-content: center; box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); }
.royal-section { padding: 20px 4%; }
.split-hero { margin: 12px 3%; min-height: 300px; }
.split-hero-slider { min-height: 300px; }
.royal-stats { padding: 20px; margin-bottom: 16px; }
.royal-main-nav { padding: 0; }


/* ===================================================
   LAYOUT & WHITE SPACE FIXES
   =================================================== */
.main-container { margin: 0 0 30px; padding: 0; }
.content-wrapper { margin: 0; padding: 0; }
#dynamic-content-area { margin: 0; padding: 0; overflow: visible; }
.site-wrapper { padding: 0; margin: 0; }
.max-w-container { padding-top: 10px !important; margin-top: 0 !important; }
#main-wrapper { padding: 0 !important; margin: 0 !important; }
body .section-heading { margin-top: 5px !important; }
.main-content-grid { padding-top: 10px !important; }

/* Fix card height - auto not 100% to prevent overlap */
.royal-card { height: auto !important; }

/* ===================================================
   LEADERS / MINISTERS STRIP - HORIZONTAL SCROLL (All 10)
   =================================================== */
.royal-ministers-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5298 60%, #1e3f7a 100%);
    border-top: 3px solid var(--c-accent);
    scrollbar-width: none; /* Firefox */
}
.royal-ministers-scroll-wrap::-webkit-scrollbar { display: none; }

.royal-ministers-scroll-wrap .royal-ministers {
    display: flex !important;
    flex-wrap: nowrap !important;
    min-width: max-content;
    padding: 16px 4%;
    gap: 18px;
    justify-content: flex-start;
    border-top: none;
    background: transparent;
    margin-top: 0;
}

/* ===================================================
   CENSUS TABLE STYLES
   =================================================== */
.census-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--c-border);
}
.census-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    white-space: nowrap;
}
.census-table thead th {
    background: var(--c-primary);
    color: #fff;
    padding: 10px 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
    font-size: 0.84rem;
}
.census-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--c-border);
    text-align: center;
    vertical-align: middle;
}
.census-table tbody tr:nth-child(even) td { background: #f0f4fb; }
.census-table tbody tr:hover td { background: #d5e3f7; }
.census-total-row td {
    background: #EFF4FF !important;
    font-weight: 700;
    color: var(--c-primary);
}

/* ===================================================
   ALERT NEWS SECTION
   =================================================== */
.royal-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #eef3fb;
    border-left: 4px solid var(--c-secondary);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.royal-alert .royal-icon {
    font-size: 1.5rem;
    min-width: 28px;
    margin-top: 2px;
}

/* ===================================================
   SCHEME LINK CARDS
   =================================================== */
.royal-scheme {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #eef3fb;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--c-text);
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
    cursor: pointer;
}
.royal-scheme:hover {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(26,58,107,0.18);
}
.royal-scheme:hover span,
.royal-scheme:hover strong { color: #fff !important; }
.royal-scheme .royal-icon {
    font-size: 1.5rem;
    min-width: 28px;
}

/* ===================================================
   HOME HERO BUTTON
   =================================================== */
.btn-royal {
    background: var(--c-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(26,58,107,0.25);
}
.btn-royal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,58,107,0.35);
}

/* ===================================================
   ROYAL SECTION compact spacing
   =================================================== */
.royal-section { padding: 18px 4% 24px; }
.split-hero { margin: 10px 3% 0; min-height: 295px; }
.royal-stats { padding: 18px; margin-bottom: 12px; }

/* ===================================================
   MOBILE RESPONSIVE OVERRIDES
   =================================================== */
@media (max-width: 768px) {
    /* Ministers strip */
    .royal-ministers-scroll-wrap .royal-ministers {
        padding: 12px 3%;
        gap: 14px;
    }
    .royal-minister-card { width: 80px !important; }
    .royal-minister-card img { width: 58px !important; height: 58px !important; }
    .royal-minister-card strong { font-size: 0.63rem !important; }
    .royal-minister-card span { font-size: 0.58rem !important; }

    /* Grid layout */
    .royal-grid-2 { grid-template-columns: 1fr !important; gap: 16px; }
    .royal-section { padding: 12px 3% 20px; }

    /* Census table */
    .census-table { font-size: 0.75rem; }
    .census-table thead th,
    .census-table tbody td { padding: 7px 8px; }

    /* Member list home - 2 columns on mobile */
    #member-list-home { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }

    /* Cards */
    .royal-card { padding: 16px !important; }
    .royal-card h3 { font-size: 1rem; }

    /* Alert */
    .royal-alert { padding: 10px 12px; gap: 10px; }
    .royal-alert .royal-icon { font-size: 1.2rem; }

    /* Schemes */
    .royal-scheme { padding: 10px 12px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
    .census-table { font-size: 0.7rem; }
    .census-table thead th,
    .census-table tbody td { padding: 6px 6px; }
    #member-list-home { grid-template-columns: 1fr 1fr !important; }
    .split-hero { flex-direction: column; margin: 6px 2% 0; }
    .split-hero-text h2 { font-size: 1.3rem; }
    .royal-scheme { padding: 9px 10px; }
}

/* ===================== MOBILE RESPONSIVE ===================== */
@media (max-width: 992px) {
    .split-hero {
        flex-direction: column;
    }
    .royal-grid-2 {
        grid-template-columns: 1fr !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .royal-stats {
        flex-direction: column;
    }
    .split-hero-slider {
        min-height: 250px;
    }
    .split-hero-text h2 {
        font-size: 1.8rem;
    }
    .royal-main-nav {
        flex-direction: column;
        text-align: center;
    }
    .royal-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    .royal-brand {
        justify-content: center;
    }
}

/* =====================================================================
   GP PADALI - HOME PAGE LAYOUT, LEADERSHIP & MOBILE RESPONSIVENESS FIX
   ===================================================================== */

/* === HOME PAGE: Remove all blank/white space, tight layout === */
.content-wrapper,
#dynamic-content-area {
    margin: 0 !important;
    padding: 0 !important;
}

/* Split Hero - no margin gaps */
.split-hero {
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 340px;
}
.split-hero-text {
    padding: 32px 36px;
    background: linear-gradient(135deg, #f5f6fa 0%, #eaf0fb 100%);
}
.split-hero-slider {
    min-height: 340px;
    background: #e8eef8;
}

/* === LEADERSHIP SECTION: Full visibility, proper card display === */
.royal-ministers-scroll-wrap {
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5298 60%, #1e3f7a 100%) !important;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.royal-ministers-scroll-wrap::-webkit-scrollbar { display: none; }

.royal-ministers-scroll-wrap .royal-ministers {
    display: flex !important;
    flex-wrap: nowrap !important;
    min-width: max-content;
    padding: 16px 20px;
    gap: 16px;
    justify-content: flex-start !important;
    background: transparent !important;
    border-top: none !important;
    margin: 0 !important;
}

/* Leadership card - all visible */
.royal-minister-card {
    flex: 0 0 130px !important;
    min-width: 130px !important;
    background: rgba(255,255,255,0.95) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    padding: 14px 8px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.royal-minister-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22) !important;
}
.royal-minister-card img {
    width: 78px !important;
    height: 78px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #b8860b !important;
}
.royal-minister-card .initials-avatar {
    width: 78px !important;
    height: 78px !important;
    border-radius: 50% !important;
    background: #1565C0 !important;
    color: #fff !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid #b8860b !important;
}
.royal-minister-card strong {
    display: block !important;
    font-size: 0.78rem !important;
    color: #1a237e !important;
    line-height: 1.3 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
}
.royal-minister-card span {
    font-size: 0.68rem !important;
    color: #1a3a6b !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    background: #dce8f7;
    padding: 2px 6px;
    border-radius: 10px;
}

/* === POPULATION / CENSUS TABLE: All text visible === */
.census-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}
.census-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 700px;
}
.census-table thead th {
    background: var(--c-primary) !important;
    color: #ffffff !important;
    padding: 11px 14px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    text-align: center !important;
    font-size: 0.82rem !important;
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 0.3px;
}
.census-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--c-border);
    text-align: center;
    vertical-align: middle;
    color: var(--c-text) !important;
    font-size: 0.85rem;
}
.census-table tbody tr:nth-child(even) td { background: #f0f4fb; }
.census-table tbody tr:hover td { background: #d5e3f7; }
.census-total-row td {
    background: #e0ebfa !important;
    font-weight: 700;
    color: var(--c-primary) !important;
}

/* === HOME PAGE SECTIONS: No white space, tight layout === */
.royal-section {
    padding: 16px 4% 20px !important;
    margin: 0 !important;
}
.royal-card {
    height: auto !important;
    margin-bottom: 18px;
}
.royal-card h3 {
    color: var(--c-primary) !important;
    font-size: 1.2rem;
}

/* Member Cards in Home - proper sizing */
#member-list-home .member-card {
    padding: 14px 8px !important;
}
#member-list-home .profile-frame {
    width: 75px !important;
    height: 75px !important;
}
#member-list-home .profile-name {
    font-size: 0.78rem !important;
    line-height: 1.2;
}
#member-list-home .profile-role {
    font-size: 0.65rem !important;
    padding: 1px 6px;
}

/* === RESPONSIVE: Full mobile support === */
@media (max-width: 768px) {
    .split-hero {
        flex-direction: column !important;
        min-height: auto !important;
        margin: 0 !important;
    }
    .split-hero-text {
        padding: 20px 16px !important;
        order: 1;
    }
    .split-hero-text h2 {
        font-size: 1.4rem !important;
    }
    .split-hero-slider {
        min-height: 200px !important;
        order: 2;
    }

    /* Leadership cards smaller on mobile */
    .royal-minister-card {
        flex: 0 0 100px !important;
        min-width: 100px !important;
        padding: 10px 6px !important;
    }
    .royal-minister-card img,
    .royal-minister-card .initials-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    .royal-minister-card strong { font-size: 0.65rem !important; }
    .royal-minister-card span { font-size: 0.58rem !important; }

    /* Home sections stack */
    .royal-section [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Member list home 2 columns on mobile */
    #member-list-home {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Census table mobile */
    .census-table {
        font-size: 0.72rem !important;
    }
    .census-table thead th,
    .census-table tbody td {
        padding: 7px 8px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .main-footer {
        padding: 30px 5% 20px !important;
    }

    /* Members page */
    .royal-members-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .member-img-circle {
        width: 80px !important;
        height: 80px !important;
    }
    .member-name-ref { font-size: 0.8rem !important; }
    .member-role-ref { font-size: 0.72rem !important; }

    /* Contact grid */
    .contact-ref-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .contact-ref-card { padding: 16px 12px !important; }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Royal section padding */
    .royal-section { padding: 12px 3% 16px !important; }
    .royal-card { padding: 14px !important; margin-bottom: 14px !important; }
}

@media (max-width: 480px) {
    .royal-brand-text h1 { font-size: 0.88rem !important; }
    .royal-top-bar { font-size: 0.72rem; padding: 5px 3%; }

    /* Members page 2 col on small mobile */
    .royal-members-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .member-img-circle {
        width: 68px !important;
        height: 68px !important;
        margin: 14px auto 10px !important;
    }

    /* Census table */
    .census-table { font-size: 0.65rem !important; }
    .census-table thead th,
    .census-table tbody td { padding: 5px 6px !important; }

    /* Contact single col on tiny mobile */
    .contact-ref-grid { grid-template-columns: 1fr !important; }

    /* Gallery 2 col */
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; }
    .footer-col h3 { font-size: 1rem !important; }

    /* Home split hero */
    .split-hero-text h2 { font-size: 1.2rem !important; }
    .split-hero-slider { min-height: 160px !important; }
    
    /* Leadership */
    .royal-minister-card {
        flex: 0 0 88px !important;
        min-width: 88px !important;
    }
    .royal-minister-card img,
    .royal-minister-card .initials-avatar {
        width: 52px !important;
        height: 52px !important;
    }
}

/* Navigation mobile active state fix */
.royal-menu.open {
    display: flex !important;
}

/* Header is static - scrolls with page content */
.new-royal-header {
    z-index: 1100 !important;
    position: static !important;
}

/* Fix any overflow-hidden blocking content */
.royal-card,
.split-hero {
    overflow: visible;
}
.split-hero-slider {
    overflow: hidden;
}
