* {
  font-family: Arial, Helvetica, sans-serif;
}
.not-found-message {
  font-size: 16px;
  font-style: italic;
  color: #333;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body,
html {
  overflow-x: hidden;
}
body {
  background-image: url(images/logo-ofc-opaque.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}
/* CAROUSEL */
.carousel-container {
  position: relative;
  width: 100%;
  margin-top: 100px;
  height: 600px; /* Add unit (px) */
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.3s; /* Optional: adds a slight delay for effect */
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%; /* Inherit height from container */
}

.carousel-item {
  min-width: 100%;
  height: 100%; /* Match container height */
  box-sizing: border-box;
}

.carousel img {
  width: 100%;
  height: 600px;
  object-fit: cover; /* Fill the container and crop excess */
  display: block;
}

.carousel-container button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10; /* Ensure buttons are above images */
}

.prev {
  left: 10px; /* Position left button */
}

.next {
  right: 10px; /* Position right button */
}

.dots {
  text-align: center; /* Center the dots */
  padding: 10px 0; /* Add some padding */
}

.dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 5px;
  background-color: #555d63; /* Default dot color */
  border-radius: 50%; /* Make dots circular */
  cursor: pointer; /* Change cursor on hover */
}

.dot.active {
  background-color: #e27535; /* Active dot color */
}

/* TEXT OVERLAY FOR CAROUSEL */
.carousel-text-overlay-container {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
  z-index: 1000;
}

.carousel-text-overlay {
  position: absolute;
  opacity: 0;
  animation: fadeOutLeft 0.5s ease forwards;
  background-color: rgba(0, 0, 0, 0.589);
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  pointer-events: none;
}

.carousel-text-overlay.show {
  animation: fadeInRight 1.2s ease forwards;
}

/* Headline and paragraph styling */
.carousel-text-overlay h1 {
  margin: 0 0 10px;
  font-size: 2.5rem;
  color: #ffbb00;
}

.carousel-text-overlay p {
  margin: 0;
  font-size: 1.2rem;
  color: #ffffff;
}

/* Enter from right */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Exit to left */
@keyframes fadeOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-40px);
  }
}

/* END OF CAROUSEL */

.banner {
  margin: auto;
  padding: 60px;
  font-size: 35px;
  text-align: center;
  color: #e27535;
  font-family: Georgia, "Times New Roman", Times, serif;
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
  text-shadow: 2px 2px 5px rgba(177, 228, 111, 0.4); /* <-- Shadow here */
}

.panel-container {
  padding: 60px;
  display: flex;
  margin: 0;
  background: linear-gradient(to right, #6eacaa, #304b5c);
  /* background-color: #6eacaa; */
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
  animation-delay: 0.5s; /* Optional delay */
}

.panel-list {
  list-style-type: none;
  /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  margin: auto; /* Optional: Add some space between items */
  font-size: 30px;
  transition: transform 0.3s ease;
  padding: 40px;
}
.panel-list:hover {
  transform: scale(1.08); /* slight grow effect on hover */
}
.panel-list a,
.panel-list i {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.panel-list a.fade-up,
.panel-list i.fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.panel-list a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally */
  margin: auto; /* Optional: Add some space between items */
  font-size: 18px;
  font-weight: bolder;
  color: white;
}
.panel-list i {
  margin-bottom: 30px;
  font-size: 60px;
}
.panel-list .panel-desc {
  font-weight: lighter;
  font-size: 16px;
}
/* END OF PANEL */

/* UPDATES */

.news-updates-container {
  max-width: 1000px; /* adjust this value to your desired width */
  margin: 40px auto;
  text-align: center;
}
.updates {
  padding: auto;
  margin: 20px;
  text-align: left;
  font-size: 25px;
  color: #000000;
  padding-left: 10px;
  font-weight: bold;
  border-left: #e27535 solid 5px;
  opacity: 0;
  transform: translateX(-100px);
}

.updates.slide-in {
  animation: slideInLeft 0.6s ease-out forwards;
}
/* card */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
  gap: 20px;
  padding: 40px;
  width: 100%;
  justify-content: center;
}

.card {
  background: rgb(255, 255, 255);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 200px;
}

.card img {
  width: 40%;
  height: 170px;
  height: auto;
  object-fit: cover;
}
.container,
.card,
.card-content {
  opacity: 0;
  transform: translateY(40px);
}

.card-content div {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.animate-on-scroll {
  animation: slideInUp 0.6s ease-out forwards;
}
.red-banner {
  width: 40%;
  background: #e80f0f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-weight: bold;
}
.card-content {
  padding: 16px;
  flex-grow: 1;
  position: relative;
  text-align: left;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 40px;
}
.read-more {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 10px 15px;
  background: #6eacaa;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}
.read-more:hover {
  background: #77d8d5;
}
.see-all-button {
  display: inline-block;
  padding: 20px 50px;
  background-color: #6eacaa;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin: 20px auto;
  transition: background-color 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.3s; /* Optional delay for smooth entrance */
}

.see-all-button:hover {
  background-color: #77d8d5;
}

/* CSS FOR THE ADD SECTION IN INDEX */
/* Main wrapper */
/* Prevent any global overflow *
/* Main content wrapper */
.section-display {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(-100px);
}

.section-display.slide-in {
  animation: slideInLeft 0.8s ease-out forwards;
}

/* General section block */
.div-section {
  width: 100%;
  padding: 20px 40px;
  margin: 0;
  display: block;
  box-sizing: border-box;
  overflow-wrap: break-word;
}
.div-section.with-pic,
.div-section.no-pic {
  padding: 20px 50px;
}
/* No image section */
.div-section.no-pic {
  background-color: #ca672d;
  animation: slideInLeft 0.9s ease-out forwards;
  opacity: 0;
}
.div-section.no-pic .content-wrapper {
  color: black;
  opacity: 0;
  transform: translateY(100px);
}

/* Animate when in viewport */
.div-section.no-pic.slide-in {
  animation: slideInLeft 0.8s ease-out forwards;
}

.div-section.no-pic .content-wrapper.fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.div-section.no-pic .div-header {
  color: rgb(255, 255, 255);
}
.div-section.no-pic p {
  color: white;
}

/* With image section */
.div-section.with-pic {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  align-items: flex-start;
  gap: 20px; /* Reduced for better spacing on mobile */
  background-color: #6eacaa;
  padding: 20px;
  box-sizing: border-box;
  text-align: justify;
  color: #18636d;
}

/* Image styling */
.div-section.with-pic img {
  width: 300px;
  max-width: 100%; /* Responsive image */
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Content wrapper */
.content-wrapper {
  flex: 1;
  min-width: 0;
}

/* Heading */
.div-section h3 {
  color: #ffffff;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
  word-break: break-word;
}

/* Description */
.div-section p,
.div-section div {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  word-wrap: break-word;
  word-break: break-word;
}

/* Date */
.div-section small {
  display: block;
  margin-top: 15px;
  color: #888;
  font-size: 13px;
}

/* ABOUT PAGE CSS */
.image-page-banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.page-banner {
  background-color: #000;
  width: 100%;
  height: 100%;
}
.image-page-banner .banner-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(-30px);
  animation: slideFadeIn 0.8s ease-out forwards;
}

.image-page-banner .banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 52px;
  font-weight: bold;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.945);
}

.about-container {
  display: flex; /* Enables flex layout */
  flex-direction: row; /* Horizontal layout by default */
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 80%;
  max-width: 1200px; /* Optional: max limit for large screens */
  margin: auto;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  box-sizing: border-box;
  overflow: hidden;
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0; /* optional for initial hidden state */
}

.about-info {
  padding: 20px;
  border: 1px solid #ffffff;
  background-color: #f3f3f3;
  margin: auto;
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0; /* optional for initial hidden state */
}
.about-info {
  width: 80%;
  padding: 10px 80px;
}

/* For Paragraphs */
.header {
  font-size: 38px;
  color: #000000;
  font-weight: lighter;
  margin: 30px;
  border-left: solid #e27535 5px;
  padding-left: 20px;
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0; /* optional for initial hidden state */
}
.facility-header {
  font-size: 28px;
  color: #000000;
  font-weight: bold;
  margin: 10px;
  border-left: solid #e27535 5px;
  padding-left: 20px;
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0; /* optional for initial hidden state */
}

.about-info p {
  line-height: 2;
  font-size: 16px;
  color: #212121;
  text-align: justify;
  margin: 20px;
  opacity: 0;
  transform: translateY(40px);
  animation: slideInUp 0.8s ease-out forwards;
}
.about-info img {
  width: 30%;
  height: auto;
  object-fit: cover;
  float: right;
  margin: 10px;

  opacity: 0;
  transform: translateY(40px);
  animation: slideInUp 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional delay for nice staggered effect */
}
/* About Panel */
.about-panel {
  padding: 20px;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: auto;
}
.panel-header {
  font-size: 20px;
  font-weight: lighter;
  padding-left: 10px;
  border-left: solid #e27535 5px;
}
/* ABOUT PAGE PANEL FOR PAGES */
.page-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin: auto;
  transform: translateX(-100px);
}

.page-panel.slide-in {
  animation: slideInLeftBounce 0.8s ease-out forwards;
}

/* Styling for each panel link */
.panel-item {
  border: 2px solid #304b5c;
  color: #304b5c;
  padding: 10px 20px;
  text-align: center;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  min-width: 150px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
  text-decoration: none;
}

/* Hover effect */
.panel-item:hover {
  background: #6eacaa;
  color: white;
}

/* MISSION VISION */
.info-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px;
}
.info-bcba {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
  width: 90%;
  margin: 0 auto;
  padding: 30px;
}
.p-sub {
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.9;
  opacity: 0;
  animation: slideInLeft 1.2s ease-out forwards;
}

.mission-vision-main {
  background-color: #a8a8a818;
  padding: 30px;
  width: 70%;
}

/* Tile design for the mission and vision*/
.tile-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 90%;
  line-height: 1.9;
}
.tile {
  position: relative;
  padding: 20px;
  width: 100%;
  border-radius: 10px;
  color: white;
  font-family: Arial, sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
.tile:hover {
  transform: translateY(-5px);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
}
.tile-title {
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  animation: slideInUp 1.2s ease-out forwards;
}
.tile-text {
  font-size: 14px;
  text-align: justify;
  line-height: 1.5;
  opacity: 0;
  animation: slideInUp 1.2s ease-out forwards;
}
.red {
  background: linear-gradient(to right, #6eacaa, #304b5c);
}
.gray {
  background: linear-gradient(to right, #a1a1a1, #a0a0a0);
}
.side-by-side {
  display: flex;
  gap: 10px;
}
.half {
  flex: 1;
}
.tile:nth-child(odd) {
  background: linear-gradient(to right, #558685, #304b5c);
}
.tile:nth-child(even) {
  background: linear-gradient(to right, #a1a1a1, #a0a0a0);
}
.icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 24px;
  transition: color 0.3s ease;
}
.tile:hover .icon {
  color: rgb(255, 164, 89);
}
/* Side Panel Section */
.side-panel {
  flex: 1; /* Takes less space */
  background-color: #ffffff00; /* Light background for visualization */
  padding: 20px;
  position: sticky; /* Sticks while scrolling */
  top: 100px; /* Keeps it at the top */
  height: calc(100% - 500px); /* Ensures it doesn't exceed viewport height */
  /* opacity: 0;
  animation: slideInLeft 1.2s ease-out forwards; */
}

.side-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-panel li {
  margin-bottom: 10px;
  position: relative;
  /* opacity: 0;
  animation: fadeUp 0.9s ease-out forwards; */
}
.side-panel li:not(:last-child)::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;

  margin: 10px 0;
}
.side-panel a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 14px;

  /* border: 2px solid red; */
  background-color: #e7e7e7;
  padding: 15px 20px;
  width: 250px;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}
.side-panel a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background-color: #88a73b;
}
.side-panel a:hover {
  background-color: #e27535;
  color: white;
}

/* toggle for side-panel */
.side-toggle-btn {
  display: none;
  position: fixed;
  top: 100px;
  right: 20px; /* ✅ align to the right */
  z-index: 999;
  background-color: #d60404;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  opacity: 60%;
}
/* OUR STAFF PAGE */
.our-staff-main {
  padding: 40px;
  width: 90%;
  margin-top: 150px;
  background-color: #a8a8a818;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.staff-main {
  padding: 40px;
  width: 100%;
  height: 100vh;
  margin-top: 20px;
  background-color: #a8a8a818;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.staff-header {
  font-size: 35px;
  font-weight: bold;
  padding-left: 15px;
  border-left: #e27535 solid 6px;
  margin-bottom: 40px;
  opacity: 0;
  animation: slideInLeft 1s ease-out forwards;
}

.staff-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  opacity: 0;
  animation: slideInUp 1s ease-out forwards;
}

.staff {
  width: 300px;
  min-width: 200px;
  animation: slideInLeftBounce 0.8s ease-out forwards;
}

.staff-img {
  width: 100%;
  height: 400px;
}

.staff-info {
  flex: 1;
  padding: 0 10px;
  font-size: 14px;
  line-height: 2;
  color: #000;
  text-align: justify;
}

.staff-name {
  font-size: 34px;
  font-weight: bold;
  color: #304b5c;
  margin: 0;
  padding-left: 10px;
  border-left: 5px solid orange;
}

.staff-title {
  font-size: 14px;
  color: #222;
  margin: 5px 0 20px 10px;
  font-weight: bold;
}
/* return button */
.back-btn {
  display: inline-block;
  background-color: #6eacaa;
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 2px;

  letter-spacing: 1px;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: 30px;
  opacity: 0;
  animation: slideInUp 1.2s ease-out forwards;
}

.back-btn:hover {
  background-color: #325352;
}

.staff-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 350px);
  gap: 16px;
  padding: 10px;
  justify-content: center; /* Optional: center the grid in the container */
}

.staff-card {
  background-color: #ffffff;
  padding: 15px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: 450px;
  overflow: hidden;
  opacity: 0;
  animation: slideInUp 0.6s ease forwards;
}

/* Standardized image */
.staff-card-image {
  width: 100%;
  height: 250px;
  background-color: #c0c0c0;
  background-size: cover;
  background-position: center;

  margin-bottom: 10px;
  flex-shrink: 0;

  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* Standardized name */
.staff-card-name {
  color: #304b5c;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  text-align: center;
  width: 100%;
  line-height: 1.2;
  height: 24px; /* fixed height to avoid shifting */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* Standardized title */
.staff-card-title {
  font-size: 12px;
  color: #333;
  text-align: center;
  width: 100%;
  margin: 5px 0 10px;
  height: 18px; /* fixed */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* Clamped info */
.staff-main {
  overflow: hidden;
  height: 100%;
  z-index: 1;
}
.staff-card-info {
  font-size: 12px;
  color: #111;
  text-align: justify;
  line-height: 1.4;
  padding: 0 5px;
  overflow: hidden;

  display: -webkit-box;
  display: box;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;

  max-height: calc(1.4em * 4);
  flex-grow: 1;
}

/* Button pinned in place */
.staff-card-btn {
  border: 1px solid #da6522;
  background: none;
  padding: 6px 12px;
  color: #da6522;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 12px;
  margin-top: 10px;
  align-self: flex-start;
  text-decoration: none;
}

.staff-card-btn:hover {
  background-color: #da6522;
  color: #fff;
}

/* END OF STAFF CARDS */
/* School Policies CSS */
.campus {
  margin: 50px auto;
  padding: 20px;
  width: 80%;
  background-color: #ffffffcb;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.226);
}
.campus-image {
  display: block;
  width: 70%;
  max-height: 260px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.226);
  background-color: #d5d9d2;
  margin-bottom: 20px;
  margin: auto;
}

.campus-info {
  margin: 20px auto;
  font-size: 14px;
  line-height: 1.8;
  text-align: justify;
}

/* student registration */
.regis-info {
  margin: 10px 100px;
  padding: 30px 100px;
  background-color: #fafafa;
  text-align: justify;
  line-height: 1.9;
}
.registration-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e27535;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid #e27535;
  padding: 10px 20px;
  margin-top: 30px;
  transition: 0.3s ease-in-out;
  text-align: left;
}

.registration-button i {
  color: #e27535;
  font-size: 20px;
}

.registration-button:hover {
  background-color: #a2bd5b;
  color: white;
}

.registration-button:hover i {
  color: white;
}
/* HOW TO APPLY STEPS */
.apply-steps {
  background-color: #ac8c6e48;
  display: block;
  width: 100%;
  margin: 100px 70px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.226);
}
.apply-step-block {
  padding: 20px;
}

.apply-step-header {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 10px;
  padding-left: 10px;
  border-left: 5px solid #e27535;
}

.apply-step-content {
  font-size: 16px;
  line-height: 1.9;
  text-align: left;
  padding-left: 10px;
}
/* END OF APPLY STEPS */
/* PROGRAMS */
.program-container,
.main-staff {
  margin: 100px 0px;
}
.ourstaff-header {
  color: white;
  font-size: 35px;
  margin: 10px;
}
.main-staff {
  margin-top: 100px;
  padding: 50px;
  width: 100%;
  color: white;
  background-color: #4d8684;
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
}
.contact-us-header {
  padding: 50px;
  width: 100%;
  color: white;
  background-color: #4d8684;
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
}
.program-header {
  margin: 0;
  padding: 50px;
  width: 100%;
  color: white;
  background-color: #6eacaa;
  font-size: 35px;
  font-weight: bold;
}
.staff-intro {
  color: white;
  font-size: 16px;
  margin: 10px;
  width: 80%;
  line-height: 1.9;
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
}

.programs {
  background-color: #fff3f37e;
  display: block;
  width: 100%;
  margin: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* GRID */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.program-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.226);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  height: 400px; /* Fixed height for uniform layout */
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
}
.program-card h4 {
  text-align: center;
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
}
.program-card:hover {
  transform: translateY(-5px);
}

.program-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
}

.program-title {
  font-size: 18px;
  font-weight: bold;
  color: #304b5c;
  margin-bottom: 8px;
  text-align: center !important;
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
}

.program-desc {
  font-size: 14px;
  color: #333;
  flex-grow: 1; /* Pushes the button down */
  margin-bottom: 20px;
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
}

.program-button {
  font-size: 14px;
  align-self: center;
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid #304b5c;
  color: #304b5c;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
  opacity: 0;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Optional: slight delay */
}

.program-button:hover {
  background-color: #18636d;
  color: white;
}

/* END OF PROGRAMS */
/* PROGRAM INFO  */
.program-info {
  max-width: 1300px;
  margin: 40px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-color: #e1e3e475;
  display: block;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.226);
}

.program-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-icon-small {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(19%) sepia(81%) saturate(4694%)
    hue-rotate(342deg) brightness(90%) contrast(94%);
}

.program-name {
  font-size: 28px;
  font-weight: bold;
  color: #304b5c;
  margin: 0;
}

.program-divider,
.apply-divider {
  border: none;
  border-top: 3px solid #a2bd5b;
  margin: 15px 0;
  width: 100%;
}

.program-desc {
  font-size: 14px;
  color: #333;
  margin-bottom: 30px;
}

.program-body {
  display: block;
  gap: 30px;
  align-items: center;
  margin: auto;
  justify-content: center;
}

.program-image {
  width: 500px;
  height: 340px;
  object-fit: cover;
  background-color: #c4c9c2;
  border: 1px solid #ccc;
  margin: auto 20px;
}

.program-details {
  flex: 1;
  font-size: 16px;
  color: #222;
  text-align: justify;
  margin: 10px 40px;
}
.program-details ul {
  text-align: left;
  line-height: 2;
  padding: 10px;
  margin: 0;
}
.program-details p {
  line-height: 1.2;
}
.return-button {
  display: inline-block;
  margin: 40px auto 0 auto;
  padding: 15px 30px;
  background-color: #6eacaa;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  border: none;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.return-button:hover {
  background-color: #459290;
}
/* END OF PROGRAM DETAILS */
/* CONTACT US CSS */
.contact-us {
  margin-top: 100px;
}
.contact-section {
  max-width: 960px;
  margin: 70px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 2px 5px #3d5756;
  border-radius: 10px;
}

.contact-header {
  color: #304b5c;
  font-size: 25px;
  font-weight: bold;
}

.contact-divider {
  border: none;
  border-top: 2px solid #ffa94d;
  margin: 10px 0 30px 0;
}

.contact-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 300px;
}

.contact-left p,
.contact-right p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.contact-right .sub-heading {
  font-weight: bold;
  color: #389140;
  margin-bottom: 5px;
}

.section-group hr {
  border: none;
  border-top: 1px solid #888;
  margin-bottom: 10px;
}

.contact-footer {
  margin-top: 40px;
  font-size: 14px;
  color: #333;
}

.contact-footer a {
  color: #208520;
  text-decoration: none;
}

.contact-footer a:hover {
  text-decoration: underline;
}
/* END OF CONTACT US */

/* UPDATES PAGE */
.updates-section {
  margin-top: 100px;
}

.update-container {
  max-width: 1500px;
  margin: 20px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background: rgba(255, 255, 255, 0.514); /* semi-transparent white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border-radius: 12px;
  border: 1px solid rgba(90, 90, 90, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.update-title {
  font-size: 18px;
  color: #304b5c;
  font-weight: bold;
  margin-bottom: 10px;
}

.update-divider {
  border: none;
  border-top: 2px solid #a2bd5b;
  margin-bottom: 20px;
}

.update-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.update-image {
  width: 200px;
  height: 240px;
  object-fit: cover;
  background-color: #c4c9c2;
  border: 1px solid #ccc;
}

.update-content {
  flex: 1;
  font-size: 14px;
  color: #222;
  text-align: justify;
  line-height: 1.9;
}

.update-date {
  text-align: right;
  font-size: 13px;
  color: #333;
  font-style: italic;
}
@keyframes growHighlight {
  0% {
    transform: scale(0.95);
    opacity: 0;
    background-color: rgba(255, 235, 59, 0.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    background-color: transparent;
  }
}

.highlight-grow {
  animation: growHighlight 0.6s ease forwards;
}
/* RESPONSIVE */
@media screen and (min-width: 700px) and (max-width: 1900px) {
  .carousel-container {
    height: auto;
  }
  .panel-list a {
    text-align: center;
    font-size: 25px;
  }
  .panel-list i {
    font-size: 60px;
  }
  .panel-list .panel-desc {
    font-size: 18px;
  }
  .news-updates-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center cards in row */
    gap: 10px; /* spacing between cards */
  }

  .card {
    max-width: 400px;
    margin: 10px;
  }
  .banner {
    font-size: 50px;
  }
}
@media screen and (min-width: 400px) and (max-width: 1100px) {
  .page-panel {
    display: block;
    align-items: center;
    margin: auto;
  }
  .panel-item {
    margin: 10px auto;
    display: block;
    width: 60%;
  }
  /* toggle side-panel */
  .side-toggle-btn {
    display: block;
    opacity: 100%;
  }

  .side-panel {
    display: none;
    position: fixed;
    top: 150px;
    right: 0; /* ✅ open from the right */
    z-index: 998;
    background: rgba(255, 255, 255, 0.3); /* semi-transparent white */
    backdrop-filter: blur(10px); /* blurred background */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 10px; /* optional: rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.2); /* optional: subtle border */
    width: 270px;
    height: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
  }
  .side-panel a {
    background-color: white;
    font-size: 20px;
  }

  .side-panel.slide-in {
    display: block;
    animation: slideIn 0.3s forwards;
  }

  .side-panel.slide-out {
    animation: slideOut 0.3s forwards;
  }
  .about-info,
  .tile-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mission-vision-main {
    width: 80%;
  }

  .tile-container {
    width: 100%;
    margin: 0;
  }
  .apply-step-header {
    font-size: 24px;
  }
  .apply-steps {
    width: 100%;
    margin: 80px 0;
    padding: 0%;
  }
  .update-container {
    flex-direction: column; /* Stack content vertically */
    width: 90%; /* Responsive width */
    gap: 15px; /* Space between elements */
  }
}
@media screen and (min-width: 400px) and (max-width: 650px) {
  .carousel-container {
    height: 500px;
    margin: 0;
  }
  .carousel img {
    height: 500px;
  }
  .banner {
    font-size: 18px;
    padding: 30px 0px;
  }
  .panel-container {
    margin: auto;
    padding: auto;
    display: flex;
  }
  .panel-list {
    display: block;
    align-items: center;
    margin: auto;
  }
  .panel-list a {
    text-align: center;
    font-size: 16px;
    align-items: center;
  }
  .panel-list i {
    font-size: 40px;
  }
  .panel-list .panel-desc {
    font-size: 12px;
  }
  .news-updates-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center cards in row */
    gap: 10px; /* spacing between cards */
  }

  .card {
    max-width: 400px;
    margin: 10px;
  }
  .updates {
    font-size: 90px;
  }
  /* PANEL */

  .page-panel {
    display: block;
    align-items: center;
    margin: auto;
  }
  .panel-item {
    margin: 10px auto;
    display: block;
  }
}

@media screen and (min-width: 50px) and (max-width: 699px) {
  .carousel-container {
    height: auto;
  }
  .panel-container {
    display: block;
    padding: auto;
  }
  .updates {
    font-size: 18px;
  }
  /* ABOUT */
  .about-container,
  .update-container {
    flex-direction: column; /* Stack content vertically */
    width: 90%; /* Responsive width */
    gap: 15px; /* Space between elements */
  }
  /* PANEL */

  .page-panel {
    display: block;
    align-items: center;
    margin: auto;
  }
  .panel-item {
    margin: 10px auto;
    display: block;
  }
  .image-page-banner .banner-text {
    font-size: clamp(30px, 4vw, 50px);
  }
}
@media screen and (min-width: 200px) and (max-width: 900px) {
  .image-page-banner .banner-text {
    font-size: clamp(40px, 4vw, 50px);
  }
  .contact-us {
    margin: 100px auto;
    width: 90%;
  }
  .program-info {
    width: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.226);
  }
  .carousel-text-overlay {
    width: 80%;
  }
  .carousel-text-overlay p {
    font-size: 18px;
  }
}
@media screen and (min-width: 50px) and (max-width: 690px) {
  .dot {
    width: 10px;
    height: 10px;
  }
  .panel-container {
    display: block;
    padding: auto;
  }
  .panel-list a {
    text-align: center;
    font-size: 18px;
  }
  .panel-list i {
    font-size: 50px;
  }
  .panel-list .panel-desc {
    font-size: 14px;
  }

  /* Container centers content and stacks it */
  .container {
    display: flex;
    flex-direction: column; /* stack children vertically */
    align-items: center; /* center children horizontally */
    padding: 20px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  /* Inner wrapper takes full width */
  .news-updates-container {
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
    padding: 0;
    box-sizing: border-box;
  }

  /* Card: full width, stacked, with vertical spacing */
  .card {
    width: 100%;
    max-width: 100%;
    margin: 10px 0; /* vertical spacing between cards */
    box-sizing: border-box;
  }
  .updates {
    font-size: 20px;
    margin: 20px;
  }

  /* SECTION */
  .div-section.no-pic h3 {
    font-size: 18px;
  }
  .div-section.with-pic {
    flex-direction: column; /* Stack vertically */
    align-items: center; /* Center on small screens */
    text-align: justify; /* Optional: center text */
  }

  .div-section.with-pic img {
    width: 70%;
    max-width: 300px; /* Optional: max width for mobile layout */
  }
  /* ABOUT */
  .image-page-banner .banner-image {
    height: 100vh;
    object-fit: cover;
    object-position: center;
  }
  .image-page-banner .banner-text {
    font-size: clamp(40px, 4vw, 50px);
  }
  .about-container {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .about-info {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mission-vision-main {
    margin: 0;
  }
  .tile-container {
    width: 70%;
    margin: 0;
  }

  .header {
    font-size: 26px;
    margin: 20px 0;
    padding-left: 15px;
    border-left: 5px solid #e8710f;
    width: 100%;
    box-sizing: border-box;
  }

  .pbody {
    width: 100%;
    box-sizing: border-box;
  }

  .pbody p {
    font-size: 13px;
    padding: 0 20px;
    line-height: 1.7;
    text-align: justify;
    margin: 10px 0;
    box-sizing: border-box;
  }

  /* Responsive image styling */
  .pbody img {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 20px auto;
    float: none;
    box-sizing: border-box;
  }
  /* ABOUT PANEL */

  .page-panel {
    display: block;
    align-items: center;
    margin: auto;
  }
  .panel-item {
    margin: 10px auto;
    display: block;
  }
  /* toggle side-panel */
  .side-toggle-btn {
    display: block;
    opacity: 60%;
  }

  .side-panel {
    display: none;
    position: fixed;
    top: 150px;
    right: 0; /* ✅ open from the right */
    z-index: 998;
    background: rgba(255, 255, 255, 0.3); /* semi-transparent white */
    backdrop-filter: blur(10px); /* blurred background */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 10px; /* optional: rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.2); /* optional: subtle border */
    width: 270px;
    height: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
  }
  .side-panel a {
    background-color: white;
    font-size: 20px;
    border: #e07400 solid 1px;
  }

  .side-panel.slide-in {
    display: block;
    animation: slideIn 0.3s forwards;
  }

  .side-panel.slide-out {
    animation: slideOut 0.3s forwards;
  }
  .p-sub {
    margin: 20px 0;
    padding: 0;
    text-align: justify;
  }
  .tile-title {
    margin: 40px 10px;
  }
  .tile-container {
    width: 100%;
    margin: 0;
  }
  .staff-main {
    width: 90%;
    margin: 70px 0;
    padding: 0;
  }
  .staff-card {
    margin: auto;
    width: 80%;
    height: auto;
  }
  /* staff info page */

  .our-staff-main {
    margin: 70px 0;
    padding: 0;
    height: auto;
  }
  .staff-container {
    margin: auto;
    display: block;
    width: 80%;
    height: auto;
    align-items: center;
  }
  .staff .staff-img {
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 80%;
    height: auto;
    margin: 20px auto;
  }
  .staff {
    padding: auto;
    align-items: center;
  }
  .staff-name {
    font-size: 28px;
  }
  .staff-title {
    text-align: center;
  }
  .staff-info .info {
    text-align: justify;
    margin: auto;
  }
  .back-btn {
    font-size: 12px;
    padding: 10px 20px;
  }
  /* campus */
  .campus {
    margin: 70px 0;
    width: 90%;
  }
  .campus-header {
    font-size: 20px;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
  }
  .campus-image {
    width: 100%;
    height: 150px;
  }
  .apply-steps {
    width: 100%;
    margin: 80px 0;
    padding: 0%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.226);
  }
  .apply-step-header {
    font-size: 24px;
  }
  /* program */
  .program-card {
    height: auto;
  }
  .program-icon {
    width: 80px;
    height: 80px;
  }
  .program-header {
    font-size: 20px;
    padding: 25px;
  }
  .program-info {
    width: 80%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.226);
  }
  .program-title .program-name {
    font-size: 20px;
  }
  .program-desc {
    text-align: left;
  }
  .program-body {
    display: block;
    align-items: center;
  }
  .program-body .program-image {
    align-items: center;
    justify-content: center;
  }
  .main-staff {
    padding-left: 30px;
  }
  .staff-intro,
  .ourstaff-header {
    margin: 0;
  }
  .staff-intro {
    font-size: 14px;
  }
  .program-image {
    margin: 0;
    padding: 0%;
    width: 100%;
    height: 200px;
  }
  .program-details ul {
    text-align: left;
    font-size: 14px;
    line-height: 2;
    padding: 10px;
    margin: 0;
  }
  .program-details p {
    line-height: 1.2;
    font-size: 14px;
  }
  .return-button {
    font-size: 14px;
  }
  .contact-us {
    margin: 100px auto;
    width: 90%;
  }
  .contact-header {
    font-size: 20px;
  }
  .contact-left p,
  .contact-right p {
    font-size: 14px;
  }
  .update-container {
    flex-direction: column; /* Stack content vertically */
    width: 80%; /* Responsive width */
    gap: 15px; /* Space between elements */
  }
  .update-body {
    display: block;
    align-items: center;
    justify-content: center;
    margin: auto;
  }
  .update-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%; /* or your desired width */
  }
  .updates-section .program-header {
    font-size: 18px;
  }

  /* REGISTRATION FORM */
  .regis-info {
    margin: 20px auto;
    width: 90%;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.226);
  }
  .header {
    margin: 30px 10px;
  }
  .regis-info hr {
    margin: 10px;
  }
  .regis-info p {
    margin: auto;
    padding: 20px;
    font-size: 14px;
  }
  .registration-button {
    font-size: 14px;
    position: relative;
    margin: 20px 20px;
    padding: auto;
  }
  .staff-card-grid {
    grid-template-columns: repeat(auto-fill, 250px);
  }
}

/* ANIMATIONS */
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideNavbarDown {
  from {
    top: -100px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeftBounce {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    transform: translateX(10px);
  }
  80% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes slideInLeftSmooth {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.social-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
}

.social-item {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 15px;
  background: #fffaf0;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: box-shadow 0.3s ease;
}

.social-item:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.social-item img {
  width: 45px;
  height: 45px;
  margin-right: 15px;
  flex-shrink: 0;
}

.social-item a {
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #0066cc;
}

.description {
  margin-top: 5px;
  font-size: 14px;
  color: #444;
}

/* --------------------
       RESPONSIVE SETTINGS
       -------------------- */

/* Tablets */
@media (max-width: 768px) {
  .social-item {
    padding: 12px;
  }

  .social-item img {
    width: 40px;
    height: 40px;
  }

  .social-item a {
    font-size: 17px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .social-item {
    flex-direction: row;
    text-align: left;
  }

  .social-item img {
    width: 35px;
    height: 35px;
    margin-right: 12px;
  }

  .social-item a {
    font-size: 16px;
  }

  .description {
    font-size: 13px;
  }
}
