/* Our Solutions Page Styling */

/* Main containers */
.solutions-intro-section {
  padding: 6rem 0 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.accent-line {
  width: 80px;
  height: 3px;
  background-color: #ad2324;
  margin: 0 auto;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #444;
}

/* Solutions grid styling */
.solutions-grid-section {
  padding: 3rem 0 6rem;
  background-color: #f8f8f8;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Solution card styling */
.solution-card {
  padding: 1.5rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: fit-content !important;
}

.solution-card:hover {
  transform: translateY(-5px);
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.solution-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.projecthub-logo {
  width: 40px;
  height: 40px;
  background-color: #ad2324;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
}

.solution-header h3 {
  font-size: 1.5rem;
  color: #333;
  margin: 0;
  flex-grow: 1;
  position: relative;
}

.solution-header h3::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #ad2324;
  transition: width 0.3s ease;
}

.solution-card:hover .solution-header h3::before {
  width: 60px;
}

.solution-content {
  display: none;
  margin-top: 1rem;
}

.solution-card.active .solution-content {
  display: block;
}

.solution-card.active .icon-plus {
  display: none;
}

.solution-card:not(.active) .icon-minus {
  display: none;
}

.expand-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #ad2324;
}

.expand-btn svg {
  width: 24px;
  height: 24px;
}

.cta-button {
  display: inline-block;
  background-color: #ad2324;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #8f1c1d;
  transform: translateY(-2px);
}

/* Media Queries */
@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 {
    font-size: 3rem;
  }

  .solution-header h3 {
    font-size: 1.75rem;
  }
}

@media (min-width: 992px) {
  .solution-card:first-child {
    grid-column: 1 / 2;
  }

  .solution-card:nth-child(2) {
    grid-column: 2 / 3;
  }

  .solution-card:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .solution-card:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2;
  }
}

@media (max-width: 767px) {
  .solutions-intro-section {
    padding: 4rem 0 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .intro-content p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 1rem;
  }

  .solution-header {
    padding: 1.25rem;
  }

  .solution-content {
    padding: 0 1.25rem;
  }

  .solution-card.active .solution-content {
    padding: 1.25rem;
  }
}
