/* Styles for accounts/landing.html.
   Moved out of the template's inline <style> block into this static file so the browser downloads it
   once and caches it (an inline block was re-sent inside the HTML on every visit). Linked from the
   template's {% block page_css %}, which base.html places in <head> after its own CSS - the same
   cascade order the inline block had. */

/* ==========================================================
   Yael Masters - landing page
   Your own palette (navy, orange, blue) with Apple-style
   polish: soft radii, calm shadows, smooth motion, generous
   whitespace. Fonts are inherited from your base template.

   To retune the page, edit the tokens below.
========================================================== */
:root {
    /* The colour roles this page uses (--ym-ink, --ym-ink-2, --ym-body,
       --ym-muted, --ym-card, --ym-line, --ym-edge, --ym-orange*, --ym-blue*,
       --ym-green, --ym-red) are defined ONCE for the whole site, light and
       dark, in static/css/ym-theme.css - this page started that naming and
       the rest of the site now follows it. Only what is unique to the
       landing page is set here. */
    --ym-bs-blue: var(--ym-accent);

    --ym-grad-orange: linear-gradient(135deg, #f39c12, #e67e22);
    --ym-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* demo banner text: navy reads best on orange. Set to #fff for white text. */
    --ym-demo-fg: #1a252f;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.ym {
    font-family: inherit;
    color: var(--ym-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
.ym h1, .ym h2, .ym h3, .ym h4, .ym h5, .ym p { margin-top: 0; }

/* Arabic joins its letters, so tracking must stay at zero */
.ym [lang="ar"], .ym .ar-text,
#scholarshipInfoModal [lang="ar"], #scholarshipInfoModal .ar-text {
    letter-spacing: 0 !important;
}
:where(.ym [lang="ar"], .ym .ar-text, #scholarshipInfoModal [lang="ar"], #scholarshipInfoModal .ar-text) {
    line-height: 1.8;
}

.ym :focus-visible,
#scholarshipInfoModal :focus-visible {
    outline: 3px solid var(--ym-blue);
    outline-offset: 3px;
}

/* ---------- Shared pieces ---------- */
.ym-section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

.ym-head { text-align: center; max-width: 52rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.ym-title {
    font-size: clamp(1.8rem, 3.8vw, 2.9rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ym-ink);
    margin-bottom: 0.75rem;
    text-wrap: balance;
}
.ym .ym-title[lang="ar"] { line-height: 1.5; }
.ym .nowrap { white-space: nowrap; }
.ym-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ym-muted); margin: 0; }

.ym-btn, .btn-cta, .btn-demo {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: 0; border-radius: 980px;
    padding: 0.85rem 1.7rem;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease,
                transform 0.25s var(--ym-ease), filter 0.25s ease;
}
/* orange: the main action, everywhere on the page */
.ym-btn-primary, .btn-cta {
    background: var(--ym-grad-orange); color: var(--ym-on-orange);
    box-shadow: 0 10px 22px -8px rgba(243, 156, 18, 0.65);
}
.ym-btn-primary:hover, .btn-cta:hover {
    color: #fff; transform: translateY(-2px); filter: brightness(1.04);
    box-shadow: 0 16px 28px -10px rgba(243, 156, 18, 0.7);
}
.ym-btn-primary:active, .btn-cta:active { transform: scale(0.98); }

.ym-btn-secondary {
    background: transparent; color: var(--ym-blue-text);
    box-shadow: inset 0 0 0 1.5px var(--ym-blue);
}
.ym-btn-secondary:hover { background: var(--ym-accent); color: #fff; }

.ym-btn-danger { background: var(--ym-red-solid); color: #fff; box-shadow: 0 10px 22px -10px rgba(231, 76, 60, 0.7); }
.ym-btn-danger:hover { background: #d84030; color: #fff; transform: translateY(-2px); }

.ym-btn-danger-tint { background: rgba(220, 53, 69, 0.09); color: var(--ym-red); padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.ym-btn-danger-tint:hover { background: rgba(220, 53, 69, 0.17); color: var(--ym-red); }

/* ==========================================================
   1. HERO
========================================================== */
.hero-section {
    position: relative;
    margin-top: 20px;
        padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, var(--ym-fill) 0%, var(--ym-fill-2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    box-shadow: 0 24px 50px -30px rgba(26, 37, 47, 0.25);
    overflow: hidden;
}

/* The three letters of the brand (י ע ל), set as one quiet watermark
   word along the bottom edge of the hero. */
.letters-container {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
    display: flex; align-items: flex-end; justify-content: flex-start;
    gap: 0.5rem; padding-inline-start: clamp(1rem, 4vw, 3.5rem);
}
.floating-letter {
    flex: none;
    margin-bottom: -0.32em;
    color: rgba(52, 152, 219, 0.13);
    font-size: clamp(8rem, 17vw, 16rem);
    font-weight: 900;
    line-height: 1;
    user-select: none;
    animation: ym-drift 8s infinite ease-in-out;
}
/* negative delays start each letter mid-cycle, so motion is visible right away */
.letter-yod   { animation-duration: 8s;  animation-delay: -1s; }
.letter-ayin  { animation-duration: 9s;  animation-delay: -4s; }
.letter-lamed { animation-duration: 10s; animation-delay: -7s; }
/* slow, visible float: a gentle rise and sway, each letter on its own rhythm */
@keyframes ym-drift {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-26px) rotate(4deg); }
}

.hero-grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-content { text-align: start; }

.hero-title {
    font-size: clamp(2.4rem, 4.8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ym-ink);
    margin-bottom: 1.5rem;
    text-align: center;
    text-wrap: balance;
}
.hero-brand { display: block; color: var(--ym-blue); unicode-bidi: isolate; }
.hero-tagline { display: block; }

.hero-subtitle { margin-bottom: 1.1rem; }
.hero-ar {
    display: block;
    font-size: clamp(1.15rem, 1.9vw, 1.4rem);
    font-weight: 500;
    color: var(--ym-muted);
}
.hero-he {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 700;
    color: var(--ym-ink);
}
.hero-ar-accent {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 600;
    color: var(--ym-blue-text);
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.btn-cta { font-size: 1.15rem; font-weight: 800; padding: 0.95rem 2.3rem; position: relative; z-index: 3; }
.hero-link { color: var(--ym-blue-text); font-weight: 600; font-size: 1.05rem; text-decoration: none; padding: 0.75rem 0.25rem; }
.hero-link:hover { color: var(--ym-blue); text-decoration: underline; text-underline-offset: 4px; }

/* Three students image: swaps on hover (or tap on touch screens) */
.hero-image-wrapper { position: relative; z-index: 2; }
.hero-hover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 26px;
    overflow: hidden;
    background: var(--ym-fill-2);
    border: 6px solid var(--ym-card);
    box-shadow: 0 34px 60px -28px rgba(26, 37, 47, 0.45);
    cursor: pointer;
}
.hero-hover-container img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 25%;
    display: block;
    transition: opacity 0.5s ease-in-out;
}
.hero-img-top { opacity: 0; }
@media (hover: hover) {
    .hero-hover-container:hover .hero-img-top { opacity: 1; }
    .hero-hover-container:hover .hero-img-bottom { opacity: 0; }
}
.hero-hover-container.is-swapped .hero-img-top { opacity: 1; }
.hero-hover-container.is-swapped .hero-img-bottom { opacity: 0; }

/* One orchestrated moment: the hero settles in on load */
@keyframes ym-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.hero-content > * { animation: ym-rise 0.8s var(--ym-ease) both; }
.hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-content > *:nth-child(4) { animation-delay: 0.24s; }
.hero-image-wrapper { animation: ym-rise 1s var(--ym-ease) 0.2s both; }

/* Two-column layouts: size the title to its own column so the tagline stays on one line */
@media (min-width: 992px) {
    .hero-content { container-type: inline-size; }
    .hero-title { font-size: min(4rem, 11cqi); }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: clamp(1.9rem, 9.4vw, 2.6rem); }
    .btn-cta { padding: 0.9rem 1.9rem; }
}
@media (max-width: 991.98px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-image-wrapper { max-width: 440px; margin-inline: auto; width: 100%; }
}

/* ==========================================================
   2. FEATURES (click to open)
   Built EXACTLY like the FAQ below: a Bootstrap collapse (Bootstrap animates the real height of the answer),
   a card with only a small shadow, and no compositing tricks. The FAQ is smooth on iPads and phones, so this
   follows the same recipe on purpose.
   DO NOT add here: large blurred shadows, will-change, translateZ, a grid-template-rows animation or an
   opacity/visibility dance. While one card opens, every card below it moves on every frame, and each of those
   had to be re-painted - that was the jitter. (will-change on the sections also broke the FAQ on iOS.)
========================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    max-width: 860px;
    margin-inline: auto;
}

.blur-feature-item {
    --tone: var(--ym-bs-blue);
    --chip-from: #63b0ff; --chip-to: #1f7ae8;
    background: var(--ym-card);
    border: 1px solid var(--ym-edge);
    border-radius: 22px;
    /* no overflow:hidden here (the FAQ item has it): nothing inside reaches the rounded corners, and a rounded clip
       is rebuilt on every frame while the card grows (measured: raster time 97 -> 59 ms). Bootstrap's .collapsing
       clips the growing answer itself. */
    box-shadow: 0 2px 10px rgba(26, 37, 47, 0.04);     /* the same small shadow as .faq-item */
    text-align: start;
}
/* one color per card: icon, heading and open edge agree */
.blur-feature-item.tone-orange { --tone: var(--ym-orange-text); --chip-from: #ffbb55; --chip-to: #f39c12; }
.blur-feature-item.tone-green  { --tone: var(--ym-green);       --chip-from: #4fd18b; --chip-to: #1e9e62; }
.blur-feature-item.tone-blue   { --tone: var(--ym-bs-blue);     --chip-from: #63b0ff; --chip-to: #1f7ae8; }
.blur-feature-item.tone-red    { --tone: var(--ym-red);         --chip-from: #ff8080; --chip-to: #e0364a; }

/* scroll-in (only when JS is available, so nothing is ever stuck hidden) */
.ym-js .blur-feature-item { opacity: 0; transform: translateY(24px); }
.ym-js .blur-feature-item.scroll-visible {
    opacity: 1; transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s var(--ym-ease);
}
/* an open card is tinted at once (no color animation while it grows) */
.blur-feature-item:has(> .blur-heading > .blur-overlay:not(.collapsed)) {
    background-color: color-mix(in srgb, var(--tone) 3%, var(--ym-card));
    border-color: color-mix(in srgb, var(--tone) 30%, var(--ym-card));
}
@media (hover: hover) and (pointer: fine) {
    .blur-feature-item:hover { border-color: color-mix(in srgb, var(--tone) 38%, var(--ym-card)); }
}

/* header row: a real <button>, like .accordion-button */
.blur-heading { margin: 0; font: inherit; }
.blur-overlay {
    display: flex; align-items: center; gap: 1.1rem;
    width: 100%; margin: 0; padding: 22px 26px;
    border: 0; border-radius: 22px; background: transparent;      /* same radius as the card, so the focus ring is rounded too */
    font: inherit; color: inherit; text-align: start; cursor: pointer;
    -webkit-tap-highlight-color: transparent;   /* no grey flash when tapping on iOS */
    touch-action: manipulation;                 /* no double-tap-to-zoom delay */
}
.blur-overlay:focus { outline: none; }
.blur-overlay:focus-visible { outline: 3px solid var(--ym-blue); outline-offset: -3px; }
.feature-icon {
    flex: none;
    display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 17px;
    background: linear-gradient(145deg, var(--chip-from), var(--chip-to));
    color: #fff; font-size: 1.4rem;
    box-shadow: 0 6px 12px -8px var(--chip-to), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.overlay-title {
    flex: 1 1 auto;
    font-size: clamp(1.1rem, 1.7vw, 1.3rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ym-ink-2);
}
/* "+" while closed, "-" while open: swapped at once, no rotation (the FAQ icon does the same) */
.feature-toggle {
    flex: none;
    width: 32px; height: 32px; border-radius: 50%;
    background:
        linear-gradient(var(--ym-ink-2), var(--ym-ink-2)) center / 12px 2px no-repeat,
        linear-gradient(var(--ym-ink-2), var(--ym-ink-2)) center / 2px 12px no-repeat,
        var(--ym-fill-2);
}
.blur-overlay:not(.collapsed) .feature-toggle {
    background:
        linear-gradient(var(--ym-ink-2), var(--ym-ink-2)) center / 12px 2px no-repeat,
        var(--ym-fill-2);
}

/* the answer: Bootstrap's .collapse / .collapsing animates its height. Keep margin and padding OFF this
   element (they make the height jump at the end); the spacing lives on .blur-body inside. */
.blur-body {
    margin: 0 26px; padding: 22px 0 28px;
    border-top: 1px solid var(--ym-line);
}
.blur-body h4 {
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.55;
    color: var(--tone);
}
.blur-body p { max-width: 44rem; font-size: 1.1rem; line-height: 1.95; color: var(--ym-ink-2); margin-bottom: 1rem; }
.blur-body .feature-note {
    max-width: 44rem;
    margin: 0.25rem 0 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--tone) 7%, var(--ym-card));
    font-size: 0.98rem; line-height: 1.8;
    color: var(--ym-body);
}
.blur-body .ym-btn { margin-top: 1.1rem; }

/* ==========================================================
   3. DEMO BANNER (orange)
========================================================== */
.demo-banner {
    position: relative; overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, #f7a82a 0%, var(--ym-orange) 45%, var(--ym-orange-deep) 100%);
    color: var(--ym-demo-fg);
    border-radius: 32px;
    box-shadow: 0 30px 60px -32px rgba(230, 126, 34, 0.7);
    scroll-margin-top: 5rem;
}
.floating-controller {
    position: absolute; top: -4rem; inset-inline-end: -4rem;
    font-size: 20rem; line-height: 1;
    color: rgba(255, 255, 255, 0.18);
    transform: rotate(20deg);
    pointer-events: none; z-index: 1;
    animation: ym-drift-controller 9s infinite ease-in-out;
}
@keyframes ym-drift-controller {
    0%, 100% { transform: translateY(0) rotate(16deg); }
    50%      { transform: translateY(-24px) rotate(25deg); }
}
.demo-copy { position: relative; z-index: 2; text-align: start; }
.demo-copy h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 800; line-height: 1.5;
    color: var(--ym-demo-fg); margin-bottom: 1rem;
}
.demo-copy p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ym-demo-fg); opacity: 0.85; margin-bottom: 2rem; }
.btn-demo {
    position: relative; z-index: 3; font-size: 1.05rem; font-weight: 800;
    background: var(--ym-navy); color: #fff;
    box-shadow: 0 14px 24px -12px rgba(26, 37, 47, 0.7);
}
.btn-demo:hover { background: var(--ym-navy-2); color: #fff; transform: translateY(-2px); }
.btn-demo:active { transform: scale(0.98); }

.hover-image-container {
    position: relative; z-index: 2;
    width: 100%; max-width: 340px; margin-inline: auto;
    aspect-ratio: 1920 / 2208;
    border-radius: 26px; overflow: hidden;
    background: #f0b45a;
    border: 6px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 30px 50px -24px rgba(120, 60, 0, 0.55);
    cursor: pointer;
}
.hover-image-container img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: opacity 0.5s ease-in-out;
}
.hover-img-top { opacity: 0; }
@media (hover: hover) {
    .hover-image-container:hover .hover-img-top { opacity: 1; }
    .hover-image-container:hover .hover-img-bottom { opacity: 0; }
}
.hover-image-container.is-swapped .hover-img-top { opacity: 1; }
.hover-image-container.is-swapped .hover-img-bottom { opacity: 0; }

@media (max-width: 767.98px) {
    .demo-banner { grid-template-columns: 1fr; }
    .demo-copy { text-align: center; }
}

/* ==========================================================
   4. PRICING
========================================================== */
#pricing { scroll-margin-top: 4rem; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 40px 24px 28px;
    background: var(--ym-card);
    border: 1.5px solid var(--ym-edge);
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.35s var(--ym-ease), border-color 0.3s ease, box-shadow 0.35s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--ym-blue);
    box-shadow: 0 22px 40px -24px rgba(26, 37, 47, 0.35);
}
.pricing-card:has(.stretched-link:focus-visible) { outline: 3px solid var(--ym-blue); outline-offset: 3px; }

.pricing-card.popular {
    border: 2px solid var(--ym-orange);
    box-shadow: 0 26px 48px -26px rgba(243, 156, 18, 0.6);
    z-index: 2;
}
.pricing-card.popular:hover { border-color: var(--ym-orange); box-shadow: 0 30px 54px -26px rgba(243, 156, 18, 0.7); }
@media (min-width: 992px) {
    .pricing-card.popular { transform: scale(1.03); }
    .pricing-card.popular:hover { transform: scale(1.03) translateY(-4px); }
}

.popular-badge {
    position: absolute; top: -15px; left: 0; right: 0;
    margin-inline: auto; width: max-content;
    padding: 6px 20px; border-radius: 980px;
    background: var(--ym-grad-orange); color: var(--ym-on-orange);
    font-size: 0.85rem; font-weight: 800;
    box-shadow: 0 8px 16px -8px rgba(243, 156, 18, 0.8);
}

.plan-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0; color: var(--ym-ink-2); }
.price-amount {
    margin-top: 1rem;
    font-size: clamp(2.6rem, 3.4vw, 3.4rem);
    font-weight: 800; line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--ym-ink-2);
}

.price-sale { min-height: 1.7rem; margin-top: 0.6rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.price-old { font-size: 1.05rem; font-weight: 700; color: var(--ym-red); text-decoration: line-through; }
.price-sale-badge {
    padding: 3px 11px; border-radius: 980px;
    background: var(--ym-green-solid); color: #fff;
    font-size: 0.8rem; font-weight: 700;
}

.price-period { margin: 0.4rem 0 1.6rem; font-size: 1.05rem; color: var(--ym-muted); }

.pricing-features {
    flex-grow: 1;
    margin: 0 0 1.75rem;
    padding: 1.4rem 0 0;
    text-align: start;
    border-top: 1px solid var(--ym-line);
}
.pricing-features li {
    display: flex; align-items: flex-start; gap: 0.65rem;
    margin-bottom: 0.9rem;
    font-size: 0.97rem; line-height: 1.5;
    color: var(--ym-body);
}
.pricing-features li i { flex: 0 0 1rem; margin-top: 0.28rem; font-size: 0.85rem; text-align: center; }
.pricing-features .ym-check { color: var(--ym-green); }
.pricing-features li.is-excluded { color: var(--ym-muted); }
.pricing-features li.is-excluded span { text-decoration: line-through; }
.pricing-card.popular .pricing-features li:not(.is-excluded) { font-weight: 700; }

/* Whole card is one big tap target; the button fills when the card is hovered */
.pricing-card .stretched-link { position: static !important; }
.pricing-card .stretched-link::after {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1; content: "";
}
.pricing-card:hover .ym-btn-secondary { background: var(--ym-accent); color: #fff; }

/* ==========================================================
   5. FAQ + CONTACT
========================================================== */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
@media (max-width: 991.98px) { .faq-layout { grid-template-columns: 1fr; } }

.ym .faq-item {
    background: var(--ym-card); border: 0;
    border-radius: 20px !important;
    margin-bottom: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(26, 37, 47, 0.04);
}
.ym .faq-item .accordion-button {
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent; box-shadow: none;
    color: var(--ym-ink);
    font-size: 1.08rem; font-weight: 700; line-height: 1.5;
    text-align: start;
    border-radius: 0 !important;
}
.ym .faq-item .accordion-button:not(.collapsed) { background: transparent; color: var(--ym-ink); box-shadow: none; }
.ym .faq-item .accordion-button:focus { box-shadow: none; }
.ym .faq-item .accordion-button:focus-visible { outline: 3px solid var(--ym-blue); outline-offset: -3px; }
.ym .faq-item .accordion-button::after {
    flex-shrink: 0; width: 1.25rem; height: 1.25rem;
    margin-left: 0; margin-right: 0; margin-inline-start: auto;
    background-size: 1.25rem; transform: none; transition: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231a252f' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E");
}
.ym .faq-item .accordion-button:not(.collapsed)::after {
    transform: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231a252f' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 10h12'/%3E%3C/svg%3E");
}
.ym .faq-item .accordion-body {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.02rem; line-height: 1.85; color: var(--ym-body);
}
.ym .faq-item .faq-ar {
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid var(--ym-line);
    font-size: 0.97rem; color: var(--ym-muted);
}

.contact-card {
    position: sticky; top: 6rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--ym-card); border-radius: 28px;
    box-shadow: 0 2px 10px rgba(26, 37, 47, 0.04);
}
@media (max-width: 991.98px) { .contact-card { position: static; } }
.contact-card h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.4rem; color: var(--ym-ink); }
.contact-card .contact-lead { color: var(--ym-muted); margin-bottom: 1.75rem; }
.contact-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; color: var(--ym-ink); }
.contact-row a { color: var(--ym-ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--ym-blue-text); }
.contact-row strong { font-weight: 700; }
.contact-icon {
    flex-shrink: 0; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 13px; font-size: 1.1rem;
}
.contact-icon.mail  { background: rgba(243, 156, 18, 0.14); color: var(--ym-orange-text); }
.contact-icon.wa    { background: rgba(39, 174, 96, 0.14);  color: var(--ym-green); }
.contact-icon.clock { background: rgba(52, 152, 219, 0.14); color: var(--ym-blue-text); }
.contact-card .ym-btn { width: 100%; margin-top: 0.75rem; }

/* ==========================================================
   Scholarship modal
========================================================== */
/* Dim only. A full-screen blur behind the dialog was recomputed on every
   frame of the fade - heavy on phones, and it smeared the page. */
.modal-backdrop.show { opacity: 0.45; }
#scholarshipInfoModal { font-family: inherit; }
#scholarshipInfoModal .modal-content {
    border: 0; border-radius: 26px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
#scholarshipInfoModal .modal-header {
    background: linear-gradient(135deg, var(--ym-red-solid), var(--ym-red-solid)); color: #fff; border: 0;
    padding: 1.4rem 1.75rem;
}
#scholarshipInfoModal .modal-title { flex: 1 1 auto; display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 800; color: #fff; }
#scholarshipInfoModal .modal-title .modal-heart {
    display: grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.2); color: #fff;
}
#scholarshipInfoModal .modal-body { padding: 1.4rem 1.75rem 1.25rem; color: var(--ym-body); }
#scholarshipInfoModal .modal-body h6 { font-size: 1.05rem; color: var(--ym-ink); }
#scholarshipInfoModal .modal-body a { color: var(--ym-blue-text); }
#scholarshipInfoModal .modal-footer { border: 0; padding: 0 1.75rem 1.75rem; }

/* ==========================================================
   Reduced motion
========================================================== */
@media (prefers-reduced-motion: reduce) {
    .ym *, .ym *::before, .ym *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .ym-js .blur-feature-item { opacity: 1; transform: none; }
}
