:root {
  --primary-green: #013220;
  --accent-green: #98fb98;
  --text-light: #ffffff;
  --text-dark: #333333;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);

  
}



/* ====== Navbar Styles ====== */
/* Navbar fixed, full width, taller */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 150px;
  padding: 1.5rem 2%; /* less side padding */
  background-color: rgba(1, 50, 32, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-container {
  width: 100%;
  max-width: 1750px; /* wider max width */
  margin: 0;         /* no auto centering */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 10000;
  padding-left: 3rem;
}

nav {
  flex-grow: 1;
  margin-left: 2rem;
}



.logo-title {
  position: relative;
  z-index: 10000; /* higher than navbar to be safe */
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 3rem;
}


.logo {
  width: 50px;
  height: auto;
  aspect-ratio: 1;
  background: transparent;
  z-index: 102;
  margin-top: .5rem;
}

.school-name {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.5rem, 2vw, 1.5rem); /* your desired larger size */
  font-weight: 700;
  color: var(--text-light);
  margin-right: auto;
}

.school-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.school-subhead {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.8;
  margin-left: .2rem;
}


.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding-top: 0.5rem;
  margin-left: 1rem;
  font-size: 1.05rem; /* adjust as needed */
}

.nav-item {
  position: relative; /* necessary for submenu positioning */
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Hover/focus color */
.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent-green);
}

/* Default arrows removed */
.nav-links a::after {
  content: none;
}

/* Add down arrow ONLY for links with class 'has-submenu' */
.nav-links a.has-submenu::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 0.3rem;
  color: var(--text-light);
  display: inline-block;
  vertical-align: middle;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-green);
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: 0 0 5px 5px;

  /* Initially hidden */
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

/* Show dropdown menu on hover of the nav-item */
.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* Submenu list items take full width */
.dropdown-menu li {
  width: 100%;
  position: relative; /* important for submenu absolute positioning */
}

/* Dropdown menu links */
.dropdown-menu a {
  padding: 0.8rem 1rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove arrows in dropdown links */
.dropdown-menu a::after {
  content: none;
}

/* Submenu */
.dropdown-submenu {
  display: none;
  position: absolute;
  top: 2.5rem;   /* pushes submenu down */
  left: 50%;    /* stays fully right */
  background-color: var(--primary-green);
  border-radius: 0 5px 5px 5px;
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 1000;
}


/* Show submenu on hover of dropdown-menu > li */
.dropdown-menu > li:hover > .dropdown-submenu {
  display: block;
}

/* ====== Mobile Navigation ====== */



/* Remove arrow for nav items with .no-arrow on desktop */
.no-arrow > a::after {
  content: none;
}

/* Remove arrow for nav items with .no-arrow */
.nav-item.no-arrow > a::after {
  content: none;
}


.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%; /* or set a specific width */
  max-width: 280px; /* adjust as needed */
  margin-top: 4rem;
  
}

.nav-search input {
  padding: 0.5rem;
  border-radius: 5px;
  border: none;
  font-size: 0.9rem;
  width: 180px;  /* adjust as needed */
}

.nav-search button {
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 0.5rem 0.7rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 3rem;
}

.nav-search button:hover {
  background-color: var(--primary-green-hover); /* Add this color to your variables */
}


/* ====== Image Slider Styles ====== */
.image-slider {
  position: relative;
  width: 100%;
  margin-top: 150px; /* push under navbar */
  height: auto;
  overflow: hidden;
  z-index: 1;
}

.slide {
  width: 100%;
  display: none;  /* hide all slides by default */
}

.slide.active {
  display: block;
  animation: fadeIn 1s ease forwards;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: contain; /* ensures entire image is visible */
}




.slide.active {
  display: block;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slider Controls */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(1, 50, 32, 0.7);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 10;
  width: 50px;
}

.prev:hover,
.next:hover,
.prev:focus,
.next:focus {
  background-color: rgba(255, 255, 255, 0.7);
  outline: none;
  color: black;
}

.prev {
  left: 1rem;
}

.next {
  right: 1rem;
}

/* Responsive for smaller devices */




/* Responsive adjustments */
@media (max-width: 400px) {
  .hero-title,
  .hero-title2 {
    font-size: 1.5rem;
  }

  .know-more-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  


}
















































/* ====== Footer Styles ====== */
.site-footer {
  background-color: var(--primary-green);
  color: var(--text-light);
  padding: 2rem 5%;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.footer-logo img {
  width: 50px;
  height: auto;
}

.footer-logo h2 {
  font-size: 1.2rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex: 2;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-links h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--accent-green);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.4rem;
}

.footer-links ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
}



.view-more-btn {
  display: block; /* changed from inline-block */
  width: fit-content;
  margin: 1rem auto 2rem auto; /* centers the block element */
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-green);
  color: var(--text-light);
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.view-more-btn:hover {
  background-color: var(--accent-green);
  color: var(--primary-green);
}

/* mission-vision */

.about-section {
  padding: 80px 20px;
  background-color: #f8f9fa;
  color: #333;
   
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.mission-vision h2,
.core-values h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #0a5e03;
  text-align: center;
 
}

.mission-vision p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: center; /* changed from justify */
}

.core-values .value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
  text-align: center; /* Optional: center text inside cards */
}



.value-card {
  background-color: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card h3 {
  font-size: 1.3rem;
  color: #085701;
  margin-bottom: 5px;
}

.value-card h4 {
  font-weight: 500;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* History Section */
.history-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.8;
   margin-top: 150px;
}

.history-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.history-section h1 {
  text-align: center;
  color: #0a5e03;
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.history-section p {
  font-size: 1.1rem;
  text-align: justify;
  margin-bottom: 20px;
}


/* === Global Mobile Adjustments === */


/* Responsive styles */

@media (max-width: 768px) {
  html,
  body {
    font-size: 90%;
    overflow-x: hidden;
  }

  /* Navbar layout */
  .navbar {
    height: 110px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    transition: height 0.3s ease;
    overflow: visible;
  }

  .navbar.expanded {
    height: auto;              /* Let it grow dynamically */
  overflow-y: auto;          /* Allow vertical scrolling */
  max-height: 90vh;          /* Prevent full-page overflow */
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .logo-title {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-left: 0;
  }

  .school-name {
    font-size: 1.2rem;
  }

  .nav-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .nav-search {
    display: none;
  }

  .nav-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
  }

  /* Nav menu layout */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* ✅ MOBILE DROPDOWN FIX */
  .dropdown-menu {
    position: static !important;
    display: none;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    padding-left: 1rem;
    left: auto !important;
    top: auto !important;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu a {
    padding-left: 2rem;
  }

  .nav-links a::after {
    content: '▶';
    margin-left: auto;
    font-size: 0.75rem;
  }

  .dropdown-menu > li {
    position: static; /* ✅ Fix stacking */
  }

  .dropdown-submenu {
    position: static !important; /* ✅ Override desktop behavior */
    display: none;
    width: 100%;
    background-color: var(--primary-green);
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    box-shadow: none;
    border-radius: 0;
    left: auto !important;
    top: auto !important;
  }

  .dropdown-submenu.active {
    display: block;
  }

  .dropdown-submenu a {
    padding-left: 2rem;
  }

  .nav-item.no-arrow > a::after {
    content: none;
  }
  
  /* Default hidden state — already in your CSS, but make sure it's not being overridden */
.dropdown-menu,
.dropdown-submenu {
  display: none;
}

.dropdown-menu.active,
.dropdown-submenu.active {
  display: block;
}


  /* Slider */
  .slider,
  .image-slider,
  .slider2 {
    height: 60vh;
  }

  .image-slider {
    height: 60vh;
    margin-top: 7rem;
    margin-bottom: 0;
  }

  .slider2 {
    height: 60vh;
    margin-top: 0;
    overflow: hidden;
  }

  .slide2 {
    height: 100%;
  }

  .slide2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .prev,
  .next {
    display: none;
  }

  .core-values .value-grid {
    grid-template-columns: 1fr;
  }
}


.hero-news2 {
  position: relative;
  width: 100%;
  padding: 3rem 5%;
  margin: auto;
  color: white;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-news2 > * {
  position: relative;
  z-index: 1;
}

.hero-title2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  text-align: center;
  margin-top: 3.5rem;
  font-weight: 700;
  color: #356e43;
  text-shadow: 1px 1px 7px rgba(255, 255, 255, 0.6);
}

/* Default Grid View */
.news-cards2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5rem;
  padding: 5rem 10%;
  justify-items: center;
}

.news-card2 {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
  transition: var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 600px;  /* Increased max-height */
  height: 550px;      /* Increased height */
  cursor: pointer;    /* Indicates interactivity */
}

.news-card2:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* stronger shadow on hover */
}

.news-card2 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.news-date2 {
  font-size: 1.2rem;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-weight: 700;
  background-color: rgb(24, 78, 17);
}

.news-content2 {
  padding: 1rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  
}

.news-content2 h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-green);
}

.news-content2 p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.read-more2 {
  align-self: flex-start;
  color: rgb(62, 136, 62);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more2:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

.view-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 0.75rem 1.5rem;
  background-color: #356e43;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  
}

.view-more-btn:hover {
  background-color: #2a5435;
}

@media (max-width: 768px) {
  
  .news-carousel-wrapper {
    overflow: hidden;
    width: 100%;
  }

  .news-cards2 {
    display: flex;
    transition: transform 0.4s ease-in-out;
    padding: 0;
    margin: 0;
  }

  .news-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
  }

  .news-card2 {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-title2 {
    margin-top: -1.5rem;
  }

  .view-more-btn {
    display: block;
    text-align: center;
  }

  
}








.ditokana {
  padding: 0;
  margin: -32px;
}

.dito-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;

}

@media (max-width: 768px) {
  .ditokana {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    height: auto;
    min-height: unset;
    margin: -32px;
    padding-bottom: 0;
  }
}








.hero-news {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  padding: 3rem 5%;
  
  
  color: white;
  overflow: hidden;
  box-sizing: border-box;
  
}

.hero-news::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/sportsBackground.png') center center/cover no-repeat;
  opacity: 2; /* Adjust overlay darkness */
  z-index: 0;
  
  pointer-events: none;
}

.hero-news > * {
  position: relative;
  z-index: 1;
}



.hero-title {
  font-size: 3rem;
  
  margin-bottom: 0rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 1px 1px 7px rgba(0, 0, 0, 0.6);
  margin-top: 3.5rem;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5rem;
  padding: 5rem 10%;
  justify-items: center;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  max-height: 500px;
  height: 120%;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1rem;
}

.news-date {
  font-size: 1.2rem;
  color: #ffffff;
  padding: 0.5rem 1rem 0.5rem 1rem;
  font-weight: 700;
  background-color: rgb(0, 0, 0);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.news-content {
  padding: 1rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: var(--primary-green);
}

.news-content p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.read-more {
  align-self: flex-start;
  color: rgb(80, 80, 80);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: black;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .news-card {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .news-card {
    width: 100%;  
  }

  .hero-title {
    font-size: 1.8rem;
    text-align: center;
    margin-top: -20px;
  }
}