/* styles.css */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fffef2;
    color: #3b0a0a;
    overflow-x: hidden;
  }
  
header {
  background-color: #8b0000;
  color: white;
  padding: 20px;
}
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
  }
  
  .school-info h1 {
    margin: 0;
    font-size: 1.8em;
  }
  
  .school-info .tagline {
    font-style: italic;
    font-size: 1em;
    color: #ffe17d;
  }

  .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #7a0019;
    margin: 2rem 0 1rem;
  }
  
  .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #7a0019;
    margin: 10px auto 0;
    border-radius: 2px;
  }

/* NAV BAR */
.navbar {
  background-color: #8b0000;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 999;
}

.navbar .menu-toggle {
  display: none;
  background: none;
  color: white;
  font-size: 30px;
  border: none;
  cursor: pointer;
}

/* DESKTOP NAV */
.navbar .nav-links {
  display: flex;
  justify-content: center;
  gap: 3vw;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.navbar .nav-links li {
  margin: 0 15px;
}

.navbar .nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
  color: #ffd700;
}

/* -------- MOBILE NAV ---------- */
@media (max-width: 768px) {
  .navbar .menu-toggle {
    display: block;
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 1001;
    background-color: #8b0000;
    border: 2px solid white;
    border-radius: 30%;
    padding: 5px 10px;
  }

  .navbar .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(to right, #8b0000, #b24b4b);
    position: fixed;
    top: 0;
    right: -100%; /* Start hidden off-screen */
    height: 100vh;
    width: 70%;
    max-width: 300px;
    transition: right 0.4s ease-in-out;
    padding-top: 60px;
    z-index: 1000;
  }

  .navbar .nav-links.open {
    right: 0; /* Slide into view */
  }

  .navbar .nav-links li {
    width: 100%;
    padding: 15px 20px;
  }

  .navbar .nav-links li a {
    display: block;
    width: 100%;
  }
}

/* Important Notice */
.notice-bar {
  width: 100%;
  background-color: #5e0000;
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 1rem;
  position: relative;
  z-index: 500;
  height: 40px;
}

.notice-label {
  padding: 0 20px;
  font-weight: bold;
  white-space: nowrap;
  background-color: #5e0000;
  z-index: 2;
}

.notice-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 100%;
}

.notice-track {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: scroll-oneway 20s linear infinite;
  height: 100%;
  line-height: 40px;
}

.notice-wrapper:hover .notice-track {
  animation-play-state: paused;
}

@keyframes scroll-oneway {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

  
/* Slider */
/* SLIDER FIXED */
.slider {
  position:relative;
  overflow: hidden;
  width: 100vw;
  height: 40%;
}

.slides {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  /* width: calc(100% * 6); for 6 images */
}

.slide {
  min-width: 100%;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
  flex: 0 0 100%;
}

.slide img{
  width: 100%;
  object-fit: contain;
}


.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  color: maroon;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}


/* INTRO */
.intro{
  padding: 3vh 3vw;
  margin: 0;
}

.intro h2{
  font-size: 40px;
  padding: 10px 0;
}

.intro p{
  max-width: 70%;
  margin: auto;
}


/* we at apvp */
.we-at-apvp {
  width: 100%;
  height: 30vh;
  margin: 0;
  padding: 2vh 0;
}

.apvp-content {
  display: flex;
  width: 100%;
  height: 100%; /* Important: makes children match the section height */
  overflow: hidden;
}

.apvp-image {
  width: 50%;
  height: 100%; /* Match parent */
  object-fit: cover;
  border-radius: 30% 0 0 0%;
  z-index: 1;
}

.apvp-text {
  width: 50%;
  height: 100%; /* Fill full height without -webkit-fill-available */
  text-align: left;
  background-color: #f0e6cf;
  border-radius: 0 0% 30% 0;
  padding: 2vw;
  color: #7a0019;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.apvp-text h2 {
  font-size: clamp(30px, 5vw, 60px);
  margin: 0;
  font-weight: bold;
  font-style: italic;
}

.apvp-text p {
  font-size: clamp(15px, 2vw, 25px);
  padding: 0 0 0 0;
}

@media (max-width: 768px) {
  .we-at-apvp{
    height: auto;
  }
  .apvp-content {
    flex-direction: column;
    padding: 2vw;
    height: auto; /* Allow content to grow naturally */
  }
  .apvp-image {
    width: 100%;
    height: 15vh; /* Adjust height as needed for mobile */
    border-radius: 30% 0 0 0%;
  }
  .apvp-text {
    width: 100%;
    height: auto;
    border-radius: 0 0 30% 0;
    padding: 4vw;
    text-align: center;
  }
  .apvp-text h2 {
    font-size: clamp(24px, 6vw, 36px);
  }
  .apvp-text p {
    font-size: clamp(14px, 4vw, 18px);
  }
}



  
  /* Sections */
  section {
    /* padding: 40px 20px; */
    text-align: center;
  }
  
  .announcements ul {
    max-width: 70%;
    margin: auto;
  }
  
  .announcements ul {
    list-style: none;
    padding: 0;
  }
  
  .announcements li {
    padding: 8px;
    font-weight: bold;
  }
  
/* APVP at a glance */
/* background: linear-gradient(to bottom, #fffef2, #fff1c7); */
.apvp-stats {
  padding: 5vh 2vw;
  background: linear-gradient(to bottom, #fffef2, #fff1c7);
  text-align: center;
}

.apvp-stats h2 {
  font-size: 2.5rem;
  color: #7a0019;
  margin-bottom: 30px;
}

.apvp-stats h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #7a0019;
  margin: 10px auto 0;
  border-radius: 2px;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 30px;
}

.stat-card {
  /* background-color: #ffffffd0; */
  padding: 20px;
  border-radius: 10px;
  width: 200px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.stat-number {
  font-size: 3em;
  font-weight: bold;
  color: #772e00;
  display: inline-block;
}

.stat-card p {
  margin-top: 10px;
  font-size: 1em;
  color: #444;
}



  /* Facilities Grid */
  .facilities {
    padding: 4vh 4vw;
    /* background-color: #fffbe7; */
    background: linear-gradient(to bottom, #fff1c7, #ffe37d); /* light creamy tone */
    text-align: center;
  }
  
  .facilities h2 {
    color: #7a0019;
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
  }
  
  .facilities h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #7a0019;
    margin: 10px auto 0;
    border-radius: 2px;
  }
  
  .facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
    justify-content: center; 
    align-items: stretch;
    max-width: 100%;
  }
  
  
  @media (min-width: 1024px) {
    .facility-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  .facility {
    background: linear-gradient(135deg, #ffcdae, #f09c75);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 1 8px 15px rgba(0, 0, 0, 0.356);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
  }
  
  .facility:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .facility img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .facility p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #7a0019;
  }
  
  /* Fade-in animation for cards */
  @keyframes fadeInUp {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
/* A Unit of BKP Group */
.announcements {
  position: relative;
  width: 100%;
  background-image: url('assets/all_images/building4_drone.jpg'); /* Your B/W background image */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 10vh 5vw;
  color: #fff;
  z-index: 1;
}

.announcements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Translucent black overlay */
  z-index: -1;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.1); /* Soft glassmorphic feel */
  border-radius: 10px;
  padding: 2rem;
}

.announcement-text {
  flex: 1 1 60%;
}

.announcement-text h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff;
}

.announcement-text p {
  font-size: clamp(16px, 2vw, 20px);
  color: #f9f9f9;
  line-height: 1.6;
}

.announcement-image {
  flex: 1 1 30%;
  text-align: center;
  animation: popImage 1.5s ease-in-out forwards;
  transform: scale(0.8);
  opacity: 0;
}

.announcement-image img {
  width: 90%;
  /* max-width: 300px; */
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@keyframes popImage {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .announcement-content {
    flex-direction: column;        /* Stack vertically */
    text-align: center;
  }

  .announcement-text {
    order: 1;                      /* Show text first */
    flex: 1 1 100%;
    margin-bottom: 2rem;
  }

  .announcement-image {
    order: 2;                      /* Show image after text */
    flex: 1 1 100%;
  }

  .announcement-image img {
    max-width: 90%;
    margin: 0 auto;
  }
}


/* call button */
.call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745; /* Green */
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.2s ease;
}

.call-button:hover {
  transform: scale(1.1);
  background-color: #218838; /* Darker green on hover */
}


  /* Footer */
  footer {
    background-color: #8b0000;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
  }
  
  @media screen and (max-width: 768px) {
    .header-container {
      flex-direction: column;
      text-align: center;
    }
  
    .logo {
      margin-bottom: 10px;
    }
  }