/* Three Cards Component Styles */
.three-cards {
  padding: 120px 0 64px;
  background: #ffffff;
}

.three-cards .container {
  margin: 0 auto;
  padding: 0;
}

.three-cards .section-heading {
  font-size: 54px;
  font-weight: 550;
  font-family: var(--font-family-title);
  margin: 0 0 32px 70px;
  text-align: left;
}

/* Grid Layout - Single row of 3 cards */
.three-cards .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #CBC9D1;
}

/* Card Styles */
.three-cards .card {
  background: #ffffff;
  padding: 48px 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  height: 369px;
  border-right: 1px solid #CBC9D1;
}

/* Remove right border on last card */
.three-cards .card:last-child {
  border-right: none;
}

/* Card header (hidden on desktop, used for accordion on mobile) */
.three-cards .card-header {
  display: none;
}

/* Card toggle (chevron) - hidden on desktop */
.three-cards .card-toggle {
  display: none;
}

/* Card content - visible on desktop */
.three-cards .card-content {
  flex-direction: column;
  gap: 0;
  flex: 1;
}

/* Desktop only - always show card content */
@media screen and (min-width: 1025px) {
  .three-cards .card-content {
    display: flex !important;
  }
}

.three-cards .card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(315deg, #C37A32 1.49%, #9C6425 20.73%, #C28F4E 73.39%, #C68E4D 87.72%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 16px;
}

.three-cards .card-icon img {
  object-fit: contain;
  filter: brightness(0) invert(1);
  /* Make icons white */
}

.three-cards .card-title {
  font-size: 26px;
  font-family: var(--font-family-title);
  font-weight: 550;
  margin: 48px 0 8px 0;
  color: var(--text-default-primary);
}

.three-cards .card-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.three-cards .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: auto;
  line-height: 24px;
  font-family: var(--font-family-title);
  font-weight: 550;
}

.three-cards .card-link:hover {
  color: #d4af37;
}

.three-cards .card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.three-cards .card-link:hover svg {
  transform: translateX(3px);
}

/* Responsive Design */
@media screen and (max-width: 1040px) {
  .three-cards {}

  .three-cards .section-heading {
    font-size: 34px;
    line-height: 40px;
    margin: 0 0 28px 40px;
  }

  .three-cards .cards-grid {
    grid-template-columns: 1fr;
    border: 1px solid #CBC9D1;
    border-bottom: 0;
  }

  /* Transform cards into accordion */
  .three-cards .card {
    padding: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #CBC9D1;
    gap: 0;
  }

  .three-cards .card:last-child {
    border-bottom: none;
  }

  /* Show card header as accordion button */
  .three-cards .card-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 40px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
  }

  .three-cards .card-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
  }

  /* Hide icon and title in card-content on mobile (they're in header) */
  .three-cards .card-content .card-icon,
  .three-cards .card-content .card-title {
    display: none;
  }

  .three-cards .card-icon {
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .three-cards .card-icon img {
    width: 18px;
  }

  .three-cards .card-title {
    font-size: 22px;
    line-height: 32px;
    margin: 0;
  }

  .three-cards .card-toggle {
    display: flex !important;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
  }

  .three-cards .card-toggle svg {
    width: 100%;
    height: 100%;
  }

  .three-cards .card-header.active .card-toggle {
    transform: rotate(180deg);
  }

  /* Card content (description and link) */
  .three-cards .card-content {
    padding: 0 32px 24px 88px;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .three-cards .card-description {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 20px;
  }

  .three-cards .card-link {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .three-cards {
    padding: 96px 0 40px;
  }

  .three-cards .section-heading {
    font-size: 34px;
    line-height: 40px;
    margin: 0 0 24px 20px;
    width: 90%;
  }

  .three-cards .card-header {
    padding: 24px 20px;
  }

  .three-cards .card-header-content {
    gap: 16px;
  }

  .three-cards .card-title {
    font-size: 22px;
    line-height: 32px;
  }

  .three-cards .card-content {
    padding: 0 24px 20px 24px;
  }

  .three-cards .card-description {
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 20px;
  }
}