:root {
  --primary: #05468b;
  --secondary: #f42a41;
  --light: #f8f9fa;
  --dark: #212529;
  --dark-light: #4a5568;
  --gray: #6c757d;
  --light-gray: #ced3d82f;
  --text: #48515b;
  --accent: #4299e1;
  --accent-dark: #3182ce;
  --accent-light: #63b3ed;
  --biiss-blue: #05468b;
  --biiss-dark: #1a2a3a;
  --biiss-light: #f8f9fa;
  --border: #e2e8f0;
}

.section-title {
  font-size: 34px;
  font-weight: 500;
  font-family: $secondaryFont;
  line-height: 42px;
  color: $blackColor;
}

.section-subtitle {
  display: inline-block;
  color: #f42a41;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 14px;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 15px;

  img {
    max-height: 22px;
    opacity: 0.7;
  }

  .divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, $primaryColor, transparent);
  }
}

.white-divider {
  img {
    max-height: 22px;
    opacity: 1;
    filter: brightness(0) invert(1);
  }

  .divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, $whiteColor, transparent);
  }
}

.view-all-btn {
  font-size: 16px;
  font-weight: 400;
  font-family: $secondaryFont;
  border: 1px solid $primaryColor;
  border-radius: 5px;
  padding: 10px 20px;
  color: $primaryColor;
  &:hover {
    background-color: $primaryColor;
    color: #fff;
  }
}
.section-full-padding {
  padding: 60px 0;
}

.section-top-padding {
  padding-top: 30px;
}

.section-half-padding {
  padding: 30px 0;
}

.container-fluid {
  padding: 0 40px !important;
  max-width: 1360px;
}

.border-right {
  border-right: 1px solid #c3c3c354;
}

.card-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  @include custom-shade;

  &:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);

    .card-img img {
      transform: scale(1.05);
    }
  }

  .card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
  }

  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: $primaryColor;
    font-family: $secondaryFont;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    max-width: fit-content;
  }

  // .card-badge.upcoming {
  //     background: var(--accent);
  // }

  // .card-badge.past {
  //     background: var(--secondary);
  // }

  .card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: $primaryColor;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  h4 {
    font-size: 1.25rem;
    font-weight: 500;
    color: $blackColor;
    margin-bottom: 12px;
    font-family: $secondaryFont;
    line-height: 1.4;
    @include text-ellips;
    &:hover {
      text-decoration: underline;
    }
  }

  h4 a {
    color: inherit;
    text-decoration: underline;
    transition: all 0.3s ease;
  }

  h4 a:hover {
    color: $primaryColor;
  }
  p {
    font-size: 16px;
    color: $textColor;
    @include text-ellips-2;
  }

  .card-excerpt {
    color: $textColor;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
  }

  .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #c3c3c361;
    padding-top: 10px;
    margin-top: 10px;
  }

  .card-type {
    font-size: 0.875rem;
    color: $textColor;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .card-cta {
    color: $primaryColor;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: $secondaryFont;
  }

  .card-cta:hover {
    gap: 10px;
  }
}
