:root {
    --primary-color: #4A148C; /* Deep Purple */
    --secondary-color: #FF6F00; /* Vibrant Orange */
    --accent-color: #00BFA5; /* Teal for highlights */
    --text-dark: #212121;
    --text-light: #F5F5F5;
    --bg-light: #FFFFFF;
    --bg-gray: #F9F9F9;
    --border-color: #E0E0E0;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

section {
    padding: 60px 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-light);
}

.btn-primary:hover {
    background-color: #E65100; /* Darker Orange */
    color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

.btn-secondary:hover {
    background-color: #311B92; /* Darker Purple */
    color: var(--bg-light);
}

.btn-full-width {
    width: 100%;
    display: block;
}

/* --- HEADER --- */
.site-header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.logo span {
    line-height: 1.2;
    font-size: 1rem;
}

.main-nav {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.mobile-nav-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    background: url('../images/a-dynamic-chart-showing-stock-market-growth-with-b-0.webp') no-repeat center center/cover;
    position: relative;
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--text-light);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- FEATURED COURSES / COURSE GRID --- */
.featured-courses, .all-courses { background-color: var(--bg-gray); }
.featured-courses h2, .all-courses h2 { text-align: center; }

.course-grid, .course-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.course-card img { height: 200px; object-fit: cover; }
.course-card .card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.course-card h3 { margin-bottom: 0.5rem; }
.course-card p { flex-grow: 1; margin-bottom: 1rem; }
.course-level { display: block; margin-bottom: 1rem; background-color: #E8EAF6; color: var(--primary-color); padding: 5px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: 600; text-align: center; width: fit-content;}

/* --- WHY CHOOSE US --- */
.why-choose-us { text-align: center; }
.features-grid { display: grid; gap: 2rem; margin-top: 2rem; }
.feature-item svg { color: var(--secondary-color); margin-bottom: 1rem; }

/* --- TESTIMONIALS --- */
.testimonials { background-color: var(--bg-gray); text-align: center; }
.testimonial-grid { display: grid; gap: 2rem; margin-top: 2rem; }
.testimonial-card { background-color: var(--bg-light); padding: 2rem; border-radius: 8px; border-left: 5px solid var(--secondary-color); text-align: left; }
.student-info { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.student-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.student-info span { font-size: 0.9rem; }

/* --- FOOTER --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-column h4 { color: var(--secondary-color); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.5rem; }
.footer-column a {
    color: #BDBDBD;
}
.footer-column a:hover {
    color: var(--bg-light);
    text-decoration: underline;
}

.footer-logo { color: var(--bg-light); }
.footer-logo span { font-size: 1.2rem; }

.about-column p, .contact-column p { color: #BDBDBD; margin-top: 1rem; }

.footer-disclaimer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #6A1B9A;
    font-size: 0.8rem;
    color: #BDBDBD;
}
.footer-disclaimer strong { color: var(--bg-light);}

.footer-bottom {
    margin-top: 1.5rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #6A1B9A;
}

/* --- PAGE SPECIFIC STYLES --- */
/* Page Header */
.page-header {
    background-color: var(--bg-gray);
    padding: 40px 0;
    text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }

/* Course Detail Page */
.course-detail-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0;
}
.course-detail-header h1, .course-detail-header span { color: var(--text-light); }
.instructor-info-header { display: flex; align-items: center; gap: 10px; margin-top: 1rem; }
.instructor-info-header img { width: 40px; height: 40px; border-radius: 50%; }
 .course-purchase-card {background: var(--bg-light); color: var(--text-dark); padding: 1.5rem; border-radius: 8px; margin-top: 2rem; box-shadow: 0 8px 16px rgba(0,0,0,0.2);}
.course-purchase-card img { border-radius: 8px; margin-bottom: 1.5rem; }
 .course-purchase-card .price { font-size: 2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 1rem;}
 .course-purchase-card ul { list-style: inside; margin-top: 1.5rem; padding-left: 0; }
 .course-purchase-card li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.course-content-body { padding: 60px 0; }
.learning-outcomes, .lesson-list { list-style: none; }
.learning-outcomes li { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300BFA5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center; padding-left: 35px; margin-bottom: 1rem;}
.module { border: 1px solid var(--border-color); border-radius: 5px; margin-bottom: 1.5rem; }
.module-title { background-color: var(--bg-gray); padding: 1rem; cursor: pointer; }
.lesson-list { padding: 1rem; }
.lesson-list li { padding: 0.5rem 0; border-bottom: 1px dashed var(--border-color); }
.lesson-list li:last-child { border-bottom: none; }
.instructor-bio { background-color: var(--bg-gray); padding: 2rem; border-radius: 8px; margin-top: 3rem; }
.bio-content { display: grid; gap: 1.5rem; }
.instructor-bio img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto; }

/* About Page */
.about-grid { display: grid; gap: 2rem; align-items: center; }
.about-image img { border-radius: 8px; }
.team-section { background-color: var(--bg-gray); text-align: center; }
.team-grid { display: grid; gap: 2rem; margin-top: 2rem; }
.team-member-card { background: var(--bg-light); padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.team-member-card img { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; }
.team-member-card span { color: var(--secondary-color); font-weight: 600; display: block; margin-top: -1rem; margin-bottom: 0.5rem;}

/* Contact Page */
.contact-grid { display: grid; gap: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline-color: var(--secondary-color); }
.map-placeholder img { border-radius: 8px; margin-top: 2rem; }
.contact-item { margin-bottom: 1.5rem; }
.contact-item h3 { margin-bottom: 0.5rem; }

/* Legal Pages */
.legal-content h2 { margin-top: 2rem; }
.legal-content h3 { margin-top: 1.5rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.5rem; }

/* 404 Page */
.error-404-section { padding: 80px 0; text-align: center; }
.error-content h1 { font-size: 8rem; color: var(--secondary-color); margin-bottom: 0; line-height: 1; }
.error-content h2 { font-size: 2.5rem; }
.error-content p { margin-bottom: 2rem; }

/* --- MEDIA QUERIES --- */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    .hero h1 { font-size: 3.5rem; }

    .mobile-nav-toggle { display: none; }
    .main-nav { display: block; }
    .main-nav.active { /* no styles needed for desktop */ }

    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .course-grid-full { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }

    .course-header-content { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: flex-start; }
    .course-purchase-card { margin-top: 0; }

    .bio-content { grid-template-columns: auto 1fr; align-items: center; text-align: left; }
    .instructor-bio img { margin: 0; }

    .about-grid { grid-template-columns: 1fr 1fr; }

    .team-grid { grid-template-columns: repeat(3, 1fr); }

    .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .course-grid { grid-template-columns: repeat(3, 1fr); }
    .course-grid-full { grid-template-columns: repeat(3, 1fr); }
}
