/* ============================================================
   TutorWow - Shared Stylesheet
   All pages link to this file. Page-specific styles live
   in each HTML file as an inline <style> block.
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1B3A5C;
  --navy-dark:   #122842;
  --orange:      #d97706;
  --orange-dark: #b45309;
  --orange-light:#fef3c7;
  --cream:       #FAFAF7;
  --white:       #FFFFFF;
  --text:        #111827;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --surface:     #F9FAFB;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.12);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, a, button, input, label, li, select, textarea { font-family: var(--font-body); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== LOGO IMAGES ===== */
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.logo-img-footer {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,58,92,0.35);
}
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 18px 36px; font-size: 18px; border-radius: 10px; }

/* ===== BLOG CTA BUTTON OVERRIDES ===== */
/* On dark navy .bp-cta sections, use a bright white button with bevel */
.bp-cta .btn-primary {
  background: #ffffff;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 5px 0 rgba(0,0,0,0.28), 0 8px 28px rgba(0,0,0,0.35);
  border: none;
}
.bp-cta .btn-primary:hover {
  background: #f0f6ff;
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.25), 0 14px 36px rgba(0,0,0,0.35);
}
.bp-cta .btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.2);
}

/* On light .bp-inline-cta sections, use orange with bevel to pop */
.bp-inline-cta .btn-primary {
  background: var(--orange);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 5px 0 var(--orange-dark), 0 8px 24px rgba(217,119,6,0.35);
  border: none;
}
.bp-inline-cta .btn-primary:hover {
  background: var(--orange-dark);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #92400e, 0 12px 32px rgba(217,119,6,0.45);
}
.bp-inline-cta .btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--orange-dark), 0 4px 10px rgba(217,119,6,0.2);
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.nav-logo { display: flex; align-items: center; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-resources-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: #d97706 !important;
  border: 1.5px solid #d97706 !important;
  border-radius: 100px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-resources-btn:hover {
  background: #b45309 !important;
  border-color: #b45309 !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; order: 99; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: -24px;
    right: -24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 13px 24px; font-size: 16px; }
  .nav-logo .logo-img { height: 32px; }
  .nav-cart-btn { order: 1; padding: 6px; border: none; }
  .nav-cart-btn svg { width: 18px; height: 18px; }
  .nav-hamburger { padding: 4px; }
  .nav-hamburger span { width: 20px; height: 1.5px; }
  .nav-cta { order: 2; }
  .nav-cta .btn {
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    background: var(--navy);
    border-color: var(--navy);
    border-radius: 100px;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(27,58,92,0.18);
  }
  .nav-cta .btn:hover {
    background: #0d2040;
    border-color: #0d2040;
  }
  .nav-resources-btn { display: none !important; }
  .nav-inner { gap: 10px; }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; color: var(--text-muted); }
.trust-item-icon { font-size: 20px; }
.trust-item strong { color: var(--text); font-weight: 500; }
@media (max-width: 600px) { .trust-bar-inner { gap: 20px; } .trust-item { font-size: 13px; } }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0F2744 100%);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .section-label { color: #FED7AA; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 56px); color: var(--white); margin-bottom: 18px; font-weight: 600; }
.page-hero h1 em { font-style: italic; color: #FED7AA; }
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.page-hero .btn { margin: 0 auto; }
@media (max-width: 600px) { .page-hero { padding: 56px 0 48px; } }

/* ===== FORM FIELDS (shared between index + trial) ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  padding: 20px;
  font-size: 18px;
  border-radius: 10px;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 5px 0 var(--orange-dark), 0 8px 24px rgba(217,119,6,0.35);
}
.form-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #92400e, 0 12px 32px rgba(217,119,6,0.45);
}
.form-submit:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--orange-dark), 0 4px 10px rgba(217,119,6,0.2);
}
.form-disclaimer { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ===== FAQ ACCORDION (shared) ===== */
.faq { padding: 96px 0; background: var(--cream); }
.faq-header { text-align: center; margin-bottom: 56px; }
.faq-header h2 { font-size: clamp(28px, 3.5vw, 44px); color: var(--navy); margin-bottom: 12px; font-weight: 600; }
.faq-header p { color: var(--text-muted); font-size: 17px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--navy);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--surface); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 18px; font-weight: 400; color: var(--navy);
  transition: transform 0.3s, background 0.2s, color 0.2s; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--orange-light); color: var(--orange); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 600px) { .faq { padding: 64px 0; } }

/* ===== TUTOR PHOTO (circular, shared) ===== */
.tutor-photo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.tutor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ===== VIDEO TESTIMONIALS (shared) ===== */
.video-section {
  padding: 88px 0;
  background: var(--navy);
}
.video-section-header {
  text-align: center;
  margin-bottom: 52px;
}
.video-section-header .section-label { color: #FED7AA; }
.video-section-header h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 14px;
}
.video-section-header h2 em { font-style: italic; color: #FED7AA; }
.video-section-header p { color: rgba(255,255,255,0.7); font-size: 17px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.video-card:hover .video-thumb-wrap img { transform: scale(1.04); }

.play-btn-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.22);
  transition: background 0.3s;
}
.video-card:hover .play-btn-overlay { background: rgba(0,0,0,0.35); }
.play-btn-overlay span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  padding-left: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.video-card:hover .play-btn-overlay span {
  transform: scale(1.12);
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.8);
}

.video-card-body {
  padding: 16px 18px 18px;
}
.video-card-body strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
}
.video-card-body span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ===== UNIVERSITY LOGOS (shared) ===== */
.uni-logos-bar {
  padding: 40px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.uni-logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.uni-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.uni-logos-row img {
  height: 36px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
.uni-logos-row img:hover { opacity: 0.85; filter: grayscale(0); }
@media (max-width: 600px) { .uni-logos-row { gap: 24px; } .uni-logos-row img { height: 28px; } }

/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.footer-brand .btn { font-size: 14px; padding: 10px 20px; }
.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; font-family: var(--font-body); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; }
.footer-legal { display: flex; gap: 20px; font-size: 13px; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--white); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .footer { padding: 48px 0 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===== NAV DROPDOWNS ===== */
.nav-dropdown-item { position: relative; }
.nav-dropdown-trigger {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 15px; font-weight: 400; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); transition: color 0.2s; white-space: nowrap;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active,
.nav-dropdown-item.open .nav-dropdown-trigger { color: var(--navy); }

.nav-dd-arrow {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform 0.25s; fill: currentColor;
}
.nav-dropdown-item.open .nav-dd-arrow { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  width: 680px; max-width: 90vw; background: var(--white);
  border: 1px solid rgba(27,58,92,0.09);
  border-radius: 20px; padding: 10px;
  box-shadow: 0 24px 64px rgba(27,58,92,0.13), 0 4px 16px rgba(0,0,0,0.05);
  z-index: 500;
  display: none; grid-template-columns: 1fr 1.2fr; gap: 10px;
}
.nav-dropdown-item.open .nav-dropdown-panel { display: grid; }

.nav-dp-col { display: flex; flex-direction: column; gap: 2px; }
.nav-dp-link {
  display: flex; flex-direction: column; padding: 11px 14px; border-radius: 10px;
  text-decoration: none;
  border-left: 2.5px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.nav-dp-link:hover { background: rgba(27,58,92,0.04); border-left-color: var(--orange); }
.nav-dp-link-active { background: rgba(27,58,92,0.06); border-left-color: var(--navy); }
.nav-dp-link-active:hover { background: rgba(27,58,92,0.09); }
.nav-dp-title {
  display: block; font-size: 15px; font-weight: 600; color: var(--navy);
  font-family: var(--font-body); line-height: 1.3; margin-bottom: 2px;
}
.nav-dp-sub { display: block; font-size: 12px; color: var(--text-muted); font-family: var(--font-body); }
.nav-dp-link-active .nav-dp-title { color: var(--navy); }
.nav-dp-link-active .nav-dp-sub { color: var(--text-muted); }

.nav-dp-featured {
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #0d2040 100%);
  display: flex; flex-direction: column;
}
.nav-dp-featured img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; opacity: 0.92; }
.nav-dp-featured-body { padding: 14px 16px; flex: 1; }
.nav-dp-featured-body p {
  font-size: 14px; font-weight: 600; color: var(--white);
  line-height: 1.4; font-family: var(--font-body); margin-bottom: 10px;
}
.nav-dp-featured-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.7);
  font-family: var(--font-body); letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-dp-featured:hover .nav-dp-featured-cta { color: var(--white); }

@media (max-width: 768px) {
  .nav-dropdown-panel {
    position: static; transform: none; width: 100%;
    border-radius: 0; box-shadow: none; background: var(--surface);
    padding: 0; grid-template-columns: 1fr; border-top: 1px solid var(--border);
  }
  .nav-dp-featured { display: none; }
  .nav-dropdown-trigger {
    display: flex; width: 100%; padding: 13px 24px;
    font-size: 16px; justify-content: space-between;
  }
  .nav-dp-col { padding: 4px 0 8px; }
  .nav-dp-link { padding: 10px 40px; }
  .nav-dp-title { font-size: 15px; }
  .nav-dp-sub { display: none; }
  .nav-dp-link-active { background: rgba(27,58,92,0.08); }
  .nav-dp-link-active .nav-dp-title { color: var(--navy); }
}

/* ===== NAV JS SUPPORT ===== */
/* Used by hamburger toggle script on all pages */

/* ===== SMALL-SCREEN FIXES ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .page-hero::before { display: none; }
  .nav { padding: 10px 0; }
  .nav-inner { gap: 8px; }
  .nav-logo .logo-img { height: 28px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 13px; }
}

/* ===== BLOG POST INLINE GRAPHICS ===== */
.blog-graphic {
  width: 100%;
  margin: 36px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5fb;
  border: 1px solid var(--border);
}
.blog-graphic svg {
  width: 100%;
  height: auto;
  display: block;
}
