/*!
 * TESTSEEK — Hero (landing) styles v4.2
 * LIGHT theme · Elementor / Gutenberg / Classic Editor safe
 * Depends on frontend.css tokens & .tsk-btn helpers (loaded first).
 */

/* Extra hero-only tokens (still inherit .tsk-shell tokens from frontend.css). */
.tsk-hero-shell {
    --tsk-hero-radius: 24px;
    --tsk-hero-panel:  #ffffff;
    --tsk-hero-soft:   #eefaf3;
    --tsk-hero-ink:    #0b1220;
    --tsk-hero-ink-2:  #334036;
    --tsk-hero-muted:  #4b5563;
    --tsk-hero-border: #d9e0dd;
    padding: 0;
}

/* --------------------------------------------------------------
 * Hero section
 * ------------------------------------------------------------ */
.tsk-hero-shell .tsk-hero {
    position: relative;
    padding: clamp(28px, 4vw, 60px) clamp(20px, 3vw, 44px);
    background: linear-gradient(160deg, var(--tsk-hero-soft) 0%, #ffffff 60%);
    color: var(--tsk-hero-ink);
    overflow: hidden;
    border-radius: var(--tsk-hero-radius);
    border: 1px solid var(--tsk-hero-border);
    box-shadow: 0 12px 30px rgba(15, 108, 58, .08);
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.tsk-hero-shell .tsk-hero * { box-sizing: border-box; }
.tsk-hero-shell .tsk-hero--tall { min-height: 520px; display:flex; align-items:center; }

/* Soft green blobs */
.tsk-hero-shell .tsk-hero::before,
.tsk-hero-shell .tsk-hero::after {
    content:""; position:absolute; pointer-events:none;
    filter: blur(60px); opacity: .55; z-index:0;
    border-radius: 50%;
}
.tsk-hero-shell .tsk-hero::before { width: 320px; height: 320px; background: rgba(16,185,129,.28); top: -120px; right: -80px; }
.tsk-hero-shell .tsk-hero::after  { width: 420px; height: 420px; background: rgba(15,108,58,.18);  bottom: -220px; left: -140px; }

.tsk-hero-shell .tsk-hero__inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    max-width: 1200px; margin: 0 auto;
}
.tsk-hero-shell .tsk-hero--center .tsk-hero__inner { grid-template-columns: 1fr; text-align: center; }

.tsk-hero-shell .tsk-hero__content {
    display: flex; flex-direction: column; gap: 18px; min-width: 0;
}

/* Brand row: rounded-square white logo tile + eyebrow pill */
.tsk-hero-shell .tsk-hero__brand {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.tsk-hero-shell .tsk-hero__logo-tile {
    display: inline-flex; align-items: center; justify-content: center;
    width: 88px; height: 88px;
    background: #ffffff;
    border: 2px solid var(--tsk-hero-border);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 22px rgba(15, 108, 58, .14);
    flex-shrink: 0;
    overflow: hidden;
}
.tsk-hero-shell .tsk-hero__logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto; height: auto;
    background: transparent !important; /* neutralise theme overrides */
    padding: 0 !important;
    border-radius: 10px;
    object-fit: contain;
}
.tsk-hero-shell .tsk-hero__eyebrow {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
    background: #ffffff;
    color: var(--tsk-primary, #0f6c3a);
    border: 1px solid #cfe9dc;
    line-height: 1;
}

.tsk-hero-shell .tsk-hero__heading {
    font-size: clamp(28px, 4.4vw, 52px);
    font-weight: 900; line-height: 1.06; letter-spacing: -0.02em;
    margin: 0; color: var(--tsk-hero-ink);
    text-decoration: none !important; /* Elementor themes sometimes add underline */
}
.tsk-hero-shell .tsk-hero__subheading {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--tsk-hero-ink-2);
    max-width: 60ch; margin: 0;
    line-height: 1.6;
}

/* CTA row — force .tsk-btn look even inside Elementor <a> resets. */
.tsk-hero-shell .tsk-hero__ctas {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px;
    align-items: center;
}
.tsk-hero-shell .tsk-hero__btn.tsk-btn {
    padding: 13px 26px;
    font-size: 15px;
    min-height: 48px;
    text-decoration: none !important;
    border-radius: 999px;
    line-height: 1.2;
}
.tsk-hero-shell .tsk-hero--center .tsk-hero__ctas { justify-content: center; }

/* Stats — horizontal, 3 columns, clean cards */
.tsk-hero-shell .tsk-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    max-width: 560px;
}
.tsk-hero-shell .tsk-hero--center .tsk-hero__stats {
    margin-left: auto; margin-right: auto;
}
.tsk-hero-shell .tsk-hero__stat {
    padding: 14px 12px;
    background: #ffffff;
    border: 1px solid var(--tsk-hero-border);
    border-radius: 14px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tsk-hero-shell .tsk-hero__stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 108, 58, .12);
    border-color: var(--tsk-accent, #10b981);
}
.tsk-hero-shell .tsk-hero__stat-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--tsk-primary, #0f6c3a);
    letter-spacing: -0.01em;
    line-height: 1.1;
    font-feature-settings: "tnum";
}
.tsk-hero-shell .tsk-hero__stat-label {
    font-size: 11.5px;
    color: var(--tsk-hero-muted);
    text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
    margin-top: 4px;
    line-height: 1.2;
}

/* Media / preview */
.tsk-hero-shell .tsk-hero__media {
    position: relative;
    min-width: 0;
    display: flex; align-items: center; justify-content: center;
}
.tsk-hero-shell .tsk-hero__media img {
    max-width: 100%; height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 108, 58, .18);
    display: block;
}

.tsk-hero-shell .tsk-hero__preview {
    position: relative;
    width: 100%; max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 22px 20px;
    border: 1px solid var(--tsk-hero-border);
    box-shadow: 0 20px 40px rgba(15, 108, 58, .14);
    transform: rotate(-1.5deg);
}
.tsk-hero-shell .tsk-hero__preview-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 14px;
}
.tsk-hero-shell .tsk-hero__pill {
    display: inline-flex; align-items: center;
    font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
    padding: 5px 11px; border-radius: 999px;
    background: #e7f7ee;
    color: var(--tsk-primary, #0f6c3a);
    border: 1px solid #cfe9dc;
    text-transform: uppercase;
}
.tsk-hero-shell .tsk-hero__timer {
    background: var(--tsk-primary, #0f6c3a);
    color: #ffffff;
    padding: 5px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 800;
    font-feature-settings: "tnum";
}
.tsk-hero-shell .tsk-hero__preview-q {
    font-size: 15px; font-weight: 700; line-height: 1.4;
    color: var(--tsk-hero-ink);
    margin-bottom: 12px;
}
.tsk-hero-shell .tsk-hero__preview-opts {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.tsk-hero-shell .tsk-hero__preview-opts span {
    font-size: 13px; font-weight: 600;
    color: var(--tsk-hero-ink-2);
    padding: 8px 12px;
    background: #f8faf9;
    border-radius: 10px;
    border: 1px solid var(--tsk-hero-border);
    line-height: 1.3;
}
.tsk-hero-shell .tsk-hero__preview-opts span.is-correct {
    color: #065f46; font-weight: 800;
    background: #d1fae5;
    border-color: #a7f3d0;
}

/* --------------------------------------------------------------
 * Featured mock tests grid — shown below hero
 * ------------------------------------------------------------ */
.tsk-hero-shell .tsk-featured {
    margin-top: clamp(28px, 4vw, 48px);
}
.tsk-hero-shell .tsk-featured__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(20px, 3vw, 32px);
}
.tsk-hero-shell .tsk-featured__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900; letter-spacing: -0.02em;
    color: var(--tsk-hero-ink);
    margin: 0 0 6px;
    text-decoration: none !important;
}
.tsk-hero-shell .tsk-featured__subtitle {
    font-size: 15px;
    color: var(--tsk-hero-muted);
    margin: 0;
    line-height: 1.5;
}
.tsk-hero-shell .tsk-card--featured .tsk-card__title { padding-right: 0; }

/* --------------------------------------------------------------
 * Elementor / theme overrides — neutralise the worst offenders
 * ------------------------------------------------------------ */
.elementor .tsk-hero-shell,
.elementor-widget-container .tsk-hero-shell,
.wp-block-shortcode .tsk-hero-shell {
    width: 100%; max-width: 100%;
}
.tsk-hero-shell a,
.tsk-hero-shell a:hover,
.tsk-hero-shell a:focus,
.tsk-hero-shell a:visited { text-decoration: none !important; }

.tsk-hero-shell .tsk-hero__heading,
.tsk-hero-shell .tsk-featured__title { text-shadow: none; }

/* Force button colours even when theme sets `a { color: … }` */
.tsk-hero-shell .tsk-btn--primary,
.tsk-hero-shell .tsk-btn--primary:visited { color: #ffffff !important; }
.tsk-hero-shell .tsk-btn--outline,
.tsk-hero-shell .tsk-btn--outline:visited { color: var(--tsk-primary, #0f6c3a) !important; }
.tsk-hero-shell .tsk-btn--primary:hover { color: #ffffff !important; }
.tsk-hero-shell .tsk-btn--outline:hover { color: var(--tsk-primary, #0f6c3a) !important; }

/* --------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------ */
@media (max-width: 900px) {
    .tsk-hero-shell .tsk-hero__inner { grid-template-columns: 1fr; }
    .tsk-hero-shell .tsk-hero__media { order: 2; }
    .tsk-hero-shell .tsk-hero__content { order: 1; }
    .tsk-hero-shell .tsk-hero__preview { max-width: 100%; transform: none; }
}

@media (max-width: 600px) {
    .tsk-hero-shell .tsk-hero { padding: 24px 18px; border-radius: 18px; }
    .tsk-hero-shell .tsk-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .tsk-hero-shell .tsk-hero__stat { padding: 12px 8px; }
    .tsk-hero-shell .tsk-hero__stat-value { font-size: 18px; }
    .tsk-hero-shell .tsk-hero__stat-label { font-size: 10.5px; letter-spacing: .04em; }
    .tsk-hero-shell .tsk-hero__ctas { gap: 8px; }
    .tsk-hero-shell .tsk-hero__btn.tsk-btn { flex: 1 1 45%; padding: 12px 16px; font-size: 14px; }
    .tsk-hero-shell .tsk-hero__preview-opts { grid-template-columns: 1fr; }
    .tsk-hero-shell .tsk-hero__logo-tile { width: 54px; height: 54px; padding: 6px; }
}

@media (max-width: 380px) {
    .tsk-hero-shell .tsk-hero__stats { grid-template-columns: 1fr 1fr; }
    .tsk-hero-shell .tsk-hero__stat:last-child { grid-column: span 2; max-width: 200px; margin: 0 auto; }
}
