/* ==================== Academics Page Styles ==================== */

/* Add parallax background to body */
body {
    background-image: url('../media/default_page_media/academics.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==================== Page Header ==================== */
.page-header {
    background-image: url('../media/default_page_media/academics.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 200px 0;
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==================== Content Section ==================== */
.content-section {
    padding: 80px 0;
    background-color: var(--white);
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== Curriculum Section ==================== */
.curriculum-section {
    padding: 80px 0;
    background-color: var(--white);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.curriculum-card {
    background-color: var(--off-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.curriculum-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.curriculum-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================== Primary Section ==================== */
.primary-section {
    padding: 80px 0;
    background-color: var(--off-white);
}

/* ==================== Secondary Section ==================== */
.secondary-section {
    padding: 80px 0;
    background-color: var(--white);
}

/* ==================== Cambridge Section ==================== */
.cambridge-section {
    padding: 80px 0;
    background-color: var(--off-white);
}

/* ==================== Academics Page Styles ==================== */
.content-section {
    padding: 80px 0;
    background-color: var(--white);
}

.cambridge-badge {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--off-white);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 40px;
    border-left: 4px solid var(--accent-color);
}

.cambridge-badge img {
    height: 100px;
    width: auto;
}

.badge-text h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.badge-text p {
    color: var(--text-light);
    line-height: 1.7;
}

.primary-section,
.secondary-section {
    padding: 80px 0;
    background-color: var(--white);
}

.primary-section {
    background-color: var(--off-white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.content-text h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.content-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.content-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    color: var(--text-light);
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 50px 0 20px;
    padding-left: 20px;
    border-left: 4px solid var(--accent-color);
}

.program-desc {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.igcse-section,
.alevel-section {
    margin-top: 60px;
}

.subject-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent-color);
}

.category-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.category-card ul {
    list-style: none;
}

.category-card li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--gray-light);
}

.category-card li:last-child {
    border-bottom: none;
}

.alevel-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-box .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.feature-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cambridge-section {
    padding: 80px 0;
    background-color: var(--off-white);
}

.cambridge-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.support-section {
    padding: 80px 0;
    background-color: var(--white);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.support-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-light);
    text-align: center;
    transition: var(--transition);
}

.support-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.support-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .subject-categories,
    .cambridge-benefits,
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Fix background for mobile - keep parallax but adjust sizing */
    body {
        background-size: auto 100%;
        background-position: center center;
    }
    
    .page-header {
        background-size: auto 100%;
        background-position: center center;
        padding: 150px 0;
    }

    .cambridge-badge {
        flex-direction: column;
        text-align: center;
    }

    .subject-categories,
    .alevel-features,
    .cambridge-benefits,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 150px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .curriculum-grid {
        grid-template-columns: 1fr;
    }
}
