:root {
    --blue: #0b1c3d;
    --yellow: #f5b400;
    --light: #f9f9f9;
    --dark: #111;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: var(--light);
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   NAVBAR
========================= */
nav {
    background: var(--blue);
    padding: 16px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 55px;
}

.school-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

/* NAV LINKS - Desktop */
.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 10px 18px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    overflow: hidden;
}

.nav-links a span {
    position: relative;
    z-index: 1;
}

/* Animated background */
.nav-links a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 0;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleX(1);
}

.nav-links a:hover span,
.nav-links a.active span {
    color: var(--blue);
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   MOBILE NAV
========================= */
@media (max-width: 900px) {
    nav {
        padding: 14px 25px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none; /* hidden initially */
        flex-direction: column;
        align-items: center;
        gap: 15px;
        background: var(--blue);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 0;
        z-index: 1500;
        transition: all 0.4s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .school-name {
        font-size: 0.9rem;
    }
}

/* =========================
   SLIDER
========================= */
.slider {
    position: relative;
    height: 85vh;
    overflow: hidden;
}
/* Slider text default */
.slider .slide-content h1 {
    font-size: 48px;  /* desktop default */
    line-height: 1.2;
    margin-bottom: 15px;
}

.slider .slide-content p {
    font-size: 20px;  /* desktop default */
    line-height: 1.5;
}

/* Adjust slider content for smaller screens */
@media (max-width: 768px) {
    .slider .slide-content h1 {
        font-size: 28px; /* smaller, readable on mobile */
    }

    .slider .slide-content p {
        font-size: 16px; /* smaller, readable on mobile */
    }

    .slider .slide-content {
        padding: 20px; /* prevent text from touching edges */
        text-align: center; /* center-align on mobile */
    }
}

@media (max-width: 480px) {
    .slider .slide-content h1 {
        font-size: 22px; /* even smaller for very small screens */
    }

    .slider .slide-content p {
        font-size: 14px;
    }
}


.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 60px;
    background: linear-gradient(120deg, rgba(11,28,61,0.88), rgba(11,28,61,0.65));
    color: #fff;
    position: relative;
}

.slide-content > div {
    position: relative;
    z-index: 3;
}

.slide-content h1 {
    font-size: 3.3rem;
    max-width: 700px;
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6), 0 0 20px rgba(245,180,0,0.45);
}

.slide-content p {
    font-size: 1.2rem;
    margin-top: 15px;
    color: #f5f5f5;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.slide-content a {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--yellow), #ffcc33);
    color: var(--blue);
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-content a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* SLIDER DOTS */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
}

.slider-dots span.active {
    background: var(--yellow);
    opacity: 1;
}

/* =========================
   HERO & HERO-SECONDARY
========================= */
.hero {
    background: linear-gradient(rgba(11,28,61,.85), rgba(11,28,61,.85)), url("../images/hero.jpg") center/cover;
    height: 85vh;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero p {
    max-width: 600px;
    font-size: 1.1rem;
}

.hero a {
    display: inline-block;
    margin-top: 25px;
    background: var(--yellow);
    color: var(--blue);
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* HERO SECONDARY */
.hero-secondary {
    background: #f9f9f9;
    padding: 60px 40px;
}

.hero-secondary .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.hero-secondary .hero-text {
    flex: 1 1 350px;
}

.hero-secondary .hero-text h1 {
    color: var(--blue);
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.hero-secondary .hero-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #333;
}

.hero-secondary .hero-text a {
    display: inline-block;
    background: var(--yellow);
    color: var(--blue);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-secondary .hero-text a:hover {
    background: var(--blue);
    color: var(--yellow);
}

.hero-secondary .hero-image {
    flex: 1 1 300px;
    text-align: center;
}

.hero-secondary .hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =========================
   SECTIONS / CORE VALUES
========================= */
section {
    padding: 70px 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--blue);
    font-size: 2.3rem;
}

.section-title span {
    color: var(--yellow);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    text-align: center;
}

.card h3 {
    color: var(--blue);
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* CORE VALUES SPECIFIC */
.core-values {
    background: #f0f8ff;
    padding: 80px 20px;
        clear: both;
}

.core-values .card i {
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 15px;
}

.core-values .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}



/* =========================
   FOOTER
========================= */
footer {
    background: var(--blue);
    color: #fff;
    padding: 100px 60px;
}

footer a {
    color: var(--yellow);
    text-decoration: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}
.footer-bottom{
    margin-top:60px;
}
/* =========================
   REVEAL ANIMATION
========================= */
.reveal {
    opacity: 1;
    transform: translateY(60px);
    transition: all 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 900px) {
    /* Mobile nav */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: var(--blue);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 0;
        z-index: 1500;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-secondary .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-secondary .hero-text h1 {
        font-size: 2rem;
    }

    .principal {
        flex-direction: column;
        text-align: center;
    }

    .principal img {
        max-width: 300px;
        margin: auto;
    }
}
/* PRINCIPAL SECTION - TWO COLUMNS */
.principal-section {
    padding: 70px 60px;
}

.principal-section .principal-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.principal-section .principal-image {
    flex: 1 1 300px; /* image column */
    text-align: center;
}

.principal-section .principal-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.principal-section .principal-text {
    flex: 1 1 400px; /* text column */
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .principal-section .principal-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .principal-section .principal-text {
        font-size: 1rem;
    }
}
/* Gallery Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

/* Each card */
.card.about-image {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card.about-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

/* Hover effect */
.card.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card.about-image:hover img {
  transform: scale(1.05);
}

/* Optional: captions if you want */
.card.about-image h3, 
.card.about-image p {
  padding: 10px 15px;
  text-align: center;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 20px auto;
}

.story-text,
.story-image {
    flex: 1;
}

.story-image {
    text-align: center; /* safer than justify-content */
}

.story-image img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
}
@media (max-width: 900px) {
    .story-content {
        position: relative;
        display: block; /* image becomes block */
    }

    .story-image {
        position: relative;
    }

    .story-image img {
        width: 100%;
        border-radius: 16px;
    }

    .story-text {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        text-align: center;
        background: rgba(11, 28, 61, 0.6); /* readable overlay */
        color: #fff;
        border-radius: 16px;
        margin-bottom:5px;
    }

    .story-text p {
        max-width: 600px;
        font-size: 1rem;
        line-height: 1.6;
    }
}
@media (max-width: 900px) {

    /* HERO (About page) */
    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    /* PRINCIPAL SECTION */
    .principal-content {
        flex-direction: column;
    }

    .principal-text {
        order: 1;
    }

    .principal-image {
        order: 2;
    }

}

