:root {
  --red: #c90816;
  --red-dark: #8f0711;
  --red-deep: #3a0508;
  --ink: #1d1d23;
  --muted: #62646c;
  --cream: #fffdf8;
  --paper: #ffffff;
  --yellow: #ffd84b;
  --teal: #2aa69a;
  --line: #eaded4;
  --shadow: 0 22px 70px rgba(91, 20, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
}

html[lang="my"] body {
  font-family: "Noto Sans Myanmar", "Myanmar Text", "Padauk", system-ui, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(234, 222, 212, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  background: var(--paper);
  border: 2px solid rgba(201, 8, 22, 0.14);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(201, 8, 22, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.77rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-toggle button {
  min-height: 36px;
  padding: 7px 10px;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.language-toggle button.is-active {
  color: var(--paper);
  background: var(--red-dark);
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--red);
  background: #fff;
}

.register-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  border-radius: 999px;
}

.register-link {
  color: var(--paper);
  background: var(--red);
  box-shadow: 0 10px 22px rgba(201, 8, 22, 0.2);
}

.register-link.is-current {
  background: var(--red-dark);
}

.back-link {
  color: var(--muted);
}

.back-link:hover {
  color: var(--red);
  background: var(--paper);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(600px, 82vh, 800px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(33, 12, 10, 0.48), rgba(33, 12, 10, 0.18) 44%, rgba(33, 12, 10, 0)),
    linear-gradient(0deg, rgba(33, 12, 10, 0.42), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 36px));
  margin: 0 0 clamp(34px, 7vw, 80px) clamp(18px, 7vw, 96px);
  padding: clamp(24px, 4vw, 38px);
  color: var(--paper);
  background: rgba(20, 20, 25, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 5.6vw, 5.2rem);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 460px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  font-weight: 850;
  text-decoration: none;
  border-radius: 999px;
}

.button.primary {
  color: var(--paper);
  background: var(--red);
  box-shadow: 0 14px 32px rgba(201, 8, 22, 0.28);
}

.button.secondary {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -54px auto 0;
  position: relative;
  z-index: 4;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-info div {
  padding: 24px;
  background: var(--paper);
}

.quick-info strong {
  display: block;
  color: var(--red);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.quick-info span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 130px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.section-copy p:not(.eyebrow),
.feature-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.contact-logo {
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(201, 8, 22, 0.16);
}

.intro-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-card div {
  padding: 22px;
}

.intro-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.program-grid,
.service-grid {
  display: grid;
  gap: 16px;
}

.program-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.program-grid article {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.program-grid article:nth-child(even) {
  background: #fffdf8;
}

.program-grid span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--paper);
  font-weight: 900;
  background: var(--red);
  border-radius: 50%;
}

.program-grid p {
  margin: auto 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.services {
  padding-top: 0;
}

.service-grid article {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(91, 20, 20, 0.08);
}

.service-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.life {
  padding-top: 0;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.life-grid article {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(91, 20, 20, 0.08);
}

.life-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.life-grid article:first-child img {
  object-position: center 58%;
}

.life-grid div {
  padding: 22px;
}

.life-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(42px, 6vw, 70px) clamp(18px, 5vw, 64px);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 75, 0.22), transparent 28%),
    linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--paper);
}

.feature-photo img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(44, 5, 9, 0.3);
}

.feature-copy .eyebrow,
.feature-copy p {
  color: #ffe8ad;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 760;
  background: #fff8ec;
  border-radius: 8px;
}

.gallery-section {
  padding-bottom: clamp(76px, 9vw, 112px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(44, 20, 20, 0.1);
}

.gallery img:nth-child(4) {
  object-position: 55% center;
}

.gallery img:nth-child(1),
.gallery img:nth-child(2) {
  grid-column: span 6;
  aspect-ratio: 4 / 3;
}

.gallery img:nth-child(n + 3) {
  grid-column: span 3;
  aspect-ratio: 1;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(76px, 10vw, 120px);
  padding: clamp(30px, 5vw, 60px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel {
  display: grid;
  gap: 10px;
}

.contact-panel a {
  display: grid;
  gap: 4px;
  padding: 18px;
  text-decoration: none;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-panel a:hover {
  border-color: rgba(201, 8, 22, 0.35);
  box-shadow: 0 12px 28px rgba(201, 8, 22, 0.1);
}

.contact-panel span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel strong {
  overflow-wrap: anywhere;
}

.registration-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 92px) 0 clamp(76px, 10vw, 120px);
}

.registration-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 84px);
}

.registration-hero h1 {
  max-width: 11ch;
}

.registration-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.registration-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.38fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.registration-aside {
  position: sticky;
  top: 96px;
  padding: 28px;
  color: var(--paper);
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(91, 20, 20, 0.2);
}

.registration-aside img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: var(--paper);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.registration-aside h2 {
  margin-top: 24px;
  font-size: 1.7rem;
}

.registration-aside ol {
  display: grid;
  gap: 14px;
  padding-left: 22px;
  line-height: 1.55;
}

.registration-aside p {
  padding-top: 20px;
  margin: 24px 0 0;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.registration-aside a {
  color: var(--paper);
  font-weight: 850;
}

.registration-form {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 46px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-intro {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.form-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.registration-form fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.registration-form legend {
  margin-bottom: 18px;
  font-size: 1.14rem;
  font-weight: 900;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registration-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.registration-form textarea {
  resize: vertical;
}

.registration-form input:focus-visible,
.registration-form select:focus-visible,
.registration-form textarea:focus-visible,
.site-nav a:focus-visible,
.register-link:focus-visible,
.back-link:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(201, 8, 22, 0.32);
  outline-offset: 3px;
}

.language-toggle button:focus-visible {
  outline: 3px solid rgba(201, 8, 22, 0.32);
  outline-offset: 2px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.registration-form .choice-card {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.choice-card input,
.consent-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  margin-top: 2px;
  background: transparent;
  border: 0;
  accent-color: var(--red);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.full-width-field {
  margin-top: 18px;
}

.consent-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-status {
  flex: 1 1 240px;
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(135deg, var(--red-deep), #17080a);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 850;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .quick-info,
  .program-grid,
  .service-grid,
  .life-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro,
  .feature-band,
  .contact,
  .registration-hero,
  .registration-layout {
    grid-template-columns: 1fr;
  }

  .registration-aside {
    position: static;
  }

  .program-grid article {
    min-height: 240px;
  }

  .gallery img:nth-child(n) {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .registration-page .brand small,
  .registration-page .back-link,
  .registration-page .register-link.is-current {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto 42px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .quick-info {
    grid-template-columns: 1fr;
    margin-top: 0;
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding: 70px 0;
  }

  .program-grid,
  .service-grid,
  .life-grid,
  .two-columns,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .feature-band {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .gallery img:nth-child(n) {
    grid-column: auto;
    min-height: 0;
  }

  .contact {
    width: min(100% - 32px, 1180px);
    padding: 24px;
  }

  .registration-main {
    width: min(100% - 32px, 1180px);
    padding-top: 42px;
  }

  .registration-form {
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .site-header {
    gap: 10px;
    padding: 10px 14px;
  }

  .brand strong,
  .brand small {
    display: none;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .header-controls {
    gap: 5px;
  }

  .language-toggle button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .register-link {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.8rem;
  }
}
