/* EDU main platform palette — aligned with edu-platform.org/app_home.php */

:root {
    --primary: #152238;
    --primary-dark: #0B1426;
    --secondary: #F97316;
    --accent: #F97316;
    --yellow: #F59E0B;
    --orange: #F97316;
    --green: #10B981;
    --purple: #1A2942;
    --bg: #F3F2EF;
    --text: #0B1426;
    --text-light: #64748B;
    --shadow: 0 4px 20px rgba(21, 34, 56, 0.12);
    --shadow-lg: 0 8px 40px rgba(21, 34, 56, 0.16);
    --gradient-hero: linear-gradient(135deg, #152238 0%, #1A2942 50%, #0EA5E9 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f7f4 100%);
    --glow: 0 0 40px rgba(21, 34, 56, 0.18);
}

body {
    background: var(--bg);
    color: var(--text);
}

.shape-1 { background: var(--primary); }
.shape-2 { background: var(--secondary); }
.shape-3 { background: var(--accent); }

/* Hero */
.hero-premium {
    background: #F3F2EF;
}

.hero-orb-1 { background: rgba(21, 34, 56, 0.14); }
.hero-orb-2 { background: rgba(249, 115, 22, 0.12); }
.hero-orb-3 { background: rgba(14, 165, 233, 0.14); }

.hero-spark-1 { color: #F97316; }
.hero-spark-2 { color: #152238; }
.hero-spark-3 { color: #0EA5E9; }
.hero-spark-4 { color: #1A2942; }

.hero-pill {
    border-color: rgba(21, 34, 56, 0.12);
    box-shadow: 0 4px 16px rgba(21, 34, 56, 0.08);
}

.hero-premium h1,
.hero-premium--hub h1 {
    color: #0B1426;
}

.hero-gradient {
    background: linear-gradient(135deg, #152238 0%, #0EA5E9 50%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: #64748B;
}

.btn-hero-primary,
.btn.btn-primary {
    background: linear-gradient(135deg, #152238, #1A2942);
    box-shadow: 0 8px 24px rgba(21, 34, 56, 0.28);
}

.btn-hero-primary:hover {
    box-shadow: 0 12px 32px rgba(21, 34, 56, 0.36);
}

.btn-hero-secondary {
    border-color: rgba(21, 34, 56, 0.18);
    box-shadow: 0 4px 16px rgba(21, 34, 56, 0.06);
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    background: #fff;
}

.trust-safe  { background: #E0F2FE; color: #0C4A6E; }
.trust-clean { background: #FFF7ED; color: #9A3412; }
.trust-parent { background: #F1F5F9; color: #1E293B; }
.trust-free  { background: #FFFBEB; color: #92400E; }

/* Inner pages */
.page-hero {
    background: #F3F2EF;
    border-bottom-color: rgba(21, 34, 56, 0.08);
}

.page-hero h1 {
    color: #0B1426;
}

.page-hero p {
    color: #64748B;
}

/* Navbar */
.navbar-premium {
    background: rgba(243, 242, 239, 0.96);
    border-bottom-color: rgba(21, 34, 56, 0.1);
    box-shadow: 0 4px 24px rgba(21, 34, 56, 0.06);
}

.navbar-premium .nav-link.active,
.navbar-premium .nav-dropdown-item.active,
.navbar-premium .nav-dropdown.is-active > .nav-dropdown-toggle {
    color: #fff !important;
}

.navbar-premium .nav-link.active .nav-icon,
.navbar-premium .nav-link.active .nav-chevron,
.navbar-premium .nav-dropdown-item.active .nav-icon,
.navbar-premium .nav-dropdown.is-active > .nav-dropdown-toggle .nav-icon,
.navbar-premium .nav-dropdown.is-active > .nav-dropdown-toggle .nav-chevron {
    color: #fff !important;
}

.filter-tabs-premium .filter-tab.active,
.filter-tabs-premium .filter-tab:hover {
    color: #fff !important;
}

/* أي عنصر نشط بخلفية داكنة — نص وأيقونات بيضاء */
.nav-link.active,
.nav-dropdown-item.active,
.nav-dropdown.is-active > .nav-dropdown-toggle,
.filter-tabs-premium .filter-tab.active,
.filter-tab.active,
.letter-btn.active,
.programs-tab.active,
.learn-pill.active,
.channel-filter.active {
    color: #fff !important;
}

.nav-link.active .nav-icon,
.nav-link.active svg,
.nav-dropdown-item.active .nav-icon,
.nav-dropdown.is-active > .nav-dropdown-toggle .nav-icon,
.nav-dropdown.is-active > .nav-dropdown-toggle .nav-chevron,
.filter-tabs-premium .filter-tab.active svg,
.filter-tab.active svg,
.programs-tab.active svg,
.learn-pill.active svg,
.channel-filter.active svg {
    color: #fff !important;
    stroke: currentColor;
}

.nav-cta,
.nav-child-login,
.nav-login {
    background: linear-gradient(135deg, #152238, #1A2942) !important;
    color: #fff !important;
}

/* Footer — EDU professional */
.footer-premium {
    position: relative;
    background: #0B1426 !important;
    border-top: none;
    margin-top: 4rem;
    padding: 0;
    color: #fff;
    overflow: hidden;
}

.footer-premium,
.footer-premium p,
.footer-premium a,
.footer-premium li,
.footer-premium h4,
.footer-premium .footer-col-title,
.footer-premium .footer-desc,
.footer-premium .footer-tagline,
.footer-premium .footer-copy,
.footer-premium .footer-sub,
.footer-premium .footer-made,
.footer-premium .footer-col a,
.footer-premium .footer-btn,
.footer-premium .footer-trust .footer-badge {
    color: #fff;
}

.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, #152238, #0EA5E9 35%, #F59E0B 65%, #F97316);
}

.footer-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.footer-glow--1 {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -80px;
    background: rgba(14, 165, 233, 0.12);
}

.footer-glow--2 {
    width: 360px;
    height: 360px;
    bottom: -120px;
    left: -60px;
    background: rgba(249, 115, 22, 0.1);
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 1.75rem;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 3rem 3.5rem;
    padding-bottom: 2.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand-panel {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.1rem;
}

.footer-logo:hover {
    opacity: 0.9;
}

.footer-logo-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.footer-logo-icon .mascot-svg {
    width: 46px;
    height: 46px;
}

.footer-logo-text strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-tagline {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.92;
    letter-spacing: 0.02em;
}

.footer-desc {
    margin: 0 0 1.15rem;
    font-size: 0.87rem;
    line-height: 1.8;
    color: #fff;
    opacity: 0.9;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.footer-trust .footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.footer-trust .footer-badge--safe {
    background: rgba(14, 165, 233, 0.22);
    color: #fff;
    border-color: rgba(14, 165, 233, 0.35);
}

.footer-trust .footer-badge--clean {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.footer-trust .footer-badge--free {
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: #fff;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.62rem 1.1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.footer-btn:hover {
    transform: translateY(-1px);
}

.footer-btn--primary {
    background: linear-gradient(135deg, #152238, #1A2942);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.footer-btn--primary:hover {
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
}

.footer-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-premium .icon-svg {
    color: #fff;
    stroke: #fff;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    align-content: start;
}

.footer-col-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.1rem;
    letter-spacing: 0.01em;
    text-transform: none;
}

.footer-col-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5E9, #F97316);
    flex-shrink: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.48rem 0.6rem;
    margin: 0 -0.6rem;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
    opacity: 0.92;
}

.footer-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    flex-shrink: 0;
    transition: background 0.2s;
}

.footer-link-icon .icon-svg {
    color: #fff;
    stroke: #fff;
}

.footer-col a:hover {
    color: #fff;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.footer-col a:hover .footer-link-icon {
    background: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.75rem;
}

.footer-bottom-start {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-copy {
    color: #fff;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 500;
    opacity: 0.88;
}

.footer-sub {
    margin: 0;
    font-size: 0.76rem;
    color: #fff;
    opacity: 0.8;
}

.footer-sub a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-sub a:hover {
    opacity: 1;
}

.footer-made {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 600;
}

.footer-made-flag {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.sudan-flag-icon {
    display: block;
}

@media (max-width: 1024px) {
    .footer-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .footer-container {
        padding: 2.5rem 1.1rem 1.5rem;
    }

    .footer-brand-panel {
        padding: 1.15rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-actions {
        flex-direction: column;
    }

    .footer-btn {
        justify-content: center;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Cards & sections */
.section-pill {
    background: rgba(21, 34, 56, 0.08);
    color: var(--primary);
}

.path-card-premium:hover,
.content-card-premium:hover,
.age-card-premium:hover,
.subject-card-premium:hover {
    box-shadow: 0 16px 40px rgba(21, 34, 56, 0.12);
}

.filter-tabs-premium .filter-tab {
    border-color: rgba(21, 34, 56, 0.14);
}

.filter-tabs-premium .filter-tab.active,
.filter-tabs-premium .filter-tab:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.login-notice,
.login-notice-hero {
    background: linear-gradient(135deg, #FFF7ED, #F3F2EF);
    border-color: rgba(21, 34, 56, 0.12);
}

.level-bar-fill,
.progress-fill {
    background: linear-gradient(90deg, #152238, #0EA5E9, #F97316);
}

.mascot-bubble {
    border-color: rgba(21, 34, 56, 0.12);
}

.parents-cta {
    background: linear-gradient(135deg, #152238 0%, #1A2942 55%, #0B1426 100%);
}

.diploma-home-panel {
    background: linear-gradient(135deg, #152238 0%, #1A2942 100%);
}

.safety-banner-premium {
    background: linear-gradient(135deg, #F3F2EF, #E0F2FE);
    border-color: rgba(21, 34, 56, 0.1);
}
