/* ============================================================
   هوية المنصة — الهيدر والفوتر والرئيسية
   بيتحمّل بعد باقي الملفات عشان يغلب ستايل الثيم الأصلي
   ============================================================ */

:root {
    --brand:        var(--c-primary, #4f46e5);
    --brand-600:    var(--c-primary-hover, #4338ca);
    --brand-700:    #3730a3;
    --brand-soft:   var(--c-primary-light, #eef2ff);
    --gold:         #f59e0b;
    --gold-deep:    #d97706;
    --ink:          #0f172a;
    --ink-2:        #334155;
    --muted:        #64748b;
    --line:         #e8ecf3;
    --header-h:     78px;
}

/* ============================================================
   1) الهيدر
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck {
    box-shadow: 0 6px 26px rgba(15, 23, 42, .09);
    background: rgba(255, 255, 255, .96);
}

/* شريط علوي رفيع */
.site-topbar {
    background: linear-gradient(90deg, var(--brand-700), var(--brand) 55%, var(--c-accent, #7c3aed));
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}
.site-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 38px;
    padding-block: 5px;
}
.site-topbar a { color: #fff; text-decoration: none; opacity: .95; }
.site-topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-contact span,
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-note { display: inline-flex; align-items: center; gap: 6px; opacity: .92; }

/* الشريط الرئيسي */
.site-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: var(--header-h);
}

/* اللوجو */
.site-logo { flex-shrink: 0; }
.site-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.site-logo img {
    height: 52px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
}
.site-logo .logo-text {
    font-size: 20px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: -.3px;
    line-height: 1.2;
}

/* اللوجو المربّع بيتعرض كشارة جنب الاسم — لوحده بيبان صغير وضايع */
.site-logo.is-badge img {
    height: 50px;
    width: 50px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .14);
    border: 2px solid #fff;
    outline: 1px solid var(--line);
}
.site-logo.is-badge .logo-text {
    font-size: 18px;
    color: var(--ink);
}
@media (max-width: 1199px) {
    .site-logo.is-badge img { height: 42px; width: 42px; border-radius: 12px; }
    .site-logo.is-badge .logo-text { font-size: 16px; }
}
@media (max-width: 480px) {
    .site-logo.is-badge .logo-text { display: none; }
}

/* الناف */
.site-nav { display: flex; align-items: center; }
.site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    position: relative;
    display: block;
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-2);
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
    white-space: nowrap;
}
.site-nav a::after {
    content: '';
    position: absolute;
    inset-inline: 15px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.site-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--brand); }

/* الأدوات على اليسار */
.site-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.icon-btn {
    position: relative;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: #f6f7fb;
    border: 1px solid var(--line);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
}
.icon-btn:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}
.icon-btn i { font-size: 17px; }
.icon-btn .dot {
    position: absolute;
    top: -5px; inset-inline-end: -5px;
    min-width: 19px; height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* زرار الدخول */
.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--c-accent, #7c3aed));
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 14px rgba(var(--c-primary-rgb, 79, 70, 229), .3);
    transition: all .22s ease;
    white-space: nowrap;
}
.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(var(--c-primary-rgb, 79, 70, 229), .42);
    color: #fff !important;
}
.btn-brand i { font-size: 15px; }

/* بروفايل المستخدم */
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px 5px 6px;
    border-radius: 999px;
    background: #f6f7fb;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
}
.user-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.user-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.user-chip span { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.user-chip i { font-size: 14px; color: var(--muted); }

/* هامبرجر */
.nav-toggle {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    border: 1px solid rgba(var(--c-primary-rgb, 79, 70, 229), .18);
    color: var(--brand);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-toggle i { font-size: 20px; }

/* القائمة كانت بتختفي تحت 1200px — يعني أي تابلت أو لابتوب صغير
   مايشوفش «لوحة التحكم» و«محاضراتي» خالص، وده كان سبب شكوى
   إن البنود مش ظاهرة رغم إنها متضافة. البنود 3 بس فبتستحمل 992px. */
@media (max-width: 1199px) {
    :root { --header-h: 70px; }
    .site-nav ul { gap: 2px; }
    .site-nav a { padding: 8px 12px; font-size: 14px; }
    .site-logo img { height: 44px; max-width: 160px; }
}
@media (max-width: 991px) {
    :root { --header-h: 68px; }
    .site-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-logo img { height: 42px; max-width: 150px; }
}
@media (max-width: 767px) {
    .site-topbar { display: none; }
    .site-actions .btn-brand { padding: 9px 16px; font-size: 13px; }
}

/* ============================================================
   2) الهيرو
   ============================================================ */
.hero-section {
    position: relative;
    background:
        radial-gradient(1100px 520px at 88% -10%, rgba(124, 58, 237, .16), transparent 60%),
        radial-gradient(900px 460px at 8% 8%, rgba(var(--c-primary-rgb, 79, 70, 229), .14), transparent 62%),
        linear-gradient(170deg, #fbfbff 0%, #f2f4fe 48%, #eef1fd 100%);
    padding: 74px 0 96px;
    overflow: hidden;
}
.hero-section::before,
.hero-section::after { display: none; }

/* شبكة خفيفة في الخلفية */
.hero-section .hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--c-primary-rgb, 79, 70, 229), .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--c-primary-rgb, 79, 70, 229), .05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 76%);
    pointer-events: none;
}

.hero-grid { position: relative; z-index: 2; }

.hero-badge {
    background: #fff;
    border: 1px solid rgba(var(--c-primary-rgb, 79, 70, 229), .2);
    box-shadow: 0 3px 12px rgba(var(--c-primary-rgb, 79, 70, 229), .1);
    padding: 8px 20px;
    font-size: 13px;
}
.hero-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
    display: inline-block;
    margin-inline-end: 3px;
}
.hero-title {
    font-size: clamp(1.9rem, 3.6vw, 2.85rem);
    line-height: 1.35;
    letter-spacing: -.5px;
}
.hero-title .accent {
    background: linear-gradient(120deg, var(--brand), var(--c-accent, #7c3aed) 60%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle { font-size: 16.5px; color: var(--muted); }

/* صورة المدرس */
.hero-media { position: relative; }
.hero-media::before {
    content: '';
    position: absolute;
    inset: 4% 8% 0;
    border-radius: 50% 50% 44% 44%;
    background: linear-gradient(160deg, rgba(var(--c-primary-rgb, 79, 70, 229), .26), rgba(124, 58, 237, .12));
    filter: blur(2px);
    z-index: 0;
}
.hero-media::after {
    content: '';
    position: absolute;
    inset-inline: 12%;
    bottom: 0;
    height: 18px;
    border-radius: 50%;
    background: rgba(15, 23, 42, .16);
    filter: blur(14px);
    z-index: 0;
}
.hero-media img {
    position: relative;
    z-index: 1;
    max-width: 400px;
    filter: drop-shadow(0 22px 38px rgba(15, 23, 42, .22));
}

/* شارات الثقة */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    backdrop-filter: blur(6px);
}
.hero-trust i { color: var(--brand); font-size: 14px; }

/* فاصل موجي */
.hero-wave {
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    line-height: 0;
    z-index: 1;
}
.hero-wave svg { width: 100%; height: 62px; display: block; }

@media (max-width: 991px) {
    .hero-section { padding: 48px 0 70px; }
    .hero-trust { justify-content: center; }
    .hero-media img { max-width: 290px; }
}

/* ============================================================
   3) عناوين الأقسام
   ============================================================ */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .badge-label {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid rgba(var(--c-primary-rgb, 79, 70, 229), .16);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -.4px;
    margin: 0;
}
.section-header h2 + .section-sub { margin-top: 10px; }
.section-header .section-sub { color: var(--muted); font-size: 15px; }
.section-block { padding: 72px 0; }
.section-block-alt { background: #f8fafc; }

/* ============================================================
   4) قسم المميزات
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.feature-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.feature-box:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--c-primary-rgb, 79, 70, 229), .3);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .09);
}
.feature-box .fx-icon {
    width: 60px; height: 60px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--c-accent, #7c3aed));
    box-shadow: 0 8px 20px rgba(var(--c-primary-rgb, 79, 70, 229), .28);
}
.feature-box:nth-child(2) .fx-icon { background: linear-gradient(135deg, #0891b2, #0e7490); box-shadow: 0 8px 20px rgba(8, 145, 178, .28); }
.feature-box:nth-child(3) .fx-icon { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); box-shadow: 0 8px 20px rgba(217, 119, 6, .28); }
.feature-box:nth-child(4) .fx-icon { background: linear-gradient(135deg, #16a34a, #15803d); box-shadow: 0 8px 20px rgba(22, 163, 74, .28); }
.feature-box h3 { font-size: 16.5px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.feature-box p { font-size: 13.5px; color: var(--muted); line-height: 1.9; margin: 0; }

/* ============================================================
   5) قسم الفيديو
   ============================================================ */
.home-video-section { background: #fff; }
.home-video-frame {
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
    border: 1px solid rgba(255, 255, 255, .5);
}

/* ============================================================
   6) الفوتر
   ============================================================ */
.site-footer {
    position: relative;
    background: linear-gradient(165deg, #131a2e 0%, #0f172a 55%, #0b1120 100%);
    color: #cbd5e1;
    margin-top: 0;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(680px 320px at 88% 0%, rgba(124, 58, 237, .18), transparent 62%),
        radial-gradient(560px 280px at 6% 100%, rgba(var(--c-primary-rgb, 79, 70, 229), .16), transparent 60%);
    pointer-events: none;
}
.footer-main { position: relative; padding: 62px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
    gap: 40px;
}

/* اللوجو العريض على فوتر داكن — بيتحط في خلفية بيضا عشان ما يضيعش */
.footer-brand .f-logo a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 16px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.footer-brand .f-logo img { height: 46px; width: auto; max-width: 170px; object-fit: contain; display: block; }

/* اللوجو المربّع = شارة + اسم المنصة، من غير الخلفية البيضا */
.footer-brand .f-logo.is-badge a {
    background: transparent;
    padding: 0;
    box-shadow: none;
}
.footer-brand .f-logo.is-badge img {
    height: 54px;
    width: 54px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .16);
}
.footer-brand .f-logo.is-badge .f-logo-text { font-size: 19px; }
.footer-brand .f-logo-text { font-size: 22px; font-weight: 900; color: #fff; }
.footer-brand p {
    margin: 16px 0 20px;
    font-size: 14px;
    line-height: 2;
    color: #94a3b8;
    max-width: 340px;
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .22s ease;
}
.footer-social a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-3px);
}

.footer-col h5 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h5::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 32px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease, padding .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.footer-col ul a::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0;
    transition: opacity .2s ease;
}
.footer-col ul a:hover { color: #fff; padding-inline-start: 4px; }
.footer-col ul a:hover::before { opacity: 1; }

/* عمود التواصل */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-contact-item .ci-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.footer-contact-item .ci-body { min-width: 0; }
.footer-contact-item .ci-label { display: block; font-size: 11.5px; color: #64748b; margin-bottom: 2px; }
.footer-contact-item .ci-value {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #e2e8f0;
    text-decoration: none;
    word-break: break-word;
    direction: ltr;
    text-align: start;
}
.footer-contact-item .ci-value:hover { color: #fff; }

.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #25D366;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all .22s ease;
}
.footer-cta:hover { background: #1eb855; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37, 211, 102, .3); }

/* الشريط السفلي */
.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 13px; color: #64748b; }
.footer-bottom p a { color: #cbd5e1; text-decoration: none; font-weight: 700; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-legal a { font-size: 13px; color: #64748b; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-main { padding: 44px 0 30px; }
    .footer-bottom .container { justify-content: center; text-align: center; }
    .footer-legal { justify-content: center; gap: 16px; }
}

/* ============================================================
   7) تنظيف بقايا الثيم القديم
   ============================================================ */
.rbt-sticky-placeholder,
.rbt-header .rbt-header-wrapper.header-space-betwween { display: none !important; }

/* ============================================================
   8) صفحة الطالب (الرئيسية بعد الدخول)
   ------------------------------------------------------------
   كانت بتاخد --c-primary-light من الإعدادات وده لون فاقع،
   فبنستخدم نفس لغة الهيرو: أبيض مايل + نور خفيف من فوق.
   ============================================================ */
.student-home {
    position: relative;
    background: #f7f8fc !important;
    padding: 54px 0 70px !important;
    overflow: hidden;
}
.student-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(760px 420px at 78% -12%, rgba(var(--c-primary-rgb, 79, 70, 229), .14), transparent 62%),
        radial-gradient(620px 380px at 12% 4%, rgba(245, 158, 11, .10), transparent 60%);
    pointer-events: none;
}
.student-home > .container { position: relative; z-index: 1; }

.student-home-head { margin-bottom: 40px !important; }
.student-home-head h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.25rem) !important;
    letter-spacing: -.02em;
}
.student-home-head p {
    font-size: 16px !important;
    color: var(--muted, #64748b) !important;
}

/* جريد بيتوزّع لوحده — الكارت اليتيم مبيقعش لوحده في السطر */
.student-tiles {
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)) !important;
    max-width: 1040px !important;
    gap: 24px !important;
}
.student-tile {
    border-radius: 20px !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .09) !important;
    border: 1px solid rgba(255, 255, 255, .6);
}
.student-tile:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 22px 48px rgba(var(--c-primary-rgb, 79, 70, 229), .26) !important;
}
.student-tile-label {
    font-size: 17px !important;
    letter-spacing: -.01em;
}

/* شريط الروابط السريعة */
.student-home-quick { margin-top: 44px !important; gap: 12px !important; }
.student-home-quick a {
    border: 1px solid var(--line, #e6e9f2) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.student-home-quick a:hover {
    transform: translateY(-2px);
    color: var(--brand, #4f46e5) !important;
    border-color: var(--brand, #4f46e5) !important;
    box-shadow: 0 8px 20px rgba(var(--c-primary-rgb, 79, 70, 229), .16);
}

@media (max-width: 575px) {
    .student-home { padding: 34px 0 50px !important; }
    .student-tiles { grid-template-columns: 1fr !important; gap: 18px !important; }
}

/* ============================================================
   9) الوصول السريع للطالب (تحت الهيرو في الرئيسية)
   ------------------------------------------------------------
   كلاسات مستقلة عن .student-tile — القديمة عليها !important
   غير مقيّدة بأي أب فكانت هتغلب أي شكل جديد.
   ============================================================ */
.qa-section {
    background: #f8fafc;
    padding: 8px 0 46px;
}
.qa-head {
    text-align: center;
    margin-bottom: 26px;
}
.qa-head h2 {
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 4px;
    letter-spacing: -.02em;
}
.qa-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.quick-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
}
.quick-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 3px 14px rgba(15, 23, 42, .06);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quick-tile::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--qt-a), var(--qt-b));
}
.quick-tile:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(var(--c-primary-rgb), .20);
}

.qt-media {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--qt-a), var(--qt-b));
    color: #fff;
    font-size: 21px;
    overflow: hidden;
}
.qt-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qt-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.qt-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.4;
}
.qt-go {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.quick-tile:hover .qt-go i {
    transform: translateX(-3px);
}
.qt-go i {
    transition: transform .25s ease;
}

.quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 17px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-2);
    text-decoration: none;
    transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.quick-links a:hover {
    transform: translateY(-2px);
    color: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 8px 18px rgba(var(--c-primary-rgb), .15);
}

@media (max-width: 575px) {
    .qa-section { padding: 6px 0 34px; }
    .quick-tiles { grid-template-columns: 1fr; gap: 12px; }
    .quick-links { gap: 8px; }
    .quick-links a { padding: 7px 14px; font-size: 13px; }
}
