/* ==========================================================================
   Kerala Sahityotsav Official Color & Style Tokens (Exact Reference Styling)
   ========================================================================== */

/* SEO Accessibility Helpers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cooper Black font definition */
@font-face {
    font-family: 'Cooper Black';
    src: url('Cooper_Black_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Kerala Sahityotsav Official Light Warm-Ivory Backgrounds */
    --bg-primary: #F7F3EE;       /* Warm Ivory Canvas as seen in all mobile screenshots */
    --bg-secondary: #EFE9E1;     /* Slightly deeper ivory for subtle contrast sections */
    --card-bg: #FFFFFF;          /* Crisp white cards with soft warm shadow & subtle stroke */
    --card-bg-hover: #FCFAF7;
    --card-bg-elevated: #FFFFFF;

    /* Sahityotsav Official Crimson Red Primary Accent */
    --primary-red: #C52227;      /* Kerala Sahityotsav Signature Crimson Red */
    --primary-red-hover: #AB1C20;
    --primary-red-glow: rgba(197, 34, 39, 0.25);
    
    /* Warm Ochre / Golden Amber Secondary Accents */
    --accent-amber: #D69E2E;     /* Warm Amber */
    --accent-amber-glow: rgba(214, 158, 46, 0.25);
    --accent-gold: #F4B860;

    /* Category Pill Badge Pale Red Tint */
    --tag-red-bg: #FBEBEA;       /* Soft warm pinkish red badge background */
    --tag-red-text: #C52227;

    /* Text Colors matching Reference */
    --text-primary: #1C1917;     /* Deep rich charcoal / near black */
    --text-secondary: #57534E;   /* Warm slate body text */
    --text-tertiary: #8C867F;    /* Soft muted caption text */

    /* Subtle Borders & Dividers */
    --border-subtle: #E7DFD5;    /* Soft warm beige divider */
    --border-card: rgba(0, 0, 0, 0.05);
    --border-hover: #C52227;

    /* Gradients */
    --glass-gradient: rgba(255, 255, 255, 0.88);
    --card-gradient: #FFFFFF;
    --card-gradient-hover: #FFFFFF;
    --input-gradient: #FFFFFF;
    
    --primary-orange: #C52227;
    --primary-orange-hover: #AB1C20;
    --primary-orange-glow: rgba(197, 34, 39, 0.25);
    --accent-primary: #C52227;
    --accent-secondary: #D69E2E;
    --accent-light: #FBEBEA;
    --accent-glow: rgba(197, 34, 39, 0.2);

    /* Rank Medals */
    --rank-1: #C52227;
    --rank-2: #4A5568;
    --rank-3: #D97706;
    --rank-4: #718096;

    /* Fonts & Shapes */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Exact Reference Geometry */
    --radius-pill: 9999px;       /* Pill shape buttons & search */
    --radius-xl: 32px;           /* Large card roundness as seen in reference */
    --radius-lg: 24px;           /* Standard cards */
    --radius-md: 16px;           /* Inner elements, tags, dialogs */
    --radius-sm: 10px;           /* Inputs and smaller buttons */
    
    /* Exact Reference Box Shadows */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.06);
    --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.08);
    --shadow-floating: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(197, 34, 39, 0.2);
}

/* Ambient Subtle Background Glow */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: #F7F3EE;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    transition: all 0.5s ease;
}

.glow-1 {
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #FBEBEA 0%, transparent 70%);
}

.glow-2 {
    bottom: -15%;
    right: 10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #F7E4D3 0%, transparent 70%);
}

.glow-3 {
    top: 40%;
    left: 60%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #EFE2CF 0%, transparent 70%);
}

.lightning-streak, .moving-vector-shape {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(232, 117, 59, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 184, 96, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #D5CDC2;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* App Layout - Clean Top-to-Bottom Flow */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   1. Modern Top Navigation Bar (Kerala Sahityotsav Official Floating Pill)
   ========================================================================== */
.navbar-top {
    position: sticky;
    top: 0.75rem;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    z-index: 1000;
    padding: 0.5rem 1.2rem;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.25rem;
    box-shadow: 0 8px 30px rgba(28, 25, 23, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.nav-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-brand:hover .nav-logo {
    transform: scale(1.04);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
}

.nav-brand-text .brand-title {
    font-family: 'Cooper Black', var(--font-heading);
    font-style: normal;
    font-weight: 400;
    font-size: 0.95rem;
    color: #C52227; /* Kerala Sahityotsav Red */
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.nav-brand-text .brand-sub {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
    color: #C52227; /* Matching branding color */
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Desktop Horizontal Links */
.desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-link-btn {
    background: transparent;
    border: none;
    color: #44403C;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-pill);
    position: relative;
    transition: var(--transition);
}

.nav-link-btn:hover {
    color: #C52227;
    background: #FBEBEA;
}

.nav-link-btn.active {
    color: #C52227;
    background: #FBEBEA;
}

.nav-link-btn.active::after {
    display: none;
}

/* 4-Quadrant Geometric Cube Accent */
.nav-accent-cube {
    display: grid;
    grid-template-columns: repeat(2, 9px);
    grid-template-rows: repeat(2, 9px);
    gap: 2px;
    align-items: center;
}

.cube-c1 { background: #E63946; border-radius: 2px; } /* Red */
.cube-c2 { background: #457B9D; border-radius: 2px; } /* Slate Blue */
.cube-c3 { background: #E9C46A; border-radius: 2px; } /* Ochre */
.cube-c4 { background: #2A9D8F; border-radius: 2px; } /* Teal */

/* Red / Rust Solid CTA Button for Participant / Admin Login */
.participant-login-btn {
    background: #C52227;
    border: 1px solid #C52227;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(197, 34, 39, 0.25);
}

.participant-login-btn:hover {
    background: #AB1C20;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(197, 34, 39, 0.35);
}

.participant-login-btn i {
    font-size: 0.85rem;
}

/* Three-Dot Menu Button */
.nav-menu-wrapper {
    position: relative;
}

.three-dots-trigger {
    background: #F5EFEB;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.three-dots-trigger:hover,
.three-dots-trigger:focus {
    background: #FBEBEA;
    border-color: #C52227;
    color: #C52227;
}

/* Dropdown Menu */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #FFFFFF;
    border: 1px solid #E7DFD5;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(28, 25, 23, 0.12);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.nav-dropdown-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.nav-dropdown-menu .nav-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: var(--transition);
}

.nav-dropdown-menu .nav-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.nav-dropdown-menu .nav-item:hover {
    background: #FBEBEA;
    color: #C52227;
}

.nav-dropdown-menu .nav-item:hover i {
    color: #C52227;
}

.nav-dropdown-menu .nav-item.active {
    background: #FBEBEA;
    color: #C52227;
    border: 1px solid rgba(197, 34, 39, 0.2);
}

.nav-dropdown-menu .nav-item.active i {
    color: #C52227;
}

/* ==========================================================================
   2. Main Content & Home Dashboard Page (Kerala Sahityotsav Official Theme)
   ========================================================================== */
.main-content {
    flex: 1;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem 1.5rem;
}

/* ==========================================================================
   Kerala Sahityotsav Official Hero Showcase Section
   ========================================================================== */
.sahityotsav-hero-banner {
    position: relative;
    width: 100%;
    min-height: 480px;
    background: radial-gradient(ellipse at 70% 30%, #20242e 0%, #13151b 70%, #0d0f14 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Artistic elements matching screenshot: Tree trunk cross-section, Antique Clock, Rusty Gear */
.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* Cross Section Tree Rings on the Left */
.hero-wood-tree-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(244, 184, 96, 0.12);
}

.hero-wood-tree-ring.ring-1 {
    width: 520px;
    height: 520px;
    left: -120px;
    top: -40px;
    background: radial-gradient(circle, rgba(50, 40, 32, 0.5) 0%, rgba(20, 18, 17, 0.8) 70%, transparent 100%);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(232, 117, 59, 0.08);
    border: 3px solid rgba(139, 94, 60, 0.25);
}

.hero-wood-tree-ring.ring-2 {
    width: 320px;
    height: 320px;
    left: -20px;
    top: 60px;
    border: 2px dashed rgba(244, 184, 96, 0.18);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.85);
}

.hero-wood-tree-ring.ring-3 {
    width: 140px;
    height: 140px;
    left: 70px;
    top: 150px;
    background: radial-gradient(circle, #5a3d28 0%, #2a1d13 100%);
    border: 2px solid rgba(244, 184, 96, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

/* Antique Clock on the Top-Right */
.hero-clock-element {
    position: absolute;
    right: 30px;
    top: -70px;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle, #F8E6C8 0%, #D4B98B 60%, #8C6A3C 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 16px 45px rgba(0, 0, 0, 0.85);
    border: 8px solid #5C4328;
    opacity: 0.9;
    transform: rotate(-10deg);
}

.clock-face-art {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: 
        radial-gradient(circle, rgba(74, 51, 25, 0.4) 3px, transparent 4px),
        repeating-conic-gradient(from 0deg, rgba(60, 40, 20, 0.35) 0deg 1.5deg, transparent 1.5deg 30deg);
}

.clock-roman-marks .mark {
    position: absolute;
    font-family: 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #382512;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.clock-roman-marks .m-12 { top: 12px; left: 50%; transform: translateX(-50%); }
.clock-roman-marks .m-3  { right: 14px; top: 50%; transform: translateY(-50%); }
.clock-roman-marks .m-6  { bottom: 12px; left: 50%; transform: translateX(-50%); }
.clock-roman-marks .m-9  { left: 14px; top: 50%; transform: translateY(-50%); }

/* Animated Clock Hands */
.clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
}

/* Hour Hand - Rotates smoothly in 120s */
.hand-hour {
    width: 6px;
    height: 65px;
    background: #251B10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    margin-left: -3px;
    animation: rotateClockHands 120s linear infinite;
}

/* Minute Hand - Rotates smoothly in 30s */
.hand-minute {
    width: 4px;
    height: 95px;
    background: #1B1309;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    margin-left: -2px;
    animation: rotateClockHands 30s linear infinite;
}

/* Seconds Needle - Red antique needle rotating in 10s */
.hand-second {
    width: 2px;
    height: 105px;
    background: #B93826;
    margin-left: -1px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    animation: rotateClockHands 10s linear infinite;
}

.clock-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #D4AF37 0%, #5C4328 100%);
    border: 2px solid #1B1309;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

@keyframes rotateClockHands {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Rusty Gear / Sprocket on the Bottom-Right */
.hero-gear-element {
    position: absolute;
    right: 80px;
    bottom: 50px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, #8A4B27 0%, #52270E 80%, #2A1205 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    border: 12px dashed #99552E;
    opacity: 0.9;
    animation: gearRotate 80s linear infinite;
}

.gear-cog-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-cog-art::after {
    content: '';
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #13151b;
    border: 5px solid #8A4B27;
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Content Typography & Controls */
.hero-content {
    position: relative;
    z-index: 5;
    padding: 3.5rem 3rem 2rem 3.5rem;
    max-width: 650px;
}

.hero-edition-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #F4B860; /* Warm golden */
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-main-title {
    margin-bottom: 1.6rem;
}

.hero-main-title .title-top {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.hero-main-title .leaf-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #4EA824; /* Fresh Green Leaf Badge from Reference */
    border-radius: 10px;
    margin: 0 0.15rem;
    box-shadow: 0 4px 12px rgba(78, 168, 36, 0.4);
}

.hero-main-title .leaf-box i {
    color: #FFFFFF;
    font-size: 1.5rem;
}

.hero-main-title .letter-the {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-left: 0.5rem;
    letter-spacing: 2px;
}

.hero-main-title .title-bottom {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1px;
    line-height: 1;
    margin-top: 0.3rem;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

/* Event Metadata Row (Date & Location Pills) */
.hero-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.2rem;
}

.hero-pill-badge {
    background: #E8AA50;
    color: #1A1610;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 0.65rem 1.3rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(232, 170, 80, 0.3);
}

.hero-pill-badge i {
    font-size: 0.95rem;
}

.hero-pill-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #F5F5F7;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.65rem 1.3rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    backdrop-filter: blur(8px);
}

.hero-pill-ghost i {
    color: #E8753B;
}

/* Action Buttons matching screenshot */
.hero-action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.hero-btn-primary {
    background: #C52227;
    border: 1px solid #C52227;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(197, 34, 39, 0.4);
    transition: var(--transition);
}

.hero-btn-primary:hover {
    background: #AB1C20;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 34, 39, 0.55);
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.hero-btn-outline:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

/* Red Ticker Ribbon at the base of the Hero */
.hero-ribbon-ticker {
    position: relative;
    z-index: 5;
    background: #C93B2B;
    padding: 0.65rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transform: skewY(-0.8deg);
    margin-bottom: -4px;
}

.ticker-track {
    display: inline-flex;
    animation: tickerLoop 25s linear infinite;
    gap: 3rem;
}

.ticker-item {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
}

.ticker-item i {
    font-size: 0.75rem;
    opacity: 0.85;
}

@keyframes tickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 900px) {
    .desktop-nav-links {
        display: none !important;
    }
    .hero-main-title .title-top {
        font-size: 2.6rem;
    }
    .hero-main-title .title-bottom {
        font-size: 2.8rem;
    }
    .hero-clock-element {
        width: 180px;
        height: 180px;
        right: -30px;
        top: -40px;
    }
    .hero-gear-element {
        display: none;
    }
    .hero-content {
        padding: 2.5rem 1.8rem 2rem 1.8rem;
    }
}

@media (max-width: 580px) {
    .hero-main-title .title-top {
        font-size: 2.1rem;
    }
    .hero-main-title .leaf-box {
        width: 34px;
        height: 34px;
    }
    .hero-main-title .leaf-box i {
        font-size: 1.1rem;
    }
    .hero-main-title .title-bottom {
        font-size: 2.2rem;
    }
    .participant-login-btn span {
        display: none;
    }
    .participant-login-btn {
        padding: 0.6rem 0.8rem;
    }
}

/* ==========================================================================
   Kerala Sahityotsav Official Point Table / Team Points Podium
   ========================================================================== */
.team-points-header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0 2.5rem 0;
    overflow: hidden;
}

.tp-title-block {
    position: relative;
    z-index: 2;
}

.tp-big-title {
    font-family: var(--font-heading);
    font-size: 5.2rem;
    font-weight: 900;
    line-height: 1.02;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.03em;
}

.tp-highlight-word {
    color: #C52227; /* Kerala Sahityotsav Red Accent */
    display: block;
}

.tp-header-decor {
    position: absolute;
    right: 20px;
    top: -20px;
    pointer-events: none;
    z-index: 1;
}

.tp-decor-gear {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 14px dashed rgba(197, 34, 39, 0.12);
    background: radial-gradient(circle, rgba(251, 235, 234, 0.4) 0%, transparent 70%);
    animation: gearRotate 100s linear infinite;
}

/* 3-Block Podium Showcase (2nd, 1st, 3rd) */
.official-podium-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.podium-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.4rem 1.6rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

/* 1st Place Festival Champion (Center) */
.podium-first {
    padding: 3.4rem 2rem;
    background: #FFFFFF;
    border: 2px solid #C52227;
    box-shadow: 0 16px 40px rgba(197, 34, 39, 0.12), 0 0 25px rgba(197, 34, 39, 0.08);
    z-index: 2;
}

.podium-badge-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.champion-glow {
    color: #C52227;
    letter-spacing: 2.5px;
    text-shadow: none;
}

.podium-rank-num {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1;
    color: #8C867F;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.podium-rank-num.rank-one {
    font-size: 6rem;
    color: #C52227;
    text-shadow: none;
}

.podium-second .podium-rank-num {
    color: #64748B;
    opacity: 0.9;
}

.podium-third .podium-rank-num {
    color: #D97706;
    opacity: 0.9;
}

.podium-team-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1.2rem 0;
    letter-spacing: -0.01em;
}

.champion-name {
    font-size: 1.9rem;
    color: var(--text-primary);
}

.podium-points-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}

.podium-points-val {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.champion-pts {
    font-size: 3.4rem;
    color: #C52227;
    text-shadow: none;
}

.podium-points-lbl {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
}

@media (max-width: 850px) {
    .tp-big-title {
        font-size: 3.4rem;
    }
    .official-podium-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .podium-first {
        order: -1;
        padding: 2.5rem 1.5rem;
    }
    .podium-rank-num.rank-one {
        font-size: 4.8rem;
    }
}

@media (max-width: 480px) {
    .tp-big-title {
        font-size: 2.7rem;
    }
}

/* Search Bar */
.global-search-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.search-bar {
    background: #FFFFFF;
    border: 1.5px solid var(--border-subtle);
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(197, 34, 39, 0.15);
}

.search-bar i {
    color: var(--primary-red);
    font-size: 0.95rem;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    font-size: 0.92rem;
    font-weight: 500;
}

.search-bar input::placeholder {
    color: var(--text-tertiary);
}

/* View Header */
.view-header {
    margin-bottom: 2rem;
}

.view-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.view-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #FFFFFF;
    padding: 1.8rem 1.6rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 34, 39, 0.3);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--tag-red-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.4rem;
    border: none;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.stat-info p {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
}

/* Panels */
.glass-panel {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(197, 34, 39, 0.25);
    box-shadow: var(--shadow-md);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.9rem;
}

.panel h3, .panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Block List & Rows */
.unit-row {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius-md);
    background: #FAF7F2;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.unit-row:hover {
    background: #FBEBEA;
    border-color: rgba(197, 34, 39, 0.3);
    transform: translateY(-2px);
}

.unit-rank {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
}

.unit-rank.rank-1 {
    background: #FBEBEA;
    color: #C52227;
    border: 1.5px solid rgba(197, 34, 39, 0.4);
}
.unit-rank.rank-2 {
    background: #F1EFEA;
    color: #4A5568;
    border: 1.5px solid rgba(74, 85, 104, 0.3);
}
.unit-rank.rank-3 {
    background: #FEF3C7;
    color: #D97706;
    border: 1.5px solid rgba(217, 119, 6, 0.4);
}

.unit-details {
    flex: 1;
}

.unit-details h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.pts-badge {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    color: #C52227;
    background: var(--tag-red-bg);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.unit-score {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Recent Results List */
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: #FAF7F2;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.result-item:hover {
    background: #FBEBEA;
    border-color: rgba(197, 34, 39, 0.25);
}

.result-item .unit-details h4 {
    font-size: 1rem;
    margin-top: 0.2rem;
}

/* Results Grid & Cards */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 34, 39, 0.35);
}

.rc-header {
    padding: 1.5rem;
    background: #FAF7F2;
    border-bottom: 1px solid var(--border-subtle);
}

.rc-category {
    font-size: 0.74rem;
    font-weight: 800;
    color: #C52227;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.35rem;
}

.rc-event {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rc-body {
    padding: 1.4rem;
    flex: 1;
}

.winner-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: #FAF7F2;
    border: 1px solid var(--border-subtle);
}

.winner-row:last-child {
    margin-bottom: 0;
}

.w-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.w-rank.w-rank-1 { background: #FBEBEA; color: #C52227; border: 1.5px solid rgba(197, 34, 39, 0.4); }
.w-rank.w-rank-2 { background: #F1EFEA; color: #4A5568; border: 1.5px solid rgba(74, 85, 104, 0.3); }
.w-rank.w-rank-3 { background: #FEF3C7; color: #D97706; border: 1.5px solid rgba(217, 119, 6, 0.4); }

.w-details {
    flex: 1;
}

.w-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
}

.w-unit {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Posters Hub */
.posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.poster-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.poster-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 34, 39, 0.3);
    box-shadow: var(--shadow-md);
}

.poster-info {
    padding: 1.4rem;
}

.poster-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0.3rem 0;
    color: var(--text-primary);
}

.poster-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* Filters Layout */
.filters-container {
    display: flex;
    gap: 1.4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: #FFFFFF;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.minimal-input {
    background: #FFFFFF;
    border: 1.5px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.minimal-input:focus {
    border-color: #C52227;
    box-shadow: 0 0 0 3px rgba(197, 34, 39, 0.15);
}

select.minimal-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C52227'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.1rem;
    padding-right: 3rem;
}

/* Buttons */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #C52227;
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(197, 34, 39, 0.3);
    text-decoration: none;
    transition: var(--transition);
}

.download-btn:hover {
    background: #AB1C20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 34, 39, 0.4);
}

.text-btn {
    background: none;
    border: none;
    color: #C52227;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.text-btn:hover {
    color: #AB1C20;
    text-decoration: underline;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 1.1rem 1.4rem;
    background: #FAF7F2;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #FAF7F2;
}

/* Admin Tabs */
.admin-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.admin-tab-btn:hover {
    background: var(--tag-red-bg);
    color: #C52227;
}

.admin-tab-btn.active {
    background: #C52227;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(197, 34, 39, 0.25);
}

.hidden {
    display: none !important;
}

/* Winner input rows for admin portal */
.winner-row-container {
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.winner-input-row {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr 1.5fr 1fr 1fr;
    gap: 0.6rem;
    min-width: 480px;
}

.winner-input-row > * {
    min-width: 0;
}

/* ==========================================================================
   3. Poster Selector Modal & Canvas Studio
   ========================================================================== */
.poster-selector-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 12, 18, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.poster-selector-box {
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.templates-grid-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.template-choice-card {
    background: #FAF7F2;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.template-choice-card:hover, .template-choice-card.active {
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(197, 34, 39, 0.2);
}

.template-choice-card .thumb-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-choice-card .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-choice-card .choice-info {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.template-choice-card .choice-info h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Canva-Style Fullscreen Studio Modal */
.poster-studio-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0D111A;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

.studio-header {
    height: 56px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
}

.studio-tool-btn {
    color: var(--text-secondary);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.studio-tool-btn:hover {
    color: #fff;
    background: var(--card-bg);
}

.studio-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.studio-sidebar-left {
    width: 270px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.studio-tab-bar {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    background: #171923;
}

.studio-tab-btn {
    flex: 1;
    padding: 0.75rem 0.4rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
}

.studio-tab-btn.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
    background: var(--bg-secondary);
}

.studio-tab-pane {
    display: none;
    padding: 1.2rem;
    flex-direction: column;
    gap: 0.6rem;
}

.studio-tab-pane.active {
    display: flex;
}

.field-cat-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-top: 0.8rem;
    margin-bottom: 0.2rem;
    display: block;
}

.field-add-btn {
    width: 100%;
    padding: 0.55rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-add-btn:hover {
    background: #383F52;
    border-color: var(--primary-orange);
    color: #fff;
}

.studio-workspace {
    flex: 1;
    background: #090B10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 1.5rem;
}

.canvas-wrapper {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-wrapper .canvas-container {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
}

.studio-sidebar-right {
    width: 280px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    padding: 1.2rem;
    overflow-y: auto;
}

.prop-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.prop-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prop-input {
    background: var(--input-gradient);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.prop-input:focus {
    border-color: var(--primary-orange);
}

.prop-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.prop-color-input {
    height: 36px;
    width: 100%;
    padding: 2px;
    border-radius: 6px;
    background: var(--input-gradient);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
}

.prop-btn {
    padding: 0.45rem 0.65rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
}

.prop-btn:hover {
    color: #fff;
    background: #383F52;
}

/* ==========================================================================
   4. Responsive Behavior (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-top {
        padding: 0.6rem 1rem;
    }

    .nav-home-btn {
        display: none !important;
    }

    .mobile-only-item {
        display: flex !important;
    }

    .main-content {
        padding: 1.2rem 1rem 2.5rem 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .stat-card {
        padding: 0.9rem 0.6rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .stat-info h3 {
        font-size: 0.66rem;
        letter-spacing: 0.6px;
    }

    .stat-info p {
        font-size: 1.45rem;
    }

    .view-header h2 {
        font-size: 1.7rem;
    }

    .studio-body {
        flex-direction: column;
    }
    .studio-sidebar-left, .studio-sidebar-right {
        width: 100%;
        max-height: 180px;
    }
    .studio-workspace {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 0.45rem;
    }
    .stat-card {
        padding: 0.75rem 0.4rem;
    }
}

/* ==========================================================================
   Festival Gallery Section ("In Pictures" Official Layout)
   ========================================================================== */
.gallery-hero-header {
    margin-bottom: 2.2rem;
    padding-top: 0.5rem;
}

.gallery-category-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--tag-red-text);
    background: var(--tag-red-bg);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.gallery-main-heading {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1rem 0;
}

.gallery-lead-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0;
    font-weight: 400;
}

/* In Pictures Seamless Grid (3 columns on desktop, 2 on tablet, 1 on mobile) */
.in-pictures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

.in-pictures-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.in-pictures-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 34, 39, 0.35);
    box-shadow: var(--shadow-md);
}

.in-pictures-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.in-pictures-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.in-pictures-card:hover .in-pictures-img {
    transform: scale(1.04);
}

/* Watermark overlay on the bottom of the photo matching the screenshot */
.in-pictures-watermark {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.in-pictures-watermark .wm-leaf {
    width: 18px;
    height: 18px;
    background: #4EA824;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.in-pictures-watermark .wm-leaf i {
    color: #FFF;
    font-size: 0.65rem;
}

.in-pictures-watermark .wm-text {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

@media (max-width: 950px) {
    .in-pictures-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .gallery-main-heading {
        font-size: 2.8rem;
    }
}

@media (max-width: 580px) {
    .in-pictures-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .gallery-main-heading {
        font-size: 2.3rem;
    }
}

/* Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.lightbox-close-btn:hover {
    color: #E8753B;
    transform: scale(1.15);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #F5F5F7;
    margin-top: 1rem;
    text-align: center;
}
