/* --- 1. GLOBAL SETTINGS & TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #3498db;
    --dark-navy: #0d3b66;
    --school-yellow: #f4d35e;
    --text-main: #1a1c1e;
    --text-gray: #4a5568;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-bold: 0 15px 35px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 2. PAGE HEADER --- */
.page-header {
    background: linear-gradient(rgba(13, 59, 102, 0.9), rgba(13, 59, 102, 0.9)), 
                url('/static/course/images/header-bg.jpg') center/cover;
    padding: 100px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255, 255, 255, 0.8); max-width: 700px; margin: 0 auto; }

/* --- 3. ABOUT HERO (IMAGE MANAGEMENT) --- */
.about-hero { padding: 80px 0; }

.about-hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-hero-text { flex: 1; }

.about-hero-image {
    flex: 1;
    height: 450px; /* Fixed height for consistency */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-bold);
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Key fix for image sizing */
    transition: var(--transition);
}

.about-hero-image:hover img { transform: scale(1.03); }

/* --- 4. HISTORY TIMELINE --- */
.timeline { padding: 80px 0; background: var(--light-bg); }

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.timeline-item {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border-top: 5px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-item:hover { transform: translateY(-10px); }
.timeline-item h3 { color: var(--primary-blue); margin-bottom: 10px; font-size: 1.8rem; }

/* --- 5. PHILOSOPHY & VALUES --- */
.philosophy { padding: 100px 0; }

.philosophy-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-item {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* --- 6. PARTNERSHIPS GRID --- */
.partnerships { padding: 80px 0; background: var(--light-bg); }

.partnerships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.partnership-item {
    background: var(--white);
    padding: 24px;
    text-align: center;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.partnership-flag { margin-bottom: 15px; }
.partnership-flag img { width: 40px; border-radius: 4px; border: 1px solid #eee; }

/* --- 7. MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .about-hero-content { flex-direction: column; text-align: center; }
    .about-hero-image { width: 100%; height: 350px; }
    .philosophy-values { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .page-header { padding: 80px 0 40px; }
    .timeline-container { grid-template-columns: 1fr; }
}