:root {
  --primary: #0f2c59;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --text: #334155;
  --text-muted: #64748b;
  --success: #16a34a;
  --danger: #dc2626;
  --card-radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background-color: #fff;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary);
  color: white;
  padding: 1.2rem 3rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.logo { font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.sub-logo { font-size: 0.75rem; font-weight: 300; opacity: 0.8; border-left: 1px solid rgba(255,255,255,0.3); padding-left: 0.75rem; }
.navbar nav a { color: white; text-decoration: none; margin-left: 1.8rem; font-weight: 500; font-size: 0.95rem; transition: opacity 0.2s; }
.navbar nav a:hover { opacity: 0.8; }
.navbar nav .nav-btn { background: var(--accent); padding: 0.5rem 1.2rem; border-radius: 6px; font-weight: 600; }

.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,44,89,0.85), rgba(15,23,42,0.9)); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 2rem; }
.badge-hero { background: rgba(13,148,136,0.3); border: 1px solid var(--accent); color: #5eead4; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.hero h1 { font-size: 3.2rem; margin: 1rem 0; font-weight: 700; line-height: 1.2; }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; }
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; }

.btn-primary, .btn-secondary, .btn-submit { padding: 0.85rem 1.8rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform 0.2s, background 0.2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.15); color: white; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.container { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-center { text-align: center; }
.text-white { color: white; }
.section-header h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 0.5rem; }
.bg-dark .section-header h2 { color: white; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 3rem auto; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 2rem; margin-top: 2rem; }
.feature-card { background: white; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); text-align: left; padding-bottom: 1.5rem; }
.feature-card img { width: 100%; height: 200px; object-fit: cover; }
.feature-card h3 { padding: 1rem 1.5rem 0.5rem; color: var(--primary); margin: 0; }
.feature-card p { padding: 0 1.5rem; color: var(--text-muted); font-size: 0.95rem; }

.academy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px,1fr)); gap: 2.5rem; }
.academy-card { background: white; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.academy-img { height: 220px; background-size: cover; background-position: center; position: relative; }
.state-badge { position: absolute; top: 1rem; right: 1rem; background: var(--primary); color: white; padding: 0.4rem 1rem; border-radius: 6px; font-weight: 700; font-size: 0.85rem; }
.academy-body { padding: 2rem; }
.academy-body h3 { margin-top: 0; color: var(--primary); font-size: 1.4rem; }
.location-tag { color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.director-info { margin: 1.5rem 0; padding-top: 1rem; border-top: 1px solid #e2e8f0; font-size: 0.9rem; color: var(--text-muted); }
.btn-card { display: inline-block; color: var(--accent); font-weight: 700; text-decoration: none; }

.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.img-rounded { width: 100%; border-radius: var(--card-radius); object-fit: cover; }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.tag-title { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
.check-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.check-list li { margin-bottom: 0.8rem; font-size: 1.05rem; font-weight: 500; }

.quiz-card { background: #1e293b; padding: 1.5rem; border-radius: var(--card-radius); margin-bottom: 1.5rem; }
.q-number { color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.quiz-card h4 { margin: 0.5rem 0 1rem; font-size: 1.1rem; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quiz-opt { padding: 0.75rem; background: #334155; border: 1px solid #475569; color: white; border-radius: 6px; cursor: pointer; text-align: left; font-family: inherit; }
.quiz-opt:hover:not(:disabled) { background: #475569; }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { background: #15803d; border-color: var(--success); }
.quiz-opt.wrong { background: #b91c1c; border-color: var(--danger); }
.quiz-feedback { margin-top: 0.75rem; font-weight: 600; }
.correct-txt { color: #4ade80; }
.wrong-txt { color: #f87171; }
.reference-card { background: #1e293b; padding: 2rem; border-radius: var(--card-radius); }
.ear-reference-placeholder { min-height: 280px; margin: 1rem 0; border-radius: 8px; background: #f8fafc; color: var(--primary); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.ear-shape { font-size: 8rem; line-height: 1; }
.ear-reference-placeholder p { margin: 1rem 0 0; font-weight: 700; }
.point-summary { list-style: none; padding: 0; margin: 0; }
.point-summary li { padding: 0.5rem 0; border-bottom: 1px solid #334155; font-size: 0.9rem; }

.contact-box { background: var(--bg-light); padding: 3rem; border-radius: var(--card-radius); border: 1px solid #e2e8f0; max-width: 800px; margin: 0 auto; }
.contact-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { padding: 0.8rem; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit { background: var(--primary); color: white; border: none; cursor: pointer; font-size: 1rem; margin-top: 1rem; }
.btn-submit:hover { background: #1e3a8a; }
.hidden-field { display: none; }
.alert-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; padding: 1rem 2rem; text-align: center; font-weight: 600; }

footer { background: var(--bg-dark); color: #94a3b8; text-align: center; padding: 3rem 2rem; }
.footer-content { padding-top: 0; padding-bottom: 0; }
.footer-contact { color: var(--accent); font-weight: 600; }
.copyright { font-size: 0.85rem; margin-top: 1rem; }

@media (max-width: 900px) {
  .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
  .navbar nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
  .navbar nav a { margin: 0; }
  .sub-logo { display: none; }
}

@media (max-width: 768px) {
  .two-col-grid, .form-row, .academy-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-cta-group { flex-direction: column; }
  .academy-grid { gap: 1.5rem; }
  .contact-box { padding: 2rem 1.25rem; }
  .options-grid { grid-template-columns: 1fr; }
}
