/**
 * BRMGSS v3.0 - Digital India Style Design System
 * Inspired by digitalindia.gov.in official portal design language
 */

/* ============================================================
   1. GOOGLE FONTS - Poppins (same as Digital India)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

/* ============================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
    --color-primary:        #FF6200;  /* Digital India Orange */
    --color-primary-dark:   #e05500;
    --color-primary-light:  #ff8533;
    --color-secondary:      #1a2e5a;  /* Deep Navy Blue */
    --color-secondary-dark: #0f1e3d;
    --color-accent:         #0A1931;  /* Dark Blue-Black */
    --color-success:        #138808;  /* India Green */
    --color-white:          #FFFFFF;
    --color-light-bg:       #F4F6F9;
    --color-border:         #E2E8F0;
    --color-text:           #1a1a1a;
    --color-text-muted:     #555555;
    --color-text-light:     #888888;

    --font-main: 'Poppins', 'Noto Sans Bengali', system-ui, sans-serif;

    --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);

    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-pill: 50px;

    --transition: all 0.25s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-light-bg: #0d1117;
    --color-white:    #1e2530;
    --color-border:   #2d3748;
    --color-text:     #e2e8f0;
    --color-text-muted: #a0aec0;
}

/* ============================================================
   3. GLOBAL BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-light-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.65;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   4. ACCESSIBILITY TOP BAR (Digital India style)
   ============================================================ */
.accessibility-bar {
    background-color: #1a2e5a;
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.accessibility-bar .gov-identity {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.accessibility-bar .gov-identity .flag {
    margin-right: 6px;
}

.access-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.5;
}

.access-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.access-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.font-resizers {
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 10px;
}

/* ============================================================
   5. HEADER - Logo Brand Strip (CTA Banner style - Orange Gradient)
   ============================================================ */
.site-header-brand {
    background: #ffffff;
    padding: 2px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Decorative circle top-right (Soft Saffron Glow) */
.site-header-brand::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 98, 0, 0.16) 0%, rgba(255, 98, 0, 0.04) 65%, transparent 100%);
    pointer-events: none;
}

/* Decorative circle bottom-left (Soft Saffron Glow) */
.site-header-brand::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -30px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 98, 0, 0.14) 0%, rgba(255, 98, 0, 0.03) 65%, transparent 100%);
    pointer-events: none;
}

/* Extra decorative mid-right circle for subtle depth */
.site-header-brand .brand-deco-circle {
    position: absolute;
    top: 50%;
    right: 28%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 98, 0, 0.12) 0%, rgba(255, 98, 0, 0.02) 65%, transparent 100%);
    pointer-events: none;
}

.site-header-brand .brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.site-header-brand .brand-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 0px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.site-header-brand .brand-title {
    color: #0A1931;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    text-shadow: none;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.site-header-brand .brand-subtitle {
    color: #444;
    font-size: 0.72rem;
    font-weight: 500;
    margin: 3px 0 0;
    letter-spacing: 0.2px;
}

.site-header-brand .header-badge {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #FF6200, #FF9933);
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(255, 98, 0, 0.25);
}

.site-header-brand .header-badge-sub {
    font-size: 0.68rem;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* ── Header Floating Logos (80th Independence Day + Leader Photo) ── */
.header-floating-logos {
    position: absolute;
    top: 0;
    transform: translateY(-100%);   /* bottom edge flush with navbar top */
    right: 170px;
    z-index: 1025;
    line-height: 0;
}
.header-independence-logo-wrap {
    line-height: 0;
    margin-bottom: 0;
}
.header-independence-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}
.header-independence-logo:hover {
    transform: scale(1.03);
}
.header-leader-photo-wrap {
    line-height: 0;
}
.header-leader-photo {
    width: 70px;
    height: 80px;
    border-radius: 50% 50% 0 0;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ============================================================
   6. MAIN NAVIGATION BAR (Digital India dark navy style)
   ============================================================ */
/* ============================================================
   6. MAIN NAVIGATION BAR (Imperial Deep Blue - Official Portal Style)
   ============================================================ */
.main-navbar {
    background: linear-gradient(135deg, #FF6200 0%, #FF9933 60%, #ffb347 100%) !important;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-top: none;
    border-bottom: 3px solid #0A1931;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.main-navbar .navbar-brand {
    display: none; /* Brand shown in header strip only */
}

.main-navbar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
    margin: 8px 0;
}

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

.main-navbar .navbar-nav {
    gap: 0;
    flex-wrap: nowrap !important;
}

.main-navbar .nav-item {
    position: relative;
    flex-shrink: 0;
}

/* Subtle official divider lines between items on desktop */
@media (min-width: 1200px) {
    .main-navbar .nav-item {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 1px 0 0 rgba(0, 0, 0, 0.25);
    }
    
    .main-navbar .nav-item:first-child {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-navbar .nav-item.ms-auto {
        border-right: none;
        box-shadow: none;
    }
}

.main-navbar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 13px 12px !important;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
    border-bottom: none !important;
    position: relative;
    white-space: nowrap;
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .main-navbar .nav-item .nav-link {
        font-size: 0.80rem;
        padding: 12px 8px !important;
        letter-spacing: 0;
    }
    .main-navbar .nav-cta {
        padding: 12px 10px !important;
        font-size: 0.80rem !important;
        margin-left: 2px !important;
    }
}

.main-navbar .nav-item .nav-link:hover {
    color: #fff !important;
    background: linear-gradient(180deg, rgba(255, 98, 0, 0.22) 0%, rgba(255, 98, 0, 0.08) 100%);
    border-bottom: none !important;
}

.main-navbar .nav-item .nav-link.active {
    color: #fff !important;
    background: linear-gradient(180deg, #FF6200 0%, #e05500 100%) !important;
    border-bottom: none !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.main-navbar .nav-cta {
    background: linear-gradient(135deg, #FF6200 0%, #e05500 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0 !important;
    border-bottom: none !important;
    margin-left: 4px;
    padding: 13px 12px !important;
    box-shadow: 0 2px 8px rgba(255, 98, 0, 0.3);
    white-space: nowrap;
}

.main-navbar .nav-cta:hover {
    background: linear-gradient(135deg, #e05500 0%, #c44a00 100%) !important;
    color: #fff !important;
    border-bottom: none !important;
}

/* Dropdown Mega Menu */
.main-navbar .dropdown-menu {
    border: 1px solid rgba(255, 98, 0, 0.2);
    border-top: 3px solid #FF6200;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-top: 0;
    min-width: 220px;
    padding: 8px 0;
    background: #ffffff;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.main-navbar .dropdown-item {
    font-size: 0.85rem;
    padding: 9px 20px;
    color: #1a2e5a;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid #f4f6f9;
}

.main-navbar .dropdown-item:last-child {
    border-bottom: none;
}

.main-navbar .dropdown-item:hover {
    background-color: #fff5ee;
    color: #FF6200;
    padding-left: 26px;
}

/* ============================================================
   7. MARQUEE TICKER (Notice Bar)
   ============================================================ */
.news-ticker {
    background-color: #fff8f0;
    border-top: 2px solid var(--color-primary);
    border-bottom: 1px solid #ffd4a8;
    padding: 8px 0;
    font-size: 0.84rem;
}

.news-ticker .ticker-label {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-ticker marquee a {
    color: var(--color-secondary);
    font-weight: 500;
    margin-right: 40px;
}

.news-ticker marquee a:hover {
    color: var(--color-primary);
}

/* ============================================================
   8. HERO SLIDER SECTION (1920 x 515 px Responsive Aspect Ratio)
   ============================================================ */
.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: #0A1931;
}

.hero-carousel .carousel-inner {
    width: 100%;
    position: relative;
}

.hero-carousel .carousel-item {
    width: 100%;
    position: relative;
    aspect-ratio: 1920 / 515;
    min-height: 140px;
    max-height: 515px;
    background-color: #0A1931;
    overflow: hidden;
}

.hero-carousel .carousel-item .hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.hero-carousel .carousel-item:hover .hero-slide-img {
    transform: scale(1.015);
}

.hero-carousel .carousel-item .hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-carousel .carousel-caption {
    position: absolute;
    left: 7%;
    right: 38%;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
    padding: 28px 34px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
	background: linear-gradient(135deg, rgb(245 61 0) 0%, rgb(238 134 3 / 0%) 100%);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 5px solid #FF6200;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    z-index: 5;
}

.hero-carousel .carousel-caption .hero-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: linear-gradient(135deg, #FF6200 0%, #FF8533 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 10px rgba(255, 98, 0, 0.4);
}

.hero-carousel .carousel-caption h2 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 10px;
    background: linear-gradient(
        115deg,
        #ffffff 0%,
        #ffffff 35%,
        #ffe2c6 48%,
        #ffffff 60%,
        #ffffff 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlossyShine 4.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

@keyframes textGlossyShine {
    0% { background-position: 200% 0; }
    50% { background-position: -50% 0; }
    100% { background-position: -50% 0; }
}

.hero-carousel .carousel-caption p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 540px;
}

/* Glossy Action Button with Shimmer Sweep */
.hero-carousel .carousel-caption .hero-glossy-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6200 0%, #FF8533 50%, #e05500 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    padding: 10px 26px !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(255, 98, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-carousel .carousel-caption .hero-glossy-btn::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -120%;
    width: 60%;
    height: 220%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.8) 75%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: btnGlossySweep 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnGlossySweep {
    0% { left: -120%; }
    35% { left: 160%; }
    100% { left: 160%; }
}

.hero-carousel .carousel-caption .hero-glossy-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(255, 98, 0, 0.65), inset 0 1px 3px rgba(255, 255, 255, 0.8);
    color: #ffffff !important;
}

.hero-carousel .carousel-indicators {
    margin-bottom: 14px;
    gap: 6px;
    z-index: 6;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 5px;
    border-radius: 3px;
    opacity: 0.5;
    border: none;
    background: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    margin: 0;
}

.hero-carousel .carousel-indicators .active {
    width: 44px;
    background: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 98, 0, 0.8);
}

/* ============================================================
   9. QUICK STATS BAR (4-Box Divider Grid Desktop & Mobile)
   ============================================================ */
.stats-bar {
    background: linear-gradient(135deg, #09172c 0%, #102a4e 100%);
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.stats-bar .stat-item {
    text-align: center;
    padding: 12px 16px;
    position: relative;
    transition: all 0.25s ease;
}

.stats-bar .stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    color: #FF6200;
    display: block;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-bar .stat-label {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 4px;
    display: block;
    font-weight: 600;
}

/* ============================================================
   10. SECTION TITLES (Digital India style)
   ============================================================ */
.section-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-wrap .sec-tag {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-title-wrap h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a2e5a;
    margin-bottom: 10px;
}

.section-title-wrap p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    max-width: 580px;
    margin: 0 auto;
}

.sec-underline {
    display: block;
    width: 48px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ============================================================
   11. SERVICE CARDS (Digital India icon card style)
   ============================================================ */
.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--color-border);
    border-top: 4px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card .svc-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5ee, #ffe0cc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.service-card:hover .svc-icon-wrap {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2e5a;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card .svc-link {
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.service-card .svc-link:hover {
    gap: 10px;
    color: var(--color-primary-dark);
}

/* ============================================================
   11.1 DIGITAL INDIA GRADIENT PALETTE CARDS (Matching Reference Image)
   ============================================================ */

/* Card 1: Soft Peach / Orange (Bhashini style) */
.service-card.svc-card-1 {
    background: linear-gradient(135deg, #FFF0E6 0%, #FDCBAE 100%) !important;
    border: 1px solid #FBB993 !important;
}
.service-card.svc-card-1 .svc-icon-wrap {
    background: #FFFFFF !important;
    color: #D94A00 !important;
    box-shadow: 0 4px 12px rgba(217, 74, 0, 0.18);
}
.service-card.svc-card-1 h4 { color: #7A2900 !important; }
.service-card.svc-card-1 p { color: #59250B !important; }
.service-card.svc-card-1 .svc-link { color: #D94A00 !important; }

/* Card 2: Warm Golden Saffron (UMANG style) */
.service-card.svc-card-2 {
    background: linear-gradient(135deg, #FFEBD5 0%, #FFC993 100%) !important;
    border: 1px solid #FBB168 !important;
}
.service-card.svc-card-2 .svc-icon-wrap {
    background: #FFFFFF !important;
    color: #E65100 !important;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.18);
}
.service-card.svc-card-2 h4 { color: #803000 !important; }
.service-card.svc-card-2 p { color: #542507 !important; }
.service-card.svc-card-2 .svc-link { color: #E65100 !important; }

/* Card 3: Light Sky Blue (API Setu style) */
.service-card.svc-card-3 {
    background: linear-gradient(135deg, #E2F3FF 0%, #B3DDFF 100%) !important;
    border: 1px solid #91CCFF !important;
}
.service-card.svc-card-3 .svc-icon-wrap {
    background: #FFFFFF !important;
    color: #0277BD !important;
    box-shadow: 0 4px 12px rgba(2, 119, 189, 0.18);
}
.service-card.svc-card-3 h4 { color: #013C5E !important; }
.service-card.svc-card-3 p { color: #0C334C !important; }
.service-card.svc-card-3 .svc-link { color: #0277BD !important; }

/* Card 4: Soft Lavender / Purple (Karmayogi style) */
.service-card.svc-card-4 {
    background: linear-gradient(135deg, #EBE8FF 0%, #C7BEFF 100%) !important;
    border: 1px solid #B0A2FF !important;
}
.service-card.svc-card-4 .svc-icon-wrap {
    background: #FFFFFF !important;
    color: #6A1B9A !important;
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.18);
}
.service-card.svc-card-4 h4 { color: #3B0B57 !important; }
.service-card.svc-card-4 p { color: #2B0D3D !important; }
.service-card.svc-card-4 .svc-link { color: #6A1B9A !important; }

/* Card 5: Soft Mint Green (Diksha style) */
.service-card.svc-card-5 {
    background: linear-gradient(135deg, #E2FAF0 0%, #9EEAC4 100%) !important;
    border: 1px solid #7DDEAE !important;
}
.service-card.svc-card-5 .svc-icon-wrap {
    background: #FFFFFF !important;
    color: #1B5E20 !important;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.18);
}
.service-card.svc-card-5 h4 { color: #0F3D13 !important; }
.service-card.svc-card-5 p { color: #0C2E0E !important; }
.service-card.svc-card-5 .svc-link { color: #1B5E20 !important; }

/* Card 6: Soft Pink / Rose (UX4G style) */
.service-card.svc-card-6 {
    background: linear-gradient(135deg, #FFEBF5 0%, #FFBDDE 100%) !important;
    border: 1px solid #F79BC7 !important;
}
.service-card.svc-card-6 .svc-icon-wrap {
    background: #FFFFFF !important;
    color: #AD1457 !important;
    box-shadow: 0 4px 12px rgba(173, 20, 87, 0.18);
}
.service-card.svc-card-6 h4 { color: #61072E !important; }
.service-card.svc-card-6 p { color: #420A22 !important; }
.service-card.svc-card-6 .svc-link { color: #AD1457 !important; }

/* ============================================================
   12. NOTICE BOARD SECTION
   ============================================================ */
.notice-board-section {
    background: #fff;
}

.notice-board-wrap {
    background: var(--color-light-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.notice-board-head {
    background: linear-gradient(135deg, #1a2e5a, #0A1931);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-board-head h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.notice-board-head a {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 600;
}

.notice-board-head a:hover {
    color: #fff;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 340px;
    overflow-y: auto;
}

.notice-list::-webkit-scrollbar {
    width: 4px;
}

.notice-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notice-list::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 2px;
}

.notice-list li {
    border-bottom: 1px solid var(--color-border);
    padding: 12px 18px;
    transition: background 0.2s ease;
}

.notice-list li:hover {
    background-color: #fff5ee;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li .notice-date {
    font-size: 0.7rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 3px;
    display: block;
}

.notice-list li a {
    color: var(--color-text);
    font-size: 0.84rem;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

.notice-list li a:hover {
    color: var(--color-primary);
}

.notice-list li .notice-badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================================
   13. COMMITTEE / QUICK LINKS SECTION
   ============================================================ */
.quick-link-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--color-text);
}

.quick-link-card:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.quick-link-card .ql-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: #fff0e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.quick-link-card:hover .ql-icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.quick-link-card .ql-text {
    flex: 1;
}

.quick-link-card .ql-text h6 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 2px;
}

.quick-link-card .ql-text small {
    font-size: 0.72rem;
    opacity: 0.7;
}

.quick-link-card .ql-arrow {
    font-size: 0.85rem;
    opacity: 0.5;
    transition: var(--transition);
}

.quick-link-card:hover .ql-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ============================================================
   14. CALLOUT / CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, #FF6200 0%, #FF9933 60%, #ffb347 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.cta-banner h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cta-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.btn-cta-white {
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    border: none;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-cta-white:hover {
    background: #1a2e5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-cta-outline {
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    border: 2px solid rgba(255,255,255,0.7);
    display: inline-block;
    transition: all 0.25s ease;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

/* ============================================================
   15. FOOTER (Digital India Dark Blue footer)
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, #1a2e5a 0%, #0A1931 100%);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 0;
}

.site-footer .footer-logo h4 {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.site-footer .footer-logo p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.site-footer .footer-heading {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 8px;
}

.site-footer .footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
}

.site-footer .footer-links a::before {
    content: '›';
    color: var(--color-primary);
    font-size: 1rem;
    line-height: 1;
}

.site-footer .footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.site-footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}

.site-footer .footer-contact-item i {
    color: var(--color-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.site-footer .social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.site-footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.site-footer .social-links a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

.site-footer .footer-bottom {
    background: rgba(0,0,0,0.25);
    margin-top: 40px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer .footer-bottom p {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

.site-footer .footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    margin-left: 16px;
    transition: var(--transition);
}

.site-footer .footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* ============================================================
   16. GENERIC BOOTSTRAP OVERRIDES
   ============================================================ */
.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    box-shadow: 0 4px 12px rgba(255, 98, 0, 0.35) !important;
}

.text-primary { color: var(--color-primary) !important; }
.bg-primary   { background-color: var(--color-primary) !important; }
.border-primary { border-color: var(--color-primary) !important; }

.bg-accent { background-color: #1a2e5a !important; }
.text-accent { color: #1a2e5a !important; }

/* ============================================================
   17. MOBILE DRAWER
   ============================================================ */
#mobile-nav-drawer {
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ============================================================
   18. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ============================================================
   19. RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .main-navbar .nav-item .nav-link {
        padding: 10px 14px !important;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    .main-navbar .nav-item .nav-link:hover,
    .main-navbar .nav-item .nav-link.active {
        border-bottom: none;
        border-left-color: var(--color-primary);
    }
    .hero-carousel .carousel-item {
        height: 320px;
    }
    .hero-carousel .carousel-caption {
        right: 10%;
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 1.4rem;
    }
}

/* Desktop Stats Bar Dividers (Sleek Vertical Line Pseudoelement) */
@media (min-width: 768px) {
    .stats-bar .row > div {
        position: relative;
        border-right: none !important;
        box-shadow: none !important;
    }
    .stats-bar .row > div:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.05) 100%);
        box-shadow: 1px 0 0 rgba(0, 0, 0, 0.4);
    }
}

@media (max-width: 1199px) {
    .main-navbar {
        display: none !important; /* Hide redundant bar on mobile, navigation is cleanly handled by top app-header and left drawer */
    }
}

@media (max-width: 767px) {
    .stats-bar {
        padding: 8px 0;
    }
    .stats-bar .row > div {
        border-right: none !important;
        box-shadow: none !important;
    }
    .stats-bar .row > div::after {
        display: none !important;
    }
    .stats-bar .stat-item {
        padding: 12px 6px;
    }
    /* Mobile 4-Box Grid Dividers */
    .stats-bar .row > div:nth-child(odd) .stat-item {
        border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    .stats-bar .row > div:nth-child(1) .stat-item,
    .stats-bar .row > div:nth-child(2) .stat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    .stats-bar .stat-number {
        font-size: 1.35rem;
    }
    .stats-bar .stat-label {
        font-size: 0.66rem;
    }
    .site-header-brand {
        padding: 5px 0 !important;
    }
    .site-header-brand::before {
        width: 110px !important;
        height: 110px !important;
        top: -35px !important;
        right: -25px !important;
        background: radial-gradient(circle, rgba(255, 98, 0, 0.16) 0%, rgba(255, 98, 0, 0.02) 70%, transparent 100%) !important;
    }
    .site-header-brand::after {
        width: 120px !important;
        height: 120px !important;
        bottom: -45px !important;
        left: -25px !important;
        background: radial-gradient(circle, rgba(255, 98, 0, 0.13) 0%, rgba(255, 98, 0, 0.02) 70%, transparent 100%) !important;
    }
    .site-header-brand .brand-deco-circle {
        display: none !important; /* Hide central decorative circle on mobile for a clean look */
    }
    .site-header-brand .brand-logo-wrap {
        gap: 10px !important;
    }
    .site-header-brand .brand-logo-img {
        width: 48px !important;
        height: 48px !important;
        padding: 0px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    }
    .site-header-brand .brand-title {
        font-size: 0.86rem !important;
        line-height: 1.18 !important;
        letter-spacing: 0.1px !important;
    }
    .site-header-brand .brand-subtitle {
        font-size: 0.60rem !important;
        margin-top: 1px !important;
        opacity: 0.95;
    }
    .accessibility-bar {
        font-size: 0.70rem !important;
        padding: 3px 0 !important;
    }
    .accessibility-bar .gov-identity {
        font-size: 0.65rem !important;
    }
    .mobile-header-menu-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.05rem !important;
        border-radius: 8px !important;
    }
    .hero-carousel .carousel-caption {
        padding: 14px 18px;
        min-height: auto;
        border-radius: 12px;
        left: 4%;
        right: 25%;
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }
    .hero-carousel .carousel-caption p {
        font-size: 0.76rem;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-carousel .carousel-caption .hero-tag {
        font-size: 0.62rem;
        padding: 2px 8px;
        margin-bottom: 6px;
    }
    .hero-carousel .carousel-caption .hero-glossy-btn {
        font-size: 0.78rem !important;
        padding: 6px 16px !important;
    }
    .hero-carousel .carousel-item {
        height: auto !important;
        aspect-ratio: 1920 / 515;
    }
    .section-title-wrap h2 {
        font-size: 1.35rem;
    }
    .cta-banner h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 575px) {
    .hero-carousel .carousel-caption {
        padding: 8px 12px;
        min-height: auto;
        left: 3%;
        right: 12%;
        border-radius: 8px;
        border-left-width: 3px;
    }
    .hero-carousel .carousel-caption .hero-tag {
        font-size: 0.55rem;
        padding: 1px 6px;
        margin-bottom: 2px;
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 0.88rem;
        margin-bottom: 2px;
        line-height: 1.15;
    }
    .hero-carousel .carousel-caption p {
        display: none; /* Hide long description on extra-small mobile to prevent covering image */
    }
    .hero-carousel .carousel-caption .hero-glossy-btn {
        font-size: 0.70rem !important;
        padding: 4px 10px !important;
    }
    .hero-carousel .carousel-indicators [data-bs-target] {
        width: 16px;
        height: 3px;
    }
    .hero-carousel .carousel-indicators .active {
        width: 24px;
    }
    .site-header-brand .brand-logo-img {
        width: 42px !important;
        height: 42px !important;
    }
    .site-header-brand .brand-title {
        font-size: 0.76rem !important;
    }
    .site-header-brand .brand-subtitle {
        font-size: 0.54rem !important;
    }
    .mobile-header-menu-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
    }
}

/* ============================================================
   20. MOBILE HEADER MENU BUTTON (BRMGSS Saffron Gradient Action Button)
   ============================================================ */
.mobile-header-menu-btn {
    background: linear-gradient(135deg, #FF6200 0%, #FF8533 100%);
    border: none;
    color: #ffffff !important;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 98, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: auto;
    outline: none;
}

.mobile-header-menu-btn:active,
.mobile-header-menu-btn:hover {
    background: linear-gradient(135deg, #E65100 0%, #FF6200 100%);
    color: #ffffff !important;
    transform: scale(0.93);
    box-shadow: 0 2px 6px rgba(255, 98, 0, 0.45);
}

/* ============================================================
   21. DARK MODE OVERRIDES
   ============================================================ */
[data-theme="dark"] .service-card,
[data-theme="dark"] .notice-board-wrap,
[data-theme="dark"] .quick-link-card {
    background: #1e2530;
    border-color: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .service-card h4 { color: #e2e8f0; }
[data-theme="dark"] body { background-color: #0d1117; }
[data-theme="dark"] .section-title-wrap h2 { color: #e2e8f0; }

/* ============================================================
   22. DRAWER LINK HOVER (Mobile)
   ============================================================ */
.drawer-link:hover {
    background: #FF6200 !important;
    color: #fff !important;
    border-color: #FF6200 !important;
}

.drawer-link:hover i {
    color: #fff !important;
}

/* ============================================================
   23. XL NAVBAR - Compact font for many menu items
   ============================================================ */
@media (min-width: 1200px) {
    .main-navbar .nav-item .nav-link {
        font-size: 0.82rem;
        padding: 14px 12px !important;
    }
}

@media (min-width: 1400px) {
    .main-navbar .nav-item .nav-link {
        font-size: 0.86rem;
        padding: 14px 16px !important;
    }
}

/* ============================================================
   24. BRAND LOGO WRAP FLEX
   ============================================================ */
.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ============================================================
   25. SMART FACEBOOK PAGE FOLLOW BOX / MODAL
   ============================================================ */
.fb-follow-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1070;
    width: 330px;
    max-width: calc(100vw - 32px);
    transform: translateY(120px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.4s;
    font-family: var(--font-main);
}

.fb-follow-box.fb-box-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.fb-follow-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(10, 25, 49, 0.2), 0 4px 12px rgba(24, 119, 242, 0.15);
    border: 1px solid rgba(24, 119, 242, 0.2);
    overflow: hidden;
}

.fb-follow-header {
    background: linear-gradient(135deg, #1877F2, #0d62d1);
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fb-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #ffffff;
    color: #1877F2;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
}

.fb-badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.fb-follow-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.fb-follow-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.fb-follow-body {
    padding: 16px;
}

.fb-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1877F2;
    background: #fff;
    flex-shrink: 0;
}

.fb-page-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0A1931;
    line-height: 1.2;
}

.fb-page-handle {
    font-size: 0.72rem;
    color: #1877F2;
    font-weight: 600;
    display: block;
}

.fb-page-desc {
    font-size: 0.75rem;
    color: #555555;
    margin-top: 3px;
    line-height: 1.3;
}

.btn-facebook {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 9px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-facebook:hover {
    background: #0f63d0 !important;
    border-color: #0f63d0 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
    color: #ffffff !important;
}

.fb-timer-bar-wrap {
    margin-top: 10px;
}

.fb-timer-bar-bg {
    width: 100%;
    height: 3px;
    background: #eef2f7;
    border-radius: 3px;
    overflow: hidden;
}

.fb-timer-bar {
    width: 100%;
    height: 100%;
    background: #1877F2;
    border-radius: 3px;
    transform-origin: left;
}

.fb-timer-text {
    font-size: 0.7rem;
    color: #888888;
    text-align: center;
    margin-top: 5px;
}

@media (max-width: 576px) {
    .fb-follow-box {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: 100%;
    }
}

/* ============================================================
   21. BRMGSS OFFICIAL HOMEPAGE NOTICE POPUP MODAL
   ============================================================ */
.brmgss-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(10, 25, 49, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 16px;
}

.brmgss-popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.brmgss-popup-dialog {
    position: relative;
    max-width: 760px;
    width: 100%;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.brmgss-popup-backdrop.active .brmgss-popup-dialog {
    transform: scale(1) translateY(0);
}

.brmgss-popup-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    background: #FF6200;
    color: #ffffff !important;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.25s ease, background 0.25s ease;
    text-decoration: none;
}

.brmgss-popup-close-btn:hover {
    transform: scale(1.12) rotate(90deg);
    background: #e05500;
    color: #ffffff;
}

/* --- Text Mode: Custom Background Frame Container --- */
.brmgss-notice-frame-wrap {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    background: #ffffff;
}

.brmgss-notice-bg-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.brmgss-notice-content-overlay {
    position: absolute;
    top: 45%;
    left: 12%;
    right: 12%;
    bottom: 16%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    pointer-events: auto;
    z-index: 5;
}

.brmgss-notice-scroll-area {
    overflow-y: auto;
    max-height: 74%;
    padding-right: 8px;
}

.brmgss-notice-scroll-area::-webkit-scrollbar {
    width: 5px;
}
.brmgss-notice-scroll-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.brmgss-notice-scroll-area::-webkit-scrollbar-thumb {
    background: #FF6200;
    border-radius: 4px;
}

.brmgss-notice-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a2e5a;
    text-align: center;
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom: 2px dashed rgba(255, 98, 0, 0.35);
    padding-bottom: 6px;
    line-height: 1.35;
    font-family: 'Poppins', sans-serif;
}

.brmgss-notice-body {
    font-size: 0.88rem;
    color: #2d3748;
    line-height: 1.55;
    text-align: justify;
    font-family: 'Poppins', sans-serif;
}

.brmgss-notice-signatory-wrap {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: right;
    transform: translateY(-3px);
}

.brmgss-sig-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a2e5a;
    line-height: 1.15;
    font-family: 'Poppins', sans-serif;
}

.brmgss-sig-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #FF6200;
    line-height: 1.25;
    font-family: 'Poppins', sans-serif;
}

/* --- Image Mode: Direct Banner Container --- */
.brmgss-notice-image-wrap {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brmgss-notice-banner-img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    margin: 0 auto;
}

.brmgss-notice-image-action {
    width: 100%;
    background: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
}

/* ============================================================
   20. BRMGSS BLOG SECTION & CARD DESIGN SYSTEM
   ============================================================ */
.brmgss-blog-section {
    position: relative;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.brmgss-blog-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.brmgss-blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 32px rgba(10, 37, 64, 0.12);
    border-color: rgba(255, 98, 0, 0.4);
}

.blog-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brmgss-blog-card:hover .blog-thumb-img {
    transform: scale(1.07);
}

.blog-cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 37, 64, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.blog-meta {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta-dot {
    color: #cbd5e1;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

.blog-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--color-primary, #FF6200);
}

.blog-card-excerpt {
    font-size: 0.86rem;
    line-height: 1.55;
    color: #64748b;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-btn {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary, #FF6200);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.blog-read-btn:hover {
    color: var(--color-primary-dark, #e05600);
    transform: translateX(3px);
}

/* ============================================================
   21. LAZY LOADING & SCROLL REVEAL OPTIMIZATION
   ============================================================ */
.lazy-section {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.lazy-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides for Mobile */
@media (max-width: 767px) {
    .brmgss-popup-dialog {
        max-width: 96%;
    }
    .brmgss-popup-close-btn {
        top: -10px;
        right: -10px;
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .brmgss-notice-heading {
        font-size: 0.95rem;
        margin-bottom: 4px;
        padding-bottom: 3px;
    }
    .brmgss-notice-body {
        font-size: 0.72rem;
        line-height: 1.4;
    }
    .brmgss-sig-name {
        font-size: 0.78rem;
    }
    .brmgss-sig-title {
        font-size: 0.64rem;
    }
    .blog-card-title {
        font-size: 0.98rem;
        min-height: auto;
    }
}


/* ============================================================
   SHIMMER LOADING EFFECT — BRMGSS Admin / Member Portal
   Pure CSS, zero-dependency, GPU-accelerated
   ============================================================ */

@keyframes shimmer-brmgss {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.shimmer-block {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 37%, #F1F5F9 63%);
  background-size: 1200px 100%;
  animation: shimmer-brmgss 1.4s ease-in-out infinite;
  border-radius: 6px;
  display: block;
}

.shimmer-stat-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #E2E8F0;
  border-radius: 12px; padding: 14px 16px; pointer-events: none;
}
.shimmer-stat-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.shimmer-stat-text { flex: 1; }
.shimmer-stat-num  { height: 20px; width: 70px; margin-bottom: 6px; }
.shimmer-stat-lbl  { height: 10px; width: 90px; }

.shimmer-table-wrap {
  background: #fff; border: 1px solid #E2E8F0;
  border-radius: 12px; overflow: hidden;
}
.shimmer-table-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #F1F5F9;
}
.shimmer-table-row:last-child { border-bottom: none; }
.shimmer-avatar  { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.shimmer-col-name  { height: 12px; width: 160px; }
.shimmer-col-sm    { height: 12px; width: 80px;  }
.shimmer-col-md    { height: 12px; width: 110px; }
.shimmer-col-lg    { height: 12px; width: 140px; }
.shimmer-col-badge { height: 20px; width: 60px; border-radius: 999px; }

.shimmer-card {
  background: #fff; border: 1px solid #E2E8F0;
  border-radius: 12px; padding: 18px 20px;
}
.shimmer-card-title { height: 16px; width: 140px; margin-bottom: 16px; }
.shimmer-card-line  { height: 11px; width: 100%; margin-bottom: 8px; }
.shimmer-card-line.w-3-4 { width: 75%; }
.shimmer-card-line.w-1-2 { width: 50%; }

#page-skeleton { display: block; animation: sk-fadein .15s ease; }
@keyframes sk-fadein { from { opacity:0; } to { opacity:1; } }
#page-skeleton.skeleton-hidden { display: none !important; }
#page-real-content { display: none; }
#page-real-content.content-visible {
  display: block !important;
  animation: content-show .25s ease;
}
@keyframes content-show {
  from { opacity:0; transform:translateY(4px); }
  to   { opacity:1; transform:translateY(0); }
}
