/* =============================================
   ONLING — Main Stylesheet
   Brand: Maroon #6C0002 | White #FFFFFF | Gray #F4F4F4
   Font: Nunito
   ============================================= */

:root {
    --primary: #6C0002;
    --primary-dark: #4a0001;
    --primary-light: #9a0003;
    --accent: #D4A017;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f8f8;
    --border-radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(108,0,2,0.15);
    --transition: all 0.25s ease;
}

/* ===== BASE ===== */
* { box-sizing: border-box; }
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background: #fff;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Nunito', sans-serif; font-weight: 700; }
a { color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* ===== BOOTSTRAP OVERRIDES ===== */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(108,0,2,0.35);
    transform: translateY(-1px);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn { border-radius: 50px; font-weight: 600; transition: var(--transition); }
.btn:active { transform: scale(0.97); }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: #FFF3F3;
    box-shadow: inset 0 -1px 0 rgba(108,0,2,0.1);
}
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(108,0,2,0.2); }
.progress-bar { background-color: var(--primary); }

/* ===== NAVBAR ===== */
#mainNav {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
    transition: var(--transition);
}
.navbar-brand .brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: rgba(108,0,2,0.06);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2c0001 60%, #1a0000 100%);
    position: relative;
    padding: 5rem 0 8rem;
}
.hero-default { background: linear-gradient(135deg, #6C0002 0%, #4a0001 40%, #2c0001 100%); }
.hero-content { position: relative; z-index: 2; padding: 3rem 0; }
.hero-section h1 { text-shadow: 0 2px 20px rgba(0,0,0,0.3); line-height: 1.2; }
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1;
}
.hero-wave svg { width: 100%; height: 100%; }

/* ===== SECTION STYLES ===== */
.section-badge {
    display: inline-block;
    background: rgba(108,0,2,0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== LANGUAGE PILLS ===== */
.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: #f5f5f5;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: var(--transition);
}
.lang-pill:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 12px rgba(108,0,2,0.15);
    transform: translateY(-2px);
}

/* ===== STATS ===== */
.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.stat-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; display: block; }
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; margin-top: 0.3rem; }

/* ===== COURSE CARDS ===== */
.course-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.course-card-image { position: relative; height: 200px; overflow: hidden; }
.course-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.course-card:hover .course-card-image img { transform: scale(1.05); }
.course-placeholder { background: linear-gradient(135deg, var(--primary), #9a0003); height: 100%; width: 100%; }
.course-badges { position: absolute; top: 12px; left: 12px; }
.course-card-body { display: flex; flex-direction: column; height: calc(100% - 200px); }
.course-price { font-size: 1.4rem; font-weight: 800; color: var(--primary); }

/* ===== ABOUT SECTION ===== */
.about-image-wrapper { position: relative; }
.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(108,0,2,0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ===== WHY CARDS ===== */
.why-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.why-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(108,0,2,0.1), rgba(108,0,2,0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

/* ===== NEWSLETTER ===== */
.newsletter-section { background: linear-gradient(135deg, #111, #222); }
.newsletter-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(108,0,2,0.4);
}

/* ===== CTA STRIP ===== */
.cta-strip { background: #f8f8f8; border-top: 1px solid rgba(0,0,0,0.06); }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2c0001 100%);
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* ===== COURSE HEADER ===== */
.course-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a0001 100%);
    position: relative;
}
.text-white-75 { color: rgba(255,255,255,0.75) !important; }
.course-purchase-card { position: relative; z-index: 2; }

/* ===== FILTER CHIPS ===== */
.filter-chip {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: #f5f5f5;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition);
}
.filter-chip:hover, .filter-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== FILTER SIDEBAR ===== */
.filter-card { border-radius: 16px; }

/* ===== FOOTER ===== */
.footer { background: #111; }
.footer-top { background: #111; }
.footer-bottom { background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-heading {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.social-link {
    color: rgba(255,255,255,0.5);
    font-size: 1.3rem;
    transition: var(--transition);
}
.social-link:hover { color: #fff; transform: translateY(-3px); }
.brand-text-light {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
}

/* ===== SOCIAL COLORED ===== */
.social-link-colored {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108,0,2,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}
.social-link-colored:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ===== CONTACT PAGE ===== */
.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(108,0,2,0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.contact-info-item { padding: 1rem; background: #f8f8f8; border-radius: 12px; }

/* ===== TEAM CARDS ===== */
.team-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.team-avatar-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), #9a0003);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ===== COURSE REVIEW ===== */
.review-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.review-card { border-left: 3px solid var(--primary); }

/* ===== LEARN PAGE ===== */
.learn-layout { overflow: hidden; }
.learn-sidebar { display: flex; flex-direction: column; }

/* ===== DASHBOARD ===== */
.min-vh-75 { min-height: 75vh; }

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26,26,26,0.97);
    color: #fff;
    padding: 1rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

/* ===== SUCCESS CIRCLE ===== */
.success-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(40,167,69,0.35);
}

/* ===== LEVEL TEST ===== */
.result-level-badge {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), #9a0003);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 10px 40px rgba(108,0,2,0.35);
}
#answerOptions .btn { text-align: left; }
#answerOptions .btn.btn-success { border-color: #28a745; }
#answerOptions .btn.btn-danger { border-color: #dc3545; }

/* ===== BLOG ===== */
.blog-card { transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover) !important; }
.blog-content { font-size: 1.05rem; line-height: 1.85; }
.blog-content p { margin-bottom: 1.5rem; }
.blog-content h2, .blog-content h3 { margin-top: 2rem; margin-bottom: 1rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.7s ease both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section-title { font-size: 1.7rem; }
    .hero-section { min-height: 80vh; padding: 4rem 0 6rem; }
    .hero-section h1 { font-size: 2rem; }
    .stat-value { font-size: 2rem; }
    .learn-layout { flex-direction: column; }
    .learn-sidebar { width: 100% !important; min-width: unset; max-height: 300px; }
    .about-badge { display: none; }
}

@media (max-width: 576px) {
    .py-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .course-purchase-card { margin-top: 2rem; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== CURSOR ===== */
.cursor-pointer { cursor: pointer; }

/* ===== STICKY LANGUAGE BAR ===== */
.sticky-language-bar { border-bottom: 1px solid rgba(0,0,0,0.06); }
