/**
* Template Name: Mentor
* Template URL: https://bootstrapmade.com/mentor-free-education-bootstrap-theme/
* Updated: Jul 07 2025 with Bootstrap v5.3.7
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Open Sans",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #37423b; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #012f03; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #dee1de;  /* The default color of the main navmenu links */
  --nav-hover-color: #112d11; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #272828; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #5fcf80; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}
 
/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/

@font-face {
    font-family: 'OldEnglishFive';
    src: url('../fonts/OldEnglishFive.woff2') format('woff2'),
         url('../fonts/OldEnglishFive.woff') format('woff'),
         url('../fonts/OldEnglishFive.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* improves loading performance */
}

.old-english {
  font-family: 'OldEnglishFive', 'Old English Text MT', serif;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Pulsating Play Button
------------------------------*/
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 5px 0;
  transition: all 0.5s;
  z-index: 997;
  background: linear-gradient(to right, #012f03, #2da52b);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 45px;
  margin-left: 12px;
  margin-top: 5px;
  margin-bottom: 5px;
  opacity: 0.75;
}

.header .logo h1 {
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  letter-spacing:n 1px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--nav-color);
  background: var(--accent-color);
  font-size: 15px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .btn-getstarted {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 30px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# News and announcements
--------------------------------------------------------------*/
.news-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;                         /* increased gap for breathing room */
  padding: 60px 50px;
  background-color: #ffffff;
  margin: 35px auto;
  max-width: 1600px;                  /* wider overall section */
  justify-content: center;
}

/* ---------- LEFT SLIDER – ELEGANT NEWS PREVIEW ---------- */
.main-articles {
  flex: 1 1 600px;                     /* bigger base width */
  min-width: 380px;
  max-width: 700px;                    /* increased max width */
}

.slider {
  background: linear-gradient(145deg, #519950, #0e3b0a); /* warm light to dark green */
  border-radius: 15px;
  padding: 20px 25px 15px;             /* reduced top/bottom padding */
  box-shadow: 0 15px 35px rgba(0, 20, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.slides {
  position: relative;
  min-height: 420px;                   /* increased to fit taller image */
  flex: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide img {
  width: 100%;
  height: 280px;                       /* longer images */
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 18px;
}

.slide h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #acb7a9;
  line-height: 1.4;
  margin: 0 0 6px 0;
  padding: 0;
}

.news-meta {
  font-size: 0.9rem;
  color: #8e9b8e;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-excerpt {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #a1b3a1;
  margin-bottom: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Arrow buttons */
.arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  font-size: 26px;
  color: #1e4a2a;
  cursor: pointer;
  transition: 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 1px solid #ddd;
}

.arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 18px rgba(0, 20, 0, 0.15);
  border-color: #9ba89b;
}

.arrow.left { left: 15px; }
.arrow.right { right: 15px; }

/* Dots */
.dots {
  text-align: center;
  margin-top: 15px;                    /* reduced margin */
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #6e8b75;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid transparent;
}

.dot.active {
  background: #c2cfc2;
  transform: scale(1.3);
}

/* ---------- RIGHT SIDEBAR – slightly larger to match ---------- */
.latest-news {
  flex: 1 1 380px;                     /* increased base width */
  max-width: 450px;
  background: #f8fff4;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 15px 30px rgba(0, 20, 0, 0.05);
  border: 1px solid #d4e6d4;
  height: 100%;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #9bc09b #e0f0e0;
}

/* Scrollbar styles (unchanged) */
.latest-news::-webkit-scrollbar {
  width: 8px;
}
.latest-news::-webkit-scrollbar-track {
  background: #e0f0e0;
  border-radius: 8px;
}
.latest-news::-webkit-scrollbar-thumb {
  background: #9bc09b;
  border-radius: 8px;
}

.sidebar-heading {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1e4a2a;
  margin: 0 0 25px 0;
  border-left: 6px solid #3f7a3f;
  padding-left: 18px;
  line-height: 1.3;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  transition: 0.2s;
  border: 1px solid #d0e0d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.news-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 18px rgba(0, 30, 0, 0.1);
  border-color: #7ba07b;
}

.news-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a3b1a;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.preview {
  font-size: 0.95rem;
  color: #3a5a3a;
  line-height: 1.6;
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .news-section {
    padding: 45px;
}

.latest-news {
        height: 550px;
        border-radius: 10px;
}

.sidebar-heading {
    font-size: 25px;
}
}

/*--------------------------------------------------------------
# Calendar section
--------------------------------------------------------------*/
.calendar-section {
  background-image: radial-gradient(#7dc17d, #3c693d, #13250f);
  background-size: cover;
  background-position: center;
  padding: 2rem 1rem;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-title {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 600;
  color: #e6e6e6;
  margin: 0 0 2.5rem 0;
  margin-top: 2rem;
  padding: 0.2rem 2rem;
  letter-spacing: 2px;
  text-align: center;
}

.calendar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Individual month card */
.month {
  background: rgba(240, 255, 240, 0.9);
  backdrop-filter: blur(2px);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  flex: 1 1 260px;
  box-shadow: 0 8px 20px rgba(0, 40, 0, 0.2);
  border: 1px solid #b7e0b0;
}

.month h3 {
  text-align: center;
  margin: 0 0 1rem 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #1c4b2d;
  font-weight: 500;
  letter-spacing: 1px;
  border-bottom: 2px solid #7bb86c;
  padding-bottom: 0.5rem;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Segoe UI', sans-serif;
  color: #2e6b3e;
  font-size: 0.9rem;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2f0da;
  border-radius: 8px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: #1f3b2a;
  cursor: default;
  position: relative;
  transition: background 0.15s;
}

/* Highlighted dates */
.day.has-event {
  background: #7ec850;
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(60, 120, 30, 0.3);
}

.day.has-event:hover {
  background: #6abf40;
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f4f2b;
  color: #f0ffe0;
  padding: 6px 12px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: normal;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 4px 8px rgba(0,30,0,0.3);
  border: 1px solid #b0e0a0;
}

.day.has-event:hover .tooltip,
.day.has-event.show-tooltip .tooltip {
  opacity: 1;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .calendar-title {
    font-size: 1.8rem;
    padding: 0.2rem 1rem;
  }
  .tooltip {
    font-size: 0.7rem;
    padding: 4px 8px;
    white-space: normal;
    min-width: 80px;
    text-align: center;
  }
  .month {
    padding: 1rem 0.5rem;
  }
}

/*--------------------------------------------------------------
# Facilities – Warm Green Theme, No Glow, Clean Cards
--------------------------------------------------------------*/
.facilities-section {
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(145deg, #5c915f, #082e0a); 
  margin: 40px auto;
  max-width: 1400px;
  box-shadow: 0 10px 30px rgba(0, 20, 0, 0.3);
}

.facilities-title {
  font-size: 2.9rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Slider container */
.facilities-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
  padding: 15px 0;
}

/* Track – no animation in CSS (handled by JS) */
.facilities-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  padding: 5px 0;
}

.facility-card {
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
  opacity: 0.6;  /* slight transparency */
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  opacity: 1;    /* fully opaque on hover */
}

.facility-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.facility-card:hover img {
  transform: scale(1.03);
}

/* Bottom label – lighter green for contrast */
.facility-label {
  padding: 10px;
  background: #142914;                 /* lighter, warm green */
  color: #ffffff;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  border-top: 1px solid #4b8b4b;
}

/* View All button */
.facilities-btn {
  display: inline-block;
  text-decoration: none;
  padding: 16px 45px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.2rem;
  background: #143906;
  color: #cbdbc6;
  transition: all 0.25s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.facilities-btn:hover {
  background: #f5fff5;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .facilities-section {
    padding: 50px 15px;
  }
  .facilities-title {
    font-size: 2.2rem;
  }
  .facility-card {
    min-width: 240px;
  }
  .facility-card img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .facility-card {
    min-width: 200px;
  }
  .facility-card img {
    height: 160px;
  }
  .facility-label {
    font-size: 1rem;
    padding: 12px;
  }
  .facilities-btn {
    padding: 14px 35px;
    font-size: 1rem;
  }
}

/*--------------------------------------------------------------
# Facilities Section (sa About me section)
--------------------------------------------------------------*/
/* Facilities Gallery – Uniform Grid, Single Filter, Enhanced Design */
.fac-gallery-section {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fff9;
    padding: 60px 20px;
    min-height: 100vh;
}

.fac-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.fac-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.fac-title {
    color: #0a3b1a;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fac-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #d4e6d4;
}

.fac-filter-label {
    font-weight: 600;
    color: #0a3b1a;
    font-size: 1rem;
}

.fac-filter-dropdown {
    padding: 8px 25px 8px 15px;
    border: 2px solid #2e7d32;
    border-radius: 30px;
    background-color: white;
    color: #0a3b1a;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.fac-filter-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* Decorative divider under header */
.fac-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0a3b1a, #7fb07f, #0a3b1a);
    margin: 30px 0 40px;
    border-radius: 2px;
}

/* Gallery Grid – uniform cards */
.fac-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.fac-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 30, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #d0e6d0;
}

.fac-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 60, 0, 0.15);
}

.fac-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.fac-item-label {
    padding: 15px 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0a3b1a;
    text-align: center;
    background: #f8fff9;
    border-top: 1px solid #e0f0e0;
}

/* Modal */
.fac-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 20, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.fac-modal-content {
    position: relative;
    background: white;
    max-width: 800px;
    width: 90%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fac-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 20pxs;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 30;
}

.fac-modal-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Modal navigation arrows – enhanced */
.fac-modal-prev,
.fac-modal-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 20px;
    font-size: 30px;
    font-weight: 400;
    color: #0a3b1a;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    backdrop-filter: blur(2px);
}

.fac-modal-prev {
    left: 20px;
}

.fac-modal-next {
    right: 20px;
}

.fac-modal-prev:hover,
.fac-modal-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: #1a5a1a;
}

.fac-modal-prev:active,
.fac-modal-next:active {
    transform: translateY(-50%) scale(0.95);
}

.fac-modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.fac-modal-info {
    padding: 20px 25px;
    background: white;
}

.fac-modal-info h3 {
    margin: 0 0 8px 0;
    color: #0a3b1a;
    font-size: 1.8rem;
}

.fac-modal-info p {
    margin: 0;
    color: #1a3b2e;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive – Mobile */
@media (max-width: 700px) {
    .fac-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px; /* space between title and filter */
    }

    .fac-filter-wrapper {
        flex-direction: column;   /* stack label above dropdown */
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .fac-filter-label {
        white-space: normal;      /* allow wrapping if needed */
        font-size: 0.95rem;
    }

    .fac-filter-dropdown {
        width: 100%;              /* full width */
        min-width: unset;         /* remove minimum width constraint */
        padding: 12px 15px;       /* slightly larger touch target */
    }

    .fac-gallery {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .fac-modal-prev,
    .fac-modal-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .fac-modal-prev { left: 10px; }
    .fac-modal-next { right: 10px; }
}

/*--------------------------------------------------------------
# Institutional Personnel (BOT, ADMIN, FACULTY) Shared Styles
--------------------------------------------------------------*/
/* Personnel Section – Full‑Screen Profile with Background Circles */
.personnel-section {
    min-height: 110vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #eaf3ea, #ccddbd);
    overflow: hidden;
    padding: 0 5%;
    padding-bottom: 70px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Faint green circular background elements */
.personnel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 30%, rgba(100, 150, 100, 0.749) 0%, transparent 25%),
                radial-gradient(circle at 90% 70%, rgba(80, 140, 80, 0.518) 0%, transparent 30%),
                radial-gradient(circle at 40% 80%, rgba(120, 180, 120, 0.498) 0%, transparent 40%),
                radial-gradient(circle at 70% 20%, rgba(90, 160, 90, 0.527) 0%, transparent 35%);
    pointer-events: none;
    z-index: 1;
}

.personnel-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

/* Left Column */
.personnel-info {
    flex: 1 1 400px;
    max-width: 600px;
    transition: opacity 0.3s ease;
}

.personnel-info.fade-out {
    opacity: 0;
}

.personnel-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #0a3b1a;
    margin-bottom: 10px;
    line-height: 1.1;
}

.personnel-position {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: #2e7d32;
    margin-bottom: 25px;
    border-left: 6px solid #2e7d32;
    padding-left: 20px;
}

.personnel-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1a3b2e;
    max-width: 550px;
}

/* Right Column – Image */
.personnel-image-wrapper {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: opacity 0.3s ease;
}

.personnel-image-wrapper.fade-out {
    opacity: 0;
}

.personnel-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 30, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Bottom Glass Navigation Bar – Adjusted */
.personnel-nav-bar {
    position: absolute;
    bottom: 80px;                       /* increased gap */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 80px;
    padding: 12px 25px;                  /* reduced vertical padding */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 10;
    max-width: 90vw;
}

/* Thumbnails Wrapper – longer to fit 5 thumbnails */
.personnel-thumbnails-wrapper {
    width: 410px;                         /* fits 5 thumbnails (70px + 15px gap) */
    overflow: hidden;
    border-radius: 60px;
}

@media (min-width: 1000px) {
    .personnel-thumbnails-wrapper {
        width: 500px;                      /* extra space for larger screens */
    }
}

.personnel-thumbnails {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    width: fit-content;
}

/* Navigation Arrows – slightly smaller */
.nav-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 48px;                           /* reduced from 54px */
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    color: #0a3b1a;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Individual Thumbnail – smaller (70px) */
.personnel-thumb {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border: 4px solid transparent;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.personnel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personnel-thumb.active {
    border-color: #0a3b1a;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(10, 59, 26, 0.3);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .personnel-container {
        margin-top: 80px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 20px;
    }
    
    .personnel-info {
        text-align: center;
    }
    
    .personnel-position {
        border-left: none;
        border-bottom: 4px solid #2e7d32;
        padding-left: 0;
        padding-bottom: 10px;
        display: inline-block;
    }
    
    .personnel-image {
        max-height: 40vh;
    }
    
    .personnel-nav-bar {
        bottom: 30px;
        padding: 10px 20px;
    }
    
    .personnel-thumbnails-wrapper {
        width: 300px;
    }
    
    .personnel-thumb {
        width: 60px;
        height: 60px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/*--------------------------------------------------------------
# History Section
--------------------------------------------------------------*/

.history-section {
  display: flex;
  width: 100%;
  min-height: 400px;
  align-items: center;
  gap: 40px;
  margin: 60px 0;
  padding: 0 60px;
}

/* LEFT PANEL */
.history-content {
  flex: 0 0 35%;
}

.history-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
  color: #1b5e20;
}

.history-underline {
  width: 70px;
  height: 4px;
  background: #1b5e20;
  border-radius: 6px;
  margin-bottom: 20px;
}

.history-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
}

/* BUTTON */
.history-btn {
  text-decoration: none;
  padding: 14px 32px;
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 40px;
  background: linear-gradient(145deg, #2e7d32, #1b5e20);
  color: white;
  border: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1),
              box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 30, 0, 0.2);
  will-change: transform;
  backface-visibility: hidden;
}

.history-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0, 60, 0, 0.25);
  background: linear-gradient(145deg, #1b5e20, #2e7d32); /* optional gradient swap */
}

.history-btn:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 8px 15px rgba(0, 40, 0, 0.2);
}

/* RIGHT PANEL */
.history-image {
  flex: 0 0 65%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

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

/* Small zoom effect on hover */
.history-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .history-section {
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
  }

  .history-content {
    flex: 1;
    order: 2;
  }

  .history-image {
    flex: 1;
    order: 1;
    width: 100%;
    height: 300px;
    border-radius: 15px;
  }

  .history-title {
    font-size: 2rem;
  }

  .history-text {
    font-size: 0.95rem;
  }

  .history-underline {
  width: 70px;
  height: 4px;
  background: #1b5e20;
  border-radius: 6px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;

}
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/

/* SECTION */
.testimonials2-section {
  text-align: center;
  padding: 60px 20px;
  background: #033b1a url('../img/alumni/alumni.png') no-repeat center center/cover;
  background-size: cover;
}

.testimonials2-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 3px;
  color: #0c3a1a;
}

/* CONTAINER */
.testimonials2-container {
  width: 100%;
  max-width: 750px;
  margin: auto;
  position: relative;
  padding: 20px;
}

/* WRAPPER AS STACK */
.testimonials2-wrapper {
  position: relative;
  min-height: 350px; /* prevents layout shift */
}

/* CARD */
.testimonial2-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;

  padding: 30px 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.5);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ACTIVE CARD */
.testimonial2-card.active {
  opacity: 1;
  visibility: visible;
  z-index: 5;
}

/* IMAGE */
.testimonial2-img {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

/* NAME */
.testimonial2-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0e4b21;
  margin-bottom: 5px;
}

/* ROLE */
.testimonial2-role {
  font-size: 0.9rem;
  color: #3a6b44;
  margin-bottom: 15px;
}

/* QUOTE */
.testimonial2-quote {
  font-size: 1rem;
  color: #163a22;
  font-style: italic;
  line-height: 1.6;
  max-width: 500px;
  margin: auto;
}

/* DOTS */
.testimonials2-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.testimonials2-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.454);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonials2-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.testimonials2-dot.active {
  background: #bdbdbd;
  transform: scale(1.25);
}

/* RESPONSIVE */
@media(max-width: 600px){
  .testimonial2-card {
    padding: 25px 25px;
  }

  .testimonial2-img {
    width: 80px;
    height: 80px;
  }

  .testimonial2-quote {
    font-size: .95rem;
  }

  .testimonials2-wrapper {
    min-height: 430px;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.site-footer {
  background: linear-gradient(120deg, #0b2f1a, #114b2d, #0b2f1a);
  background-size: 300% 300%;
  animation: footerGradient 8s ease infinite;
  color: #e6f2eb;
  padding: 60px 20px 30px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 25px;
}

@keyframes footerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Logo & Motto */
.footer-logo img {
  display: block;
  margin: 0 auto 8px;
  height: 50px;
  opacity: 0.7;
}

.footer-motto {
  font-style: italic;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-bottom: 35px;
  font-size: 20px;
}

/* Divider Lines */
.footer-divider {
  width: 80%;
  height: 1px;
  background: rgba(230, 242, 235, 0.4);
  margin: 25px auto;
}

/* Columns */
.footer-columns {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 220px;
  text-align: left;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(230, 242, 235, 0.4);
  padding-bottom: 6px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-column img {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.footer-column a {
  color: #e6f2eb;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-column a:hover {
  opacity: 0.7;
}

/* Bottom Text */
.footer-copy {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  --default-color: var(--contrast-color);
  --background-color: var(--accent-color);
  --heading-color: var(--contrast-color);
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title .heading p {
  font-size: 19px;
  font-weight: 360;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--accent-color) 70%, black 5%);
  padding: 20px 0;
}

.page-title nav a {
  color: var(--default-color);
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Specific page titles
--------------------------------------------------------------*/

.page-title.page-title-gallery {
  background-image: url('../img/gallery/gallery\ banner.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title.page-title-ijs-events {
  background-image: url('../img/gallery/ijs-events/ijs-eventsbanner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title.page-title-alumni {
  background-image: url('../img/gallery/alumni/alumnibanner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title.page-title-uniform {
  background-image: url('../img/about/uniform/unibanner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title.page-title-personnel {
  background-image: url('../img/about/personnelbanner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title.page-title-facilities {
  background-image: url('../img/about/facilitiesbanner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title.page-title-admission {
  background-image: url('../img/facilities/cashier/cashier1.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title.page-title-about {
  background-image: url('../img/about/about\ banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================== */
/* IJS EVENTS GALLERY - CSS GRID AUTO-FIT LAYOUT */
/* =========================================== */

.ijs-events-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

/* Header Styles */
.events-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 15px;
}

.header-left .events-title {
    color: #1a472a;
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-divider {
    height: 40px;
    width: 1px;
    background-color: #2e7d32;
    margin: 0 10px;
    display: none;
}

.header-right {
    flex: 1;
    min-width: 250px;
}

/* Filter Styles */
.events-filter-container {
    margin: 20px 0 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-weight: 600;
    color: #1a472a;
    font-size: 0.9rem;
}

.filter-dropdown {
    padding: 10px 15px;
    border: 1px solid #2e7d32;
    border-radius: 6px;
    background-color: #f8fff9;
    color: #1a472a;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

/* Divider Line */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, #1a472a, #2e7d32, #1a472a);
    margin: 15px 0;
    opacity: 0.7;
}

/* =========================================== */
/* MAIN GALLERY - CSS GRID AUTO-FIT */
/* =========================================== */

.events-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    grid-gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.event-item {
    border-radius: 10px;
    overflow: hidden;
    background-color: #f8fff9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Make some items taller for visual interest (masonry effect) */
.event-item:nth-child(5n+1) {
    grid-row: span 2;
}

.event-item:nth-child(5n+3) {
    grid-row: span 2;
}

.event-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Taller images for spanned items */
.event-item:nth-child(5n+1) .event-image,
.event-item:nth-child(5n+3) .event-image {
    height: 300px;
}

.event-caption {
    padding: 15px;
    background-color: #f8fff9;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-caption h3 {
    margin: 0 0 8px 0;
    color: #1a472a;
    font-size: 1.1rem;
    flex-grow: 1;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
}

.event-type {
    background-color: #2e7d32;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.school-year {
    color: #1a472a;
    font-weight: 500;
}

/* Hover Effects */
.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(26, 71, 42, 0.15);
}

.event-item:hover .event-image {
    transform: scale(1.05);
}

/* =========================================== */
/* PAGINATION */
/* =========================================== */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid #2e7d32;
    background-color: white;
    color: #1a472a;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination button:hover:not(.active):not(:disabled) {
    background-color: #e8f5e9;
}

.pagination button.active {
    background-color: #2e7d32;
    color: white;
    border-color: #1a472a;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #1a472a;
    font-weight: 500;
    font-size: 0.95rem;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #666;
    align-self: center;
}

/* =========================================== */
/* IMAGE MODAL */
/* =========================================== */

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.image-info {
    padding: 20px;
    background-color: #f8fff9;
}

.image-info h3 {
    margin: 0 0 10px 0;
    color: #1a472a;
}

.image-info p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.5;
}

.image-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}



/* =========================================== */
/* RESPONSIVE DESIGN */
/* =========================================== */

@media (min-width: 576px) {
    .events-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .header-divider {
        display: block;
    }
    
    .filter-group {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    .image-meta {
        display: none;
    }
}

@media (min-width: 768px) {
    .events-header {
        flex-wrap: nowrap;
    }
    
    .events-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .pagination-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .events-gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 767px) {
    /* On mobile, make all items single row for better readability */
    .event-item:nth-child(n) {
        grid-row: span 1;
    }
    
    .event-item:nth-child(n) .event-image {
        height: 170px;
    }

    .event-item:nth-child(n) .event-image {
        height: 170px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #e8f5e9;
    border-top-color: #2e7d32;
    border-radius: 50%;
    animation: loading 0.8s linear infinite;
}

@keyframes loading {
    to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# ALUMNI Section
--------------------------------------------------------------*/
/* Alumni Timeline Section Styles */
.alumni-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #333;
    position: relative;
}

/* Header Styles */
.alumni-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.header-left .alumni-title {
    color: #1a472a;
    font-size: 2.8rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

.jump-to-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8fff9;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(26, 71, 42, 0.1);
    border: 1px solid #e8f5e9;
}

.jump-label {
    font-weight: 600;
    color: #1a472a;
    font-size: 1.1rem;
    white-space: nowrap;
}

.jump-dropdown {
    padding: 12px 18px;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    background-color: white;
    color: #1a472a;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    font-size: 1rem;
}

.jump-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
    border-color: #1a472a;
}

.jump-button {
    padding: 12px 24px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.jump-button:hover {
    background-color: #1a472a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 71, 42, 0.2);
}

.jump-button:active {
    transform: translateY(0);
}

/* Header Divider */
.alumni-divider {
    height: 3px;
    background: linear-gradient(90deg, #1a472a, #2e7d32, #1a472a);
    margin: 30px 0 50px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(26, 71, 42, 0.2);
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding-left: 60px;
}

/* Vertical Timeline Line */
.timeline-line {
    position: absolute;
    left: 25px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: linear-gradient(to bottom, #1a472a 0%, #2e7d32 50%, #1a472a 100%);
    z-index: 1;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
}

/* Batch Styles */
.batch {
    position: relative;
    margin-bottom: 70px;
    padding-bottom: 50px;
    border-bottom: 2px solid #e8f5e9;
}

.batch:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 30px;
}

.batch-header {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.year-dot {
    position: absolute;
    left: -40px;
    width: 24px;
    height: 24px;
    background-color: #2e7d32;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 0 0 4px #2e7d32, 0 0 20px rgba(46, 125, 50, 0.5);
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px #2e7d32, 0 0 25px rgba(46, 125, 50, 0.7);
}

.batch-year {
    color: white;
    font-size: 2rem;
    margin: 0 0 0 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a472a, #2e7d32);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(26, 71, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.batch-year::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.batch-year:hover::after {
    left: 100%;
}

/* Class Section Styles */
.class-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    gap: 40px;
    position: relative;
    background-color: #f8fff9;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 71, 42, 0.15);
}

.class-section:last-child {
    margin-bottom: 0;
}

.class-left {
    flex: 0 0 350px;
}

.class-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
    height: 280px;
}

.class-image:hover {
    transform: scale(1.02);
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.class-right {
    flex: 1;
    min-width: 350px;
}

.section-name {
    margin-bottom: 25px;
}

.section-name h3 {
    color: #1a472a;
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    display: inline-block;
    padding-bottom: 8px;
    position: relative;
}

.section-name h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #4caf50);
    border-radius: 2px;
}

.class-list h4 {
    color: #1a472a;
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.class-list h4::before {
    content: '';
    margin-right: 10px;
    font-size: 1.2rem;
}

.student-names {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.student-names span {
    background-color: white;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8f5e9;
    position: relative;
    overflow: hidden;
}

.student-names span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #2e7d32;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.student-names span:hover {
    background-color: #e8f5e9;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.1);
}

.student-names span:hover::before {
    opacity: 1;
}

/* How to Add New Batches Guide */
.add-batch-guide {
    background-color: #f8fff9;
    border: 2px dashed #2e7d32;
    border-radius: 12px;
    padding: 25px;
    margin-top: 50px;
    text-align: center;
}

.add-batch-guide h3 {
    color: #1a472a;
    margin-bottom: 15px;
}

.add-batch-guide ol {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .alumni-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-right {
        justify-content: flex-start;
        width: 100%;
    }
    
    .jump-to-container {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .jump-dropdown {
        flex-grow: 1;
    }
    
    .timeline-container {
        padding-left: 50px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .year-dot {
        left: -30px;
        width: 20px;
        height: 20px;
    }
    
    .class-left {
        flex: 0 0 100%;
        margin-bottom: 25px;
    }
    
    .class-right {
        flex: 0 0 100%;
    }
    
    .student-names {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .alumni-title {
        font-size: 2.2rem;
    }
    
    .batch-year {
        font-size: 1.6rem;
        padding: 12px 20px;
    }
    
    .class-section {
        padding: 20px;
    }
    
    .class-image {
        height: 220px;
    }
    
    .section-name h3 {
        font-size: 1.7rem;
    }
    
    .student-names {
        grid-template-columns: 1fr;
    }
    
    .timeline-container {
        padding-left: 40px;
    }
    
    .timeline-line {
        left: 15px;
    }
    
    .year-dot {
        left: -25px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .student-names {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Highlight effect when jumping to a batch */
.batch:target,
.batch.highlighted {
    animation: highlightBatch 2s ease;
}

@keyframes highlightBatch {
    0% {
        background-color: transparent;
        box-shadow: 0 0 0 rgba(46, 125, 50, 0);
    }
    30% {
        background-color: rgba(46, 125, 50, 0.08);
        box-shadow: 0 0 0 10px rgba(46, 125, 50, 0.1);
    }
    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 900px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}

.section-title p {
  color: var(--heading-color);
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  font-family: var(--nav-font);
  text-transform: uppercase;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 90vh;
  width: 100%;
  overflow: hidden;           /* keeps overflowing parts hidden */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Disable Mentor template overlay */
.hero::before {
  display: none !important;
}

/* Background image — fully visible */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: brightness(0.75);
  background-color: #000;
}

/* Floating foreground image (students) – now extends below */
.hero-foreground {
  position: absolute;
  bottom: -3%;                /* pushes part of image below the hero */
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
  object-position: center bottom;
  z-index: 2;
  animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* Centered text content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0px 20px 20px;
  padding-bottom: 210px;
  margin: 0 auto;
}

.hero-icon {
  display: block;
  margin: 0 auto 20px;
  max-width: 120px;
  height: auto;
  margin-bottom: 4px;
  opacity: 0.8;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.1;
  word-spacing: 0.15em;
  color: #ffffff;
}

.hero-content p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.15em;
  word-spacing: 1em;
  font-weight: 600;
  color: #e8e8e8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding: 40px 5%;
  }

  .hero-bg-img {
    object-position: center;
  }

  .hero-foreground {
    display: none;
  }

  .hero-content {
    padding-top: 5px;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 10vw, 4.5rem);
    line-height: 1.3em;
  }

  .hero-content p {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 30px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 85vh;
    padding: 30px 4%;
  }

  .hero-foreground {
    max-height: 18vh;          /* further reduced for small phones */
    bottom: -1%;                /* minimal extension */
  }

  .hero-content h1 {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
  }

  .hero-content p {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
  }
}

/*--------------------------------------------------------------
# Gallery Selector Section
--------------------------------------------------------------*/
.gallery-selector {
  position: relative;
  padding: 100px 8%;
  overflow: hidden;
  color: #fff;
  min-height: 100vh; 
}

/* Dimmed background image */
.gallery-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(
      rgba(1, 47, 3, 0.70),
      rgba(45, 165, 43, 0.35)
    ),
    url('../img/header/herobg.png') center/cover no-repeat;
  z-index: 1;
}

/* Container */
.gallery-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

/* Card */
.gallery-card {
  text-decoration: none;
  color: inherit;
  padding: 40px 32px;
  background: rgba(0, 40, 15, 0.55);
  border-radius: 40px;
  transition: transform 0.35s ease, background 0.35s ease;
}

/* Hover effect */
.gallery-card:hover {
  transform: translateY(-8px);
  background: rgba(0, 47, 18, 0.75);
}

/* Title */
.gallery-card h2 {
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-align: center;
  color:#ffffff;
}

/* Divider line */
.gallery-card .divider {
  display: block;
  width: 80px;
  height: 3px;
  background: #9fd8b0;
  margin: 0 auto 28px;
}

/* Image */
.gallery-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 30px;
  margin-bottom: 20px;
}

/* Description */
.gallery-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  color: #d7eadf;
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-selector {
    padding: 80px 6%;
  }

  .gallery-card h2 {
    font-size: 1.6rem;
  }
}

/*-----------------------------------------------------------------
# Uniform Styling (Preschool, Elementary, Junior High, Senior High)
-----------------------------------------------------------------*/

/* Each level */
.uniform-level {
    width: 100%;
}

/* Banner – taller */
.banner {
    width: 100%;
    height: 65vh;
    overflow: hidden;
    background: #d4e6d4;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top;
}

/* Uniform Showcase – taller */
.uniform-showcase {
    display: flex;
    width: 100%;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.showcase-text {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.showcase-image {
    flex: 2;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* Typography */
.showcase-text h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    text-align: center;
}

/* White theme */
.showcase-white {
    background-color: #ffffff;
    color: #0a3b1a;
}

.showcase-white h2 {
    color: #0a3b1a;
}

/* Dark green theme */
.showcase-dark {
    background-color: #0a3b1a;
    color: #ffffff;
}

.showcase-dark h2 {
    color: #ffffff;
}

/* ---------- Animated Background Elements ---------- */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Floating circles */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.1;
    animation: float 8s infinite ease-in-out;
}

.showcase-white .floating-circle {
    background: #0a3b1a;
}

.showcase-dark .floating-circle {
    background: #ffffff;
}

.floating-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 10%;
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 70%;
    animation-delay: 4s;
}

/* Moving gradient */
.moving-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    opacity: 0.3;
}

.showcase-white .moving-gradient {
    background: radial-gradient(circle at 30% 50%, rgba(10,59,26,0.1) 0%, transparent 50%);
}

.showcase-dark .moving-gradient {
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Level Divider */
.level-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #2e7d32, #0a3b1a, #2e7d32, transparent);
    margin: 0;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #bbb;
}

/* Responsive */
@media (max-width: 800px) {
    /* Stack showcase vertically */
    .uniform-showcase {
        flex-direction: column;
        min-height: auto;
    }

    /* Text container – more compact and centered */
    .showcase-text {
        min-height: 30vh;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* Image container – slightly taller to showcase the uniform */
    .showcase-image {
        min-height: 45vh;
        width: 100%;
    }

    .showcase-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Typography – scale down for mobile */
    .showcase-text h2 {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }

    /* Banner – slightly smaller height */
    .banner {
        height: 25vh;
    }

    /* Divider – thinner */
    .level-divider {
        height: 3px;
    }

    /* Floating circles – even more subtle on mobile */
    .floating-circle {
        opacity: 0.03;
    }

    /* Optional: reduce animation intensity for performance (optional) */
    /* .floating-circle {
        animation: float 12s infinite ease-in-out;
    } */
}

/* Further tweaks for very small screens (≤480px) */
@media (max-width: 480px) {
    .showcase-text {
        min-height: 25vh;
        padding: 1.5rem 1rem;
    }

    .showcase-image {
        min-height: 40vh;
    }

    .showcase-text h2 {
        font-size: 1.8rem;
        letter-spacing: 1.5px;
    }

    .banner {
        height: 20vh;
    }
}

/*--------------------------------------------------------------
# Institution Personnel & Facilities Section
--------------------------------------------------------------*/

.ipf-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    border-radius: 48px;
}

.ipf-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: stretch;
}

/* ---------- LEFT SIDE ---------- */
.ipf-left {
    flex: 1 1 45%;
    min-width: 400px;
    background: linear-gradient(145deg, #f6fcf7, #ffffff);
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 25px 45px -12px rgba(10, 59, 26, 0.15);
    position: relative;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.ipf-left-content {
    position: relative;
    z-index: 2;
}

.ipf-title {
    color: #0a3b1a; /* Darker green */
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.ipf-desc {
    color: #1a3b2e;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 550px;
    font-weight: 400;
    border-left: 4px solid #2e7d32;
    padding-left: 20px;
}

/* Personnel Cards Grid */
.ipf-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.ipf-card {
    background: white;
    border-radius: 24px;
    padding: 20px 15px 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(46, 125, 50, 0.1);
    position: relative;
}

.ipf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -8px rgba(10, 59, 26, 0.2);
    border-color: #2e7d32;
}

.ipf-card-label {
    color: #0a3b1a;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 3px solid #2e7d32;
    padding-bottom: 8px;
    display: inline-block;
}

.ipf-card-label-fc {
    color: #0a3b1a;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 3px solid #2e7d32;
    padding-bottom: 8px;
    display: inline-block;
}

.ipf-card-image {
    width: 110px;
    height: 140px; /* IMPORTANT: give it a height */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
}

.ipf-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or cover */
}

.ipf-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.ipf-card:hover .ipf-placeholder {
    transform: scale(1.05);
}

.ipf-placeholder span {
    background: rgba(10, 59, 26, 0.85);
    padding: 10px 16px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Placeholder Colors – Darker Greens */
.bot-placeholder {
    background: linear-gradient(145deg, #1a472a, #0a3b1a);
}
.admin-placeholder {
    background: linear-gradient(145deg, #2e7d32, #1a472a);
}
.faculty-placeholder {
    background: linear-gradient(145deg, #3d8b40, #2e7d32);
}

.ipf-card-link {
    display: inline-block;
    color: #0a3b1a;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    background-color: rgba(46, 125, 50, 0.08);
    transition: all 0.2s;
    margin-top: 5px;
}

.ipf-card-link:hover {
    background-color: #2e7d32;
    color: white;
}

/* Card Footer with Stats & Link */
.ipf-card-footer {
    margin-top: 30px;
    padding-top: 15px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.ipf-stats {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
}

.ipf-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ipf-stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0a3b1a;
    line-height: 1;
}

.ipf-stat-label {
    font-size: 0.85rem;
    color: #2e5c3b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    font-weight: 500;
}

.ipf-footer-link {
    color: #0a3b1a;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 24px;
    background: white;
    border-radius: 40px;
    border: 2px solid #2e7d32;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.ipf-footer-link:hover {
    background: #2e7d32;
    color: white;
    border-color: #0a3b1a;
}

/* ---------- RIGHT SIDE ---------- */
.ipf-right {
    flex: 1 1 45%;
    min-width: 400px;
    background: white;
    border-radius: 15px;
    padding: 40px 40px 50px;
    box-shadow: 0 25px 45px -12px rgba(10, 59, 26, 0.12);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(46, 125, 50, 0.25);
}

/* Main Facility Image (overlap) */
.ipf-main-image {
    margin-top: -70px;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 40px -15px rgba(10, 59, 26, 0.3);
    transition: all 0.3s;
}

.ipf-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
}

.ipf-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 35px 50px -15px #0a3b1a;
}

.facility-main-placeholder {
    height: 260px;
    background: linear-gradient(145deg, #0a3b1a, #1a472a);
}

.facility-main-placeholder span {
    background: rgba(255, 255, 255, 0.9);
    color: #0a3b1a;
    text-shadow: none;
}

.ipf-right-content {
    display: flex;
    flex-direction: column;
}

.facilities-title {
    color: #0a3b1a;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.facilities-desc {
    border-left-color: #2e7d32;
    margin-bottom: 30px;
    color: #1a3b2e;
}

.ipf-button {
    display: inline-block;
    background: linear-gradient(145deg, #0a3b1a, #1a472a);
    color: white;
    padding: 18px 42px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(10, 59, 26, 0.4);
    border: none;
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.15);
}

.ipf-button:hover {
    background: linear-gradient(145deg, #1a472a, #0a3b1a);
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(10, 59, 26, 0.5);
}

.ipf-secondary-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.ipf-secondary-image img {
    width: 100%;
    height: 100%;
    filter: blur(2px);
    object-fit: cover;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
}

.ipf-secondary-image:hover {
    box-shadow: 0 18px 35px rgba(46, 125, 50, 0.2);
    transform: translateY(-3px);
}

.facility-secondary-placeholder {
    height: 180px;
    background: linear-gradient(145deg, #2e7d32, #1a472a);
}

.facility-secondary-placeholder span {
    background: rgba(255, 255, 255, 0.9);
    color: #0a3b1a;
    text-shadow: none;
}

/* ---------- RESPONSIVE ---------- */
/* ---------- RESPONSIVE – Tablet (≤1100px) ---------- */
@media (max-width: 1100px) {
  .ipf-container {
    flex-direction: column;
    gap: 40px;
  }

  .ipf-left,
  .ipf-right {
    min-width: 100%;
    width: 100%;
  }

  .ipf-main-image {
    margin-top: 0; /* remove negative overlap */
  }

  .ipf-cards-grid {
    gap: 20px;
  }

  .ipf-card-footer {
    flex-direction: column;
    align-items: center; /* center stats on tablet */
    gap: 20px;
  }
}

/* ---------- RESPONSIVE – Mobile (≤700px) ---------- */
@media (max-width: 700px) {
  .ipf-section {
    padding: 40px 15px;
  }

  .ipf-left,
  .ipf-right {
    padding: 30px 20px;
  }

  .ipf-title {
    font-size: 2rem;
  }

  .ipf-desc {
    font-size: 1rem;
    padding-left: 15px;
    margin-bottom: 30px;
  }

  /* Cards grid: single column */
  .ipf-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Make card images responsive */
  .ipf-card-image {
    width: 120px;
    height: 150px; /* slightly larger on mobile for better visibility */
  }

  /* Stats: wrap and reduce number size */
  .ipf-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ipf-stat-number {
    font-size: 2.2rem;
  }

  .ipf-stat-label {
    font-size: 0.75rem;
  }

  /* Right side adjustments */
  .ipf-main-image,
  .ipf-secondary-image {
    width: 100%;
  }

  /* Ensure images scale within their containers */
  .ipf-main-image img,
  .ipf-secondary-image img {
    width: 100%;
    height: auto; /* maintain aspect ratio */
    max-height: 300px; /* optional cap */
    object-fit: cover;
  }

  .ipf-main-image {
    height: auto; /* let content dictate height */
  }

  .facilities-title {
    font-size: 2rem;
  }

  .facilities-desc {
    font-size: 1rem;
  }

  .ipf-button {
    padding: 14px 30px;
    font-size: 1rem;
    align-self: center; /* center button on mobile */
    width: 100%; /* full width for easier tapping */
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Secondary image placeholder */
  .facility-secondary-placeholder {
    height: 150px;
  }
}

/* ---------- RESPONSIVE – Small Mobile (≤480px) ---------- */
@media (max-width: 480px) {
  .ipf-title {
    font-size: 1.8rem;
  }

  .ipf-card-image {
    width: 100px;
    height: 130px;
  }

  .ipf-stat-number {
    font-size: 1.8rem;
  }

  .ipf-stat-label {
    font-size: 0.7rem;
  }

  .ipf-button {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

/* ================================================== */
/* CLUBS SECTION  */
/* ================================================== */

.clb-section {
    background-color: #0a3b1a;
    padding: 50px 20px;                 /* reduced from 80px */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    overflow: hidden;
}

.clb-container {
    max-width: 1400px;                   /* allow more room for larger images */
    margin: 0 auto;
}

.clb-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: white;
    padding-left: 40px;                  /* keep title shifted right */
}

/* Slider Container */
.clb-slider {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.clb-track {
    display: flex;
    align-items: center;
    gap: 30px;                           /* slightly more breathing room */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Individual Slide – landscape, bigger */
.clb-slide {
    flex: 0 0 300px;                      /* wider base */
    height: 200px;                         /* ~3:2 ratio */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);  /* much softer shadow */
    transition: all 0.5s ease;
    opacity: 0.7;
    transform: scale(0.9);
    cursor: pointer;
    background: #1a472a;
}

.clb-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Active Slide – much bigger, still soft shadow */
.clb-slide.active {
    flex: 0 0 420px;                      /* larger active */
    height: 280px;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);  /* subtle shadow */
    z-index: 2;
}

/* Description Box – same */
.clb-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px;                   /* reduced bottom margin */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    padding: 20px 30px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clb-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clb-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Dots */
.clb-dots-wrapper {
    overflow: hidden;
    width: 90px;  
    height: 30px;               /* 3 dots (3×12px) + 2 gaps (2×12px) = 60px? Let's calculate precisely */
    margin: 0 auto;
}

.clb-dots {
    display: flex;
    gap: 12px;                    /* matches your existing gap */
    transition: transform 0.3s ease;
    will-change: transform;
}

.clb-dot {
    width: 35px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.clb-dot.active {
    background-color: white;
    transform: scale(1.3);
    border-color: #ffffff;
}

.clb-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .clb-slide {
        flex: 0 0 260px;
        height: 170px;
    }
    .clb-slide.active {
        flex: 0 0 360px;
        height: 240px;
    }
}

@media (max-width: 800px) {
    .clb-slide {
        flex: 0 0 220px;
        height: 145px;
    }
    .clb-slide.active {
        flex: 0 0 300px;
        height: 200px;
    }
    .clb-title {
        font-size: 2.4rem;
        padding-left: 20px;
    }
}

@media (max-width: 600px) {
    .clb-slide {
        flex: 0 0 180px;
        height: 120px;
    }
    .clb-slide.active {
        flex: 0 0 240px;
        height: 160px;
    }
    .clb-title {
        font-size: 2rem;
        padding-left: 15px;
        margin-bottom: 30px;
    }
    .clb-name {
        font-size: 1.6rem;
    }
    .clb-desc {
        font-size: 1rem;
    }
}

/* ======================================================== */
/* UNIFORM SECTION – SOFT GREEN, HORIZONTAL & VERTICAL LINES */
/* ======================================================== */

.uniform-section {
    background-color: #e6f3e6;
    padding: 80px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    margin-top: 1px;
}

.uniform-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

/* ---------- GRID LAYOUT – BIGGER IMAGES ---------- */
.uniform-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: 40px 30px;
    align-items: start;
    position: relative;
    z-index: 5;
}

/* Left column */
.left-top {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    width: 100%;
    max-width: 340px; /* larger */
}
.left-bottom {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    width: 100%;
    max-width: 340px;
}

/* Center card */
.uniform-center {
    grid-column: 2;
    grid-row: 1 / span 2;
    background: white;
    border-radius: 15px;
    padding: 45px 35px;
    box-shadow: 0 20px 35px rgba(10, 59, 26, 0.12);
    text-align: center;
    max-width: 420px;
    width: 100%;
    justify-self: center;
    align-self: center;
    border: 1px solid rgba(46, 125, 50, 0.15);
    margin: 0 20px;
}

/* Right column */
.right-top {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    width: 100%;
    max-width: 340px;
}
.right-bottom {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    width: 100%;
    max-width: 340px;
}

/* ---------- IMAGE STYLES – BIGGER ---------- */
.uniform-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 2px solid rgba(46, 125, 50, 0.2);
}

.uniform-image:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(26, 71, 42, 0.2);
    border-color: #2e7d32;
}

.uniform-placeholder {
    width: 100%;
    height: 240px; /* taller */
    background: linear-gradient(145deg, #f0f7f0, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a3b1a;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
}

.uniform-placeholder img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
}

.uniform-placeholder span {
    background: rgba(10, 59, 26, 0.85);
    color: white;
    padding: 12px 22px;
    border-radius: 40px;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ---------- CENTER CARD STYLES ---------- */
.uniform-title {
    color: #0a3b1a;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
}

.uniform-title em {
    font-style: italic;
    font-weight: 800;
    background: linear-gradient(145deg, #0a3b1a, #1a472a);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.uniform-desc {
    color: #1a3b2e;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 0 5px;
}

.uniform-button {
    display: inline-block;
    background: linear-gradient(145deg, #0a3b1a, #1a472a);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 22px rgba(10, 59, 26, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.uniform-button:hover {
    background: linear-gradient(145deg, #1a472a, #0a3b1a);
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(10, 59, 26, 0.4);
}

/* ---------- CONNECTING LINES – DARK FOREST GREEN, HORIZONTAL & VERTICAL ---------- */
.uniform-line {
    position: absolute;
    background-color: #1a472a; /* dark forest green */
    z-index: 10;
    pointer-events: none;
}

/* Vertical lines */
.vertical-line.line1 {
    width: 3px;
    height: 60px;
    left: calc(50% - 280px); /* adjust based on layout */
    top: calc(50% - 30px);
    transform: translateX(-50%);
    background-color: #1a472a;
}

.vertical-line.line2 {
    width: 3px;
    height: 60px;
    left: calc(50% + 280px);
    top: calc(50% - 30px);
    transform: translateX(-50%);
    background-color: #1a472a;
}

/* Horizontal lines */
.horizontal-line.line3 {
    height: 3px;
    width: 120px;
    left: calc(50% - 220px);
    top: calc(50% - 1.5px);
    background-color: #1a472a;
}

.horizontal-line.line4 {
    height: 3px;
    width: 120px;
    left: calc(50% + 100px);
    top: calc(50% - 1.5px);
    background-color: #1a472a;
}

/* Adjust line positions for different screen sizes via media queries */
@media (max-width: 1100px) {
    .uniform-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 30px;
    }
    .left-top, .left-bottom, .right-top, .right-bottom {
        max-width: 300px;
        justify-self: center;
    }
    .left-top { grid-column: 1; grid-row: 1; }
    .left-bottom { grid-column: 1; grid-row: 2; }
    .right-top { grid-column: 2; grid-row: 1; }
    .right-bottom { grid-column: 2; grid-row: 2; }
    .uniform-center {
        grid-column: 1 / span 2;
        grid-row: 3;
        max-width: 500px;
        margin: 20px auto;
    }
    .uniform-line { display: none; } /* hide lines on tablet */
}

@media (max-width: 700px) {
    .uniform-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
    }
    .left-top, .left-bottom, .right-top, .right-bottom {
        max-width: 100%;
        grid-column: 1;
        justify-self: stretch;
    }
    .left-top { grid-row: 1; }
    .left-bottom { grid-row: 2; }
    .right-top { grid-row: 4; }
    .right-bottom { grid-row: 5; }
    .uniform-center { grid-row: 3; }
    .uniform-placeholder { height: 200px; }
    .uniform-title { font-size: 2rem; }
}

/* Desktop fine-tuning for line positions */
@media (min-width: 1101px) {
    .vertical-line.line1 {
        left: calc(50% - 250px);
        height: 70px;
        top: calc(50% - 35px);
    }
    .vertical-line.line2 {
        left: calc(50% + 250px);
        height: 70px;
        top: calc(50% - 35px);
    }
    .horizontal-line.line3 {
        width: 140px;
        left: calc(50% - 200px);
    }
    .horizontal-line.line4 {
        width: 140px;
        left: calc(50% + 60px);
    }
}

/* For very large screens */
@media (min-width: 1400px) {
    .vertical-line.line1 {
        left: calc(50% - 300px);
        height: 80px;
    }
    .vertical-line.line2 {
        left: calc(50% + 300px);
        height: 80px;
    }
    .horizontal-line.line3 {
        width: 180px;
        left: calc(50% - 240px);
    }
    .horizontal-line.line4 {
        width: 180px;
        left: calc(50% + 60px);
    }
}

/* ======================================================= */
/* SCHOOL OVERVIEW SECTION – LIGHT GREEN, EQUAL COLUMNS    */
/* ======================================================= */

.sov-section {
    background-color: #e6f3e6;   /* very light green (same as uniform section) */
    padding: 80px 40px;           /* increased side padding */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-image: url(../img/about/sovbg.png);
}

.sov-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* equal columns */
    gap: 30px;                       /* gap between left and right */
    align-items: start;
}

/* ---------- LEFT RECTANGLE ---------- */
.sov-left-rect {
    background: #1a472a;            /* dark green */
    border-radius: 15px;
    padding: 50px 45px;              /* more internal padding */
    color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 550px;                /* keeps rectangle from being too wide */
    justify-self: center;             /* center within its grid column */
}

.sov-image-placeholder {
    width: 100%;
    height: 250px;
    background: #2e7d32;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
}

.sov-image-placeholder img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
}

.sov-history-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: white;
}

.sov-history-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}

.sov-learn-more {
    display: inline-block;
    background: white;
    color: #1a472a;
    padding: 14px 35px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: all 0.3s;
    border: 2px solid white;
    margin-bottom: 40px;
}

.sov-learn-more:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Mission & Vision (two columns) */
.sov-mission-vision {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

.sov-mission, .sov-vision {
    flex: 1 1 200px;
}

.sov-mission h4, .sov-vision h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #4caf50;
    padding-bottom: 8px;
    display: inline-block;
}

.sov-mission p, .sov-vision p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}

/* ---------- RIGHT STACK (two squares) ---------- */
.sov-right-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;                       /* same as container gap */
    width: 100%;
    max-width: 550px;                 /* match left rectangle width */
    justify-self: center;
}

/* Core Values Box (image left + text right) */
.sov-core-box {
    background: #ffffff;              /* very light green / white */
    border-radius: 15px;
    padding: 35px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #c8e6c9;
    min-height: 250px;                 /* make box bigger */
}

.sov-core-image {
    flex: 0 0 35%;
    min-width: 130px;
    background: linear-gradient(145deg, #c8e6c9, #a5d6a7);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a472a;
    font-weight: 600;
    aspect-ratio: 3/4;                 /* portrait */
    font-size: 0.9rem;
    text-align: center;
}

.sov-core-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
}

.sov-core-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sov-core-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sov-core-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2e5c3b;
}

/* Hymn Box */
.sov-hymn-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 35px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #c8e6c9;
    min-height: 250px;                  /* make box bigger */
    display: flex;
    flex-direction: column;
}

.sov-hymn-box h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sov-hymn-video {
    width: 100%;
    background: #e8f5e9;
    border-radius: 18px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e5c3b;
    font-weight: 500;
    flex: 1;
}

.sov-hymn-video video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .sov-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sov-left-rect, .sov-right-stack {
        max-width: 100%;
        justify-self: stretch;
    }
    .sov-core-box {
        flex-direction: column;
    }
    .sov-core-image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16/9;        /* landscape on mobile */
    }
}

@media (max-width: 600px) {
    .sov-section {
        padding: 50px 20px;
    }
    .sov-left-rect {
        padding: 30px 25px;
    }
    .sov-history-title {
        font-size: 2rem;
    }
    .sov-mission-vision {
        flex-direction: column;
        gap: 20px;
    }
    .sov-core-content h4,
    .sov-hymn-box h4 {
        font-size: 1.5rem;
    }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  padding-top: 8px;
  padding-bottom: 40px;
}

.contact .info-item+.info-item {
  margin-top: 40px;
}

.contact .info-item i {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  height: 100%;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px 12px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}
