/* =========================================
   AMPLE'S NEST MONTESSORI - STYLESHEET
   ========================================= */

/* --- 1. CSS Variables (Colours from Logo) --- */
:root {
    /* Primary Colours */
    --primary-color: #0C4A4E; /* Deep Teal from logo */
    --primary-light: #1A6B70;
    --secondary-color: #E84A8A; /* Bright Pink/Magenta from logo */
    --accent-color: #5BC0DE; /* Light Blue from logo */
    --gold-color: #F4D03F; /* Yellow/Gold from logo */
    
    /* Neutral Colours */
    --dark-color: #1A2E30;
    --light-color: #F8F9FA;
    --white: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    
    /* Backgrounds */
    --bg-light-teal: #E8F4F4;
    --bg-light-pink: #FDF0F5;
    --bg-light-gold: #FEF9E7;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing & Borders */
    --section-padding: 5rem 0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* --- 2. Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- 3. Utility Classes --- */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

.bg-light-teal { background-color: var(--bg-light-teal); }
.bg-light-pink { background-color: var(--bg-light-pink); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}
.btn-primary:hover {
    background-color: #c73a75;
    border-color: #c73a75;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
    background-color: var(--gold-color);
    color: var(--primary-color);
    border-color: var(--gold-color);
}
.btn-secondary:hover {
    background-color: #e0b82e;
    border-color: #e0b82e;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }

/* Icons */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.icon-teal { background-color: #E0F2F1; color: var(--primary-color); }
.icon-pink { background-color: #FCE4EC; color: var(--secondary-color); }
.icon-gold { background-color: #FFF8E1; color: #D4AC0D; }
.icon-light-blue { background-color: #E1F5FE; color: #0288D1; }

/* Rounded Image */
.rounded-img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    height: auto;
}

/* --- 4. Header & Navigation --- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    max-width: 56px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: none; /* Hidden on mobile, shown on desktop */
}

.main-nav {
    display: none; /* Hidden on mobile */
    flex: 1 1 auto;
    min-width: 0;
}

.nav-list {
    display: flex;
    gap: 0.8rem 1.2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--secondary-color);
}

.nav-cta {
    display: none; /* Hidden on mobile, shown on desktop */
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- 5. Hero Sections --- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-image,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-video {
    background: #000;
    filter: brightness(0.7) saturate(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(12, 74, 78, 0.85) 0%, rgba(12, 74, 78, 0.55) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.7rem;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.hero-dot.active {
    background: var(--white);
}

/* Page Hero (for subpages) */
.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(12, 74, 78, 0.8), rgba(12, 74, 78, 0.8));
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- 6. Home Page Sections --- */
/* Welcome Section */
.values-grid {
    margin-top: 2rem;
}
.value-card {
    text-align: center;
    padding: 2rem;
}
.value-card .icon-box {
    margin: 0 auto 1rem auto;
}

/* Why Choose Us */
.feature-card {
    text-align: center;
    padding: 1.5rem;
}
.feature-card .icon-box {
    margin: 0 auto 1rem auto;
}

/* Programmes Section */
.programme-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.programme-card .age-range {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.programme-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* School Life Section */
.life-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.life-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.life-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.life-card:hover img {
    transform: scale(1.1);
}
.life-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(12, 74, 78, 0.9), transparent);
    color: var(--white);
    padding: 1.5rem 1rem 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    text-align: center;
}
.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
}
.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Testimonials */
.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    min-height: 200px;
}
.testimonial-slide {
    display: none;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.testimonial-author {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.carousel-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.carousel-btn:hover {
    background: var(--secondary-color);
}

/* News Cards */
.news-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.read-more {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: auto;
}

/* --- 7. About Page --- */
.content-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--accent-color);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}
.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--secondary-color);
}
.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.leader-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 4px solid var(--accent-color);
}

/* --- 8. Academics Page --- */
.principle-card {
    text-align: center;
    padding: 2rem;
}
.principle-card .icon-box {
    margin: 0 auto 1rem auto;
}

/* --- 9. Programmes Page --- */
.programme-detail-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.programme-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.programme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}
.programme-info {
    padding: 2rem;
}
.programme-info h2 {
    margin-bottom: 0.5rem;
}
.programme-info .age-range {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}
.programme-info h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--primary-color);
}
.programme-info ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.programme-info .btn {
    margin-top: 1rem;
}

/* --- 10. Admissions Page --- */
.check-list {
    list-style: none;
    padding: 0;
}
.check-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.check-list i {
    color: var(--secondary-color);
}
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.step {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    border-left: 5px solid var(--secondary-color);
}
.step-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.2rem;
}
.faq-answer p {
    padding-bottom: 1.2rem;
    color: var(--text-light);
}

/* Forms */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}
.styled-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(232, 74, 138, 0.1);
}
.error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.2em;
}
.form-success {
    display: none;
    background-color: #E8F5E9;
    color: #2E7D32;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* --- 11. Facilities Page --- */
.facilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.facility-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.facility-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.facility-info {
    padding: 1.5rem;
}

/* --- 12. Gallery Page --- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12, 74, 78, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

/* --- 13. News Page --- */
.featured-article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.featured-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}
.featured-content {
    padding: 2rem;
}

/* --- 14. Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 30px;
    text-align: center;
    margin-top: 5px;
}
.info-item h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}
.contact-social {
    margin-top: 2rem;
}
.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    border: 2px dashed #bbb;
    overflow: hidden;
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- 15. Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 0 0;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    background: var(--white);
    padding: 5px;
    border-radius: 8px;
}
.footer-tagline {
    font-style: italic;
    color: var(--gold-color);
    font-weight: 600;
}
.site-footer h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    color: rgba(255,255,255,0.8);
}
.footer-links a:hover {
    color: var(--gold-color);
}
.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
}
.footer-contact i {
    color: var(--gold-color);
    width: 20px;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.newsletter-form input {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: var(--border-radius-sm);
    min-width: 150px;
}
.newsletter-form .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-icons a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}
.footer-bottom {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 74, 138, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* --- 16. Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 17. Media Queries (Mobile-First) --- */
@media (min-width: 576px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .life-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .content-split { grid-template-columns: 1fr 1fr; }
    .programme-detail { grid-template-columns: 1fr 2fr; }
    .featured-article { grid-template-columns: 1fr 1.5fr; }
    .contact-grid { grid-template-columns: 1fr 1.5fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-text { display: block; }
    
    /* Navigation */
    .main-nav {
        display: block;
    }
    .nav-cta {
        display: inline-block;
    }
    .hamburger {
        display: none;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .life-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; }
    .process-steps { grid-template-columns: repeat(5, 1fr); }
    
    .hero-title { font-size: 3.5rem; }
    .page-title { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }
}

/* --- Mobile Navigation (max-width: 767px) --- */
@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
        display: block;
    }
    .main-nav.open {
        right: 0;
        display: block;
    }
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-link {
        font-size: 1.1rem;
    }
    .nav-cta {
        display: none; /* Hidden on mobile, nav link handles it */
    }
    /* Overlay when menu is open */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .container {
        width: 92%;
        padding: 0;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero {
        min-height: 68vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn,
    .error-actions .btn,
    .newsletter-form .btn {
        width: 100%;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
    }

    .card-body,
    .programme-info,
    .featured-content,
    .styled-form,
    .facility-info {
        padding: 1.2rem;
    }

    .featured-img,
    .card-img,
    .programme-image img,
    .facility-card img {
        min-height: 220px;
    }

    .timeline {
        padding-top: 1rem;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-dot {
        left: 8px;
    }

    .map-placeholder {
        height: 300px;
    }

    .footer-contact p {
        align-items: flex-start;
    }

    .error-page {
        padding-top: 5rem;
    }

    .error-page-content {
        padding: 2rem 1rem;
    }

    .error-actions {
        flex-direction: column;
    }
}

/* --- 18. Accessibility & Focus --- */
:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- 19. Custom 404 Page --- */
.error-page {
    padding: 7rem 0 5rem;
    background: linear-gradient(135deg, rgba(24, 92, 110, 0.08), rgba(247, 194, 79, 0.12));
}

.error-page-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(18, 42, 66, 0.08);
}

.error-code {
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}