/* Main CSS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
}

/* Navbar */
header {
  background: #111;
  padding: 15px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffcc00;
}

.nav-links {
  display: flex;
  list-style: none;
}

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

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #ffcc00;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

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

/* Mobile menu */
.menu-toggle {
  display: none;
  color: white;
  font-size: 1.8em;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  background: url("https://www.rappler.com/tachyon/2023/12/UAAP86-MBB-EVAN-NELLE-1679.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.btn {
  background: #ffcc00;
  color: #111;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

/* Fade in animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1s ease-in 0.3s forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 1s ease-in 0.6s forwards;
}

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

/* About */
.about {
  padding: 100px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #111;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 10px;
}

.about-img img {
  width: 450px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

/* Programs */
.programs {
  padding: 80px 40px;
  background: #f8f8f8;
  text-align: center;
}

.programs h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.program-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.program {
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.program:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.program-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.program img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.program:hover img {
  transform: scale(1.1);
}

.program-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 204, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.program:hover .program-overlay {
  opacity: 1;
}

.program-overlay i {
  font-size: 3em;
  color: #111;
  animation: bounce 1s infinite;
}

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

.program h3 {
  margin: 15px 0 10px;
  color: #111;
}

.program p {
  color: #666;
  margin-bottom: 15px;
}

/* Learn More Button */
.learn-more-btn {
  background: #ffcc00;
  color: #111;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.learn-more-btn:hover {
  background: #111;
  color: #ffcc00;
  transform: scale(1.05);
}

.learn-more-btn:active {
  transform: scale(0.95);
}

/* Program Details (Expandable) */
.program-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin 0.5s ease;
  text-align: left;
  margin-top: 0;
}

.program.expanded .program-details {
  max-height: 500px;
  margin-top: 20px;
}

.program-details h4 {
  color: #111;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.program-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.program-details li {
  padding: 8px 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-details li i {
  color: #ffcc00;
  font-size: 0.9em;
}

.program-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #f0f0f0;
}

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

.stat-number {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffcc00;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

.program.expanded .learn-more-btn {
  background: #111;
  color: #ffcc00;
}

.program.expanded .learn-more-btn::after {
  content: ' Less';
}

.learn-more-btn::after {
  content: '';
}

/* Contact */
.contact {
  padding: 80px 40px;
  background: #111;
  color: white;
  text-align: center;
}

.contact-info {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item i {
  color: #ffcc00;
  font-size: 1.3em;
  transition: transform 0.3s ease;
}

.contact-item:hover i {
  transform: scale(1.2);
}

.contact-item a {
  color: #ffcc00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Footer */
footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: #111;
    width: 200px;
    border-radius: 5px;
  }

  .nav-links.active {
    display: flex;
  }

  .about .container {
    flex-direction: column;
    text-align: center;
  }

  .about-img img {
    width: 100%;
    max-width: 400px;
  }

  .hero h1 {
    font-size: 2em;
  }
  .hero p {
    font-size: 1em;
  }

  .program-list {
    grid-template-columns: 1fr;
  }
}