/* ===== Reset and Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* ===== Colors ===== */
:root {
    --primary-color: #6c63ff;
    --primary-dark: #5a52d5;
    --secondary-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #6c757d;
    --white-color: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 1px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: 1px solid var(--secondary-color);
}

.btn.secondary:hover {
    background-color: #ff5252;
    border-color: #ff5252;
}

.btn.outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* ===== Header ===== */
header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-weight: 500;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Burger Menu for Mobile */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f8f9fa;
}

/* ===== Popular Courses ===== */
.popular-courses {
    padding: 60px 0;
    background-color: var(--light-color);
}

.popular-courses h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card h3 {
    padding: 20px 20px 10px;
    color: var(--dark-color);
}

.course-card p {
    padding: 0 20px 20px;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.course-card .btn {
    margin: 0 20px 20px;
}

/* ===== Why Choose Us ===== */
.why-choose-us {
    padding: 60px 0;
    text-align: center;
}

.why-choose-us h2 {
    margin-bottom: 40px;
    color: var(--dark-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 60px 0;
    background-color: var(--light-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray-color);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.student-info h4 {
    color: var(--dark-color);
    font-size: 1rem;
}

.student-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== Page Banner ===== */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/page-banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 80px 0;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 1.2rem;
}

/* ===== Course Details ===== */
.course-details {
    padding: 60px 0;
}

.course-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.course-intro p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.course-types h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.course-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-type-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.course-type-card:hover {
    transform: translateY(-5px);
}

.course-type-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-type-card h3 {
    padding: 20px 20px 10px;
    color: var(--dark-color);
}

.course-type-card p {
    padding: 0 20px 10px;
    color: var(--gray-color);
}

.course-type-card ul {
    padding: 0 20px 20px;
    color: var(--gray-color);
}

.course-type-card li {
    margin-bottom: 8px;
}

.course-meta {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    background-color: var(--light-color);
    border-top: 1px solid #eee;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.course-meta i {
    color: var(--primary-color);
}

.course-type-card .btn {
    margin: 0 20px 20px;
}

/* ===== Why Learn Section ===== */
.why-learn {
    padding: 60px 0;
    background-color: var(--light-color);
}

.why-learn h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.why-learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-learn-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.why-learn-card:hover {
    transform: translateY(-5px);
}

.why-learn-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-learn-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.why-learn-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 60px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.faq-item {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* ===== Project Showcase ===== */
.project-showcase {
    padding: 60px 0;
    background-color: var(--light-color);
}

.project-showcase h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px 20px 10px;
    color: var(--dark-color);
}

.project-card p {
    padding: 0 20px 20px;
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-courses h3,
.footer-contact h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-about p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-links ul,
.footer-courses ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-courses a {
    color: #ccc;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-courses a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    color: var(--gray-color);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h3 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin: 0;
}

.contact-form {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Map Section */
.map-section {
    padding: 40px 0;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Newsletter ===== */
.newsletter {
    padding: 60px 0;
    background-color: var(--light-color);
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--gray-color);
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter button {
    padding: 12px 20px;
}

/* ===== Article Categories ===== */
.article-categories {
    padding: 60px 0;
    text-align: center;
}

.article-categories h2 {
    margin-bottom: 40px;
    color: var(--dark-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.category-card {
    background-color: var(--white-color);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== Articles List ===== */
.articles-list {
    padding: 60px 0;
}

.articles-list h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.article-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--light-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 20px;
}

.article-card-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.article-card-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.article-card-content .read-more {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-card-content .read-more:hover {
    color: var(--primary-dark);
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: var(--gray-color);
}

/* ===== Course/Article Filters ===== */
.course-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    /* Header */
    .burger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 15px 0;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Course Grid */
    .course-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Newsletter Form */
    .newsletter form {
        flex-direction: column;
    }

    .newsletter input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 60px 0;
    }

    .page-banner {
        padding: 60px 0;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }
}