/* ==========================================================
   HOMEPAGE AND NAVBAR SIZING OVERRIDES
   ========================================================== */

.navbar .logo-img {
    height: 100px;
    width: auto;
}

.navbar .logo-text {
    font-size: 1rem;
}

.navbar .logo {
    font-size: 1.15rem;
}

.navbar .nav-links a {
    font-size: 0.98rem;
    padding: 0.55rem 0.95rem;
}

.nav-cta {
    font-size: 0.97rem;
    padding: 0.45rem 1rem;
}

.home-page .hero-title {
    font-size: 2.6rem;
}

.home-page .hero-subtitle {
    font-size: 2rem;
}

.home-page .hero-description {
    font-size: 1.15rem;
}

.home-page .section-title {
    font-size: 2.2rem;
}

/* ==========================================================
   ANNOUNCEMENT TICKER - NAVY + GOLD THEME
   Compact right-to-left ticker
   ========================================================== */

.announcement-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0.6rem 0 0.7rem !important;
    background: #061738 !important;
    border-top: 1px solid rgba(215, 151, 49, 0.35) !important;
    border-bottom: 1px solid rgba(215, 151, 49, 0.35) !important;
    overflow: hidden !important;
}

.announcement-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.announcement-heading {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.announcement-ticker {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.ticker-track-wrapper {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
}

.ticker-track {
    display: flex !important;
    align-items: center !important;
    gap: 3rem !important;
    white-space: nowrap !important;
    width: max-content !important;
    padding-left: 100% !important;
    will-change: transform !important;
    animation: ticker-slide-right-left 21s linear infinite !important;
}

.ticker-item {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em !important;
    color: #f2b84b !important;
}

@keyframes ticker-slide-right-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ==========================================================
   INTRO VIDEO SKIP LAYER + NATIVE CONTROLS
   Middle/side click skips, bottom progress bar remains usable
   ========================================================== */

.intro-video-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: #061738 !important;
    overflow: hidden !important;
}

.intro-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: auto !important;
}

/*
   This transparent layer is above the video middle area.
   It leaves the bottom native control/progress area free.
   If progress bar is hard to touch, increase bottom value.
*/
.intro-video-skip-layer {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 115px !important;
    z-index: 50 !important;
    background: transparent !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}

/* Hide old custom progress bar elements */
.intro-video-bottom,
.intro-progress-wrap,
.intro-progress-bar,
.intro-progress-handle,
.intro-progress-input,
.intro-video-info,
.intro-skip-note {
    display: none !important;
}

/* ==========================================================
   TABLET RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {
    .navbar .logo-img {
        height: 64px;
    }

    .navbar .logo-text {
        font-size: 0.92rem;
    }

    .navbar .nav-links a {
        font-size: 0.95rem;
    }

    .nav-cta {
        font-size: 0.9rem;
        padding: 0.45rem 1rem;
    }

    .home-page .hero-title {
        font-size: 2rem;
    }

    .home-page .hero-subtitle {
        font-size: 1.5rem;
    }

    .home-page .hero-description {
        font-size: 1rem;
    }

    .home-page .section-title {
        font-size: 2rem;
    }

    .announcement-section {
        padding: 0.5rem 0 0.6rem !important;
    }

    .announcement-heading {
        font-size: 1.15rem !important;
        letter-spacing: 0.1em !important;
    }

    .ticker-track {
        gap: 1.6rem !important;
        animation-duration: 21s !important;
    }

    .ticker-item {
        font-size: 1.1rem !important;
    }
}

/* ==========================================================
   MOBILE RESPONSIVE
   ========================================================== */

@media (max-width: 600px) {
    .navbar .logo-img {
        height: 56px;
    }

    .navbar .logo-text {
        font-size: 0.9rem;
    }

    .navbar .nav-links a {
        font-size: 0.9rem;
    }

    .nav-cta {
        font-size: 0.85rem;
        padding: 0.35rem 0.9rem;
    }

    .home-page .hero-title {
        font-size: 1.8rem;
    }

    .home-page .hero-subtitle {
        font-size: 1.3rem;
    }

    .home-page .hero-description {
        font-size: 0.98rem;
    }

    .home-page .section-title {
        font-size: 1.7rem;
    }

    .announcement-section {
        padding: 0.45rem 0 0.5rem !important;
    }

    .announcement-heading {
        font-size: 1rem !important;
        letter-spacing: 0.08em !important;
    }

    .ticker-track {
        gap: 1.2rem !important;
        animation-duration: 21s !important;
    }

    .ticker-item {
        font-size: 0.95rem !important;
    }

    .intro-video-skip-layer {
        bottom: 125px !important;
    }
}

/* ==========================================================
   MOBILE PARAGRAPH READABILITY OVERRIDES
   ========================================================== */

@media (max-width: 768px) {
    .home-page .about-challenge-text {
        box-sizing: border-box !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        width: 100% !important;
    }

    .about-us-page .our-story-copy,
    .about-us-page .about-platform-text {
        box-sizing: border-box !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .about-us-page .mv-card p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-page .about-challenge-text p,
    .about-us-page .our-story-copy p,
    .about-us-page .mv-card p,
    .about-us-page .about-platform-text p,
    .ideathon-page .info-card--overview p,
    .ideathon-page .info-card--how-it-works p {
        text-align: left !important;
        text-justify: auto !important;
        line-height: 1.7 !important;
        margin-bottom: 1rem !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .about-us-page .our-story-copy p {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-page .about-challenge-text p:last-child,
    .about-us-page .our-story-copy p:last-child,
    .about-us-page .mv-card p:last-of-type,
    .about-us-page .about-platform-text p:last-of-type,
    .ideathon-page .info-card--overview p:last-child,
    .ideathon-page .info-card--how-it-works p:last-of-type {
        margin-bottom: 0 !important;
    }

    .about-page .page-hero .page-label {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

 .ideathon-page .page-hero .page-subtitle {
        text-align: center;
        text-justify: auto;
    }

    .idea-track-section {
        margin: 2rem 0;
        padding: 2rem;
        border-radius: 24px;
        background:
            linear-gradient(135deg, rgba(6, 23, 56, 0.96), rgba(10, 39, 86, 0.94)),
            radial-gradient(circle at top right, rgba(215, 151, 49, 0.22), transparent 32%);
        border: 1px solid rgba(215, 151, 49, 0.28);
        box-shadow: 0 22px 55px rgba(6, 23, 56, 0.18);
        overflow: hidden;
        position: relative;
    }

    .idea-track-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
        background-size: 34px 34px;
        opacity: 0.35;
        pointer-events: none;
    }

    .idea-track-content {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .idea-track-text {
        max-width: 720px;
        animation: ideaTrackTextSlide 0.9s ease-out both;
    }

    .idea-track-text .section-label {
        color: #f2b84b;
    }

    .idea-track-text h2 {
        margin: 0.35rem 0 1rem;
        color: #ffffff;
        font-size: clamp(1.8rem, 3vw, 2.6rem);
        line-height: 1.15;
    }

    .idea-track-text p {
        color: rgba(255, 255, 255, 0.82);
        line-height: 1.75;
        margin-bottom: 0.75rem;
    }

    .idea-track-action {
        flex: 0 0 auto;
        animation: ideaTrackButtonSlide 0.9s ease-out 0.15s both;
    }

    .track-idea-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 170px;
        padding: 0.9rem 1.35rem;
        border-radius: 999px;
        background: linear-gradient(135deg, #d79731, #f2b84b);
        color: #061738;
        font-weight: 800;
        text-decoration: none;
        letter-spacing: 0.02em;
        box-shadow: 0 14px 32px rgba(215, 151, 49, 0.35);
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
        white-space: nowrap;
    }

    .track-idea-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 42px rgba(215, 151, 49, 0.48);
        background: linear-gradient(135deg, #f2b84b, #ffd98a);
    }

    @keyframes ideaTrackTextSlide {
        from {
            opacity: 0;
            transform: translateX(-45px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes ideaTrackButtonSlide {
        from {
            opacity: 0;
            transform: translateX(45px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @media (max-width: 768px) {
        .idea-track-section {
            padding: 1.5rem;
            border-radius: 20px;
        }

        .idea-track-content {
            flex-direction: column;
            align-items: flex-start;
            gap: 1.25rem;
        }

        .idea-track-action {
            width: 100%;
        }

        .track-idea-btn {
            width: 100%;
        }
    }