/* ===================================
   Homepage Specific Styles
   =================================== */

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(25, 118, 165, 0.9), rgba(38, 50, 56, 0.8)),
    url("../images/hero/niyex-index-front.webp") center / cover;
  color: var(--surface);
  text-align: center;
  padding: var(--space-6) 0;
}

.hero__content {
  max-width: 800px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

@media (min-width: 768px) {
  .hero {
    min-height: 700px;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--surface);
  padding: var(--space-4);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow-lg);
}

.service-card__icon {
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.service-card__description {
  color: var(--muted);
  line-height: 1.6;
}

/* News Grid */
.news-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow-lg);
}

.news-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card__content {
  padding: var(--space-3);
}

.news-card__category {
  display: inline-block;
  padding: 4px var(--space-1);
  background: var(--accent);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: var(--space-1);
}

.news-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.news-card__date {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.news-card__excerpt {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

/* Add background color to Featured Projects section */
.featured-projects {
  background: linear-gradient(135deg, rgba(25, 118, 165, 0.03), rgba(255, 183, 77, 0.05));
}

/* Gallery Preview */
.gallery-preview {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
  .gallery-preview {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-preview__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

 /* News & Insight */
/* .section--alt {
  background: linear-gradient(135deg, rgba(82, 116, 134, 0.9), rgba(38, 50, 56, 0.8)),
    url("../images/hero/index-insight.webp") center / cover;
  position:relative ;
    background-size: cover;
  background-position: center;
  background-attachment: fixed; 
} */

/* News Section Title & Subtitle */
#news-title {
  color: var(--surface);
}

.news-section .section__subtitle {
  color: var(--surface);
}

/* Mission Section */

/*.section--alt-1{
  background: linear-gradient(135deg, rgba(25, 118, 165, 0.9), rgba(38, 50, 56, 0.8)),
    url("../images/hero/niyex-index-front.webp") center / cover;
}*/

.mission {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.mission__text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
/* Make View All News button white */
.news-section .btn--outline {
  color: var(--surface);
  border-color: var(--surface);
}

.news-section .btn--outline:hover {
  background: var(--surface);
  color: var(--accent);
}