/**
 * IB Math Master — About
 * Page-specific CSS (sections unique to about page)
 *
 * Requires: tokens.css, shared.css
 * Astra owns: body, headings, links, primary buttons, container
 */

/* =========================================
   HERO — About Variant
   (Grid structure in shared.css)
   ========================================= */
.ib-hero {
    background: linear-gradient(135deg, var(--ib-navy) 0%, var(--ib-navy-light) 50%, #1e4a7a 100%);
    overflow: hidden;
    padding: var(--ib-section-pad-hero);
    position: relative;
}
.ib-hero::before {
    border-radius: var(--ib-radius-circle);
    content: '';
    height: 400px;
    position: absolute;
    right: -60px;
    top: -100px;
    width: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 65%);
}
.ib-hero::after {
    border-radius: var(--ib-radius-circle);
    content: '';
    height: 250px;
    left: 8%;
    position: absolute;
    bottom: -40px;
    width: 250px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 65%);
}
.ib-hero h1 {
    color: var(--ib-white);
    margin-bottom: var(--ib-space-16);
}
.ib-hero-badge {
    background: rgba(56, 189, 248, 0.12);
    border-radius: var(--ib-space-6);
    color: #7dd3fc;
    display: inline-block;
    font-size: var(--ib-font-size-sm);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--ib-space-20);
    padding: var(--ib-space-6) var(--ib-space-16);
    text-transform: uppercase;
}
.ib-hero h1 span {
    color: var(--ib-accent);
}
.ib-hero-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--ib-font-size-body);
    line-height: 1.65;
    margin-bottom: var(--ib-space-24);
}
.ib-hero-creds {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ib-space-10);
}
.ib-hero-cred {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ib-radius-xs);
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    font-size: var(--ib-font-size-sm);
    gap: var(--ib-space-6);
    padding: var(--ib-space-8) var(--ib-space-16);
}
.ib-hero-cred strong {
    color: var(--ib-white);
    font-weight: 700;
}
.ib-hero-photo {
    grid-column: 2;
    grid-row: 1 / 3;
}
.ib-hero-photo img {
    border-radius: var(--ib-radius-md);
    display: block;
    height: auto;
    width: 100%;
}
.ib-hero-photo figcaption {
    color: var(--ib-white);
    font-size: var(--ib-font-size-base);
    font-weight: 700;
    margin-top: var(--ib-space-12);
}

/* =========================================
   MY STORY
   ========================================= */
.ib-story {
    background: var(--ib-white);
    border-bottom: 1px solid var(--ib-border);
    padding: var(--ib-section-pad) 0;
}
.ib-story-grid {
    align-items: start;
    display: grid;
    gap: var(--ib-space-56);
    grid-template-columns: 1fr 1fr;
}
.ib-story-prose h2 {
    margin-bottom: var(--ib-space-20);
}
.ib-story-prose p {
    color: var(--ib-text-secondary);
    font-size: var(--ib-font-size-md);
    line-height: 1.75;
    margin-bottom: var(--ib-space-16);
}
.ib-story-prose p:last-child {
    margin-bottom: 0;
}
.ib-story-aside {
    display: flex;
    flex-direction: column;
    gap: var(--ib-space-16);
    padding-top: var(--ib-space-8);
}
.ib-story-insight {
    background: var(--ib-light);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    padding: 22px 20px 22px 48px;
    position: relative;
}
.ib-story-insight::before {
    border-radius: var(--ib-space-4);
    content: '';
    height: 16px;
    left: 20px;
    position: absolute;
    top: 24px;
    width: 16px;
}
.ib-story-insight.ib-blue::before {
    background: rgba(14, 165, 233, 0.15);
}
.ib-story-insight.ib-navy::before {
    background: rgba(28, 64, 112, 0.1);
}
.ib-story-insight.ib-green::before {
    background: rgba(16, 185, 129, 0.12);
}
.ib-story-insight h4 {
    color: var(--ib-navy);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: var(--ib-space-4);
}
.ib-story-insight p {
    color: var(--ib-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   WHY IB MATH
   ========================================= */
.ib-why {
    background: var(--ib-light);
    border-bottom: 1px solid var(--ib-border);
    padding: var(--ib-section-pad) 0;
}
.ib-why-header {
    margin-bottom: var(--ib-space-48);
    margin-left: auto;
    margin-right: auto;
    max-width: var(--ib-content-narrow);
    text-align: center;
}
.ib-why-header h2 {
    margin-bottom: var(--ib-space-14);
}
.ib-why-header p {
    color: var(--ib-text-muted);
    font-size: var(--ib-font-size-md);
    line-height: 1.7;
}
.ib-why-cards {
    display: grid;
    gap: var(--ib-space-20);
    grid-template-columns: repeat(3, 1fr);
}
.ib-why-card {
    background: var(--ib-white);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    border-top: 3px solid transparent;
    padding: var(--ib-space-28) var(--ib-space-24);
}
.ib-why-card:nth-child(1) { border-top-color: var(--ib-navy-light); }
.ib-why-card:nth-child(2) { border-top-color: var(--ib-accent-hover); }
.ib-why-card:nth-child(3) { border-top-color: var(--ib-accent); }
.ib-why-num {
    color: var(--ib-navy-light);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: var(--ib-space-6);
}
.ib-why-card h3 {
    font-size: var(--ib-font-size-md);
    font-weight: 700;
    margin-bottom: var(--ib-space-8);
}
.ib-why-card p {
    color: var(--ib-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================
   HOW SESSIONS WORK (Approach)
   ========================================= */
.ib-approach {
    background: var(--ib-white);
    border-bottom: 1px solid var(--ib-border);
    padding: var(--ib-section-pad) 0;
}
.ib-approach-header {
    margin: 0 auto var(--ib-space-48);
    max-width: 640px;
    text-align: center;
}
.ib-approach-header h2 {
    margin-bottom: var(--ib-space-14);
}
.ib-approach-header p {
    color: var(--ib-text-muted);
    font-size: var(--ib-font-size-md);
    line-height: 1.7;
}
.ib-approach-grid {
    display: grid;
    gap: var(--ib-space-20);
    grid-template-columns: repeat(3, 1fr);
}
.ib-approach-card {
    background: var(--ib-light);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    padding: var(--ib-space-28) var(--ib-space-24);
    text-align: center;
}
.ib-approach-step {
    align-items: center;
    background: linear-gradient(135deg, var(--ib-navy-light), #225484);
    border-radius: var(--ib-space-10);
    color: var(--ib-white);
    display: inline-flex;
    font-size: var(--ib-font-size-md);
    font-weight: 800;
    height: 40px;
    justify-content: center;
    margin-bottom: var(--ib-space-14);
    width: 40px;
}
.ib-approach-card h3 {
    font-size: var(--ib-font-size-body);
    font-weight: 700;
    margin-bottom: var(--ib-space-10);
}
.ib-approach-card p {
    color: var(--ib-text-muted);
    font-size: 14px;
    line-height: 1.65;
}
.ib-approach-footer {
    margin-top: var(--ib-space-36);
    text-align: center;
}

/* =========================================
   TRACK RECORD
   ========================================= */
.ib-track {
    background: var(--ib-light);
    border-bottom: 1px solid var(--ib-border);
    padding: var(--ib-section-pad) 0;
}
.ib-track-grid {
    align-items: start;
    display: grid;
    gap: var(--ib-space-56);
    grid-template-columns: 1fr 1fr;
}
.ib-track-prose h2 {
    line-height: 1.2;
    margin-bottom: var(--ib-space-16);
}
.ib-track-prose h2 span {
    color: var(--ib-accent-hover);
}
.ib-track-prose p {
    color: var(--ib-text-secondary);
    font-size: var(--ib-font-size-md);
    line-height: 1.75;
    margin-bottom: var(--ib-space-16);
}
.ib-track-items {
    display: flex;
    flex-direction: column;
    gap: var(--ib-space-14);
    padding-top: var(--ib-space-4);
}
.ib-track-item {
    align-items: start;
    background: var(--ib-white);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-space-10);
    display: flex;
    gap: var(--ib-space-16);
    padding: var(--ib-space-20) 22px;
}
.ib-track-icon {
    align-items: center;
    border-radius: var(--ib-radius-xs);
    display: flex;
    flex-shrink: 0;
    font-size: var(--ib-font-size-lg);
    font-weight: 800;
    height: 40px;
    justify-content: center;
    width: 40px;
}
.ib-track-icon.ib-navy {
    background: rgba(28, 64, 112, 0.08);
    color: var(--ib-navy-light);
}
.ib-track-icon.ib-blue {
    background: rgba(14, 165, 233, 0.1);
    color: var(--ib-accent-hover);
}
.ib-track-icon.ib-sky {
    background: rgba(56, 189, 248, 0.1);
    color: #0284c7;
}
.ib-track-item h4 {
    font-size: var(--ib-font-size-base);
    font-weight: 700;
    margin-bottom: 3px;
}
.ib-track-item p {
    color: var(--ib-text-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

/* =========================================
   TESTIMONIALS — About Variant
   (Header in shared.css)
   ========================================= */
.ib-testimonials {
    background: var(--ib-white);
    border-bottom: 1px solid var(--ib-border);
    padding: var(--ib-section-pad) 0;
}
.ib-testimonials-grid {
    display: grid;
    gap: var(--ib-space-20);
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}
.ib-testimonial-card {
    background: var(--ib-light);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: var(--ib-space-28) var(--ib-space-24);
    position: relative;
}
.ib-testimonial-card::before {
    color: rgba(28, 64, 112, 0.04);
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 8px;
}
.ib-testimonial-quote {
    color: var(--ib-text-secondary);
    flex: 1;
    font-size: var(--ib-font-size-base);
    line-height: 1.7;
    margin-bottom: var(--ib-space-16);
}
.ib-testimonial-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
}
.ib-testimonial-name {
    color: var(--ib-navy);
    font-size: 14px;
    font-weight: 700;
}
.ib-testimonial-meta {
    color: var(--ib-text-muted);
    font-size: var(--ib-font-size-sm);
    font-weight: 600;
}
.ib-testimonials-link {
    margin-top: var(--ib-space-32);
    text-align: center;
}
.ib-testimonials-link a {
    color: var(--ib-accent-hover);
    font-size: var(--ib-font-size-base);
    font-weight: 600;
    text-decoration: none;
}
.ib-testimonials-link a:hover {
    color: var(--ib-navy);
}

/* =========================================
   FAQ — shared.css handles entirely
   Just use ib-faq markup + ib-faq.js
   ========================================= */

/* =========================================
   FINAL CTA — shared.css handles entirely
   Just use ib-cta markup
   ========================================= */

/* =========================================
   RESPONSIVE — 1024px
   ========================================= */
@media (max-width: 1024px) {
    .ib-hero::before,
    .ib-hero::after {
        display: none;
    }
    .ib-hero-photo {
        grid-column: 1;
        grid-row: 2;
        max-width: 260px;
        margin: 0 auto;
    }
    .ib-hero-creds {
        justify-content: center;
    }
    .ib-story-grid,
    .ib-track-grid {
        grid-template-columns: 1fr;
    }
    .ib-why-cards,
    .ib-approach-grid,
    .ib-testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   RESPONSIVE — 768px
   ========================================= */
@media (max-width: 768px) {
    .ib-why-cards,
    .ib-approach-grid,
    .ib-testimonials-grid {
        grid-template-columns: 1fr;
    }
}
