body {
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f9f9f9;
    color: #333;
}
a{
    text-decoration: none;
}

.pre-header {
    background-color: #002147;
    color: white;
    padding: 0.5em 0;
    text-align: center;
}

.pre-header-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.pre-header-content span {
    margin: 0.5em;
}

header {
    background-color: #002147;
    color: white;
    padding: 1em 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2em;
}

.logo {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1em;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #002147;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #00142e;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#banner {
    text-align: center;
    padding: 2em 0;
    background-color: #002147;
    margin-top: 0px;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

section {
    padding: 2em;
    text-align: center;
    background-color: white;
    margin: 2em 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#about {
    background-color: #002147;
    color: white;
}

#course-search, #teacher-search {
    width: 80%;
    max-width: 400px;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact-form label {
    margin-top: 1em;
    font-weight: bold;
}

#contact-form input, #contact-form textarea {
    width: 80%;
    max-width: 400px;
    padding: 0.5em;
    margin-top: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact-form button {
    margin-top: 1em;
    padding: 0.5em 1em;
    background-color: #002147;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

footer {
    background-color: #002147;
    color: white;
    text-align: center;
    padding: 2em 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    margin: 1em;
}

.footer-section h3 {
    margin-bottom: 0.5em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 0.5em 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.social-media {
    display: flex;
    justify-content: center;
}

.social-media li {
    margin: 0 0.5em;
}

.social-media li a {
    color: white;
    text-decoration: none;
}

.social-media li a img {
    width: 24px;
    height: 24px;
}

.sub-footer {
    background-color: #00142e;
    padding: 1em 0;
    text-align: center;
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5em 0.5em;
    }

    nav ul li a {
        font-size: 0.8em;
    }

    .grid-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-content img {
        max-width: 80%;
    }

    .about-content .about-text {
        max-width: 80%;
    }
}

.grid-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1em;
}

.course, .teacher, .news-item {
    margin-bottom: 1em;
    text-align: left;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course h3, .teacher h3 {
    margin-top: 0;
}

.course-thumbnail, .teacher-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

.course-details, .teacher-details {
    display: none;
    margin-top: 1em;
    text-align: left;
}

.course-details p, .teacher-details p {
    margin: 0.5em 0;
}

.details-btn, .buy-btn {
    background-color: #002147;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5em 1em;
    cursor: pointer;
    font-weight: bold;
    margin-top: 0.5em;
}

.details-btn:hover, .buy-btn:hover {
    background-color: #00142e;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.about-content img {
    max-width: 40%;
    height: auto;
    margin: 1em;
    border-radius: 8px;
}

.about-content .about-text {
    max-width: 50%;
    text-align: left;
}

.about-content .about-text p {
    margin: 1em 0;
}

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #002147;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
}

#scrollTopBtn:hover {
    background-color: #00142e;
}

.popup {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.popup-content .close:hover,
.popup-content .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-content h2 {
    margin-top: 0;
}

.popup-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

.whatsapp-chatbot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
}

.whatsapp-chatbot img {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.animated-text {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}