/* Hero Section */
.hero-section {
  background:
    linear-gradient(rgba(22, 106, 234, 0.6), rgba(13, 79, 156, 0.6)),
    url("../images/out-of-school-children-1.png") center/cover no-repeat;
  background-color: #166aea;

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.btn-hero {
  background: white;
  color: #166aea;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.btn-hero:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-hero-secondary:hover {
  background: white;
  color: #166aea;
}

/* News Slider Section */
.news-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-slider {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slides-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 300px;
}

.news-slide {
  min-width: 100%;
  padding: 40px;
  display: flex;
  align-items: center;
  background: white;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.news-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #166aea, #0d4f9c);
}

.news-icon {
  background: linear-gradient(135deg, #166aea 0%, #0d4f9c 100%);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-right: 40px;
  flex-shrink: 0;
}

.news-content h3 {
  color: #0d4f9c;
  margin-bottom: 15px;
  font-size: 24px;
}

.news-content p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.news-date {
  color: #999;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-date i {
  color: #166aea;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #166aea;
  transform: scale(1.2);
}

.slider-nav {
  background: linear-gradient(135deg, #166aea 0%, #0d4f9c 100%);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-nav:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(22, 106, 234, 0.3);
}

/* Stories Section */
.stories-section {
  padding: 80px 0;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.story-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.story-image {
  height: 200px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
  transform: scale(1.05);
}

.story-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-content h3 {
  color: #0d4f9c;
  margin-bottom: 15px;
  font-size: 20px;
  line-height: 1.4;
}

.story-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.story-date {
  color: #999;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more {
  color: #166aea;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #0d4f9c;
  gap: 12px;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #166aea 0%, #0d4f9c 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 18px;
  opacity: 0.9;
}

/* Programs Section */
.programs-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.program-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.program-icon {
  background: linear-gradient(135deg, #166aea 0%, #0d4f9c 100%);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 25px;
}

.program-card h3 {
  color: #0d4f9c;
  margin-bottom: 15px;
  font-size: 22px;
}

.program-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.program-link {
  color: #166aea;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.program-link:hover {
  color: #0d4f9c;
  gap: 12px;
}

/* CTA Section */
.cta-section {
  background:
    linear-gradient(rgba(22, 106, 234, 0.6), rgba(13, 79, 156, 0.6)),
    url("../images/out-of-school-children-2.png") center/cover no-repeat;
  background-color: #166aea;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 0;
}

.cta-content h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 42px;
  }

  .news-slide {
    padding: 30px;
  }

  .news-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-right: 30px;
  }

  .stories-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .news-slide {
    flex-direction: column;
    text-align: center;
    padding: 30px;
    height: auto;
    min-height: 300px;
  }

  .news-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .slides-container {
    height: auto;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-content h2 {
    font-size: 32px;
  }

  .cta-content p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn-hero {
    width: 100%;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 36px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .cta-content p {
    font-size: 16px;
  }
}
