.page-intro {
    background: linear-gradient(135deg, var(--primary) 0%, #1a5c42 100%);
    padding: 36px 0 32px;
}

.page-intro h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.page-intro h1 em {
    font-style: normal;
    color: #5dd6a8;
}

.intro-lead {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    line-height: 1.65;
}

/* Inner wrap of .page-intro with reduced top/bottom padding */
.page-intro-wrap {
    padding-bottom: 0;
    padding-top: 28px;
}

.back-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.school-body {
    padding: 20px;
    font-size: 0.875rem;
    color: #4a5c55;
    line-height: 1.65;
}

.school-section {
    margin-bottom: 24px;
}

.school-section p {
    margin-top: 10px;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-break: normal;
}

.intro-lead {
    overflow-wrap: break-word;
    word-break: normal;
}

.school-section:last-child {
    margin-bottom: 0;
}

.school-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.school-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.inline-ad {
    margin: 32px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px dashed #c5dad0;
    background: linear-gradient(180deg, #f2f9f5, #fffdf8);
}

.inline-ad-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.inline-ad-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--border);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.inline-ad-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.inline-ad-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c97e28, #a5611a);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(165, 97, 26, 0.25);
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.inline-ad-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.content-section p {
    max-width: none;
    margin-bottom: 1.5rem;
}

.ad-card {
    border: 1.5px dashed #c5dad0;
    background: linear-gradient(180deg, #f2f9f5, #fffdf8);
}

.ad-body {
    text-align: center;
    padding: 28px 24px;
}

.ad-disclosure {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--border);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.ad-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.ad-text {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.ad-button {
    display: inline-block;
    background: linear-gradient(135deg, #c97e28, #a5611a);
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(165, 97, 26, 0.28);
    transition: opacity 0.15s, transform 0.15s;
}

.ad-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-cta-wrap {
    text-align: center;
    padding: 40px 24px 16px;
}

.page-cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(26, 144, 103, 0.28);
    transition: background 0.15s, transform 0.15s;
}

.page-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.comparison-table-wrap {
    overflow-x: auto;
    margin: 20px 0 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.comparison-table thead th {
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comparison-table tbody th {
    color: var(--primary);
    font-weight: 700;
    background: rgba(11, 59, 42, 0.03);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: 0;
}

.chart-card {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(180deg, #f9fbfc, #ffffff);
    box-shadow: var(--shadow-sm);
}

.chart-frame {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
}

.chart-card canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.chart-caption {
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

.chart-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.content-section .comparison-highlight {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 720px) {
    .chart-card {
        padding: 16px;
    }

    .chart-frame {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }
}
