/* 🌟 Smooth Scroll */
html { scroll-behavior: smooth; }

/* =======================
   🎓 HERO SECTION
======================= */
#hero-modern {
  background: url('/frontend_assets/secondary-hero.jpeg') center/cover no-repeat;
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
}
.hero-content p {
  font-size: 1.2rem;
  margin: 15px 0 25px;
}
.btn-primary {
  background: #ffd166;
  color: #222;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #ffe08a;
  transform: translateY(-3px);
}

/* =======================
   📘 PROGRAMS
======================= */
#programs-modern {
  background: #f9fafb;
  padding: 100px 0;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e3050;
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: #555;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.program-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.program-info {
  padding: 20px;
}
.program-info h3 {
  font-size: 1.3rem;
  color: #1e3050;
  font-weight: 700;
  margin-bottom: 8px;
}
.program-info p {
  color: #555;
  font-size: 1rem;
}

/* =======================
   🌟 STUDENT LIFE
======================= */
#student-life-modern {
  background: #fff;
  padding: 100px 0;
}
.student-life-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}
.life-card {
  background: #f8f9fa;
  width: 300px;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.life-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.life-card i {
  font-size: 2.5rem;
  color: #2a9d8f;
}
.life-card h3 {
  margin-top: 10px;
  color: #1e3050;
  font-weight: 700;
}
.life-card p {
  color: #555;
  margin-top: 10px;
  line-height: 1.5;
}

/* =======================
   🏆 ACHIEVEMENTS
======================= */
#achievements-modern {
  background: #f5f7fa;
  padding: 100px 0;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.achievement-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.achievement-card:hover {
  transform: scale(1.03);
}
.achievement-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(80%);
}
.achievement-content {
  position: absolute;
  bottom: 0;
  color: #fff;
  padding: 20px;
  background: rgba(0,0,0,0.5);
  width: 100%;
}
.achievement-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.achievement-content p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =======================
   🖼️ GALLERY
======================= */
#gallery-modern {
  background: #fff;
  padding: 100px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
.gallery-item h3 {
  color: #fff;
  font-size: 1.2rem;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
  .life-card { width: 90%; }
}
