/* ─── Global & Section Styles ────────────────────────────────────── */
:root {
  /* Inherit brand colors from header.css */
  --section-padding: 4rem 1.5rem;
  --section-max-width: 1100px;
}
.section { max-width: var(--section-max-width); margin: 0 auto; padding: var(--section-padding); }

/* ─── Solutions Header ───────────────────────────────────────────── */
.solutions-header {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: url('../images/solutions/background.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  z-index: 1;
}
.header-overlay { position: absolute; inset: 0; background: rgba(11, 95, 136, 0.7); }
.header-content { position: relative; z-index: 2; }
.solutions-header .section-title { font-size: clamp(2.5rem, 6vw, 3.5rem); color: var(--text-light); }
.solutions-header .section-subtitle { font-size: clamp(1rem, 2.5vw, 1.2rem); color: rgba(255, 255, 255, 0.9); max-width: 600px; margin: 0 auto; }

/* ─── Filter Navigation ──────────────────────────────────────────── */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  background-color: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  background-color: #e2e6ea;
  border-color: #adb5bd;
}
.filter-btn.active {
  color: var(--text-light);
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(11, 95, 136, 0.2);
}

/* ─── Solutions Grid & Cards ─────────────────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.solution-card {
  display: flex;
  flex-direction: column;
  background: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}
.solution-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-blue);
}
.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  color: white;
  font-size: 1.5rem; /* For FontAwesome icons */
}
.solution-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.solution-card .desc {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.6;
  flex-grow: 1; /* Ensures cards in a row have same height */
}

/* ─── Featured Solution Section ────────────────────────────────── */
.featured-section { background-color: var(--background-white); border-radius: 24px; padding-bottom: 0; }
.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.featured-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  color: var(--primary-green);
  background-color: #d4edda;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
}
.featured-text h2 {
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: left;
}
.featured-text p {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.featured-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ─── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  background-color: var(--footer-bg);
  color: var(--text-light);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.cta-section h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
}
.cta-section .btn-primary {
  background-color: var(--accent-yellow); color: var(--text-dark); border-color: var(--accent-yellow);
}
.cta-section .btn-primary:hover {
  background-color: #ffcf40; border-color: #ffcf40; box-shadow: 0 4px 15px rgba(255,196,0,0.2);
}

/* ─── General & Responsive Styles ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .featured-content { grid-template-columns: 1fr; }
  
  /* UPDATED: Keep text first and add spacing above the image on mobile */
  .featured-image {
    margin-top: 2rem;
  }

  .featured-section {
    padding-bottom: 4rem; /* Restores bottom padding for the stacked mobile layout */
  }

  .solution-card,
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 576px) {
  .solution-grid { grid-template-columns: 1fr; }
  .solutions-header { height: 350px; }
}