/* =========================================
   Project: Goya Labs Eiken Prep
   Theme: Nature Tech / Academic Green
   File: Etestprep.css
   ========================================= */

:root {
    --primary-green: #2E7D32;
    --dark-green: #1B5E20;
    --light-green: #E8F5E9;
    --accent-gold: #FFD700;
    --text-dark: #333333;
    --text-light: #555555;
    --white: #ffffff;
    --bg-offwhite: #f9fdf9;
    --shadow: 0 4px 10px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%; /* Never let an image be wider than its parent */
    height: auto;    /* Maintain aspect ratio */
    display: block;  /* Remove annoying bottom gaps */
}

body {
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-offwhite);
    color: var(--text-dark);
    line-height: 1.7;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 30px;
    height: auto;
}

.brand-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.brand-text .highlight {
    color: var(--primary-green);
}

.back-btn {
    text-decoration: none;
    color: var(--white);
    background-color: var(--primary-green);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    background-color: var(--dark-green);
    transform: translateX(-3px);
}

.nav-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-btn:hover {
    background-color: var(--dark-green);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px 100px;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
}

/* Abstract nature pattern overlay */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 200px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
    margin-bottom: 10px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.hero-sub {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.4);
}

/* =========================================
   Layout & Sections
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    color: var(--primary-green);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title.center {
    display: block;
    text-align: center;
}

.bg-light {
    background-color: var(--light-green);
    border-radius: 20px;
    margin: 40px 20px; /* Inset margin for "card" feel */
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Intro Text Styling */
.highlight-box {
    background: white;
    border-left: 5px solid var(--accent-gold);
    padding: 15px;
    margin-top: 20px;
    box-shadow: var(--shadow);
    border-radius: 0 10px 10px 0;
}

/* Image Placeholders */
.img-placeholder-card {
    background-color: #ddd;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    border: 4px solid white;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
}

.img-placeholder-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Roadmap (Steps)
   ========================================= */
.roadmap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.step {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step.success .step-icon {
    background: var(--accent-gold);
    color: var(--text-dark);
    font-size: 1.2rem;
}

/* =========================================
   GoyaPoints Section
   ========================================= */
.gp-section {
    background: #ffffff;
    border-top: 2px dashed var(--accent-gold);
    border-bottom: 2px dashed var(--accent-gold);
}

.gp-header {
    text-align: center;
    margin-bottom: 40px;
}

.gp-header img {
    width: 300px;
    margin: 0 auto;
}

.gp-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #F57F17; /* Darker orange/gold */
    font-family: 'Zen Maru Gothic', sans-serif;
}

.gp-subtitle {
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 2px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.gp-lead {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.big-points {
    color: #D32F2F;
    font-weight: bold;
    font-size: 1.2em;
}

.gp-cluster {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fun floating animation for points */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.gp-coin {
    width: 80px;
    position: absolute;
    top: 20px;
    left: 20px;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.gp-char-main {
    height: 200px;
    position: relative;
    z-index: 1;
}

.gp-char-side {
    height: 120px;
    position: absolute;
    bottom: 20px;
    right: 30px;
    opacity: 0.9;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.cta-btn {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 20px;
    transition: background 0.3s;
}

.cta-btn:hover {
    background: #4caf50;
}

footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: #888;
    font-size: 0.8rem;
}

.footer-link {
    color: var(--primary-green);
    text-decoration: none;
}

/* =========================================
   MEDIA QUERIES (Responsive Controls)
   ========================================= */

/* 1. Large Monitors (Desktops > 1200px) */
@media (min-width: 1200px) {
    .container { max-width: 1300px; }
    .hero h1 { font-size: 4rem; }
    p { font-size: 1.15rem; }
}

/* 2. Laptops / Standard Desktops (1024px - 1199px) */
@media (max-width: 1199px) {
    .hero h1 { font-size: 3rem; }
}

/* 3. Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .grid-2-col {
        grid-template-columns: 1fr; /* Stack grids */
        gap: 30px;
    }
    .roadmap {
        flex-wrap: wrap;
    }
    .step {
        flex: 1 1 40%; /* 2 per row */
        margin-bottom: 20px;
    }
    .gp-cluster { height: 250px; }
    .hero { border-radius: 0 0 30px 30px; }
}

/* 4. Large Phones (481px - 767px) */
@media (max-width: 767px) {
    .navbar .brand-text { display: none; } /* Hide text to save space */
    .hero h1 { font-size: 2.2rem; }
    .step { flex: 1 1 100%; } /* 1 per row */
    .gp-cluster img { transform: scale(0.8); }
    .img-placeholder-card { min-height: 200px; }
}

/* 5. Small Phones (Max 480px) */
@media (max-width: 480px) {
    .section { padding: 40px 0; }
    .hero { padding: 50px 15px 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    
    /* Text resizing for readability on small screens */
    p { font-size: 0.85rem; }
    .gp-lead { font-size: 0.85rem; }
    
    .back-btn { padding: 5px 12px; font-size: 0.8rem; }
    
    /* Simplify GoyaPoints visual */
    .gp-coin { width: 50px; left: 0; }
    .gp-char-side { display: none; } /* Hide extra element to declutter */
}