* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background: #f4f4f4;
    color: #333;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
    color: white;
}
/* school motto hover  aspect*/
.motto-shine{
    font-size:32px;
    font-weight:600;
    text-align:center;
    margin:50px 0;
    color:#2e7d32;
    position:relative;
    display:inline-block;
    overflow:hidden;
}

/* light beam */

.motto-shine::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.8),
        transparent
    );
    transition:0.7s;
}

/* hover effect */

.motto-shine:hover::before{
    left:100%;
}

/* slight glow */

.motto-shine:hover{
    text-shadow:
        0 0 5px #ffd700,
        0 0 10px #ffd700;
}
.motto-shine{
font-family:'Playfair Display', serif;
}
/* NAVBAR */
header {
    background: #800000;
    font-style: normal;
    color: white;
}

.top-bar {
    display: flex;
    align-items: center;
    padding: 15px 10%;
}

.logo-img {
    width: 70px;
    margin-right: 15px;
}

.motto {
    font-style: italic;
    color: #90ee90;
}
.header {
    position: sticky;
    top: 0;
    background: #800000;
    z-index: 1000;
}
nav {
    background: #008000;
    position: sticky;
    top: 0;
}

.navbar {
    position: relative; /* make navbar a stacking context */
    z-index: 1000;      /* ensure it stays above hero */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: #208b40;
}

.logo {
    color: white;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
.menu-toggle{
    display: inline;
}
.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}
.navbar ul{
    list-style:none;
    display:flex;
    justify-content:center;
    background:#2e7d32;
    padding:0;
    margin:0;
}

.navbar li{
    margin:0 15px;
}

.navbar a{
    text-decoration:none;
    color:white;
    font-size:18px;
    padding:15px 20px;
    display:block;
    transition:0.3s;
}

/* Hover effect */
.navbar a:hover{
    background:white;
    color:#2e7d32;
    border-radius:5px;
}

/* HERO */
/* HERO SECTION */

.hero {
    position: relative;
    background: url("/images/frontclassrooms.jpg") center/cover no-repeat;
     min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

/* Dark Overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 8, 8, 0.6);
}

/* Content stays above overlay */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

/* Main Heading */
.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Tagline */
.hero-tagline {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Long Introduction Paragraphs */
.hero-introduction p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Buttons */
.hero-buttons {
    margin-top: 25px;
}

/* Primary Button */
.btn-primary {
    background: #006400;
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #008000;
    transform: translateY(-3px);
}

/* Secondary Button */
.btn-secondary {
    background: white;
    color: #800000;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #800000;
    color: white;
}
/* stats counter*/
.stats {
  background: #006400;
  color: white;
  padding: 40px 5%;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.stat h2 {
  font-size: 40px;
  font-weight: bold;
}

.stat p {
  margin-top: 10px;
  font-size: 18px;
}


/* FEATURES */
.features {
    padding: 80px 10%;
    text-align: center;
    background: white;
}

.features h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #800000;
}

.feature-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}
/* card css homepage */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.card {
  background: #f9f9f9;
  padding: 20px;
  border-left: 4px solid #006400;
  color: #000;   
}

.card-link {
    text-decoration: none;
    color: inherit;
}
.card-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background: #006400;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.card-btn:hover {
  background: #004d00;
}
.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover .card {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #006400;
    width: 300px;
}
/* font styling for cards */
.card h3 {
  color: #006400;
  margin-bottom: 10px;
}

.card p {
  color: #333;
}
.home-features .card h3,
.home-features .card p {
    color: #000;
}


/* CTA */
.cta {
    background: #006400;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

/* FOOTER */
.footer {
    background: #800000;
    color: white;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 40px 8%;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background: #660000;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {

    .nav-links {
        flex-direction: column;
        background: #800000;
        position: absolute;
        top: 60px;
        left: 0;
        width: 120px;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
    .nav-links {
    transition: max-height 0.3s ease;
    overflow: hidden;
    max-height: 0;
}

.nav-links.active {
    max-height: 500px; /* or enough for all menu items */
}
/* HOVER EFFECT FOR NAV LINKS */
.nav-links li a {
    transition: all 0.3s ease; /* smooth transition */
}

.nav-links li a:hover {
    background-color: #006400;  /* green background on hover */
    color: white;               /* text color */
    padding: 8px 12px;          /* optional: slight padding */
    border-radius: 5px;         /* rounded corners */
}

    .menu-toggle {
        display: block;
    }

    .feature-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero h1 {
        font-size: 26px;
    }
}
/* WHATSAPP FLOAT */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.whatsapp img {
    width: 40px;
}
/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}
/* new gallery css */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.header.scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Modal Styles */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal iframe {
  width: 90%;
  height: 90%;
  margin: 5% auto;
  display: block;
  border: none;
  border-radius: 8px;
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal .close:hover {
  color: #ccc;
}
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
/* WHATSAPP FLOAT */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.whatsapp img {
    width: 40px;
}
.fa-location-dot {
  color: #4CAF50;
  margin-right: 8px;
}
/* stafffcss*/
.photo-card {
  text-align: center;
}

.photo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-card h4 {
  margin-top: 10px;
  color: #800000;
}
/* ===== PAGE HERO facilities part  ===== */
.page-hero {
    position: relative;
    height: 60vh;
    background: url("/images/teachersvacation.jpeg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.page-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 45px;
}
/* ===== BOARDING LIFE SECTION ===== */
.boarding-life {
    padding: 80px 20px;
    background: #f9f9f9; /* light background for contrast */
}

.boarding-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
    flex-wrap: wrap;
}

.boarding-text {
    flex: 1;
    min-width: 300px;
}

.boarding-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #800000; /* maroon */
}

.boarding-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

.boarding-image {
    flex: 1;
    min-width: 300px;
}

.boarding-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Fade-in scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .boarding-container {
        flex-direction: column;
    }

    .boarding-text h2 {
        font-size: 28px;
    }
}

/* ===== FACILITIES SECTION ===== */
.facilities {
    position: relative;
    padding: 100px 20px;
    background: url("/images/teachersvacation.jpeg") center/cover no-repeat;
    color: white;
    text-align: center;
}

.facilities .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.facilities-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-subtitle {
    margin-bottom: 60px;
    color: #ddd;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.facility-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    padding: 35px 25px;
    border-radius: 15px;
    transition: 0.4s;
}

.facility-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
}

.facility-icon {
    font-size: 35px;
    margin-bottom: 15px;
    color: #00ff88;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #006400, #003300);
    color: white;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: white;
    color: #006400;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #00ff88;
    color: black;
}

/* ===== SCROLL ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}
/* RESULTS CSS */

/* ===== RESULTS SECTION ===== */

#results {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f4f6f9, #ffffff);
}

#results h1 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 40px;
    color: #222;
    position: relative;
}

#results h1::after {
    content: "";
    width: 80px;
    height: 4px;
    background-color: #006400;
    display: block;
    margin: 12px auto 0;
    border-radius: 4px;
}
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}
.results-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.results-card h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
}

.results-card p {
    color: #555;
    font-size: 15px;
}

/* Hover effect */
.results-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.results-card.large-card {
    grid-column: 1 / -1;
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.pdf-container iframe {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

.pdf-download {
    margin-top: 18px;
}

.pdf-download a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #006400;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s ease;
}

.pdf-download a:hover {
    background-color: #004d00;
}
body {
    font-family: 'Poppins', sans-serif;
}
#results {
    padding: 70px 20px;
    background: linear-gradient(135deg, #f5f7fa, #e4ecf5);
}
#results {
    position: relative;
    padding: 70px 20px;
    background: 
              url("/images/graduants .jpeg");
    background-size: cover;
    background-position: center;
}
.staff-structure{
    padding:70px 20px;
    text-align:center;
    background:linear-gradient(135deg,#f5f7fa,#e8f5e9);
}

.staff-structure h2{
    margin-bottom:50px;
    font-size:32px;
}

/* chart */

.org ul{
    padding-top:20px;
    position:relative;
}

.org li{
    float:left;
    text-align:center;
    list-style-type:none;
    position:relative;
    padding:20px 10px 0 10px;
}

/* connecting lines */

.org li::before, .org li::after{
    content:'';
    position:absolute;
    top:0;
    right:50%;
    border-top:2px solid #ccc;
    width:50%;
    height:20px;
}

.org li::after{
    right:auto;
    left:50%;
    border-left:2px solid #ccc;
}

.org li:only-child::after,
.org li:only-child::before{
    display:none;
}

.org li:first-child::before{
    border:none;
}

.org li:last-child::after{
    border:none;
}

/* role boxes */

.box{
    padding:12px 20px;
    background:white;
    border-radius:8px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    display:inline-block;
    min-width:180px;
    transition:0.3s;
}

/* principal highlight */

.main{
    background:#2e7d32;
    color:white;
    font-weight:bold;
}

/* hover effect */

.box:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}
.box{
    padding:15px 20px;
    background:white;
    border-radius:8px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    min-width:200px;
    display:flex;
    flex-direction:column;
}

.role{
    font-size:13px;
    color:#777;
}

.name{
    font-size:16px;
    font-weight:600;
    margin-top:4px;
}

.main{
    background:#2e7d32;
    color:white;
}

.main .role{
    color:#e8f5e9;
}
.staff-photo-container{
    display:flex;
    justify-content:center;
    margin-bottom:50px;
}

.staff-photo-container img{
    width:100%;
    max-width:750px;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}
.staff-caption{
    margin-top:10px;
    color:#666;
    font-style:italic;
}