/* ============================================================
   programs.css — styles ONLY for the /programs/ page additions.
   Loaded AFTER style.css, so everything shared stays in style.css.
   Currently contains: the program comparison component.
   ============================================================ */

.compare-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.compare-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.compare-section h2 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.compare-section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #5a6a7a;
}

/* ---------- Tabs ---------- */
.compare-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.compare-tab {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.compare-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ---------- Panels ---------- */
.compare-panel {
    display: none;
}

.compare-panel.active {
    display: block;
    animation: compareFade 0.25s ease;
}

@keyframes compareFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Two option cards side by side */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.compare-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.compare-card h3 {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Rows inside each card: label + value */
.compare-row {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a97a5;
    margin-bottom: 0.15rem;
}

.compare-row-value {
    font-size: 1rem;
    color: #2c3e50;
}

/* "Best for" verdict strip under the two cards */
.compare-verdict {
    margin-top: 1.5rem;
    background: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.1rem 1.4rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.compare-verdict strong {
    color: var(--primary-color);
}

/* Optional caveat note under the whole component */
.compare-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #5a6a7a;
}

.compare-note:empty {
    display: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }

    .compare-tab {
        font-size: 0.9rem;
        padding: 0.55rem 1.1rem;
    }
}
