html {
    scroll-padding-top: calc(var(--header-height) + 25px);
}

:root {
    --bg-dark: #0e2040;
    --bg-deeper: #081426;
    --bg-card: rgba(20, 50, 95, 0.45);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-glow: rgba(59, 165, 224, 0.15);
    --primary: #3ba5e0;
    --primary-light: #6ebdec;
    --primary-glow: rgba(59, 165, 224, 0.45);
    --accent: #ffc233;
    --accent-red: #e74c3c;
    --text-main: #ffffff;
    --text-muted: #b0c8e8;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 200px;

    /* Layout Tokens (Desktop-First Base) */
    --section-spacing: 6.5rem;
    --grid-gap: 3rem;
    --card-padding: 3.5rem;
    --header-margin: 4.5rem;
}

/* Tablet & Mobile Progressive Downgrades (iPads: Pro, Air, Mini, etc) */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 4rem;
        --grid-gap: 2rem;
        --card-padding: 2.5rem;
        --header-margin: 2.5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --section-spacing: 2.5rem;
        --grid-gap: 1.25rem;
        --card-padding: 1.5rem;
        --header-margin: 1.5rem;
    }
}

/* Lucide Icon Global Styles */
i[data-lucide],
svg.lucide {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    stroke-width: 2px;
}

.nav-icon-sm {
    width: 14px !important;
    height: 14px !important;
    margin-left: 4px;
    opacity: 0.7;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Blob */
#glow-blob {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(59, 165, 224, 0.1) 50%, transparent 70%);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translateX(-40%) scale(1.2);
        opacity: 0.8;
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2,
.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

/* Readability - Constrained Line Length on Desktop */
.hero-p,
.section-p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.text-left .hero-p,
.text-left .section-p {
    margin-left: 0;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.glass-panel {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glass-glow);
}

/* Section Background Variants */
.section-variant-1 {
    background: radial-gradient(circle at 10% 20%, rgba(59, 165, 224, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(245, 166, 35, 0.03) 0%, transparent 50%);
}

.section-variant-2 {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deeper) 100%);
    border-top: 1px solid var(--glass-border);
}

.section-variant-3 {
    background: rgba(20, 40, 70, 0.3) 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.02'%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");
}

/* Entrance Animations - Modern Staggered Look */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    visibility: hidden;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Fail-safe reveal for hero elements to avoid blank top section */
.hero .reveal-up,
.internal-hero .reveal-up,
.subpage-header .reveal-up {
    animation: revealIn 1s ease forwards 0.3s;
}

@keyframes revealIn {
    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

.internal-hero {
    min-height: 350px;
    padding: 110px 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.6), rgba(10, 13, 20, 0.8), rgba(245, 166, 35, 0.3)), url('assets/images/other-tabs-header-banner/banner-bg.png') center/cover no-repeat;
    border-bottom: 1px solid var(--primary, #3ba5e0);
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    :root {
        --header-height: 145px; /* Mobile: wrapped banner height */
    }
    .internal-hero {
        min-height: 240px;
        padding: 100px 1.25rem 40px !important;
    }
}

/* Inner container for .internal-hero Ã¢â‚¬â€ centers text properly on wide screens */
.internal-hero .hero-content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.internal-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Direct children of .internal-hero without a container */
.internal-hero>h1,
.internal-hero>p,
.internal-hero>.reveal-up {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.internal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-dark, #0e2040), transparent);
}

.internal-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    text-align: center;
}

.internal-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
}

/* Shared subpage header class */
.subpage-header {
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.6), rgba(10, 13, 20, 0.8), rgba(245, 166, 35, 0.3)), url('assets/images/other-tabs-header-banner/banner-bg.png') center/cover no-repeat;
    padding: 110px 2rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

@media (max-width: 767px) {
    .subpage-header {
        padding: 100px 1.25rem 40px !important;
        min-height: 240px;
    }
}

.subpage-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.subpage-header-inner h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: #fff;
}

.subpage-header-inner p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Premium Top Branding Banner (Teaching Service Commission Style)
   ========================================================================== */
.top-branding-banner {
    width: 100%;
    background: linear-gradient(to right, #051329, #0a2240, #051329);
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.2px, transparent 1.2px);
    background-size: 16px 16px;
    border-bottom: 2px solid rgba(245, 166, 35, 0.35); /* Glowing gold divider */
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    display: block;
    position: relative;
    overflow: hidden;
}

.top-branding-banner .banner-inner {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.top-branding-banner .banner-logo-container {
    flex: 0 0 auto;
    width: 6.25rem;
    height: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
}



.top-branding-banner .banner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Add a soft white glow behind the left logo so the black text stands out */
.top-branding-banner .left-logo .banner-logo {
    filter: drop-shadow(0 6px 10px rgba(255, 255, 255, 0.7));
}

/* Center text block styles */
.top-branding-banner .banner-text-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.top-branding-banner .banner-country-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.15rem;
}

.top-branding-banner .banner-country {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffc233; /* Gold accent */
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.top-branding-banner .banner-line {
    height: 1px;
    width: 70px;
    background: linear-gradient(to right, transparent, rgba(245, 166, 35, 0.45));
}

.top-branding-banner .banner-line.right {
    background: linear-gradient(to left, transparent, rgba(245, 166, 35, 0.45));
}

.top-branding-banner .banner-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.12em;
    margin: 0.15rem 0;
    text-shadow: 0 0 10px rgba(59, 165, 224, 0.45); /* Soft cyan text shadow glow */
}

.top-branding-banner .banner-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.25rem 0;
}

.top-branding-banner .divider-line {
    height: 1px;
    width: 100px;
    background: linear-gradient(to right, transparent, rgba(245, 166, 35, 0.45));
}

.top-branding-banner .divider-line.right {
    background: linear-gradient(to left, transparent, rgba(245, 166, 35, 0.45));
}

.top-branding-banner .divider-diamond {
    width: 6px;
    height: 6px;
    background: #ffc233;
    transform: rotate(45deg);
    box-shadow: 0 0 6px rgba(255, 194, 51, 0.85);
}

.top-branding-banner .banner-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0;
}

/* Hide the regular duplicate logo whenever the top banner is present */
.top-branding-banner ~ .header-container .logo {
    display: none !important;
}

/* Desktop adjustments for layout wrapper */
@media (min-width: 1024px) {
    /* Centering the navigation menu when top banner is active */
    .top-branding-banner ~ .header-container {
        position: relative;
        display: flex;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.45rem 2rem !important;
        width: 100%;
    }

    .top-branding-banner ~ .header-container .main-nav {
        margin: 0 auto !important;
    }
    
    .top-branding-banner ~ .header-container .header-actions {
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
    }
}

/* Responsive collapse rules for tablets and mobile */
@media (max-width: 1023px) {
    /* Make the top banner responsive for mobile instead of hiding it */
    .top-branding-banner {
        padding: 0.75rem 1rem;
    }
    
    .top-branding-banner .banner-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .top-branding-banner .banner-logo-container {
        width: 3.5rem;
        height: 3.5rem;
        flex: 0 0 auto;
    }
    
    /* Put the text block on a new line below the two logos */
    .top-branding-banner .banner-text-center {
        flex: 1 1 100%;
        order: 3;
        padding: 0 0.5rem;
    }
    
    .top-branding-banner .banner-title {
        font-size: 1.15rem;
    }
    
    .top-branding-banner .banner-country {
        font-size: 0.55rem;
        letter-spacing: 0.2em;
    }
    
    .top-branding-banner .banner-tagline {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }
    
    .top-branding-banner .divider-line {
        width: 35px;
    }
    
    .top-branding-banner .banner-line {
        width: 30px;
    }
    
    :root {
        --header-height: 80px; /* Tablet: single row banner only */
    }
}

/* Navigation */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 16, 28, 0.4) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Standard Desktop & Laptops (Surface, XPS, ThinkPad, MacBooks - 1200px+ widths) */
@media (min-width: 1200px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .main-nav {
        display: flex;
        justify-content: center;
        gap: 1.8rem !important;
        flex-shrink: 1;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1.2px solid rgba(0, 240, 255, 0.22) !important;
        border-radius: 50px !important;
        padding: 0.45rem 2rem !important;
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.08), inset 0 0 10px rgba(0, 240, 255, 0.03);
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        transition: all 0.3s ease;
    }

    .mobile-nav-header {
        display: none !important;
    }

    .mobile-nav-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: inherit;
    }

    .main-nav .nav-link {
        font-size: 0.92rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85);
        padding: 0.4rem 0.2rem;
        transition: all 0.3s ease;
    }

    .main-nav .nav-link:hover {
        color: #fff;
        text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    }

    .main-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0%;
        height: 3px;
        background: #00f0ff;
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
        transform: translateX(-50%);
    }

    .main-nav .nav-link.active::after,
    .main-nav .nav-link:hover::after {
        width: 80%;
    }

    .header-actions {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1.5rem;
    }

    .header-search-wrapper {
        display: block;
        width: 300px;
        margin-right: 1.5rem;
    }
}

/* Compact Desktop/Laptops with Display Scaling (1200px - 1450px) */
@media (min-width: 1200px) and (max-width: 1450px) {
    .header-datetime-widget {
        display: none !important;
    }

    .main-nav {
        gap: 0.8rem !important;
        padding: 0.45rem 1rem !important;
    }

    .main-nav .nav-link {
        font-size: 0.82rem;
        padding: 0.4rem 0.2rem;
    }

    .logo-text h1 {
        font-size: 1.15rem !important;
    }

    .header-actions {
        gap: 0.5rem !important;
    }
}

.header-search-wrapper {
    display: block;
    width: 140px;
    margin-right: 0.5rem;
}

@media (min-width: 576px) {
    .header-search-wrapper {
        width: 180px;
        margin-right: 0.8rem;
    }
}

@media (min-width: 992px) {
    .header-search-wrapper {
        width: 240px;
        margin-right: 1rem;
    }
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.header-icon-btn:hover {
    color: #00f0ff !important;
    transform: scale(1.1);
}

/* Header Live Time & Location Widget */
.header-datetime-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(10, 16, 28, 0.65);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 240, 255, 0.25);
    margin: 0;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
    transition: all 0.3s ease;
}

.header-datetime-widget:hover {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.header-datetime-widget .flag-icon {
    font-size: 0.95rem;
}

.header-datetime-widget .location-text {
    font-weight: 600;
    color: #00f0ff;
}

.header-datetime-widget .separator {
    color: rgba(255, 255, 255, 0.3);
}

.header-datetime-widget .date-time-text {
    font-weight: 400;
}

@media (max-width: 1024px) {
    .header-datetime-widget {
        display: none;
    }
}

@media (max-width: 1199px) {
    .header-container {
        padding: 0.75rem 1.25rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    max-width: 85%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Allow text to shrink/wrap properly */
}


.logo-img-placeholder {
    width: 200px;
    height: 110px;
    object-fit: contain;
    object-position: center;
    margin-right: -40px;
    margin-left: -30px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    transition: var(--transition);
}

@media (max-width: 767px) {
    .logo-img-placeholder {
        width: 80px;
        height: 45px;
        margin: 0;
    }
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.footer-logo {
    width: 160px;
    height: 88px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    margin-right: -32px;
    margin-left: -24px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-brand-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.1rem 0;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

.footer-brand-text span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}

.logo-text h1 {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #d4e5f7);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    white-space: nowrap;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .logo-text h1 {
        font-size: 1.05rem;
    }

    .logo-text span {
        font-size: 0.7rem;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 1199px) {
    .main-nav {
        gap: 1.5rem;
    }
}

@media (max-width: 1199px) {

    /* ── Full-Screen Mobile Nav Overlay ── */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        background: rgba(6, 14, 30, 0.99) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        padding: 0 !important;
        gap: 0 !important;
        z-index: 9999 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        /* Hidden by default */
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }

    .main-nav.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
    }

    /* ── Mobile Nav Header (logo + X close) ── */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
    }

    .mobile-nav-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
    }

    .mobile-nav-logo img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

    .mobile-nav-logo-text {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
    }

    .mobile-nav-subtitle {
        font-size: 0.7rem;
        color: var(--text-muted);
        font-weight: 400;
        letter-spacing: 0.3px;
    }

    .mobile-nav-close {
        background: none !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 2rem !important;
        line-height: 1 !important;
        cursor: pointer !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 8px !important;
        transition: color 0.2s ease, background 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
    }

    .mobile-nav-close:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    /* ── Nav Links Area (centers the menu items vertically) ── */
    .mobile-nav-links {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 1.5rem;
        gap: 0;
        overflow-y: auto;
    }

    /* ── Mobile Footer (Search button) ── */
    .mobile-nav-footer {
        flex-shrink: 0;
        padding: 1.25rem 1.5rem 2.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Header action buttons group (search + buttons + hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.header-btn-contact {
    margin: 0 !important;
}

@media (max-width: 767px) {
    .header-actions {
        gap: 0.5rem;
    }

    .header-btn-contact {
        padding: 0.6rem !important;
        border-radius: 50% !important;
        width: 40px;
        height: 40px;
    }

    .header-btn-contact {
        display: none !important;
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--primary-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.btn-primary::after {
    display: none;
}

/* Search Toggle Button */
.search-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 38px;
    height: 38px;
}

.search-toggle:hover {
    background: rgba(59, 165, 224, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ Search Overlay Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 14, 30, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12vh 1.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 850px;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.active .search-overlay-inner {
    transform: translateY(0);
}

/* Close button Ã¢â‚¬â€ top-right corner of the viewport, always */
.search-close-btn {
    position: fixed;
    top: 2.5rem;
    right: 2.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-close-btn:hover {
    background: rgba(229, 62, 62, 0.9);
    border-color: rgba(229, 62, 62, 0.6);
    color: #fff;
    transform: scale(1.08);
}

/* Label row above input */
.search-overlay-title {
    font-size: 0.75rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    text-align: left;
    padding-left: 0.25rem;
}

/* Input wrapper */
.search-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #fff;
    font-size: 1.15rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(59, 165, 224, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 165, 224, 0.12);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}

/* Results container */
.search-results {
    max-height: 52vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

/* Divider above results */
.search-results:not(:empty)::before {
    content: '';
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin-bottom: 0.75rem;
}

.search-placeholder-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.9rem;
    padding: 2.5rem 0;
    letter-spacing: 0.2px;
}

/* Individual result rows */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    border: none;
    text-decoration: none;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
}

.search-result-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
}

.search-result-text {
    flex: 1;
    min-width: 0;
}

.search-result-text h4 {
    margin: 0 0 0.2rem 0;
    font-size: 0.97rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-text p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category tag on result */
.search-result-tag {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(59, 165, 224, 0.1);
    border: 1px solid rgba(59, 165, 224, 0.2);
    border-radius: 5px;
    padding: 2px 7px;
}

/* No results state */
.search-no-results {
    text-align: center;
    padding: 3rem 0;
    color: rgba(255, 255, 255, 0.35);
}

.search-no-results span {
    display: block;
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

/* Mobile overrides */
@media (max-width: 900px) {
    .search-overlay {
        padding: 12vh 1rem 3rem;
    }

    .search-close-btn {
        top: 0.8rem;
        right: 0.8rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 1rem 1rem 1rem 3rem;
    }

    .search-result-item {
        padding: 0.85rem 0.75rem;
    }

    .search-result-tag {
        display: none;
    }
}

/* --- Organizational Tree Refinement --- */
.genealogy-scroll {
    overflow-x: auto;
    padding: 2rem 0 1rem 0;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.05);
}

.genealogy-scroll::-webkit-scrollbar {
    height: 6px;
}

.genealogy-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 30px;
}

.genealogy-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 8px;
}

.genealogy-scroll::-webkit-scrollbar-thumb:hover {
    background: #ffc233;
}

.genealogy-tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
}

.genealogy-tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
}

.genealogy-tree li::before,
.genealogy-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid var(--glass-glow);
    width: 50%;
    height: 20px;
}

.genealogy-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid var(--glass-glow);
}

.genealogy-tree li:only-child::after,
.genealogy-tree li:only-child::before {
    display: none;
}

.genealogy-tree li:only-child {
    padding-top: 0;
}

.genealogy-tree li:first-child::before,
.genealogy-tree li:last-child::after {
    border: 0 none;
}

.genealogy-tree li:last-child::before {
    border-right: 2px solid var(--glass-glow);
    border-radius: 0 5px 0 0;
}

.genealogy-tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

.genealogy-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--glass-glow);
    width: 0;
    height: 20px;
}

.genealogy-tree li .member-view-box {
    padding: 10px;
    display: inline-block;
    border-radius: 12px;
    transition: all 0.5s;
}

.genealogy-tree li .member-details {
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    transition: all 0.3s ease;
}

.genealogy-tree li .member-details h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tree hover effects */
.genealogy-tree li .member-view-box:hover .member-details {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 165, 224, 0.4);
    border-color: var(--primary-light);
}

.pub-tabs-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--header-margin);
    background: var(--bg-deeper);
    padding: 1rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pub-tab-btn {
    border: 1px solid var(--primary);
    background: rgba(59, 165, 224, 0.15);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pub-tab-btn:hover {
    background: rgba(59, 165, 224, 0.3);
}

.pub-tab-btn.active-tab {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px var(--primary-glow);
    border-color: var(--primary) !important;
}

.search-result-tag {
    display: inline-block;
    background: rgba(255, 194, 51, 0.15);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

.search-no-results span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #1e7ab8);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    color: #ffffff !important;
    box-shadow: 0 4px 15px var(--primary-glow);
    text-decoration: none;
    line-height: normal;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-content.glass-panel {
    background: rgba(8, 20, 38, 0.98) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(59, 165, 224, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    border-radius: 16px !important;
}

.dropdown-content.glass-panel .dropdown-item {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    padding: 0.65rem 1.5rem;
    font-size: 0.92rem;
    transition: var(--transition);
}

.dropdown-content.glass-panel .dropdown-item:hover {
    background: rgba(59, 165, 224, 0.15);
    color: var(--primary-light, #6ebdec);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Nested Dropdowns (Sub-menus) */
.nested-dropdown {
    position: relative;
    width: 100%;
}

.nested-content {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.4s ease-out;
}

.nested-dropdown.active .nested-content {
    max-height: 500px;
}

.nested-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.nested-trigger .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0.5rem 1.5rem;
}

.nested-dropdown.active .nested-trigger .arrow {
    transform: rotate(90deg);
}

.dropdown-item.sub-item {
    padding-left: 2.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.dropdown-item.sub-item:hover {
    opacity: 1;
    background: rgba(59, 165, 224, 0.1);
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.arrow {
    font-size: 0.6rem;
    vertical-align: middle;
    margin-left: 2px;
}

/* Quick Links Card inside Notice Board */
.quick-links-card {
    display: flex;
    flex-direction: column;
}

.quick-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    transform: translateY(-2px);
    border-color: rgba(245, 166, 35, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Main Content Wrapper */
#app-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - 200px);
    animation: fadeInContent 0.4s ease forwards;
}

/* Safe animation that doesn't break 'position: fixed' containing blocks */
@keyframes fadeInContent {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Sections */
.section-full {
    padding: 4rem 2rem;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    max-width: 1400px;
    margin: 0 auto;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ News Layout Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.news-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-section-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: left;
    /* Alignment requested to match Press Release */
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    margin: 2rem 0;
}

@media (max-width: 1024px) {
    .news-layout {
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .news-layout {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }
}

.news-main-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.horizontal-news-card {
    padding: 0;
    display: grid;
    grid-template-columns: min(320px, 38%) 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
}

@media (max-width: 767px) {
    .horizontal-news-card {
        display: flex;
        flex-direction: column;
    }
}

.news-article-img {
    height: 100%;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .news-article-img {
        width: 100%;
        height: 220px;
    }
}

.news-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-date-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-light);
    z-index: 2;
}

.news-article-body {
    padding: var(--card-padding);
}

.news-article-body h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    color: #fff;
    font-weight: 800;
}

.news-article-body p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.read-more-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    transition: gap 0.2s;
}

.read-more-link:hover {
    gap: 14px;
}

/* Sidebar Specifics */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
}

.sidebar-card {
    padding: var(--card-padding);
    border-radius: 24px;
}

.sidebar-accent {
    border-top: 4px solid var(--accent);
}

.sidebar-primary {
    border-top: 4px solid var(--primary);
    background: var(--bg-deeper);
}

.sidebar-title {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sidebar-accent .sidebar-title {
    color: var(--accent);
}

.sidebar-accent .sidebar-dot {
    background: var(--accent);
}

.sidebar-primary .sidebar-title {
    color: var(--primary-light);
}

.sidebar-primary .sidebar-dot {
    background: var(--primary);
}

.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-item {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.sidebar-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.event-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.event-date-box {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem;
    border-radius: 12px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.event-month {
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.8;
}

.event-day {
    font-size: 1.2rem;
    font-weight: 900;
}

.event-info h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.event-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-and-ticker-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - var(--header-height));
    position: relative;
    overflow: hidden;
}

.hero {
    flex: 1;
    min-height: 0 !important;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-content-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Hero Fading Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* CSS animations removed in favor of JS-based slider to support dynamic N images */

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(14, 32, 64, 0.92) 0%, rgba(14, 32, 64, 0) 65%);
    z-index: 2;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 1024px) {
    .grid-3 {
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .grid-3 {
        display: flex;
        flex-direction: column;
    }

    .grid-3 .card {
        height: auto !important;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .grid-2 {
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .grid-2 {
        display: flex;
        flex-direction: column;
    }
}

.card {
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.governance-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.5rem;
}

@media (max-width: 1024px) {
    .governance-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .pub-tabs-wrapper {
        border-radius: 24px;
        padding: 1.2rem;
        gap: 0.6rem;
    }

    .pub-tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .governance-card {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
}

/* Modals / Popups */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* User-Requested Classic White Modal Design */
.modal-content-light {
    background: #ffffff;
    color: #333333;
    max-width: 850px;
    width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-body-light {
    padding: 3rem 4rem 2rem 4rem;
    overflow-y: auto;
}

/* Custom subtle scrollbar so it doesn't break the clean white box */
.modal-body-light::-webkit-scrollbar {
    width: 8px;
}

.modal-body-light::-webkit-scrollbar-track {
    background: #fdfdfd;
}

.modal-body-light::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.modal-body-light::-webkit-scrollbar-thumb:hover {
    background: #aaaaaa;
}

.modal-footer-light {
    background: #eeeeee;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #dddddd;
}

.modal-close-btn {
    font-size: 1.8rem;
    color: #777777;
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #222222;
}

.modal-overlay.active .modal-content-light {
    transform: translateY(0) scale(1);
}

/* Reusable Section Headers */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
    gap: 0.5rem;
    margin-bottom: var(--header-margin);
}

.section-header .section-title,
.section-header .section-p {
    display: block;
    width: 100%;
    text-align: left;
}

.section-header.text-center {
    align-items: center;
    text-align: center;
}

.news-section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem) !important;
    margin-bottom: 3rem;
}

/* Leadership Layouts */
.leader-card {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.leader-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #222;
    overflow: hidden;
    border: 2px solid var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-avatar-alt {
    border-color: var(--accent);
}

.leader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leader-avatar span {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Featured Images */
.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* Glass Tables */
/* Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ Table Scroll Wrapper Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.table-scroll-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* clip the fade gradients */
    border-radius: 16px;
}

/* The actual scrolling container */
.table-scroll-wrap .table-inner {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    /* Fade-edge mask Ã¢â‚¬â€ shows L/R when scrollable */
    --fade: 32px;
    -webkit-mask-image: linear-gradient(to right,
            transparent 0px,
            black var(--fade),
            black calc(100% - var(--fade)),
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0px,
            black var(--fade),
            black calc(100% - var(--fade)),
            transparent 100%);
}

/* When scrolled to start Ã¢â‚¬â€ remove left fade */
.table-scroll-wrap .table-inner.at-start {
    -webkit-mask-image: linear-gradient(to right,
            black 0px,
            black calc(100% - var(--fade)),
            transparent 100%);
    mask-image: linear-gradient(to right,
            black 0px,
            black calc(100% - var(--fade)),
            transparent 100%);
}

/* When scrolled to end Ã¢â‚¬â€ remove right fade */
.table-scroll-wrap .table-inner.at-end {
    -webkit-mask-image: linear-gradient(to right,
            transparent 0px,
            black var(--fade),
            black 100%);
    mask-image: linear-gradient(to right,
            transparent 0px,
            black var(--fade),
            black 100%);
}

/* Both at start AND end (no scroll needed) */
.table-scroll-wrap .table-inner.at-start.at-end {
    -webkit-mask-image: none;
    mask-image: none;
}

/* Scroll hint pill shown below table on mobile */
.table-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
}

.table-scroll-hint svg {
    opacity: 0.5;
}

@media (max-width: 900px) {
    .table-scroll-hint {
        display: flex;
    }
}

/* Custom scrollbar Ã¢â‚¬â€ always thin & branded */
.table-inner::-webkit-scrollbar {
    height: 5px;
}

.table-inner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 99px;
    margin: 0 8px;
}

.table-inner::-webkit-scrollbar-thumb {
    background: rgba(59, 165, 224, 0.45);
    border-radius: 99px;
    transition: background 0.2s;
}

.table-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 165, 224, 0.75);
}

/* Firefox */
.table-inner {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 165, 224, 0.45) rgba(255, 255, 255, 0.04);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ Glass Table Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
    color: var(--text-main);
    /* Min-width stops columns collapsing Ã¢â‚¬â€ scroll kicks in instead */
    min-width: 640px;
}

.glass-table th,
.glass-table td {
    padding: 1.1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: normal;
    vertical-align: top;
}

/* First column: label column Ã¢â‚¬â€ always bold, slightly separated */
.glass-table th:first-child,
.glass-table td:first-child {
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 140px;
    background: rgba(255, 255, 255, 0.015);
}

.glass-table th {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(59, 165, 224, 0.07);
    position: sticky;
    top: 0;
    z-index: 2;
}

.glass-table tbody tr {
    transition: background 0.15s ease;
}

.glass-table tbody tr:hover {
    background: rgba(59, 165, 224, 0.05);
}

.glass-table tbody tr:last-child td {
    border-bottom: none;
}


.btn-table {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(0, 112, 243, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-table:hover {
    background: var(--primary);
    color: #fff;
}

.btn-detail {
    background: rgba(245, 166, 35, 0.1);
    color: var(--accent);
}

.btn-detail:hover {
    background: var(--accent);
    color: #111;
}

/* Infinite Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    display: flex;
}

/* Gradient fades on the edges of the marquee */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

/* News Cards */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 165, 224, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.08);
}

.news-date-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-read-more {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
}

.news-read-more:hover {
    color: var(--accent) !important;
    transform: translateX(5px);
}

/* News Page Layout */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.news-article-card {
    display: flex;
    gap: 0;
    padding: 0 !important;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.news-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.news-article-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.news-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-article-card:hover .news-article-img img {
    transform: scale(1.05);
}

.news-article-body {
    padding: 1.8rem;
}

.news-article-body h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Sidebar Items */
.sidebar-news-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding-left: 0.5rem;
}

.sidebar-news-thumb {
    width: 70px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-news-item h4 {
    font-size: 0.9rem;
    margin: 0 0 0.3rem 0;
    line-height: 1.4;
    color: var(--text-main);
}

.sidebar-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Event Date Box */
.sidebar-event-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-event-item:last-child {
    border-bottom: none;
}

.sidebar-event-item h4 {
    margin: 0 0 0.2rem 0;
    font-size: 0.95rem;
}

.event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    min-width: 55px;
    flex-shrink: 0;
}

.event-month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-day {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

/* News Ticker */
.news-ticker-wrapper {
    background: rgba(14, 32, 64, 0.95);
    border-bottom: 1px solid rgba(59, 165, 224, 0.2);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.news-ticker-label {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #111;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.news-ticker-track {
    display: inline-block;
    animation: ticker-scroll 120s linear infinite;
    padding-left: 1rem;
}

.news-ticker-track:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    display: inline;
    padding: 0.6rem 2.5rem 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-ticker-item strong {
    color: var(--primary);
    margin-right: 0.5rem;
}

.news-ticker-divider {
    color: var(--accent);
    margin: 0 0.5rem;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: scroll-left 55s linear infinite;
    width: max-content;
    padding: 1rem 0;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 5.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(20, 35, 65, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    pointer-events: all;
    font-size: 0.92rem;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #2ecc71;
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.info {
    border-left: 4px solid var(--primary);
}

.toast i[data-lucide],
.toast svg.lucide {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success i,
.toast.success svg.lucide {
    color: #2ecc71;
}

.toast.error i,
.toast.error svg.lucide {
    color: #e74c3c;
}

.toast.info i,
.toast.info svg.lucide {
    color: var(--primary);
}

.spin {
    animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.doc-placeholder {
    width: 200px;
    height: 280px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.doc-placeholder:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    color: var(--text-main);
}

/* Footer */
.solid-footer {
    background: #04162f;
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }
}

.footer-col,
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.footer-header-icon {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
    flex-shrink: 0;
}

.footer-brand {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 100%;
    max-width: 290px;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
    display: block;
    margin: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

#footer-brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.2rem 0;
}

#footer-brand-subtitle {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
}

.footer-brand-divider {
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-watermark {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.footer-col a,
.footer-section a {
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-col a:hover,
.footer-section a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    flex-shrink: 0;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

/* Icon Colors by Column */
.col-links .footer-icon,
.col-links .footer-header-icon {
    stroke: var(--primary);
    /* Blue */
}

.col-divisions .footer-icon,
.col-divisions .footer-header-icon {
    stroke: #00e676;
    /* Green */
}

.col-legal .footer-icon,
.col-legal .footer-header-icon {
    stroke: var(--accent);
    /* Yellow */
}

.footer-col a:hover .footer-icon,
.footer-section a:hover .footer-icon {
    stroke: #ffffff;
    transform: scale(1.1);
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}


.footer-social-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.footer-social-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
    margin: 0;
}

/* Brand colors by default */
.icon-whatsapp {
    background: #25D366;
    color: #fff;
}

.icon-linkedin {
    background: #0077b5;
    color: #fff;
}

.icon-facebook {
    background: #1877F2;
    color: #fff;
}

/* Hover: darken and lift */
.icon-whatsapp:hover {
    background: #1da851;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.icon-linkedin:hover {
    background: #005f8f;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 119, 181, 0.4);
}

.icon-facebook:hover {
    background: #1260c7;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.footer-brand {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 100%;
    max-width: 290px;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
    display: block;
    margin: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand h3 {
    margin: 0;
    line-height: 1.2;
    font-size: 1.25rem;
}

#footer-brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.footer-follow-heading {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.footer-mail-link {
    display: inline;
    color: inherit;
}

.footer-mail-link:hover {
    color: var(--primary) !important;
    text-decoration: underline;
}

/* Mobile Toggle (Desktop-First Base: Hidden) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

@media (max-width: 1199px) {
    .mobile-toggle {
        display: flex;
    }
    
    .hide-on-mobile {
        display: none !important;
    }
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

@media (max-width: 1199px) {

    /* Clean Mobile Links - large centered items */
    .mobile-nav-links .nav-link,
    .main-nav .nav-link {
        font-size: 1.6rem;
        padding: 1rem 20px;
        min-height: 44px;
        width: 100%;
        border-bottom: none;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        text-align: center;
        color: #ffffff;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }

    /* Destroy the buggy desktop underline animation on mobile */
    .main-nav .nav-link::after {
        display: none !important;
    }

    /* Modern mobile active state - accurate white centered line */
    .main-nav .nav-link.active {
        color: #ffffff;
        background: transparent;
        border: none;
    }

    .main-nav .nav-link.active::before {
        display: none;
    }

    .main-nav .nav-link.active::after {
        display: block !important;
        content: '';
        width: 80px;
        height: 3px;
        background: #ffffff;
        position: absolute !important;
        bottom: 4px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 2px;
        box-shadow: none;
        margin: 0 !important;
    }

    /* Target the Contact Us button specifically in mobile to make it fat and clean */
    .main-nav .btn-primary {
        display: flex;
        /* force wrapper flex centering */
        align-items: center;
        justify-content: center;
        width: 80%;
        margin: 2rem auto !important;
        /* override the inline margin */
        padding: 1.2rem 1rem;
        font-size: 1.3rem;
        border-radius: 40px;
        color: #ffffff;
    }

    .main-nav .dropdown {
        width: 100%;
        text-align: center;
        padding: 0 20px;
        box-sizing: border-box;
    }

    /* Kill the desktop hover glitch on mobile devices */
    .main-nav .dropdown:hover .dropdown-content.glass-panel {
        transform: none !important;
    }

    /* By default, mobile dropdowns are HIDDEN accordions */
    .main-nav .dropdown-content.glass-panel {
        display: block;
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    }

    /* When toggled OPEN by JS */
    .main-nav .dropdown.mobile-expanded .dropdown-content.glass-panel {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        background: rgba(0, 0, 0, 0.25) !important;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.03) !important;
        padding: 10px 0;
        margin: 10px auto 20px auto;
    }

    .main-nav .dropdown-item {
        padding: 1rem 20px;
        min-height: 44px;
        border-bottom: none;
        font-size: 1.2rem;
        text-align: center;
        display: block;
        color: var(--text-muted);
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }

    .header-container {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .header-container .logo {
        display: none !important;
    }



    .mobile-toggle {
        display: flex !important;
        position: fixed !important;
        top: 1.25rem !important;
        right: 1.25rem !important;
        z-index: 1005 !important;
        background: rgba(14, 32, 64, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-radius: 8px !important;
        padding: 10px 12px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        justify-content: center !important;
        align-items: center !important;
        width: 44px !important;
        height: 44px !important;
        box-sizing: border-box !important;
    }

    /* On mobile, search toggle is already in .header-actions Ã¢â‚¬â€ hide any leftover in nav */
    .main-nav .search-toggle {
        display: flex;
    }

    /* Hamburger Animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Layout scaling */
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-full {
        padding: 3rem 1.5rem;
    }

    .logo-text h1 {
        font-size: 1rem;
        margin: 0;
    }

    .logo-text span {
        font-size: 0.72rem;
    }

    .logo {
        gap: 0.6rem;
    }

    .logo-img-placeholder {
        width: 110px !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero {
        min-height: 0 !important;
    }

    .internal-hero {
        padding: 85px 1.5rem !important;
        min-height: 250px !important;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    /* Reduce ugly white space on small screens */

    .news-container {
        padding: 0 1.2rem !important;
    }

    .news-section-title {
        text-align: center !important;
        font-size: 1.8rem !important;
        margin-bottom: 2rem;
    }

    .news-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .horizontal-news-card {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        /* Reset padding to allow full-width image */
    }

    .news-article-img {
        height: 250px !important;
        width: 100% !important;
    }

    .news-article-body {
        padding: 2rem 1.5rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .read-more-link {
        justify-content: center;
        width: 100%;
    }

    /* Governance and Press Cards also centered */
    .governance-card,
    .press-card {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
        text-align: center !important;
    }

    /* Leader Card Stacking */
    .leader-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
    }

    .leader-avatar {
        margin-bottom: 1rem;
    }

    /* Hide the Organizational Hierarchy section on mobile - too complex to render */
    .hierarchy-section {
        display: none !important;
    }

    /* Mobile Genealogy Tree - Convert to simple vertical block list (unused, tree is hidden) */
    .genealogy-scroll-unused {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        padding: 1rem 0.5rem !important;
        border-radius: 16px;
        min-height: 50px;
    }

    .genealogy-tree,
    .genealogy-tree ul,
    .genealogy-tree li {
        float: none !important;
        display: block !important;
        position: static !important;
        width: 100% !important;
        text-align: left !important;
        clear: both !important;
    }

    /* Kill all pseudo-element connector lines */
    .genealogy-tree li::before,
    .genealogy-tree li::after,
    .genealogy-tree ul::before,
    .genealogy-tree ul ul::before {
        display: none !important;
        content: none !important;
    }

    .genealogy-tree ul {
        padding: 0 0 0 1.2rem !important;
        margin: 0 !important;
        border-left: 2px solid rgba(59, 165, 224, 0.3) !important;
    }

    /* Root ul: no indent */
    .genealogy-tree>ul {
        padding-left: 0 !important;
        border-left: none !important;
    }

    .genealogy-tree li {
        padding: 6px 0 !important;
    }

    .genealogy-tree li a {
        display: block !important;
    }

    .genealogy-tree li .member-view-box {
        display: block !important;
        padding: 4px 0 !important;
    }

    .genealogy-tree li .member-details {
        display: block !important;
        min-width: unset !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding: 0.8rem 1rem !important;
    }

    /* Responsive image scaling */
    .responsive-img-height {
        height: 400px !important;
    }

    /* Article layout stacking */
    .article-grid {
        grid-template-columns: 1fr !important;
    }

    .article-sidebar {
        position: static !important;
        margin-top: 2rem;
    }

    /* Table Responsiveness Ã¢â‚¬â€ legacy alias, now maps to table-inner styles */
    .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS Safari */
        scrollbar-width: thin;
        scrollbar-color: rgba(59, 165, 224, 0.45) rgba(255, 255, 255, 0.04);
    }

    .table-responsive::-webkit-scrollbar {
        height: 5px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.04);
        border-radius: 99px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: rgba(59, 165, 224, 0.45);
        border-radius: 99px;
    }

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: rgba(59, 165, 224, 0.75);
    }
}

@media (max-width: 600px) {

    /* Typographic Adjustments */
    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    .news-article-body h3 {
        font-size: 1.5rem !important;
    }



    .logo-img-placeholder {
        width: 45px;
        height: 45px;
        background: transparent !important;
        padding: 0 !important;
    }

    .logo-text h1 {
        font-size: 0.85rem !important;
        margin: 0;
        line-height: 1.2;
    }

    .logo-text span {
        font-size: 0.62rem !important;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-img-placeholder {
        width: 100px !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .top-branding-banner .banner-title {
        font-size: 0.9rem !important;
        letter-spacing: 0.08em !important;
    }

.internal-hero {
    padding: 100px 1.2rem 40px !important;
    min-height: 240px !important;
}

.internal-hero::after {
    height: 60px !important;
}

.hero-content h1 {
    font-size: 2.2rem;
}

.hero-content p {
    font-size: 1rem;
}

.hero-content-container {
    padding: 3rem 1.5rem !important;
}

.hero-btns {
    flex-direction: column !important;
    width: 100%;
    gap: 0.8rem !important;
}


.hero-btns .btn-primary,
.hero-btns .btn-secondary {
    width: 100% !important;
    text-align: center;
    justify-content: center;
}

.section-full {
    padding: 2.5rem 1.2rem !important;
}

.card {
    padding: 1.5rem;
}

.glass-table th,
.glass-table td {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
}

.btn-table {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
}

/* Force Leadership Cards to stack vertically on narrow phones so text isn't squished! */
.leader-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

/* Force Headers to Stack Cleanly */
.section-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 {
    text-align: center;
}

.modal-body-light {
    padding: 2rem 1.5rem 1rem 1.5rem;
}

.modal-body-light img {
    float: none !important;
    display: block;
    margin: 0 auto 1.5rem auto !important;
    width: 180px !important;
}

/* Ensure genealogy tree text is readable on small phones */
.genealogy-tree li .member-details h3 {
    font-size: 0.75rem !important;
}

/* Press releases Ã¢â‚¬â€ stack image above text on mobile */
.press-card {
    grid-template-columns: 1fr !important;
}

.press-card>div:first-child {
    height: 160px !important;
    width: 100% !important;
}

/* Press filter input full-width on mobile */
#press-filter-input {
    width: 100% !important;
}
}

/* Gallery Specific Styles */
.gallery-filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.gallery-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-filter-btn.active:hover {
    background: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(59, 165, 224, 0.4);
}

.gallery-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.gallery-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary) !important;
}

/* Gallery Modal Styles */
.gallery-modal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.modal-img-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid var(--glass-border);
    position: relative;
}

.modal-img-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.detail-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.detail-modal-content {
    margin: auto;
    display: block;
    max-height: 85vh;
    max-width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
}

.detail-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
}

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 32, 64, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.gallery-modal-close {
    position: fixed;
    top: 35px;
    right: 45px;
    color: #fff;
    font-size: 60px;
    cursor: pointer;
    z-index: 10001;
}

@keyframes zoomModal {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-album-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.gallery-album-title {
    color: #fff;
    margin-bottom: 0.5rem;
}

.gallery-album-desc {
    color: var(--text-muted);
}

/* Press Release List Styling */
.press-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.press-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1) !important;
}

.press-card img {
    transition: transform 0.4s ease;
}

.press-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .press-card {
        grid-template-columns: 1fr !important;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */
.container-1250 {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-group {
    margin-bottom: 2rem;
}

.faq-category-title {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
}

.faq-category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary);
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 165, 224, 0.3);
    transform: translateY(-2px);
}

.faq-item.active {
    background: rgba(14, 32, 64, 0.6);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 2rem;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--primary);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
}

.faq-answer-content {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.faq-answer-content p {
    margin: 0;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1.05rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
        padding-top: 1.25rem;
    }
}

/* --- Floating Social Widget ---------------------- */
.floating-social-widget {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    display: none; /* Hidden on desktop */
    align-items: center;
    flex-direction: row-reverse;
}

@media (max-width: 1024px) {
    .floating-social-widget {
        display: flex !important;
    }
}

/* Hide floating elements when mobile menu is open */
body.menu-open .floating-social-widget,
body.menu-open #doe-chat-bubble,
body.menu-open #doe-chat-window {
    display: none !important;
}

.social-main-btn {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    transition: background 0.3s;
    z-index: 2;
}

.social-main-btn:hover {
    background: var(--primary-light);
}

.social-links-container {
    display: flex;
    gap: 0.5rem;
    padding-right: 0.5rem;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(8, 20, 38, 0.9);
    border-radius: 50px 0 0 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-right: none;
    align-items: center;
    height: 48px;
}

.floating-social-widget.expanded .social-links-container {
    max-width: 250px;
    opacity: 1;
    padding-left: 1rem;
}

.social-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon-btn:hover {
    transform: translateY(-2px);
}

.social-icon-btn.facebook:hover { background: #1877F2; }
.social-icon-btn.whatsapp:hover { background: #25D366; }
.social-icon-btn.linkedin:hover { background: #0A66C2; }

/* --- Back to Top Button -------------------------- */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 165, 224, 0.4);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
    }
}

/* --- Resource Cards (Calendars & Docs) ---------------- */
.resource-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    background: rgba(14, 32, 64, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.resource-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glass-glow);
}

.resource-thumb {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.resource-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resource-card:hover .resource-thumb img {
    transform: scale(1.1);
}

.resource-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 165, 224, 0.1), rgba(245, 166, 35, 0.05));
    color: var(--primary);
    gap: 0.5rem;
}

.resource-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.resource-placeholder span {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.3;
    letter-spacing: 2px;
}

.resource-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.resource-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.resource-content h3 {
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.resource-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-content p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.resource-card:hover .resource-badge {
    background: var(--accent);
    color: #111;
    transform: scale(1.05);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.btn-secondary {
    background: rgba(59, 165, 224, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 165, 224, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(59, 165, 224, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: #fff;
}

.resource-card .btn-primary,
.resource-card .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    height: 48px;
}

.resource-card .btn-primary,
.resource-card .btn-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.resource-card .btn-primary,
.resource-card .btn-secondary {
    border-radius: 30px !important;
}

/* ==========================================================================
   Form System & Utilities
   ========================================================================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
    opacity: 0.9;
}

.form-label span {
    color: var(--accent-red);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
    /* Critical for preventing overflow */
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 165, 224, 0.15);
}

.form-textarea {
    resize: none;
    min-height: 160px;
    line-height: 1.5;
}

#submit-btn.btn-primary {
    border-radius: 12px;
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Prevent notice board content lists/navs from being hidden by header mobile menu styles */
.notice-content .main-nav,
.quick-links-card .main-nav {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: auto !important;
    border: none !important;
    margin: 0 !important;
}

.notice-content .nav-list,
.quick-links-card .nav-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 0 !important;
    margin: 1rem 0 0 0 !important;
    list-style: none !important;
}

.notice-content .nav-list li,
.quick-links-card .nav-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.notice-content .nav-link,
.quick-links-card .nav-link {
    font-size: 0.95rem !important;
    color: var(--text-main, #ffffff) !important;
    padding: 0.75rem 1rem !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 10px !important;
    opacity: 1 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.notice-content .nav-link::after,
.quick-links-card .nav-link::after {
    content: '→' !important;
    display: block !important;
    font-size: 1.1rem !important;
    color: var(--primary) !important;
    transition: transform 0.3s ease !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
}

.notice-content .nav-link:hover,
.quick-links-card .nav-link:hover {
    color: #fff !important;
    background: rgba(59, 165, 224, 0.08) !important;
    border-color: rgba(59, 165, 224, 0.3) !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.notice-content .nav-link:hover::after,
.quick-links-card .nav-link:hover::after {
    color: var(--accent) !important;
    transform: translateX(2px) !important;
}

/* ─── Loading Screen Overlay ─────────────────────── */
#loading-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #0a1324 0%, #05080f 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.crest-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-crest {
    width: 80px;
    height: 80px;
    object-fit: contain;
    z-index: 2;
    animation: crest-pulse 2s infinite ease-in-out;
}

.loader-ripple {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(59, 165, 224, 0.3);
    z-index: 1;
    animation: loader-ripple 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-spinner {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: rgba(59, 165, 224, 0.1);
    border-radius: 50%;
    animation: loader-spin 1.5s linear infinite;
    z-index: 0;
}

.loader-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.5rem 0 0.25rem 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.loader-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.loader-progress-bar {
    width: 140px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    animation: progress-sweep 1.8s infinite ease-in-out;
}

@keyframes crest-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(59, 165, 224, 0.2));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 16px rgba(59, 165, 224, 0.5));
    }
}

@keyframes loader-ripple {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes progress-sweep {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 480px) {
    .crest-container {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .loader-crest {
        width: 60px;
        height: 60px;
    }

    .loader-ripple {
        width: 70px;
        height: 70px;
    }

    .loader-spinner {
        width: 90px;
        height: 90px;
    }

    .loader-title {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .loader-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .loader-progress-bar {
        width: 120px;
    }
}

/* Custom utility and helper classes to replace inline styles */
.dropdown-item.highlight-primary {
    color: var(--primary-light) !important;
    font-weight: 600;
}

.dropdown-item.highlight-accent {
    color: var(--accent) !important;
    font-weight: 600;
}

.header-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .header-icons-wrapper {
        display: none !important;
    }

    .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

#footer-logo-img {
    width: 70px;
    height: 70px;
}

.footer-preview-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    object-fit: cover;
    max-height: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Ultra-Wide & Smart TV (4K / 8K) Responsiveness
   ========================================================================== */
@media (min-width: 2560px) {
    html {
        font-size: 130%;
        /* Scales all rem units up */
    }

    .header-container {
        max-width: 2200px;
    }

    .footer-container {
        max-width: 2000px;
    }

    .hero-content-container,
    .section-full {
        max-width: 2000px;
    }

    .container-1250 {
        max-width: 1800px;
    }

    .faq-container {
        max-width: 1400px;
    }

    :root {
        --header-height: 255px;
    }

    .hero {
        min-height: 0 !important;
    }
}

@media (min-width: 3840px) {
    html {
        font-size: 180%;
        /* Scales all rem units significantly for 4K */
    }

    :root {
        --header-height: 350px;
    }

    .header-container {
        max-width: 3200px;
    }

    .footer-container {
        max-width: 2800px;
    }

    .hero-content-container,
    .section-full {
        max-width: 2800px;
    }

    .container-1250 {
        max-width: 2400px;
    }

    .faq-container {
        max-width: 1800px;
    }
}

/* ==========================================================================
   Mobile Search Button Integration
   ========================================================================== */
.mobile-search-btn {
    display: none !important;
}

@media (max-width: 1199px) {
    .mobile-search-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.65rem !important;
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        /* Bordered button style */
        border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        font-family: 'Outfit', sans-serif !important;
        letter-spacing: 0.02em !important;
        cursor: pointer !important;
        text-decoration: none !important;
        transition: all 0.25s ease !important;
        /* Reset search-toggle circular styles */
        height: auto !important;
        border-radius: 12px !important;
    }

    .mobile-search-btn:hover {
        background: rgba(59, 165, 224, 0.1) !important;
        border-color: var(--primary) !important;
        color: var(--primary-light) !important;
    }

    .mobile-search-btn svg {
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0;
    }
}

/* ==========================================================================
   Ultra-Small & Mobile (iPhones, Pixels, Galaxy S23, etc - 360px to 430px widths)
   ========================================================================== */
@media (max-width: 430px) {
    :root {
        --section-spacing: 2rem;
        --grid-gap: 1rem;
        --card-padding: 1.25rem;
        --header-margin: 1rem;
    }

    .header-container {
        padding: 0.5rem 0.75rem !important;
    }

    .logo-img-placeholder,
    #header-logo {
        width: 32px !important;
        height: 32px !important;
    }

    .logo-text h1 {
        font-size: 0.85rem !important;
        letter-spacing: 0;
    }

    .logo-text span {
        font-size: 0.65rem !important;
    }

    .mobile-toggle {
        right: 0.75rem !important;
    }

    .container,
    .container-1250,
    .hero-content-container,
    .section-full {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    h2,
    .section-title {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.35rem !important;
    }

    .hero-p,
    .section-p {
        font-size: 0.95rem;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    .footer-col {
        padding: 0 !important;
    }
}

/* Safety override for very short viewports to prevent content clipping */
@media (max-height: 550px) {
    .hero-and-ticker-container {
        height: auto !important;
        min-height: 500px !important;
    }
    .hero {
        min-height: 450px !important;
    }
}