/**
 * SCGC Main Stylesheet
 * Southeastern Color Guard Circuit
 * 2025/2026 Season - Modern Refresh
 */

/* ===== CSS VARIABLES / COLOR PALETTE =====
 * Primary brand colors derived from SCGC logo
 * with modern, trendy supporting colors for 2025
 */
:root {
    /* Brand Colors */
    --scgc-red: #c41e3a;              /* Primary brand red - slightly modernized */
    --scgc-red-dark: #a01830;         /* Darker red for hovers */
    --scgc-red-light: #e8435a;        /* Lighter red for accents */
    
    /* Modern Neutrals */
    --scgc-dark: #0f172a;             /* Rich navy-black (trendy alternative to pure black) */
    --scgc-dark-soft: #1e293b;        /* Softer dark for cards/sections */
    --scgc-slate: #334155;            /* Medium slate for text */
    --scgc-gray: #64748b;             /* Muted gray for secondary text */
    --scgc-light: #f1f5f9;            /* Light background */
    --scgc-white: #ffffff;
    
    /* Accent Colors - 2025 Trendy Palette */
    --scgc-teal: #0d9488;             /* Modern teal - sophisticated */
    --scgc-teal-light: #14b8a6;       /* Brighter teal for hovers */
    --scgc-cyan: #06b6d4;             /* Electric cyan - energetic */
    --scgc-violet: #7c3aed;           /* Vibrant violet - creative/artistic */
    --scgc-violet-soft: #a78bfa;      /* Soft violet for gradients */
    --scgc-amber: #f59e0b;            /* Warm amber - friendly accent */
    --scgc-rose: #f43f5e;             /* Modern rose - pairs with red */
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--scgc-dark) 0%, var(--scgc-dark-soft) 50%, #1a1a2e 100%);
    --gradient-teal: linear-gradient(135deg, var(--scgc-teal) 0%, var(--scgc-cyan) 100%);
    --gradient-creative: linear-gradient(135deg, var(--scgc-violet) 0%, var(--scgc-rose) 100%);
    --gradient-warm: linear-gradient(135deg, var(--scgc-amber) 0%, var(--scgc-rose) 100%);
    --gradient-cool: linear-gradient(135deg, var(--scgc-teal) 0%, var(--scgc-violet) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow-teal: 0 0 20px rgba(13, 148, 136, 0.3);
    --shadow-glow-red: 0 0 20px rgba(196, 30, 58, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--scgc-light);
    color: var(--scgc-slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--scgc-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--scgc-teal-light);
}

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

/* ===== NEWS TICKER ===== */
.ticker-wrap {
    background: var(--scgc-red);
    color: var(--scgc-white);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--scgc-red) 0%, transparent 100%);
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--scgc-red) 0%, transparent 100%);
}

.ticker {
    display: flex;
    animation: ticker 35s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    white-space: nowrap;
    padding: 0 50px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-item i {
    color: var(--scgc-amber);
}

.ticker-item a {
    color: var(--scgc-white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.ticker-item a:hover {
    border-bottom-color: var(--scgc-white);
    color: var(--scgc-white);
}

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

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--scgc-white);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform var(--transition-fast);
}

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

.navbar-toggler {
    border: none;
    padding: 8px;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f172a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

.navbar-nav .nav-link {
    color: var(--scgc-dark);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--scgc-teal);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--scgc-teal);
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-nav-donate {
    background: var(--scgc-red);
    color: var(--scgc-white);
}

.btn-nav-donate:hover {
    background: var(--scgc-red-dark);
    color: var(--scgc-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-red);
}

.btn-nav-login {
    background: var(--scgc-dark);
    color: var(--scgc-white);
}

.btn-nav-login:hover {
    background: var(--scgc-dark-soft);
    color: var(--scgc-white);
    transform: translateY(-2px);
}

/* Mobile nav */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--scgc-white);
        padding: 20px;
        margin-top: 16px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav .nav-link {
        padding: 14px 16px;
        border-radius: var(--radius-sm);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: var(--scgc-light);
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--scgc-light);
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-hero);
    color: var(--scgc-white);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-tagline {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.btn-hero-primary {
    background: var(--gradient-teal);
    color: var(--scgc-white);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-teal);
    color: var(--scgc-white);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--scgc-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--scgc-white);
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--scgc-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--scgc-teal);
    font-size: 1.25rem;
}

.section-subtitle {
    color: var(--scgc-gray);
    font-size: 0.95rem;
}

.view-all-link {
    color: var(--scgc-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.view-all-link:hover {
    color: var(--scgc-teal-light);
    gap: 10px;
}

/* ===== EVENT CARDS ===== */
.event-card {
    background: var(--scgc-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.event-card-image {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: var(--scgc-dark);
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.event-card:hover .event-card-image img {
    transform: scale(1.08);
}

.event-card-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--scgc-red);
    color: var(--scgc-white);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-align: center;
    line-height: 1;
    box-shadow: var(--shadow-md);
}

.event-card-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 2px;
}

.event-card-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.event-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--scgc-dark);
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    transition: color var(--transition-fast);
}

.event-card-title:hover {
    color: var(--scgc-teal);
}

.event-card-location {
    font-size: 0.85rem;
    color: var(--scgc-gray);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;
}

.event-card-location i {
    color: var(--scgc-red);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===== FROM THE FLOOR SECTION ===== */
.floor-section {
    background: var(--gradient-hero);
    color: var(--scgc-white);
}

.floor-section .section-title {
    color: var(--scgc-white);
}

.floor-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.floor-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floor-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.floor-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.floor-card-image img,
.floor-card-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.floor-card:hover .floor-card-image img,
.floor-card:hover .floor-card-image .image-container img {
    transform: scale(1.08);
}

/* Hide CPN overlay from getRandomImageHTML, keep unit name */
.floor-card .overlay:not(.unit-name-overlay) {
    display: none !important;
}

.floor-card .unit-name-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%) !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    padding: 30px 12px 12px !important;
    font-size: 0.85rem;
}

.floor-card .unit-name-overlay a {
    color: var(--scgc-white) !important;
    font-weight: 500;
}

.floor-card .image-container {
    height: 100%;
    position: relative;
}

/* ===== VIDEO OF THE DAY (videoDay.php compatibility) ===== */
.video-of-day {
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--scgc-white);
    position: relative;
    overflow: hidden;
}

.video-of-day.card-gradient {
    background: var(--gradient-teal);
}

.video-of-day::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.video-of-day h1.display-6 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin-bottom: 18px !important;
    text-shadow: none !important;
    color: var(--scgc-white) !important;
}

.vod-thumb-wrap {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 0 auto 18px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.vod-thumb {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.vod-thumb-link {
    display: block;
    position: relative;
}

.vod-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background var(--transition-fast);
}

.vod-thumb-link:hover .vod-play {
    background: rgba(0, 0, 0, 0.5);
}

.vod-play i {
    font-size: 3rem;
    color: var(--scgc-white);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform var(--transition-fast);
}

.vod-thumb-link:hover .vod-play i {
    transform: scale(1.1);
}

.vod-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.vod-show {
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    margin: 0;
    line-height: 1.3;
}

.vod-show a {
    color: var(--scgc-white) !important;
    text-decoration: none;
}

.vod-show a:hover {
    text-decoration: underline;
}

.vod-group {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scgc-white) !important;
    opacity: 0.9;
}

.vod-year-divider {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: auto;
    padding-top: 8px;
}

.vod-year-divider span {
    color: var(--scgc-white) !important;
}

/* Remove old gradient overrides */
.video-of-day .portfolio-desc h3,
.video-of-day .portfolio-desc span {
    color: var(--scgc-white) !important;
}

/* ===== INFO CARDS ===== */
.info-card {
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--scgc-white);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.info-card-scholarship {
    background: var(--gradient-cool);
}

.info-card-video {
    background: var(--gradient-teal);
}

.info-card-donate {
    background: var(--gradient-warm);
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    opacity: 0.9;
}

.info-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.info-card-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 24px;
    flex: 1;
    line-height: 1.6;
}

.info-card-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--scgc-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.info-card-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--scgc-white);
    transform: translateY(-2px);
}

/* Video thumbnail */
.video-thumb-wrap {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.video-thumb-wrap img {
    width: 100%;
    display: block;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background var(--transition-fast);
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-btn i {
    font-size: 3.5rem;
    color: var(--scgc-white);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform var(--transition-fast);
}

.video-play-btn:hover i {
    transform: scale(1.1);
}

.video-info {
    text-align: center;
}

.video-title {
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 6px;
}

.video-unit {
    font-size: 0.9rem;
    opacity: 0.9;
}

.video-year {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* ===== MISSION SECTION ===== */
.mission-section {
    background: var(--scgc-white);
    padding: 50px 0;
}

.mission-text {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--scgc-dark);
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    font-weight: 500;
    position: relative;
    padding: 0 30px;
}

.mission-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--scgc-teal);
    font-weight: 700;
    line-height: 1;
    opacity: 0.5;
}

.mission-text::after {
    content: '"';
    font-size: 4rem;
    color: var(--scgc-teal);
    font-weight: 700;
    line-height: 1;
    opacity: 0.5;
    vertical-align: bottom;
    margin-left: 5px;
}

/* ===== SPONSOR BAR ===== */
.sponsor-bar {
    background: var(--scgc-white);
    padding: 40px 0;
    border-top: 1px solid var(--scgc-light);
}

.sponsor-bar img {
    max-height: 70px;
    opacity: 0.6;
    transition: all var(--transition-fast);
    filter: grayscale(30%);
}

.sponsor-bar img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--scgc-dark);
    color: var(--scgc-white);
    padding: 50px 0 24px;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-tagline {
    color: var(--scgc-gray);
    font-size: 0.9rem;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--scgc-white);
}

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

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

.footer-links a {
    color: var(--scgc-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--scgc-white);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--scgc-teal);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--scgc-gray);
}

/* ===== UTILITIES ===== */
.bg-light-custom {
    background: var(--scgc-light);
}

.text-gradient {
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-logo {
        max-width: 220px;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .section {
        padding: 45px 0;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .event-card-image {
        height: 140px;
    }
    
    .floor-card-image {
        height: 160px;
    }
    
    .mission-text {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .mission-text::before {
        font-size: 3rem;
        top: -5px;
    }
    
    .info-card {
        padding: 28px 22px;
    }
    
    .ticker-item {
        font-size: 0.85rem;
        padding: 0 35px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 30px 0 50px;
    }
    
    .hero-logo {
        max-width: 180px;
    }
    
    .btn-hero {
        padding: 12px 22px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    .mission-text::before,
    .mission-text::after {
        display: none;
    }
}
/* ==========================================================
   SCGC HOMEPAGE "DASHBOARD" ADD-ONS (Spectator-first)
   ========================================================== */

/* Navbar scrolled (JS toggles this) */
.navbar.navbar-scrolled{
    box-shadow: var(--shadow-lg);
}

/* Hero: dashboard layout */
.hero--dashboard{
    padding: 56px 0 64px;
}
.hero-content--left{
    text-align: left;
}
@media (max-width: 991px){
    .hero-content--left{ text-align:center; }
}
.hero-mini{
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 991px){
    .hero-mini{ justify-content:center; }
}
.badge-live{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    letter-spacing: .02em;
}
.hero-mini__link{
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-decoration: none;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.hero-mini__link:hover{
    color: var(--scgc-teal-light);
    gap: 10px;
}

/* Right hero panel */
.hero-panel{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.hero-next{
    display:flex;
    flex-direction: column;
}
.hero-next__media{
    position: relative;
    height: 220px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}
.hero-next__media img{
    width:100%;
    height:100%;
    object-fit: cover;
    transform: scale(1.03);
}
.hero-next__badge{
    position:absolute;
    top:14px;
    left:14px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding: 10px 12px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.92);
    font-weight: 700;
}
.hero-next__body{
    padding: 18px 18px 16px;
}
.hero-next__title{
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--scgc-white);
    line-height: 1.25;
    margin-bottom: 8px;
}
.hero-next__meta{
    display:flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
}
.hero-next__meta i{
    color: var(--scgc-teal-light);
    margin-right: 8px;
}
.hero-next__countdown{
    margin-top: 12px;
}
.countdown-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: rgba(255,255,255,0.95);
    font-weight: 800;
}
.hero-next__cta{
    display:flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.hero-next__cta .btn-hero{
    padding: 12px 18px;
}
.hero-next__results{
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.88);
    display:flex;
    align-items:center;
    flex-wrap: wrap;
    gap:8px;
    font-weight: 600;
}
.hero-next__results i{
    color: var(--scgc-amber);
}
.hero-next__results-link{
    margin-left: auto;
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.hero-next__results-link:hover{
    color: var(--scgc-teal-light);
    gap:10px;
}

/* Empty state */
.hero-next--empty{
    padding: 22px;
    text-align:center;
    color: rgba(255,255,255,0.92);
}
.hero-next__empty-text{
    margin: 12px auto 0;
    max-width: 420px;
    color: rgba(255,255,255,0.78);
}
.hero-next--empty .hero-next__cta{
    justify-content: center;
}

/* Quick links strip */
.quick-strip{
    margin-top: -26px; /* tuck into hero */
    padding-bottom: 16px;
}
.quick-strip__inner{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 991px){
    .quick-strip__inner{
        grid-template-columns: 1fr;
    }
}
.quick-pill{
    display:flex;
    align-items:center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-md);
    color: var(--scgc-dark);
    text-decoration:none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.quick-pill:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}
.quick-pill__icon{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(13, 148, 136, 0.10);
    color: var(--scgc-teal);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.quick-pill__text{
    display:flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.quick-pill__title{
    font-weight: 900;
    letter-spacing: .01em;
}
.quick-pill__sub{
    color: var(--scgc-gray);
    font-weight: 600;
    font-size: .9rem;
}
.quick-pill__chev{
    margin-left: auto;
    color: var(--scgc-gray);
    font-size: 1.1rem;
}

/* Scholarship standout */
.quick-pill--scholarship{
    background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(13,148,136,0.12) 100%), rgba(255,255,255,0.92);
}
.quick-pill--scholarship .quick-pill__icon{
    background: rgba(124,58,237,0.12);
    color: var(--scgc-violet);
}

/* Results banner */
.section--tight{
    padding: 28px 0 40px;
}
.results-banner{
    display:flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}
.results-banner__kicker{
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    color: var(--scgc-teal);
    display:flex;
    align-items:center;
    gap: 8px;
}
.results-banner__title{
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--scgc-dark);
    margin-top: 4px;
}
.results-banner__meta{
    margin-top: 6px;
    display:flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--scgc-gray);
    font-weight: 700;
    font-size: .9rem;
}
.results-banner__meta i{
    color: var(--scgc-red);
    margin-right: 6px;
}
.results-banner__right{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
@media (max-width: 768px){
    .results-banner{
        flex-direction: column;
        align-items: flex-start;
    }
    .results-banner__right{
        width:100%;
        justify-content: flex-start;
    }
    .results-banner__right .btn-hero{
        width:100%;
        justify-content: center;
    }
}

/* Animate on scroll */
.animate-on-scroll{
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.animated{
    opacity: 1;
    transform: translateY(0);
}

/* Back to top minimal fallback (if core CSS doesn't cover it) */
#gotoTop{
    position: fixed;
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--scgc-dark);
    color: var(--scgc-white);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 1200;
}
#gotoTop.visible{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
