/* What We Do page specific styles */

/* ------------------------------- */
/* Overview Grid (two columns) */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

/* ------------------------------- */
/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 4px solid rgba(204,85,0,0.1);
}

.program-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 22px 45px rgba(0,0,0,0.16);
}

.program-card .card-icon-svg {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  background: white;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.program-card h3 {
  color: var(--forest-green);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.program-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* Per‑card gradients (matching home page activity cards) */
.program-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(204,85,0,0.14), rgba(255,241,224,0.10));
}
.program-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(34,139,34,0.14), rgba(224,255,237,0.10));
}
.program-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(0,123,191,0.12), rgba(230,243,255,0.08));
}
.program-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(153,102,204,0.12), rgba(244,240,255,0.08));
}

/* ------------------------------- */
/* Counties Grid */
.counties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.county-card {
  background: var(--light-gray);
  padding: 1.8rem 1rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.county-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  background: white;
}

.county-card h3 {
  color: var(--burnt-orange);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.county-card p {
  font-size: 0.9rem;
  color: #555;
}

/* ------------------------------- */
/* Responsive */
@media (max-width: 767px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .counties-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------- */
/* Hero video sizing and alignment fixes */
/* Ensure the hero video always covers the hero container without creating horizontal gaps */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.hero-media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Use min dimensions to guarantee coverage while keeping aspect ratio */
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}

/* Mobile: keep coverage, disable heavy transforms if needed */
@media (max-width: 767px) {
  .hero {
    height: 90vh;
  }
  .hero-media {
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-media {
    min-width: 100%;
    min-height: 100%;
  }
}

/* ------------------------------- */
/* Hero content: center headline, subtitle and CTAs and improve readability */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  color: var(--white);
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.6rem;
  color: var(--white);
  text-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-content .btn {
  display: inline-block;
  margin-top: 0.8rem;
}

/* Make hero play button match and center */
.hero-play {
  display: inline-block;
  margin: 1rem auto 0;
}

@media (max-width: 767px) {
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-content { padding: 0 1.25rem; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 3.4rem; }
}