/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: rgba(0, 0, 0, 0.719);
}
span {
    color: #228B22; /* green color for emphasis */
    font-weight: bold;
}

/* Center main content wrapper */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* News-Section */
.homepage-news-container{
  overflow: hidden;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0%{transform: translateY(100%);}
  100%{transform: translateY(-100%);}
}

/* Loader container */
#loader {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fffefe;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}


/* Loader container */
#loader {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 1.6s ease;
}

/* Loader content */
.loader-content {
  text-align: center;
  color: #fff;
}

.loader-logo {
  width: 100px;   /* adjust size */
  margin-bottom: 15px;
  animation: fadePulse 1.9s infinite ease-in-out;
}

/* Simple pulsing effect on logo */
@keyframes fadePulse {
  0% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.6; transform: scale(0.95); }
}

.loader-content h2 {
  margin: 15px 0 5px;
  font-size: 1.8rem;
  color: #228B22;
}

.loader-content p {
  font-size: 1rem;
  color: #ccc;
}

/* Spinner animation */
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #228B22;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 15px auto;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Hide loader */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}
/* ================= NAVBAR RESPONSIVE FIXED ================= */
/* Desktop view */
.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 300;
}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Small devices / mobile */
@media (max-width: 767px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 20;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: right;
  }

  .nav-links li:hover {
    background: orangered;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: white;
  }

  .nav-links.active {
    display: flex;
    right: 0;
  }

  .main-content,
  .container,
  section,
  .home-page-main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* =============================
   NAVIGATION BAR
============================= */
.navbar {
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: space-between; /* space between logo and links */
  align-items: center;
  padding: 15px 10px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.navbar .logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 3px;
}

/* =============================
   NAV LINKS
============================= */
.nav-links {
  list-style: none;
  display: flex;
  
  margin-left: auto;         /* push nav links to the right */
  flex-wrap: nowrap;          /* keep all on one line */
}

.nav-links li {
  position: relative;
  white-space: nowrap;         /* prevent breaking into two lines */
}

.nav-links li a {
  position: relative;
  display: inline-block;
  padding: 10px;
  text-decoration: none;
  color: rgb(226, 221, 221);
  font-weight: 500;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 10px;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

/* ==== Animated background fill ==== */
.nav-links li a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000000, #228B22);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease, opacity 0.4s ease;
  border-radius: inherit;
  z-index: -1;
}

/* Hover fill animation */
.nav-links li a:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.nav-links li a:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Active link stays filled */
.nav-links li.active a::before {
  opacity: 1;
  transform: scaleX(1);
}
.nav-links li.active a {
  color: #fff;
  font-weight: 600;
}

/* End of navigations */

.carousel {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.slide .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* semi-transparent black */
  z-index: 2; /* above image but below text */
}

/* Slide content */
.slide-content.left {
  position: absolute;
  top: 70%;
  left: 5%;
  transform: translateY(-50%);
  color: white;
  text-align: left;
  max-width: 40%;
  z-index: 3; /* above overlay */
}

.slide-content.left h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.slide-content.left p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.slide-content.left button {
  padding: 10px 25px;
  font-size: 1rem;
  background: orangered;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}
/* carousel responsiveness */
@media screen  and (max-width: 767px) {
  .slide-content.left h1 {
    font-size: 20px;
  }
  .slide-content.left {
  position: absolute;
  top: 70%;
  left: 5%;
  transform: translateY(-50%);
  color: white;
  max-width: 300px;
  z-index: 3; /* above overlay */
}
.slide-content.left button {
  padding: 10px 20px;
  font-size: 1rem;
  background: rgba(112, 38, 11, 0.74);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}
.carousel{
  height: 400px;
  width: 100%;
}
.slide-content.left p {
  font-size: 1rem;
  color: rgba(241, 239, 239, 0.685);
  margin-bottom: 20px;
}
}


/* =============================
   Updates Section
============================= */
.info-sections {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 50px;
  flex-wrap: wrap; /* responsive for smaller screens */
  padding: 0 20px; /* for small screens */
}

/* Glassmorphism Info Box */
.info-box {
  background: rgba(255, 255, 255, 0.08); /* soft glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* for Safari */
  color: #fff;
  padding: 25px 20px;
  border-radius: 15px;
  width: 400px;
  height: 200px; /* keep height fixed */
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;

  /* scrollbar for Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) rgba(0,0,0,0.05);
}

/* Scrollbar for Chrome, Edge, Safari */
.info-box::-webkit-scrollbar {
  width: 8px;
}

.info-box::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

.info-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  transition: background 0.3s;
}

.info-box::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Hover effects */
.info-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

/* Headings in Info Box */
.info-box h3 {
  font-size: 20px;
  margin: 0 0 10px 0;        /* space below heading */
  text-align: center;
  color: #32CD32;            /* professional green */
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 0 2px rgba(50, 205, 50, 0.7);
  position: relative;         /* keeps it above content flow */
  z-index: 2;                 /* ensures it doesn't overlap scrolling content */
}


/* List styling */
.info-box ul {
  list-style: disc;
  padding-left: 22px;
  line-height: 1.6;
  font-size: 15px;
  color: #e0e0e0;
}

.info-box ul li {
  margin-bottom: 6px;
}

/* Optional: subtle glow on hover */
.info-box:hover h3 {
  text-shadow: 0 0 6px rgba(50, 205, 50, 0.9);
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
  .info-sections {
    gap: 20px;
  }
  .info-box {
    width: 350px;
  }
  .main-content {
    padding: 0 8px;
  }
}

@media screen and (max-width: 768px) {
  .info-sections {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .info-box {
    width: 90%;
  }
  .main-content {
    padding: 0 4px;
  }
}

.homepage-news-container {
  height: 130px; /* fits inside info-box */
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}

.news-scroll-wrapper {
  display: flex;
  flex-direction: column;
  animation: scrollNews 20s linear infinite; /* adjust duration for speed */
}

.news-scroll-wrapper ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-scroll-wrapper li {
  padding: 6px 0;
  color: #000; /* visible text */
  font-weight: 500;
  line-height: 1.5;
}

/* Scroll from bottom to top */
@keyframes scrollNews {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-50%); } /* scroll half of total duplicated content */
}


.homepage-news-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.homepage-news-container li {
  padding: 6px 0;
  color: #000; /* visible black text */
  font-weight: 500;
  line-height: 1.5;
}

/* Smooth vertical scroll */
@keyframes scrollNews {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); } /* scroll half of duplicated list */
}



/* Vertical scroll animation */
@keyframes scrollNews {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

.news-scroll {
  display: block;
  animation: scrollNews 15s linear infinite; /* adjust speed */
}

/* END OF INFO-BOX */

/* welcoming section */
.welcome-section h2 {
  text-align: center;
  margin-top: 40px;
  font-size: 28px;
  color: #333;
}
.welcome-section {
  display: flex;
  justify-content: center;  /* center contents horizontally */
  align-items: flex-start;  /* align content at top */
  text-align: center;       /* centers the heading */
  padding: 40px 20px;
}

.welcome-text {
  max-width: 900px;         /* slightly wider for professional look */
}

.welcome-text h2 {
  margin-bottom: 25px;
  font-size: 30px;
  letter-spacing: 0.5px;    /* subtle spacing in heading */
}

.welcome-text p {
  text-align: justify;       /* justify paragraph text */
  margin-bottom: 18px;
  line-height: 1.9;          /* smooth vertical rhythm */
  word-spacing: 1.2px;       /* slightly wider words for elegance */
  letter-spacing: 0.3px;     /* subtle refinement */
  font-size: 17px;           /* professional readable size */
}




.about-section {
  display: flex;
  justify-content: center; /* horizontally center the content */
  align-items: flex-start; /* align top of image with top of text */
  gap: 60px;
  padding: 50px 20px;
  background-color: #f9f9f9;
  border-radius: 15px;
}
.welcome-image{
  width: 100%;
}
.welcome-image img {
  width: 200px;
  width: 100%;
  height: fit-content;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.about-text {
  display: flex;
  flex-direction: row;
  justify-content: flex-start; 
  gap: 10px; /* space between mission, vision, focus */
}

.mission::before{
  position: absolute;
  content: "";
  background: #d63200e0;
  left: -1px;
  top: -1px;
  width: 100px;
  height: 100px;
  border-radius: 22px;
}

.mission::after{
  position: absolute;
  content: "";
  background: #d63200e0;
  bottom: -10px;
  left: 55px;
  width: 100px;
  height: 10px;
  border-radius: 22px;
}
.vision{
  position: relative;
}
.vision::before{
  position: absolute;
  content: "";
  background: #228B22;
  bottom: -5px;
  top: -1px;
  left: -1px;
  width: 100px;
  height: 100px;
  border-radius: 22px;
}
.vision::after{
  position: absolute;
  content: "";
  background: #228B22;
  bottom: -10px;
  left: 55px;
  width: 100px;
  height: 10px;
  border-radius: 22px;
}
.focus{
  position: relative;
}
.focus::before{
  position: absolute;
  content: "";
  background: #d63200e0;
  bottom: -5px;
   top: -1px;
  left: -1px;
  width: 100px;
  height: 100px;
  border-radius: 22px;
}
.focus::after{
  position: absolute;
  content: "";
  background: #d63200e0;
  bottom: -5px;
  left: 55px;
  width: 100px;
  height: 10px;
  border-radius: 22px;
}

.about-text div {
  padding: 10px;
  border-radius: 10px;
  position: relative;
}

.icon-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  height: 280px;
  background-color: #ffffff;
  box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.2);
  gap: 10px; /* space between icon and heading */
  overflow: hidden;
}


.icon-text::before{
content: "";
position: absolute;
background: orangered;
width: 100px;
height: 400px;
transform: rotate(45deg);
left: 120px;
top: 100px;
}
.m1::before{
content: "";
position: absolute;
background: #228B22;
width: 100px;
height: 400px;
transform: rotate(45deg);
left: 120px;
top: 80px;
}
.m2::before{
content: "";
position: absolute;
background: orangered;
width: 100px;
height: 400px;
transform: rotate(45deg);
left: 120px;
top: 60px;
}

@media screen and (max-width: 767px) {
  
.icon-text::before{
content: "";
position: absolute;
background: orangered;
width: 100px;
height: 400px;
transform: rotate(45deg);
left: 180px;
top: 120px;
}
.m1::before{
content: "";
position: absolute;
background: #228B22;
width: 100px;
height: 400px;
transform: rotate(45deg);
left: 180px;
top: 120px;
}
.m2::before{
content: "";
position: absolute;
background: orangered;
width: 100px;
height: 400px;
transform: rotate(45deg);
left: 180px;
top: 120px;
}
}

.icon-text i {
  font-size: 1.3em;
  color: forestgreen; /* set icon color */
}

.about-text h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333333;
}

.about-text p {
  line-height: 1.7;
  color: #333333;
  font-size: 1em;
  margin-top: 10px;
}



.parallax-section {
  background-image: url('images/Kira secondary school/image 1.png');
  height: 500px; /* adjust height as needed */
  background-attachment: fixed; 
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden; /* ensures overlay doesn't overflow */
}

/* Overlay */
.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black overlay */
  z-index: 1;
}

/* Content inside parallax-section */
.parallax-content {
  position: relative; /* to be above the overlay */
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 40px;
  border-radius: 15px;
  max-width: 600px;
}

.parallax-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.parallax-content p {
  font-size: 1.2em;
  margin-bottom: 25px;
}

.parallax-content button {
  padding: 10px 25px;
  background-color: #228B22;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
}

.parallax-content button:hover {
  background-color: #050708;
}


/* what we offer section */
.offer-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.offer-section h2 {
  font-size: 2.0em;
  margin-bottom: 50px;
  color: #2a3036;
  text-decoration: underline;
}

.offer-container {
  display: flex;
  justify-content: center;
  gap: 50px; 
  flex-wrap: wrap; 
}

.offer-column {
  display: flex;
  flex-direction: column;
  gap: 30px; 
}

.offer-item {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.offer-item i {
  font-size: 1.3em;
  color: forestgreen;
  margin-bottom: 15px;
}

.offer-item h3 {
  margin-bottom: 10px;
  font-size: 1.0em;
  color: #24384b;
}

.offer-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
}

/* what makes us different from others */
.different-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.different-section h2 {
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #17191b;
}

.different-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* makes it responsive */
}

.different-item {
  background-color: #f9f9f9;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.different-item i {
  font-size: 2.5em;
  color: forestgreen;
  margin-bottom: 15px;
}

.different-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #740d0d;
}

.different-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #2e1e1e;
}

/* Hover effect */
.different-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* Certified Teachers section */
.teachers-section {
  padding: 50px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.teachers-section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #464b50;
}

.teachers-intro {
  font-size: 1.1em;
  color: #555;
  width: 700px;
  margin: 0 auto 50px;
}

.teachers-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  justify-items: center;
}

.teacher-card {
  background-color: #fff;
  /* padding: 20px; */
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.teacher-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.teacher-card h3 {
  font-size: 1.3em;
  color: #313335;
  margin-bottom: 8px;
}

.teacher-card p {
  font-size: 1em;
  color: #333;
}

/* Hover effect */
.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Enroll Call Section */
.parallax-enroll {
  background-image: url('images/1.jpg'); 
  min-height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}

.parallax-enroll .overlay {
  background: rgba(0,0,0,0.5);
  padding: 200px;
  /* border-radius: 15px; */
  width: 100%;
}

.parallax-enroll h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.parallax-enroll p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.cta-btn {
  background: #228B22;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #000000;
}

/* Experience and stats section */
.stats-section {
  background: url('images/experience\ background.jfif') center/cover fixed no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.stats-overlay {
  padding: 60px 20px;
  border-radius: 15px;
}

.stats-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: bold;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}

.stat-box {
  flex: 1;
  min-width: 200px;
}

.stat-box span {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: orangered;
}

.stat-box p {
  margin-top: 10px;
  font-size: 1.1rem;
}

/* gallery-section */
.gallery-section {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.gallery-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.1);
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* footer-section */
.footer {
  background: #000000;
  color: #fff;
  padding: 60px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer h3, .footer h4 {
  margin-bottom: 15px;
  color: #228B22;
}

.footer p, .footer a {
  font-size: 1.0rem;
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: #ff9800;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer-map iframe {
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  margin-top: 40px;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

.home-page-main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 64px 0 48px;
}

.home-overview-copy h2,
.home-section-heading h2 {
  margin: 8px 0 14px;
  color: #14231a;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.home-overview-copy > p:not(.section-kicker),
.home-overview-note p,
.home-pathway-card p {
  color: #5a665f;
  line-height: 1.7;
}

.home-text-link,
.home-overview-note a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: #176b35;
  font-weight: 700;
}

.home-overview-note {
  padding: 26px;
  border: 1px solid #dce9df;
  border-radius: 22px;
  background: #f2f8f3;
}

.home-overview-note > span {
  display: block;
  margin-bottom: 10px;
  color: #176b35;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-overview-note strong {
  color: #14231a;
  font-size: 1.35rem;
}

.home-pathways,
.home-gallery-section {
  padding: 32px 0 48px;
}

.home-section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.home-section-heading h2 {
  margin-bottom: 0;
}

.home-pathways-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-pathway-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid #e1e9e3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 65, 38, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(23, 65, 38, 0.12);
}

.home-pathway-card > i {
  color: #228b45;
  font-size: 1.5rem;
}

.home-pathway-card h3 {
  margin: 16px 0 6px;
  color: #14231a;
  font-size: 1.2rem;
}

.home-pathway-card p {
  margin: 0;
}

.home-pathway-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: #176b35;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-gallery-section .gallery-container {
  margin: 0;
}

@media (max-width: 760px) {
  .home-overview {
    grid-template-columns: 1fr;
    padding: 42px 0 24px;
  }

  .home-pathways-grid {
    grid-template-columns: 1fr;
  }

  .home-pathway-card {
    min-height: 0;
  }
}

/* ================= RESPONSIVE MEDIA QUERIES FIXED ================= */

/* Tablets & smaller screens */
@media (max-width: 901px) {
  header { height: 600px; }
  .header-content { top: 40%; max-width: 400px; }
  .header-content h1 { font-size: 29px; }
  .header-content p { font-size: 0.95rem; }

  /* Info boxes & sections scale */
  .info-boxes { gap: 30px; }
  .box { width: 100%; }
  .offer-container, .different-container, .stats-container, .teachers-container { gap: 20px; }

  .about-section { flex-direction: column; gap: 30px; }
  .welcome-image img { height: 280px; }
  .about-text div { padding: 8px; }

  /* Parallax sections */
  .parallax-section { background-attachment: scroll; height: 350px; }
  .parallax-content h2 { font-size: 2rem; }
  .parallax-content p { font-size: 1rem; }

  /* Enroll section fix */
  .parallax-enroll .overlay { padding: 60px 20px; } /* was 200px */
}

/* Small devices / portrait phones */
@media (max-width: 767px) {
  header { height: 500px; }
  .header-content { top: 35%; left: 50%; transform: translate(-50%, -50%); padding: 0 15px; }
  .header-content h1 { font-size: 22px; }
  .header-content p { font-size: 0.85rem; }

  /* Navbar hamburger */
  .nav-links { 
    display: none; 
    flex-direction: column; 
    background: rgba(0,0,0,0.85);
    position: absolute;
    top: 65px;
    right: 15px;
    width: 180px;
    border-radius: 8px;
    padding: 10px 0;
  }
  .nav-links li { margin: 10px 0; text-align: center; }
  .navbar .hamburger { display: block; cursor: pointer; font-size: 28px; color: white; }

  /* Info boxes scaling */
  .info-boxes { flex-direction: column; gap: 15px; }
  .box { width: 100%; padding: 20px; }
  .offer-container, .different-container, .stats-container, .teachers-container { flex-direction: column; gap: 15px; }

  /* About section */
  .about-section { gap: 20px; padding: 20px; }
  .welcome-image img { height: 220px; }

  /* Parallax sections */
  .parallax-section, .parallax-enroll { background-attachment: scroll; }
  .parallax-content { padding: 20px; }
  .parallax-content h2 { font-size: 1.6rem; }
  .parallax-content p { font-size: 0.9rem; }

  /* Enroll section fix */
  .parallax-enroll .overlay { padding: 60px 20px; }

  .cta-btn, button { font-size: 0.85rem; padding: 8px 18px; }
  .gallery-container { grid-template-columns: 1fr; }
  .stats-section h2 { font-size: 1.8rem; }
  .stat-box span { font-size: 1.8rem; }
  .footer p, .footer a { font-size: 0.85rem; }
}

/* Extra small phones */
@media (max-width: 575px) {
  header { height: 450px; }
  .header-content h1 { font-size: 20px; }
  .header-content p { font-size: 0.8rem; }

  /* Navbar */
  .nav-links { width: 150px; right: 10px; top: 60px; }
  .hamburger { font-size: 26px; }

  /* Info boxes scaling */
  .box, .offer-item, .different-item, .stat-box, .teacher-card, .info-box { padding: 15px; }

  /* About section */
  .about-section { padding: 15px; }
  .welcome-image img { height: 180px; }

  /* Parallax sections */
  .parallax-content { padding: 15px; }
  .parallax-content h2 { font-size: 1.4rem; }
  .parallax-content p { font-size: 0.85rem; }

  /* Enroll section fix */
  .parallax-enroll .overlay { padding: 40px 15px; }

  .cta-btn, button { font-size: 0.8rem; padding: 6px 15px; }
}

/* ================= INFO-BOXES FIT HEADER ================= */
header {
  position: relative; /* keep as is */
}

/* Info-boxes inside header */
.info-boxes {
  position: absolute;
  bottom: 15px; /* keep them above header bottom */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px; /* smaller gap to fit */
  flex-wrap: nowrap; /* keep in one line */
  z-index: 10;
  max-width: 95%; /* ensure it doesn’t overflow */
  overflow-x: auto; /* allow scrolling if needed */
}

.info-boxes .box {
  flex: 0 0 auto; /* prevent shrinking */
  min-width: 100px; /* smaller width on small devices */
  max-width: 180px; /* maintain reasonable size */
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  color: white;
  border-radius: 12px;
  text-align: center;
}

/* Small devices adjustments */
@media (max-width: 767px) {
  .info-boxes { gap: 8px; }
  .info-boxes .box { min-width: 90px; max-width: 140px; padding: 8px; font-size: 0.85rem; }
}

@media (max-width: 575px) {
  .info-boxes { gap: 6px; }
  .info-boxes .box { min-width: 80px; max-width: 120px; padding: 6px; font-size: 0.8rem; }
}

/* ================= INFO-BOXES IN HEADER (COLUMN ON SMALL DEVICES) ================= */
header {
  position: relative; /* keep header as is */
}
.header-content {
  position: relative;
  top: 40%;
  left: 30%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  padding: 0 15px; /* add horizontal padding for small screens */
}

/* Info-boxes inside header */
.info-boxes {
  position: absolute;
  /* top: 0.21px; */
  width: fit-content;
  height: fit-content;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row; /* stack vertically */
  align-items: center;    /* center horizontally */
  gap: 90px;              /* spacing between boxes */
  z-index: 10;
  max-width: 90%;         /* prevent overflow */
}

.info-boxes .box {
  width: 200px; 
  height: 140px;          /* smaller width to fit nicely */
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  color: white;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.info-boxes .box:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

/* Small devices adjustments */
@media (max-width: 767px) {
  .info-boxes .box { width: 140px; padding: 10px; font-size: 0.85rem; }
  .info-boxes { gap: 10px; }
}

@media (max-width: 575px) {
  .info-boxes .box { width: 120px; padding: 8px; font-size: 0.8rem; }
  .info-boxes { gap: 8px; }
}

.about{
  padding: 30px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.about-content{
  width: 100%;
  padding: 50px;
 line-height: 28px;
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.about-content h2{
  font-size: 25px;
  color: orangered;
}
.image{
  margin-left: 30px;
  padding: 20px;
}
.img-responsive{
 margin-left: 50px;
}

.hm{
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 100%;
  justify-content: space-between;
  line-height: 30px;
  background: #f3f2f2;
}
 .hm-remarks {
  line-height: 1.6; /* balanced spacing */
  color: rgba(0, 0, 0, 0.85);
  font-family: 'Times New Roman', Times, serif;
  word-spacing: 1px;
  letter-spacing: 0.3px;
  padding-right: 20px;
  text-align: justify;   /* 🔹 justify both sides */
  text-justify: inter-word; /* improve word spacing for justification */
}

.hm-remarks p {
  margin: 12px 0; /* reduce gaps between paragraphs */
}

.read-more-container {
  max-height: 240px;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

#toggle {
  display: none;
}

#toggle:checked ~ .read-more-container {
  max-height: 2000px;
}

.read-more-label {
  display: inline-block;
  margin-top: 10px;
  color: orangered;
  cursor: pointer;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

/* Change label text when expanded */
#toggle ~ .read-more-label::after {
  content: "Read more";
}
#toggle:checked ~ .read-more-label::after {
  content: "Read less";
}

.hm-remarks h2{
  font-size: 30px;
  color: orangered;
}
.mask-img{
  -webkit-mask-image: url(images/map.png);
  mask-image: url(images/map.png);
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}
/* RESPONSIVENESS ON MEDIA QUERIE */

@media screen and (max-width:768px) {
  .hm{
    flex-direction: column;
    padding: 10px;
  }
  .about{
    flex-direction: column;
  }
  .image{
    margin-left: 0;
  }
  .about-text{
    flex-direction: column;
    gap: 40px;
  }
  .teacher-card{
    width: 100%;
    justify-content: center;
  }
  .teachers-intro{
    width: 100%;
  }
  .teacher-card img {
  height: 500px;
}
    .welcome-image{
      height: 600px;
    }
  .welcome-image img{
    width: 100%;
   height: 100%;
   object-fit: cover;
  }
  .different-container{
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }
}


/* Scroll reveal animations */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(30px); /* move down initially */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-down {
  opacity: 0;
  transform: translateY(-30px); /* move up initially */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-up.show,
.scroll-fade-down.show {
  opacity: 1;
  transform: translateY(0); /* final position */
}
