/* ================= Madreseyar Landing ================= */

.msy {
    --msy-navy: #0b1729;
    --msy-navy-2: #12294a;
    --msy-blue: #1d4ed8;
    --msy-gold: #c9a227;
    --msy-gold-2: #f0c845;
    --msy-text: #16202f;
    --msy-muted: #64748b;
    --msy-line: #e3e8ef;
    --msy-soft: #f5f7fb;

    background: #fff;
    color: var(--msy-text);
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.msy * {
    box-sizing: border-box;
}

.msy-wrap {
    width: min(1200px, calc(100% - 32px));
    margin-inline: auto;
}

.msy-ico {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    flex: 0 0 auto;
}

.msy-ico * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.msy-btn {
    min-height: 52px;
    padding: 12px 26px;
    border: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
    cursor: pointer;
    transition: 0.22s ease;
}

.msy-btn--gold {
    background: linear-gradient(135deg, var(--msy-gold-2), var(--msy-gold));
    color: #1a1405;
    box-shadow: 0 14px 34px rgba(201, 162, 39, 0.32);
}

.msy-btn--gold:hover {
    color: #1a1405;
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(201, 162, 39, 0.42);
}

.msy-btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.msy-btn--outline:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.msy-btn--navy {
    background: var(--msy-navy);
    color: #fff;
}

.msy-btn--navy:hover {
    background: var(--msy-navy-2);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.msy-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 84px;
    background:
        radial-gradient(circle at 82% 12%, rgba(29, 78, 216, 0.35), transparent 42%),
        linear-gradient(155deg, #0b1729 0%, #12294a 55%, #0b1729 100%);
    color: #fff;
}

.msy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 62px 62px;
    pointer-events: none;
}

.msy-hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--msy-gold), var(--msy-blue), var(--msy-gold));
}

.msy-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 46px;
    align-items: center;
}

.msy-eyebrow {
    width: max-content;
    max-width: 100%;
    padding: 9px 16px;
    border-radius: 4px;
    background: rgba(201, 162, 39, 0.14);
    border: 1px solid rgba(201, 162, 39, 0.42);
    color: var(--msy-gold-2);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 700;
}

.msy-hero h1 {
    margin: 24px 0 0;
    color: #fff;
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.55;
}

.msy-hero h1 span {
    color: var(--msy-gold-2);
}

.msy-hero__rule {
    width: 92px;
    height: 3px;
    margin: 22px 0;
    background: linear-gradient(90deg, var(--msy-gold-2), transparent);
    border-radius: 3px;
}

.msy-hero p {
    max-width: 620px;
    margin: 0;
    color: #cbd8ea;
    font-size: 16px;
    line-height: 2.15;
}

.msy-hero__actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.msy-hero__note {
    margin-top: 22px;
    color: #93a7c2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

.msy-hero__visual {
    position: relative;
    padding: 26px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.msy-hero__visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.msy-hero__tag {
    position: absolute;
    inset-inline-start: 18px;
    bottom: -20px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #fff;
    color: var(--msy-navy);
    box-shadow: 0 18px 44px rgba(4, 12, 26, 0.42);
    display: flex;
    align-items: center;
    gap: 12px;
}

.msy-hero__tag strong {
    display: block;
    font-size: 17px;
    line-height: 1.6;
}

.msy-hero__tag span {
    color: var(--msy-muted);
    font-size: 12.5px;
}

.msy-hero__tag i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--msy-soft);
    color: var(--msy-blue);
    display: grid;
    place-items: center;
}

/* ---------- Trust strip ---------- */

.msy-strip {
    padding: 0;
    background: var(--msy-soft);
    border-bottom: 1px solid var(--msy-line);
}

.msy-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.msy-strip__item {
    padding: 30px 24px;
    border-inline-start: 1px solid var(--msy-line);
    display: flex;
    align-items: center;
    gap: 14px;
}

.msy-strip__item:first-child {
    border-inline-start: 0;
}

.msy-strip__item i {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--msy-line);
    color: var(--msy-blue);
    display: grid;
    place-items: center;
}

.msy-strip__item b {
    display: block;
    font-size: 15px;
    line-height: 1.7;
}

.msy-strip__item span {
    color: var(--msy-muted);
    font-size: 12.5px;
}

/* ---------- Section base ---------- */

.msy-section {
    padding: 76px 0;
}

.msy-section--soft {
    background: var(--msy-soft);
    border-block: 1px solid var(--msy-line);
}

.msy-head {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.msy-head__kicker {
    color: var(--msy-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.msy-head h2 {
    margin: 12px 0 0;
    color: var(--msy-navy);
    font-size: clamp(22px, 2.6vw, 31px);
    font-weight: 800;
    line-height: 1.7;
}

.msy-head p {
    margin: 12px 0 0;
    color: var(--msy-muted);
    font-size: 15px;
    line-height: 2.1;
}

.msy-head__rule {
    width: 64px;
    height: 3px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, var(--msy-blue), var(--msy-gold));
    border-radius: 3px;
}

/* ---------- Notice ---------- */

.msy-notice {
    position: relative;
    overflow: hidden;
    padding: 44px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--msy-line);
    box-shadow: 0 20px 60px rgba(11, 23, 41, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
}

.msy-notice::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--msy-gold-2), var(--msy-blue));
}

.msy-notice__label {
    width: max-content;
    padding: 7px 14px;
    border-radius: 4px;
    background: #fff5e0;
    color: #92700f;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}

.msy-notice h3 {
    margin: 16px 0 10px;
    color: var(--msy-navy);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.8;
}

.msy-notice p {
    margin: 0;
    color: var(--msy-muted);
    font-size: 15px;
    line-height: 2.15;
}

/* ---------- Features ---------- */

.msy-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.msy-feature {
    position: relative;
    padding: 30px 28px 32px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--msy-line);
    transition: 0.24s ease;
}

.msy-feature::after {
    content: "";
    position: absolute;
    inset-inline: 22px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--msy-blue), var(--msy-gold));
    opacity: 0;
    transition: 0.24s ease;
}

.msy-feature:hover {
    transform: translateY(-6px);
    border-color: #cfd9e8;
    box-shadow: 0 22px 60px rgba(11, 23, 41, 0.11);
}

.msy-feature:hover::after {
    opacity: 1;
}

.msy-feature__num {
    position: absolute;
    inset-inline-end: 24px;
    top: 22px;
    color: #eef2f8;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.msy-feature__thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: var(--msy-soft);
    border: 1px solid var(--msy-line);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.msy-feature__thumb img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.msy-feature h3 {
    margin: 20px 0 10px;
    color: var(--msy-navy);
    font-size: 17.5px;
    font-weight: 800;
    line-height: 1.85;
}

.msy-feature p {
    margin: 0;
    color: var(--msy-muted);
    font-size: 14px;
    line-height: 2.1;
}

/* ---------- Panels ---------- */

.msy-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.msy-panel {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--msy-line);
    box-shadow: 0 16px 46px rgba(11, 23, 41, 0.06);
    display: flex;
    flex-direction: column;
}

.msy-panel__head {
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--msy-navy), var(--msy-navy-2));
    color: #fff;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    font-weight: 800;
}

.msy-panel__head .msy-ico {
    color: var(--msy-gold-2);
}

.msy-panel__body {
    padding: 24px 22px 26px;
    flex: 1;
}

.msy-panel__body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.msy-panel__body li {
    padding: 9px 0;
    color: #3b4a60;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.2px;
    line-height: 2;
}

.msy-panel__body li .msy-ico {
    width: 18px;
    height: 18px;
    margin-top: 8px;
    color: var(--msy-blue);
}

/* ---------- Steps ---------- */

.msy-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.msy-step {
    position: relative;
    padding: 28px 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--msy-line);
    text-align: center;
}

.msy-step b {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--msy-navy);
    color: var(--msy-gold-2);
    display: grid;
    place-items: center;
    font-size: 16px;
}

.msy-step h4 {
    margin: 0 0 8px;
    color: var(--msy-navy);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}

.msy-step p {
    margin: 0;
    color: var(--msy-muted);
    font-size: 13.5px;
    line-height: 2;
}

/* ---------- Stats ---------- */

.msy-stats {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 162, 39, 0.18), transparent 40%),
        linear-gradient(135deg, #0b1729, #12294a);
    color: #fff;
}

.msy-stats__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.msy-stat {
    padding: 28px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    text-align: center;
}

.msy-stat h3 {
    margin: 0 0 8px;
    color: var(--msy-gold-2);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
}

.msy-stat h3 .sign {
    font-size: 22px;
}

.msy-stat span {
    color: #c3d2e6;
    font-size: 13.5px;
    line-height: 2;
    display: block;
}

/* ---------- Final CTA ---------- */

.msy-cta {
    padding: 52px 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff 0%, #f2f6fc 100%);
    border: 1px solid var(--msy-line);
    box-shadow: 0 22px 64px rgba(11, 23, 41, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
}

.msy-cta h2 {
    margin: 0 0 12px;
    color: var(--msy-navy);
    font-size: clamp(21px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.75;
}

.msy-cta p {
    margin: 0;
    color: var(--msy-muted);
    font-size: 15px;
    line-height: 2.15;
}

.msy-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .msy-hero__grid,
    .msy-notice,
    .msy-cta {
        grid-template-columns: 1fr;
    }

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

    .msy-strip__grid,
    .msy-steps,
    .msy-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .msy-strip__item:nth-child(3) {
        border-inline-start: 0;
    }

    .msy-strip__item:nth-child(n + 3) {
        border-top: 1px solid var(--msy-line);
    }
}

@media (max-width: 640px) {
    .msy-hero {
        padding: 52px 0 64px;
    }

    .msy-section {
        padding: 54px 0;
    }

    .msy-features,
    .msy-panels,
    .msy-strip__grid,
    .msy-steps,
    .msy-stats__grid {
        grid-template-columns: 1fr;
    }

    .msy-strip__item {
        border-inline-start: 0;
        border-top: 1px solid var(--msy-line);
    }

    .msy-strip__item:first-child {
        border-top: 0;
    }

    .msy-notice,
    .msy-cta {
        padding: 28px 22px;
    }

    .msy-hero__visual {
        padding: 16px;
    }

    .msy-hero__tag {
        position: static;
        margin-top: 16px;
    }

    .msy-btn {
        width: 100%;
    }
}


/* ===== آمار مدرسه‌یار ===== */
.sy-stats {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(245, 158, 11, 0.10), transparent 60%),
        radial-gradient(900px 420px at 10% 110%, rgba(37, 99, 235, 0.16), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #101b31 100%);
}

.sy-stats::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f59e0b, #2563eb, transparent);
}

.sy-stats__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.sy-stats__head {
    text-align: center;
    margin-bottom: 48px;
}

.sy-stats__eyebrow {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fcd34d;
    font-size: 13px;
    font-weight: 700;
}

.sy-stats__title {
    margin: 16px 0 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.7;
}

.sy-stats__lead {
    margin: 0;
    color: #94a3b8;
    font-size: 15px;
    line-height: 2;
}

.sy-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sy-stat {
    position: relative;
    padding: 30px 22px 26px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
    transition: 0.28s ease;
}

.sy-stat:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.45);
}

.sy-stat__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.28);
}

.sy-stat--gold .sy-stat__icon {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.32);
}

.sy-stat__num {
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    background: linear-gradient(180deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sy-stat--gold .sy-stat__num {
    background: linear-gradient(180deg, #fde68a, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sy-stat__label {
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 2;
}

@media (max-width: 991px) {
    .sy-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sy-stats__title { font-size: 25px; }
    .sy-stat__num { font-size: 32px; }
}

@media (max-width: 575px) {
    .sy-stats { padding: 64px 0; }
    .sy-stat { padding: 24px 16px; }
    .sy-stat__num { font-size: 28px; }
}