/* Global styles */
body {
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #FAF5F0;
}

header {
    background-color: #F48C4A;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: padding-bottom 0.3s ease;
}

/* Logo and title styles */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Fixed height for logo */
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px;
}

.logo span {
    font-weight: bold;
    color: white;
}

/* Centering the nav items */
nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    font-weight: 700;
    color: white;
}

/* Language image size adjustment */
nav ul li img {
    height: 30px; /* Fixed height for language flag */
    width: auto; /* Maintain aspect ratio */
}

/* Toggle button styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px; /* Position toggle button on the right */
    top: 50%; /* Align it vertically center with logo and text */
    transform: translateY(-99%); /* Center the toggle button */
    z-index: 2;
}

.nav-toggle span {
    background-color: black;
    height: 3px;
    margin: 5px 0;
    width: 25px;
    transition: transform 0.3s ease;
}

/* Media Query for small screens */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex; /* Show the toggle button on small screens */
    }

    header {
        flex-direction: column; /* Stack logo and nav vertically */
    }

    .logo {
        margin-bottom: 10px; /* Add some space between logo and nav */
        margin-right: 120px;
        margin-top: 5px;
        top: 10%;
    }

    nav {
        display: block; /* Stack nav vertically */
        width: 100%;
        position: relative;
    }

    nav ul {
        display: none; /* Hide the links by default */
        flex-direction: column; /* Stack links vertically */
        width: 100%;
        background-color: #F48C4A;
        position: relative;
        padding: 10px 0;
        z-index: 1;
        max-height: 0; /* Initially hide the dropdown */
        opacity: 0; /* Initially hide the dropdown */
    }

    nav ul.show {
        display: flex; /* Show the links when toggled */
        max-height: 200px; /* Allow enough height for the dropdown */
        opacity: 1; /* Show the dropdown */
    }

    nav ul li {
        margin: 10px 0;
        text-align: center; /* Center the links */
    }

    header.open {
        padding-bottom: 200px; /* Adjust padding to fit the open menu */
    }
}

/* Reset styles for larger screens */
@media (min-width: 769px) {
    .nav-toggle {
        display: none; /* Hide the toggle button on larger screens */
    }

    header {
        flex-direction: row; /* Align items horizontally */
        padding-bottom: 10px; /* Reset padding for larger screens */
    }

    nav {
        display: flex;
        justify-content: center; /* Center nav items */
    }

    nav ul {
        display: flex; /* Ensure the links are visible */
        flex-direction: row; /* Ensure links are in a row */
        position: static; /* Position the nav normally */
        width: auto;
        background-color: transparent;
        max-height: none; /* Remove max-height restriction */
        opacity: 1; /* Ensure visible on larger screens */
    }

    nav ul li {
        margin: 0 20px;
        text-align: left; /* Reset alignment */
    }
}


/* Welcome section */
#welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFEDE9;
    padding: 30px 40px;
    border-radius: 30px;
    margin: 30px;
    position: relative;
    border: 1px solid #F48C4A;
    overflow: hidden;
}

.welcome-text {
    max-width: 80%;
}

.welcome-text h1 {
    font-size: 32px;
    font-family: 'Merriweather', serif;
    color: #533535;
}

.welcome-text p {
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    color: #533535;
}

.welcome-text button {
    padding: 20px 20px;
    background-color: #3E4997;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.welcome-image {
    position: relative;
    width:50%; /* Ensure the image container takes up 50% of the section */
    display: flex; /* Use flex to align content */
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
}

.welcome-image img {
    border-radius: 0px;
    max-width: 100%; /* Make image fill its container */
    height: auto;
    position: relative;
    z-index: 10;
    display: block; /* Remove any inline spacing */
    margin: 0; /* Remove default margin */
}

.welcome-image::before {
    content: '';
    background-color: #F48C4A;
    width: 300px; /* Adjusted circle size */
    height: 300px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Courses section */
#courses {
    text-align: center;
    padding: 20px;
    background-color: #FAF5F0;
}

.courses-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.course {
    background-color: white;
    padding: 20px;
    border-radius: 25px;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #F48C4A; /* Add border */
}

.course:hover {
    transform: translateY(-5px);
}


.course img {
    width: 100%;
    height: auto;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin: 0;
}

.course h3 {
    font-size: 24px;
    font-family: 'Merriweather', serif;
    color: #533535;
    margin: 10px 0;
}

.course p {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #533535;
}

.course button {
    padding: 10px 20px;
    background-color: #3E4997;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

/* Testimonials section */
#testimonials {
    text-align: center;
    padding: 20px;
    background-color: #FAF5F0;
}

.testimonials-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.testimonial {
    background-color: #E8F0FF;
    padding: 20px;
    border-radius: 15px;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #3E4997; /* Add blue border */
}

.testimonial img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimonial p {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #533535;
}

.testimonial span {
    display: block;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #3E4997;
    margin-top: 10px;
}

/* FAQ section */
#faq {
    text-align: center;
    padding: 20px;
    background-color: #FAF5F0;
    max-width: 800px; /* Center align section */
    margin: 0 auto; /* Center align section */
}

.faq-item {
    background-color: #FFEDE9;
    border-radius: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #F48C4A;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    padding: 15px 20px;
    font-size: 20px;
    font-family: 'Merriweather', serif;
    color: #533535;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '▼';
    font-size: 14px;
    color: #533535;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #533535;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Ensure it fits the content */
    padding: 15px 20px;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}


/* Footer section */
footer {
    background-color: #F48C4A; /* Orange background */
    color: white; /* Blue text for entire footer */
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-around;
    flex-wrap: wrap;
}

footer h4 {
    font-size: 18px;
    font-family: 'Merriweather', serif;
    margin-bottom: 10px;
    color: white; /* Blue text for headings */
}

footer p, footer ul {
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 5px;
}

footer ul li a {
    text-decoration: none;
    color: white; /* Blue text for links */
    transition: color 0.3s ease;
    font-weight: bol;
}

footer ul li a:hover {
    color: #FFFFFF; /* Change to white on hover for contrast */
}

.contact-info, .quick-links, .legal, .social-media {
    flex: 1;
    min-width: 200px;
    padding: 10px;
}
