/* =====================
   HERO SECTION (COLLAB HERO)
   ===================== */
.resource-hero-overlay {
    position: absolute;
    bottom: 0;
    top: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.resource-hero-content {
    padding: 0px 64px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
}

.resource-hero-overlay h1 {
    font-weight: 500;
  font-size: 40px;
  max-width: 480px;
  margin-bottom: 12px;
}

.resource-hero-overlay p {
    font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  max-width: 480px;
}

/* =====================
   FEATURED SECTION
   ===================== */
/* Grid Layout - 2 columns, 3 rows */
.resource-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 24px;
    overflow-x: auto;
}

/* First Card: Spans 2 columns AND 2 rows */
.resource-layout > :first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.featured-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 0%;
    max-width: 95%;

}

.resource-layout > :not(:first-child) .featured-image img {
    width: 441px;
}

/* Card Image Styling */
.featured-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Overlay */
.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

/* Typography */
.article-tag {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 16px;
}

/* =====================
   FILTERS SECTION
   ===================== */
.resource-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-search-wrapper {
    width: 58%;
    position: relative;
}

.resource-search-wrapper input {
    padding: 16px 20px;
    background: #efefef;
    font-weight: 500;
    font-size: 18px;
    width: 100%;
    border-radius: 100px;
    color: #898989;
    border: none;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 22px;
}

.filter-dropdown {
    display: flex;
    gap: 8px;
}

.filter-trigger {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    border-radius: 100px;
    border: none;
    gap: 16px;
    background: #efefef;

}

.filter-text {
    font-weight: 500;
    font-size: 18px;
}


.custom-select {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filter-trigger {

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 45px;
    cursor: pointer;
}

.select-arrow {

    position: absolute;
    right: 16px;

    width: 12px;
    height: 12px;

    pointer-events: none;
}

/* =====================
   RESOURCES LIST SECTION (RECENTS)
   ===================== */
.resources-list {
    margin-top: 90px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.resource-card {
    flex: 0 0 calc(33.333% - 14px);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 600px;
    width: 400px;
}

.resource-card-image {
   
}

.resource-card-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.resource-card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 24px;
    flex-direction: column;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.resource-type {
    display: flex;
}

.type-badge {
    font-weight: 600;
    font-size: 16px;
    padding: 10px 24px;
    border-radius: 100px;
    color: white;
    background: #1d6dd0;
    border: none;
    height: fit-content;
}

.type-badge.type-report    a {
  color: white;
  text-decoration: none;

}

.resource-meta {
    font-weight: 500;
    font-size: 16px;
    color: white;
}

.resource-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.4;
    color: white;
    margin-top: 16px;
}

/* =====================
   CTA SECTION
   ===================== */
.resource-cta-section {
    background: url(/wp-content/themes/twentyten/asset/images/offering-banner.png);
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.resource-cta-content {
    display: flex;
    flex-direction: column;
    gap: 120px;
    max-width: 488px;
}

.resource-cta-text {
    max-width: 385px;
}

.resource-cta-text h2 {
    font-weight: 600;
    font-size: 40px;
    line-height: 52px;
}

.resource-cta-text p {
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
}

/* =====================
   MOBILE (max-width: 768px)
   ===================== */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .resource-hero-overlay h1 {
        font-size: 32px;
    }

    .resource-hero-overlay p {
        font-size: 16px;
        line-height: 25px;
    }

    .resource-hero-content {
        padding: 0 24px;
    }

    /* Filters Mobile */
    .resource-filters {
        flex-direction: column;
        gap: 16px;
    }

    .resource-search-wrapper {
        width: 100%;
    }

    .filter-dropdown {
        width: 100%;
        gap: 4px;
    }

    .filter-trigger {
        padding: 16px 20px;
    }

    .filter-text {
        font-size: 16px;
    }

    /* Resources List Mobile */
    .resources-list {
        margin-top: 32px;
        gap: 24px;
    }

    .resource-card {
        flex: none;
        max-width: 354px;
    }

    .resource-type {
        justify-content: flex-start;
    }

    .resource-meta {
        font-size: 14px;
    }

    .resource-title {
        font-size: 20px;
    }

    /* Featured Layout Mobile */
    .resource-layout {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0px -24px;
        padding: 0px 24px;
    }

    /* Hide scrollbar */
    .resource-layout::-webkit-scrollbar {
        display: none;
    }

    .resource-layout > :first-child {
        min-width: 269px;
    }

    .resource-layout > :not(:first-child) .featured-image img {
        width: 314px;
    }

    /* Typography Mobile */
    .article-tag {
        font-style: Medium;
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0%;
        margin-bottom: 10px;
    }

    .resource-layout > :first-child .featured-title {
        font-weight: 600;
        font-size: 20px;
        line-height: 100%;
        letter-spacing: 0%;
    }

    .featured-title {
        font-weight: 600;
        font-size: 20px;
        line-height: 100%;
        letter-spacing: 0%;
    }

    /* CTA Section Mobile */
    .resource-cta-text h2 {
        font-size: 32px;
        line-height: 40px;
    }

    .resource-cta-text p {
        font-size: 16px;
        line-height: 28px;
    }
}