/**
 * NSIA Homepage Styles
 * Based on Public Portal Wireframes v3
 */

/* Hero Section */
.nsia-hero {
  background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 50%, #1a5f2a 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0;
  width: 100%;
}

.nsia-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.nsia-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.nsia-hero__title {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nsia-hero__subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin: 0 0 30px;
  font-weight: 400;
}

.nsia-hero__cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.nsia-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nsia-hero__btn--primary {
  background: #fff;
  color: #1a5f2a;
}

.nsia-hero__btn--primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nsia-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.nsia-hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.nsia-hero__btn--accent {
  background: #e94560;
  color: #fff;
}

.nsia-hero__btn--accent:hover {
  background: #d63851;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

/* Quick Stats Section */
.nsia-quick-stats {
  padding: 50px 20px;
  background: #fff;
}

.nsia-quick-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.nsia-quick-stats__title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1a5f2a;
  margin: 0 0 30px;
}

.nsia-quick-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nsia-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.nsia-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nsia-stat-card__icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.nsia-stat-card__value {
  font-size: 32px;
  font-weight: 700;
  color: #1a5f2a;
  margin-bottom: 5px;
}

.nsia-stat-card__label {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Upcoming Events Section */
.nsia-upcoming-events {
  padding: 50px 20px;
}

.nsia-upcoming-events__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.nsia-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.nsia-section-header__title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.nsia-section-header__link {
  color: #1a5f2a;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nsia-section-header__link:hover {
  text-decoration: underline;
}

.nsia-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Event Card */
.nsia-event-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.nsia-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nsia-event-card__image {
  height: 180px;
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.nsia-event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsia-event-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
}

.nsia-event-card__badge--religious {
  background: #e8f5e9;
  color: #2e7d32;
}

.nsia-event-card__badge--kids {
  background: #ffebee;
  color: #c62828;
}

.nsia-event-card__badge--family {
  background: #fff3e0;
  color: #ef6c00;
}

.nsia-event-card__badge--youth {
  background: #e3f2fd;
  color: #1565c0;
}

.nsia-event-card__badge--education {
  background: #fce4ec;
  color: #c2185b;
}

.nsia-event-card__badge--social {
  background: #f3e5f5;
  color: #7b1fa2;
}

.nsia-event-card__content {
  padding: 20px;
}

.nsia-event-card__date {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.nsia-event-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px;
  line-height: 1.3;
}

.nsia-event-card__location {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nsia-event-card__footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nsia-event-card__price {
  font-weight: 600;
  color: #1a5f2a;
}

.nsia-event-card__price--free {
  color: #2e7d32;
}

.nsia-event-card__btn {
  padding: 8px 16px;
  background: #1a5f2a;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nsia-event-card__btn:hover {
  background: #0d3d18;
}

/* Community Section */
.nsia-community {
  padding: 50px 20px;
  background: #f8f9fa;
}

.nsia-community__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.nsia-community__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.nsia-community-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.nsia-community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nsia-community-card__icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.nsia-community-card__title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px;
}

.nsia-community-card__text {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.6;
}

.nsia-community-card__link {
  color: #1a5f2a;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nsia-community-card__link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .nsia-hero__title {
    font-size: 32px;
  }

  .nsia-hero__subtitle {
    font-size: 18px;
  }

  .nsia-quick-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nsia-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nsia-community__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nsia-hero {
    padding: 40px 15px;
  }

  .nsia-hero__title {
    font-size: 28px;
  }

  .nsia-hero__btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .nsia-section-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .nsia-events-grid,
  .nsia-community__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nsia-quick-stats__grid {
    grid-template-columns: 1fr;
  }

  .nsia-hero__cta {
    flex-direction: column;
  }

  .nsia-hero__btn {
    width: 100%;
    justify-content: center;
  }
}
