/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff; /* Vibrant Blue */
    --secondary-color: #6c757d; /* Muted Gray */
    --accent-color: #ffc107; /* Gold/Yellow for highlights like stars */
    --dark-color: #343a40; /* Dark text */
    --light-color: #f8f9fa; /* Light background */
    --white-color: #ffffff;
    --gray-bg: #f2f4f8; /* A subtle light gray for sections */
    --border-color: #e9ecef; /* Light border */

    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;

    --max-width: 1200px;
    --section-padding: 80px 0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* Darker primary on hover */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--dark-color);
}

p {
    margin-bottom: 1em;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--gray-bg);
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #0056b3; /* Darker primary */
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #5a6268; /* Darker secondary */
    color: var(--white-color);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* --- Section Titles --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* --- Header --- */
.main-header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.main-header .logo a {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}


/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/image_12.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    min-height: 80vh; /* Make it take more viewport height */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 1;.9;
}

.hero-content .btn {
    margin: 0 10px;
}

/* --- Features Section --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.feature-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* --- Courses Section --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.course-card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    flex-grow: 1;
}

.course-info .instructor {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.course-info .instructor i {
    margin-right: 5px;
    color: var(--primary-color);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.course-meta span i {
    margin-right: 5px;
    color: var(--accent-color);
}

.course-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.course-card .btn {
    align-self: flex-start; /* Align button to start in flex column */
}

/* --- Instructors Section --- */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.instructor-card {
    background-color: var(--white-color);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.instructor-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
}

.instructor-card h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.instructor-card .expertise {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.instructor-card .social-links a {
    color: var(--dark-color);
    margin: 0 8px;
    font-size: 1.2rem;
}

.instructor-card .social-links a:hover {
    color: var(--primary-color);
}

/* --- Testimonials Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.testimonial-card .quote::before {
    content: "\201C"; /* Left double quotation mark */
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 0;
    display: block;
    margin-bottom: 10px;
    text-align: center;
}


.testimonial-card .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: auto; /* Push author to the bottom */
}

.testimonial-card .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.testimonial-card .author h5 {
    font-size: 1.1rem;
    margin: 0;
}

.testimonial-card .author span {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
}

.cta-section h2 {
    font-size: 3rem;
    color: var(--white-color);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 1;.9;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--white-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col .logo a {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-col ul {
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col .social-links a {
    color: var(--white-color);
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-col .social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.6);
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide nav by default on smaller screens - typically a hamburger menu would replace this */
    }

    .main-header .container {
        flex-wrap: wrap; /* Allow header items to wrap */
        justify-content: center;
        gap: 20px;
    }

    .main-header .logo {
        flex-basis: 100%; /* Logo takes full width */
        text-align: center;
        margin-bottom: 10px;
    }


    .hero-content h2 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .course-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
        min-height: 60vh;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn-large {
        padding: 10px 20px;
        font-size: 1rem;
        margin: 10px 5px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .feature-grid, .instructor-grid, .testimonial-grid {
        grid-template-columns: 1fr; /* Stack columns on very small screens */
    }
    
    .course-grid {
        grid-template-columns: 1fr; /* Stack course cards on mobile */
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 10px 0;
    }
    .main-header .logo {
        font-size: 1.5rem;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .hero-content .btn {
        display: block;
        margin: 10px auto;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .course-info h4 {
        font-size: 1.1rem;
    }
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .instructor-card {
        padding: 20px 10px;
    }
    .testimonial-card .quote {
        font-size: 1rem;
    }
    .testimonial-card .author {
        flex-direction: column;
        gap: 5px;
    }
}
/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
