/* ==========================
   CSS RESET
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 1px solid red; */
}



html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: var(--header-height);
}

:root {
    /* ==========================
    COLORS
 ==========================*/
    --primary-color: #E51B23;
    --dark-color: #4C4D4F;
    --white-color: #FFFFFF;

    /* ==========================
    LAYOUT
 ==========================*/
    --container-width: 1200px;
    --section-padding: 80px;

    /* ==========================
    TYPOGRAPHY
 ==========================*/
    --fs-h1: 48px;
    --fs-h2: 36px;
    --fs-h3: 28px;

    --fs-body: 16px;
    --fs-large: 18px;
}




/* ==========================
   GLOBAL STYLE
========================== */


body {

    font-size: var(--fs-body);
    font-family: "Poppins", sans-serif;
    color: var(--dark-color);
    background-color: var(--white-color);
    line-height: 1.6;

}

/* UPDATE FOR FUTURE REUSE */

section {
    padding: var(--section-padding) 0;
}


.section-title {
    font-size: var(--fs-h2);
    text-align: center;
    margin-bottom: 40px;
}


img {
    max-width: 100%;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}



ul {
    list-style: none;
}




/* ==========================
   CONTAINER
========================== */


.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================
   HEADER / NAVBAR
========================== */


.site-header {

    width: 100%;
    background-color: var(--white-color);
    transition: box-shadow 0.3s ease,
        background-color 0.3s ease;

}






.navbar {

    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;

}



.logo img {

    width: 180px;

}



.nav-menu {

    display: flex;
    gap: 30px;

}



.nav-menu a {

    font-weight: 500;
    transition: 0.3s;

}



.nav-menu a:hover {

    color: var(--primary-color);

}



.nav-button,
.primary-button {

    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    display: inline-block;
    transition: 0.3s;
    transition: all 0.3s ease;

}

.nav-button:hover,
.primary-button:hover {

    opacity: 0.85;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);


}


/* ==========================
   HERO SECTION
========================== */

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background-image: url("../images/hero/japan-mountain.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}



.hero-content {

    flex: 1;

}



.hero-content h1 {
    font-size: var(--fs-h1);
    line-height: 1.2;
    color: var(--dark-color);

    margin-bottom: 20px;

}



.hero-content p {

    font-size: var(--fs-large);
    margin-bottom: 30px;

}



.hero-image {
    flex: 1;

}



.hero-image img {

    width: 100%;
    max-width: 500px;
    margin-left: auto;

}


/* ==========================
   ABOUT SECTION
========================== */


.about-section .container {

    display: flex;
    align-items: center;
    gap: 60px;

}



.about-image,
.about-content {

    flex: 1;

}



.about-image img {

    width: 100%;
    border-radius: 10px;

}



.about-content h2 {

    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);

}



.about-content p {

    font-size: 17px;

}



/* ==========================
   WHY CHOOSE SECTION
========================== */


/* .why-section {

    padding: var(--section-padding) 0;

} */



.why-section h2 {

    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;

}



.why-cards {

    display: flex;
    gap: 30px;

}



.why-card {

    flex: 1;
    padding: 35px 25px;
    background-color: #f8f8f8;
    text-align: center;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
    transition: all 0.3s ease;

}

.why-card:hover,
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);

}


/* ==========================
   COURSES SECTION
========================== */


/* .courses-section {

    padding: var(--section-padding) 0;

} */



.courses-section h2 {

    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;

}



.course-container {
    display: flex;
    justify-content: center;
    gap: 40px;

}



.course-card {

    width: 100%;
    padding: 40px 30px;
    background-color: var(--white-color);
    border: 1px solid #eeeeee;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    transition: all 0.3s ease;

}





.course-card h3 {

    font-size: var(--fs-h3);
    margin-bottom: 15px;
    color: var(--primary-color);

}



.course-card p {

    font-size: 16px;

}

/* ==========================
   ADMISSION SECTION
========================== */

/* 
.admission-section {

    padding: var(--section-padding) 0;

    text-align: center;

} */



.admission-section h2 {

    font-size: 36px;
    margin-bottom: 40px;

}



.admission-section img {

    max-width: 100%;
    margin: 0 auto;

}


/* ==========================
   GALLERY SECTION
========================== */


/* .gallery-section {

    padding: var(--section-padding) 0;

} */



.gallery-section h2 {

    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;

}



.gallery-container {
    overflow: hidden;
}

.gallery-container img {

    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .4s ease;
}

.gallery-container:hover img {
    transform: scale(1.08);
}

/* ==========================
   CONTACT SECTION
========================== */

/* 
.contact-section {

    padding: var(--section-padding) 0;

    text-align: center;

} */



.contact-section h2 {

    font-size: 36px;
    margin-bottom: 30px;

}



.contact-info {

    font-size: var(--fs-large);
    line-height: 2;

}


/* ==========================
   FOOTER
========================== */


.site-footer {

    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 30px 0;
    text-align: center;

}


/* ==========================
   HAMBURGER STYLE
========================== */



.menu-toggle {
    display: none;
}

.menu-toggle span {

    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s ease;
}

.toggle-button {
    border: none;
    background-color: transparent;
}





/* ==========================
   Tablet
========================== */

@media (max-width: 992px) {

    :root {
        --fs-h1: 42px;
        --fs-h1: 32px;
        --fs-h1: 24px;

        --section-padding: 70px;
    }
}


/* ==========================
   Mobile
========================== */

@media (max-width: 768px) {

    :root {
        --fs-h1: 34px;
        --fs-h1: 28px;
        --fs-h1: 22px;

        --section-padding: 60px;
    }

    /*========= Navbar Responsive ==========*/

    .nav-button {
        display: none;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
        padding: 20px 10;
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        display: none;
    }


    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        padding: 25px 0;
        text-align: center;
        background-color: #fff;
        z-index: 999;
    }


    /*========= Hero Responsive ==========*/
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        margin: 0 auto;
        max-width: 350px;
    }

    .hero-section {
        padding: 60px 0;

    }

    .menu-toggle {
        display: block;
    }


}


/* ==========================
   Small Mobile
========================== */

@media (max-width: 576px) {


    :root {
        --fs-h1: 30px;
        --fs-h1: 24px;
        --fs-h1: 20px;

        --section-padding: 50px;
    }


    .why-cards {

        flex-direction: column;
        align-items: center;

    }

    .course-container {
        flex-direction: column;
        align-items: center;
    }


    .about-section .container {
        flex-direction: column;
        align-items: center;
        text-align: center;

    }


}



/* ==============================================================
   FOR - JAVASCRIPT
============================================================== */

.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 50;
}

.sticky-active {
    padding-top: var(--header-height);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


.nav-menu a.active {
    color: var(--primary-color);

}