/* ============================================
   Index Page - Specific Styles Only
   Shared styles are in All.css
   ============================================ */

/* Introduction Section */
#intro .introduction {
  font-size: 20px;
  font-family: 'Roboto', sans-serif;
}

/* Metrics Section */
#impact-metrics .metrics-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

#impact-metrics h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#impact-metrics .metrics-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  color: var(--text-color);
}

.metric {
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
  width: 200px;
}

.metric h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.metric p {
  font-size: 1rem;
  color: var(--text-color);
}

/* News & Events Section */
.news-container {
  display: flex;
  gap: 100px;
  flex-wrap: wrap;
  justify-content: center;
}

.news-item {
  perspective: 1000px;
  width: 300px;
}

.news-card {
  width: 350px;
  height: 430px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.news-card:hover {
  transform: scale(1.1);
}

.news-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.news-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  background-color: var(--success-color);
  color: var(--text-light);
  transform: rotateY(180deg);
}

.news-photo {
  width: 100%;
  height: 250px;
  flex-shrink: 0;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.news-card.flipped {
  transform: rotateY(180deg);
}

.news-front h3 {
  padding-top: 10px;
}

button.view-all {
  width: 90px;
  position: relative;
  bottom: 60px;
  
  left: 1020px;
  height: 30px;
  background: var(--secondary-color);
  border: none;
  color: var(--text-light);
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

button.view-all a {
  color: var(--text-light);
}

button.view-all:hover {
  transform: scale(1.1);
  background-color: var(--primary-color);
}

/* Success Stories Section */
#success-stories .stories-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.story {
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 350px;
  height: 430px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.story:hover {
  transform: scale(1.1);
}

.story .story-photo {
  display: flex;
  height: 220px;
}

.story .story-photo img {
  height: 220px;
  width: 310px;
}

.story p {
  font-size: 1rem;
  color: var(--text-color);
  margin: 10px 0 10px 0;
  font-style: italic;
}

.story h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 10px 0 10px 0;
}

/* Partners Section */
#partners .partners-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

#partners img {
  width: 150px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

#partners img:hover {
  transform: scale(1.1);
}
