/* =====================================================================
   SVY — Benefits page (SVY Premium Plan, 11 benefits)
   Builds on svy-home.css (tokens, buttons, premium band, scholarship
   table, FAQ, lightbox) and svy-about.css (page hero, pop-out photos).
   Everything is scoped under .svyx.
   ===================================================================== */

/* ---------- hero ring badge ---------- */
.sx-hero-ring {
    position: absolute; right: 0; top: 2%; width: 32%; z-index: 3;
    translate: calc(var(--mx) * -24px) calc(var(--my) * -16px);
    animation: sx-pop .7s var(--ease) .9s both;
}
.sx-hero-ring .sx-ring { width: 100%; max-width: none; margin: 0; }
.sx-hero-ring .sx-ring text { fill: var(--navy); }
[data-theme="dark"] .svyx .sx-hero-ring .sx-ring text { fill: var(--gold); }
.sx-hero-page .sx-h1-en { margin-top: 12px; }

/* ---------------------------------------------------------------------
   At a glance
   --------------------------------------------------------------------- */
.sx-glance { background: var(--bg); padding-top: clamp(44px, 5vw, 72px); }
.sx-glance-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sx-glance-grid a {
    position: relative; overflow: hidden; height: 100%;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 16px 14px 16px; border-radius: 20px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: box-shadow .3s var(--ease), border-color .3s;
}
.sx-glance-grid a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--c1), var(--c2)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease);
}
.sx-glance-grid a:hover { border-color: var(--c2); box-shadow: var(--shadow); }
.sx-glance-grid a:hover::after { transform: scaleX(1); }
.sx-glance-grid a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sx-glance-grid .no { position: absolute; right: 10px; top: 2px; font-family: var(--f-head); font-weight: 800; font-size: 34px; line-height: 1; color: var(--c2); opacity: .16; }
.sx-glance-grid .ic {
    width: 44px; height: 44px; border-radius: 14px; margin-bottom: 4px; display: grid; place-items: center;
    color: #fff; font-size: 18px; background: radial-gradient(circle at 30% 26%, var(--c1), var(--c2));
    box-shadow: 0 8px 18px var(--glow); transition: transform .45s var(--ease);
}
.sx-glance-grid a:hover .ic { transform: rotate(-10deg) scale(1.08); }
.sx-glance-grid b { font-family: var(--f-head); font-weight: 800; font-size: 18px; line-height: 1.15; color: var(--c2); }
.sx-glance-grid .nm { font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--ink-2); }
.sx-glance-grid li.total a { background: linear-gradient(135deg, #0A2A66, #1D74E0); border-color: transparent; }
.sx-glance-grid li.total .ic { background: linear-gradient(135deg, #FFE27A, #F5A300); color: #2B1B00; box-shadow: 0 8px 18px rgba(245, 163, 0, .35); }
.sx-glance-grid li.total b { color: var(--gold); font-size: 22px; }
.sx-glance-grid li.total .nm { color: #fff; }
.sx-glance-grid li.total a::after { background: var(--gold); }

/* ---------------------------------------------------------------------
   Benefit groups + cards
   --------------------------------------------------------------------- */
.sx-bgroup.g-money { background: var(--bg-alt); }
.sx-bgroup.g-edu { background: var(--bg-warm); }
.sx-bgroup.g-protect { background: var(--bg); }

.sx-bcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.g-money .sx-bcards { grid-template-columns: repeat(3, 1fr); }

.sx-bcard {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px;
    padding: 26px 26px 24px; border-radius: 26px; scroll-margin-top: 100px;
    background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--c2); box-shadow: var(--shadow-sm);
}
.sx-bcard:hover { box-shadow: var(--shadow-lg); }
.sx-bcard:target { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg); }
.sx-bcard::before {
    content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
    right: -90px; top: -110px; background: var(--soft); transition: transform .7s var(--ease);
}
.sx-bcard:hover::before { transform: scale(1.3); }
.sx-bcard > * { position: relative; }
.sx-bcard .top { display: grid; grid-template-columns: 54px 1fr 60px; gap: 14px; align-items: start; }
.sx-bcard .no {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--f-head); font-weight: 800; font-size: 25px; line-height: 1; color: #fff;
    background: radial-gradient(circle at 30% 26%, var(--c1), var(--c2)); box-shadow: 0 0 0 6px var(--soft), 0 10px 20px var(--glow);
}
.sx-bcard.in-view .no { animation: sx-pop .6s var(--ease) .2s both; }
.sx-bcard h3 { font-size: 21px; font-weight: 800; line-height: 1.2; color: var(--head-ink); margin: 2px 0 6px; }
.sx-bcard h3 small { font-size: 13px; font-weight: 700; color: var(--muted); }
.sx-bcard .amt { margin: 0; line-height: 1.1; }
.sx-bcard .amt b { font-family: var(--f-head); font-size: clamp(24px, 2.3vw, 31px); font-weight: 800; color: var(--c2); }
.sx-bcard .amt span { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.sx-bcard .ic {
    width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
    font-size: 26px; color: var(--c2); background: var(--soft); transition: transform .45s var(--ease);
}
.sx-bcard:hover .ic { transform: rotate(-10deg) scale(1.08); }
.sx-bcard .pts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sx-bcard .pts li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sx-bcard .pts li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; font-size: 10px; color: var(--c2); background: var(--soft);
}

/* mini visuals */
.sx-bcard .viz { margin-top: auto; }
.viz.years { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.viz.years span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.viz.years i { position: relative; display: block; width: 100%; height: 28px; border-radius: 8px; background: var(--line); overflow: hidden; }
.viz.years i::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(180deg, var(--c1), var(--c2));
    transform: scaleY(0); transform-origin: 50% 100%;
    transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 90ms + .3s);
}
.sx-bcard.in-view .viz.years i::after { transform: scaleY(1); }
.viz.years small { font-size: 10.5px; font-weight: 800; color: var(--muted); }

.viz.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.viz.steps span {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.viz.steps span i { color: var(--c2); }
.viz.steps span.hl { background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; color: #fff; }
.viz.steps span.hl i { color: #fff; }
.viz.steps em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--c2); }
.viz.steps em::before, .viz.steps em::after { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }

.viz.split { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.viz.split span {
    display: flex; flex-direction: column; align-items: flex-start; padding: 9px 14px; border-radius: 14px;
    background: var(--surface-2); border: 1px solid var(--line);
}
.viz.split span i { color: var(--c2); margin-bottom: 3px; }
.viz.split span b { font-family: var(--f-head); font-weight: 800; font-size: 18px; line-height: 1.1; color: var(--head-ink); }
.viz.split span small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.viz.split span.hl { background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; }
.viz.split span.hl b, .viz.split span.hl small { color: #fff; }
.viz.split > i { font-style: normal; font-family: var(--f-head); font-weight: 800; font-size: 22px; color: var(--muted); }

.viz.photo { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 9; background: var(--soft); }
.viz.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .9s var(--ease); }
.sx-bcard:hover .viz.photo img { transform: scale(1.05); }
.viz.photo .chips { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.viz.photo .chips span {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px;
    background: rgba(255, 255, 255, .94); box-shadow: 0 8px 18px rgba(10, 42, 102, .2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.viz.photo .chips.top { top: 10px; bottom: auto; justify-content: flex-end; }
.viz.photo .chips i { color: var(--c2); }
.viz.photo .chips b { font-family: var(--f-head); font-weight: 800; font-size: 16px; color: #0A2A66; line-height: 1; }
.viz.photo .chips small { font-size: 11.5px; font-weight: 700; color: #4F6080; }
.viz.link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--c2); text-decoration: none; }
.viz.link:hover { text-decoration: underline; color: var(--c2); }

/* scholarship ladder */
#class-table { scroll-margin-top: 100px; }
.sx-ladder { padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sx-ladder h3 { font-size: 22px; font-weight: 800; color: var(--head-ink); margin: 0 0 4px; }
.sx-ladder > p { font-size: 14.5px; color: var(--muted); margin: 0; }
.sx-ladder ol { position: relative; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.sx-ladder ol::before {
    content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, #34B34A, #E6195E, #1D74E0);
}
.sx-ladder li { position: relative; padding-left: 64px; min-height: 46px; }
.sx-ladder .dot {
    position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 17px;
    background: radial-gradient(circle at 30% 26%, var(--c1), var(--c2)); box-shadow: 0 0 0 5px var(--surface), 0 8px 18px var(--glow);
}
.sx-ladder .lbl { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.sx-ladder .amt { display: block; font-family: var(--f-head); font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--c2); }
.sx-ladder small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------------
   Total value band (re-uses .sx-premium styles from svy-home.css)
   --------------------------------------------------------------------- */
.sx-value-band .sx-offer { margin-top: 18px; }

/* ---------------------------------------------------------------------
   Compare table
   --------------------------------------------------------------------- */
.sx-compare { background: var(--bg-alt); }
.sx-compare-wrap {
    max-width: 1000px; margin: 0 auto; overflow: hidden; border-radius: 28px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.sx-compare-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.sx-compare-table col.c-name { width: 40%; }
.sx-compare-table col.c-reg { width: 28%; }
.sx-compare-table col.c-prem { width: 32%; }
.sx-compare-table thead th {
    padding: 22px 16px; text-align: center; vertical-align: bottom; line-height: 1.2;
    font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.sx-compare-table thead th:first-child { text-align: left; padding-left: 24px; }
.sx-compare-table thead th span, .sx-compare-table thead th b, .sx-compare-table thead th small, .sx-compare-table thead th em { display: block; }
.sx-compare-table thead th.reg { background: linear-gradient(135deg, #2FA84A, #137A33); color: #fff; }
.sx-compare-table thead th.prem { background: linear-gradient(135deg, #1D74E0, #0A2A66); color: #fff; }
.sx-compare-table thead th b { font-family: var(--f-head); font-size: 30px; font-weight: 800; letter-spacing: 0; text-transform: none; margin: 4px 0 2px; }
.sx-compare-table thead th small { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: none; opacity: .9; }
.sx-compare-table thead th em {
    width: max-content; margin: 0 auto 8px; padding: 4px 12px; border-radius: 999px; font-style: normal; font-size: 11px;
    background: linear-gradient(135deg, #FFE27A, #F5A300); color: #2B1B00;
}
.sx-compare-table tbody th, .sx-compare-table tbody td { padding: 14px 14px; border-top: 1px solid var(--line); transition: background-color .2s; }
.sx-compare-table tbody th { text-align: left; padding-left: 24px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.sx-compare-table tbody td { text-align: center; font-family: var(--f-head); font-size: 16.5px; font-weight: 700; color: var(--head-ink); }
.sx-compare-table tbody td.prem { background: rgba(29, 116, 224, .05); }
.sx-compare-table tbody tr:hover th, .sx-compare-table tbody tr:hover td { background: var(--surface-2); }
.sx-compare-table tbody tr:hover td.prem { background: rgba(29, 116, 224, .1); }
.sx-compare-table .yes-ic i { color: #34B34A; margin-right: 4px; }
.sx-compare-table .no-inc i { color: var(--muted); opacity: .45; }
.sx-compare-table tfoot td { padding: 18px 12px 24px; text-align: center; border-top: 1px solid var(--line); }
.sx-compare-table tfoot td.prem { background: rgba(29, 116, 224, .05); }
.sx-compare-table tfoot .sx-btn { padding: 10px 20px; font-size: 14px; }
[data-theme="dark"] .svyx .sx-compare-table tbody td.prem,
[data-theme="dark"] .svyx .sx-compare-table tfoot td.prem { background: rgba(111, 178, 255, .06); }

/* ---------------------------------------------------------------------
   Why it matters / programs
   --------------------------------------------------------------------- */
.sx-why-matter { background: var(--bg); padding: clamp(56px, 6vw, 84px) 0; }
.sx-why-matter .sx-promise-row li small { display: block; max-width: 210px; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--muted); }

.sx-programs { background: var(--bg-warm); }
.sx-program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.sx-program {
    display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px 20px 20px; border-radius: 22px;
    text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line);
    border-bottom: 4px solid var(--c2); box-shadow: var(--shadow-sm);
    transition-property: opacity, transform, box-shadow;
}
.sx-program:hover { box-shadow: var(--shadow-lg); color: inherit; }
.sx-program .ic {
    width: 56px; height: 56px; border-radius: 16px; margin-bottom: 6px; display: grid; place-items: center;
    color: #fff; font-size: 22px; background: radial-gradient(circle at 30% 26%, var(--c1), var(--c2)); box-shadow: 0 10px 20px var(--glow);
}
.sx-program h3 { font-size: 18px; font-weight: 800; color: var(--head-ink); margin: 0; }
.sx-program p { flex: 1; font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.sx-program .more { font-size: 13.5px; font-weight: 800; color: var(--c2); }
.sx-program .more i { transition: transform .3s var(--ease); }
.sx-program:hover .more i { transform: translateX(5px); }

.sx-faq .sx-broch-view { aspect-ratio: 2 / 3; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .sx-glance-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991.98px) {
    .g-money .sx-bcards, .sx-bcards { grid-template-columns: 1fr 1fr; }
    .sx-glance-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    .g-money .sx-bcards, .sx-bcards { grid-template-columns: 1fr; }
    .sx-compare-table col.c-name { width: 38%; }
    .sx-compare-table col.c-reg { width: 29%; }
    .sx-compare-table col.c-prem { width: 33%; }
    .sx-compare-table thead th { padding: 16px 8px; font-size: 11px; letter-spacing: .04em; }
    .sx-compare-table thead th:first-child { padding-left: 14px; }
    .sx-compare-table thead th b { font-size: 21px; }
    .sx-compare-table thead th small { display: none; }
    .sx-compare-table tbody th { padding: 12px 8px 12px 14px; font-size: 13px; }
    .sx-compare-table tbody td { padding: 12px 6px; font-size: 13.5px; line-height: 1.3; }
    .sx-compare-table .yes-ic { display: none; }
    .sx-compare-table tfoot td { padding: 14px 6px 18px; }
    .sx-compare-table tfoot .sx-btn { padding: 9px 10px; font-size: 12px; }
}
@media (max-width: 575.98px) {
    .sx-glance-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sx-glance-grid a { padding: 14px 12px; }
    .sx-glance-grid b { font-size: 16.5px; }
    .sx-bcard { padding: 22px 18px 20px; }
    .sx-bcard .top { grid-template-columns: 46px 1fr; }
    .sx-bcard .no { width: 46px; height: 46px; font-size: 21px; }
    .sx-bcard .ic { display: none; }
    .sx-bcard h3 { font-size: 19px; }
    .viz.years { gap: 3px; }
    .viz.years small { font-size: 9px; }
    .sx-hero-ring { width: 36%; }
    .sx-ladder { padding: 22px 18px; }
    .sx-compare-wrap { border-radius: 20px; }
    .sx-program-grid { grid-template-columns: 1fr; gap: 12px; }
    .sx-program { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; padding: 18px 16px; }
    .sx-program .ic { grid-row: span 3; width: 52px; height: 52px; margin: 0; font-size: 20px; }
    .sx-faq .sx-broch { max-width: 300px; margin: 0 auto; }
    .viz.split span b { font-size: 16px; }
}
