/* 🌍 Global Styles */
.home {
  font-family: 'Inter', sans-serif;
  color: #222;
  line-height: 1.6;
}

/* 🌅 Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url("/assets/image/rhab9.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-event {
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: #ffd700;
  color: #000;
}
.btn-primary:hover {
  background: #ffcc00;
}

.btn-secondary {
  border: 2px solid #fff;
  color: #fff;
}
.btn-secondary:hover {
  background: #fff;
  color: #000;
}

/* 👩‍💼 About Section */
.about-preview {
  background: linear-gradient(135deg, #f6f8fc 0%, #eef1f7 100%);
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 60px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.about-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.about-text {
  flex: 1 1 400px;
  animation: fadeInUp 1s ease forwards;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  background: linear-gradient(90deg, #2b5876, #4e4376);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.about-text p {
  color: #333;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 25px;
}

.btn-link {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(90deg, #4e4376, #2b5876);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(75, 55, 150, 0.3);
  transition: all 0.3s ease;
}

.btn-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(75, 55, 150, 0.4);
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
  position: relative;
  animation: fadeIn 1.3s ease forwards;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.5s ease;
}

.about-image img:hover {
  transform: scale(1.05) rotate(1deg);
}

/* ✨ Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 30px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

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

/* 🎓 Programs Section */
.programs {
  background: linear-gradient(135deg, #f7f9fb 0%, #eef2f6 100%);
  text-align: center;
  padding: 100px 20px;
}

.programs h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(90deg, #2b5876, #4e4376);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 60px;
  position: relative;
}

.programs h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4e4376, #2b5876);
  margin: 15px auto 0;
  border-radius: 5px;
}

/* 🧩 Program Cards */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  justify-items: center;
}

.program-card {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
  background: #000;
  animation: fadeInUp 1s ease both;
}

.program-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.program-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 30%, transparent);
  color: #fff;
  text-align: left;
  transition: all 0.5s ease;
}

.program-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.program-card:hover img {
  transform: scale(1.1);
  filter: brightness(50%) blur(1px);
}

/* 📆 Events Section */
.events-preview {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef1f7 100%);
}

.events-preview h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(90deg, #2b5876, #4e4376);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 60px;
  position: relative;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  justify-items: center;
}

.event-card {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
  animation: fadeInUp 1s ease both;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.event-card:hover img {
  transform: scale(1.08);
  filter: brightness(50%) blur(1px);
}

/* 💫 CTA Banner */
.cta-banner {
  background: linear-gradient(90deg, #721e1e, #982a4d);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 15px;
}

.cta-banner h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* 📱 Responsive Adjustments */
@media (max-width: 768px) {
  .about-preview {
    flex-direction: column;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .hero p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

