/* ═══════════════════════════════════════════════════════════════
   Vidyarthi Mitra — Reference-Matched Hero & Navbar Redesign
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --vm-lime: #ff6600;
    --vm-lime-dark: #cc5200;
    --vm-purple: #b892ff;
    --vm-orange-warm: #f4b266;
    --vm-navy: #0f1b2d;
    --vm-text: #1e293b;
    --vm-muted: #64748b;
    --vm-surface: #ffffff;
    --vm-bg: #f5f7fb;
    --vm-line: #e2e8f0;
    --vm-radius-hero: 28px;
    --vm-radius-card: 16px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Body reset to dark tech theme ───────────────────────────── */
body {
    background: linear-gradient(180deg, #0a1128 0%, #030612 100%) !important;
    color: #cbd5e1 !important;
    font-family: 'Inter', 'Roboto', sans-serif !important;
}

/* ── Legacy Navbar Overrides Removed to let Unified Navbar Render Natively ── */

/* ── HERO SECTION ──────────────────────────────────────────── */
.hero {
    position: relative !important;
    height: auto !important;
    min-height: 520px !important;
    max-height: 640px !important;
    margin: 14px auto 0 !important;
    max-width: 1336px !important;
    width: calc(100% - 64px) !important;
    border-radius: var(--vm-radius-hero) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    text-align: left !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #0f1b2d !important;
    background-image: url('/static/IITDELHI.jpg');
}

/* Soft cinematic overlay */
.hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(100deg,
            rgba(10, 17, 40, 0.95) 0%,
            rgba(10, 17, 40, 0.85) 35%,
            rgba(10, 17, 40, 0.55) 55%,
            rgba(10, 17, 40, 0.3) 75%,
            rgba(10, 17, 40, 0.2) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Remove old ::after pseudo floating card */
.hero::after {
    display: none !important;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 64px 80px;
    gap: 40px;
    min-height: 520px;
}

/* ── Hero Left — Text Content ──────────────────────────────── */
.hero-left {
    flex: 1 1 52%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Remove old pseudo-element badge */
.hero-content::before,
.hero-content::after {
    display: none !important;
}

.hero-badge {
    display: inline-block;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(120deg, #ff8a33 0%, var(--vm-lime) 100%);
    box-shadow: 0 4px 12px rgba(200,80,0, 0.3);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-heading {
    font-size: clamp(36px, 4.5vw, 54px) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 16px 0 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
    max-width: 480px !important;
}

.hero-heading em {
    font-style: italic;
    background: linear-gradient(92deg, var(--vm-purple), var(--vm-lime), var(--vm-orange-warm));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(14px, 1.3vw, 17px) !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
    max-width: 420px !important;
    margin: 0 0 28px 0 !important;
    text-shadow: none !important;
    font-weight: 400 !important;
}

/* ── Hero Buttons ──────────────────────────────────────────── */
.hero-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

.hero-buttons .btn {
    min-width: auto !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    border-width: 1px !important;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px) !important;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #ff8a33 0%, var(--vm-lime) 100%) !important;
    color: #ffffff !important;
    border-color: rgba(180,60,0, 0.3) !important;
    box-shadow: 0 6px 20px rgba(200,80,0, 0.3) !important;
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 8px 26px rgba(200,80,0, 0.45) !important;
}

.hero-buttons .btn-default {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.hero-buttons .btn-default:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

/* ── Hero Right — Floating Image Cards ─────────────────────── */
.hero-right {
    flex: 0 0 42%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    position: relative;
    height: 420px;
    padding-bottom: 20px;
}

.hero-card {
    border-radius: var(--vm-radius-card);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card-1 {
    width: 140px;
    height: 200px;
    align-self: flex-end;
    margin-bottom: 30px;
    animation: vmCardFloat1 5s ease-in-out infinite;
}

.hero-card-2 {
    width: 160px;
    height: 230px;
    align-self: flex-end;
    margin-bottom: 0;
    animation: vmCardFloat2 6s ease-in-out infinite;
}

.hero-card-3 {
    width: 140px;
    height: 190px;
    align-self: flex-end;
    margin-bottom: 50px;
    animation: vmCardFloat3 5.5s ease-in-out infinite;
}

@keyframes vmCardFloat1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes vmCardFloat2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes vmCardFloat3 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ── Announcement Bar ──────────────────────────────────────── */
.announcement-bar {
    background: #0f1b2d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 4px solid var(--vm-lime) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    margin: 40px auto !important;
    max-width: 1180px !important;
    padding: 20px 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
}

.announcement-bar i {
    color: var(--vm-lime) !important;
    font-size: 20px !important;
}

.announcement-bar p {
    color: #e2e8f0 !important;
    margin: 0 !important;
    font-size: 15px !important;
}

/* ── Sections — Dark Theme & Centered Layout ──────────────────── */
section {
    padding: 80px 0 !important;
    background: transparent !important;
}

.container {
    max-width: 1180px !important;
    margin: 0 auto !important;
}

.section-title {
    color: #ffffff !important;
    text-align: center !important;
    font-weight: 800 !important;
    font-size: clamp(32px, 4vw, 48px) !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
    text-shadow: none !important;
}

.section-subtitle {
    color: #94a3b8 !important;
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto 50px auto !important;
    font-size: clamp(14px, 1.5vw, 16px) !important;
    line-height: 1.6 !important;
}

.section-title .orange-text,
.section-title .highlight-orange,
.section-title .orange,
.section-title span {
    color: var(--vm-lime) !important;
}

/* ── Card Design System ───────────────────────────────────────── */
.featured-alert-grid,
.top-search-grid,
.epaper-grid,
.about-grid,
.testimonial-section .row,
.partner-track,
.unified-list-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Specific grid overrides */
.featured-alert-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

.top-search-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

.unified-list-container {
    grid-template-columns: 1fr !important;
}

.partner-track {
    grid-template-columns: repeat(5, 1fr) !important;
}

.testimonial-section .row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.testimonial-section .row .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
}

/* ── Featured Alerts — compact left-aligned override ─────────── */
.featured-alerts-section .alert-box {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 16px 18px !important;
}

.featured-alerts-section .alert-box h5 {
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
}

.featured-alerts-section .alert-box i {
    font-size: 1em !important;
    margin-bottom: 0 !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

.featured-alerts-section .alert-box small {
    font-size: 12px !important;
    color: #94a3b8 !important;
}

/* The Cards — neo-brutalist dark style */
.alert-box,
.search-item,
.epaper-card,
.info-box,
.course-row-wrapper,
.testimonial-item,
.partner-logo-box,
.subscribe-container {
    background: #0d1b2e !important;
    border: 2px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 16px !important;
    padding: 26px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    text-align: left !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    height: 100% !important;
}


/* Hover — neo-brutalist lift + image reveal */
.alert-box:hover,
.search-item:hover,
.epaper-card:hover,
.info-box:hover,
.course-row-wrapper:hover,
.testimonial-item:hover,
.partner-logo-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 1) !important;
}


/* Card Icons — full-width banner strip */
.info-box > i,
.search-item > i {
    width: calc(100% + 48px) !important;
    margin-left: -24px !important;
    margin-top: -26px !important;
    height: 72px !important;
    border-radius: 14px 14px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 24px !important;
    font-size: 28px !important;
    margin-bottom: 20px !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
}

/* Cycling accent — lime / purple / orange */
.about-grid .info-box:nth-child(3n+1) > i,
.top-search-grid .search-item:nth-child(3n+1) > i {
    background: rgba(255,102,0, 0.18) !important;
    color: var(--vm-lime) !important;
}
.about-grid .info-box:nth-child(3n+2) > i,
.top-search-grid .search-item:nth-child(3n+2) > i {
    background: rgba(184, 146, 255, 0.18) !important;
    color: var(--vm-purple) !important;
}
.about-grid .info-box:nth-child(3n) > i,
.top-search-grid .search-item:nth-child(3n) > i {
    background: rgba(244, 178, 102, 0.18) !important;
    color: var(--vm-orange-warm) !important;
}

.alert-box i,
.course-row .icon-box {
    font-size: 36px !important;
    color: var(--vm-lime) !important;
    margin-bottom: 16px !important;
    transition: transform 0.3s ease !important;
}

.alert-box:hover i,
.course-row:hover .icon-box {
    transform: scale(1.1) !important;
}

/* Card Headings */
.alert-box h5,
.search-item a,
.epaper-card h3,
.info-box h5,
.testimonial-author h6,
.course-row h3,
.partner-logo-box h5 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

/* Card Descriptions */
.alert-box small,
.search-item p,
.epaper-card p,
.info-box p,
.testimonial-text,
.course-row p {
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Specific overrides */
.top-searches {
    background: transparent !important;
}

.top-search-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    align-items: start !important;
}

.top-search-grid .search-item,
body.light-mode .top-search-grid .search-item {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 16px 20px !important;
    gap: 16px !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: auto !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.top-search-grid .search-item:hover,
body.light-mode .top-search-grid .search-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.top-search-grid .search-item > i {
    margin-bottom: 0 !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
    border-radius: 10px !important;
}

.top-search-grid .search-item .search-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
}

.top-search-grid .search-item a {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-search-grid .search-item small {
    font-size: 12.5px !important;
    color: #64748b !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.epaper-grid .card-link {
    text-decoration: none !important;
}


/* Course Row Additions */
.course-row-wrapper {
    padding: 20px 28px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
}

.course-row {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.row-main {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    flex: 1 !important;
    gap: 20px !important;
}

.course-row .icon-box {
    margin-bottom: 0 !important;
    width: 54px !important;
    height: 54px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    flex-shrink: 0 !important;
}

.course-row h3 {
    margin: 0 0 4px 0 !important;
    text-align: left !important;
}

.course-row p {
    margin: 0 !important;
    text-align: left !important;
}

.view-btn {
    margin-top: 0 !important;
    background: transparent !important;
    color: var(--vm-lime) !important;
    border: 1px solid rgba(255,102,0, 0.4) !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

.view-btn:hover {
    background: rgba(255,102,0, 0.1) !important;
    border-color: var(--vm-lime) !important;
    color: #ffffff !important;
}

.stream-filter {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-bottom: 50px !important;
}

.filter-btn {
    background: transparent !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(255,102,0, 0.1) !important;
    color: var(--vm-lime) !important;
    border-color: var(--vm-lime) !important;
}

.entrance-details {
    padding: 24px 0 0 0 !important;
    width: 100% !important;
}

.exam-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
    margin-bottom: 12px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    text-align: left !important;
    font-size: 13.5px !important;
}

.exam-card strong {
    color: var(--vm-lime) !important;
}

/* Testimonials */
.testimonial-item .testimonial-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 24px !important;
}

.testimonial-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-bottom: 16px !important;
    border: 2px solid var(--vm-lime) !important;
}

/* Partners & Featured Section */
.partner-logo-box img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    margin-bottom: 16px !important;
    background: #ffffff !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: block !important;
}

.logo-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 20px 28px !important;
    min-width: 220px !important;
    height: 120px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.logo-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.14) !important;
}

.logo-item img {
    height: 80px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Subscribe Section */
.subscribe-container {
    max-width: 800px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.subscribe-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
}

.subscribe-form input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    text-align: center !important;
}

.subscribe-form input::placeholder {
    color: #64748b !important;
}

.sub-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #ff8a33 0%, var(--vm-lime) 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 16px 20px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(200,80,0, 0.3) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.sub-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(200,80,0, 0.45) !important;
}

/* ── Footer — Dark ────────────────────────────────────────── */
footer {
    background: #050a15 !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 80px 0 0 0 !important;
}

.footer-logo,
.footer-widget h5 {
    color: #ffffff !important;
}

.footer-widget ul li a {
    color: #94a3b8 !important;
    transition: color 0.2s ease !important;
}

.footer-widget ul li a:hover {
    color: var(--vm-lime) !important;
}

.footer-bottom {
    background: #02040a !important;
    color: #64748b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 60px !important;
    padding: 20px 0 !important;
}

/* ── Feedback Button ───────────────────────────────────────── */
.left-feedback-btn {
    background: var(--vm-lime) !important;
    color: #0f1b2d !important;
}

/* ── Responsiveness ───────────────────────────────────────── */
@media (max-width: 1100px) {
    .hero-inner {
        padding: 40px 36px;
    }

    .hero-right {
        flex: 0 0 38%;
    }

    .hero-card-1 {
        width: 110px;
        height: 160px;
    }

    .hero-card-2 {
        width: 130px;
        height: 190px;
    }

    .hero-card-3 {
        width: 110px;
        height: 150px;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 420px !important;
        max-height: none !important;
        margin: 10px 16px 0 !important;
        border-radius: 22px !important;
    }

    .hero-inner {
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 36px 28px;
        gap: 24px;
        min-height: auto;
    }

    .hero-left {
        max-width: 100%;
        flex: 0 0 auto !important;
        align-items: flex-start;
    }

    .hero-right {
        flex: 0 0 auto;
        height: auto;
        width: 100%;
        justify-content: center;
        padding-bottom: 0;
    }

    .hero-card-1,
    .hero-card-2,
    .hero-card-3 {
        margin-bottom: 0;
    }

    .hero-card-1 {
        width: 100px;
        height: 140px;
    }

    .hero-card-2 {
        width: 120px;
        height: 170px;
    }

    .hero-card-3 {
        width: 100px;
        height: 130px;
    }

    .hero-heading {
        font-size: clamp(30px, 8vw, 42px) !important;
    }

    .featured-alert-grid,
    .top-search-grid,
    .epaper-grid,
    .about-grid,
    .testimonial-section .row,
    .partner-track,
    .unified-list-container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .hero {
        margin: 8px 10px 0 !important;
        width: calc(100% - 20px) !important;
        border-radius: 18px !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
    }

    .hero-inner {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 24px 20px 20px !important;
        gap: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .hero-left {
        flex: 0 0 auto !important;
        max-width: 100% !important;
    }

    .hero-right {
        display: none !important;
        height: 0 !important;
    }

    .hero-badge {
        font-size: 10px !important;
        padding: 5px 12px !important;
        margin-bottom: 12px !important;
    }

    .hero-heading {
        font-size: clamp(26px, 8vw, 34px) !important;
        max-width: 100% !important;
        margin-bottom: 12px !important;
    }

    .hero-subtitle {
        font-size: clamp(13px, 3.5vw, 15px) !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        margin-bottom: 4px !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        text-align: center !important;
        min-width: 0 !important;
        padding: 13px 20px !important;
        font-size: 13px !important;
    }

    /* Announcement bar mobile fix */
    .announcement-bar {
        margin: 16px 10px !important;
        padding: 12px 14px !important;
        border-radius: 12px !important;
    }

    .announcement-bar p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* Reduce card padding on mobile */
    .alert-box,
    .search-item,
    .epaper-card,
    .info-box,
    .testimonial-item,
    .subscribe-container {
        padding: 20px 16px !important;
        height: auto !important;
    }

    /* 2-column search grid on mobile */
    .top-search-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Reduce section vertical padding on mobile */
    section,
    .section,
    .featured-alerts-section,
    .about-section,
    .testimonial-section,
    .partners-section,
    .epaper-section {
        padding: 32px 0 !important;
    }

    /* Reduce subtitle margin on mobile */
    .section-subtitle {
        margin: 0 auto 20px auto !important;
    }

    /* Section title smaller on mobile */
    .section-title {
        font-size: clamp(22px, 6vw, 28px) !important;
        margin-bottom: 8px !important;
    }
}


/* ── Reveal animations ─────────────────────────────────────── */
.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes vmFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ── Featured Marquee ────────────────────────────────────────── */
.featured-section {
    padding: 60px 0;
    overflow: hidden;
}

.featured-section h2 {
    text-align: center !important;
    font-weight: 800 !important;
    font-size: clamp(28px, 4vw, 36px) !important;
    margin-bottom: 40px !important;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

.featured-section h2 .orange {
    color: var(--vm-lime) !important;
}

body.light-mode .featured-section h2 {
    color: #0f172a !important;
}

.featured-section .slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.featured-section .slider-track {
    display: flex !important;
    gap: 32px !important;
    align-items: center;
    width: max-content;
    flex-wrap: nowrap !important;
    animation: scrollMarquee 30s linear infinite !important;
}

.featured-section .slider-track:hover {
    animation-play-state: paused !important;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 16px));
    }
}

.featured-section .logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d1627;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 85px;
}

.featured-section .logo-item:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--vm-lime);
    box-shadow: 0 8px 24px rgba(255,102,0, 0.15);
}

.featured-section .logo-item img {
    height: 100%;
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

body.light-mode .featured-section .logo-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .featured-section .logo-item:hover {
    border-color: var(--vm-lime);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}


/* ── Light Theme Overrides ────────────────────────────────────────── */
body.light-mode {
    background: linear-gradient(180deg, #f5f7fb 0%, #e2e8f0 100%) !important;
    color: #334155 !important;
}

body.light-mode .vm-main-header {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

body.light-mode .vm-main-header.vm-scrolled {
    background: rgba(5, 10, 21, 0.82) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

body.light-mode .vm-main-links a {
    color: #475569 !important;
}

body.light-mode .vm-main-links a:hover,
body.light-mode .vm-main-links a.vm-active {
    color: #0f172a !important;
    background: rgba(255,102,0, 0.25) !important;
}

body.light-mode .vm-main-links a.nav-login {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}


body.light-mode .announcement-bar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .announcement-bar p {
    color: #334155 !important;
}

body.light-mode .section-title {
    color: #0f172a !important;
}

body.light-mode .section-subtitle {
    color: #64748b !important;
}

body.light-mode .alert-box,
body.light-mode .search-item,
body.light-mode .epaper-card,
body.light-mode .info-box,
body.light-mode .testimonial-item,
body.light-mode .partner-logo-box,
body.light-mode .subscribe-container,
body.light-mode .course-row-wrapper {
    background: #ffffff !important;
    border: 2px solid rgba(0, 0, 0, 0.8) !important;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1) !important;
}


body.light-mode .alert-box h5,
body.light-mode .search-item a,
body.light-mode .epaper-card h3,
body.light-mode .info-box h5,
body.light-mode .testimonial-author h6,
body.light-mode .course-row h3,
body.light-mode .partner-logo-box h5 {
    color: #0f172a !important;
}

body.light-mode .alert-box small,
body.light-mode .search-item p,
body.light-mode .epaper-card p,
body.light-mode .info-box p,
body.light-mode .testimonial-text,
body.light-mode .course-row p {
    color: #64748b !important;
}

body.light-mode .course-row .icon-box {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .view-btn {
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

body.light-mode .view-btn:hover {
    background: var(--vm-lime) !important;
    border-color: var(--vm-lime) !important;
    color: #0f1b2d !important;
}

body.light-mode .filter-btn {
    color: #475569 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .filter-btn.active,
body.light-mode .filter-btn:hover {
    background: rgba(255,102,0, 0.25) !important;
    color: #ffffff !important;
    border-color: var(--vm-lime) !important;
}

body.light-mode .exam-card {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #475569 !important;
}

body.light-mode .subscribe-form input {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

body.light-mode footer {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .footer-logo,
body.light-mode .footer-widget h5 {
    color: #0f172a !important;
}

body.light-mode .footer-widget ul li a {
    color: #475569 !important;
}

body.light-mode .footer-widget ul li a:hover {
    color: var(--vm-lime-dark, #cc5200) !important;
}

body.light-mode .footer-bottom {
    background: #e2e8f0 !important;
    color: #64748b !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Fix navbar toggle icon */
body.light-mode .vm-nav-toggle {
    color: #0f172a !important;
}
