/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --deep-green: #0D530E;
    --deep-green-dark: #0B3F0C;
    --deep-green-soft: rgba(13, 83, 14, 0.05);
    --study-yellow: #E4D329;
    --creative-pink: #FF61F8;
    --energetic-orange: #FF6A1C;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(13, 83, 14, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- GLOBAL RESETS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Overpass', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #FAFAFA;
    color: var(--text-dark);
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.6;
}

/* --- PROGRESS GLOW BAR --- */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: transparent;
    z-index: 10001;
}
#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--study-yellow), var(--creative-pink), var(--energetic-orange));
    box-shadow: 0 0 12px var(--energetic-orange);
}

/* --- GLOBAL UTILITIES & BUTTONS --- */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}
.btn-pink {
    background-color: var(--creative-pink);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 97, 248, 0.4);
}
.btn-pink:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 97, 248, 0.6);
}
.btn-orange {
    background-color: var(--energetic-orange);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 106, 28, 0.4);
}
.btn-orange:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 106, 28, 0.6);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--deep-green);
    color: var(--deep-green);
}
.btn-outline:hover {
    background: var(--deep-green);
    color: var(--text-light);
    transform: translateY(-2px);
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-green { background: rgba(13, 83, 14, 0.1); color: var(--deep-green); }
.badge-pink { background: rgba(255, 97, 248, 0.1); color: var(--creative-pink); }
.badge-orange { background: rgba(255, 106, 28, 0.1); color: var(--energetic-orange); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--deep-green);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- STICKY NAVIGATION --- */
header {
    position: sticky;
    top: 0;
    height: 100px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}
.logo img {
    height: 160px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}
.logo span { color: var(--energetic-orange); }

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    top: -150%;
    font-size: 1.05rem;
    position: relative;
    padding: 8px 0;
    cursor: pointer;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--study-yellow), var(--energetic-orange));
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hamburger Menu */
.hamburger {
    margin-top: -5rem;
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 5px;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--deep-green);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- APP PAGES ROUTING CONTAINER --- */
.page-view {
    display: none;
    animation: fadeIn 0.5s ease-in-out forwards;
}
.page-view.active-page {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HOME HERO SECTION --- */
.hero-section {
    padding: 80px 0 120px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F3F9F3 100%);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: center;
    gap: 40px;
}
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.message-stack h1 {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--deep-green);
}
.message-stack h1 span {
    display: block;
}
.message-stack .stack-1 { color: var(--deep-green); }
.message-stack .stack-2 { color: var(--energetic-orange); }
.message-stack .stack-3 { color: var(--creative-pink); -webkit-text-stroke: 1px #cc49c6; }

.hero-search-box {
    position: relative;
    max-width: 550px;
    margin-top: 15px;
}
.hero-search-box input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border-radius: 50px;
    border: 2px solid rgba(13, 83, 14, 0.15);
    font-size: 1.1rem;
    outline: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.hero-search-box input:focus {
    border-color: var(--deep-green);
    box-shadow: 0 10px 25px rgba(13, 83, 14, 0.15);
}
.hero-search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--deep-green);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-search-box button:hover {
    background: var(--energetic-orange);
    transform: translateY(-50%) scale(1.05);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.chip {
    padding: 8px 20px;
    border-radius: 30px;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.chip:hover {
    transform: translateY(-3px);
    background: var(--study-yellow);
    border-color: var(--study-yellow);
}

.hero-right {
    position: relative;
    height: 450px;
    background: radial-gradient(circle, var(--deep-green) 0%, var(--deep-green-dark) 100%);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.floating-wall {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-content: center;
}
.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.floating-card i {
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.floating-card h3 { font-size: 1.1rem; font-weight: 700; }
.floating-card p { font-size: 0.85rem; opacity: 0.8; }
.card-1 { transform: rotate(-3deg); color: var(--study-yellow); }
.card-2 { transform: rotate(4deg); color: var(--creative-pink); }
.card-3 { transform: rotate(-2deg); color: #4ae0ff; }
.card-4 { transform: rotate(5deg); color: var(--energetic-orange); }
.floating-card:hover {
    transform: scale(1.1) rotate(0deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 10;
}

/* --- SECTION 2: POPULAR COURSES --- */
.courses-section { padding: 100px 0; background: #FFFFFF; }
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.course-card {
    background: #FAFAFA;
    border-radius: 24px;
    padding: 30px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
}
.course-card-top { display: flex; flex-direction: column; gap: 15px; }
.course-meta { display: flex; justify-content: space-between; align-items: center; }
.course-card h3 { font-size: 1.6rem; font-weight: 800; color: var(--deep-green); }
.course-card p { color: var(--text-muted); font-size: 0.95rem; }
.course-action-btn {
    margin-top: 25px;
    font-weight: 700;
    color: var(--deep-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}
.course-card:hover {
    transform: scale(1.04);
    border-color: var(--creative-pink);
    background: white;
    box-shadow: 0 15px 40px rgba(255, 97, 248, 0.15);
}
.course-card:hover .course-action-btn {
    color: var(--energetic-orange);
    gap: 12px;
}

/* --- SECTION 3: DAILY LEARNING PATH (TIMELINE) --- */
.path-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--deep-green-soft) 100%);
    position: relative;
}
.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: dotted var(--deep-green);
    opacity: 0.3;
    transform: translateX(-50%);
}
.timeline-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}
.timeline-step:nth-child(even) { flex-direction: row-reverse; }
.timeline-pointer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 4px solid var(--deep-green);
    border-radius: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--deep-green);
}
.timeline-step:hover .timeline-pointer {
    background: var(--study-yellow);
    transform: translateX(-50%) scale(1.2);
}
.timeline-content {
    width: 45%;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--energetic-orange);
    transition: var(--transition);
}
.timeline-step:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid var(--creative-pink);
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--deep-green);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- SECTION 4: FEATURED VIDEO LESSON --- */
.video-section { padding: 80px 0; background: #FFFFFF; }
.cinematic-block {
    display: grid;
    grid-template-columns: 55% 45%;
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--deep-green-dark) 100%);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    color: white;
}
.video-preview-side {
    position: relative;
    background: url('https://i.pinimg.com/736x/12/0c/4e/120c4efcd2149f86a60fc85c7a166845.jpg') center/cover;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-preview-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--deep-green));
}
.play-btn {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--creative-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 97, 248, 0.6);
    transition: var(--transition);
}
.play-btn:hover {
    transform: scale(1.15);
    background: var(--study-yellow);
    box-shadow: 0 0 30px var(--study-yellow);
}
.video-content-side {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.video-content-side h3 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; }
.video-content-side p { opacity: 0.85; font-size: 1rem; }

/* --- NOTES LIBRARY (PINTEREST STYLE) --- */
.notes-section { padding: 100px 0; background: #FAFAFA; }
.notes-asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 220px;
    gap: 25px;
}
.note-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    perspective: 1000px;
    position: relative;
    transition: var(--transition);
    border-top: 6px solid var(--deep-green);
}
.note-card.size-tall { grid-row: span 2; border-top-color: var(--energetic-orange); }
.note-card.size-wide { grid-column: span 2; border-top-color: var(--creative-pink); }
.note-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.note-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--deep-green); }
.note-card p { font-size: 0.9rem; color: var(--text-muted); }
.note-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow-lg);
}

/* --- PRACTICE ZONE --- */
.practice-section {
    padding: 100px 0;
    background: var(--deep-green);
    color: white;
}
.practice-section .section-header h2 { color: white; }
.practice-section .section-header p { color: rgba(255,255,255,0.7); }
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.practice-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}
.progress-ring-wrap {
    position: relative;
    width: 100px;
    height: 100px;
}
.progress-ring-wrap svg {
    transform: rotate(-90deg);
}
.progress-ring-circle {
    stroke: rgba(255,255,255,0.1);
    stroke-width: 8;
    fill: transparent;
}
.progress-ring-fill {
    stroke-width: 8;
    fill: transparent;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 75.4;
    transition: stroke-dashoffset 1s ease-in-out;
}
.practice-card:nth-child(1) .progress-ring-fill { stroke: var(--creative-pink); stroke-dashoffset: 50; }
.practice-card:nth-child(2) .progress-ring-fill { stroke: var(--study-yellow); stroke-dashoffset: 120; }
.practice-card:nth-child(3) .progress-ring-fill { stroke: var(--energetic-orange); stroke-dashoffset: 30; }
.practice-card:nth-child(4) .progress-ring-fill { stroke: #00ffcc; stroke-dashoffset: 90; }
.progress-value {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1.2rem;
}
.practice-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
}

/* --- SUCCESS STORIES (CAROUSEL-INSPIRED SCROLL) --- */
.success-section { padding: 100px 0; background: white; overflow: hidden;}
.story-scroller {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 40px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.story-scroller::-webkit-scrollbar { display: none; }
.story-card {
    flex: 0 0 380px;
    scroll-snap-align: center;
    background: #FAFAFA;
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 6px solid var(--study-yellow);
}
.student-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}
.student-profile img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--deep-green);
}
.student-info h4 { font-size: 1.15rem; color: var(--deep-green); font-weight: 700; }
.student-score {
    font-size: 0.9rem;
    color: var(--energetic-orange);
    font-weight: 700;
    background: rgba(255, 106, 28, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
}
.story-card p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--deep-green-dark) 100%);
    color: white;
    padding: 80px 0;
}
.newsletter-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.newsletter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 6px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
}
.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 1.05rem;
    border-radius: 50px 0 0 50px;
    width: 100%;
}
.newsletter-form button {
    background-color: var(--study-yellow);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 700;
    padding: 0 35px;
}
.newsletter-form button:hover {
    background-color: var(--text-dark);
    color: white;
}
.newsletter-form input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--deep-green);
}

/* ==========================================================================
   MULTIPAGE SUB-PAGE LAYOUT DESIGNS
   ========================================================================== */

/* --- 1. COURSES PAGE --- */
.catalog-container { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 60px 0 100px 0; }
.filter-sidebar {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.filter-group h4 { font-weight: 700; color: var(--deep-green); margin-bottom: 15px; font-size: 1.1rem; }
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 500;
}
.filter-option input { accent-color: var(--deep-green); width: 18px; height: 18px; }
.course-detail-panel {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
    border-left: 8px solid var(--deep-green);
}
.chapter-list { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #FAFAFA;
    border-radius: 15px;
    font-weight: 600;
    transition: var(--transition);
}
.chapter-item.locked { opacity: 0.6; background: #f1f1f1; }
.chapter-item:hover:not(.locked) {
    background: var(--deep-green-soft);
    transform: translateX(5px);
}

/* --- 2. NOTES PAGE --- */
.notes-page-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 60px 0 100px 0; }
.sticky-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}
.sticky-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sticky-sidebar a { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: 0.2s; }
.sticky-sidebar a:hover, .sticky-sidebar li.active a { color: var(--deep-green); font-weight: 700; }
.document-view {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}
.document-view h2 { font-size: 2.5rem; color: var(--deep-green); margin-bottom: 20px; }
.document-view p { font-size: 1.1rem; color: #444; margin-bottom: 25px; }
.highlight-box {
    background: rgba(228, 211, 41, 0.15);
    border-left: 5px solid var(--study-yellow);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    font-weight: 500;
}

/* --- 3. PRACTICE PAGE --- */
.practice-system {
    max-width: 850px;
    margin: 50px auto 100px auto;
    background: white;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    padding: 45px;
}
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #EEE;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.timer-badge {
    background: rgba(255, 106, 28, 0.1);
    color: var(--energetic-orange);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
}
.quiz-question { font-size: 1.4rem; font-weight: 700; margin-bottom: 25px; color: var(--deep-green); }
.quiz-options { display: flex; flex-direction: column; gap: 15px; }
.option-btn {
    padding: 18px 25px;
    border: 2px solid #EAEAEA;
    border-radius: 15px;
    text-align: left;
    background: white;
    font-size: 1.05rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}
.option-btn:hover { background: #FAFAFA; border-color: var(--deep-green); }
.option-btn.selected { background: var(--deep-green-soft); border-color: var(--deep-green); font-weight: 700; }

/* --- 4. EXAMS PAGE --- */
.exams-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 0 100px 0; }
.exam-panel-card { background: white; padding: 35px; border-radius: 24px; box-shadow: var(--shadow-sm); }
.exam-panel-card h3 { font-size: 1.5rem; color: var(--deep-green); margin-bottom: 25px; font-weight: 800; }
.analytics-chart-mock {
    height: 220px;
    background: #FAFAFA;
    border-radius: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px;
}
.chart-bar {
    width: 45px;
    background: var(--creative-pink);
    border-radius: 8px 8px 0 0;
    transition: var(--transition);
    position: relative;
    display: flex;
    justify-content: center;
}
.chart-bar:nth-child(even) { background: var(--energetic-orange); }
.chart-bar span { position: absolute; top: -25px; font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }
.chart-label { font-size: 0.8rem; text-align: center; margin-top: 8px; font-weight: 600; color: var(--text-muted); }

/* --- 5. BLOG PAGE (EDITORIAL MAGAZINE) --- */
.blog-magazine-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0 100px 0;
}
.blog-post-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.blog-post-card:nth-child(1) { grid-column: span 2; }
.blog-img-wrap { height: 240px; background: #DDD; position: relative; }
.blog-post-card:nth-child(1) .blog-img-wrap { height: 320px; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 30px; display: flex; flex-direction: column; gap: 15px; }
.blog-body h3 { font-size: 1.6rem; color: var(--deep-green); font-weight: 800; line-height: 1.3; }
.blog-body p { color: var(--text-muted); font-size: 0.98rem; }
.blog-post-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

/* Full Insight Modal Style overlay block */
.insight-overlay-view {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1500;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.insight-modal-content {
    background: white;
    max-width: 750px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 28px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.close-modal {
    position: absolute;
    top: 25px; right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: 0.2s;
}
.close-modal:hover { color: var(--energetic-orange); }

/* --- 6. PRIVACY & TERMS --- */
.legal-layout {
    max-width: 900px;
    margin: 60px auto 100px auto;
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}
.legal-layout h2 { color: var(--deep-green); margin-bottom: 25px; font-weight: 800; }
.legal-layout h3 { color: var(--energetic-orange); margin-top: 30px; margin-bottom: 12px; font-weight: 700; }
.legal-layout p { color: #444; margin-bottom: 15px; }

/* --- FLOATING CONTROLS PANEL --- */
#ask-doubt-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}
.doubt-trigger-btn {
    width: 65px;
    height: 65px;
    background: var(--energetic-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(255, 106, 28, 0.4);
    cursor: pointer;
    transition: var(--transition);
}
.doubt-trigger-btn:hover { transform: scale(1.1) rotate(15deg); }
.doubt-panel {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
    flex-direction: column;
}
.doubt-panel-header {
    background: var(--deep-green);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

/* Chat Styles */
.chat-message {
    margin-bottom: 15px;
    display: flex;
}
.chat-message.user {
    justify-content: flex-end;
}
.chat-message.bot {
    justify-content: flex-start;
}
.message-bubble {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.chat-message.user .message-bubble {
    background: var(--deep-green);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-message.bot .message-bubble {
    background: white;
    color: var(--text-dark);
    border: 1px solid #eee;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.chat-message.bot .message-bubble i {
    margin-right: 8px;
    color: var(--energetic-orange);
}

/* Course Modal */
.course-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.course-modal.hidden {
    display: none;
}
.course-modal-content {
    width: 90%;
    max-width: 700px;
    background: #111;
    color: #fff;
    padding: 25px;
    border-radius: 14px;
    position: relative;
    animation: pop 0.2s ease-in-out;
}
.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}
@keyframes pop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.course-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.course-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ddd;
}
.course-form input,
.course-form select,
.course-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #1a1a1a;
    color: #fff;
    outline: none;
}
.submit-btn {
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.submit-btn:hover {
    transform: scale(1.02);
}

/* --- FOOTER --- */
footer {
    background-color: var(--deep-green-dark);
    color: white;
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; color: var(--study-yellow); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.2s; cursor: pointer; }
.footer-col a:hover { color: white; padding-left: 5px; }
.footer-about { display: flex; flex-direction: column; gap: 15px; }
.footer-about p { color: rgba(255,255,255,0.75); max-width: 320px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; cursor: pointer; }
.footer-bottom-links a:hover { color: white; }
.footer-tagline { font-style: italic; color: var(--study-yellow); font-weight: 600; width: 100%; text-align: center; margin-top: 20px; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-search-box { margin: 20px auto 0 auto; }
    .category-chips { justify-content: center; }
    .catalog-container, .notes-page-layout, .exams-dashboard { grid-template-columns: 1fr; }
    .blog-magazine-layout { grid-template-columns: repeat(2, 1fr); }
    .blog-post-card:nth-child(1) { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; z-index: 2000; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; height: 100vh;
        background: white;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.4s ease-in-out;
        z-index: 1999;
    }
    .nav-links.mobile-active { right: 0; }
    .nav-actions { display: none; }
    .timeline::before { left: 20px; }
    .timeline-step { flex-direction: column !important; align-items: flex-start; padding-left: 50px; }
    .timeline-pointer { left: 20px; }
    .timeline-content { width: 100%; }
    .cinematic-block { grid-template-columns: 1fr; }
    .video-content-side { padding: 30px; }
    .blog-magazine-layout { grid-template-columns: 1fr; }
    .blog-post-card:nth-child(1) { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
    .message-stack h1 { font-size: 2.8rem; }
    .newsletter-section .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .newsletter-box {
        padding: 25px !important;
    }
    .newsletter-form {
        flex-direction: column;
        border-radius: 12px !important;
        background: white !important;
    }
    .newsletter-form input {
        border-radius: 12px 12px 0 0 !important;
        padding: 12px !important;
    }
    .newsletter-form button {
        border-radius: 0 0 12px 12px !important;
        padding: 12px !important;
    }
}
