/* =============================================
   THE TRAILHEAD SCHOOL — Curriculum Page Styles
   ============================================= */

/* Curriculum Hero */
.curriculum-hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?w=1400&q=80');
    background-size: cover;
    background-position: center 40%;
    padding: 5rem 2rem;
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curriculum-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(250, 247, 242, 0.85) 0%,
        rgba(250, 247, 242, 0.75) 50%,
        rgba(250, 247, 242, 0.85) 100%
    );
}

.curriculum-hero .hero-content {
    position: relative;
    z-index: 2;
}

.curriculum-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 0.3rem;
}

.curriculum-hero .hero-tagline {
    font-size: 1.1rem;
    color: #1B2A4A;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headings */
.section-heading-center {
    text-align: center;
    margin-bottom: 0.3rem;
}

.philosophy-intro {
    text-align: center;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Subject Grid */
.subject-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.subject-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(27, 42, 74, 0.06);
    border: 1px solid rgba(27, 42, 74, 0.06);
    transition: box-shadow 0.2s;
}

.subject-card:hover {
    box-shadow: 0 4px 20px rgba(27, 42, 74, 0.1);
}

.subject-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.subject-icon svg {
    display: inline-block;
}

.subject-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #1B2A4A;
    margin-bottom: 0.8rem;
    text-align: center;
}

.subject-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.subject-card ul {
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.subject-card li {
    font-size: 0.9rem;
}

/* Highlight Box */
.highlight-box {
    background-color: rgba(201, 168, 76, 0.08);
    border-left: 3px solid #C9A84C;
    border-radius: 0 6px 6px 0;
    padding: 1.2rem 1.5rem;
    margin-top: 1.2rem;
}

.highlight-box p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Reverse layout */
.reverse-on-desktop {
    flex-direction: row-reverse;
}

/* Differentiators Grid */
.differentiators {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.diff-item-centered {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
}

.diff-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.diff-item h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: #1B2A4A;
    margin-bottom: 0.5rem;
}

.diff-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Active nav link */
.main-nav a.active {
    color: #C9A84C;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .curriculum-hero h1 {
        font-size: 2rem;
    }

    .subject-grid {
        grid-template-columns: 1fr;
    }

    .differentiators {
        grid-template-columns: 1fr;
    }

    .reverse-on-desktop {
        flex-direction: column !important;
    }
}
