/* =========================================
   Project: Goya Labs Juku
   Theme: Green Nature Tech
   File: juku.css
   ========================================= */

:root {
    --primary-green: #2E7D32;
    --light-green: #E8F5E9;
    --accent-yellow: #FFD54F; /* For promos */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --brand-dark-green: #1B5E20;
    --brand-light-green: #69F0AE;
    --brand-accent-blue: #40C4FF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f9fdf9; /* Very faint green tint background */
}

/* =========================================
   Navigation
   ========================================= */
nav {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Increased gap for cleaner look */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1rem;
    position: relative; /* Needed for the underline effect */
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Hover Color */
.nav-links a:hover {
    color: var(--primary-green);
}

/* Animated Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-green); /* Match theme color */
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%; /* Expands the line on hover */
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    background: linear-gradient(rgba(0, 50, 0, 0.5), rgba(0, 50, 0, 0.7)), url('images/juku_back.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px 100px;
    border-radius: 0 0 50% 50% / 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-promo-box {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.4);
}

.hero-promo-text {
    color: #FFF9C4; /* Light yellow text */
    font-weight: bold;
}

.cta-button {
    background-color: #FF7043; /* Orange accent */
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* =========================================
   Common Section Styles
   ========================================= */
section {
    padding: 60px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.bg-white {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 40px;
    font-weight: bold;
}

/* =========================================
   Teachers Section (Updated for 2 Teachers)
   ========================================= */
.teacher-profile {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 30px;
    align-items: flex-start; /* Align to top */
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 40px; /* Space between teachers */
}

.teacher-img {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
}

.teacher-img-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Circle shape */
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    overflow: hidden; /* Clips the photo to circle */
    border: 5px solid var(--light-green);
}

.teacher-bio {
    flex: 2;
    min-width: 300px;
}

.teacher-bio h2 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.bio-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
}

/* =========================================
   Courses Grid
   ========================================= */
.course-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    flex: 1 1 300px; /* Flex basis for responsive width */
    max-width: 400px; /* Prevent excessive stretching */
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-img-placeholder {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 20px;
    text-align: center;
}

.course-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

/* Button Styling */
.course-btn {
    display: inline-block;
    margin-top: auto;       /* Pushes button to bottom of flex container */
    align-self: flex-end;   /* Pushes button to the right */
    
    background-color: var(--primary-green);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;    /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    border: 2px solid var(--primary-green);
}

/* Button Hover Animation (The "Cool" Part) */
.course-btn:hover {
    background-color: white;
    color: var(--primary-green);
    transform: scale(1.1) rotate(-2deg); /* slight grow and tilt */
    box-shadow: 0 0 15px var(--accent-yellow); /* Gold Glow */
}

/* =========================================
   Pricing Cards (Fees)
   ========================================= */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--white);
    border-radius: 2vw; /* Scalable curves */
    box-shadow: var(--shadow);
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 480px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.15);
    border-color: var(--brand-light-green);
}

.card-header h3 {
    color: var(--primary-green);
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 15px;
    width: 100%;
    display: block;
}

.card-price {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 10px 0;
    line-height: 1;
}

.card-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: 5px;
}

.card-price .period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
    margin-left: 5px;
}

.card-reg-fee {
    background: var(--light-green);
    color: var(--brand-dark-green);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: bold;
    margin: 15px auto 25px;
    display: inline-block;
}

.card-features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: left;
    padding: 0 10px;
}

.card-features li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #555;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.card-features li::before {
    content: '✔';
    color: var(--primary-green);
    margin-right: 10px;
    font-weight: bold;
}

.card-badge {
    background: #FFF9C4; /* Light Yellow */
    border: 2px solid #FFD54F;
    color: #F57F17; /* Darker Orange/Gold */
    padding: 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.5;
}

/* --- 5-Tier Responsiveness for Pricing --- */

/* 1. Large Monitor (min-width: 1200px) */
@media (min-width: 1200px) {
    .pricing-grid { gap: 50px; }
    .pricing-card { padding: 40px; border-radius: 1.5vw; }
    .card-price { font-size: 3.2rem; }
}

/* 2. Laptop/Desktop (max-width: 1199px) */
@media (max-width: 1199px) {
    .pricing-grid { gap: 30px; }
    .card-price { font-size: 2.8rem; }
}

/* 3. Tablet (max-width: 1023px) */
@media (max-width: 1023px) {
    .pricing-grid { gap: 20px; }
    .pricing-card { min-width: 45%; } /* Ensure side-by-side fits */
}

/* 4. Large Phone (max-width: 767px) */
@media (max-width: 767px) {
    .pricing-grid { flex-direction: column; align-items: center; }
    .pricing-card { width: 100%; max-width: 100%; margin-bottom: 20px; border-radius: 15px; }
    /* Fix Text Overflow for Cards */
    .card-header h3,
    .course-btn {
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* 5. Small Phone (max-width: 480px) */
@media (max-width: 480px) {
    .card-price { font-size: 2.2rem; }
    .card-header h3 { font-size: 1.4rem; }
    .pricing-card { padding: 20px; border-radius: 20px; }
    .card-reg-fee { font-size: 0.85rem; padding: 6px 15px; }
    .card-features li { font-size: 0.95rem; }
}

/* =========================================
   Location & Map
   ========================================= */
.map-placeholder {
    width: 100%;
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--light-green);
}

/* The actual image class for the new GLmap.png */
.map-image {
    width: 100%;
    height: auto;
    display: block;
}

.contact-box {
    margin-top: 50px;
    text-align: center;
    background: var(--light-green);
    padding: 30px;
    border-radius: 15px;
}

.contact-info {
    font-size: 1.3rem;
    margin: 20px 0;
    line-height: 1.8;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 20px;
    font-size: 0.4rem;
    color: #aaa;
}

.footer-policy {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #ccc;
}

/* =========================================
   Modals & Popups
   ========================================= */

/* =========================================
   Floating Promo Banner
   ========================================= */
.floating-promo-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: var(--light-green); 
    border: 2px solid var(--primary-green);
    border-radius: 2vw; /* Scalable organic curve */
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 2000;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUpPromo 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpPromo {
    from { bottom: -150px; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}

.promo-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 2001;
    font-weight: bold;
    transition: color 0.2s;
}

.promo-close-btn:hover {
    color: var(--primary-green);
}

.floating-promo-header {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 40px;
    font-size: 1.28rem;
    font-weight: bold;
    border-radius: 50px;
    transform: translateY(-50%); /* Pulls the pill up over the border */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.floating-promo-body {
    padding: 0 30px 25px 30px;
    margin-top: -15px; /* Adjust for the translated header */
}

.promo-text {
    font-size: 0.88rem;
    font-weight: bold;
    color: var(--text-dark);
    line-height: 1.6;
}

.spots-counter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.spot {
    width: 35px;
    height: 35px;
    border-radius: 10px; /* Squircle */
    border: 2px solid #ccc;
    transition: transform 0.3s;
}

.spot:hover {
    transform: scale(1.1);
}

.spot.filled {
    background-color: #e0e0e0;
    border-color: #bdbdbd;
}

.spot.available {
    background-color: var(--brand-light-green);
    border-color: var(--primary-green);
    box-shadow: 0 0 12px rgba(105, 240, 174, 0.6);
}

/* Floating Banner Responsiveness */
@media (max-width: 767px) {
    .floating-promo-banner { border-radius: 4vw; width: 95%; }
    .floating-promo-header { font-size: 0.96rem; padding: 8px 25px; white-space: nowrap; }
    .promo-text { font-size: 0.76rem; }
    .spots-counter { gap: 8px; }
    .spot { width: 25px; height: 25px; border-radius: 8px; }
}

@media (max-width: 480px) {
    .floating-promo-banner { bottom: 10px; }
    .floating-promo-header { font-size: 4vw; padding: 6px 20px; }
    .floating-promo-body { padding: 0 15px 20px 15px; }
    .spots-counter { gap: 5px; }
    .spot { width: 20px; height: 20px; border-radius: 6px; }
}

/* Trial Form Modal */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}






/* BEGIN update form container scrollability */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    max-height: 90vh; /* Limits height to viewport */
    overflow-y: auto; /* Enables vertical scrolling */
}
/* END update form container scrollability */





.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}




.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* BEGIN form options grid */
.form-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 5px;
    margin-top: 8px;
}
.form-options-grid .full-width {
    grid-column: span 2;
}
.form-options-grid label {
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    line-height: 1.3;
}
.form-options-grid input {
    margin-right: 6px;
    margin-top: 2px;
    flex-shrink: 0;
}
/* END form options grid */



/* Loading Overlay */
.loading-overlay {
    display: none; /* Hidden by default */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 100;
    backdrop-filter: blur(2px);
    border-radius: 15px; /* Match form container */
    align-items: center;
    justify-content: center;
}

/* Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid transparent;
    border-top-color: var(--brand-dark-green);
    border-right-color: var(--brand-light-green);
    border-bottom-color: var(--brand-accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   MOBILE RESPONSIVENESS (CRITICAL FIXES)
   ========================================= */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none; /* Hide desktop menu */
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex; /* Show when active */
    }
    .hamburger {
        display: block;
    }

    /* Hero */
    .hero h1 {
        font-size: 5vw !important; 
        width: 100%;         /* Fill the container width */
        max-width: 95%;      /* Safety buffer */
        margin: 0 auto 15px; /* Auto margins for block centering */
        padding: 0;          /* Remove padding to ensure perfect center */
        text-align: center;  /* CRITICAL: Centers text inside the block */
        white-space: nowrap; 
        display: block;
    }
    
    /* Teachers - Stack vertically & Fix Centering */
    .teacher-profile {
        flex-direction: column;
        align-items: center;
        padding: 20px; /* Tweak: Reduced padding for mobile */
    }

    .teacher-img {
        width: 100%;
        min-width: auto; /* Fix: Reset min-width conflict */
        margin-bottom: 20px;
        /* Fix: Reinforce centering */
        display: flex;
        justify-content: center;
    }

    .teacher-bio {
        width: 100%; /* Ensure full width for text alignment */
        min-width: 0; /* CRITICAL FIX: Allows box to shrink on small phones */
        text-align: left; /* Default bio text to left */
    }

    .teacher-bio h2 {
        text-align: center; /* Tweak: Center the name above the text */
        margin-bottom: 15px;
    }

    /* Tweak: Make bio spans stack nicely on mobile */
    .bio-title, .bio-body, .bio-history {
        display: block;
        margin-bottom: 10px;
    }
    
    .bio-text {
        font-size: 1rem; /* Increase from small size to 16px equivalent */
        line-height: 1.6;
        text-align: left; /* Keep text left aligned for readability even if image is centered */
    }

    /* Fees */
    .fees-table {
        font-size: 0.9rem;
    }

    /* Popup Size & Layout Fixes */
    .promo-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        text-align: center;
        padding: 15px 40px 15px 15px; /* Extra padding on the right protects the X */
    }
    
    .promo-popup .promo-title {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .promo-popup p {
        font-size: 0.68rem;
    }
    
    .promo-popup .promo-close {
        top: 10px;
        right: 10px;
        font-size: 0.96rem;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.9); /* Ensures legibility */
        border-radius: 50%;
    }
}

/* UNDER CONSTRUCTION POPUP - REMOVE LATER */
/* =========================================
   Construction Overlay (Caution Tape Style)
   ========================================= */
.construction-overlay {
    position: fixed;
    top: 15%; left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    z-index: 10000;
    width: 90%;
    max-width: 650px;
}

.construction-box {
    /* Caution Tape Background */
    background: repeating-linear-gradient(
        45deg,
        #FFD54F,
        #FFD54F 20px,
        #222 20px,
        #222 40px
    );
    padding: 15px; /* Creates the tape border effect */
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    width: 100%;
}

.construction-inner {
    background: #fff;
    padding: 30px;
    text-align: center;
    position: relative;
    border: 2px solid #222;
}

.construction-close {
    position: absolute;
    top: 5px; right: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.construction-title {
    font-size: 1.8rem;
    color: #D32F2F;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.construction-sub {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

.construction-small {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}
/* END UNDER CONSTRUCTION POPUP */

@media (max-width: 480px) {
    /* Fix Hero Overflow on small screens */
    .hero h1 {
        font-size: 7.5vw;
    }


/* BEGIN mobile form container adjustments */
    .form-container {
        padding: 20px 15px;
        max-height: 95vh;
    }
    /* END mobile form container adjustments */




    /* Fix Contact Email Wrapping */
    .contact-info {
        font-size: 1rem;
    }
    .contact-info a {
        white-space: nowrap;
        font-size: 5.5vw; /* Shrinks text to fit screen */
    }
}