/* ============================================
   TRUELEARNING WEBSITE - LIGHT THEME
   Professional Light Design with Blue & Yellow Accents
   ============================================ */

/* ============================================
   CSS VARIABLES - COLOR PALETTE
   ============================================ */
:root {
    /* Light Theme Colors */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    
    /* Brand Blue Colors */
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --primary-hover: #2563eb;
    
    /* Yellow Accents for CTAs */
    --yellow: #fbbf24;
    --yellow-dark: #f59e0b;
    --yellow-light: #fde047;
    --yellow-hover: #eab308;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    
    /* Green for Price Tags */
    --green: #10B981;
    --green-hover: #059669;
    --green-light: #34d399;
    
    /* Borders */
    --border-color: #e5e7eb;
    --border-accent: rgba(30, 58, 138, 0.15);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    overflow: visible;
}

/* Prevent horizontal overflow on all sections */
section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Blue Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Yellow Highlight Text */
.yellow-text {
    color: var(--yellow);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Yellow CTA Button */
.btn-primary {
    background: var(--yellow);
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--yellow-hover);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* White Button */
.btn-white {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-white:hover {
    background-color: var(--bg-light);
    border-color: var(--primary);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

#navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100vw;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-6px);
}

.hamburger::after {
    transform: translateY(6px);
}

.mobile-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    background-color: rgba(30, 58, 138, 0.05);
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    background-color: var(--bg-white);
    padding: 4rem 0 2rem;
    overflow: visible;
    width: 100%;
    max-width: 100vw;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0;
}

.white-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 350px;
    flex-shrink: 0;
    overflow: visible;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(15, 15, 15, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-text {
    text-align: center;
    max-width: 48rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 2.5rem;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    width: 3rem;
}

/* ============================================
   SPECIALTY HIGHLIGHTS
   ============================================ */

.highlights-section {
    padding: 3rem 0;
    background-color: var(--bg-white);
    width: 100%;
    max-width: 100vw;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.highlight-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.highlight-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blue-gradient {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.purple-gradient {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
}

.green-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.orange-gradient {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.highlight-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.specialty-section {
    padding: 3rem 0;
    background-color: var(--bg-white);
    width: 100%;
    max-width: 100vw;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.specialty-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.specialty-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}

.specialty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(30, 58, 138, 0.3));
}

.specialty-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.specialty-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   COURSES SECTION
   ============================================ */

.courses-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
    width: 100%;
    max-width: 100vw;
}

.course-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background-color: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(30, 58, 138, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
}

.course-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.15);
}

.course-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.course-price {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.course-content {
    padding: 1.25rem;
}

.course-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.course-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================
   SUCCESS STORIES
   ============================================ */

.stories-section {
    padding: 3rem 0;
    background-color: var(--bg-white);
    width: 100%;
    max-width: 100vw;
}

.stories-carousel {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
}

.story-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    display: none;
}

.story-card.active {
    display: block;
}

.story-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.story-image {
    width: 6rem;
    height: 6rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.2);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.story-achievement {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.story-quote {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.story-rating {
    color: var(--yellow);
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* ============================================
   APP DOWNLOAD SECTION
   ============================================ */

.app-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
    width: 100%;
    max-width: 100vw;
}

.app-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.app-container {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.app-content {
    flex: 1;
}

.app-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-text small {
    font-size: 0.7rem;
    color: rgba(30, 58, 138, 0.7);
}

.store-text strong {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
}

.app-image {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 0.75rem;
}

/* ============================================
   PAGE HEADER (for courses.html and chapters.html)
   ============================================ */

.page-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    padding: 0 1rem;
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.page-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .page-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .page-header {
        margin-bottom: 2.5rem;
    }
}

/* ============================================
   COURSE SELECTION PAGE
   ============================================ */

.course-selection-section {
    padding: 5rem 0 4rem;
    background-color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    width: 100%;
    max-width: 100vw;
    align-items: center;
}

.course-selection-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.course-selection-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.selection-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.course-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-icon-card {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.course-icon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-icon-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(30, 58, 138, 0.15);
}

.course-icon-card:hover::before {
    opacity: 1;
}

.course-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.course-icon-card:hover .course-icon-wrapper {
    transform: scale(1.1);
}

.course-icon-wrapper img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.course-icon-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.course-icon-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.course-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.course-icon-card:hover .course-arrow {
    transform: translateX(8px);
}

.selection-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.selection-footer p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.text-link:hover {
    border-bottom-color: var(--primary);
}

/* Responsive Design for Course Selection */
@media (max-width: 768px) {
    .course-selection-content h1 {
        font-size: 2rem;
    }
    
    .selection-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .course-icons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-icon-card {
        padding: 2rem 1.5rem;
    }
    
    .course-icon-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   CHAPTER SELECTION PAGE
   ============================================ */

.chapter-selection-section {
    padding: 5rem 0 4rem;
    background-color: var(--bg-white);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

.chapter-selection-content {
    max-width: 1200px;
    margin: 0 auto;
}

.chapter-selection-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.chapter-selection-content .selection-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Subject Tabs */
.subject-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.subject-tab {
    padding: 0.75rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    background-color: white;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subject-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.subject-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Chapters Grid */
.chapters-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeIn 0.4s ease;
    width: 100%;
    max-width: 100%;
}

.chapters-grid.active-subject {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapter-card {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 180px;
}

.chapter-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.12);
}

.chapter-icon {
    width: 100px;
    height: 100px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.chapter-card:hover .chapter-icon {
    transform: scale(1.1);
}

.chapter-icon img {
    width: 50%;
    height: 50%;
    object-fit: contain;
}

.chapter-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
}

/* Responsive Design for Chapter Selection */
@media (max-width: 1024px) {
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .chapter-selection-content h1 {
        font-size: 2rem;
    }
    
    .chapter-selection-content .selection-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .subject-tabs {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .subject-tab {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .chapter-card {
        padding: 1.75rem 1.25rem;
        min-height: 160px;
    }
    
    .chapter-icon {
        width: 90px;
        height: 90px;
    }
    
    .chapter-card h3 {
        font-size: 1.05rem;
    }
}

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */

.privacy-section {
    padding: 5rem 0 3rem;
    background-color: var(--bg-white);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 3rem;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.policy-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.policy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-box p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--primary);
    border-top: 1px solid var(--primary-dark);
    padding: 2.5rem 0 1rem;
    width: 100%;
    max-width: 100vw;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    opacity: 0.95;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.625rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--yellow);
    padding-left: 0.25rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--yellow);
    text-decoration: underline;
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-carousel {
        height: 320px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-content {
        flex-direction: row;
        text-align: left;
    }
    
    .story-image {
        flex-shrink: 0;
    }
    
    /* Center footer bottom on tablets */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .legal-links {
        justify-content: center;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .hero-carousel {
        height: 360px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .hero-carousel {
        height: 380px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-carousel {
        height: 280px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .app-card {
        text-align: center;
        padding: 1.5rem;
    }
    
    .app-container {
        flex-direction: column-reverse;
        text-align: center;
        padding: 1.5rem;
    }
    
    .app-content h2 {
        font-size: 1.5rem;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .app-image img {
        max-width: 280px;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .legal-links {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .legal-links a,
    .legal-links .separator {
        font-size: 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ============================================
   EXTERNAL LINK STYLING (WhatsApp, etc.)
   ============================================ */

.external-link {
    color: var(--green);
    transition: color 0.3s ease;
}

.external-link:hover {
    color: var(--green-hover);
}

/* WhatsApp Floating Button (if needed) */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    background: var(--green-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
