/* ===============================
   🌍 GLOBAL STYLES
   =============================== */
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: #1a1a1a;
  background: linear-gradient(to bottom, #ffffff 0%, #f7f9fc 100%);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  padding: 0;
}

/* ===============================
   FORWARD PATHWAY STYLE NAVBAR
   =============================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);   /* smooth & modern */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid #e5e5e5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Logo */
.logo {
  height: 48px;
}

.title-text {
  margin-left: 8px;
}

.title-text h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #0a2c5c;
  letter-spacing: 0px;
}

.title-text p {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
  font-style: normal;
}

/* NAV MENU */
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  color: #0a2c5c;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  position: relative;
  text-transform: uppercase;
}

/* Underline hover */
.nav-links a:hover {
  color: #007bff;
}

/* ACTIVE UNDERLINE (same as screenshot) */
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: #0094ff;
}

/* Login button */
.login-btn {
  background: #0a2c5c;
  color: white !important;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Language toggle */
.lang-toggle {
  border: 1px solid #0a2c5c;
  padding: 5px 10px;
  letter-spacing: 0.5px;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #0a2c5c;
}

/* MOBILE */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 70px;
    background: white;
    padding: 20px;
    gap: 18px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  .nav-links.show {
    display: flex;
  }
}





/* ===============================
   🏫 HERO SECTION
   =============================== */
.hero-banner {
  background: url("bulidings2.jpeg") center/cover no-repeat;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  margin-top: 90px; /* offset for fixed navbar */
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
}

.hero-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content h2 span {
  color: #ea6a09;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.cta-btn {
  background-color: #ffb36b;
  color: #092c5c;
  text-decoration: none;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}

.cta-btn:hover {
  background-color: #ffa94d;
}

/* ===============================
   📚 BOOKSHELF SECTION
   =============================== */
.bottom-image {
  margin-top: 80px;
}

.bottom-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-top: 4px solid #d4af37;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* ===============================
   📊 STATS SECTION
   =============================== */
.stats-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #f4f6f9;
  padding: 10px 5px;
  color: #1e2a38;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  flex-wrap: wrap;
  gap: 45px;
}

.stat {
  flex: 1 1 180px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s ease forwards;
  margin: 20px;
}

.stat h3 {
  font-size: 2rem;
  margin: 0;
}

.left h3 { color: #d4af37; }
.center h3 { color: #003366; }
.right h3 { color: #8b8b8b; }

.stat p {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #5a5a5a;
}

/* ===============================
   🟩 PROGRAM SECTION (color blocks)
   =============================== */
.program-section {
  padding: 80px 40px;
  background: #fff;
  text-align: center;
}

.program-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.program-card {
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 30px;
  color: #fff;
  transform: translateX(60px);
  opacity: 0;
  animation: slideIn 1s ease forwards;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.program-card img {
  width: 70px;
  margin-right: 25px;
}

.program-card h4 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 5px;
}

.program-card p {
  font-size: 0.95rem;
  color: #f8f8f8;
  line-height: 1.5;
}

/* COLORS */
.program-card.blue { background: #6ab7c8; }
.program-card.red { background: #d86b75; }
.program-card.yellow { background: #e3b23c; }
.program-card.teal { background: #2d6671; }

/* ===============================
   👩‍🏫 ABOUT PAGE
   =============================== */
.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  padding-right: 40px;
  color: #092c5c;
}

.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.about-text span {
  color: #e67e22;
  font-family: "Playfair Display", serif;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.about-image {
  flex: 1;
  text-align: right;
}

.about-image img {
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===============================
   👩‍💼 PRINCIPAL SECTION
   =============================== */
.principal-section {
  background: #ffe5d1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 30px;
  padding: 80px 10%;
  color: #092c5c;
}

.principal-photo img {
  grid-auto-rows: auto;
  width: 100%;
  height: auto; 
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.principal-text h3 {
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 15px;
}

.principal-text p {
  line-height: 1.7;
  font-size: 1.05rem;
}

.school-list ul {
  list-style: none;
  padding: 0;
}

.school-list li {
  margin: 8px 0;
  font-weight: 600;
  color: #092c5c;
}

/* ===============================
   🎓 COURSES PAGE
   =============================== */
.courses-section {
  padding: 100px 10%;
  color: #092c5c;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.section-subtitle {
  text-align: center;
  color: #333;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
  background: rgba(255, 255, 255, 0.7);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.filter-group label {
  font-weight: 600;
  color: #0b2e59;
  margin-right: 10px;
}

.filter-group select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid #e67e22;
  background: #fffdf9;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.filter-group select:hover {
  border-color: #f39c12;
  box-shadow: 0 0 8px rgba(230, 126, 34, 0.4);
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.course-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.93) 75%, rgba(250, 250, 250, 0.85));
  border-radius: 10px;
  padding: 25px 35px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  border-left: 10px solid var(--accent, #e67e22);
  transition: 0.35s;
  animation: fadeInUp 0.6s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  background: var(--accent, #e67e22);
  opacity: 0.15;
  transform: rotate(45deg);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.course-card h3 {
  font-family: "Playfair Display", serif;
  color: #0b2e59;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.course-card p {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

/* Accent colors */
.course-card.writing { --accent: #f39c12; }
.course-card.math { --accent: #2980b9; }
.course-card.science { --accent: #27ae60; }
.course-card.exam { --accent: #8e44ad; }
.course-card.counseling { --accent: #d35400; }

.register-btn {
  margin-top: 12px;
  text-decoration: none;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.register-btn:hover {
  background: linear-gradient(135deg, #e67e22, #d35400);
  transform: translateY(-2px);
}

/* ===============================
   💳 PAYMENT PAGE
   =============================== */
.pay-section {
  padding: 100px 15%;
  color: #092c5c;
}

.payment-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.payment-form label {
  font-weight: 600;
  color: #0b2e59;
}

.payment-form input,
.payment-form select {
  padding: 10px 15px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.payment-form input:focus,
.payment-form select:focus {
  border-color: #e67e22;
  outline: none;
}

/* ===============================
   ✨ ANIMATIONS
   =============================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===============================
   📱 RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  .navbar { flex-direction: column; padding: 15px 20px; }
  .hero-content h2 { font-size: 2.2rem; }
  .stats-section { flex-direction: column; }
  .program-card { flex-direction: column; text-align: center; }
  .program-card img { margin: 0 0 15px; }
}

.lang-toggle {
  margin-left: 20px;
  background: none;
  border: 1.5px solid #092c5c;
  border-radius: 4px;
  padding: 4px 10px;
  color: #092c5c;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.lang-toggle:hover {
  background: #092c5c;
  color: #fff;
}



/* 💬 Floating Chat Button */
.chat-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #092c5c;
  color: #fff;
  font-size: 26px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}
.chat-button:hover {
  background-color: #d4af37;
  transform: scale(1.05);
}

/* === 💬 AI Assistant Popup === */
.chat-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 330px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
  z-index: 1000;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}

.chat-header {
  background: #092c5c;
  color: #fff;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  padding: 15px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 420px;
}
.user-msg, .assistant-msg {
  padding: 8px 12px;
  border-radius: 10px;
  margin: 6px 0;
  max-width: 85%;
  word-wrap: break-word;
}
.user-msg {
  background: #d4af37;
  color: #fff;
  align-self: flex-end;
  text-align: right;
}
.assistant-msg {
  background: #f4f6f9;
  color: #092c5c;
  align-self: flex-start;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}
.chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 0.95rem;
}
.chat-input button {
  background: #092c5c;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 600;
}
.chat-input button:hover {
  background: #d4af37;
}

/* QR Code */
.qr-code {
  display: block;
  width: 100%;
  max-width: 180px;
  margin: 12px auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Suggested buttons */
.suggestions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.suggestions .question {
  background: #092c5c;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.8rem;
}
.suggestions .question:hover {
  background: #d4af37;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* CONTACT SECTION */
.contact-section {
  background: #eef0f2;
  padding: 60px 8%;
  color: #0b2e59;
}
.contact-section h2 {
  margin: 0 0 20px 0;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #0b2e59;
}

#contactForm {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

#contactForm .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#contactForm .field {
  display: flex;
  flex-direction: column;
  margin: 12px 0;
}
#contactForm label {
  margin-bottom: 6px;
  color: #0b2e59;
  font-weight: 600;
}
#contactForm input,
#contactForm textarea {
  border: none;
  border-bottom: 2px solid #0b2e59;
  background: #fff;
  padding: 10px 6px;
  font-size: 1rem;
  outline: none;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border-bottom-color: #d4af37;
}
.submit-btn {
  display: inline-block;
  margin-top: 10px;
  background: transparent;
  color: #b23b2a;   /* subtle red like your screenshot label */
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}
.submit-btn:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  #contactForm .row { grid-template-columns: 1fr; }
}


/* CONTACT SECTION (EN + CN) */
.contact-section {
  background: #eef0f2;
  padding: 60px 8%;
  color: #0b2e59;
}
.contact-section h2 {
  margin: 0 0 25px 0;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #0b2e59;
  border-bottom: 3px solid #d4af37;
  display: inline-block;
  padding-bottom: 5px;
}

#contactForm {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

#contactForm .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#contactForm .field {
  display: flex;
  flex-direction: column;
  margin: 12px 0;
}
#contactForm label {
  margin-bottom: 6px;
  color: #0b2e59;
  font-weight: 600;
}
#contactForm input,
#contactForm textarea {
  border: none;
  border-bottom: 2px solid #0b2e59;
  background: #fff;
  padding: 10px 6px;
  font-size: 1rem;
  outline: none;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border-bottom-color: #d4af37;
}
.submit-btn {
  display: inline-block;
  margin-top: 10px;
  background: transparent;
  color: #b23b2a;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}
.submit-btn:hover {
  text-decoration: underline;
}
.contact-info {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #0b2e59;
}
.contact-info p {
  margin: 8px 0;
  font-size: 0.95rem;
}
.contact-info a {
  color: #0b2e59;
  text-decoration: none;
}
.contact-info a:hover {
  color: #d4af37;
}

@media (max-width: 768px) {
  #contactForm .row {
    grid-template-columns: 1fr;
  }
}


/* SIGNUP PAGE */

.signup-body {
    background: url('buildings2.jpeg') center/cover no-repeat fixed;
    backdrop-filter: blur(3px);
    font-family: 'Poppins', sans-serif;
}

.signup-section {
    padding: 120px 20px;
    text-align: center;
    color: #1e2a38;
}

.signup-title {
    font-size: 2.3rem;
    font-weight: 600;
}

.signup-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #444;
}

.signup-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.signup-btn {
    width: 300px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    color: #1e2a38;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.signup-btn .zh {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    color: #555;
}

.signup-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.2);
}

.tutor-need {
    border-left: 6px solid #003366;
}

.tutor-volunteer {
    border-left: 6px solid #d4af37;
}

nav {
  width: 100%;
  left: 0;
  top: 0;
}

@media (max-width: 768px) {
  .hero-banner,
  #auto-visualization {
    background-attachment: scroll !important;
    background-size: cover !important;
  }
}


/* NAVBAR FIXES */
.navbar {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #eee;
}

.nav-links a.active {
  color: #2b6cb0;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    padding: 15px;
    gap: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
