/* ===================================================
   COMPONENTS — buttons, cards, sections, page layouts
   =================================================== */

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--h-sora);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #0E2F5C; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 4px 0 0 var(--amber);
}
.btn-gold:hover  { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--amber), var(--shadow-md); }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--amber); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--sky); border-color: var(--royal); }

.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ========== TRUST STRIP ========== */
.trust-strip {
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--ivory);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--h-sora);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.trust-item svg { color: var(--amber); flex-shrink: 0; }
@media (max-width: 760px) { .trust-row { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

/* ========== SUBJECT / FEATURE CARDS ========== */
.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--royal); }

.card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--royal);
  margin-bottom: 22px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.card:hover .icon-wrap { background: var(--sun); color: var(--ink); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); margin-bottom: 18px; }
.card .card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }

.card-arc {
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  right: -60px; bottom: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(242,184,39,0.14), rgba(242,184,39,0) 70%);
  pointer-events: none;
  will-change: transform;
  transition: background 0.55s var(--ease), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover .card-arc {
  background: radial-gradient(circle at 30% 30%, rgba(242,184,39,0.55), rgba(242,184,39,0.1) 70%);
  animation: cardArcSway 3s ease-in-out infinite;
}
@keyframes cardArcSway {
  0%   { transform: translate(0px,   0px); }
  20%  { transform: translate(-7px, -11px); }
  45%  { transform: translate(9px,  -16px); }
  70%  { transform: translate(-5px,  -9px); }
  100% { transform: translate(0px,   0px); }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover .card-arc { animation: none; }
}

/* ========== TUITION FORMAT CARDS ========== */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .formats { grid-template-columns: 1fr; } }

.format {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.format:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.format:hover .card-arc {
  background: radial-gradient(circle at 30% 30%, rgba(242,184,39,0.55), rgba(242,184,39,0.1) 70%);
  animation: cardArcSway 3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .format:hover .card-arc { animation: none; }
}
.format .label {
  font-family: var(--h-sora);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}
.format h3 { font-size: 1.3rem; }
.format ul { list-style: none; padding: 0; margin: 0; }
.format li {
  padding: 8px 0;
  border-top: 1px solid var(--line-2);
  color: var(--slate);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.format li:first-child { border-top: 0; }
.format li svg { color: var(--royal); flex-shrink: 0; }

/* ========== WHY CHOOSE SECTION ========== */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 36px; } }

.why-list { display: grid; gap: 18px; }
.why-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line-2);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.why-item:hover { background: var(--sky); border-color: var(--royal); }
.why-item .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--sun);
  font-family: var(--h-sora); font-weight: 700; font-size: 16px;
}
.why-item h4 {
  font-family: var(--h-sora); font-weight: 600; color: var(--ink); font-size: 17px; margin-bottom: 4px;
}
.why-item p { margin: 0; color: var(--slate); font-size: 15px; }

/* ========== QUOTE BAND ========== */
.quote-band { padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.quote-inner { max-width: 900px; margin: 0 auto; text-align: center; padding: 0 24px; position: relative; }

.quote-mark {
  font-family: var(--a-serif); font-weight: 500;
  font-size: 180px; line-height: 0.5;
  color: var(--sun); opacity: .9; margin-bottom: 36px; display: block;
}
.quote-body {
  font-family: var(--a-serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.35;
  color: var(--paper); letter-spacing: -0.005em;
}
.quote-attrib {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--h-sora); font-weight: 600; color: var(--sun);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
}
.quote-attrib::before, .quote-attrib::after {
  content: ""; width: 32px; height: 1px; background: var(--sun); opacity: .5;
}

.ink-bg .deco-arc {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07); pointer-events: none;
}
.ink-bg .deco-1 { width: 520px; height: 520px; left: -180px; top: -200px; }
.ink-bg .deco-2 { width: 320px; height: 320px; right: -80px; bottom: -120px; border-color: rgba(242,184,39,0.18); }

/* ========== FEES TEASER (HOME) ========== */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
@media (max-width: 900px) { .teaser-grid { grid-template-columns: 1fr; } }

.teaser-card {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column;
}
.teaser-card h3 { margin-bottom: 12px; }
.teaser-card p { color: var(--slate); }
.teaser-card .spacer { flex: 1; }

/* ========== CTA BAND ========== */
.cta-band { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .cta-band-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ========== INNER PAGE HERO ========== */
.page-hero { padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 80px); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { max-width: 900px; }
.page-hero .lede { color: var(--slate); font-size: 1.15rem; max-width: 680px; margin-top: 20px; }

/* ========== TWO-COLUMN LAYOUT ========== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

/* ========== EDITORIAL QUOTE ========== */
.editorial-quote {
  border-left: 3px solid var(--sun);
  padding: 8px 0 8px 28px;
  font-family: var(--a-serif); font-style: italic;
  font-size: 1.4rem; color: var(--ink); line-height: 1.4; margin: 28px 0;
}

/* ========== ART OF EDUCATION CARD ========== */
.art-ed-card {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl); padding: 44px; position: relative; overflow: hidden;
}
.art-ed-card .serif-big {
  font-family: var(--a-serif); font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500;
  color: var(--sun); line-height: 1; margin-bottom: 16px;
}
.art-ed-card h3 { color: var(--paper); font-size: 1.5rem; margin-bottom: 16px; }
.art-ed-card p { color: #C9D6E8; }

/* ========== SUBJECT BIG CARDS ========== */
.subject-big {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px;
  padding: 44px; border-radius: var(--r-xl);
  background: var(--paper); border: 1px solid var(--line-2);
  margin-bottom: 28px; align-items: start;
}
@media (max-width: 760px) { .subject-big { grid-template-columns: 1fr; padding: 28px; gap: 28px; } }

.subject-big .sb-left {
  display: flex; flex-direction: column; gap: 18px;
  padding-right: 32px; border-right: 1px solid var(--line-2);
}
@media (max-width: 760px) {
  .subject-big .sb-left {
    border-right: 0; border-bottom: 1px solid var(--line-2);
    padding-right: 0; padding-bottom: 20px;
  }
}

.subject-big .sb-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--sky); color: var(--royal); display: grid; place-items: center;
}
.subject-big h2 { font-size: 1.8rem; }
.subject-big .grade-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.subject-big p { color: var(--slate); }

.subject-big .sb-right ul {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
@media (max-width: 640px) { .subject-big .sb-right ul { grid-template-columns: 1fr; } }
.subject-big .sb-right li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--deep); font-size: 15px; padding: 6px 0;
}
.subject-big .sb-right li svg { color: var(--amber); flex-shrink: 0; margin-top: 4px; }

/* ========== FEES GRID ========== */
.fees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .fees-grid { grid-template-columns: 1fr; } }

.fee-card {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 32px;
  display: flex; flex-direction: column; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.fee-card.featured {
  border-color: var(--ink); background: var(--ink); color: var(--paper);
  transform: translateY(-6px);
}
.fee-card.featured h3, .fee-card.featured .price-range { color: var(--paper); }
.fee-card.featured p { color: #C9D6E8; }
.fee-card.featured .fee-badge { background: var(--sun); color: var(--ink); }
.fee-card:hover { box-shadow: var(--shadow-md); }

.fee-badge {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--h-sora); font-weight: 600; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  background: var(--sky); color: var(--royal);
}
.fee-card .fee-label {
  font-family: var(--h-sora); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber); font-weight: 600; margin-bottom: 8px;
}
.fee-card.featured .fee-label { color: var(--sun); }
.fee-card h3 { font-size: 1.35rem; margin-bottom: 14px; }

.fee-card .price-range {
  font-family: var(--h-sora); font-weight: 600; color: var(--ink);
  font-size: 1.05rem; margin: 14px 0 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.fee-card .price-range .tbd {
  font-family: var(--h-sora); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em;
}
.fee-card .price-range .cycle {
  font-family: var(--b-sans); font-weight: 400; font-size: 14px; color: var(--slate);
}
.fee-card.featured .price-range .cycle { color: #AEBCCE; }

.fee-card ul { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.fee-card li {
  padding: 10px 0; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px; font-size: 15px;
}
.fee-card.featured li { border-top-color: #2C4A72; }
.fee-card li:first-child { border-top: 0; }
.fee-card li svg { color: var(--amber); flex-shrink: 0; }

.fee-note {
  margin-top: 32px; padding: 20px 24px;
  background: var(--sky); border-radius: var(--r-md); border-left: 3px solid var(--royal);
  font-size: 14.5px; color: var(--slate); display: flex; gap: 14px; align-items: flex-start;
}
.fee-note svg { color: var(--royal); flex-shrink: 0; margin-top: 3px; }

/* ========== REGISTRATION STEPS ========== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 28px; position: relative;
}
.step .step-num {
  position: absolute; top: -14px; left: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sun); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--h-sora); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm);
}
.step .step-icon { color: var(--royal); margin-bottom: 14px; }
.step h4 { font-family: var(--h-sora); color: var(--ink); font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 14px; margin: 0; }

/* ========== CONTACT PAGE ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-methods { display: grid; gap: 14px; }
.contact-method {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center;
  padding: 20px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line-2);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
}
.contact-method:hover { border-color: var(--royal); background: var(--sky); transform: translateX(2px); }
.contact-method .ci {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sky); color: var(--royal); display: grid; place-items: center;
}
.contact-method:hover .ci { background: var(--sun); color: var(--ink); }
.contact-method .cm-label {
  font-family: var(--h-sora); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 2px;
}
.contact-method .cm-val { font-family: var(--h-sora); font-weight: 600; color: var(--ink); font-size: 15px; }

/* ========== ENQUIRY FORM ========== */
.form { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 36px; }
.form h3 { margin-bottom: 6px; }
.form p.sub { color: var(--slate); margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--h-sora); font-weight: 500;
  font-size: 13px; color: var(--deep); margin-bottom: 8px; letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--paper); color: var(--deep);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(30,92,170,0.12);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ========== MAP BLOCK ========== */
.map-block {
  background: linear-gradient(180deg, #DBE6F5 0%, #EAF2FB 100%);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  aspect-ratio: 16/10; position: relative; overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,92,170,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,92,170,0.10) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map-road {
  position: absolute; height: 6px;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line-2); border-radius: 3px;
}
.map-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
}
.map-pin .ring {
  position: absolute; left: 50%; top: 100%;
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--sun);
  transform: translate(-50%, -50%);
  animation: pulse 2.4s var(--ease) infinite;
}
.map-pin svg { filter: drop-shadow(0 6px 14px rgba(18,59,116,0.35)); }

@keyframes pulse {
  0%   { transform: translate(-50%,-50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(2.8); opacity: 0; }
}

.map-label {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--paper); padding: 12px 16px; border-radius: 12px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line-2);
  display: flex; gap: 10px; align-items: center;
  font-family: var(--h-sora); font-weight: 600; color: var(--ink); font-size: 14px;
}
.map-label svg { color: var(--amber); }

/* ========== FAQ ACCORDION ========== */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }

details.faq-item {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .25s var(--ease);
}
details.faq-item[open] { border-color: var(--royal); }

details.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--h-sora); font-weight: 600; color: var(--ink); font-size: 16.5px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .chev {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sky); color: var(--royal); display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
details.faq-item[open] summary .chev {
  transform: rotate(180deg); background: var(--sun); color: var(--ink);
}
details.faq-item .faq-body { padding: 0 24px 22px; color: var(--slate); max-width: 720px; }

/* ===================================================
   GREEN HIGHLIGHTER — shared across all page heroes
   SVG polygon as background-image preserves the hand-
   drawn tilt; display:inline + box-decoration-break:clone
   keeps the highlight tight to the text on each line.
   =================================================== */
.hl {
  display: inline;
  padding: 0.05em 0.12em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='1,12 99,6 100,94 0,90' fill='rgba(178,233,132,0.75)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 0% 88%;
  background-position: 0% 55%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: hlSweep 1.1s var(--ease) .35s both;
}
.hl.hl-2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,8 100,14 99,92 1,88' fill='rgba(178,233,132,0.72)'/%3E%3C/svg%3E");
  animation-delay: .6s;
}
.hl.hl-3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='2,14 100,8 99,92 0,96' fill='rgba(178,233,132,0.78)'/%3E%3C/svg%3E");
  animation-delay: .85s;
}
@keyframes hlSweep {
  from { background-size: 0% 88%; }
  to   { background-size: 100% 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .hl { animation: none; background-size: 100% 88%; }
}
