/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

:root {
    --primary: #121212;
    --secondary: #bb86fc;
    --accent: #03dac6;
    --dark: #1e1e1e;
    --darker: #0a0a0a;
    --light: #2a2a2a;
    --text: #e0e0e0;
    --text-light: #a0a0a0;
}

html,
body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--primary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 20px;
    color: var(--text);
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary);
    color: var(--darker);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 218, 198, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-size: 2.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Header */
/* Desktop – your original layout stays same */
.top-header {
    background-color: #0b5d20;
    color: var(--text);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--light);
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .top-header .contact-info {
        display: flex;
        flex-wrap: nowrap;
        /* prevent line break */
        gap: 10px;
        white-space: nowrap;
        /* keep phone & email in one line */
        font-size: 12px;
        /* optional: reduce size for mobile */
    }

    .top-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}


/* Icons clean */
.social-links a {
    color: var(--text);
    margin-left: 10px;
    font-size: 14px;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: #ffffff;
}

.social-links a {
    color: var(--text);
    margin-left: 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary);
}

/* Navbar */
.navbar {
    background-color: var(--dark);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--light);
}

.main_wrap {
    position: relative;
    /* required */
    overflow: visible !important;
    /* ensure sticky works */
}


.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

/* Hide the cross icon on desktop always */


.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 0;
    color: var(--text);
}

.nav-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

@media (max-width:<1200px) {
    .close-menu {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(68, 68, 68, 0.904), rgba(0, 0, 0, 0.212)), url('./image/banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text);
    text-align: center;
    padding: 150px 0;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgb(255, 255, 255);
}

.hero .btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 218, 198, 0.3);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 85%;
    height: auto;
    display: block;
}

/* Courses Section */
.courses {
    background-color: var(--dark);
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #ffffff;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(187, 134, 252, 0.2);
}

.course-icon {
    background: linear-gradient(135deg, #703bb1, var(--accent));
    color: var(--darker);
    padding: 20px;
    text-align: center;
    font-size: 30px;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    margin-bottom: 15px;
    color: var(--text);
}

.course-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.course-content ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.course-content ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.fas {
    content: "\f19d";
    color: white;
}

/* Why Choose Us */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #ffffff;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(187, 134, 252, 0.2);
}

.feature i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* Gallery */
.gallery {
    background-color: var(--dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;

}

.gallery-item:hover {
    box-shadow: 0 5px 15px rgba(211, 205, 205, 0.432);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);

}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background-color: var(--light);
    color: var(--text);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #ffffff;
}

.contact-info-card h3 {
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info-card h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 18px;
    margin-top: 5px;
}

.contact-form-card {
    background-color: var(--light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--dark);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    height: 400px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg);
}

/* Footer */
footer {
    background-color: var(--darker);
    color: var(--text);
    padding: 60px 0 20px;
    border-top: 1px solid var(--light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--text);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--text-light);
    border-top: 1px solid #ffffff;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    .about-image img {
        width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 768px) {

    /* Show ONLY phone + email */
    .contact-info {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        /* Allows in one clean row */
        gap: 10px;
        text-align: center;
    }

    /* Hide social icons completely in mobile */
    .social-links {
        display: none;
    }

    /* ensure container stays clean and centered */
    .top-header .container {
        display: flex;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
    }
}
/* Hide close button on Desktop */
.close-menu {
    display: none;
}

/* Show close button only on mobile */
@media (max-width: 768px) {
    .close-menu {
        display: block;
    }
}

/* ================= Responsive Navbar Fix ================= */

@media (max-width: 768px) {

    /* Hide nav links on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark);
        flex-direction: column;
        padding-top: 80px;
        gap: 25px;
        transition: 0.4s ease;
        border-left: 1px solid var(--light);
    }

    /* Show nav links menu */
    .nav-links.active {
        right: 0;
    }


    /* Menu icon */
    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: var(--text);
        z-index: 2000;
    }

    /* Cross icon inside menu */
    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
        display: none;
        color: var(--text);
        display: block;
    }

    .nav-links.active .close-menu {
        display: block;
    }
}



@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }


    .hero {
        padding: 100px 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
}