/* ==================== 21-SCHOOL.UZ INSPIRED DESIGN SYSTEM ==================== */

:root {
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme MODERN (Deep Navy & Neon Teal) */
body.theme-modern,
body:not([class*="theme-"]) {
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --accent-neon: #22d3ee;
    --accent-purple: #818cf8;
    --primary-gradient: radial-gradient(circle at top right, #1e293b, #0f172a);
    --neon-gradient: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
}

/* Theme GREEN (Deep Forest & Vivid Emerald) */
body.theme-green {
    --bg-dark: #064e3b;
    --bg-light: #f0fdf4;
    --accent-neon: #34d399;
    --accent-purple: #10b981;
    --primary-gradient: radial-gradient(circle at top right, #065f46, #064e3b);
    --neon-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

/* Theme MIDNIGHT (Deep Indigo & Electric Purple) */
body.theme-midnight {
    --bg-dark: #1e1b4b;
    --bg-light: #faf5ff;
    --accent-neon: #a855f7;
    --accent-purple: #f43f5e;
    --primary-gradient: radial-gradient(circle at top right, #312e81, #1e1b4b);
    --neon-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

/* Theme SUNSET (Deep Maroon & Vivid Gold) */
body.theme-sunset {
    --bg-dark: #451a03;
    --bg-light: #fff7ed;
    --accent-neon: #fbbf24;
    --accent-purple: #f97316;
    --primary-gradient: radial-gradient(circle at top right, #7c2d12, #451a03);
    --neon-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Theme OCEAN (Deep Deep Blue & Vivid Cyan) */
body.theme-ocean {
    --bg-dark: #083344;
    --bg-light: #ecfeff;
    --accent-neon: #22d3ee;
    --accent-purple: #38bdf8;
    --primary-gradient: radial-gradient(circle at top right, #164e63, #083344);
    --neon-gradient: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
}

/* Theme GRAY (Deep Slate & Vivid Silver) */
body.theme-gray {
    --bg-dark: #1e293b;
    --bg-light: #f8fafc;
    --accent-neon: #94a3b8;
    --accent-purple: #cbd5e1;
    --primary-gradient: radial-gradient(circle at top right, #334155, #1e293b);
    --neon-gradient: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}


/* Theme-dependent text colors */
body {
    --text-on-dark: #f8fafc;
    --text-on-light: #0f172a;
}


/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Section Transitions (Alternating) */
section.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
}

section.bg-white {
    background-color: #ffffff !important;
    color: var(--text-on-light) !important;
}

section.bg-light {
    background-color: var(--bg-light) !important;
    color: var(--text-on-light) !important;
}

/* Global Glass Overlay with Spatial Glow */
#global-glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    z-index: -5;
    pointer-events: none;
}

/* Typography Master Class */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-neon);
    border-radius: 2px;
}

/* Button Upgrades (21-school style) */
.btn-primary,
.btn-neon {
    background: var(--neon-gradient) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    color: white !important;
    transition: var(--transition-smooth) !important;
    text-transform: none !important;
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3) !important;
}

.btn-primary:hover,
.btn-neon:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 196, 182, 0.5) !important;
}

.btn-purple {
    background: var(--purple-gradient) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    color: white !important;
}

/* Branding & Header */
header {
    background: #0a0f1d !important;
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.navbar {
    padding: 15px 0 !important;
}

.navbar-brand {
    font-weight: 800 !important;
    color: white !important;
    font-size: 1.2rem !important;
}

.navbar-nav .nav-link {
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 18px !important;
    transition: var(--transition-smooth);
    font-size: 0.9rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-neon) !important;
}

/* Hero Section Transformation */
.hero-clean-layout {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, var(--accent-purple), transparent 50%),
        radial-gradient(circle at bottom left, var(--accent-neon), transparent 50%);
    background-blend-mode: soft-light;
    background-color: var(--bg-dark);
    padding: 100px 0;
}

/* ═══════════════════════════════════════════
   HERO IMAGE SLIDESHOW — Full-Screen Gallery
═══════════════════════════════════════════ */
.hero-slideshow-section {
    position: relative;
    width: 100%;
    height: 92vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Swiper itself fills the entire section */
.hero-swiper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    overflow: hidden;
}

/* Swiper wrapper must also be full height */
.hero-swiper .swiper-wrapper {
    height: 100% !important;
}

/* Each slide: plain container, Swiper handles transforms */
.hero-swiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
}

/* Inner background div — gets Ken Burns zoom */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    animation: heroKenBurns 10s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1.00);
    }

    100% {
        transform: scale(1.08);
    }
}

/* Gradient overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(5, 10, 25, 0.40) 0%,
            rgba(5, 10, 25, 0.55) 50%,
            rgba(5, 10, 25, 0.78) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Hero text content floats over the images */
.hero-content-over {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 80px 20px;
    text-align: center;
}

/* ── Navigation Arrows ─────────────────── */
.hero-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    user-select: none;
}

.hero-swiper-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hero-swiper-btn.prev {
    left: 20px;
}

.hero-swiper-btn.next {
    right: 20px;
}

/* ── Pagination Dots ───────────────────── */
.hero-swiper-pagination {
    position: absolute !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 4 !important;
    display: flex !important;
    gap: 8px;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    opacity: 1 !important;
    transition: all 0.35s ease !important;
    border-radius: 50% !important;
    cursor: pointer;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: #ffffff !important;
    transform: scale(1.5) !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8) !important;
}

/* Override hero text inside slideshow */
.hero-slideshow-section .main-hero-title {
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.9) !important;
}

.hero-slideshow-section .hero-tag {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slideshow-section {
        height: 75vh;
        min-height: 400px;
    }

    .hero-content-over {
        padding: 50px 15px;
    }

    .hero-swiper-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-swiper-btn.prev {
        left: 10px;
    }

    .hero-swiper-btn.next {
        right: 10px;
    }
}

.main-hero-title {
    font-size: 4rem !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.main-hero-title .line-1 {
    font-size: 1.4rem;
    color: var(--accent-neon);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    font-weight: 800;
}

.main-hero-title .line-2 {
    font-weight: 950;
    color: #ffffff;
}

.main-hero-title .line-3 {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.hero-tag {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(var(--accent-neon-rgb), 0.15);
    /* We need the RGB or just stick to standard */
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-neon);
    border: 1px solid var(--accent-neon);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 35px;
}



html {
    min-height: 100vh;
}

#global-glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, var(--bg-grad-1), var(--bg-grad-2), var(--bg-grad-3), var(--bg-grad-4));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -5;
    /* Behind content but above 3D scene */
    pointer-events: none;
}

body {
    background: transparent !important;
    color: var(--dark-navy);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background 1s ease, color 0.5s ease;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



/* Hero Title Soft 3D Style - Extra Dark & Professional (Theme-aware) */
/* Premium Two-Tone Themed Gradient Hero Titles */
.main-hero-title {
    font-size: 4rem !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.main-hero-title .line-1 {
    font-size: 1.4rem !important;
    color: var(--accent-neon) !important;
    text-transform: uppercase !important;
    letter-spacing: 5px !important;
    margin-bottom: 15px !important;
}

.main-hero-title .line-2 {
    font-weight: 950 !important;
}

.main-hero-title .line-3 {
    font-size: 1.8rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
    margin-top: 10px !important;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(46, 196, 182, 0.15);
    color: var(--accent-neon);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border: 1px solid rgba(46, 196, 182, 0.2);
}


/* All lines must be fully opaque and visible */
.main-hero-title span:nth-child(1),
.main-hero-title span:nth-child(2),
.main-hero-title span:nth-child(3) {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 900px) {
    .main-hero-title {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .main-hero-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        flex-direction: column !important;
        padding: 0 15px !important;
    }

    .main-hero-title span {
        display: block !important;
        white-space: normal !important;
        width: 100% !important;
        margin-bottom: 5px !important;
        font-size: 1.5rem !important;
        word-break: normal !important;
    }
}

.hero-subtitle {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 1.5rem auto !important;
    text-align: center !important;
    display: block;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* News Search Bar (21-school style) */
.news-search-container {
    max-width: 800px;
    margin: 0 auto 50px;
}

.news-search-input {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
    padding: 18px 25px 18px 55px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    color: var(--text-on-light) !important;
    transition: var(--transition-smooth) !important;
}

.news-search-input:focus {
    border-color: var(--accent-neon) !important;
    box-shadow: 0 15px 40px rgba(46, 196, 182, 0.1) !important;
    transform: translateY(-2px);
}

.search-icon-inside {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-neon);
    font-size: 1.2rem;
}

/* Date Navigation Tab Buttons */
.nav-btn {
    border-radius: 12px !important;
    padding: 10px 24px !important;
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: var(--text-on-light) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
    margin: 5px !important;
}

.nav-btn:hover {
    border-color: var(--accent-neon) !important;
    color: var(--accent-neon) !important;
}

.nav-btn.active {
    background: var(--neon-gradient) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(46, 196, 182, 0.3) !important;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: transparent !important;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glassmorphism for Themes */
body.theme-modern #news-container .card,
body.theme-green #news-container .card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}



/* Custom overwrites for Ticker - Glassmorphism */
.ticker-wrap {
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color) !important;
}

.ticker-wrap .ticker {
    color: var(--accent-color) !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.ticker {
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    display: inline-block;
    padding-left: 100%;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Header & Branding - Glassmorphism Professional Design */
.branding-bar {
    background: transparent !important;
    padding: 2px 0;
    color: white;
    box-shadow: none !important;
    border: none !important;
    position: relative;
    z-index: 10;
    border-radius: 0 !important;
}

header {
    background: var(--primary-gradient);
    border-bottom: none !important;
    position: relative;
    z-index: 1050;
    margin-bottom: 0;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Adjust Hero and Body padding to account for fixed header (~190-250px) */
/* Removed redundant fixed header padding to fix the white gap */
.hero-clean-layout {
    padding-top: 0 !important;
}

/* Force fully transparent artifacts-free header on Contact page */
body[data-page="contact"] header,
body[data-page="contact"] .branding-bar,
body[data-page="contact"] .ticker-wrap,
body[data-page="contact"] .navbar,
body[data-page="contact"] .navbar .container,
body[data-page="contact"] footer {
    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Force White Menu Color on Contact Page - OVERRIDING ALL THEMES */
/* Cleaned up old theme overrides */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-neon) !important;
}


.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0 auto;
    /* Force Center */
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    padding: 6px 15px !important;
    color: white !important;
    /* Force white for visibility on dark headers */
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-size: 0.82rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    letter-spacing: 0.5px;
    margin: 0 4px;
    border-radius: 25px;
    border: 1px solid transparent;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
    text-shadow: 0 0 15px var(--primary-color), 0 0 5px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 15px var(--primary-color)33;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 60%;
    background: #000;
    /* Dark line for dark text */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

/* Page Transition Effect - Fade for maximum smoothness */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Fixed 3D Background - Follows you everywhere */
#hero-3d-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100vh !important;
    z-index: -2 !important;
    /* En orqada ko'rinsin */
    opacity: 1 !important;
    /* 3D elementlar yorqin bo'lsin */
    pointer-events: none;
}

/* Hero Section Refinement */
.hero {
    background: transparent !important;
    /* Fon yo'qoladi */
    padding: 10rem 0 !important;
    position: relative;
    overflow: visible;
    /* Kesilmaydi */
    color: white;
    z-index: 1;
}

/* Static and stable hero title - no 3D movement */
.main-hero-title {
    font-size: 4.8rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.6rem !important;
    font-weight: 500 !important;
    position: relative;
    z-index: 10;
}

/* Static and stable hero title - zero animation */
.main-hero-title,
.hero-subtitle {
    opacity: 1 !important;
    transform: none !important;
    /* Move/Transform harakatini o'chirish */
    transition: none !important;
    /* Kechikish harakatini o'chirish */
    animation: none !important;
    /* Har qanday keyframe animatsiyani o'chirish */
    position: relative;
    z-index: 10;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}



/* News Cards Customization on top of Bootstrap Cards */
#news-container .card,
#searchResultsGrid .card {
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%) contrast(100%);
    -webkit-backdrop-filter: blur(20px) saturate(160%) contrast(100%);
    position: relative;
    z-index: 1;
}

#news-container .card::before,
#searchResultsGrid .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    z-index: -1;
}


#news-container .card:hover,
#searchResultsGrid .card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    backdrop-filter: blur(25px) saturate(180%) contrast(105%);
}

/* Reaction Bar Styles */
.news-reaction-bar {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
}

.news-reaction-bar::-webkit-scrollbar {
    display: none;
}

.reaction-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-main);
}

.reaction-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.reaction-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reaction-count {
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0.8;
}


#news-container .card-img-top,
#searchResultsGrid .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

#news-container .card:hover .card-img-top,
#searchResultsGrid .card:hover .card-img-top {
    transform: scale(1.05);
}

/* Final Footer (21-school style) */
footer {
    background: var(--bg-dark) !important;
    color: var(--text-on-dark);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
}

.footer-link-list li {
    margin-bottom: 12px;
}

.footer-link-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link-list a:hover {
    color: var(--accent-neon);
    padding-left: 5px;
}


/* Removed old snowflakes, lights, corner-decor CSS */

.ministry-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.2rem;
    /* Closer to school name */
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
}

.ministry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.ministry-item img {
    height: 30px;
    /* Force small size as requested */
    width: auto;
}

.ministry-item:hover {
    color: var(--primary-color);
}

.school-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* More space between logo and text */
    flex-wrap: nowrap;
    /* Force single line */
}

.school-logo {
    /* Dimensions handled inline or via utility, but forcing reset here */
    object-fit: contain;
}

.school-name h1 {
    font-size: 1rem;
    /* Adjustable baseline */
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    /* Force text to stay on one line */
}

/* Nav styles replaced by Bootstrap */


/* Hero and Grid styles replaced by Bootstrap */


/* News Marquee Styles */
.card {
    background: var(--white);
    border-radius: var(--shape-asymmetric);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother transition */
    border-left: 5px solid var(--primary-color);
    position: relative;
    cursor: pointer;
    /* Indicate clickable */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-interactive.expanded {
    grid-column: span 1;
    /* Keep layout but expand height if needed */
    z-index: 10;
    transform: scale(1.02);
    /* Pop out slightly */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    background: white;
    /* Ensure text is readable */
}

.news-marquee-container {
    height: 80px;
    /* Initial small height */
    overflow: hidden;
    background: #f0f0f0;
    /* Smooth background */
    position: relative;
    transition: height 0.5s ease;
    border-top: 1px solid #eee;
}

.news-card-interactive.expanded .news-marquee-container {
    height: 180px;
    /* Expanded height */
}

.news-marquee {
    display: flex;
    gap: 15px;
    padding: 10px;
    width: max-content;
    /* Allow content to stretch */
    animation: scrollMarquee 20s linear infinite;
    align-items: center;
}

.news-marquee.reverse-scroll {
    animation: scrollMarqueeReverse 25s linear infinite;
}

.news-marquee img {
    height: 60px;
    /* Initial small image */
    width: auto;
    border-radius: var(--shape-smooth);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: zoom-in;
    object-fit: cover;
    flex-shrink: 0;
}

/* Center Highlight Simulation:
   Real CSS-only center checking is hard without scroll-snap.
   We will rely on the expanded state to scale images up globally. */
.news-card-interactive.expanded .news-marquee img {
    height: 140px;
    /* Larger images when card is expanded */
}

.news-marquee img:hover {
    transform: scale(1.1);
    /* Zoom on hover */
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes content is duplicated */
}

@keyframes scrollMarqueeReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* News Card Statistics */
.news-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.btn-like {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    transition: var(--transition-standard);
}

.btn-like:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.btn-like.active {
    color: #ef4444;
}

.btn-like.active i {
    font-weight: 900;
    /* Solid heart */
}

.news-views i {
    color: var(--primary-color);
}

/* Footer Visitor Counter */
.visitor-counter {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    backdrop-filter: blur(5px);
}

.visitor-counter-icon {
    color: var(--warning-color);
    font-size: 1rem;
    animation: pulse-simple 2s infinite;
}

@keyframes pulse-simple {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.visitor-count-text {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.news-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: var(--dark-green);
    text-decoration: underline;
}



/* Image Modal Gallery */
.image-modal {
    display: none;
    position: fixed;
    z-index: 30001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    flex-direction: column;
}

.image-modal img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
    /* Ensure full image is visible */
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modal-close-btn:hover {
    opacity: 1;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Stats Section (Home Preview) */
.stats-preview {
    background-color: var(--white);
    text-align: center;
    padding: 4rem 5%;
}

/* Footer Advanced */
footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 1rem 5%;
    /* Significantly reduced padding */
    margin-top: auto;
    /* Push to bottom */
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    /* Better vertical alignment */
    gap: 1rem;
    /* Reduced gap */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h2 {
    font-size: 1.5rem;
    /* Smaller font */
    margin-bottom: 0.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
}

.footer-brand p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-social {
    flex: 2;
    /* Allocate more space to center properly */
    display: flex;
    justify-content: center;
    min-width: 280px;
}

.social-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    /* Tighter gap */
    justify-content: center;
    width: 100%;
    max-width: 320px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    /* Smaller padding */
    border-radius: 8px;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.qr-section {
    text-align: center;
    background: white;
    padding: 0.5rem;
    /* Smaller padding */
    border-radius: 8px;
    color: #333;
    max-width: 120px;
}

.qr-section img {
    width: 100px;
    height: 100px;
}

.qr-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.8rem;
    color: var(--white);
    text-align: center;
}

.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.copyright {
    text-align: center;
    margin-top: 1rem;
    /* Reduced margin */
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    opacity: 0.7;
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 30000;
    /* Highest priority */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #eee;
    margin-top: 1rem;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 100%;
    transition: width linear;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .branding-bar {
        padding: 15px 0 !important;
    }

    .school-identity {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .school-name-text,
    .branding-bar h1 {
        font-size: 0.9rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        text-align: center !important;
        max-width: 250px;
    }

    .school-logo {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0;
    }

    .school-logo {
        width: 40px !important;
        /* Ensure logo fits */
        height: 40px !important;
        flex-shrink: 0;
    }

    .ministry-links {
        gap: 1rem;
        font-size: 0.7rem;
    }

    .ministry-item img {
        height: 25px;
    }

    /* Mobile Nav */
    .nav-container {
        justify-content: space-between;
        /* Space out logo area (if any) and toggle */
    }

    /* We need to force the toggle to appear on the right */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20002;
    }

    /* Mobile Nav Fixes for Visibility - Light Glassmorphism with High Contrast Text */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 20px;
        margin-top: 15px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
        border: 2px solid white;
    }

    .navbar-collapse .nav-link {
        color: var(--primary-color) !important;
        font-weight: 900 !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        /* Soft 3D shadow - Theme Aware */
        text-shadow: 1px 1px 0 #fff, 2px 2px 0 #fff, 0px 4px 6px rgba(0, 0, 0, 0.1) !important;
        padding: 12px 20px !important;
        margin-bottom: 8px !important;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 0 #cbd5e1;
        /* 3D shakl (bottom) */
        text-align: center;
        border: 1px solid #e2e8f0;
    }

    .navbar-collapse .nav-item {
        margin-bottom: 5px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        text-align: center;
        gap: 15px;
        z-index: 20001;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    /* Adjust Footer for Mobile Grid */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social {
        width: 100%;
    }

    .social-media {
        max-width: 100%;
        /* Use full width */
    }
}

/* Dynamic News Styles */
.news-group-header {
    grid-column: 1 / -1;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-green);
    text-transform: uppercase;
    font-size: 1.2rem;
}

.news-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .news-image-container img {
    transform: scale(1.05);
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* News Detail Modal - Refined UI/UX with Transitions */
#news-detail-modal {
    z-index: 10000;
}

#news-detail-modal .modal-dialog {
    max-width: 900px;
    margin: 1.75rem auto;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease-out;
}

#news-detail-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: #fff;
}

/* ==================== TELEGRAM CONTENT STYLES ==================== */
.emoji {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-top: -2px;
}

.emoji b {
    display: none;
}

.tgme_widget_message_text {
    line-height: 1.6;
    word-wrap: break-word;
}

.tgme_widget_message_text b,
.tgme_widget_message_text strong {
    color: var(--dark-green);
    font-weight: 700;
}

.tgme_widget_message_text a {
    color: #2481cc;
    text-decoration: none;
}

.tgme_widget_message_text a:hover {
    text-decoration: underline;
}

/* ==================== CUSTOM MODAL (VARIANT 2) ==================== */

/* Modal overlay (orqa qora fon) */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85);
    z-index: 40000;
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-overlay.active {
    display: flex;
    /* Changed from block to flex for centering */
}

/* Modal o'zi */
.custom-modal {
    display: none;
    position: relative;
    /* Not fixed anymore, centered by overlay */
    width: 100%;
    max-width: 1200px;
    max-height: 92vh;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    z-index: 40001;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.custom-modal.active {
    display: block;
}

/* Animatsiyalar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalAppear {
    from {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.custom-modal-header {
    padding: 0.75rem 1.5rem;
    /* Reduced from 1.5rem 2rem */
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-modal-title {
    font-size: 1rem;
    /* Reduced from 1.25rem */
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.custom-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Body - Landscape Layout */
.custom-modal-body {
    display: flex;
    height: calc(92vh - 70px);
    max-height: 700px;
}

/* Rasm container - Chap tomon (50%) */
.modal-image-side {
    flex: 0 0 50%;
    background: #1a202c;
    /* Dark background to frame contain images */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
    /* Shrinks the image presence and provides space */
}

.modal-image-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures the whole image is seen regardless of aspect ratio */
}

/* Matn container - O'ng tomon (50%) */
.modal-text-side {
    flex: 0 0 50%;
    padding: 1.5rem 2rem;
    /* Reduced from 2rem 2.5rem */
    overflow-y: auto;
    background: white;
}

#modalHeading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#modalContent {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
}

#modalContent br {
    margin-bottom: 0.5rem;
    display: block;
    content: "";
}



.modal-heading h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--modal-heading);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}


.modal-text-side .content {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--modal-text);
}


.modal-text-side .content p {
    margin-bottom: 1rem;
}

/* Hashteglar */
.modal-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.modal-hashtag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--modal-hashtag-bg);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-hashtag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Scrollbar */
.modal-text-side::-webkit-scrollbar {
    width: 6px;
}

.modal-text-side::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-text-side::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* ==================== MOBIL (768px dan kichik) ==================== */
@media (max-width: 768px) {
    .custom-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .custom-modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 90vh !important;
        transform: translateY(100%) !important;
        border-radius: 30px 30px 0 0 !important;
        animation: none !important;
        margin: 0 !important;
    }

    .custom-modal.active {
        transform: translateY(0) !important;
    }

    .custom-modal-body {
        flex-direction: column;
        height: auto;
        max-height: 80vh;
    }

    .modal-image-side {
        flex: 0 0 auto;
        height: 250px;
        padding: 1rem;
    }

    .modal-text-side {
        flex: 1 1 auto;
        padding: 1.5rem;
    }
}

/* Modal Navigation Arrows */
.modal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10001;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: -80px;
}

.next-arrow {
    right: -80px;
}

/* Modal Video Styling */
#modalMediaContainer {
    position: relative;
    cursor: pointer;
}

#modalVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.modal-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 5rem;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-playing .modal-play-overlay {
    opacity: 0;
}

/* 3D Back to Top Button */
.btn-3d-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--shape-sharp);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 0 #1e1b4b, 0 15px 25px rgba(0, 0, 0, 0.3);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
}

body.theme-green .btn-3d-up {
    box-shadow: 0 8px 0 #064e3b, 0 15px 25px rgba(0, 0, 0, 0.3);
}

.btn-3d-up:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 #1e1b4b, 0 20px 30px rgba(0, 0, 0, 0.4);
}

body.theme-green .btn-3d-up:hover {
    box-shadow: 0 12px 0 #064e3b, 0 20px 30px rgba(0, 0, 0, 0.4);
}

/* Unified Footer Styles */
footer {
    background: var(--dark-navy) !important;
    padding: 3rem 0 1.5rem !important;
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand h2 {
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-social .social-media {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition-standard);
    opacity: 0.8;
}

.social-item:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-qr {
    text-align: center;
}

.qr-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.qr-section img {
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    footer .row>div {
        text-align: center !important;
    }
}

/* 3D Home (Bosh Sahifa) Button */
.btn-3d-home {
    position: fixed;
    bottom: 180px;
    right: 37px;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    /* Blue modern color */
    color: white;
    border: none;
    border-radius: var(--shape-sharp);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 0 #1D4ED8, 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
}

.btn-3d-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #1D4ED8, 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* 3D Jump to Footer Button */
.btn-3d-down {
    position: fixed;
    bottom: 105px;
    right: 37px;
    width: 48px;
    height: 48px;
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: var(--shape-sharp);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 0 #b45309, 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
}

.btn-3d-down:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #b45309, 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-3d-down:active {
    transform: translateY(5px);
    box-shadow: none;
}

.btn-3d-up:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #1e1b4b, 0 5px 10px rgba(0, 0, 0, 0.2);
}

body.theme-green .btn-3d-up:active {
    box-shadow: 0 2px 0 #064e3b, 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-3d-up.show {
    display: flex;
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Admin Team Section */
.admin-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    background: var(--light-bg);
}

.admin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    height: 100%;
}

.admin-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.admin-card img {
    width: 200px;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.admin-card figcaption {
    font-weight: 600;
    color: var(--text-main);
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    width: 100%;
}

.admin-card figcaption p {
    margin-top: auto;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Admin / Deployment Hint - Hidden until hover */
.deployment-info {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    letter-spacing: 0.8px;
    transition: all 0.5s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    display: inline-block;
    cursor: help;
    opacity: 0;
    /* Fully hidden by default */
}

.deployment-info i {
    margin-right: 5px;
    color: var(--warning-color);
}

.deployment-info:hover {
    opacity: 1;
    /* Revealed on hover */
    color: rgba(255, 255, 255, 0.9);
    border-top-color: rgba(255, 255, 255, 0.2);
}

.deployment-info span {
    font-weight: 600;
    color: #ffd700;
}

/* ===== AUTOMATIC FLOATING PARTICLES (DOTS / SHAPES) ===== */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.9;
    animation: particleFloat 15s infinite linear;
}

/* Shapes for variety */
.particle-square {
    position: absolute;
    border-radius: 4px;
    opacity: 0.9;
    animation: particleFloatRotate 18s infinite linear;
}

.particle-triangle {
    position: absolute;
    border-radius: 0;
    opacity: 0.9;
    animation: particleFloatRotate 20s infinite linear;
}

/* Slower option class */
.slow-particles .particle,
.slow-particles .particle-square,
.slow-particles .particle-triangle {
    animation-duration: 40s !important;
    opacity: 0.6 !important;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translate(25px, -25px) scale(1.1);
    }

    50% {
        opacity: 1;
        transform: translate(-15px, 35px) scale(0.9);
    }

    80% {
        opacity: 1;
        transform: translate(-35px, -15px) scale(1.0);
    }

    100% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
}

@keyframes particleFloatRotate {
    0% {
        transform: translate(0, 0) scale(0.5) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translate(30px, -30px) scale(1.1) rotate(60deg);
    }

    50% {
        opacity: 1;
        transform: translate(-20px, 40px) scale(0.9) rotate(180deg);
    }

    80% {
        opacity: 1;
        transform: translate(-40px, -20px) scale(1.0) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

/* News Glass Background removed for full transparency */
.news-glass-bg {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
}

body.theme-green .news-glass-bg {
    background: transparent !important;
}

/* NEWS CARDS: Professional Glassmorphism */
#news-container .card,
.card,
.admin-card,
.infra-card,
.value-card,
.achievement-card {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

body.theme-modern .card,
body.theme-modern .achievement-card {
    background: rgba(15, 23, 42, 0.6) !important;
    color: var(--text-light) !important;
}

body.theme-green .card,
body.theme-green .achievement-card {
    background: rgba(6, 78, 59, 0.6) !important;
    color: var(--text-light) !important;
}

#news-container .card-content {
    background: transparent !important;
}

/* Make news Swiper look more professional */
.newsSwiper {
    padding: 10px 0 40px;
    /* Leave space for pagination */
    transition: all 0.5s ease;
}

.swiper-slide {
    height: auto;
    /* Allow equal heights using flex inside card */
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Grid View for Swiper Toggle (View All mode) */
.newsSwiper.grid-view {
    overflow: visible;
}

.newsSwiper.grid-view .swiper-wrapper {
    flex-wrap: wrap !important;
    flex-direction: row;
    transform: translate3d(0px, 0px, 0px) !important;
    gap: 25px;
    box-sizing: border-box;
}

.newsSwiper.grid-view .swiper-slide {
    width: calc(33.333% - 17px) !important;
    margin-right: 0 !important;
    margin-bottom: 25px !important;
}

@media(max-width: 1024px) {
    .newsSwiper.grid-view .swiper-slide {
        width: calc(50% - 13px) !important;
    }
}

@media(max-width: 768px) {
    .newsSwiper.grid-view .swiper-slide {
        width: 100% !important;
    }
}

.newsSwiper.grid-view .swiper-pagination {
    display: none !important;
}

/* Custom Swiper Navigation Buttons */
.custom-swiper-btn {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.8);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-swiper-btn:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1);
}

.custom-swiper-btn::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

/* Adjust position of buttons so they are on the edges but inside the container padding */
.swiper-button-prev.custom-swiper-btn {
    left: 0px !important;
}

.swiper-button-next.custom-swiper-btn {
    right: 0px !important;
}

/* Hide the arrows when grid view is active */
.newsSwiper.grid-view .custom-swiper-btn {
    display: none !important;
}

/* Handle dark themes for swiper buttons */
body.theme-modern .custom-swiper-btn,
body.theme-green .custom-swiper-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.theme-modern .custom-swiper-btn:hover,
body.theme-green .custom-swiper-btn:hover {
    background: var(--primary-color);
    opacity: 0.9;
}

/* ==================== GLOBAL PREMIUM CALENDAR WIDGET ==================== */
#global-calendar-widget {
    position: absolute;
    top: 50px;
    right: 30px;
    z-index: 1050;
    font-family: inherit;
}

@media (max-width: 992px) {
    #global-calendar-widget {
        display: block;
        position: fixed;
        top: 10px !important;
        left: 5px !important;
        bottom: auto;
        right: auto;
        z-index: 9999999 !important;
        transform: scale(0.65) !important;
        /* Smaller for mobile */
        transform-origin: top left;
        pointer-events: auto !important;
    }
}

.premium-datetime-widget {
    position: relative;
    user-select: none;
}

.datetime-display {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.datetime-display:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

/* Theme Swatch Bar below clock */
.theme-swatch-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
}

.theme-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-swatch:hover {
    transform: scale(1.4);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.theme-swatch.theme-modern {
    background: linear-gradient(135deg, #4338ca, #6366f1);
}

.theme-swatch.theme-green {
    background: linear-gradient(135deg, #059669, #10b981);
}

.theme-swatch.theme-midnight {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
}

.theme-swatch.theme-sunset {
    background: linear-gradient(135deg, #ea580c, #facc15);
}

.theme-swatch.theme-ocean {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.theme-swatch.theme-gray {
    background: linear-gradient(135deg, #1e293b, #64748b);
}


.time-block {
    display: flex;
    align-items: baseline;
    font-family: 'Courier New', Courier, monospace;
    /* Monospace for stable digits */
}

#time-hm {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#time-s {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 2px;
    color: var(--accent-color);
}

.date-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
}

/* Timezone Switcher */
.tz-toggle {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    margin-top: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
}

.tz-toggle:hover {
    background: white;
    color: var(--primary-color);
}

.date-block .day-of-week {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

#date-full {
    font-size: 0.95rem;
    font-weight: 500;
}

.cal-icon-wrap {
    font-size: 1.5rem;
    margin-left: 5px;
    opacity: 0.8;
}

/* Calendar Dropdown */
.premium-calendar-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 20px;
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1060;
}

.premium-calendar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-header button:hover {
    background: var(--dark-navy);
}

.calendar-selectors select {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0 5px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
    color: #000;
    /* Sharp professional depth shadow - Theme Aware Depth */
    text-shadow:
        1px 1px 0 #fff,
        -1px -1px 0 #fff,
        3px 3px 6px rgba(0, 0, 0, 0.2);
    color: var(--dark-navy);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) skewX(-20deg);
    width: 80px;
    height: 6px;
    background: var(--primary-gradient);
    border-radius: 4px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cal-day:not(.empty):hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cal-day.today {
    background: var(--warning-color);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.3);
}

.cal-day.selected {
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

/* Adjustments for Theme Green */
body.theme-green .cal-day.selected {
    background: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

body.theme-green .calendar-header button {
    background: #10b981;
}

body.theme-green .calendar-weekdays {
    color: rgba(255, 255, 255, 0.9);
}

body.theme-green .cal-day:not(.empty):hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ===== TEAM MEMBER MODAL STYLES ===== */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-modal.active {
    opacity: 1;
    visibility: visible;
}

.team-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.team-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 950px;
    max-height: 85vh;
    border-radius: var(--shape-asymmetric);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

.team-modal.active .team-modal-content {
    transform: translateY(0) scale(1);
}

.team-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: var(--shape-sharp);
    background: rgba(241, 245, 249, 0.8);
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
}

.team-modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.team-modal-body {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    max-height: 85vh;
}

.team-image-container {
    flex: 1 1 40%;
    min-width: 320px;
    padding: 40px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e2e8f0;
}

.team-image-container img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 6px solid white;
}

.team-info-container {
    flex: 1 1 50%;
    min-width: 320px;
    padding: 40px;
    overflow-y: auto;
}

.team-info-container h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.team-info-container h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.team-details-content {
    position: relative;
    color: #475569;
}

.team-details-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.team-details-text strong {
    font-weight: 700;
    color: #1e293b;
}

.team-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    font-weight: 600;
    color: #94a3b8;
}

/* Clickable elements hover effect */
.clickable-team-member {
    position: relative;
    overflow: hidden;
}

.clickable-team-member::after {
    content: '\f067';
    /* FontAwesome plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.clickable-team-member:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.clickable-team-member:hover img {
    filter: brightness(0.8);
    transform: scale(1.05);
}

/* Responsiveness for Modal */
@media (max-width: 991px) {
    .team-modal-content {
        max-width: 600px;
    }

    .team-image-container {
        flex: 1 1 100%;
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .team-image-container img {
        max-width: 250px;
    }

    .team-info-container {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .team-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .team-modal-body {
        max-height: 100vh;
    }

    .team-info-container h3 {
        font-size: 1.5rem;
    }
}

/* News Search Bar - Floating Glass Theme */
.news-search-container {
    max-width: 600px;
    margin: -35px auto 40px auto;
    position: relative;
    z-index: 50;
    padding: 0 20px;
}

.news-search-input {
    width: 100%;
    height: 65px;
    border: none !important;
    border-radius: 50px;
    padding: 0 70px 0 35px;
    background: var(--white);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.15);
    font-size: 1.15rem;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-search-input:focus {
    box-shadow: 0 20px 45px -12px rgba(67, 56, 202, 0.25);
    background: #fff;
    transform: translateY(-4px) scale(1.02);
    outline: none;
}

.search-icon-inside {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.4rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.news-search-input:focus+.search-icon-inside {
    transform: translateY(-50%) rotate(90deg);
}

/* Search Highlights */
.search-highlight {
    background: #ffeb3b;
    color: #000;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

/* Results section */
#searchResultsContainer {
    animation: fadeInNews 0.5s ease;
    border-radius: var(--shape-smooth);
    background: var(--white);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 3rem;
}

@keyframes fadeInNews {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper Pagination Bullets - Enhanced Visibility */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: var(--primary-color) !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    width: 25px !important;
    border-radius: 8px !important;
    opacity: 1 !important;
    background: var(--primary-color) !important;
    box-shadow: 0 0 15px var(--accent-color);
}

.swiper-pagination {
    z-index: 10 !important;
    padding: 10px 0;
}

/* ==================== QUICK NAVIGATION SECTION ==================== */
.quick-nav-section {
    padding: 0 0 60px;
    position: relative;
    z-index: 100;
    margin-top: 0;
}

.quick-nav-header {
    text-align: center;
    margin-bottom: 50px;
}

.quick-nav-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-nav-title {
    color: #1e1b4b;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.quick-nav-subtitle {
    color: #4b5563;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.quick-nav-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

.quick-nav-card {
    flex: 0 1 22%;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 35px 25px;
    text-align: center;
    color: var(--dark-navy) !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.quick-nav-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.quick-nav-card:hover {
    background: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.quick-nav-card:hover::after {
    transform: scaleX(1);
}

.quick-nav-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(67, 56, 202, 0.08);
    /* Light primary tint */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.quick-nav-card:hover .quick-nav-icon-box {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.quick-nav-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark-navy) !important;
    letter-spacing: -0.3px;
}

.quick-nav-card p {
    font-size: 0.9rem;
    color: var(--text-main) !important;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .quick-nav-card {
        flex: 0 1 30%;
    }
}

@media (max-width: 912px) {
    .quick-nav-card {
        flex: 0 1 45%;
    }

    .quick-nav-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .quick-nav-section {
        padding: 40px 0 60px;
        margin-top: -30px;
    }

    .quick-nav-grid {
        gap: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .quick-nav-card {
        flex: 0 1 100%;
        width: 100%;
        padding: 30px 15px;
    }

    .quick-nav-icon-box {
        width: 65px;
        height: 65px;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .quick-nav-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== CLUBS & ACHIEVEMENTS STYLING ==================== */
.extra-modern-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.extra-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color);
}

.card-img-wrapper img {
    transition: transform 0.6s ease;
}

.extra-modern-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.achievement-modern-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.achievement-modern-card:hover {
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.15) !important;
    border-color: #ffc107;
    transform: translateX(5px);
}

.achievement-img img {
    transition: transform 0.5s ease;
}

.achievement-modern-card:hover .achievement-img img {
    transform: scale(1.1);
}

/* ==================== QUICK NAV THEME-AWARE STYLES ==================== */
.quick-nav-section {
    padding: 100px 0;
    transition: var(--transition-smooth);
}

.quick-nav-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-neon);
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.section-title {
    font-weight: 900 !important;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: var(--accent-neon);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.quick-nav-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    text-decoration: none !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.quick-nav-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-neon);
}

.quick-nav-icon-box {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--accent-neon);
    margin-bottom: 25px;
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.quick-nav-card:hover .quick-nav-icon-box {
    background: var(--neon-gradient);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quick-nav-card h3 {
    font-weight: 800;
    color: var(--text-on-light);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.quick-nav-card p {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==================== BENTO GRID LAYOUT SYSTEM ==================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    grid-auto-flow: dense;
    margin-bottom: 80px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 28px !important;
    padding: 40px 30px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    height: 100% !important;
}

/* Theme Dark Overrides for Bento */
body.theme-modern .bento-card,
body.theme-green .bento-card,
body.theme-midnight .bento-card,
body.theme-sunset .bento-card,
body.theme-ocean .bento-card,
body.theme-gray .bento-card {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    color: var(--text-on-dark) !important;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 30px 60px rgba(34, 211, 238, 0.15) !important;
    border-color: var(--accent-neon) !important;
}

.bento-card-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 440px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)) !important;
}

body.theme-modern .bento-card-large,
body.theme-green .bento-card-large,
body.theme-midnight .bento-card-large,
body.theme-sunset .bento-card-large,
body.theme-ocean .bento-card-large,
body.theme-gray .bento-card-large {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8)) !important;
}

.bento-card-wide {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 210px;
    flex-direction: row !important;
    text-align: left !important;
    justify-content: flex-start !important;
    gap: 30px;
}

.bento-card-tall {
    grid-column: span 1;
    grid-row: span 2;
    min-height: 440px;
}

.bento-card-small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 210px;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card-large,
    .bento-card-wide,
    .bento-card-tall,
    .bento-card-small {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 220px !important;
        flex-direction: column !important;
        text-align: center !important;
        justify-content: space-between !important;
    }

    .bento-card-large {
        grid-column: span 2 !important;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card-large,
    .bento-card-wide,
    .bento-card-tall,
    .bento-card-small {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 200px !important;
    }
}

/* ==================== PREMIUM EDU BOOK LOADER ==================== */
.premium-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    width: 100%;
    position: relative;
}

.edu-book-loader-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.edu-book-loader {
    position: relative;
    width: 70px;
    height: 50px;
    perspective: 150px;
    z-index: 2;
}

.edu-book-loader .book-page {
    position: absolute;
    left: 50%;
    top: 0;
    width: 35px;
    height: 50px;
    border: 2px solid var(--accent-neon);
    border-left: none;
    border-radius: 0 6px 6px 0;
    background: rgba(34, 211, 238, 0.08);
    transform-origin: 0% 50%;
    animation: eduPageTurn 2.2s infinite ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.edu-book-loader .book-page:nth-child(1) {
    animation-delay: 0.2s;
}

.edu-book-loader .book-page:nth-child(2) {
    animation-delay: 0.4s;
    border-color: var(--accent-purple);
    background: rgba(129, 140, 248, 0.08);
}

.edu-book-loader .book-page:nth-child(3) {
    animation-delay: 0.6s;
}

.edu-book-loader .book-cover-left {
    position: absolute;
    right: 50%;
    top: 0;
    width: 36px;
    height: 52px;
    border: 3px solid var(--accent-neon);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: rgba(34, 211, 238, 0.18);
    transform: rotateY(-12deg);
}

.edu-book-loader .book-cover-right {
    position: absolute;
    left: 50%;
    top: 0;
    width: 36px;
    height: 52px;
    border: 3px solid var(--accent-neon);
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: rgba(34, 211, 238, 0.18);
    transform: rotateY(12deg);
}

@keyframes eduPageTurn {
    0% {
        transform: rotateY(0deg);
        opacity: 0.9;
    }

    85% {
        opacity: 0.9;
    }

    100% {
        transform: rotateY(-180deg);
        opacity: 0;
    }
}

/* Glowing Orbit around loader */
.edu-loader-orbit {
    position: absolute;
    width: 130px;
    height: 130px;
    border: 1px dashed rgba(34, 211, 238, 0.25);
    border-radius: 50%;
    animation: eduSpinOrbit 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.edu-loader-orbit::before {
    content: '';
    position: absolute;
    top: -5px;
    left: calc(50% - 5px);
    width: 10px;
    height: 10px;
    background: var(--accent-neon);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-neon), 0 0 5px white;
}

.edu-loader-orbit-reverse {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px dotted rgba(129, 140, 248, 0.2);
    border-radius: 50%;
    animation: eduSpinOrbitRev 9s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.edu-loader-orbit-reverse::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-purple);
}

@keyframes eduSpinOrbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes eduSpinOrbitRev {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.premium-loader-text {
    font-size: 1.1rem;
    font-weight: 750;
    letter-spacing: 1px;
    color: var(--accent-neon);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
    animation: eduPulseText 1.5s infinite alternate ease-in-out;
}

@keyframes eduPulseText {
    0% {
        opacity: 0.5;
        transform: scale(0.96);
    }

    100% {
        opacity: 1;
        transform: scale(1.04);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   O‘ZBEKISTON RESPUBLIKASI MUSTAQILLIGINING 35 YILLIGI SECTION
═══════════════════════════════════════════════════════════════════ */
.independence-35-banner {
    position: relative;
    z-index: 100;
    background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.98), rgba(5, 10, 25, 0.99));
    border-top: 14px solid transparent;
    border-image: linear-gradient(to right, #0099b5 0%, #0099b5 33%, #d21034 33%, #d21034 35%, #ffffff 35%, #ffffff 65%, #d21034 65%, #d21034 67%, #1eb53a 67%, #1eb53a 100%) 1;
    border-bottom: 2px solid rgba(234, 179, 8, 0.4);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 153, 181, 0.4);
    padding: 35px 0;
}

.indep-35-card {
    background: rgba(11, 19, 43, 0.88);
    border: 2px solid rgba(234, 179, 8, 0.55);
    border-radius: 24px;
    padding: 32px 35px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: inset 0 0 45px rgba(234, 179, 8, 0.15), 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.indep-35-card::before {
    content: '';
    position: absolute;
    inset: -60px;
    background: linear-gradient(135deg,
            rgba(0, 153, 181, 0.35) 0%,
            rgba(0, 153, 181, 0.22) 28%,
            rgba(210, 16, 52, 0.35) 30%,
            rgba(255, 255, 255, 0.22) 32%,
            rgba(255, 255, 255, 0.22) 62%,
            rgba(210, 16, 52, 0.35) 64%,
            rgba(30, 181, 58, 0.22) 66%,
            rgba(30, 181, 58, 0.35) 100%);
    background-size: 200% 200%;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
    animation: flagWaveAnimation 8s ease-in-out infinite alternate;
    filter: blur(14px);
}

.indep-35-card>* {
    position: relative;
    z-index: 2;
}

@keyframes flagWaveAnimation {
    0% {
        background-position: 0% 20%;
        transform: rotate(-1.2deg) scale(1);
    }

    50% {
        background-position: 100% 80%;
        transform: rotate(1.2deg) scale(1.04);
    }

    100% {
        background-position: 0% 20%;
        transform: rotate(-1.2deg) scale(1);
    }
}

.indep-35-card:hover {
    border-color: rgba(234, 179, 8, 0.85);
    box-shadow: inset 0 0 55px rgba(234, 179, 8, 0.25), 0 25px 55px rgba(0, 0, 0, 0.7);
}

.indep-emblem-wrapper {
    position: relative;
    display: inline-block;
}

.indep-gerb-img {
    max-height: 90px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    transition: transform 0.4s ease;
}

.indep-35-card:hover .indep-gerb-img {
    transform: scale(1.08) rotate(2deg);
}

.indep-35-badge {
    position: relative;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 50%, #854d0e 100%);
    color: #ffffff;
    border-radius: 50px;
    padding: 4px 14px;
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: 0 4px 18px rgba(234, 179, 8, 0.6);
    border: 1px solid #fef08a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.indep-35-badge .badge-num {
    font-size: 1.25rem;
    font-weight: 950;
    color: #ffffff;
    line-height: 1;
}

.indep-35-badge .badge-txt {
    letter-spacing: 1px;
    font-size: 0.7rem;
}

.indep-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 50px;
    padding: 5px 20px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.indep-main-title {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #eab308 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.indep-slogan-box {
    position: relative;
    background: rgba(234, 179, 8, 0.08);
    border: 2px solid rgba(234, 179, 8, 0.4);
    border-left: 6px solid #eab308;
    border-right: 6px solid #38bdf8;
    border-radius: 16px;
    padding: 16px 24px;
    display: block;
    max-width: 900px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slogan-icon-left,
.slogan-icon-right {
    color: #eab308;
    font-size: 1.1rem;
    margin: 0 8px;
    vertical-align: middle;
}

.indep-slogan-text {
    font-size: clamp(1.2rem, 2.2vw, 1.85rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
    display: inline;
}

@media (max-width: 768px) {
    .independence-35-banner {
        padding: 22px 0;
    }

    .indep-35-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .indep-gerb-img {
        height: 85px;
    }

    .indep-main-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .indep-slogan-box {
        padding: 12px 14px;
        border-left-width: 4px;
        border-right-width: 4px;
    }

    .indep-slogan-text {
        font-size: 1.1rem;
        line-height: 1.35;
    }

    .slogan-icon-left,
    .slogan-icon-right {
        font-size: 0.85rem;
        margin: 0 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   CLOUDINARY FOTO-GALEREYA
═══════════════════════════════════════════════════════════════════ */
.cloudinary-gallery-section {
    background: var(--primary-gradient, radial-gradient(circle at top right, #1e293b, #0f172a));
}

.gallery-month-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    border-bottom: 2px solid rgba(234, 179, 8, 0.4);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.gallery-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

.gallery-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-overlay {
    opacity: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
    border-radius: 14px 14px 0 0;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-img-error {
    height: 220px;
    background: rgba(30, 41, 59, 0.6);
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 576px) {
    .gallery-img {
        height: 180px;
    }

    .gallery-month-title {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   YOUTUBE VIDEO ARXIV
═══════════════════════════════════════════════════════════════════ */
.video-archive-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.video-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

.video-card-title {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.video-placeholder {
    background: rgba(30, 41, 59, 0.8);
    color: #64748b;
    min-height: 180px;
}

@media (max-width: 576px) {
    .video-card-title {
        font-size: 0.88rem;
    }
}