/* =========================================================
   Site additions — WhatsApp button, flash messages,
   pricing, contact and admin helpers (2026-10)
   ========================================================= */

:root {
    --qs-green: #0d352d;
    --qs-green-deep: #002c25;
    --qs-gold: #c99a52;
    --qs-gold-light: #e0ad57;
    --qs-cream: #f6f4ee;
    --qs-text: #16352f;
    --qs-muted: #687873;
    --qs-line: rgba(13, 53, 45, .13);
    --qs-wa: #25d366;
    --qs-wa-dark: #128c4b;
}

/* ---------- Floating WhatsApp button ---------- */

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--qs-wa);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 12px 30px rgba(18, 140, 75, .35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
    background: var(--qs-wa-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(18, 140, 75, .45);
    color: #fff;
}

.wa-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.wa-float svg {
    flex: none;
}

.wa-float-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width .3s ease;
}

.wa-float:hover .wa-float-label,
.wa-float:focus-visible .wa-float-label {
    max-width: 180px;
}

.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--qs-wa);
    z-index: -1;
    animation: wa-pulse 2.6s ease-out infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: .55; }
    70%, 100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float::before { animation: none; }
    .wa-float, .wa-float-label { transition: none; }
}

@media (max-width: 600px) {
    .wa-float { right: 16px; bottom: 16px; height: 56px; padding: 0 13px; }
}

/* ---------- Flash messages ---------- */

.site-flash {
    padding: 14px 7vw;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid transparent;
}

.site-flash--success { background: #e4f4ea; color: #155c3c; border-color: #c7e6d3; }
.site-flash--error   { background: #fff1f1; color: #9b2e2e; border-color: #f0caca; }

/* ---------- Footer contact list ---------- */

.site-footer-contact {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.site-footer-contact a {
    color: inherit;
    opacity: .85;
}

.site-footer-contact a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Pricing & contact page hero ---------- */

.px-hero {
    padding: 110px clamp(20px, 7vw, 110px) 90px;
    background:
        radial-gradient(circle at 85% 10%, rgba(224, 173, 87, .18), transparent 40%),
        var(--qs-green-deep);
    color: #fff;
    text-align: center;
}

.px-hero h1 {
    margin: 18px auto 20px;
    max-width: 900px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(2.6rem, 5.4vw, 4.8rem);
    line-height: 1;
    letter-spacing: -.04em;
    color: #fff;
}

.px-hero h1 em {
    color: var(--qs-gold-light);
    font-weight: 400;
    font-style: italic;
}

.px-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.7;
}

.px-wrap {
    padding: 60px clamp(20px, 7vw, 110px) 110px;
    background: var(--qs-cream);
}

/* ---------- Subject tabs ---------- */

.px-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -88px auto 50px;
    padding: 10px;
    width: fit-content;
    max-width: 100%;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(13, 53, 45, .12);
    position: relative;
}

.px-tabs button {
    border: 0;
    background: transparent;
    padding: 12px 22px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    color: var(--qs-text);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.px-tabs button:hover { background: var(--qs-cream); }

.px-tabs button.is-active {
    background: var(--qs-green);
    color: #fff;
}

.px-tabs button:focus-visible {
    outline: 3px solid var(--qs-gold);
    outline-offset: 2px;
}

.px-panel-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ---------- Plan cards ---------- */

.px-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: stretch;
}

.px-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--qs-line);
    border-radius: 24px;
    padding: 34px 30px 30px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.px-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(13, 53, 45, .10);
}

.px-card.is-featured {
    background: var(--qs-green);
    border-color: var(--qs-green);
    color: #fff;
    box-shadow: 0 28px 70px rgba(13, 53, 45, .25);
}

.px-badge {
    position: absolute;
    top: -13px;
    left: 30px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--qs-gold-light);
    color: var(--qs-green-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.px-category {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--qs-gold);
}

.px-card.is-featured .px-category { color: var(--qs-gold-light); }

.px-card h3 {
    margin: 10px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: -.02em;
}

.px-subtitle {
    margin: 0;
    color: var(--qs-muted);
    font-size: 15px;
    line-height: 1.5;
}

.px-card.is-featured .px-subtitle { color: rgba(255, 255, 255, .72); }

.px-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 24px 0 14px;
}

.px-price strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.03em;
}

.px-price span { color: var(--qs-muted); font-weight: 600; }
.px-price s { color: var(--qs-muted); font-size: 18px; }
.px-card.is-featured .px-price span,
.px-card.is-featured .px-price s { color: rgba(255, 255, 255, .65); }

.px-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.px-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--qs-cream);
    font-size: 13px;
    font-weight: 700;
}

.px-card.is-featured .px-meta span { background: rgba(255, 255, 255, .1); }

.px-features {
    list-style: none;
    margin: 6px 0 28px;
    padding: 18px 0 0;
    border-top: 1px solid var(--qs-line);
    display: grid;
    gap: 11px;
    font-size: 15px;
    line-height: 1.45;
}

.px-card.is-featured .px-features { border-color: rgba(255, 255, 255, .15); }

.px-features li {
    position: relative;
    padding-left: 28px;
}

.px-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(13, 53, 45, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230d352d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.px-card.is-featured .px-features li::before {
    background-color: rgba(224, 173, 87, .2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e0ad57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E");
}

.px-cta {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 14px;
    border: 1px solid var(--qs-green);
    color: var(--qs-green);
    font-weight: 800;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.px-cta:hover { background: var(--qs-green); color: #fff; }

.px-card.is-featured .px-cta {
    background: var(--qs-gold-light);
    border-color: var(--qs-gold-light);
    color: var(--qs-green-deep);
}

.px-card.is-featured .px-cta:hover { background: #fff; border-color: #fff; }

.px-footnote {
    max-width: 820px;
    margin: 60px auto 0;
    text-align: center;
    color: var(--qs-muted);
    line-height: 1.7;
}

.px-footnote-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

/* Homepage pricing teaser */

.px-home {
    padding: 120px clamp(24px, 6vw, 90px);
    background: #fff;
}

.px-home-more {
    text-align: center;
    margin-top: 44px;
}

/* ---------- Contact page ---------- */

.ct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: -60px auto 0;
    position: relative;
}

.ct-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--qs-line);
    border-radius: 22px;
    color: var(--qs-text);
    text-decoration: none;
    box-shadow: 0 18px 50px rgba(13, 53, 45, .08);
    transition: transform .2s;
}

.ct-card:hover { transform: translateY(-3px); }

.ct-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 500;
    word-break: break-word;
}

.ct-card small { color: var(--qs-muted); }

.ct-card--wa { background: var(--qs-wa-dark); border-color: var(--qs-wa-dark); color: #fff; }
.ct-card--wa small, .ct-card--wa .ct-label { color: rgba(255, 255, 255, .85); }

.ct-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--qs-gold);
}

.ct-address {
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--qs-line);
    border-radius: 22px;
}

.ct-address p { margin: 8px 0 0; font-size: 17px; }

@media (max-width: 700px) {
    .px-hero { padding: 80px 20px 80px; }
    .px-tabs { border-radius: 22px; margin-top: -70px; }
    .px-tabs button { padding: 10px 16px; font-size: 14px; }
    .px-home { padding: 80px 20px; }
}

/* ---------- Admin helpers ---------- */

.subnav a.is-current { background: var(--cream, #f7f3e9); color: var(--green, #0f5b44); }

.admin-thumb {
    width: 96px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.admin-preview {
    max-width: 420px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 18px;
}

.row-actions {
    white-space: nowrap;
}

.row-actions form { display: inline; margin-left: 12px; }

.form-card h2 { margin: 10px 0 18px; font-size: 26px; }
.form-card h2:not(:first-of-type) { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line, #dfe6df); }

/* ---------- Homepage slider: keep arrows clear of the slide text on desktop ---------- */

@media (min-width: 769px) {
    .qh-slider .qh-slider-arrow {
        top: auto;
        bottom: 26px;
    }

    .qh-slider .qh-slider-prev {
        left: auto;
        right: 96px;
    }

    .qh-slider .qh-slider-next {
        right: 30px;
    }
}

/* ---------- Course catalogue cards with photos ---------- */

.course-card--media {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-card--media img {
    width: calc(100% + 56px);
    margin: -28px -28px 20px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.course-card--media small { margin-top: auto; }

/* ---------- Reading progress, compact header, back to top ---------- */

.qs-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    background: linear-gradient(90deg, #0d352d, #e0ad57);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

.site-header {
    transition: box-shadow .3s ease, background .3s ease;
}

.site-header .site-header-inner {
    transition: min-height .3s ease, padding .3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 30px rgba(13, 45, 39, .08);
}

.site-header.is-scrolled .site-header-inner {
    min-height: 64px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.qs-top {
    position: fixed;
    right: 30px;
    bottom: 96px;
    z-index: 9989;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(13, 53, 45, .15);
    background: #fff;
    color: #0d352d;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(13, 53, 45, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, visibility .3s, background .2s, color .2s;
}

.qs-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.qs-top:hover { background: #0d352d; color: #fff; }
.qs-top:focus-visible { outline: 3px solid #e0ad57; outline-offset: 3px; }

@media (max-width: 600px) {
    .qs-top { right: 21px; bottom: 84px; width: 42px; height: 42px; }
}
