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

:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #0f172a;
    --warm-dark: #1e293b;
    --warm-bg: #fefcf6;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--warm-bg);
    color: var(--slate-800);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* ─── HEADER / NAVBAR ─── */
.navbar {
    padding: 0;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    min-height: 56px;
}

.navbar > .container {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.navbar.scrolled {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: contain;
}



.nav-link {
    color: var(--slate-600) !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem !important;
    position: relative;
    transition: all 0.25s ease;
    border-radius: 6px;
    letter-spacing: 0.01em;
}

@media (min-width: 992px) {
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary);
        transition: width 0.25s ease;
        border-radius: 2px;
    }
    .nav-link:hover::after, .nav-link.active::after { width: 70%; }
}

.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

.btn-portal {
    background: var(--primary);
    color: white !important;
    border-radius: 8px;
    padding: 0.45rem 1.1rem !important;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.25s;
    border: none;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-portal:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.portal-dropdown .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--slate-100);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    padding: 0.4rem;
    min-width: 195px;
    margin-top: 8px !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.portal-dropdown:hover .dropdown-menu,
.portal-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.portal-dropdown:hover .bi-chevron-down {
    transform: rotate(180deg);
}

.bi-chevron-down {
    transition: transform 0.25s ease;
}

.portal-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--slate-700);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.15s;
    position: relative;
}

.portal-dropdown .dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
    transform: translateX(3px);
}

.portal-dropdown .dropdown-item i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    color: var(--slate-400);
    transition: color 0.15s;
}

.portal-dropdown .dropdown-item:hover i {
    color: var(--primary);
}

.portal-dropdown .dropdown-divider {
    margin: 0.25rem 0.5rem;
    opacity: 0.5;
}

.navbar-toggler {
    border: none !important;
    padding: 0 !important;
    background: transparent;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark);
    transition: all 0.2s;
}

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

@media (min-width: 992px) {
    .navbar-toggler { display: none; }
}

/* Mobile Menu - Premium Left Drawer */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100dvh;
        padding: 0;
        transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 4px 0 50px rgba(0, 0, 0, 0.08);
        display: block !important;
        z-index: 1050;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
    }

    .navbar-collapse.show { left: 0; }

    .mobile-menu-header {
        padding: 1rem 1.25rem 0.75rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--slate-100);
    }

    .mobile-menu-header img { width: 42px; height: 42px; object-fit: contain; }

    .mobile-menu-close {
        width: 34px; height: 34px; border-radius: 10px; border: none;
        background: var(--slate-100); display: flex; align-items: center;
        justify-content: center; font-size: 1.1rem; color: var(--slate-500);
        cursor: pointer; transition: all 0.2s;
    }

    .mobile-menu-close:hover { background: var(--slate-200); }

    .navbar-nav { padding: 0.75rem 0.5rem; }
    .nav-item { width: 100%; }

    .nav-link {
        padding: 0.85rem 0.75rem !important;
        font-size: 0.93rem; font-weight: 500;
        color: var(--slate-700) !important;
        border-radius: 10px; transition: all 0.2s;
    }

    .nav-link:hover, .nav-link.active {
        background: var(--slate-50);
        color: var(--primary) !important;
    }

    .navbar-nav .btn-portal {
        margin: 0.5rem 0.75rem 1rem;
        text-align: center;
        padding: 0.75rem !important;
        font-size: 0.85rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .mobile-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1045;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .mobile-overlay.show { opacity: 1; pointer-events: auto; }
    body.menu-open { overflow: hidden; }

    .navbar-brand img { width: 64px; height: 64px; }
}

/* ─── HERO ─── */
.hero-section {
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fefcf6 0%, #f0f7ff 50%, #fefcf6 100%);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.78rem;
    margin-bottom: 1.25rem;
}

.btn-hero-primary {
    background-color: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.btn-hero-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    color: white;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.25);
}

.btn-hero-outline {
    background-color: transparent;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-300);
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.btn-hero-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30, 64, 175, 0.04);
    transform: translateY(-1px);
}

/* Blobs */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(30, 64, 175, 0.08);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
}

/* Cards */
.custom-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

.course-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img-wrapper img { transform: scale(1.08); }

.course-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.9);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--warm-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

/* ─── FOOTER ─── */
footer {
    background: #f8fafc;
    border-top: 1px solid var(--slate-200);
    padding: 3rem 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.footer-brand { margin-bottom: 1rem; }

.footer-brand img {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: contain;
}

.footer-brand .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark);
}

.footer-desc {
    color: var(--slate-600);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social-link {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500, #64748b);
    transition: all 0.25s;
    font-size: 0.95rem;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    align-items: flex-start;
}

.contact-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
    border: 1px solid var(--slate-200);
    transition: all 0.25s;
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--slate-200);
}

.footer-bottom .heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@media (max-width: 767.98px) {
    footer { padding: 2.5rem 0 0; }
    .footer-bottom { margin-top: 2rem; }
}

/* ─── SECTION UTILITIES ─── */
.section-padding { padding: 4.5rem 0; }

@media (max-width: 767.98px) {
    .section-padding { padding: 3rem 0; }
    .hero-section { padding: 5.5rem 0 3rem; min-height: auto; }
}

.section-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ─── RESPONSIVE FIXES ─── */
@media (max-width: 575.98px) {
    .display-4 { font-size: 1.9rem; }
    .display-5 { font-size: 1.55rem; }
    .btn-hero-primary, .btn-hero-outline { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
    .custom-card { padding: 1.5rem; }
}

@media (min-width: 576px) {
    .cta-btn-sm { width: auto !important; }
    .hero-btn-primary, .hero-btn-secondary { flex: none !important; padding: 14px 28px !important; font-size: 0.88rem !important; gap: 8px !important; }
}
