/* Base design system (root vars, top bar, hero, nav, dropdown, footer,
   cta banner) now lives entirely in style.css and applies here too —
   this file used to carry its own stale copy of all of that (slightly
   out of date, and missing the mobile hamburger-nav rules entirely).
   Only the styling unique to the About page remains below. */

/* ====================== MIDDLE CONTENT ====================== */
.main-spirit { padding: 80px 0; display: flex; flex-direction: column; justify-content: center; background-color: #ffffff; }
.layout-container { display: flex; max-width: 1100px; width: 100%; gap: 80px; padding: 20px; margin: 0 auto; }
.content-column { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.subtitle { color: var(--main); font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 15px; }
.title { color: var(--main); font-family: var(--serif); font-size: 48px; font-weight: 700; margin-bottom: 25px; opacity: 0; }
.title.start-animation { animation: fadeIn 1.5s ease-in-out forwards; }
.description { color: #4a4a4a; font-size: 15px; line-height: 1.6; margin-bottom: 45px; max-width: 95%; }
.features-grid { display: flex; gap: 80px; }
.feature-col { display: flex; flex-direction: column; gap: 18px; }
.feature-item { display: flex; align-items: center; gap: 12px; }
.check-mark { color: #2b3176; font-size: 16px; font-weight: 700; }
.feature-text { color: #4a4a4a; font-family: var(--serif); font-size: 16px; }

.image-column { flex: 1; display: flex; gap: 20px; align-items: flex-start; }
.img-wrapper { overflow: hidden; display: flex; width: 50%; transform: scale(0.05); opacity: 0; transform-origin: center; }
.img-wrapper.start-animation { animation: scaleUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.img-left { height: 380px; margin-top: 80px; animation-delay: 0.2s; }
.img-right { height: 520px; animation-delay: 0.4s; }

.why-british-section {
    display: flex;
    max-width: 1200px;
    margin: 80px auto;
    gap: 30px; 
    padding: 0 20px;
    background-color: transparent;
}
.image-cycler { flex: 1; position: relative; overflow: hidden; }
.image-cycler img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.image-cycler img.active { opacity: 1; }
.text-content { flex: 1; background-color: var(--main); color: #ffffff; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.text-gold { color: var(--gold) !important; }
.text-content .main-title { font-family: var(--serif); font-size: 34px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.intro-text, .sub-text { margin-bottom: 15px; line-height: 1.5; font-size: 14px; color: #ffffff; }
.features-list { margin: 20px 0; }
.feature-row { display: flex; gap: 15px; margin-bottom: 15px; } 
.check-mark-gold { color: var(--gold); font-weight: bold; font-size: 18px; }
.feature-info { display: flex; flex-direction: column; }
.feature-title { font-weight: 700; font-size: 18px; font-family: var(--serif); margin-bottom: 5px; }
.feature-desc { font-size: 13px; opacity: 0.9; line-height: 1.4; color: #ffffff; }
.footer-note { font-size: 13px; margin-top: 5px; line-height: 1.5; color: #ffffff; }

.text-maroon { color: var(--main); }
.text-white { color: #ffffff !important; }
.text-dark { color: #4a4a4a; }
.text-center { text-align: center; }
.subtitle-center { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 15px; }

.our-values { 
    background-image: url('../assets/6fad3af9-b1a5-4d8d-af15-e1afead0c801.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    padding: 100px 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px; 
}
.values-overlay { background-color:#00214794; ; max-width: 1200px; width: 100%; padding: 60px 40px; text-align: center; color: white; }
.values-desc { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.values-row { display: flex; justify-content: center; gap: 8vw; flex-wrap: wrap; font-family: var(--serif); font-size: clamp(24px, 4vw, 36px); color: var(--gold); margin-top: 40px; }

.box-layout { max-width: 1200px; margin: 0 auto 80px auto; gap: 0; }
.split-section { display: flex; width: 100%; min-height: 500px; background-color: #fff; }
.flex-reverse { flex-direction: row-reverse; }
.split-img { flex: 1; background-size: cover; background-position: center; position: relative; min-height: 400px; }
.split-text { flex: 1; padding: 80px 10%; display: flex; flex-direction: column; justify-content: center; }
.bg-maroon { background-color: var(--main); color: #ffffff; }
.bg-white { background-color: #ffffff; color: #4a4a4a; }
.align-center { align-items: center; text-align: center; }

.motto-banner { background-color: var(--gold); color: #222; text-align: center; padding: 70px 20px; font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); }

.school-aims { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/aims-bg.jpg'); background-size: cover; padding: 100px 20px; color: white; }
.aims-content { max-width: 1000px; margin: 0 auto; }
.aims-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; line-height: 1.7; font-size: 16px; }
.btn-yellow { display: inline-block; background-color: var(--gold); color: #333; padding: 15px 35px; text-decoration: none; font-weight: bold; font-size: 13px; letter-spacing: 2px; border-radius: 3px; transition: 0.3s; }
.btn-yellow:hover { background-color: #fff; }

.teachers-section { padding: 100px 20px; background: #fff; }
.teachers-grid { display: flex; justify-content: center; gap: 30px; margin: 60px auto; max-width: 1200px; flex-wrap: wrap; }

.teacher-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.teacher-card:hover {
    transform: translateY(-6px);
}

.teacher-card img,
.teacher-photo-placeholder {
    width: 220px;
    height: 300px;
    object-fit: cover;
    border-radius: 120px 120px 10px 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: box-shadow 0.25s ease;
}

.teacher-card:hover img,
.teacher-card:hover .teacher-photo-placeholder {
    box-shadow: 0 20px 38px rgba(0,0,0,0.18);
}

.teacher-photo-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    text-align: center;
    background: repeating-linear-gradient(
        45deg,
        #e4e4e4,
        #e4e4e4 10px,
        #ececec 10px,
        #ececec 20px
    );
    border: 1px solid #d5d5d5;
    color: #9a9a9a;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.teacher-name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--main);
    margin-top: 18px;
    text-align: center;
}

.teacher-role {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}

@media (max-width: 480px) {
    .teacher-card,
    .teacher-card img,
    .teacher-photo-placeholder {
        width: 180px;
    }

    .teacher-card img,
    .teacher-photo-placeholder {
        height: 245px;
    }
}

/* Footer styling now lives entirely in style.css so every page (including
   this one) shares one consistent, already-responsive footer. The block
   that used to be here duplicated those rules with a fixed 55vh height,
   which clipped the nav columns on smaller screens — removed. */

/* ====================== ANIMATIONS ====================== */
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes scaleUp { 0% { transform: scale(0.05); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ====================== MEDIA QUERIES ====================== */
@media (max-width: 900px) {
    .layout-container, .why-british-section, .box-layout, .cta .wrap, .aims-grid { flex-direction: column; grid-template-columns: 1fr; gap: 20px; }
    .img-left { margin-top: 40px; }
    .text-content { padding: 40px 20px; }
    .split-text { padding: 50px 20px; }
    .values-row { gap: 4vw; }
}