@font-face {
  font-family: "Russo One";
  src: url("../fonts/russo-one/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo/Cairo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange-yellow: #FDBF2D;
  --black: #0A0A0A;
  --ivory: #FFF8E8;
  --sand: #E4D2A8;
  --umber: #493D2C;
  --teal: #16534C;
  --sand-wash: rgba(228,210,168,.35);
  --font: Roboto, "Segoe UI", Arial, sans-serif;
  --wrap: 1110px;
  --radius: 15px;
  --shadow: 0 3px 12px rgba(73,61,44,.12);
  --header-height: 80px;
  --sheen-stripe: linear-gradient(110deg, transparent 43%, rgba(255,248,232,.24) 50%, transparent 57%);
  --sheen-size: 280% 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 14px); }
body { margin: 0; color: var(--black); background: var(--orange-yellow); font: 16px/1.55 var(--font); }
button, input, textarea, select { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
.icon { display: inline-block; width: 1.12em; height: 1.12em; flex: 0 0 auto; vertical-align: -.15em; }
.wrap, .header-wrap { width: min(calc(100% - 44px), var(--wrap)); margin-left: auto; margin-right: auto; }
::selection { background: var(--black); color: var(--ivory); }

.btn { display: inline-flex; justify-content: center; align-items: center; text-align: center; gap: 7px; min-height: 42px; padding: 10px 22px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; line-height: 1.3; font-weight: 700; cursor: pointer; transition: box-shadow .16s, transform .16s, background .16s; }
.btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(10,10,10,.18); }
.btn-primary { color: var(--ivory); background: var(--black); }
.btn-sheen {
  box-shadow: var(--shadow);
  background-image:
    var(--sheen-stripe),
    var(--button-underlay, linear-gradient(110deg, var(--black), var(--umber)));
  background-size: var(--sheen-size), 100% 100%;
  background-position: var(--sheen-position, 100%) 0, 0 0;
  background-repeat: no-repeat;
}

@property --sheen-position {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}
@property --sheen-halo {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* Both tracks share a 3.00 s hold and a 1.80 s pass. */
@keyframes shared-sheen {
  0%, 62.5% { --sheen-position: 100%; --sheen-halo: 0; }
  81.25% { --sheen-halo: 1; }
  100% { --sheen-position: 0%; --sheen-halo: 0; }
}

.sheen-image { display: block; position: relative; }
.sheen-image > img { width: 100%; height: auto; }
.sheen-image > img:first-child { display: block; }
.sheen-image > .sheen-copy { position: absolute; inset: 0; }
.sheen-copy, .frieze-sheen { display: none; }

@media screen and (prefers-reduced-motion: no-preference) {
  /* This element survives language changes and supplies the phase to newly shown controls. */
  #site { animation: shared-sheen 4.8s ease-in-out infinite; }
  .btn-sheen, .btn-sheen:not(:disabled):hover {
    box-shadow: var(--shadow), 0 0 0 calc(4px * var(--sheen-halo)) rgba(73,61,44,calc(.24 * var(--sheen-halo)));
    transition-property: transform, background-color, border-color;
  }
  @supports (mask-image: linear-gradient(black, transparent)) {
    .section-title-text::before, .section-title-text::after { content: ""; z-index: 1; }
    .sheen-copy, .frieze-sheen { display: block; z-index: 1; }
    .sheen-copy, .section-title-text::before, .section-title-text::after, .frieze-sheen {
      /* Tint a copy of the PNG. The moving mask needs no external image, even on file://. */
      filter: url("#sheen-ink");
      mask: var(--sheen-stripe) var(--sheen-position, 100%) 0 / var(--sheen-size) no-repeat;
      pointer-events: none;
    }
  }
}

label { display: block; font-size: 15px; font-weight: 650; margin: 16px 0 5px; }
input:not([type="range"]), select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--umber); border-radius: 7px; background: var(--ivory); color: var(--black); }
input::placeholder, textarea::placeholder { color: var(--umber); opacity: 1; }
textarea { display: block; resize: vertical; }
input[type="range"] { display: block; width: 100%; margin: 12px 0 20px; accent-color: var(--teal); }
fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { opacity: 1; color: var(--black); cursor: default; }

.phone-mask { white-space: nowrap; font-variant-numeric: tabular-nums; }

.section { padding: 64px 0; }
.tinted { background: var(--ivory); }
.section-heading { display: flex; justify-content: center; text-align: center; margin-bottom: calc(var(--heading-gap) - var(--heading-ink-bottom, 2px)); }
.section-heading h2 { --title-line: 1.16em; display: inline-block; font-size: clamp(28px,3.05vw,40px); line-height: var(--title-line); letter-spacing: -.7px; }

.section-heading > h2 {
  --heading-star-size: clamp(27px, 3.3vw, 39px);
  font-family: "Russo One", var(--font);
  font-weight: 400;
  position: relative;
  max-width: 100%;
  padding: 0 calc(var(--heading-star-size) + clamp(4px, .8vw, 11px));
  overflow-wrap: break-word;
}

html[lang="ar"] .section-heading > h2,
:is(#timeline, #social, #faq) .section-heading > h2:is(:lang(ur), :lang(fa)) {
  font-family: "Cairo", var(--font);
  font-weight: 700;
  --title-line: 1.45em;
  line-height: var(--title-line);
  letter-spacing: normal;
}

#timeline .section-heading > h2:lang(ar) {
  --title-line: 1.65em;
}

:is(#timeline, #social, #faq) .section-heading > h2:is(:lang(hi), :lang(ne), :lang(bn)) {
  --title-line: 1.45em;
  letter-spacing: normal;
}

/* Paint across each full line so overhanging glyphs keep their edges at wraps. */
.section-title-text { display: block; color: #45311D; }

:is(#timeline, #social, #faq) .section-title-text:is(:lang(hi), :lang(ne), :lang(bn), :lang(fa), :lang(ku)) {
  margin-inline: -2px;
  padding-inline: 2px;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .section-title-text {
    background-image: linear-gradient(180deg, #45311D 0%, #6C4C2B 48%, #392A20 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-size: 100% var(--title-line, 1.2em);
    background-repeat: repeat-y;
  }
}

@media (forced-colors: active) {
  .section-title-text {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

.section-heading > h2::before,
.section-heading > h2::after,
.section-title-text::before,
.section-title-text::after {
  position: absolute;
  top: 50%;
  width: var(--heading-star-size);
  height: var(--heading-star-size);
  transform: translateY(-50%);
  background: url("../images/section-star-gold.png") center / contain no-repeat;
  pointer-events: none;
}

.section-heading > h2::before, .section-heading > h2::after { content: ""; }
.section-heading > h2::before, .section-title-text::before { left: 0; }
.section-heading > h2::after, .section-title-text::after { right: 0; }

.card-grid, .program-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 25px; }
.info-card, .program-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; background: var(--ivory); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; overflow: hidden; }
.info-card::before, .program-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--orange-yellow); }
.info-card, .program-card, .timeline article, .lb-card, .lb-place, .lb-geography {
  transition: box-shadow .2s, transform .2s;
}
.info-card:hover, .program-card:hover, .timeline article:hover, .lb-card:hover, .lb-place:hover, .lb-geography:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(73,61,44,.16);
}
.circle-icon { width: 69px; height: 69px; display: grid; place-items: center; flex-shrink: 0; background: var(--teal); color: var(--ivory); border-radius: 50%; }
.circle-icon .icon { width: 34px; height: 34px; }
.info-card h3 { margin: 22px 0 13px; font-size: 20px; }
.info-card p, .description { color: var(--umber); line-height: 1.6; margin-bottom: 23px; }
.badge { margin-top: auto; color: var(--black); background: var(--sand); padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 13px; }

.work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; align-items: start; }
.calc-panel, .plan-card { border-radius: var(--radius); padding: 30px; background: var(--ivory); box-shadow: var(--shadow); }
.calc-panel h3, .plan-card h3 { font-size: 22px; margin-bottom: 20px; }

.accordions { max-width: 865px; margin: 0 auto; }
details { overflow: hidden; margin-bottom: 11px; border: 1px solid var(--sand); border-radius: 10px; background: var(--ivory); box-shadow: 0 2px 9px rgba(73,61,44,.06); }
summary { display: flex; align-items: center; gap: 13px; padding: 18px 22px; font-weight: 650; list-style: none; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary .icon { color: var(--teal); }
summary .icon:last-child, .expand-sign { margin-inline-start: auto; }
summary:focus-visible { outline-offset: -4px; }
details[open] summary { background: var(--sand); }
details[open] summary .icon:last-child { transform: rotate(180deg); }
.detail-body { padding: 5px 22px 17px; }
.detail-body p { margin-top: 11px; }

.text-imprint i { height: 6px; border-radius: 6px; background: var(--sand); width: 51%; }

@media (max-width: 970px) {
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section { padding: 56px 0; }
  .section-heading > h2 {
    max-width: calc(100% + 12px);
    margin-left: -6px;
    margin-right: -6px;
  }
}

@media (max-width: 710px) {
  .wrap, .header-wrap { width: calc(100% - 32px); }
  .section { padding: 47px 0; }
  .card-grid, .program-grid { gap: 15px; }
  .info-card, .program-card { padding: 23px; }
}

@media (max-width: 490px) {
  .card-grid { grid-template-columns: minmax(0,1fr); }
  .circle-icon { width: 54px; height: 54px; }
  .info-card h3 { margin: 17px 0 9px; }
  summary { padding: 16px; }
}

@media (max-width: 340px) {
  /* Let the stars use part of the side gutters so the heading can wrap naturally. */
  .section-heading > h2 { max-width: calc(100% + 28px); margin: 0 -14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@supports not (inset: 0) {
  .btn .icon { margin: 0 6px; }
}
