/* RESET */
* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
}


body {
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* COLORS */
:root {
    --primary: #F5B12D;
    --secondary: #F28C28;
    --accent: #E86F1E;
    --dark: #2F2F2F;
    --light: #F5F5F5;
    --white: #ffffff;
}


/* NAVBAR */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    width: 55px;
}

/* NAV */
nav {
    display: flex;
}

nav a {
    color: var(--white);
    margin: 0 12px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* HERO SECTION (FIXED) */
.hero {
    position: relative;
    height: 90vh; 
    /* max-width: 1700px; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* margin: auto; */
}

/* overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(161, 161, 161, 0.5);
    /* better visibility */
    z-index: 1;
}

/* content */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    margin: 5px 0;
}

.hero button {
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: var(--dark);
    transition: 0.3s;
}

.hero button:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.05);
}

/* SECTIONS */
section {
    padding: 60px 20px;
    text-align: center;
    background: var(--light);
}

section:nth-child(even) {
    background: var(--white);
}

h2 {
    margin-bottom: 20px;
    color: var(--secondary);
}

/* LIST */
ul {
    list-style: none;
}

ul li {
    padding: 10px;
    font-size: 17px;
}

/* COURSE SECTION */
#course {
    padding: 60px 20px;
    background: #f9f9f9;
}

#course h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary);
}

/* GRID */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

/* CARD */
.course-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.course-card a{
    text-decoration: none;
}

/* ICON */
.course-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* TITLE */
.course-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* TEXT */
.course-card p {
    font-size: 14px;
    color: #555;
}

/* HOVER EFFECT */
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #F5B12D, #F28C28);
    color: white;
}

.course-card:hover h3,
.course-card:hover p {
    color: white;
}

/* GALLERY */
/* .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

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

.gallery-grid img:hover {
    transform: scale(1.05);
} */

/* ABOUT */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

.about-img img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    display: block;
}

.about-text {
    flex: 1;
    text-align: left;
}

/* LOCATION */
iframe {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    border: none;
    max-width: 1100px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: auto;
}

input,
select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--primary);
}

/* BUTTON */
button {
    padding: 12px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background: var(--accent);
}

/* POPUP BACKGROUND */
/* .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
} */

/* SHOW POPUP */
/* .popup.active {
    visibility: visible;
    opacity: 1;
} */

/* POPUP BOX */
/* .popup-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    animation: scaleUp 0.3s ease;
}

.popup-box h2 {
    color: #F5B12D;
    margin-bottom: 10px;
}

.popup-box button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #F28C28;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
} */


#popup {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;

    background: rgba(0, 0, 0, 0.7);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999999 !important; /* 🔥 VERY HIGH */
}

#popup.active {
    display: flex !important;
}

.popup-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;

    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
/* ANIMATION */
@keyframes scaleUp {
    from {
        transform: scale(0.7);
    }

    to {
        transform: scale(1);
    }
}

/* FOOTER */
/* FOOTER */
.footer {
    background: #0a0a0a;
    color: #ccc;
    padding: 60px 20px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

.footer-box h2,
.footer-box h3 {
    color: #F28C28;
    margin-bottom: 15px;
}

.footer-box p {
    line-height: 1.6;
    font-size: 14px;
}

.footer-box a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer-box a:hover {
    color: #F28C28;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    border-radius: 50%;
    color: #ccc;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #F28C28;
    color: #000;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

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

    .hero {
        height: 45vh;
    }

    nav {
        display: none;
        flex-direction: column;
        background: var(--dark);
        position: absolute;
        top: 70px;
        right: 0;
        width: 220px;
        border-radius: 5px;
    }

    nav a {
        padding: 12px;
        border-bottom: 1px solid #444;
    }

    nav.active {
        display: flex;
    }


    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

}

/* CAROUSEL */
.carousel {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slides img {
    width: 100%;
    flex-shrink: 0;
}

/* BUTTONS */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* LAST IMAGE BOX */
.more-box {
    position: relative;
    cursor: pointer;
}

/* OVERLAY */
.more-box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
}

/* HOVER EFFECT */
.more-box:hover .overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* GRID */
.gallery-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

/* IMAGE STYLE */
.gallery-box img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-box img:hover {
    transform: scale(1.05);
}

/* 📱 MOBILE */
@media (max-width: 600px) {
    .gallery-box {
    grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-box img {
        height: auto;
    }
}

/* 📲 TABLET */
@media (min-width: 601px) and (max-width: 1024px) {
    .gallery-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-box img {
        height: 240px;
    }
}


/* MORE BOX */
.more-box {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.9);

    display: flex;
    justify-content: center;
    align-items: center;

    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

/* CLOSE BUTTON */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

/* SCROLL TOP  */

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    
    background: #ff9800;
    color: white;
    border: none;
    outline: none;
    
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    font-size: 20px;
    cursor: pointer;
    
    display: none;
    transition: 0.3s;
}

#scrollTopBtn:hover {
    background: #e68900;
    transform: scale(1.1);
}

/* LOADER BACKGROUND */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 999999;
}

/* SHOW */
.loader.active {
    display: flex;
}

/* SPINNER */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #F5B12D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}