* { box-sizing: border-box; }

html, body { width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

/* =========================
   NAVIGATION BAR
========================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-inner {
  height: 70px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-left {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.6px;
  color: #000;
  white-space: nowrap;
}

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

.nav-links a {
  text-decoration: none;
  color: #1f3c88;
  font-weight: bold;
  white-space: nowrap;
}

/* =========================
   HOME HERO
========================= */
.hero {
  padding-top: 120px;
  height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("nyc-tutoring.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-text { text-align: center; }

.hero-main {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 10px;
  padding: 0 16px;
}

.hero-price {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

/* =========================
   SCHEDULE PAGE HERO
========================= */
.schedule-hero {
  padding-top: 120px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("appointment.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.schedule-box {
  background: rgba(255,255,255,0.95);
  color: #000;
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  width: calc(100% - 40px);
  text-align: center;
}

/* =========================
   TUTOR + CONTACT HERO
========================= */
.page-hero {
  padding-top: 120px;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tutor-hero {
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("becometutor.jpg");
}

.contact-hero {
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("contactus.jpg");
}

.page-box {
  background: rgba(255,255,255,0.95);
  color: #000;
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  width: calc(100% - 40px);
  text-align: center;
}

/* =========================
   ABOUT SECTION
========================= */
.about {
  padding: 40px 20px 60px;
  background: #eaf3ff;
}

.about-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-text { flex: 1.2; }

.about-featured img {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.about-images {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.about-images img {
  width: 200px;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================
   FORMS
========================= */
.form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form input,
.form textarea,
.form select,
.form button {
  padding: 12px;
  font-size: 16px;
  width: 100%;
}

.form textarea { min-height: 120px; }

.form button {
  background: #1f3c88;
  color: white;
  border: none;
  cursor: pointer;
}

.form-confirmation {
  margin-top: 12px;
  font-weight: bold;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 20px;
  background: #eee;
  margin-top: 50px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .logo-left { font-size: 18px; }
  .nav-links a { font-size: 14px; }
}

/* iPhone / small screens */
@media (max-width: 600px) {
  /* Make the nav NOT crush the links */
  nav { height: auto; }

  .nav-inner {
    height: auto;
    padding: 12px 14px;
    flex-direction: column;
    gap: 10px;
  }

  .logo-left {
    font-size: 18px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav-links a { font-size: 14px; }

  /* Reduce giant top padding on mobile */
  .hero,
  .schedule-hero,
  .page-hero {
    padding-top: 24px;
  }

  .hero-main { font-size: 16px; }
  .hero-price { font-size: 22px; }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-images {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-images img {
    width: 140px;
    max-width: 140px;
  }
}

