@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #4E1120;
    --secondary-color: #2C3E50;
    --background-color: #F9F9F9;
    --accent-color: #3498DB;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: #FFFFFF;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    max-height: 80px;
    width: auto;
    margin-left: 10rem;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 1rem;
    margin-right: 15px;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Updated Hero Section Styles */
#hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

#hero > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero > .hero-image-container {
    flex: 1;
    max-width: 50%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

#hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.highlighted-text {
    background-color: #E7D324;
    color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlighted-text p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333333;
}

section {
    margin-bottom: 3rem;
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#features ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

#features ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

#features ul li::before {
    content: '\2714';
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

.course-list {
    list-style-type: none;
    padding-left: 0;
}

.course-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.course-list li i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

#stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

footer {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
}

#contact, #cta {
    text-align: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--secondary-color);
}

.contact-button i {
    margin-right: 0.5rem;
}

.tutoring-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

#faqs {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#faqs h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: #f9f9f9;
    border: none;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-answer {
    background-color: #FFFFFF;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 1rem;
}

.faq-answer p {
    margin: 0;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    #hero {
        flex-direction: column;
        align-items: center;
    }

    #hero > div,
    #hero > .hero-image-container {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    #hero > .hero-image-container {
        height: 300px;
        margin-bottom: 1rem;
    }

    #stats {
        flex-wrap: wrap;
    }

    .stat {
        flex-basis: 50%;
        margin-bottom: 1rem;
    }

    .highlighted-text p {
        font-size: 1.2rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .course-list li {
        margin-bottom: 0.75rem;
    }

    .course-list li i {
        font-size: 1rem;
        width: 1.2rem;
    }

    .faq-question {
        font-size: 0.9rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}