/*
 * College ROI Calculator — SEO Pages Stylesheet
 * Supplements the main style.css for /college-roi/* virtual pages.
 */

/* ── Page wrapper ─────────────────────────────────────── */
.croi-seo-page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

/* ── Breadcrumb ───────────────────────────────────────── */
.croi-seo-breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 20px;
}
.croi-seo-breadcrumb a {
    color: #6366f1;
    text-decoration: none;
}
.croi-seo-breadcrumb a:hover { text-decoration: underline; }
.croi-seo-breadcrumb span { margin: 0 6px; }

/* ── Hero ─────────────────────────────────────────────── */
.croi-seo-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.croi-seo-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.2;
    color: #1a1a2e;
}
.croi-seo-location {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}
.croi-seo-location a { color: #6366f1; text-decoration: none; }
.croi-seo-location a:hover { text-decoration: underline; }

/* ── ROI badge (inherits .croi-roi-badge, override size) ─ */
.croi-seo-roi-badge {
    font-size: 1rem;
    white-space: nowrap;
}

/* ── Summary bar ──────────────────────────────────────── */
.croi-seo-summary-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f1ff 100%);
    border: 1px solid #e0e0f5;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.croi-seo-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.croi-seo-summary-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
.croi-seo-summary-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
}

/* ── Section headings ─────────────────────────────────── */
.croi-seo-stats-section h2,
.croi-seo-breakeven-section h2,
.croi-seo-calculator-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a2e;
}

.croi-seo-stats-section,
.croi-seo-breakeven-section,
.croi-seo-calculator-section {
    margin-bottom: 36px;
}

/* ── Override stat grid width on SEO pages ────────────── */
.croi-seo-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ── Attribution ──────────────────────────────────────── */
.croi-seo-attribution {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ── State index table ────────────────────────────────── */
.croi-seo-table-section { margin-bottom: 40px; }

.croi-seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.croi-seo-table thead tr {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}
.croi-seo-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.croi-seo-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f8;
    vertical-align: middle;
}
.croi-seo-table tbody tr:last-child td { border-bottom: none; }
.croi-seo-table tbody tr:hover { background: #fafafe; }
.croi-seo-table a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}
.croi-seo-table a:hover { text-decoration: underline; }
.croi-seo-table small { color: #9ca3af; font-size: 0.78rem; }
.croi-seo-rank {
    color: #9ca3af;
    font-weight: 700;
    width: 36px;
    text-align: center;
}

/* ── Hub states grid ──────────────────────────────────── */
.croi-seo-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.croi-seo-state-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid #e8e8f5;
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.95rem;
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.croi-seo-state-card span {
    font-size: 0.78rem;
    color: #6366f1;
    font-weight: 500;
}
.croi-seo-state-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99,102,241,0.15);
    transform: translateY(-2px);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
    .croi-seo-hero { flex-direction: column; }
    .croi-seo-roi-badge { align-self: flex-start; }
    .croi-seo-table th:nth-child(5),
    .croi-seo-table td:nth-child(5),
    .croi-seo-table th:nth-child(6),
    .croi-seo-table td:nth-child(6) { display: none; }
}
