:root {
  --bg: #f6f1e6;
  --ink: #1e1b18;
  --primary: #005f73;
  --secondary: #bb3e03;
  --accent: #c7a23a;
  --panel: rgba(255, 251, 243, 0.83);
  --line: rgba(30, 27, 24, 0.12);
  --shadow: 0 18px 60px rgba(0, 34, 43, 0.18);
  --good: #1b7f5a;
  --bad: #b02a2a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, #e7f2ef 0 22%, transparent 48%),
    radial-gradient(circle at 85% 20%, #f9e3d0 0 24%, transparent 52%),
    linear-gradient(170deg, #f8f3e8 0%, #f0e6d1 100%);
  overflow-x: hidden;
}

main,
header,
footer {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 245, 235, 0.82);
  backdrop-filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
}

.site-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ghost-btn {
  border: 1px solid rgba(0, 95, 115, 0.25);
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

main {
  padding: 4rem 0 5rem;
  display: grid;
  gap: 2.8rem;
}

.hero,
.panel,
.lesson-lab,
.timeline,
.gallery,
.testimonials,
.team,
.origin,
.program,
.chitas,
.partnership,
.experience,
.apply-section,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  padding: clamp(2rem, 4vw, 4rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Alegreya", Georgia, serif;
  line-height: 1.1;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  max-width: 14ch;
}

.hero-copy {
  margin: 1rem 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta {
  border: none;
  background: linear-gradient(120deg, var(--primary), #0a9396);
  color: #fff;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 8px 20px rgba(0, 95, 115, 0.25);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 95, 115, 0.35);
}

.cta-small {
  padding: 0.6rem 1rem;
}

.text-link {
  color: var(--secondary);
  font-weight: 700;
}

.hero-ribbon {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-ribbon span {
  border: 1px solid rgba(0, 95, 115, 0.2);
  background: rgba(255, 255, 255, 0.65);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.panel,
.lesson-lab,
.timeline,
.gallery,
.testimonials,
.team,
.origin,
.program,
.chitas,
.partnership,
.experience,
.apply-section,
.final-cta {
  padding: clamp(1.4rem, 2vw, 2.2rem);
}

.panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.panel p {
  margin: 0;
  line-height: 1.75;
}

.program {
  background: linear-gradient(150deg, rgba(242, 250, 246, 0.92), rgba(229, 242, 236, 0.86));
}

.experience {
  background: linear-gradient(150deg, rgba(241, 248, 255, 0.92), rgba(223, 237, 252, 0.85));
}

.chitas {
  background: linear-gradient(145deg, rgba(254, 248, 235, 0.92), rgba(246, 232, 204, 0.86));
}

.chitas > p {
  margin: 0.75rem 0 0;
  line-height: 1.76;
}

.partnership {
  background: linear-gradient(150deg, rgba(241, 246, 253, 0.92), rgba(224, 235, 248, 0.85));
}

.partnership > p {
  margin: 0.75rem 0 0;
  line-height: 1.76;
}

.partnership-links {
  margin: 1rem 0 0;
  font-weight: 600;
}

.partnership-links a {
  color: var(--primary);
}

.program-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.program-card {
  border-radius: 1rem;
  border: 1px solid rgba(0, 95, 115, 0.16);
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
}

.program-card h3 {
  color: var(--secondary);
  font-size: 1.22rem;
}

.program-card p {
  margin: 0.55rem 0 0;
  line-height: 1.68;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.4rem;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 242, 0.74));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  transition: transform 220ms ease;
}

.card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
}

.card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.5rem;
  color: var(--secondary);
}

.card p {
  margin: 0;
  line-height: 1.65;
}

.gallery-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-top: 0.45rem;
}

.gallery-sub {
  margin: 0.55rem 0 0;
  font-size: 0.96rem;
  opacity: 0.86;
}

.gallery-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-card {
  margin: 0;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 0.7rem 0.8rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.photo-era {
  display: inline-block;
  margin-right: 0.35rem;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 95, 115, 0.14);
  color: var(--primary);
}

.testimonials {
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(247, 237, 220, 0.86));
}

.team {
  background: linear-gradient(145deg, rgba(248, 253, 252, 0.92), rgba(234, 246, 241, 0.84));
}

.team-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.team-card {
  border-radius: 1rem;
  border: 1px solid rgba(0, 95, 115, 0.18);
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.team-card h3 {
  font-size: 1.22rem;
  color: var(--secondary);
}

.team-role {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 700;
}

.team-card p {
  margin: 0.6rem 0 0;
  line-height: 1.65;
}

.origin {
  background: linear-gradient(150deg, rgba(255, 250, 238, 0.93), rgba(247, 236, 214, 0.86));
}

.origin > p {
  line-height: 1.75;
  margin: 0.8rem 0 0;
}

.origin-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.origin-card {
  border-radius: 1rem;
  border: 1px solid rgba(30, 27, 24, 0.12);
  background: rgba(255, 255, 255, 0.84);
  padding: 1rem;
}

.origin-card h3 {
  color: var(--secondary);
  font-size: 1.25rem;
}

.origin-card p {
  margin: 0.6rem 0 0;
  line-height: 1.68;
}

.testimonial-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  min-height: 185px;
}

.testimonial-card {
  border-radius: 1rem;
  border: 1px solid rgba(30, 27, 24, 0.11);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.95rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.testimonial-card p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.95rem;
}

.testimonial-card h3 {
  margin-top: 0.65rem;
  font-size: 1rem;
  color: var(--primary);
}

.testimonial-controls {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 95, 115, 0.22);
}

.testimonial-dot.active {
  background: var(--secondary);
}

.ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lesson-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.lesson-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  max-width: 22ch;
}

.sense-tabs {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.sense-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff9ef;
  color: var(--ink);
  padding: 0.5rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.sense-tab.active {
  background: var(--secondary);
  color: #fff;
  border-color: transparent;
}

.lesson-output {
  margin-top: 1rem;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0, 95, 115, 0.2);
  background: linear-gradient(160deg, #fffdf8 0%, #fff4e8 100%);
}

.lesson-output h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: var(--secondary);
}

.lesson-output p {
  margin: 0.6rem 0 0;
  line-height: 1.7;
}

.lesson-output ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.lesson-output li {
  line-height: 1.6;
}

.source-kicker {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
}

.source-citation {
  margin: 0.35rem 0 0;
}

.source-citation a {
  color: var(--primary);
  font-weight: 700;
}

.source-quote {
  margin: 0.8rem 0 0;
  padding: 0.85rem 0.95rem;
  border-inline-start: 3px solid rgba(0, 95, 115, 0.45);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.72);
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.6;
}

.source-quote-secondary {
  margin: 0.45rem 0 0;
  opacity: 0.82;
  line-height: 1.7;
}

.timeline h2 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.timeline ol {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.8rem;
}

.timeline li {
  line-height: 1.7;
}

.apply-section {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(248, 235, 210, 0.85));
}

.apply-section h2 {
  margin: 0.5rem 0 1.2rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

#applyForm {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(30, 27, 24, 0.18);
  border-radius: 0.65rem;
  padding: 0.72rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 95, 115, 0.22);
  border-color: rgba(0, 95, 115, 0.45);
}

.consent {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.consent input {
  width: auto;
}

.error {
  min-height: 1.1em;
  color: var(--bad);
  font-size: 0.84rem;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-weight: 700;
}

.form-status.good {
  color: var(--good);
}

.form-status.bad {
  color: var(--bad);
}

.verify-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.otp-status {
  margin: 0;
  min-height: 1.3em;
  font-size: 0.9rem;
  font-weight: 700;
}

.otp-status.good {
  color: var(--good);
}

.otp-status.bad {
  color: var(--bad);
}

.final-cta {
  text-align: center;
  background: linear-gradient(120deg, #fdf7e7, #fbeacc);
}

.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.final-cta p {
  max-width: 60ch;
  margin: 0.8rem auto 1.4rem;
  line-height: 1.7;
}

footer {
  padding-bottom: 2.4rem;
  text-align: center;
  font-size: 0.86rem;
  opacity: 0.8;
}

.orb {
  position: fixed;
  width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: -2;
}

.orb-1 {
  top: -110px;
  right: -80px;
  background: rgba(10, 147, 150, 0.26);
}

.orb-2 {
  bottom: -130px;
  left: -90px;
  background: rgba(187, 62, 3, 0.22);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  opacity: 0.16;
  z-index: -1;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

html[dir="rtl"] body {
  font-family: "Heebo", "Manrope", sans-serif;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .sense-tabs,
html[dir="rtl"] .consent {
  flex-direction: row-reverse;
}

html[dir="rtl"] .timeline ol,
html[dir="rtl"] .lesson-output ul {
  padding-left: 0;
  padding-right: 1.2rem;
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .panel,
  .field-grid,
  .gallery-grid,
  .testimonial-grid,
  .team-grid,
  .origin-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .lesson-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .testimonial-controls {
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  main,
  header,
  footer {
    width: min(1120px, calc(100% - 1.1rem));
  }

  .site-header {
    border-radius: 1rem;
  }

  .cta-small {
    display: none;
  }
}
