/* =========================================================
   Quran Hult — professional site theme (2026-11)
   Shared header, top bar, footer, buttons and typography.
   Loaded after every other stylesheet in layouts/app.blade.php.
   ========================================================= */

:root {
    --qt-green: #0d4a3d;
    --qt-green-deep: #082c25;
    --qt-green-soft: #e8f1ed;
    --qt-gold: #c99a52;
    --qt-gold-light: #e0ad57;
    --qt-cream: #f7f5ef;
    --qt-ink: #12302a;
    --qt-text: #3d524c;
    --qt-muted: #6b7c76;
    --qt-line: #e3e9e5;
    --qt-white: #fff;
    --qt-radius: 18px;
    --qt-radius-sm: 12px;
    --qt-shadow: 0 18px 48px rgba(13, 53, 45, .10);
    --qt-shadow-sm: 0 6px 20px rgba(13, 53, 45, .07);
    --qt-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --qt-container: 1240px;
}

/* ---------- Base ---------- */

body.qt-body {
    font-family: var(--qt-font);
    color: var(--qt-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.qt-body h1,
.qt-body h2,
.qt-body h3,
.qt-body h4 {
    font-family: var(--qt-font);
    letter-spacing: -.02em;
}

.qt-body img { max-width: 100%; }

.qt-body.qt-nav-open { overflow: hidden; }

.qt-container {
    width: 100%;
    max-width: var(--qt-container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* old custom cursors are no longer rendered */
.custom-cursor,
.qh-cursor,
.qh-cursor-ring { display: none !important; }

/* ---------- Eyebrows & links ---------- */

.qt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--qt-gold);
}

.qt-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.qt-eyebrow--light { color: var(--qt-gold-light); }

.qt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--qt-green);
    text-decoration: none;
}

.qt-link span { transition: transform .2s ease; }
.qt-link:hover span { transform: translateX(4px); }
.qt-link--light { color: var(--qt-gold-light); }

.qt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2fbf71;
    box-shadow: 0 0 0 4px rgba(47, 191, 113, .2);
    flex: none;
}

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

.qt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: 700 .92rem/1 var(--qt-font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.qt-btn:hover { transform: translateY(-2px); }
.qt-btn:focus-visible { outline: 3px solid var(--qt-gold-light); outline-offset: 3px; }

.qt-btn--sm { min-height: 38px; padding: 0 16px; font-size: .84rem; }
.qt-btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }

.qt-btn--primary { background: var(--qt-green); color: #fff !important; box-shadow: 0 10px 24px rgba(13, 74, 61, .22); }
.qt-btn--primary:hover { background: var(--qt-green-deep); }

.qt-btn--gold { background: var(--qt-gold-light); color: var(--qt-green-deep) !important; }
.qt-btn--gold:hover { background: #ecbd6b; }

.qt-btn--outline { border-color: rgba(13, 74, 61, .25); color: var(--qt-green) !important; background: #fff; }
.qt-btn--outline:hover { border-color: var(--qt-green); }

.qt-btn--outline-light { border-color: rgba(255, 255, 255, .4); color: #fff !important; background: transparent; }
.qt-btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.qt-btn--ghost { background: transparent; color: var(--qt-ink) !important; padding: 0 14px; }
.qt-btn--ghost:hover { color: var(--qt-green) !important; transform: none; }

.qt-btn--soft { background: var(--qt-green-soft); color: var(--qt-green) !important; }
.qt-btn--soft:hover { background: var(--qt-green); color: #fff !important; }

.qt-btn--wa { background: #25d366; color: #fff !important; }
.qt-btn--wa:hover { background: #128c4b; }

/* ---------- Top utility bar ---------- */

.qt-topbar {
    background: var(--qt-green-deep);
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
}

.qt-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 40px;
}

.qt-topbar-contact {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qt-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.qt-topbar a:hover { color: #fff; }
.qt-topbar svg { color: var(--qt-gold-light); }

.qt-topbar-note { opacity: .7; }

.qt-topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.qt-topbar-offer {
    font-weight: 600;
    color: var(--qt-gold-light) !important;
}

.qt-social {
    display: flex;
    gap: 6px;
}

.qt-topbar .qt-social a {
    width: 26px;
    height: 26px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-size: .66rem;
    font-weight: 700;
}

.qt-topbar .qt-social a:hover { background: var(--qt-gold-light); color: var(--qt-green-deep); }

/* ---------- Header ---------- */

.site-header.qt-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--qt-line);
    box-shadow: none;
    transition: box-shadow .3s ease;
}

.site-header.qt-header.is-scrolled { box-shadow: 0 8px 30px rgba(13, 45, 39, .08); }

.qt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 78px;
    transition: min-height .3s ease;
}

.site-header.qt-header.is-scrolled .qt-header-inner { min-height: 66px; }

.qt-brand {
    display: flex;
    align-items: center;
    flex: none;
    height: 56px;
}

.qt-brand img {
    display: block;
    width: auto;
    height: 56px;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
}

.qt-header .qt-nav {
    position: static;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.qt-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.qt-header .qt-nav-links a {
    position: relative;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--qt-ink);
    font-size: .93rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s, background .2s;
}

.qt-header .qt-nav-links a:hover { color: var(--qt-green); background: var(--qt-green-soft); }

.qt-header .qt-nav-links a.is-current { color: var(--qt-green); }

.qt-header .qt-nav-links a.is-current::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--qt-gold);
}

.qt-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qt-header .qt-nav-actions a,
.qt-header .qt-nav-actions button { font-size: .9rem; }

.qt-header .site-nav-cta { padding: 0 22px; margin: 0; }

.qt-logout { display: inline; margin: 0; }

.qt-header .qt-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--qt-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.qt-header .qt-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--qt-ink);
    transition: transform .25s ease, opacity .25s ease;
}

.qt-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.qt-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.qt-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
    .qt-topbar-note { display: none; }
    .qt-header .qt-nav-links a { padding: 10px 10px; }
}

@media (max-width: 960px) {
    .qt-header .qt-menu-toggle { display: flex; }

    .qt-header .qt-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - 68px);
        height: calc(100dvh - 68px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 18px;
        padding: 20px 24px 32px;
        background: #fff;
        border-top: 1px solid var(--qt-line);
        overflow-y: auto;
    }

    .qt-header .qt-nav.is-open { display: flex; }

    .qt-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
    }

    .qt-header .qt-nav-links a {
        padding: 14px 12px;
        font-size: 1.02rem;
        border-bottom: 1px solid var(--qt-line);
        border-radius: 0;
    }

    .qt-header .qt-nav-links a.is-current::after { display: none; }

    .qt-nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .qt-nav-actions .qt-btn,
    .qt-logout,
    .qt-logout .qt-btn { width: 100%; }

    .qt-nav-actions .qt-btn--ghost { border: 1.5px solid var(--qt-line); }
}

@media (max-width: 720px) {
    .qt-topbar-contact li:nth-child(2),
    .qt-topbar .qt-social { display: none; }
    .qt-topbar-inner { min-height: 36px; font-size: .75rem; }
    .qt-brand,
    .qt-brand img { height: 46px; }
    .qt-header-inner { min-height: 68px; }
}

@media (max-width: 460px) {
    .qt-topbar-offer { display: none !important; }
    .qt-topbar-inner { justify-content: center; }
}

/* ---------- Footer ---------- */

footer.site-footer.qt-footer {
    display: block;
    padding: 0;
    margin-top: 0;
    background: var(--qt-green-deep);
    background-image:
        radial-gradient(circle at 12% 0%, rgba(224, 173, 87, .10), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .05), transparent 45%);
    color: rgba(255, 255, 255, .78);
    font-size: .93rem;
}

.qt-footer-cta {
    position: relative;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 44px 48px;
    margin: 0;
    border-radius: 24px;
    background: linear-gradient(120deg, var(--qt-green) 0%, #135f4e 100%);
    box-shadow: 0 24px 60px rgba(8, 44, 37, .3);
    overflow: hidden;
}

.qt-footer-cta::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 40px solid rgba(224, 173, 87, .12);
    pointer-events: none;
}

.qt-footer-cta h2 {
    margin: 10px 0 8px;
    max-width: 620px;
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.2;
}

.qt-footer-cta p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .78); font-size: 1rem; line-height: 1.6; }

.qt-footer-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: none;
}

.qt-footer > .qt-container:first-child { padding-top: 72px; }

.qt-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 48px;
}

.qt-footer-brand img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 16px;
}

.qt-footer-brand p {
    max-width: 320px;
    margin: 0 0 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .7);
}

.qt-social--footer { flex-wrap: wrap; gap: 8px; }

.qt-social--footer a {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.qt-social--footer a:hover { background: rgba(255, 255, 255, .08); border-color: var(--qt-gold-light); }

.qt-footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qt-footer-col h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.qt-footer-col a,
.qt-footer-col span {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    line-height: 1.5;
    word-break: break-word;
}

.qt-footer-col a:hover { color: var(--qt-gold-light); }

.qt-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }

.qt-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: .84rem;
    color: rgba(255, 255, 255, .55);
}

@media (max-width: 960px) {
    .qt-footer-grid { grid-template-columns: 1fr 1fr; }
    .qt-footer-cta { flex-direction: column; align-items: flex-start; padding: 36px 32px; }
}

@media (max-width: 560px) {
    .qt-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .qt-footer-cta { padding: 30px 24px; }
    .qt-footer-cta-actions,
    .qt-footer-cta-actions .qt-btn { width: 100%; }
    .qt-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ---------- Scroll reveal (shared) ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .qt-btn:hover { transform: none; }
}

/* WhatsApp float sits above the back-to-top button */
.qs-progress { background: linear-gradient(90deg, var(--qt-green), var(--qt-gold-light)); }

/* ---------- "Fee on request" plan cards ---------- */
.px-card .px-price--quote { display: block; }
.px-card .px-price--quote strong {
    display: block;
    font-family: var(--qt-font);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.px-card .px-price--quote span { display: block; margin-top: 4px; font-size: .9rem; }

/* ---------- Student lesson viewer & certificates ---------- */
.lesson-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lesson-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 24px; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--qt-shadow); }
.lesson-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.lesson-pager > div:last-child { text-align: right; }
@media (max-width: 640px) { .lesson-pager { grid-template-columns: 1fr; } .lesson-pager > div:last-child { text-align: left; } }

.cert-print-actions { display: flex; justify-content: space-between; gap: 12px; max-width: 900px; margin: 0 auto 20px; }
.cert-sheet { max-width: 900px; margin: 0 auto; padding: 56px 48px; text-align: center; background: #fff; border: 10px double var(--qt-gold); border-radius: 6px; box-shadow: var(--qt-shadow); }
.cert-sheet img { height: 60px; width: auto; margin-bottom: 18px; }
.cert-sheet h1 { margin: 10px 0; font-size: clamp(2rem, 5vw, 3rem); color: var(--qt-green); }
.cert-sheet h2 { margin: 10px 0 28px; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.cert-sheet p { color: var(--qt-text); margin: 6px 0; }
.cert-meta { display: flex; justify-content: center; gap: 48px; margin: 28px 0 18px; padding-top: 22px; border-top: 1px solid var(--qt-line); }
.cert-meta small { display: block; color: var(--qt-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.cert-verify { font-size: .8rem; color: var(--qt-muted) !important; word-break: break-all; }
@media print {
    .qt-topbar, .site-header, .site-footer, .wa-float, .qs-top, .qs-progress, .cert-print-actions { display: none !important; }
    .cert-sheet { box-shadow: none; }
}

/* ---------- Registration, course requests, notifications ---------- */
.reg-card { width: min(560px, 100%); }
.reg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 22px; border-radius: 999px; background: var(--qt-cream); }
.reg-tabs a { padding: 10px 12px; border-radius: 999px; text-align: center; font-weight: 700; color: var(--qt-text); }
.reg-tabs a.is-active { background: var(--qt-green); color: #fff; }
.reg-card small { display: block; margin-top: 4px; color: var(--qt-muted); font-weight: 500; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request-form { display: grid; gap: 8px; margin-top: 10px; }
.request-form select, .request-form input { width: 100%; padding: 10px 12px; border: 1px solid #ccd7d1; border-radius: 9px; font: inherit; background: #fff; }
.request-card.is-pending { border-left: 4px solid var(--qt-gold); }
.request-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.request-head h3 { margin: 6px 0 4px; }
.request-head p { margin: 4px 0; }
.request-status { display: grid; gap: 6px; justify-items: end; text-align: right; }
.request-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--qt-line); }
.request-actions .filterbar select { min-width: 220px; }
.wa-body { margin-top: 12px; font-size: .92rem; }
@media (max-width: 640px) { .request-head { flex-direction: column; } .request-status { justify-items: start; text-align: left; } }
.auth-card textarea,
.auth-card select { display: block; width: 100%; margin-top: 7px; padding: 13px; border: 1px solid #ccd7d1; border-radius: 9px; font: inherit; background: #fff; resize: vertical; }
.auth-card .form-grid { gap: 0 16px; }

/* Authenticator-app sign-in */
.otp-input { font-size: 1.5rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.link-button { background: none; border: 0; padding: 0; color: var(--qt-green); font: inherit; text-decoration: underline; cursor: pointer; }
.security-page .form-card + .form-card { margin-top: 18px; }
.security-page .form-card h3 { margin-top: 0; }
.security-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.security-inline label { flex: 1 1 220px; }
.security-inline input { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid #ccd7d1; border-radius: 9px; font: inherit; }
.qr-box { width: 220px; max-width: 100%; margin: 14px 0; padding: 8px; background: #fff; border: 1px solid #e2e8e5; border-radius: 12px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.setup-key { display: inline-block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #f2f6f4; font-size: 1rem; letter-spacing: .08em; word-break: break-all; }
.security-codes { border: 2px solid #e5b84b; background: #fffaf0; }
.recovery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.recovery-list code { display: block; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid #eadcb5; font-size: 1rem; text-align: center; }
