/* =========================
   CATEGORY HERO
========================= */

.category-hero {
    padding: 100px 0 70px;
    background-image: url("/static/images/banner_background.png");
    border-bottom: 1px solid #e5e7eb;
    background-repeat: no-repeat; /* Prevents the image from tiling */
      background-size: cover;      /* Scales the image to cover the entire container */
      background-position: center;   /* Centers the image within the container */
      background-color: #cccccc;   /* Fallback color if the image can't load */
}


.btn-text{
  background-color: #32BAA6;
  color: white;
  padding: 5px;
  width: fit-content;
  border-radius: 5px;
  font-family: 'Manrope', sans-serif;
  font-size:12px;
  text-decoration: none;
}

.category-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c7be5;
    font-weight: 500;

}

.category-hero h1 {
    font-size: 42px;
    margin: 12px 0 6px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 10px;
}

.category-hero h3{
    padding: 10px;
    font-weight: 100px;
}
.category-hero p {
    max-width: 600px;
    color: #6b7280;
    margin-bottom: 18px;
    font-family: 'Manrope', sans-serif;
}

.blog-count {
    font-size: 14px;
    color: #9ca3af;
}

/* =========================
   CATEGORY GRID
========================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Card */

.category-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* Image */

.card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.05);
}

/* Content */

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-family: 'Manrope', sans-serif;
    line-height: 1.4;
}

.card-content p {
    font-size: 14px;
    color: #6b7280;
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    margin-bottom: 18px;
}

.read-more {
    margin-top: auto;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #2c7be5;
}

/* =========================
   SECTION SPACING
========================= */

.section-spacing {
    margin-top: 90px;
    margin-bottom: 80px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-hero {
        padding: 70px 0 50px;
    }

    .category-hero h1 {
        font-size: 28px;
    }
}
