/* ==========================================================
   THE EDUCATORS - SCHOOL WEBSITE STYLESHEET
   Theme: Classic Blue + Gold
   Made with HTML + CSS only (+ tiny script.js for animations)
   ========================================================== */

/* ---------- 1. GLOBAL STYLES ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Website colors - change these to change the whole theme */
:root {
    --navy: #0a2a66;          /* dark navy blue */
    --primary: #1b4fa0;       /* main blue */
    --primary-light: #2f6bd8; /* lighter blue */
    --gold: #f2a900;          /* main gold */
    --gold-light: #ffd75e;    /* light gold */
    --dark: #1c2331;          /* dark text */
    --grey: #5f6b7a;          /* grey text */
    --light-bg: #f4f7fb;      /* light background */
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(10, 42, 102, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}

/* Container keeps content in the middle of the screen */
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ---------- 2. TOP BAR ---------- */
.topbar {
    background: var(--navy);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.topbar span {
    margin-right: 20px;
}

/* Font Awesome icons inside the top bar */
.topbar i {
    margin-right: 6px;
    color: var(--gold-light);
}

.topbar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 14px;
}

.topbar a i {
    margin-right: 0;
    color: var(--white);
    font-size: 0.95rem;
}

.topbar a:hover i {
    color: var(--gold-light);
}

/* ---------- 3. NAVIGATION (HEADER) ---------- */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Real school logo image (logo.jpg) in the navigation */
.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(10, 42, 102, 0.15);
}

.logo h2 {
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 800;
}

.logo p {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Underline effect on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: #eef4ff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 50%;
}

/* "Apply Now" button in the menu */
.nav-apply {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
}

.nav-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(242, 169, 0, 0.4);
}

.nav-apply::after {
    display: none;
}

/* ---------- 4. HERO SECTION (HOME PAGE) ---------- */
.hero {
    /* Real banner photo with a blue overlay so the white text stays readable */
    background: linear-gradient(rgba(10, 42, 102, 0.82), rgba(27, 79, 160, 0.85)),
                url('image banner.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative circles in the background */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.hero::before {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -100px;
}

.hero::after {
    width: 300px;
    height: 300px;
    bottom: -120px;
    right: -80px;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--gold-light);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.2rem;
    opacity: 0.95;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    box-shadow: 0 8px 20px rgba(242, 169, 0, 0.35);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(242, 169, 0, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-blue {
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(27, 79, 160, 0.3);
}

.btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(27, 79, 160, 0.4);
}

/* ---------- 6. SECTION TITLES ---------- */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.4rem;
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-title .subtitle {
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto;
}

/* Gold line under section titles */
.section-title .line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 14px auto;
    border-radius: 4px;
}

/* ---------- 7. WELCOME / ABOUT INTRO ---------- */
.welcome {
    background: var(--white);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.welcome-text h3 {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.welcome-text h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.welcome-text p {
    color: var(--grey);
    margin-bottom: 1.2rem;
}

.welcome-text .btn {
    margin-top: 1rem;
}

/* Real school photo fills the whole welcome box */
.welcome-image {
    position: relative;
    border-radius: 20px;
    height: 380px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.welcome-image .welcome-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Small floating badge on the image */
.welcome-image .badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gold);
    color: var(--navy);
    padding: 6px 50px;
    font-weight: 700;
    font-size: 0.8rem;
    transform: rotate(35deg);
}

/* ---------- 8. PROGRAMS / CLASSES CARDS ---------- */
.programs {
    background: var(--light-bg);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    border-radius: 18px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-top: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

/* Different top border color for each card */
.program-card:nth-child(2) { border-top-color: var(--gold); }
.program-card:nth-child(3) { border-top-color: var(--primary-light); }
.program-card:nth-child(4) { border-top-color: var(--navy); }

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 42, 102, 0.18);
}

/* Real photo at the top of each program card (replaces the icon circle) */
.program-top {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.program-card:hover .program-top img {
    transform: scale(1.06);
}

/* Text area below the photo */
.program-card .program-body {
    padding: 1.5rem 1.8rem 1.8rem;
}

.program-card h3 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.program-card p {
    color: var(--grey);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.program-card a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.program-card a:hover {
    color: var(--gold);
}

/* ---------- 9. WHY CHOOSE US ---------- */
.why-us {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--light-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.why-card:hover {
    background: var(--white);
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

/* Real photo at the top of "Why Choose Us" cards */
.why-card .why-top {
    height: 170px;
    overflow: hidden;
}

.why-card .why-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.why-card:hover .why-top img {
    transform: scale(1.06);
}

.why-card .why-body {
    padding: 1.5rem;
    text-align: center;
}

.why-card .icon {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.why-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.why-card p {
    color: var(--grey);
    font-size: 0.95rem;
}

/* ---------- 10. STATS BAND ---------- */
.stats {
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--gold-light);
    font-weight: 800;
}

.stat-item p {
    opacity: 0.95;
    letter-spacing: 1px;
    font-size: 1rem;
}

/* ---------- 11. NEWS & EVENTS ---------- */
.news {
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 42, 102, 0.16);
}

/* Top strip: real photo replaces gradient + icon */
.news-top {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.news-card:hover .news-top img {
    transform: scale(1.06);
}

/* Fallback: if no img, show gradient (old icon style) */
.news-top i {
    font-size: 3rem;
    color: var(--gold-light);
}

/* Gold date badge overlapping the strip */
.news-date {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    width: 70px;
    height: 70px;
    margin: -35px 0 0 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.news-date .day {
    font-size: 1.5rem;
    line-height: 1;
}

.news-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-body {
    padding: 1.2rem 1.5rem 1.5rem;
}

.news-body h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.news-body p {
    color: var(--grey);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

.news-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.news-body a:hover {
    color: var(--gold);
}

/* ---------- 12. TESTIMONIALS ---------- */
.testimonials {
    background: var(--white);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testi-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.testi-card:hover {
    transform: translateY(-6px);
    background: var(--white);
}

.testi-card .quote {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.testi-card .quote i {
    font-size: 1.8rem;
}

.testi-card p {
    color: var(--grey);
    font-style: italic;
    margin-bottom: 1.2rem;
}

.testi-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-person .avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-weight: 700;
}

.testi-person h4 {
    color: var(--navy);
    font-size: 0.95rem;
}

.testi-person p {
    font-size: 0.8rem;
    color: var(--grey);
    font-style: normal;
    margin: 0;
}

/* ---------- 13. CALL TO ACTION BANNER ---------- */
.cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.cta .btn-blue {
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: var(--white);
}

/* ---------- 14. PAGE HEADER (INNER PAGES) ---------- */
.page-header {
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
}

.page-header p {
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Breadcrumb like Home / About */
.page-header .crumb {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ---------- 15. ABOUT PAGE ---------- */
/* Mission & Vision cards */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    background: var(--light-bg);
    border-radius: 18px;
    padding: 2.5rem;
    border-left: 6px solid var(--gold);
}

.mv-card h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--grey);
}

.mv-card .icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Core values list */
.values-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.values-list li {
    background: var(--white);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.values-list li i {
    font-size: 1.3rem;
    color: var(--gold);
}

.values-list li:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateX(8px);
}

.values-list li:hover i {
    color: var(--gold-light);
}

/* Facilities cards */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.facility-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 42, 102, 0.16);
}

.facility-top {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Real photos inside the facility cards */
.facility-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Slight zoom on the photo when hovering the card */
.facility-card:hover .facility-top img {
    transform: scale(1.06);
}

.facility-card .facility-body {
    padding: 1.5rem;
    text-align: center;
}

.facility-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.facility-card p {
    color: var(--grey);
    font-size: 0.92rem;
}

/* ---------- STAFF / TEACHERS (ABOUT PAGE) ---------- */
/* Real staff group photo card */
.staff-box {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.staff-box .staff-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.staff-box p {
    padding: 1.2rem 1.5rem;
    text-align: center;
    color: var(--grey);
}

/* ---------- 16. ADMISSIONS PAGE ---------- */
/* Admissions banner with real photo */
.admissions-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow);
}

.admissions-banner img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Blue text overlay on the banner */
.admissions-banner .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 42, 102, 0.85));
    color: var(--white);
    padding: 2rem 2.5rem 1.5rem;
}

.admissions-banner .banner-overlay h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.admissions-banner .banner-overlay p {
    font-size: 1rem;
    opacity: 0.95;
}
/* Step cards */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.step-num {
    width: 46px;
    height: 46px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.step-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-card p {
    color: var(--grey);
    font-size: 0.92rem;
}

/* Tables (age requirements + fees) */
.table-wrap {
    overflow-x: auto;
    box-shadow: var(--shadow);
    border-radius: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

table th {
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
}

table td {
    padding: 13px 18px;
    border-bottom: 1px solid #e8ecf3;
    color: var(--dark);
}

table tr:nth-child(even) {
    background: var(--light-bg);
}

table tr:hover {
    background: #eef4ff;
}

/* Documents list */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.docs-grid li {
    background: var(--white);
    border: 2px solid #e8ecf3;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--navy);
}

.docs-grid li i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* ---------- 17. FORMS ---------- */
.form-box {
    background: var(--white);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.form-box h3 {
    color: var(--navy);
    margin-bottom: 1.8rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dde3ec;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 79, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Two inputs in one row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

/* Note under the form */
.form-note {
    text-align: center;
    background: #fff7e0;
    border: 2px dashed var(--gold);
    color: var(--navy);
    padding: 12px;
    border-radius: 10px;
    margin-top: 1.2rem;
    font-size: 0.9rem;
}

/* ---------- 18. CONTACT PAGE ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 1.6rem;
    display: flex;
    gap: 16px;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(8px);
}

.contact-card .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
}

.contact-card .icon i {
    font-size: 1.3rem;
}

.contact-card h3 {
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-card p {
    color: var(--grey);
    font-size: 0.95rem;
}

/* Map placeholder */
.map-box {
    background: linear-gradient(135deg, var(--light-bg), #e8ecf3);
    border-radius: 16px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 2px dashed #c8d2e4;
    margin-top: 1.5rem;
}

.map-box i {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ---------- 19. FOOTER ---------- */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer h3 {
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer ul a:hover {
    color: var(--gold-light);
    padding-left: 6px;
}

/* Font Awesome icons in the footer contact list */
.footer ul li i {
    width: 18px;
    margin-right: 6px;
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo .footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-logo h3 {
    color: var(--white);
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- 20. FLOATING BUTTONS ---------- */
/* WhatsApp button (fixed to the screen corner) */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.9rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

/* Back to top button */
#backToTop {
    position: fixed;
    bottom: 95px;
    right: 27px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 998;
    display: none; /* hidden until you scroll down (script.js) */
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-4px);
}

/* ---------- 21. SCROLL REVEAL ANIMATION ---------- */
/* Elements with class "reveal" start invisible and fade in
   when they enter the screen (controlled by script.js) */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 22. RESPONSIVE DESIGN ---------- */
@media (max-width: 900px) {
    .welcome-grid,
    .contact-grid,
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .hero h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 700px) {
    /* Stack the navigation vertically on small screens */
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 0.92rem;
    }

    .topbar span {
        margin-right: 8px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3.5rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Smaller photo heights on mobile phones */
    .welcome-image {
        height: 280px;
    }

    .staff-box .staff-img {
        height: 260px;
    }

    .program-top {
        height: 150px;
    }

    .news-top {
        height: 160px;
    }

    .why-card .why-top {
        height: 140px;
    }

    .admissions-banner img {
        height: 220px;
    }

    .admissions-banner .banner-overlay {
        padding: 1.2rem 1.5rem 1rem;
    }

    .admissions-banner .banner-overlay h2 {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .stat-item h3 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ==========================================================
   POLISH — final professional touches
   ========================================================== */

/* Text selection colour (school brand) */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* WhatsApp button — subtle attention pulse */
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45); }
    50%      { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7); }
}

.whatsapp-float {
    animation: waPulse 2.4s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1) translateY(-3px);
}

/* Back-to-top button — smooth opacity + scale transition */
#backToTop {
    transition: all 0.35s ease;
}

#backToTop:hover {
    transform: translateY(-4px) scale(1.12);
}

/* Navbar — tighter, crisper shadow on scroll (applied via script.js or :hover) */
.navbar {
    transition: box-shadow 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 6px 32px rgba(10, 42, 102, 0.18);
}

/* "Learn More →" style inside cards — cleaner underline */
.program-card a,
.news-card a {
    transition: all 0.3s ease;
}

.program-card a:hover,
.news-card a:hover {
    letter-spacing: 1.5px;
    color: var(--primary);
}

/* Table rows — subtle hover highlight */
table tbody tr {
    transition: background 0.25s ease;
}

table tbody tr:hover {
    background: #eef4ff;
}

/* Focus-visible ring for keyboard / accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth section background alternate — subtle depth */
.programs { background: var(--light-bg); }
.news     { background: var(--white); }
.testimonials { background: var(--light-bg); }

/* Footer links — subtle hover lift */
.footer-bottom p {
    transition: color 0.3s ease;
}

/* Image loading — prevent layout shift */
img {
    background: var(--light-bg);
}

/* Hero badge — subtle float animation */
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.hero-badge {
    animation: badgeFloat 3.5s ease-in-out infinite;
}
