/* assets/css/style.css — Online Education National Education Platform Design System */
/* Brand Colors: Sleek Black (#0B0F19 / #111827) & Vibrant Orange (#FF6B00) */
/* 100% Mobile Friendly & PWA Responsive */

:root {
    /* Brand Black & Dark Charcoal */
    --black-dark: #070A10;
    --black: #0B0F19;
    --black-soft: #111827;
    --black-card: #182030;
    --primary: #111827;
    --primary-dark: #070A10;
    --primary-light: #FFF7ED;
    --primary-subtle: #F3F4F6;

    /* Brand Orange & Saffron (from Official Online Education Logo) */
    --orange: #FF6B00;
    --orange-hover: #E65A00;
    --orange-dark: #C2410C;
    --orange-light: #FFF7ED;
    --orange-subtle: #FFEDD5;
    --orange-border: #FED7AA;

    --secondary: #FF6B00;
    --secondary-light: #FFF7ED;
    --secondary-dark: #C2410C;

    /* Neutrals & Text */
    --charcoal: #0F172A;
    --slate-body: #374151;
    --slate-muted: #6B7280;
    --border-color: #E5E7EB;
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 24px -4px rgba(17, 24, 39, 0.12), 0 6px 12px -4px rgba(255, 107, 0, 0.08);
    --shadow-orange: 0 6px 18px rgba(255, 107, 0, 0.28);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Typography */
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--slate-body);
    background-color: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.18s ease;
}

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

/* National Tricolor Accent Stripe */
.national-stripe {
    height: 4px;
    background: linear-gradient(90deg, #FF6B00 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #138808 66.6%);
}

/* Top Announcement & Utility Bar */
.top-utility-bar {
    background-color: var(--black-dark);
    color: #9CA3AF;
    font-size: 0.82rem;
    padding: 7px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.utility-links a {
    color: #9CA3AF;
}

.utility-links a:hover {
    color: var(--orange);
}

/* Sticky Main Header */
.main-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-full-logo {
    height: 48px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--black-soft);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-text span {
    color: var(--orange);
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--slate-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header Omnibox Search */
.header-search-form {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 10px 45px 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-family: inherit;
    background: #F9FAFB;
    transition: all 0.2s ease;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--orange);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.header-search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange);
    color: #FFFFFF;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.header-search-button:hover {
    background: var(--orange-hover);
    transform: translateY(-50%) scale(1.05);
}

/* Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    font-family: inherit;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, #FA5A00 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--orange-hover) 0%, #E65A00 100%);
    box-shadow: 0 8px 22px rgba(255, 107, 0, 0.38);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.btn-dark {
    background-color: var(--black-soft);
    color: #FFFFFF;
}

.btn-dark:hover {
    background-color: var(--black-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--black-soft);
    color: var(--black-soft);
}

.btn-outline:hover {
    border-color: var(--black-soft);
    background-color: var(--black-soft);
    color: #FFFFFF;
}

.btn-outline-orange {
    background-color: transparent;
    border: 1.5px solid var(--orange);
    color: var(--orange);
}

.btn-outline-orange:hover {
    background-color: var(--orange);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--black-soft);
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: var(--black-dark);
}

/* Category Navigation Ribbon */
.nav-ribbon {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-ribbon::-webkit-scrollbar {
    display: none;
}

.ribbon-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ribbon-item {
    padding: 11px 4px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-body);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.ribbon-item:hover, .ribbon-item.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.ribbon-badge {
    background: var(--orange-light);
    color: var(--orange);
    border: 1px solid var(--orange-border);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

.ribbon-badge-soon {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
}

/* Container */
.main-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    min-height: calc(100vh - 380px);
}

/* Flash Alerts */
.flash-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--orange-light);
    color: var(--orange-dark);
    border: 1px solid var(--orange-border);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Badges */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--orange-light);
    color: var(--orange-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--orange-border);
}

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--black-soft);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #374151;
}

.gov-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F0FDF4;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #BBF7D0;
}

.nirf-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #EFF6FF;
    color: #1E40AF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #BFDBFE;
}

/* Hero Banner (Black & Orange) */
.hero-banner {
    background: radial-gradient(circle at 85% 15%, rgba(255, 107, 0, 0.25) 0%, transparent 48%),
                radial-gradient(circle at 10% 85%, rgba(255, 107, 0, 0.12) 0%, transparent 40%),
                linear-gradient(135deg, var(--black-dark) 0%, var(--black-soft) 55%, #1F2937 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 0, 0.22);
    color: #FFFFFF;
    padding: 44px 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 107, 0, 0.15);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: #FFA35B;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.hero-title span {
    color: var(--orange);
}

.hero-hindi {
    font-family: var(--font-hindi);
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF9F55;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.hero-subtitle {
    font-size: 1.02rem;
    color: #E5E7EB;
    max-width: 760px;
    margin: 0 auto 28px;
    font-weight: 400;
    line-height: 1.6;
}

/* Big Omnibox Search Box */
.hero-search-box {
    max-width: 720px;
    margin: 0 auto 20px;
    background: #FFFFFF;
    border-radius: var(--radius-full);
    padding: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 107, 0, 0.3);
    transition: all 0.2s ease;
}

.hero-search-box:focus-within {
    border-color: var(--orange);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 107, 0, 0.25);
}

.hero-search-input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    font-size: 1.02rem;
    font-family: inherit;
    border-radius: var(--radius-full);
    outline: none;
    color: var(--black-soft);
}

.hero-search-btn {
    background: linear-gradient(135deg, var(--orange) 0%, #FA5A00 100%);
    color: #FFFFFF;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, var(--orange-hover) 0%, #E65A00 100%);
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.45);
    transform: translateY(-1px);
}

/* Quick Pills */
.hero-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-pill:hover {
    background: var(--orange);
    color: #FFFFFF;
    border-color: var(--orange);
    transform: translateY(-1px);
}

/* Motto Strip */
.motto-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.motto-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, border-color 0.2s;
}

.motto-card:hover {
    border-color: var(--orange-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.motto-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid var(--orange-border);
}

.motto-text strong {
    display: block;
    font-size: 0.92rem;
    color: var(--black-soft);
}

.motto-text span {
    font-size: 0.78rem;
    color: var(--slate-muted);
}

/* Generic Card Hover Effects */
.oedu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.oedu-card:hover {
    border-color: var(--orange-border);
    box-shadow: 0 10px 25px -4px rgba(255, 107, 0, 0.12);
    transform: translateY(-2px);
}

/* Filter Form Grid */
.filter-form-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 100px;
    gap: 12px;
    align-items: flex-end;
}

/* Footer (Deep Black & Orange) */
.site-footer {
    background-color: var(--black-dark);
    color: #9CA3AF;
    padding: 48px 16px 24px;
    border-top: 4px solid var(--orange);
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-col h3 {
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 6px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--orange);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 9px;
}

.footer-col ul li a {
    color: #9CA3AF;
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: var(--orange);
    padding-left: 3px;
}

.footer-disclaimer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 28px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #D1D5DB;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #6B7280;
}

.footer-bottom a {
    color: #9CA3AF;
}

.footer-bottom a:hover {
    color: var(--orange);
}

/* Mobile Bottom Navigation (PWA Touch Bar) */
.mobile-bottom-nav {
    display: none;
}

/* ===================================================
   RESPONSIVE & MOBILE-FRIENDLY BREAKPOINTS
   =================================================== */

@media (max-width: 992px) {
    .motto-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .header-search-form {
        max-width: 100%;
        width: 100%;
    }
    .filter-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .filter-form-grid button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 74px; /* Space for Mobile Bottom Nav */
    }

    .main-wrapper {
        padding: 16px 12px 32px;
    }

    /* Mobile Header Layout */
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
    }

    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .brand-full-logo {
        height: 38px;
        max-width: 180px;
    }

    .header-actions {
        display: flex;
        gap: 6px;
    }

    .header-actions .btn {
        padding: 7px 12px;
        font-size: 0.78rem;
        min-height: 36px;
    }

    .header-search-form {
        order: 3;
        width: 100%;
    }

    .header-search-input {
        padding: 9px 40px 9px 14px;
        font-size: 0.85rem;
    }

    /* Fixed Mobile Bottom Nav */
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #FFFFFF;
        border-top: 1px solid #E5E7EB;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        height: 62px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #6B7280;
        font-size: 0.68rem;
        font-weight: 700;
        padding: 4px 2px;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: var(--orange);
    }

    .mobile-nav-icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .filter-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-form-grid button {
        grid-column: 1 / -1;
        width: 100%;
        height: 42px;
    }
}

@media (max-width: 640px) {
    .utility-links {
        display: none;
    }

    .top-utility-bar {
        font-size: 0.75rem;
        padding: 5px 12px;
        text-align: center;
    }

    .hero-banner {
        padding: 28px 14px;
        border-radius: var(--radius-md);
        margin-bottom: 24px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    .hero-title {
        font-size: 1.65rem;
        letter-spacing: -0.5px;
        line-height: 1.25;
    }

    .hero-hindi {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hero-search-box {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 8px;
        gap: 8px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }

    .hero-search-input {
        width: 100%;
        padding: 11px 14px;
        font-size: 0.92rem;
        text-align: left;
    }

    .hero-search-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.92rem;
        justify-content: center;
        border-radius: var(--radius-full);
        height: 44px;
    }

    .hero-pills {
        gap: 6px;
    }

    .hero-pill {
        padding: 5px 11px;
        font-size: 0.76rem;
    }

    .motto-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 28px;
    }

    .motto-card {
        padding: 10px;
        gap: 8px;
    }

    .motto-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .motto-text strong {
        font-size: 0.8rem;
    }

    .motto-text span {
        font-size: 0.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
