/* General Styles */
:root {
    --primary-blue: #003366;
    --secondary-pink: #F08080; /* Lebih kuat dari FF C0 CB */
    --accent-yellow: #FFD700;
    --light-gray: #F8F8F8;
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    text-align: center;
}

.section:nth-child(even) {
    background-color: #fff;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

h1 {
    font-size: 3.2em;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-pink);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #002244; /* Darker blue */
}

.btn-accent {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    border-color: var(--accent-yellow);
}

.btn-accent:hover {
    background-color: #e6c200; /* Darker yellow */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Header */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.0em;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo img {
    height: 100px;
    margin-right: 10px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--primary-blue);
    font-weight: 600;
    position: relative;
}

.nav-menu a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-pink);
    bottom: -5px;
    left: 0;
}

.header-btn {
    margin-left: 30px;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 700px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    background: url('https://via.placeholder.com/1920x700?text=Kelas+Bahasa+Jepang+Interaktif') no-repeat center center/cover;
    margin-top: 70px; /* Adjust for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.7), rgba(240, 128, 128, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 3.8em;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta .btn {
    margin: 0 10px;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #fff;
}

.why-choose-us h2 {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-item .icon {
    font-size: 3em;
    color: var(--secondary-pink);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.feature-item p {
    font-size: 0.95em;
    color: #555;
}

/* Programs Section */
.programs-section {
    background-color: var(--light-gray);
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.program-card .program-icon {
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.program-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.program-card p {
    font-size: 0.95em;
    color: #555;
    flex-grow: 1;
}

.program-card ul {
    margin: 20px 0;
    padding-left: 0;
}

.program-card ul li {
    margin-bottom: 8px;
    color: #666;
    display: flex;
    align-items: center;
}

.program-card ul li .fas {
    color: var(--secondary-pink);
    margin-right: 10px;
}

.program-card .btn {
    margin-top: 20px;
    width: 100%;
}

/* Teacher Profile Section */
.teacher-profile {
    background-color: #fff;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.teacher-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.teacher-photo {
    flex-shrink: 0;
    margin-bottom: 20px;
    text-align: center;
}

.teacher-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--secondary-pink);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.teacher-info {
    flex-grow: 1;
    text-align: center;
}

.teacher-info h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.teacher-info p {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #555;
}

.teacher-info h4 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--secondary-pink);
}

.teacher-info ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin: 0 auto;
    max-width: 300px;
}

.teacher-info ul li {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
    color: #666;
}

.teacher-info ul li .fas {
    color: var(--accent-yellow);
    margin-right: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-gray);
}

.testimonial-carousel {
    display: flex; /* Will be managed by JS for carousel effect */
    overflow-x: hidden; /* Hide overflowing cards for JS control */
    position: relative;
    transition: transform 0.5s ease-in-out; /* Smooth slide transition */
    scroll-snap-type: none; /* Disable native scroll snap if using JS carousel */
    justify-content: flex-start; /* Align items to start */
    gap: 20px; /* Gap between cards */
    /* padding-bottom: 20px; /* Space for scrollbar - removed as overflow is hidden */
}

.testimonial-card {
    flex: 0 0 450px; /* Fixed width for each card */
    scroll-snap-align: start;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .stars {
    color: var(--accent-yellow);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--secondary-pink);
}

.testimonial-card .author span {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Gallery Section */
.gallery-section {
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Visi & Misi Section */
.vision-mission-section {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.vision-mission-section h2 {
    color: var(--text-light);
}

.vm-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    text-align: left;
}

.vm-item {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vm-item h3 {
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vm-item h3 .fas {
    margin-right: 10px;
    font-size: 1.2em;
}

.vm-item p, .vm-item ul li {
    color: rgba(255, 255, 255, 0.9);
}

.vm-item ul {
    list-style: disc;
    padding-left: 20px;
}

.vm-item ul li {
    margin-bottom: 8px;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--light-gray);
}

.pricing-table {
    width: 100%;
    overflow-x: auto; /* For responsiveness on small screens */
    margin-bottom: 30px;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table doesn't get too narrow */
}

.pricing-table th, .pricing-table td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.pricing-table th {
    background-color: var(--primary-blue);
    color: var(--text-light);
    font-weight: 600;
}

.pricing-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.pricing-table td {
    color: #555;
}

.pricing-note {
    font-size: 0.9em;
    color: #777;
    margin-top: -15px;
    margin-bottom: 30px;
}

/* FAQ Section */
.faq-section {
    background-color: #fff;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question::after {
    content: '\2b'; /* Plus sign */
    font-family: "Font Awesome 5 Free"; /* For Font Awesome */
    font-weight: 900;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.faq-item.active .faq-question::after {
    content: '\2212'; /* Minus sign */
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; /* Smoother transition */
    background-color: #fff;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed for content */
    padding: 15px 25px 25px;
}

/* Location Section */
.location-section {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.location-section h2 {
    color: var(--text-light);
}

.location-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    text-align: left;
}

.location-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.location-info h3 {
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.location-info h3 .fas {
    margin-right: 10px;
    font-size: 1.2em;
}

.location-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.location-info .btn {
    margin-top: 20px;
    background-color: var(--secondary-pink);
    color: var(--text-light);
    border-color: var(--secondary-pink);
}

.location-info .btn:hover {
    background-color: #d66a6a;
}

.location-map {
    flex: 2;
    min-width: 300px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Section */
.contact-section {
    background-color: #fff;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    text-align: left;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
    color: var(--accent-yellow);
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info p .fas, .contact-info p .fab {
    margin-right: 10px;
    font-size: 1.2em;
    color: var(--secondary-pink);
}

.contact-info a {
    color: var(--text-light);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--accent-yellow);
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 50px 0 20px;
    font-size: 0.95em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-col.logo-col img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: var(--accent-yellow);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-col ul {
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul li a:hover {
    color: var(--text-light);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-pink);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8em;
    }
    h2 {
        font-size: 2em;
    }
    .nav-menu .nav-links {
        display: none;
        position: fixed;
        top: 100px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }
    .nav-menu .nav-links.active {
        display: flex;
    }
    .nav-menu .nav-links li {
        padding: 10px 0;
    }
    .header-btn {
        margin: 20px auto 0;
        display: none; /* Hidden by default */
    }
    .header-btn.active {
        display: block;
    }
    .hamburger-menu {
        display: block; /* Show hamburger */
    }

    .location-content, .contact-content, .vm-content {
        flex-direction: column;
        text-align: center;
    }
    .location-info, .contact-form, .contact-info, .vm-item {
        min-width: unset;
        width: 100%;
    }
    .location-info, .contact-form, .contact-info, .vm-item {
        text-align: center;
    }
    .vm-item ul {
        padding-left: 0;
        text-align: left; /* Keep list items left-aligned */
        margin: 0 auto;
        max-width: 400px; /* Constrain width for better readability */
    }
    .vm-item ul li {
        justify-content: center; /* Center content if list is narrow */
    }
    .location-map {
        height: 300px;
    }
    .testimonial-carousel {
        overflow-x: scroll; /* Re-enable native scroll for smaller screens */
        scroll-snap-type: x mandatory; /* Re-enable snap for native scroll */
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Ensure cards align to start */
        transition: none; /* Disable JS transition when native scroll is active */
        transform: none !important; /* Override JS transform */
    }
    .testimonial-card {
        flex: 0 0 90%; /* Make cards take more width on smaller screens */
        max-width: 450px; /* Max width for consistency */
        margin-right: 20px; /* Keep gap */
    }
    .carousel-nav {
        display: flex; /* Keep navigation buttons visible for manual scrolling */
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 600px;
        margin-top: 60px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .section {
        padding: 60px 0;
    }
    h2 {
        font-size: 1.8em;
    }
    .features-grid, .program-cards, .gallery-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
    }
    .footer-col ul {
        padding-left: 0;
    }
    .social-icons {
        justify-content: center;
    }
    .testimonial-carousel {
        overflow-x: scroll; /* Ensure native scroll is active */
        scroll-snap-type: x mandatory;
    }
    .testimonial-card {
        flex: 0 0 95%; /* Even wider on smaller phones */
    }

    /* Responsive Design Adjustments for Teacher Section */
    .teacher-grid {
        grid-template-columns: 1fr; /* Satu kolom pada layar kecil */
    }
    .teacher-card {
        padding: 25px;
    }
    .teacher-photo img {
        width: 120px;
        height: 120px;
    }
    .teacher-info h3 {
        font-size: 1.6em;
    }
    .teacher-info h4 {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 500px;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .btn-large {
        padding: 12px 25px;
        font-size: 1em;
    }
    .hero-cta .btn {
        display: block;
        margin: 15px auto;
    }
    .testimonial-carousel {
        overflow-x: scroll; /* Ensure native scroll is active */
        scroll-snap-type: x mandatory;
    }
    .testimonial-card {
        flex: 0 0 95%;
    }

    .teacher-card {
        padding: 20px;
    }
    .teacher-photo img {
        width: 100px;
        height: 100px;
    }
    .teacher-info h3 {
        font-size: 1.4em;
    }
    .teacher-info h4 {
        font-size: 1.1em;
    }
}

/* Hamburger Menu Icon Change */
.hamburger-menu .fa-times {
    transform: rotate(90deg);
}

/* Scroll Animations */
/* Initial state: hidden and slightly moved */
.animate-item {
    opacity: 0;
    transform: translateY(20px); /* Slide up effect */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* State when visible */
.animate-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
