/* ===================================
   TJTestPrep — Site-specific CSS overrides
   Loaded AFTER eduavenues-ui.css
   =================================== */

/* Site-specific variables (override shared tokens if needed) */
:root {
    --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body,
nav,
footer,
main,
section,
article,
aside,
button,
input,
select,
textarea,
a,
p,
li,
span,
div,
label,
td,
th {
    font-family: var(--font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 *,
h2 *,
h3 *,
h4 *,
h5 *,
h6 * {
    font-family: var(--font-heading) !important;
    letter-spacing: 0 !important;
}

/* Darker hero overlay to match AcademiesPrep visual tone */
.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(20, 50, 75, 0.85) 0%,
        rgba(15, 40, 65, 0.88) 100%
    );
}

/* ===================================
   Why TJTestPrep Section
   =================================== */
.why-tjtestprep {
    padding: var(--space-3xl) 0;
    background: var(--color-gray-50);
}

.why-tjtestprep-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.why-tjtestprep-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

/* Stats row */
.why-tjtestprep-stats {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.stat-block {
    text-align: center;
    flex: 1;
    max-width: 240px;
}

.stat-big {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xs);
}

.stat-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-gray-500);
}

.stat-divider {
    width: 1px;
    height: 72px;
    background: var(--color-gray-200);
    flex-shrink: 0;
    align-self: center;
}

/* Founder strip */
.why-tjtestprep-founder {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-lg);
}

.founder-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.founder-quote {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    font-style: italic;
    margin-bottom: 4px;
}

.founder-credit {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-400);
}

@media (max-width: 640px) {
    .why-tjtestprep-stats {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .stat-big {
        font-size: 2.75rem;
    }

    .why-tjtestprep-founder {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }
}

/* Compact disclosure tooltip for guarantee and deposit terms */
.info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.25rem;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}

.info-tip-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 30;
    width: min(300px, calc(100vw - 48px));
    padding: 0.75rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    color: var(--color-gray-700);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-50%, 4px);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.info-tip:hover .info-tip-panel,
.info-tip:focus .info-tip-panel,
.info-tip:focus-within .info-tip-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
