:root {
    --navy: #0b1324;
    --charcoal: #141b2d;
    --white: #ffffff;
    --soft: #f2f4f8;
    --text: #0f172a;
    --muted: #6b7280;
    --accent: #2563eb;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--soft);
    color: var(--text);
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    background: rgba(242,244,248,0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

.logo { font-weight: 600; }

.nav-links a {
    margin-left: 40px;
    text-decoration: none;
    color: var(--muted);
}
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--navy), var(--charcoal));
    display: flex;
    align-items: center;
    padding: 0 120px;
    color: white;
}

.hero h1 { font-size: 72px; line-height: 1.05; }
.hero p {
    margin-top: 24px;
    font-size: 20px;
    color: #cbd5e1;
    max-width: 620px;
}

/* SECTIONS */
.section { padding: 160px 0; }
.section.light { background: var(--white); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* SPLIT */
.split {
    display: flex;
    gap: 80px;
    align-items: center;
}

.image-panel {
    flex: 1;
    height: 480px;
    background: url("https://picsum.photos/1200/900?random=10") center/cover;
    border-radius: 28px;
}

.text-panel { flex: 1; }

/* PROCESS */
.process-section {
    background: linear-gradient(135deg, var(--charcoal), var(--navy));
    color: white;
    padding: 180px 0;
}

.process-header {
    max-width: 700px;
    margin-bottom: 100px;
}

.process-track {
    display: flex;
    gap: 60px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.process-step {
    min-width: 320px;
    background: rgba(255,255,255,0.06);
    padding: 40px;
    border-radius: 24px;
}

.process-number {
    font-size: 36px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

/* IMPACT */
.impact-section {
    background: linear-gradient(135deg, var(--charcoal), var(--navy));
    padding: 160px 0;
    color: white;
}

.impact-section h2 { text-align: center; }

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 40px;
    margin-top: 60px;
}

.impact-card {
    background: rgba(255,255,255,0.08);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
}

.impact-number {
    font-size: 48px;
    font-weight: 600;
    color: var(--accent);
}

/* TEAM */
#team h2 {
    text-align: center;
}

.team-subtitle {
    margin-top: 120px;
}

.team-grid.three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.team-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-card img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .team-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid.three {
        grid-template-columns: 1fr;
    }
}

/* CONTACT */
.contact {
    background: linear-gradient(135deg, var(--navy), var(--charcoal));
    padding: 180px 0;
    display: flex;
    justify-content: center;
}

.contact-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    padding: 70px;
    border-radius: 30px;
    width: 820px;
    color: white;
}

/* FORM */
form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

input, textarea {
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: none;
}

button {
    padding: 16px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* FOOTER */
footer {
    padding: 60px;
    text-align: center;
    color: var(--muted);
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.problem-section {
    padding: 120px 8%;
    background: #f8f9fb;
}

.problem-header h2 {
    font-size: 42px;
    margin-bottom: 20px; /* Fix spacing issue */
    text-align: center;
}

.problem-tagline {
    font-size: 20px;
    color: #555;
    margin-bottom: 80px; /* Space before grid */
    text-align: center;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.problem-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.problem-card h3 {
    margin-bottom: 15px;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 38px;   /* Adjust if needed */
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
}.image-panel {
    background-image: url("images/image/image/Classroom.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    min-height: 400px;
}.team-card img {
    width: 100%;
    height: 320px;        /* forces equal height */
    object-fit: cover;    /* crops instead of stretching */
    border-radius: 20px;
}

/* CHAT TOGGLE BUTTON */
.chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0a1f44;
    color: white;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chat-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}


/* icon */
.chat-icon {
    font-size: 20px;
}

/* hidden text */
.chat-label {
    font-size: 14px;
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.3s ease;
}

/* on hover: text slides out */
.chat-toggle:hover .chat-label {
    max-width: 140px;
    opacity: 1;
}

/* ===== CHAT WINDOW ===== */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 340px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
}

.chat-window.active {
    display: flex;
}

/* ===== HEADER ===== */
.chat-header {
    background: #0a1f44;
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== BODY ===== */
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f4f6fb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== MESSAGE STYLES ===== */
.bot-message {
    background: white;
    padding: 10px 14px;
    border-radius: 15px;
    max-width: 80%;
    align-self: flex-start;
    font-size: 14px;
}

.user-message {
    background: #0a1f44;
    color: white;
    padding: 10px 14px;
    border-radius: 15px;
    max-width: 80%;
    align-self: flex-end;
    font-size: 14px;
}

/* ===== FAQ BUTTONS (SPACED) ===== */
.faq-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;   /* increased spacing */
    margin-top: 18px;
}

.faq-buttons button {
    padding: 12px 14px;
    border: none;
    background: #0a1f44;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: background 0.25s ease;
}

.faq-buttons button:hover {
    background: #143b7a;
}

}
/* ===== TYPING INDICATOR ===== */
.typing {
    background: white;
    padding: 10px 14px;
    border-radius: 15px;
    max-width: 60px;
    align-self: flex-start;
    display: flex;
    gap: 5px;
}

.typing span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}


/* ===== TYPING INDICATOR ===== */
.typing {
    background: white;
    padding: 10px 14px;
    border-radius: 15px;
    max-width: 60px;
    align-self: flex-start;
    display: flex;
    gap: 5px;
}

.typing span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}
/* CHAT TOGGLE BUTTON */
.chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0a1f44;
    color: white;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover lift */
.chat-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Icon */
.chat-icon {
    font-size: 20px;
}

/* Hidden text */
.chat-text {
    font-size: 14px;
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.25s ease;
}

/* Reveal text on hover */
.chat-toggle:hover .chat-text {
    max-width: 160px;
    opacity: 1;
}

/* CHAT WINDOW */
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 340px;
    height: 460px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    display: none;
    flex-direction: column;
    z-index: 9999;
}

.chat-window.active {
    display: flex;
}

/* HEADER */
.chat-header {
    background: #0a1f44;
    color: white;
    padding: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BODY */
.chat-body {
    flex: 1;
    padding: 14px;
    background: #f4f6fb;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* MESSAGES */
.bot-message {
    background: white;
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 80%;
    align-self: flex-start;
    font-size: 14px;
}

.user-message {
    background: #0a1f44;
    color: white;
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 80%;
    align-self: flex-end;
    font-size: 14px;
}

/* FAQ BUTTONS */
.faq-buttons {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-buttons button {
    padding: 10px 12px;
    border: none;
    background: #0a1f44;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

/* TYPING INDICATOR */
.typing {
    background: white;
    padding: 10px 14px;
    border-radius: 16px;
    display: flex;
    gap: 6px;
    width: fit-content;
}

.typing span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}
