/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8fafc;
    color: #1f2933;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;   /* makes it sticky */
    top: 0;             /* stick to top */
    z-index: 100;       /* stays above page content */
}

/* Header Logo Layout */
header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header Logo Image */
.header-logo-image {
    width: 50px;
    height: auto;
    object-fit: contain;
}

/* Logo Text */
.logo-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

header nav ul {
    list-style: none;
    display: flex;      /* horizontal for desktop */
    gap: 20px;
}

header nav ul li a {
    color: #1f2933;
    text-decoration: none;
    font-weight: 500;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Hamburger button */
.menu-toggle {
    display: none; /* hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background-color: #1f2933;
    border-radius: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header nav ul {
        display: none; /* hide menu initially */
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 70px;    /* below header */
        right: 20px;
        background: #ffffff;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    header nav ul.show {
        display: flex; /* show menu when toggled */
    }

    header nav ul li a {
        font-size: 18px;
    }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
}

.whatsapp-float img {
    width: 28px;
    height: 28px;
}

/* Hero Section */
.hero-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: auto;
}

.hero-logo {
    max-width: 320px;
    /* scales down */
    width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.hero-section h1 {
    font-size: 36px;
    color: #1f2933;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 10px;
}

.govt-tag {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

/* Explore Courses Button */
.btn-explore-course {
    display: inline-block;
    padding: 14px 32px;
    background-color: #fa6060;
    /* deep red matching logo */
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-explore-course:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 60px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-section p {
    text-align: justify;
    margin: auto;
}

/* Courses Section */
.courses-section {
    padding: 60px 20px;
    background: #f9fbfd;
    text-align: center;
}

.carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.course-card {
    min-width: 260px;
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.course-card span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

/* Members Section */
.members-section {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.members-card {
    background: #f9fbfd;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.members-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2c3e50;
    margin-bottom: 15px;
}

.members-card span {
    font-size: 14px;
    color: #666;
}

.members-card:hover {
    transform: translateY(-5px);
}

/* Gallery Section */
.gallery-section {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.gallery-sub {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
    background: #f9fbfd;
    text-align: center;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.contact-section p {
    color: #555;
    margin-bottom: 20px;
}

.map-container {
    max-width: 1000px;
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

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

.address {
    margin-top: 20px;
    font-size: 15px;
    color: #444;
}

/* Footer */
footer {
    padding: 20px;
    background-color: #333;
    color: white;
    text-align: center;
}

.footer-reg {
    font-size: 13px;
    color: #ccc;
    margin-top: 8px;
}