/* Hide scrollbar for Chrome, Safari, and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge, and Firefox */
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #F7FAFC;
    color: #1F4D40;
}

/* Header */
header {
    width: 100%;
    background-color: #81b078;
    color: #fff;
    padding: 10px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

header .logo img {
    width: 120px;
}

header .logo .institute-name {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #E6B422;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    padding: 50px 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    background-color: rgb(45, 110, 188);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #E6B422;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    background: transparent;
    border: 2px solid #E6B422;
    color: #fff;
    padding: 12px 40px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #E6B422;
    color: #1F4D40;
}

/* About */
#about {
    padding: 80px 10%;
    text-align: center;
    background: #E3F2E1;
}

.about-content img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #2D3748;
    padding: 80px 10%;
    text-align: justify;
}

/* Common Section Styles */
#IELTS, #PTE, #Spoken_English, #Skills, #Interview, #Tourism {
    padding: 1px 10%;
    text-align: center;
    background: #E3F2E1;
}

/* Common Content Image Styles */
.IELTS-content img,
.PTE-content img,
.Spoken_English-content img,
.Skills-content img,
.Interview-content img,
.Tourism-content img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
}

/* Common Content Paragraph Styles */
.IELTS-content p,
.PTE-content p,
.Spoken_English-content p,
.Skills-content p,
.Interview-content p,
.Tourism-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #2D3748;
    padding: 80px 10%;
    text-align: justify;
}


/* Courses */
#courses {
    padding: 80px 10%;
    text-align: center;
    background: #E3F2E1;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.courses-grid .card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.courses-grid .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.courses-grid .card h3 {
    margin-bottom: 15px;
    color: #3A7D44;
}

.courses-button {
    margin-top: 40px; 
    text-align: center;
}

.courses-button .btn {
    padding: 12px 35px;
    font-size: 16px;
    background: #3A7D44; 
    border: none;
    color: #fff;
    border-radius: 6px;
}

.courses-button .btn:hover {
    background: #E6B422;
}

/* Testimonials */
#testimonials {
    padding: 80px 10%;
    text-align: center;
    background: #E3F2E1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonials-grid .card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.testimonials-grid .card p {
    font-style: italic;
    margin-bottom: 15px;
}

/* Gallery */
#gallery {
    padding: 80px 10%;
    text-align: center;
    background: #E3F2E1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}
.cgallery-button {
    margin-top: 40px; 
    text-align: center;
}

.gallery-button .btn {
    padding: 12px 35px;
    font-size: 16px;
    background: #3A7D44; 
    border: none;
    color: #fff;
    border-radius: 6px;
}

.gallery-button .btn:hover {
    background: #E6B422;
}

/* Contact */
#contact {
    padding: 80px 10%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #E3F2E1;
}

.contact-left, .contact-right {
    flex-basis: 45%;
}

.contact-left p {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-left i {
    color: #3A7D44;
    margin-right: 10px;
    font-size: 22px;
}

.contact-right form input, 
.contact-right form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #3A7D44;
    font-size: 16px;
}

.contact-right form button {
    background: #3A7D44;
    color: #fff;
    border: none;
    padding: 12px 45px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.contact-right form button:hover {
    background: #E6B422;
}

/* Map Section */
#map-section {
    padding: 60px 10%;
    text-align: center;
    background: #E3F2E1;
}

#map-section h2 {
    font-size: 32px;
    color: #2C5F2D;
    margin-bottom: 25px;
}

.map-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background: #2D3748;
    color: #fff;
    padding: 40px 10%;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu li a:hover {
    color: #E6B422;
}

.footer-socials {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-socials img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.footer-socials img:hover {
    transform: scale(1.2);
}

.footer-contact p {
    margin: 5px 0;
}

.footer-copy {
    margin-top: 20px;
    font-size: 14px;
    color: #A3B18A;
}

.footer-logo img {
    width: 150px;
    max-width: 100%;
    margin-bottom: 15px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
    margin-right: 15px;
}

/* Mobile Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 8;
}

/* MOBILE MENU */
@media (max-width: 768px) {

    header {
        justify-content: flex-start;
        gap: 15px;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: -250px;        /* Hidden initially */
        width: 250px;
        height: 100vh;
        background: #3A7D44;
        flex-direction: column;
        gap: 20px;
        padding-top: 80px;
        transition: left 0.3s ease;
        z-index: 9;
    }

    nav ul.active {
        left: 0;             /* Slide in */
    }

    /* Close when opening submenu */
    nav ul li a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
    }
}

/* Responsive */
@media (max-width: 768px) {

    /* Mobile Nav */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #3A7D44;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 80%;
        margin: 0 auto 20px auto;
    }

    /* Sections */
    #about, #courses, #testimonials, #gallery, #contact {
        padding: 60px 5%;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
        text-align: center;
    }
    header .logo .institute-name {
        font-size: 18px;
    }
}


@media (max-width: 480px) {
    .hero-image {
        width: 90%;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}