/* ============================================================
   DE DOORNS PRIMARY SCHOOL
   MAIN WEBSITE STYLESHEET
   Colour Palette: Navy / Red / White
   ============================================================ */


/* ============================================================
   1. ROOT VARIABLES
   ============================================================ */

:root {
    --navy: #102a43;
    --navy-dark: #081c2c;
    --navy-light: #1f4568;

    --red: #b51f2e;
    --red-dark: #8f1724;
    --red-light: #d93646;

    --white: #ffffff;
    --off-white: #f7f9fc;
    --light-gray: #eef2f6;
    --gray: #6b7280;
    --dark: #1f2933;

    --border: #dfe5eb;

    --shadow-sm: 0 4px 15px rgba(16, 42, 67, 0.08);
    --shadow-md: 0 10px 30px rgba(16, 42, 67, 0.12);
    --shadow-lg: 0 20px 50px rgba(16, 42, 67, 0.18);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: all 0.3s ease;

    --container: 1200px;
}


/* ============================================================
   2. RESET
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}


/* ============================================================
   3. GLOBAL CONTAINER
   ============================================================ */

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}


/* ============================================================
   4. TOP INFORMATION BAR
   ============================================================ */

.top-bar {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    letter-spacing: 0.2px;
}

.top-bar-content {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    color: var(--red-light);
}


/* ============================================================
   5. MAIN HEADER
   ============================================================ */

.main-header {
    position: relative;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.main-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.navigation {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* ============================================================
   6. SCHOOL BRAND
   ============================================================ */

.school-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-wrapper {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.school-name-main {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.5px;
}

.school-name-sub {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 2px;
}


/* ============================================================
   7. NAVIGATION
   ============================================================ */

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    position: relative;
    padding: 10px 10px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.nav-contact {
    margin-left: 8px;
    padding: 10px 18px;
    color: var(--white);
    background: var(--red);
    border-radius: var(--radius-sm);
}

.nav-link.nav-contact::after {
    display: none;
}

.nav-link.nav-contact:hover {
    color: var(--white);
    background: var(--red-dark);
    transform: translateY(-2px);
}


/* ============================================================
   8. MOBILE MENU BUTTON
   ============================================================ */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--navy);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    transition: var(--transition);
}


/* ============================================================
   9. HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    height: min(760px, calc(100vh - 124px));
    min-height: 620px;
    overflow: hidden;
    background: var(--navy);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition:
        opacity 0.9s ease,
        transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 28, 44, 0.9) 0%,
            rgba(8, 28, 44, 0.68) 42%,
            rgba(8, 28, 44, 0.2) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 700px;
    color: var(--white);
    padding-bottom: 40px;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding-left: 15px;
    border-left: 3px solid var(--red-light);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero h1 {
    margin-bottom: 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(45px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 700;
}

.hero h1 span {
    display: block;
    color: #ffffff;
}

.hero-motto {
    margin-bottom: 12px;
    color: var(--red-light);
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ============================================================
   10. BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: var(--transition);
}

.btn-primary {
    color: var(--white);
    background: var(--red);
}

.btn-primary:hover {
    color: var(--white);
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(181, 31, 46, 0.25);
}

.btn-secondary {
    color: var(--white);
    background: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline:hover {
    color: var(--navy);
    background: var(--white);
    border-color: var(--white);
}

.btn-white {
    color: var(--navy);
    background: var(--white);
}

.btn-white:hover {
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ============================================================
   11. HERO CONTROLS
   ============================================================ */

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--white);
    background: rgba(8, 28, 44, 0.3);
    backdrop-filter: blur(5px);
    transform: translateY(-50%);
    transition: var(--transition);
}

.hero-control:hover {
    background: var(--red);
    border-color: var(--red);
}

.hero-prev {
    left: 25px;
}

.hero-next {
    right: 25px;
}


/* ============================================================
   12. HERO DOTS
   ============================================================ */

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 48px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
}

.hero-dot.active {
    width: 48px;
    background: var(--red-light);
}


/* ============================================================
   13. SCROLL INDICATOR
   ============================================================ */

.scroll-indicator {
    position: absolute;
    z-index: 5;
    right: 35px;
    bottom: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    writing-mode: vertical-rl;
}

.scroll-indicator i {
    animation: bounce 1.7s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


/* ============================================================
   14. SECTIONS
   ============================================================ */

.section-padding {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.section-label.light {
    color: rgba(255, 255, 255, 0.8);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2,
.section-content h2 {
    margin-bottom: 18px;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
}

.section-heading h2 span,
.section-content h2 span {
    color: var(--red);
}

.section-heading p {
    color: var(--gray);
    font-size: 15px;
}


/* ============================================================
   15. WELCOME / TWO COLUMN
   ============================================================ */

.welcome-section {
    background: var(--white);
}

.two-column {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 80px;
}

.section-image {
    position: relative;
}

.image-frame {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-frame:hover img {
    transform: scale(1.04);
}

.image-accent {
    position: absolute;
    z-index: 1;
    left: -20px;
    bottom: -20px;
    width: 160px;
    height: 160px;
    border-radius: var(--radius-lg);
    background: var(--red);
}

.section-content .lead {
    margin-bottom: 18px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 16px;
    color: var(--gray);
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    transition: var(--transition);
}

.text-link i {
    transition: transform 0.3s ease;
}

.text-link:hover {
    color: var(--red-dark);
}

.text-link:hover i {
    transform: translateX(5px);
}


/* ============================================================
   16. QUICK INFORMATION
   ============================================================ */

.quick-info {
    position: relative;
    z-index: 10;
    margin-top: -1px;
    background: var(--navy);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.info-card {
    min-height: 130px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.info-card:last-child {
    border-right: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--red);
    border-radius: 50%;
    font-size: 18px;
}

.info-label {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.info-card h3 {
    color: var(--white);
    font-size: 14px;
    line-height: 1.3;
}

.info-card small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
}

.info-card a {
    display: inline-block;
    margin-top: 4px;
    color: var(--red-light);
    font-size: 10px;
    font-weight: 700;
}


/* ============================================================
   17. APPROACH / VALUES
   ============================================================ */

.approach-section {
    background: var(--off-white);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.value-card {
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.value-card.featured {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
}

.value-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--white);
    background: var(--red);
    border-radius: 50%;
    font-size: 20px;
}

.value-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 19px;
}

.value-card.featured h3 {
    color: var(--white);
}

.value-card p {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 13px;
}

.value-card.featured p {
    color: rgba(255, 255, 255, 0.72);
}

.value-card a {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

.value-card.featured a {
    color: var(--red-light);
}

.value-card a i {
    margin-left: 5px;
}


/* ============================================================
   18. CALENDAR
   ============================================================ */

.calendar-preview {
    background: var(--white);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 45px;
}

.calendar-header h2 {
    margin-top: 4px;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 42px;
    line-height: 1.1;
}

.calendar-header h2 span {
    color: var(--red);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.term-card {
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius-md);
}

.term-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--red);
}

.term-card span {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.term-card strong {
    font-size: 18px;
}


/* ============================================================
   19. STAFF PREVIEW
   ============================================================ */

.staff-preview {
    background: var(--off-white);
}

.staff-preview-content {
    display: flex;
    justify-content: center;
}

.staff-message {
    width: min(100%, 850px);
    padding: 55px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.staff-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    background: var(--red);
    border-radius: 50%;
    font-size: 27px;
}

.staff-message h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
}

.staff-message p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: var(--gray);
    font-size: 14px;
}


/* ============================================================
   20. SCHOOL LIFE
   ============================================================ */

.school-life {
    background: var(--white);
}

.feature-list {
    margin: 25px 0;
}

.feature-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
}

.feature-list i {
    color: var(--red);
}


/* ============================================================
   21. GALLERY
   ============================================================ */

.gallery-preview {
    background: var(--off-white);
}

.gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-heading h2 {
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 42px;
    line-height: 1.1;
}

.gallery-heading h2 span {
    color: var(--red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 230px 230px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--navy);
}

.gallery-item.gallery-large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 40px 20px 20px;
    color: var(--white);
    background: linear-gradient(
        transparent,
        rgba(8, 28, 44, 0.85)
    );
    transform: translateY(8px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    font-size: 12px;
    font-weight: 800;
}


/* ============================================================
   22. CONTACT CTA
   ============================================================ */

.contact-cta {
    position: relative;
    overflow: hidden;
    padding: 75px 0;
    color: var(--white);
    background: var(--red);
}

.contact-cta::after {
    content: "";
    position: absolute;
    right: -100px;
    top: -150px;
    width: 450px;
    height: 450px;
    border: 70px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content h2 {
    max-width: 700px;
    margin-bottom: 12px;
    color: var(--white);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 43px;
    line-height: 1.1;
}

.cta-content h2 span {
    display: block;
}

.cta-content p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}


/* ============================================================
   23. FOOTER
   ============================================================ */

.site-footer {
    color: rgba(255, 255, 255, 0.72);
    background: var(--navy-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding: 70px 0 50px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-brand strong {
    color: var(--white);
    font-size: 15px;
}

.footer-brand span {
    margin-top: 3px;
    color: var(--red-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.footer-about > p:first-of-type {
    margin-bottom: 8px;
    color: var(--red-light);
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
}

.footer-description {
    max-width: 300px;
    font-size: 12px;
}

.footer-column h3 {
    margin-bottom: 18px;
    color: var(--white);
    font-size: 14px;
}

.footer-column > a {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    transition: var(--transition);
}

.footer-column > a:hover {
    color: var(--red-light);
    transform: translateX(4px);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 11px;
}

.footer-contact i {
    width: 15px;
    margin-top: 4px;
    color: var(--red-light);
}

.footer-contact a:hover {
    color: var(--red-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
}


/* ============================================================
   24. RESPONSIVE IMAGE HANDLING
   ============================================================ */

.image-frame img,
.gallery-item img {
    background: var(--light-gray);
}


/* ============================================================
   25. ACCESSIBILITY
   ============================================================ */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(181, 31, 46, 0.35);
    outline-offset: 3px;
}


/* ============================================================
   26. SELECTION
   ============================================================ */

::selection {
    color: var(--white);
    background: var(--red);
}


/* ============================================================
   27. SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}


/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   STAGGERED CARD ANIMATIONS
   ============================================================ */

.value-card:nth-child(2),
.term-card:nth-child(2),
.info-card:nth-child(2) {
    transition-delay: 0.08s;
}

.value-card:nth-child(3),
.term-card:nth-child(3),
.info-card:nth-child(3) {
    transition-delay: 0.16s;
}

.term-card:nth-child(4),
.info-card:nth-child(4) {
    transition-delay: 0.24s;
}


/* ============================================================
   MOBILE MENU ANIMATION
   ============================================================ */

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   BROKEN IMAGE FALLBACK
   ============================================================ */

.image-error {
    object-fit: contain !important;
    padding: 30px;
    background: var(--light-gray);
}

/* ============================================================
   VISION, MISSION & CORE VALUES
   ============================================================ */

.vision-mission-section {
    background: var(--off-white);
}


/* Vision and Mission layout */

.vision-mission-grid {
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}


/* Vision card */

.vision-card,
.mission-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border-top: 5px solid var(--navy);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


.mission-card {
    border-top-color: var(--red);
}


/* Vision/Mission icon */

.vm-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-size: 22px;
    margin-bottom: 22px;
}


.mission-card .vm-icon {
    background: var(--red);
}


.vision-card h3,
.mission-card h3 {
    margin: 10px 0 18px;
    color: var(--navy);
    font-size: 25px;
}


.vision-card p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}


/* Mission list */

.mission-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}


.mission-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 17px;
    line-height: 1.6;
}


.mission-list li i {
    color: var(--red);
    margin-top: 5px;
    flex-shrink: 0;
}


/* Core values */

.core-values-section {
    margin-top: 80px;
}


.core-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 35px;
}


.core-value-card {
    min-height: 130px;
    padding: 25px 15px;
    background: var(--white);
    border-radius: 10px;
    border-bottom: 4px solid var(--red);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.core-value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}


.core-value-card i {
    font-size: 25px;
    color: var(--navy);
    margin-bottom: 12px;
}


.core-value-card span {
    color: var(--navy);
    font-weight: 700;
    font-size: 15px;
}

/* ============================================================
   MAIN NAVIGATION DROPDOWNS
   ============================================================ */

.nav-dropdown {
    position: relative;
}


/* Dropdown button */

.dropdown-toggle {
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 7px;
}


.dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.25s ease;
}


/* Dropdown menu */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 12px);
    left: 0;

    min-width: 220px;

    background: var(--white);

    border-top: 4px solid var(--red);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15);

    border-radius: 0 0 8px 8px;

    padding: 8px 0;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 1000;
}


/* Dropdown links */

.dropdown-menu a {
    display: block;

    padding: 12px 20px;

    color: var(--navy);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        padding-left 0.25s ease;
}


/* Hover */

.dropdown-menu a:hover {
    background: var(--off-white);
    color: var(--red);
    padding-left: 25px;
}


/* Desktop dropdown */

@media (min-width: 769px) {

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {

        opacity: 1;
        visibility: visible;
        transform: translateY(0);

    }


    .nav-dropdown:hover .dropdown-toggle i {

        transform: rotate(180deg);

    }

}

/* ============================================================
   ABOUT US PAGE
   ============================================================ */


/* ============================================================
   INNER PAGE HERO
   ============================================================ */

.inner-page-hero {
    position: relative;

    min-height: 430px;

    display: flex;
    align-items: center;

    background-size: cover;
    background-position: center;

    overflow: hidden;
}


.inner-page-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 34, 58, 0.92),
            rgba(8, 34, 58, 0.58),
            rgba(8, 34, 58, 0.35)
        );
}


.inner-page-content {
    position: relative;
    z-index: 2;

    padding-top: 60px;
    padding-bottom: 60px;
}


.inner-page-content h1 {
    color: var(--white);

    font-size: clamp(42px, 6vw, 72px);

    margin: 15px 0 20px;

    max-width: 800px;
}


.inner-page-content h1 span {
    color: var(--red);
}


.inner-page-content p {
    color: rgba(255, 255, 255, 0.92);

    max-width: 650px;

    font-size: 18px;

    line-height: 1.8;
}


/* ============================================================
   ABOUT INTRODUCTION
   ============================================================ */

.about-introduction {
    background: var(--white);
}


/* ============================================================
   ABOUT FACTS
   ============================================================ */

.about-facts-section {
    background: var(--navy);

    padding: 80px 0;
}


.about-facts-section .section-heading {
    margin-bottom: 45px;
}


.about-facts-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.about-fact-card {
    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    padding: 30px 20px;

    text-align: center;

    min-height: 210px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.about-fact-card:hover {
    transform: translateY(-6px);

    background: rgba(255, 255, 255, 0.13);
}


.about-fact-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--red);

    color: var(--white);

    font-size: 21px;

    margin-bottom: 18px;
}


.about-fact-card > span {
    color: rgba(255, 255, 255, 0.68);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.4px;

    margin-bottom: 8px;
}


.about-fact-card h3 {
    color: var(--white);

    font-size: 17px;

    line-height: 1.55;

    margin: 0;
}


.about-fact-card p {
    color: rgba(255, 255, 255, 0.7);

    margin: 8px 0 0;

    font-size: 14px;
}


/* ============================================================
   VISION & MISSION
   ============================================================ */

.vision-mission-page {
    background: var(--off-white);
}


.about-vision-card,
.about-mission-card {
    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 30px;

    background: var(--white);

    padding: 45px;

    border-radius: 12px;

    margin-top: 35px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.07);

    border-left: 5px solid var(--navy);
}


.about-mission-card {
    border-left-color: var(--red);
}


.about-vm-icon {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--navy);

    color: var(--white);

    border-radius: 50%;

    font-size: 23px;
}


.about-mission-card .about-vm-icon {
    background: var(--red);
}


.about-vision-card h3,
.about-mission-card h3 {
    color: var(--navy);

    font-size: 27px;

    margin: 8px 0 18px;
}


.about-vision-card p {
    font-size: 17px;

    line-height: 1.8;

    margin: 0;

    color: var(--text-color);
}


/* ============================================================
   MISSION LIST
   ============================================================ */

.about-mission-list {
    list-style: none;

    padding: 0;

    margin: 20px 0 0;
}


.about-mission-list li {
    display: flex;

    gap: 13px;

    margin-bottom: 17px;

    line-height: 1.65;

    color: var(--text-color);
}


.about-mission-list li i {
    color: var(--red);

    margin-top: 5px;

    flex-shrink: 0;
}


/* ============================================================
   CORE VALUES
   ============================================================ */

.about-values-section {
    background: var(--white);
}


.about-values-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 18px;

    margin-top: 45px;
}


.about-value-card {
    min-height: 145px;

    padding: 25px 15px;

    border-radius: 10px;

    background: var(--off-white);

    border-bottom: 4px solid var(--red);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.about-value-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.1);
}


.about-value-card i {
    font-size: 26px;

    color: var(--navy);

    margin-bottom: 13px;
}


.about-value-card span {
    color: var(--navy);

    font-weight: 700;

    font-size: 15px;
}


/* ============================================================
   MOTTO
   ============================================================ */

.about-motto-section {
    background: var(--navy);

    padding: 85px 0;

    text-align: center;
}


.about-motto-content {
    max-width: 850px;

    margin: 0 auto;
}


.about-motto-content h2 {
    color: var(--white);

    font-family:
        "Playfair Display",
        serif;

    font-size: clamp(38px, 5vw, 62px);

    margin: 15px 0 20px;
}


.about-motto-content h2 span {
    color: var(--red);
}


.about-motto-content p {
    color: rgba(255, 255, 255, 0.8);

    font-size: 17px;

    line-height: 1.8;
}
/* ==================================================
   STAFF PAGE
================================================== */

.staff-page-header {
    background: #1a1a4e;
    color: #ffffff;
    text-align: center;
    padding: 70px 20px;
}

.staff-page-header h1 {
    font-size: 42px;
    margin: 10px 0;
}

.staff-page-header p {
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

.staff-eyebrow {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* STAFF SECTIONS */

.staff-section {
    padding: 70px 0;
}

.teaching-staff-section {
    background: #f7f7f7;
}

.support-staff-section {
    background: #ffffff;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading span {
    color: #c41e3a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    color: #1a1a4e;
    font-size: 34px;
    margin: 8px 0 12px;
}

.section-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: #666666;
}


/* ==================================================
   STAFF GRID
================================================== */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px;
    align-items: start;
}


/* STAFF CARD */

.staff-card {
    text-align: left;
    background: transparent;
}


/* ==================================================
   STAFF PHOTOGRAPHS
   Similar size/style to reference picture
================================================== */

.staff-photo {
    width: 225px;
    height: 225px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 18px;
    background: #eeeeee;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}


/* STAFF DETAILS */

.staff-details {
    max-width: 225px;
}

.staff-details h3 {
    color: #101828;
    font-size: 17px;
    font-weight: 700;
    margin: 5px 0 7px;
}

.staff-details p {
    color: #4d4d4d;
    font-size: 14px;
    margin: 0;
}

.staff-position {
    display: block;
    color: #c41e3a;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}


/* ==================================================
   PRINCIPAL
================================================== */

.principal-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 55px;
}

.principal-card {
    text-align: center;
}

.principal-card .staff-photo {
    width: 260px;
    height: 260px;
    margin-left: auto;
    margin-right: auto;
}

.principal-card .staff-details {
    max-width: 300px;
    text-align: center;
}


/* ==================================================
   DEPUTY PRINCIPAL
================================================== */

.leadership-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 55px;
}

.leadership-grid .staff-card {
    text-align: center;
}

.leadership-grid .staff-details {
    text-align: center;
}

.leadership-grid .staff-photo {
    margin-left: auto;
    margin-right: auto;
}


/* DEPARTMENTAL HEADS */

.staff-subheading {
    margin: 50px 0 30px;
}

.staff-subheading h3 {
    color: #1a1a4e;
    font-size: 27px;
}


/* ==================================================
   GRADE GROUPS
================================================== */

.grade-staff-group {
    margin-bottom: 70px;
}

.grade-heading {
    margin-bottom: 30px;
    border-left: 5px solid #c41e3a;
    padding-left: 15px;
}

.grade-heading span {
    color: #c41e3a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grade-heading h3 {
    color: #1a1a4e;
    font-size: 28px;
    margin: 3px 0 0;
}


/* ==================================================
   RESPONSIVE STAFF PAGE
================================================== */

@media (max-width: 1050px) {

    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 800px) {

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

}

@media (max-width: 550px) {

    .staff-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .staff-card {
        text-align: center;
    }

    .staff-details {
        text-align: center;
    }

    .staff-photo {
        margin-left: auto;
        margin-right: auto;
    }

    .principal-card .staff-photo {
        width: 225px;
        height: 225px;
    }

    .staff-page-header h1 {
        font-size: 34px;
    }

}
/* ==========================================================
   ACADEMICS PAGE
========================================================== */

/* ---------- ACADEMICS HERO ---------- */

.academics-hero {
    position: relative;
    min-height: 420px;
    background:
        linear-gradient(rgba(10, 28, 62, 0.78), rgba(10, 28, 62, 0.78)),
        url("../images/academics/classroom-1.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.academics-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 35, 70, 0.15),
        rgba(190, 30, 45, 0.12)
    );
}

.academics-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.academics-eyebrow {
    display: inline-block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
}

.academics-hero h1 {
    color: #ffffff;
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 20px;
}

.academics-hero p {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
}


/* ---------- GENERAL SECTION SPACING ---------- */

.section-padding {
    padding: 80px 0;
}

.academic-programme .section-heading,
.systemic-results .section-heading,
.academic-support .section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.academic-programme .section-heading > span,
.systemic-results .section-heading > span,
.academic-support .section-heading > span {
    color: #c7202f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.academic-programme .section-heading h2,
.systemic-results .section-heading h2,
.academic-support .section-heading h2 {
    color: #10294f;
    font-size: 36px;
    margin: 10px 0 12px;
}

.academic-programme .section-heading p,
.systemic-results .section-heading p,
.academic-support .section-heading p {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ==========================================================
   ACADEMIC PHASE CARDS
========================================================== */

.academic-phase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.academic-phase-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 35px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid #c7202f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.academic-phase-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.13);
}

.phase-number {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #10294f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

.phase-content > span {
    color: #c7202f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.phase-content h3 {
    color: #10294f;
    font-size: 24px;
    margin: 8px 0 12px;
}

.phase-content p {
    line-height: 1.7;
    color: #555555;
    margin: 0;
}


/* ==========================================================
   ELEARNING
========================================================== */

.elearning-section {
    background: #10294f;
}

.light-heading {
    text-align: center;
    margin-bottom: 50px;
}

.light-heading span {
    color: #ef3340;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.light-heading h2 {
    color: #ffffff;
    font-size: 36px;
    margin: 10px 0 12px;
}

.light-heading p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.elearning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 950px;
    margin: 0 auto;
}

.elearning-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    border-top: 5px solid #c7202f;
}

.elearning-grade {
    color: #c7202f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.elearning-card h3 {
    color: #10294f;
    font-size: 25px;
    margin: 0 0 12px;
}

.elearning-card p {
    color: #555555;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================
   SYSTEMIC RESULTS
========================================================== */

.systemic-results {
    background: #f7f8fa;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto 45px;
}

.results-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.09);
}

.results-card-header {
    background: #10294f;
    color: #ffffff;
    text-align: center;
    padding: 30px 25px;
    border-top: 5px solid #c7202f;
}

.results-card-header span {
    color: #ffffff;
    opacity: 0.8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.results-card-header h3 {
    color: #ffffff;
    font-size: 32px;
    margin: 8px 0 2px;
}

.results-card-header p {
    color: #ffffff;
    margin: 0;
}

.result-subjects {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 35px 25px 25px;
}

.result-subject {
    text-align: center;
}

.result-subject span {
    display: block;
    color: #10294f;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-subject strong {
    display: block;
    color: #c7202f;
    font-size: 42px;
    line-height: 1.1;
}

.result-subject small {
    display: block;
    color: #777777;
    margin-top: 8px;
}

.result-divider {
    width: 1px;
    height: 85px;
    background: #dddddd;
}

.results-note {
    text-align: center;
    padding: 0 25px 20px;
}

.results-note p {
    color: #666666;
    font-size: 13px;
    margin: 0;
}

.results-button {
    display: block;
    background: #c7202f;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    padding: 17px 20px;
    transition: background 0.3s ease;
}

.results-button:hover {
    background: #10294f;
    color: #ffffff;
}


/* ABOUT SYSTEMIC TESTING */

.systemic-information {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-left: 5px solid #10294f;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.systemic-info-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #10294f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.systemic-information h3 {
    color: #10294f;
    margin: 0 0 8px;
}

.systemic-information p {
    margin: 0;
    color: #555555;
    line-height: 1.7;
}


/* ==========================================================
   ACADEMIC SUPPORT
========================================================== */

.academic-support {
    background: #ffffff;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.support-card {
    padding: 32px;
    background: #f7f8fa;
    border-radius: 10px;
    border-top: 4px solid #c7202f;
}

.support-icon {
    color: #c7202f;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
}

.support-card h3 {
    color: #10294f;
    font-size: 21px;
    margin: 0 0 12px;
}

.support-card p {
    color: #555555;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================
   ACADEMICS RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .academic-phase-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .results-grid,
    .elearning-grid {
        grid-template-columns: 1fr;
    }

    .academics-hero {
        min-height: 360px;
    }

    .academics-hero h1 {
        font-size: 42px;
    }
}


@media (max-width: 600px) {

    .section-padding {
        padding: 55px 0;
    }

    .academics-hero {
        min-height: 330px;
        padding: 40px 20px;
    }

    .academics-hero h1 {
        font-size: 36px;
    }

    .academics-hero p {
        font-size: 15px;
    }

    .academic-programme .section-heading h2,
    .systemic-results .section-heading h2,
    .academic-support .section-heading h2,
    .light-heading h2 {
        font-size: 29px;
    }

    .result-subject strong {
        font-size: 34px;
    }

    .result-subjects {
        padding-left: 12px;
        padding-right: 12px;
    }

    .systemic-information {
        flex-direction: column;
    }
}/* ==========================================================
   ACADEMICS PAGE
========================================================== */

/* ---------- ACADEMICS HERO ---------- */

.academics-hero {
    position: relative;
    min-height: 420px;
    background:
        linear-gradient(rgba(10, 28, 62, 0.78), rgba(10, 28, 62, 0.78)),
        url("../images/academics/classroom-1.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.academics-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 35, 70, 0.15),
        rgba(190, 30, 45, 0.12)
    );
}

.academics-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.academics-eyebrow {
    display: inline-block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
}

.academics-hero h1 {
    color: #ffffff;
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 20px;
}

.academics-hero p {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
}


/* ---------- GENERAL SECTION SPACING ---------- */

.section-padding {
    padding: 80px 0;
}

.academic-programme .section-heading,
.systemic-results .section-heading,
.academic-support .section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.academic-programme .section-heading > span,
.systemic-results .section-heading > span,
.academic-support .section-heading > span {
    color: #c7202f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.academic-programme .section-heading h2,
.systemic-results .section-heading h2,
.academic-support .section-heading h2 {
    color: #10294f;
    font-size: 36px;
    margin: 10px 0 12px;
}

.academic-programme .section-heading p,
.systemic-results .section-heading p,
.academic-support .section-heading p {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ==========================================================
   ACADEMIC PHASE CARDS
========================================================== */

.academic-phase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.academic-phase-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 35px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid #c7202f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.academic-phase-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.13);
}

.phase-number {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #10294f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

.phase-content > span {
    color: #c7202f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.phase-content h3 {
    color: #10294f;
    font-size: 24px;
    margin: 8px 0 12px;
}

.phase-content p {
    line-height: 1.7;
    color: #555555;
    margin: 0;
}


/* ==========================================================
   ELEARNING
========================================================== */

.elearning-section {
    background: #10294f;
}

.light-heading {
    text-align: center;
    margin-bottom: 50px;
}

.light-heading span {
    color: #ef3340;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.light-heading h2 {
    color: #ffffff;
    font-size: 36px;
    margin: 10px 0 12px;
}

.light-heading p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.elearning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 950px;
    margin: 0 auto;
}

.elearning-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    border-top: 5px solid #c7202f;
}

.elearning-grade {
    color: #c7202f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.elearning-card h3 {
    color: #10294f;
    font-size: 25px;
    margin: 0 0 12px;
}

.elearning-card p {
    color: #555555;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================
   SYSTEMIC RESULTS
========================================================== */

.systemic-results {
    background: #f7f8fa;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto 45px;
}

.results-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.09);
}

.results-card-header {
    background: #10294f;
    color: #ffffff;
    text-align: center;
    padding: 30px 25px;
    border-top: 5px solid #c7202f;
}

.results-card-header span {
    color: #ffffff;
    opacity: 0.8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.results-card-header h3 {
    color: #ffffff;
    font-size: 32px;
    margin: 8px 0 2px;
}

.results-card-header p {
    color: #ffffff;
    margin: 0;
}

.result-subjects {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 35px 25px 25px;
}

.result-subject {
    text-align: center;
}

.result-subject span {
    display: block;
    color: #10294f;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-subject strong {
    display: block;
    color: #c7202f;
    font-size: 42px;
    line-height: 1.1;
}

.result-subject small {
    display: block;
    color: #777777;
    margin-top: 8px;
}

.result-divider {
    width: 1px;
    height: 85px;
    background: #dddddd;
}

.results-note {
    text-align: center;
    padding: 0 25px 20px;
}

.results-note p {
    color: #666666;
    font-size: 13px;
    margin: 0;
}

.results-button {
    display: block;
    background: #c7202f;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    padding: 17px 20px;
    transition: background 0.3s ease;
}

.results-button:hover {
    background: #10294f;
    color: #ffffff;
}


/* ABOUT SYSTEMIC TESTING */

.systemic-information {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-left: 5px solid #10294f;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.systemic-info-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #10294f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.systemic-information h3 {
    color: #10294f;
    margin: 0 0 8px;
}

.systemic-information p {
    margin: 0;
    color: #555555;
    line-height: 1.7;
}


/* ==========================================================
   ACADEMIC SUPPORT
========================================================== */

.academic-support {
    background: #ffffff;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.support-card {
    padding: 32px;
    background: #f7f8fa;
    border-radius: 10px;
    border-top: 4px solid #c7202f;
}

.support-icon {
    color: #c7202f;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
}

.support-card h3 {
    color: #10294f;
    font-size: 21px;
    margin: 0 0 12px;
}

.support-card p {
    color: #555555;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================
   ACADEMICS RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .academic-phase-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .results-grid,
    .elearning-grid {
        grid-template-columns: 1fr;
    }

    .academics-hero {
        min-height: 360px;
    }

    .academics-hero h1 {
        font-size: 42px;
    }
}


@media (max-width: 600px) {

    .section-padding {
        padding: 55px 0;
    }

    .academics-hero {
        min-height: 330px;
        padding: 40px 20px;
    }

    .academics-hero h1 {
        font-size: 36px;
    }

    .academics-hero p {
        font-size: 15px;
    }

    .academic-programme .section-heading h2,
    .systemic-results .section-heading h2,
    .academic-support .section-heading h2,
    .light-heading h2 {
        font-size: 29px;
    }

    .result-subject strong {
        font-size: 34px;
    }

    .result-subjects {
        padding-left: 12px;
        padding-right: 12px;
    }

    .systemic-information {
        flex-direction: column;
    }
}
/* ==========================================================
   SYSTEMIC THREE-YEAR PERFORMANCE
========================================================== */

.performance-trends {
    max-width: 1000px;
    margin: 65px auto 45px;
}

.trend-heading {
    text-align: center;
    margin-bottom: 35px;
}

.trend-heading > span {
    color: #c7202f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.trend-heading h3 {
    color: #10294f;
    font-size: 30px;
    margin: 8px 0;
}

.trend-heading p {
    color: #666;
    margin: 0;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.trend-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.07);
}

.trend-card-title {
    background: #10294f;
    padding: 22px 25px;
}

.trend-card-title h4 {
    color: #ffffff;
    font-size: 23px;
    margin: 0 0 3px;
}

.trend-card-title span {
    color: rgba(255,255,255,.7);
    font-size: 12px;
}

.trend-subject {
    padding: 25px;
    border-bottom: 1px solid #eeeeee;
}

.trend-subject:last-child {
    border-bottom: none;
}

.trend-subject h5 {
    color: #10294f;
    font-size: 16px;
    margin: 0 0 15px;
}

.trend-years {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.trend-years > div {
    background: #f5f6f8;
    padding: 14px 8px;
    text-align: center;
    border-radius: 6px;
}

.trend-years span {
    display: block;
    color: #777;
    font-size: 11px;
    margin-bottom: 5px;
}

.trend-years strong {
    color: #10294f;
    font-size: 20px;
}

.trend-years .current-year {
    background: #c7202f;
}

.trend-years .current-year span,
.trend-years .current-year strong {
    color: #ffffff;
}

@media (max-width: 750px) {

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

}
/* ==========================================================
   EXTRA-MURAL PAGE
========================================================== */

.extra-hero {
    position: relative;
    min-height: 420px;
    background:
        linear-gradient(rgba(10, 28, 62, 0.78), rgba(10, 28, 62, 0.78)),
        url("../images/activities/soccer.jpeg") center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.extra-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(16, 41, 79, 0.2),
        rgba(199, 32, 47, 0.15)
    );
}

.extra-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.extra-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
}

.extra-hero h1 {
    color: #ffffff;
    font-size: 52px;
    margin: 0 0 20px;
}

.extra-hero p {
    color: #ffffff;
    max-width: 750px;
    margin: auto;
    line-height: 1.8;
}


/* INTRO */

.extra-intro {
    background: #ffffff;
}


/* ==========================================================
   SPORTS
========================================================== */

.extra-category-section {
    padding: 80px 0;
    background: #f7f8fa;
}

.extra-category-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 45px;
}

.extra-category-heading > span {
    color: #c7202f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.extra-category-heading h2 {
    color: #10294f;
    font-size: 36px;
    margin: 10px 0;
}

.extra-category-heading p {
    color: #555555;
    line-height: 1.7;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: auto;
}

.activity-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    border-bottom: 4px solid #c7202f;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
}

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

.activity-number {
    color: #c7202f;
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
}

.activity-type {
    color: #c7202f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.activity-card h3 {
    color: #10294f;
    font-size: 25px;
    margin: 7px 0 12px;
}

.activity-card p {
    color: #555555;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================
   DRAMA
========================================================== */

.cultural-section {
    background: #10294f;
}

.featured-extra-card {
    max-width: 800px;
    margin: auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    border-left: 6px solid #c7202f;
}

.featured-extra-number {
    color: #c7202f;
    font-size: 45px;
    font-weight: 700;
}

.featured-extra-card span {
    color: #c7202f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.featured-extra-card h3 {
    color: #10294f;
    font-size: 27px;
    margin: 7px 0 10px;
}

.featured-extra-card p {
    color: #555555;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================
   SCIENCE CLUB
========================================================== */

.science-club-section {
    background: #ffffff;
}

.science-club-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.science-label {
    color: #c7202f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.science-club-content h2 {
    color: #10294f;
    font-size: 38px;
    margin: 10px 0 20px;
}

.science-club-content p {
    color: #555555;
    line-height: 1.8;
}

.science-intro {
    font-size: 18px;
}

.science-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.science-feature {
    background: #f5f6f8;
    padding: 28px 20px;
    text-align: center;
    border-radius: 8px;
}

.science-feature strong {
    display: block;
    color: #c7202f;
    font-size: 27px;
}

.science-feature span {
    display: block;
    color: #10294f;
    font-weight: 700;
    margin-top: 6px;
}


/* ==========================================================
   ACTIVITIES GALLERY
========================================================== */

.activities-gallery {
    background: #f7f8fa;
}

.activities-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.activity-photo {
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
}

.activity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-photo:hover img {
    transform: scale(1.06);
}

.activity-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    background: #10294f;
}

.activity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.activity-photo:hover img {
    transform: scale(1.07);
}

.activity-photo-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 55px 20px 20px;

    background: linear-gradient(
        to top,
        rgba(8, 28, 59, 0.95),
        rgba(8, 28, 59, 0)
    );

    color: #ffffff;
}

.activity-photo-overlay span {
    display: block;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}

.activity-photo-overlay h3 {
    color: #ffffff;
    font-size: 21px;
    margin: 0;
}
/* BOTTOM MESSAGE */

.extra-cta {
    background: #c7202f;
    padding: 55px 0;
}

.extra-cta-content {
    text-align: center;
    color: #ffffff;
}

.extra-cta-content span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.extra-cta-content h2 {
    color: #ffffff;
    font-size: 32px;
    margin: 8px 0 10px;
}

.extra-cta-content p {
    color: #ffffff;
    margin: 0;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .science-club-wrapper {
        grid-template-columns: 1fr;
    }

    .activities-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

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

    .activities-photo-grid {
        grid-template-columns: 1fr;
    }

    .extra-hero h1 {
        font-size: 36px;
    }

    .featured-extra-card {
        flex-direction: column;
    }
}

/* ==========================================================
   INFORMATION PAGE
========================================================== */

/* HERO */

.information-hero {
    position: relative;
    min-height: 400px;
    background:
        linear-gradient(
            rgba(10, 28, 62, 0.82),
            rgba(10, 28, 62, 0.82)
        ),
        url("../images/academics/classroom-2.jpg") center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.information-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(16, 41, 79, 0.10),
        rgba(199, 32, 47, 0.12)
    );
}

.information-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.information-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
}

.information-hero h1 {
    color: #ffffff;
    font-size: 52px;
    margin: 0 0 20px;
}

.information-hero p {
    color: #ffffff;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 17px;
}


/* ==========================================================
   INFORMATION AT A GLANCE
========================================================== */

.school-info-section {
    background: #ffffff;
}

.school-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.school-info-card {
    background: #f7f8fa;
    padding: 35px 30px;
    border-radius: 10px;
    border-bottom: 4px solid #c7202f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.info-number {
    color: #c7202f;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 18px;
}

.school-info-card > span {
    color: #c7202f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.school-info-card h3 {
    color: #10294f;
    font-size: 22px;
    margin: 7px 0 12px;
}

.school-info-card p {
    color: #555555;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================
   SCHOOL HOURS
========================================================== */

.school-hours-section {
    background: #10294f;
}

.school-hours-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.information-label {
    color: #c7202f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.school-hours-content h2 {
    color: #ffffff;
    font-size: 38px;
    margin: 10px 0 20px;
}

.school-hours-content p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    margin: 0;
}

.hours-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 1px solid #eeeeee;
}

.hours-row span {
    color: #555555;
}

.hours-row strong {
    color: #10294f;
    font-size: 18px;
}

.hours-note {
    background: #f7f8fa;
    color: #666666;
    font-size: 13px;
    line-height: 1.7;
    padding: 22px 28px;
}


/* ==========================================================
   SCHOOL UNIFORM
========================================================== */

.uniform-section {
    background: #ffffff;
}

.uniform-message {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: #f7f8fa;
    padding: 40px;
    border-left: 6px solid #c7202f;
    border-radius: 8px;
}

.uniform-message-number {
    color: #c7202f;
    font-size: 42px;
    font-weight: 700;
}

.uniform-message h3 {
    color: #10294f;
    font-size: 25px;
    margin: 0 0 10px;
}

.uniform-message p {
    color: #555555;
    line-height: 1.8;
    margin: 0;
}


/* ==========================================================
   POLICIES & DOCUMENTS
========================================================== */

.documents-section {
    background: #10294f;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.document-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.document-icon {
    width: 55px;
    height: 55px;
    background: #c7202f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.document-content > span {
    color: #c7202f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.document-content h3 {
    color: #10294f;
    font-size: 21px;
    margin: 6px 0 10px;
}

.document-content p {
    color: #666666;
    line-height: 1.6;
    min-height: 52px;
}

.document-button {
    display: inline-block;
    margin-top: 10px;
    background: #10294f;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s ease;
}

.document-button:hover {
    background: #c7202f;
    color: #ffffff;
}


/* ==========================================================
   PARENTS & GUARDIANS
========================================================== */

.parent-section {
    background: #f7f8fa;
}

.parent-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.parent-wrapper h2 {
    color: #10294f;
    font-size: 38px;
    margin: 10px 0 18px;
}

.parent-wrapper p {
    color: #555555;
    line-height: 1.8;
}

.parent-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.parent-points > div {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 7px;
    min-height: 120px;
}

.parent-points strong {
    display: block;
    color: #c7202f;
    font-size: 25px;
    margin-bottom: 8px;
}

.parent-points span {
    color: #10294f;
    font-size: 14px;
    font-weight: 600;
}


/* ==========================================================
   INFORMATION PAGE RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .school-info-grid {
        grid-template-columns: 1fr;
    }

    .school-hours-wrapper,
    .parent-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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


@media (max-width: 600px) {

    .information-hero {
        min-height: 330px;
        padding: 40px 20px;
    }

    .information-hero h1 {
        font-size: 36px;
    }

    .hours-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .uniform-message {
        flex-direction: column;
        padding: 30px;
    }

    .parent-points {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   CONTACT PAGE
========================================================== */

/* HERO */

.contact-hero {
    position: relative;
    min-height: 400px;

    background:
        linear-gradient(
            rgba(10, 28, 62, 0.82),
            rgba(10, 28, 62, 0.82)
        ),
        url("../images/hero/hero-2.jpg") center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(16, 41, 79, 0.10),
        rgba(199, 32, 47, 0.12)
    );
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.contact-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
}

.contact-hero h1 {
    color: #ffffff;
    font-size: 52px;
    margin: 0 0 18px;
}

.contact-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #ffffff;
    line-height: 1.8;
}


/* ==========================================================
   CONTACT CARDS
========================================================== */

.contact-information {
    background: #ffffff;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-info-card {
    background: #f7f8fa;
    padding: 35px 30px;
    border-radius: 10px;
    border-bottom: 4px solid #c7202f;
    text-align: center;
    transition: 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.contact-card-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    border-radius: 50%;

    background: #10294f;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.contact-info-card > span {
    color: #c7202f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.contact-info-card h3 {
    color: #10294f;
    margin: 8px 0 15px;
    font-size: 21px;
}

.contact-info-card p {
    color: #555555;
    line-height: 1.7;
}

.contact-info-card a {
    color: #10294f;
    text-decoration: none;
    font-weight: 700;
}

.contact-info-card a:hover {
    color: #c7202f;
}

.contact-info-card small {
    color: #777777;
}


/* ==========================================================
   CONTACT FORM
========================================================== */

.contact-form-section {
    background: #10294f;
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.contact-label {
    color: #ef3340;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.contact-form-intro h2 {
    color: #ffffff;
    font-size: 38px;
    margin: 10px 0 18px;
}

.contact-form-intro > p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.contact-notice {
    margin-top: 35px;
    display: flex;
    gap: 18px;
    padding: 22px;

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
}

.contact-notice-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;

    background: #c7202f;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-notice h3 {
    color: #ffffff;
    margin: 0 0 5px;
    font-size: 16px;
}

.contact-notice p {
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.6;
    font-size: 13px;
}


/* FORM CARD */

.contact-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #10294f;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid #d9dde3;
    border-radius: 5px;

    font-family: inherit;
    font-size: 14px;

    background: #ffffff;
    color: #333333;

    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #10294f;
}

.form-group textarea {
    resize: vertical;
}

.hidden-field {
    display: none;
}

.contact-submit {
    width: 100%;
    border: none;
    cursor: pointer;

    background: #c7202f;
    color: #ffffff;

    padding: 16px 25px;
    border-radius: 5px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    transition: 0.3s ease;
}

.contact-submit:hover {
    background: #10294f;
}


/* ==========================================================
   LOCATION
========================================================== */

.location-section {
    background: #f7f8fa;
    padding: 80px 0;
}

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-content > span {
    color: #c7202f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.location-content h2 {
    color: #10294f;
    font-size: 36px;
    margin: 10px 0 18px;
}

.location-content p {
    color: #555555;
    line-height: 1.8;
}

.location-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 15px;

    background: #10294f;
    color: #ffffff;

    padding: 14px 22px;
    border-radius: 5px;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;

    transition: 0.3s ease;
}

.location-button:hover {
    background: #c7202f;
    color: #ffffff;
}

.location-visual {
    min-height: 300px;

    background: #10294f;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #ffffff;

    border-bottom: 6px solid #c7202f;
}

.location-pin {
    font-size: 45px;
    color: #c7202f;
    margin-bottom: 15px;
}

.location-visual h3 {
    color: #ffffff;
    font-size: 23px;
    margin: 0 0 8px;
}

.location-visual p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.6;
}


/* ==========================================================
   CONTACT RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper,
    .location-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {

    .contact-hero {
        min-height: 330px;
        padding: 40px 20px;
    }

    .contact-hero h1 {
        font-size: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-card {
        padding: 28px 20px;
    }
}

/* ==========================================================
   GALLERY PAGE
========================================================== */

.gallery-hero {
    position: relative;
    min-height: 400px;

    background:
        linear-gradient(
            rgba(10, 28, 62, 0.78),
            rgba(10, 28, 62, 0.78)
        ),
        url("../images/gallery/gallery-hero.jpeg") center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(16, 41, 79, 0.12),
        rgba(199, 32, 47, 0.15)
    );
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.gallery-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
}

.gallery-hero h1 {
    color: #ffffff;
    font-size: 52px;
    margin: 0 0 18px;
}

.gallery-hero p {
    max-width: 700px;
    margin: auto;
    color: #ffffff;
    line-height: 1.8;
}


/* INTRODUCTION */

.gallery-intro {
    background: #f7f8fa;
}


/* FILTER BUTTONS */

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
}

.gallery-filter {
    border: 1px solid #d9dde3;
    background: #ffffff;
    color: #10294f;

    padding: 11px 20px;
    border-radius: 4px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.3s ease;
}

.gallery-filter:hover,
.gallery-filter.active {
    background: #c7202f;
    border-color: #c7202f;
    color: #ffffff;
}


/* PHOTO GRID */

.school-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.school-gallery-item {
    position: relative;
    height: 330px;
    overflow: hidden;
    border-radius: 8px;
    background: #10294f;
}

.school-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.school-gallery-item:hover img {
    transform: scale(1.07);
}


/* IMAGE OVERLAY */

.gallery-item-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 65px 22px 22px;

    background: linear-gradient(
        to top,
        rgba(8, 28, 59, 0.96),
        rgba(8, 28, 59, 0)
    );
}

.gallery-item-overlay span {
    color: #ef3340;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.gallery-item-overlay h3 {
    color: #ffffff;
    font-size: 20px;
    margin: 5px 0 0;
}


/* BOTTOM MESSAGE */

.gallery-message {
    background: #10294f;
    padding: 65px 20px;
    text-align: center;
}

.gallery-message-content {
    max-width: 750px;
}

.gallery-message span {
    color: #ef3340;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.gallery-message h2 {
    color: #ffffff;
    font-size: 34px;
    margin: 10px 0 15px;
}

.gallery-message p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin: auto;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .school-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .gallery-hero {
        min-height: 330px;
        padding: 40px 20px;
    }

    .gallery-hero h1 {
        font-size: 36px;
    }

    .school-gallery-grid {
        grid-template-columns: 1fr;
    }

    .school-gallery-item {
        height: 300px;
    }
}