/**
 * Tips & Solutions Section - REWRITTEN
 * Node ID: 100-65303
 * Based on Figma design specs
 *
 * Layout:
 * - Container: 1440px max-width with 240px padding
 * - Title: 44px Bold, center aligned
 * - Grid: 4 columns × 2 rows, 24px gap
 * - Card: 342px width, border #D1D1D1, 12px radius
 * - Image: 192px height
 * - Content: #F7F7F8 background, 16px padding
 */

/* =============================================
 * SECTION CONTAINER
 * ============================================= */

.tips-section {
  position: relative;
  width: 100%;
  padding: 0 240px 80px; /* Match header padding */
}

.tips-section__container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px; /* Gap from Figma */
}

/* =============================================
 * HEADER
 * Node ID: 100-65304-307
 * ============================================= */

.tips-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tips-section__title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tips-section__title {
  font-family: var(--font-primary);
  font-size: 44px;
  font-weight: 700; /* Bold */
  line-height: 1.4;
  color: #3D3D3D;
  text-align: center;
  margin: 0;
  width: 100%;
}

/* =============================================
 * CONTENT WRAPPER
 * Node ID: 100-65309
 * ============================================= */

.tips-section__content {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Gap between rows */
}

/* =============================================
 * GRID ROW
 * Node ID: 100-65310, 100-65339
 * ============================================= */

.tips-section__row {
  display: flex;
  gap: 24px; /* Gap between cards */
  width: 100%;
}

/* =============================================
 * TIP CARD
 * Node ID: 100-65311
 * ============================================= */

.tips-card {
  flex: 1;
  min-width: 0;
  border: 1px solid #D1D1D1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  text-decoration: none;
}

.tips-card:hover {
  border-color: #F56011;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.tips-card__image {
  width: 342px;
  height: 192px;
  overflow: hidden;
  position: relative;
}

.tips-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Card Content */
.tips-card__content {
  background: #F7F7F8;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tips-card__text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tips-card__description {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400; /* Regular */
  line-height: 1.4;
  color: #3D3D3D;
  margin: 0;
}

.tips-card__link {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400; /* Regular */
  line-height: 1.4;
  color: #F56011;
  margin: 0;
  cursor: pointer;
  transition: var(--transition-normal);
}

.tips-card:hover .tips-card__link {
  text-decoration: underline;
}

/* =============================================
 * VIEW ALL BUTTON
 * Node ID: 100-65368
 * ============================================= */

.tips-section__button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.tips-section__button {
  width: 205px;
  background: var(--color-bg-white);
  border: 1px solid #F56011;
  border-radius: 999px;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.tips-section__button-text {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700; /* Bold */
  line-height: 22px;
  color: #F56011;
  white-space: nowrap;
}

.tips-section__button:hover {
  background: #F56011;
}

.tips-section__button:hover .tips-section__button-text {
  color: #FFFFFF;
}

.tips-section__button:active {
  transform: scale(0.98);
}

/* =============================================
 * RESPONSIVE BEHAVIOR
 * ============================================= */

/* Tablet (768px - 1439px) */
@media (max-width: 1439px) {
  .tips-section {
    padding: 0 40px 60px; /* Match header tablet padding */
  }

  .tips-section__title {
    font-size: 36px;
  }

  .tips-section__row {
    gap: 20px;
  }

  .tips-section__content {
    gap: 20px;
  }

  .tips-card__image {
    width: 100%;
    height: 180px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .tips-section {
    padding: 0 16px 40px; /* Match header mobile padding */
  }

  .tips-section__container {
    gap: 24px;
  }

  .tips-section__title {
    font-size: 28px;
    line-height: 1.3;
  }

  .tips-section__row {
    flex-direction: column;
    gap: 16px;
  }

  .tips-section__content {
    gap: 16px;
  }

  .tips-card__image {
    width: 100%;
    height: 200px;
  }

  .tips-card__content {
    padding: 12px;
    gap: 16px;
  }

  .tips-card__text-wrapper {
    gap: 6px;
  }

  .tips-card__description {
    font-size: 14px;
    line-height: 1.4;
  }

  .tips-card__link {
    font-size: 14px;
  }

  .tips-section__button {
    width: 100%;
  }
}
