/* ==========================================================================
   Makutano Model School — Main Stylesheet
   Brand colours: Royal Blue, Gold, Light Gold, Silver, Dark Silver, White
   No gradients. Solid colours only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Brand palette */
    --royal-blue: #1B2F8A;
    --royal-blue-dark: #142266;
    --gold: #F2B705;
    --light-gold: #F8D64A;
    --silver: #B9BCC3;
    --dark-silver: #8D9198;
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --text-dark: #1A1A2E;
    --text-muted: #6B6E76;
    --border-light: #E2E4E8;

    /* Typography */
    --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-max: 1200px;
    --container-padding: 1.25rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(27, 47, 138, 0.08);
    --shadow-md: 0 4px 16px rgba(27, 47, 138, 0.10);
    --shadow-lg: 0 8px 32px rgba(27, 47, 138, 0.14);
    --shadow-xl: 0 16px 48px rgba(27, 47, 138, 0.18);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--royal-blue);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--royal-blue);
    text-decoration: none;
    transition: color var(--transition);
}

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

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style-position: inside;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

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

.section-silver {
    background-color: #EDF0F3;
}

.section-blue {
    background-color: var(--royal-blue);
    color: var(--white);
}

.section-blue h1,
.section-blue h2,
.section-blue h3,
.section-blue h4 {
    color: var(--white);
}

.section-blue p {
    color: rgba(255, 255, 255, 0.88);
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-blue { color: var(--royal-blue); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Section Heading
   -------------------------------------------------------------------------- */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    border-radius: 2px;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 1rem auto 0;
    font-size: 1.05rem;
}

.section-heading.text-left {
    text-align: left;
}

.section-heading.text-left h2::after {
    left: 0;
    transform: none;
}

.section-heading.text-left p {
    margin-left: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--royal-blue);
    border-color: var(--gold);
}

.btn-primary:hover {
    background-color: var(--light-gold);
    border-color: var(--light-gold);
    color: var(--royal-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--royal-blue);
    color: var(--white);
    border-color: var(--royal-blue);
}

.btn-secondary:hover {
    background-color: var(--royal-blue-dark);
    border-color: var(--royal-blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--royal-blue);
    border-color: var(--royal-blue);
}

.btn-outline:hover {
    background-color: var(--royal-blue);
    color: var(--white);
}

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

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--royal-blue);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Top Bar
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: var(--royal-blue-dark);
    color: var(--white);
    font-size: 0.82rem;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.top-bar a:hover {
    color: var(--gold);
}

.top-bar .top-bar-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    gap: 1rem;
    min-height: 72px;
}

.logo-area {
    display: flex;
    align-items: stretch;
    text-decoration: none;
}

.logo-area img {
    height: 100%;
    width: auto;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav a:hover {
    color: var(--royal-blue);
    background-color: var(--off-white);
}

.nav a.active {
    color: var(--royal-blue);
    font-weight: 600;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--gold);
    border-radius: 2px;
}

.nav-cta {
    margin-left: 0.5rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--royal-blue);
    border-radius: 2px;
    transition: all var(--transition);
    margin: 0 auto;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    background-color: var(--royal-blue);
    color: var(--white);
    padding: 4.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(242, 183, 5, 0.12);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(242, 183, 5, 0.08);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.hero-content .hero-motto {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero-content .hero-tagline {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--gold);
    color: var(--royal-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--royal-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-swahili {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--light-gold);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    max-width: 320px;
    width: 100%;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.25));
}

/* --------------------------------------------------------------------------
   Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar {
    background-color: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--border-light);
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--royal-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Why Choose Us / Feature Cards
   -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.feature-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all var(--transition);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--off-white);
    border-radius: 50%;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--gold);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--royal-blue);
    transition: color var(--transition);
}

.feature-card:hover .feature-icon svg {
    color: var(--royal-blue);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Programme Cards
   -------------------------------------------------------------------------- */
.programmes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.programme-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.programme-card-header {
    background-color: var(--royal-blue);
    padding: 1.5rem;
    text-align: center;
}

.programme-card-header h3 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.programme-card-header .age {
    color: var(--light-gold);
    font-size: 0.88rem;
    font-weight: 500;
}

.programme-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.programme-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.programme-card-body ul {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.programme-card-body ul li {
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.programme-card-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Activity Cards
   -------------------------------------------------------------------------- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.activity-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    text-align: center;
}

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

.activity-icon-box {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--off-white);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.activity-card:hover .activity-icon-box {
    background-color: var(--gold);
}

.activity-icon-box svg {
    width: 36px;
    height: 36px;
    color: var(--royal-blue);
}

.activity-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.activity-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background-color: var(--gold);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--royal-blue);
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: var(--royal-blue);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.85;
}

.cta-section .btn {
    margin: 0 0.5rem;
}

/* --------------------------------------------------------------------------
   Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
    background-color: var(--royal-blue);
    color: var(--white);
    padding: 3.5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(242, 183, 5, 0.10);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-hero .breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb a {
    color: var(--light-gold);
}

.page-hero .breadcrumb a:hover {
    color: var(--gold);
}

.page-hero .breadcrumb span {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-visual img {
    max-width: 280px;
    width: 100%;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.value-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.value-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--off-white);
    border-radius: var(--radius-sm);
}

.value-icon svg {
    width: 24px;
    height: 24px;
    color: var(--royal-blue);
}

.value-item h4 {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Admissions Page
   -------------------------------------------------------------------------- */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.level-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all var(--transition);
}

.level-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.level-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.level-card .level-age {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.level-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.admission-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 1.5rem 1rem;
}

.process-step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--royal-blue);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    counter-increment: step;
}

.process-step-number::before {
    content: counter(step);
}

.process-step h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.form-group label .required {
    color: #C0392B;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--off-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--royal-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(27, 47, 138, 0.10);
}

.form-control::placeholder {
    color: var(--dark-silver);
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231B2F8A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-success {
    background-color: #E8F8E8;
    border: 2px solid #27AE60;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-success svg {
    width: 24px;
    height: 24px;
    color: #27AE60;
    flex-shrink: 0;
}

.form-success p {
    margin-bottom: 0;
    color: #1E7E34;
    font-weight: 500;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background-color: var(--royal-blue);
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.gallery-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.gallery-placeholder h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.gallery-placeholder p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    margin-bottom: 0;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(27, 47, 138, 0.92);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform var(--transition);
}

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

.gallery-overlay h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.gallery-overlay p {
    color: var(--light-gold);
    font-size: 0.8rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   News Cards
   -------------------------------------------------------------------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.news-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.news-card-header {
    background-color: var(--royal-blue);
    padding: 1.75rem 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-header .news-category {
    color: var(--light-gold);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.news-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-body .news-date {
    font-size: 0.82rem;
    color: var(--dark-silver);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.news-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.news-card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.news-card-body .read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--royal-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card-body .read-more:hover {
    color: var(--gold);
    gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info-card {
    background-color: var(--royal-blue);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(242, 183, 5, 0.15);
    border-radius: var(--radius-sm);
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.contact-info-item h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-info-item p,
.contact-info-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-info-item a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.social-link:hover {
    background-color: var(--gold);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--white);
    transition: color var(--transition);
}

.social-link:hover svg {
    color: var(--royal-blue);
}

/* --------------------------------------------------------------------------
   Map Section
   -------------------------------------------------------------------------- */
.map-section {
    padding: 0;
}

.map-embed {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--royal-blue-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
}

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

.footer-brand .footer-logo {
    width: auto;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-brand .footer-motto {
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 0.35rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: var(--white);
}

.footer-contact-item a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   WhatsApp Float Button
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Back to Top
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    background-color: var(--royal-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 998;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--gold);
    color: var(--royal-blue);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* --------------------------------------------------------------------------
   Image Card Styles (photos)
   -------------------------------------------------------------------------- */

/* Hero image (replaces SVG in hero on home) */
.hero-image {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.30);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.hero-visual-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-visual-stack .hero-crest {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Programme card image */
.programme-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* News card image */
.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.news-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.news-card-image-wrap .news-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--royal-blue);
    color: var(--light-gold);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    z-index: 1;
}

/* Gallery with real photos */
.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* Photo strip — horizontal row of images */
.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.photo-strip-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

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

.photo-strip-item:hover img {
    transform: scale(1.1);
}

/* About page image */
.about-image {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.about-image-small {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

/* Image + text side-by-side */
.image-text-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.image-text-row.reverse {
    direction: rtl;
}

.image-text-row.reverse > * {
    direction: ltr;
}

.image-text-row img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Feature section with background image */
.feature-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    min-height: 320px;
    display: flex;
    align-items: center;
}

.feature-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-banner-overlay {
    position: relative;
    z-index: 1;
    background-color: rgba(27, 47, 138, 0.85);
    padding: 3rem;
    width: 100%;
}

.feature-banner-overlay h2,
.feature-banner-overlay h3 {
    color: var(--white);
}

.feature-banner-overlay p {
    color: rgba(255, 255, 255, 0.88);
}

/* Activity card with image */
.activity-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

/* Level card with image */
.level-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

/* News article image */
.news-article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

/* Admissions banner image */
.admissions-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.admissions-banner-text {
    background-color: var(--royal-blue);
    color: var(--white);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admissions-banner-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.admissions-banner-text p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.admissions-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 1.5rem;
    }

    .hero-visual img {
        max-width: 220px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

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

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--border-light);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-visual {
        margin-bottom: 1.5rem;
    }

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .image-text-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .admissions-banner {
        grid-template-columns: 1fr;
    }

    .admissions-banner-image {
        min-height: 220px;
    }

    .feature-banner-overlay {
        padding: 2rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 1rem;
    }

    /* Hide desktop nav, show hamburger */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        overflow-y: auto;
    }

    .nav.open {
        right: 0;
    }

    .nav a {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
        border-bottom: 1px solid var(--border-light);
    }

    .nav a.active::after {
        display: none;
    }

    .nav a.active {
        background-color: var(--off-white);
        border-left: 4px solid var(--gold);
    }

    .nav-cta {
        margin: 1rem 0 0;
    }

    .nav-cta .btn {
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-overlay.open {
        display: block;
    }

    .top-bar {
        display: none;
    }

    .header .container {
        min-height: 56px;
    }

    .logo-area img {
        max-height: 56px;
    }

    .stats-bar .container {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .features-grid,
    .programmes-grid,
    .activities-grid,
    .news-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

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

    .admission-process {
        grid-template-columns: 1fr;
    }

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

    .form-card {
        padding: 1.75rem 1.5rem;
    }

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

    .footer-brand {
        grid-column: auto;
    }

    .cta-section .btn {
        display: block;
        margin: 0 auto 1rem;
        width: fit-content;
    }

    .cta-section .btn:last-child {
        margin-bottom: 0;
    }

    .hero {
        padding: 3rem 0 3.5rem;
    }

    .hero-content .hero-motto {
        font-size: 1.1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .back-to-top {
        bottom: 1rem;
        left: 1rem;
    }

    .hero-image {
        max-width: 300px;
    }

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

    .feature-banner-overlay {
        padding: 1.5rem;
    }

    .admissions-banner-text {
        padding: 2rem 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive — Small mobile
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.45rem; }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .stats-bar .container {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 1.5rem 1rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .section-heading {
        margin-bottom: 2rem;
    }
}
