/*
   GEMS International Secondary Boarding School
   Branding Colors:
   Primary Orange: #E86830
   Primary Green: #2E9E4C
   Accent Blue: #0C2340 (Navy for contrast)
*/

:root {
    --primary: #E86830; /* Vibrant Orange */
    --primary-dark: #d05520;
    --secondary: #2E9E4C; /* School Green */
    --secondary-dark: #238b40;
    --accent: #0C2340; /* Navy Blue for text/headings */
    --light-bg: #f4f9f5; /* Balanced Minty Green */
    --white: #ffffff;
    --gray: #666666;
    --border: #e1e1e1;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--accent);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f4fbf6; /* Global GEMS Minty Green (Layer 2) */
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- BRANDING & UTILITIES --- */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }

.section {
    padding: 5rem 0;
    background-color: #f4fbf6; /* Layer 2: Paper Layer */
}

.section-alt {
    background-color: #e8f5ed; /* Slightly deeper mint for Layer 2 variety */
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header.left-align {
    text-align: left;
    margin-left: 0;
}

.section-badge {
    display: inline-block;
    background-color: rgba(232, 104, 48, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

.section-header h2 span {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

/* Add a green underline to highlighted words */
.section-header h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(46, 158, 76, 0.2);
    z-index: -1;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(232, 104, 48, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(232, 104, 48, 0.4);
}

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

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

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

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

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

.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
}

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

/* --- HAPPY BACKGROUND UTILITY --- */
.happy-bg {
    position: relative;
    z-index: 1;
    background-color: #f0fdf4; /* Layer 2: Refreshing Minty "Paper" Layer */
}

.happy-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.4; /* Layer 1: More visible school atmosphere */
    z-index: -1;
    pointer-events: none;
}

/* Page Specific Backgrounds with very light minty transparent overlays */
.bg-home::before {
    background-image: linear-gradient(rgba(240, 253, 244, 0.75), rgba(240, 253, 244, 0.75)),
                     url('assets/images/gemspictures/frontphoto.jpg');
}
.bg-about::before {
    background-image: linear-gradient(rgba(240, 253, 244, 0.75), rgba(240, 253, 244, 0.75)),
                     url('assets/images/gemspictures/legacyofexcellence.jpg');
}
.bg-academics::before {
    background-image: linear-gradient(rgba(240, 253, 244, 0.75), rgba(240, 253, 244, 0.75)),
                     url('assets/images/gemspictures/childrenhappyinaclassroom.jpg');
}

/* --- FACILITIES CARDS (BOLDER) --- */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.facility-card {
    background-color: #eefaf0; /* Minty Card */
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: var(--transition);
    border-bottom: 4px solid var(--secondary);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.facility-icon {
    font-size: 2.22rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.facility-card h4 {
    font-size: 1.35rem;
    font-weight: 800; /* Extra bold for headers */
    margin-bottom: 0.8rem;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.facility-card p {
    font-size: 1.05rem;
    color: #444; /* Darker gray */
    font-weight: 600; /* Bolder text as requested */
    line-height: 1.5;
}

/* --- HEADER --- */
.header {
    background-color: #f4fbf6; /* Minty Header */
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 55px;
    width: auto;
    border-radius: 50%;
    background-color: transparent;
    mix-blend-mode: multiply; /* Blends white background into the minty header */
}

.logo-text {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo-main {
    font-size:1.5rem;
    font-weight: 800;
    color: var(--secondary); /* Green text for 'GEMS' */
    line-height: 1;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary); /* Orange for subtitle */
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    font-weight: 600;
    color: var(--accent);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(232, 104, 48, 0.1);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 8rem 0 10rem;
    overflow: hidden;
    background: var(--accent); /* Fallback */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 94, 45, 0.85), rgba(46, 158, 76, 0.8)),
                url('assets/images/gemspictures/frontphoto.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary); /* Orange Highlight */
    background: -webkit-linear-gradient(45deg, var(--primary), #ff9a6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    fill: #f4fbf6; /* Match Minty Body */
}

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

.welcome-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.welcome-content h2 span {
    color: var(--secondary);
}

.welcome-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.welcome-feature {
    text-align: center;
}

.welcome-feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    background-color: rgba(232, 104, 48, 0.1);
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.welcome-feature span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- FEATURES GRID (Why Choose GEMS) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #eefaf0;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(232, 104, 48, 0.2);
}

/* Orange/Green top accent bars for cards */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(46, 158, 76, 0.1); /* Green tint */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

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

/* --- QUICK FACTS --- */
.quick-facts {
    background-color: var(--secondary-dark); /* Changed from blue to Green */
    color: var(--white);
    padding: 4rem 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.fact-item {
    text-align: center;
}

.fact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.fact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.fact-item p {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.testimonial-card {
    background-color: #eefaf0;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content i {
    font-size: 2rem;
    color: rgba(232, 104, 48, 0.2);
    margin-bottom: 1rem;
    display: block;
}

.testimonial-content p {
    font-size: 1.05rem;
    font-style: italic;
    color: #444;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.author-info strong {
    display: block;
    color: var(--accent);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--primary);
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: #0a2412; /* Darker, cleaner base to avoid "muddy" green look */
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Add a subtle background image to CTA for richness - Using Front Photo for "Join Us" energy */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/gemspictures/frontphoto.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* Light enough to not be harsh, dark enough for white text */
    z-index: 0;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content h2 span {
    border-bottom: 3px solid rgba(255,255,255,0.3);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* --- PAGE HERO (INTERIOR PAGES) --- */
.page-hero {
    /* Using herophotoinsidecollege.jpg for a more vibrant, academic atmosphere */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
                url('assets/images/gemspictures/herophotoinsidecollege.jpg');
    background-size: cover;
    background-position: center;
    padding: 7rem 0;
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-hero h1 span {
    color: var(--primary);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* --- ABOUT PAGE STYLES --- */
.about-story-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.image-card.large {
    height: 500px; /* Taller image for about page */
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mission-card, .vision-card {
    background-color: #eefaf0;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-10px);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(232, 104, 48, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

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

.value-card {
    background-color: #eefaf0;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary);
}

.value-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

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

.special-item {
    background-color: #eefaf0;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.special-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* --- ACADEMICS PAGE --- */
.journey-container {
    position: relative;
    padding-top: 2rem;
}

/* Vertical Timeline Line */
.journey-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-light), var(--secondary), var(--secondary-light));
    opacity: 0.3;
}

.program-card {
    display: flex;
    align-items: stretch;
    background-color: var(--white);
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 6rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.program-card:nth-child(even) {
    flex-direction: row-reverse;
}

.program-image {
    flex: 1;
    min-height: 400px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Secondary level photo needs to be full sized */
#secondary .program-image {
    height: auto;
    max-height: none;
}

#secondary .program-image img {
    height: auto;
    object-fit: contain; /* Ensure the whole '4gpa.jpg' result is visible */
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-content-wrapper {
    flex: 1;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-header-new {
    margin-bottom: 2rem;
}

.program-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background-color: #f0fdf4;
    color: var(--secondary-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-header-new h3 {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.program-header-new .subtitle {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

.program-content {
    padding: 0;
}

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

.detail-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tag {
    background-color: #f4fbf6;
    color: var(--secondary-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(46, 158, 76, 0.1);
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.program-card.highlight {
    border: 2px solid var(--primary);
}

.program-card.highlight .program-badge {
    background-color: #fffaf0;
    color: var(--primary);
}

.program-card.highlight .program-icon {
    color: var(--white);
}

.see-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.see-feature {
    text-align: center;
}

.see-feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- EXTRACURRICULAR BANNERS --- */
.activities-grid-banners {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.activity-banner-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.activity-banner-card:nth-child(even) {
    flex-direction: row-reverse;
}

.activity-banner {
    flex: 1.2;
    position: relative;
    min-height: 400px;
}
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.activity-banner {
    position: relative;
    height: 400px; /* Tall banners */
    width: 100%;
}

.activity-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2.5rem;
    background: linear-gradient(transparent, rgba(26, 94, 45, 0.95));
    color: var(--white);
}

.banner-overlay h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

.activity-content-wrapper {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.activity-info {
    margin-bottom: 2rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
}

.activity-item {
    background: #f4fbf6;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(46, 158, 76, 0.05);
}

.activity-item:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 158, 76, 0.2);
}

.activity-item i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
    transition: var(--transition);
}

.activity-item:hover i {
    color: var(--white);
}

.activity-item span {
    font-weight: 700;
    font-size: 0.95rem;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Slightly more space for the map */
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-info-wrapper {
    padding: 4rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    gap: 1.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(232, 104, 48, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--accent);
}

.map-wrapper {
    height: 100%;
    min-height: 500px;
    padding: 1.5rem;
    background-color: #f8faf9;
}

.map-frame {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

.social-connect {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.social-connect h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.facebook-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    background-color: #f0f7ff;
    color: #1877F2;
    padding: 1rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid rgba(24, 119, 242, 0.1);
}

.facebook-connect-btn i {
    font-size: 1.8rem;
}

.facebook-connect-btn:hover {
    background-color: #1877F2;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.2);
}

.admission-box {
    background-color: #eefaf0;
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.admission-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 3rem 0;
    position: relative;
}

/* Connecting line for steps */
.admission-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: #eee;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
}

.step-num {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px #eee;
}

.step h4 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

/* --- FOOTER --- */
.footer {
    background-color: #1a5e2d; /* Deep GEMS Green instead of Navy */
    color: #cbd5e0;
    margin-top: auto;
}

.footer-top {
    padding: 5rem 0 3rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.footer-logo-img {
    height: 55px;
    width: 55px;
    object-fit: contain;
    background-color: white;
    border-radius: 50%;
    padding: 2px;
}

.footer .logo-main, .footer .logo-sub {
    color: var(--white);
}

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

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

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

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

.footer ul li a {
    color: #a0aec0;
}

.footer ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.credit-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.credit-link:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-bottom .container {
        justify-content: center;
        text-align: center;
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .nav-actions .btn { display: none; } /* Hide "Enroll Now" button only */
    .mobile-menu-btn { display: block; } /* Show hamburger menu */

    .nav-links {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f4fbf6;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 1001;
        gap: 1.5rem;
    }

    .nav-links.mobile-active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero h1 { font-size: 3rem; }
    .hero-stats { gap: 2rem; flex-wrap: wrap; }

    .contact-grid { grid-template-columns: 1fr; }
    .map-wrapper { height: 400px; }
    .about-story-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header { padding: 0.5rem 0; }
    .logo-img { height: 40px; }
    .logo-main { font-size: 1.2rem; }
    .logo-sub { font-size: 0.7rem; }

    .nav-actions .btn { display: none; } /* Hide "Enroll Now" button only */
    .mobile-menu-btn { display: block; } /* Show hamburger menu */

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f4fbf6;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 1001;
        gap: 1rem;
    }

    .nav-links.mobile-active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .hero { padding: 6rem 0 8rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }

    .welcome-grid { grid-template-columns: 1fr; }
    .welcome-features { grid-template-columns: 1fr; }

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

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

    .admission-steps { grid-template-columns: 1fr; }
    .admission-steps::before { display: none; }
}
@media (max-width: 900px) {
    .program-card, .program-card:nth-child(even) {
        flex-direction: column;
    }

    .journey-container::before {
        left: 20px;
    }

    .program-image {
        height: 300px;
        min-height: auto;
    }
}

/* Latest Updates Section */
.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.notices-column {
    display: flex;
    flex-direction: column;
}

.calendar-column {
    display: flex;
    flex-direction: column;
}

.calendar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* View More Buttons */
.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(232, 104, 48, 0.3);
}

.btn-view-more:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 104, 48, 0.4);
}

/* Notice Modal */
.notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(5px);
}

.notice-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(232,104,48,0.1);
    color: var(--primary);
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.modal-image-container {
    margin-bottom: 1.5rem;
}

.modal-image-container img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.modal-meta {
    margin-bottom: 1rem;
}

.modal-date {
    display: inline-block;
    background: rgba(232,104,48,0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.modal-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

/* Homepage Notices Section Styling */
.notices-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-notice-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-notice-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.home-notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.home-notice-date {
    background: rgba(232, 104, 48, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.home-notice-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.home-notice-body {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-notice-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.home-notice-card.has-image .home-notice-image {
    display: block;
}

.home-notice-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.home-notice-link:hover {
    color: var(--primary-dark);
}

/* Homepage Notices Section Header */
.section-sub-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.section-sub-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

#notices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Notice Creation Date Display */
.home-notice-created {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.8rem;
    font-style: italic;
}

.home-notice-created i {
    font-size: 0.75rem;
}

.notice-created {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
    font-style: italic;
}

.notice-created i {
    font-size: 0.8rem;
}

/* Popup Modal for School Photo */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

.popup-caption {
    text-align: center;
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.popup-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .popup-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
    
    .popup-image {
        max-height: 70vh;
    }
    
    .popup-caption {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

