/* =========================================
   369PIX RESOURCES
========================================= */

.resources-archive {
    background: #f7f8fc;
    padding: 70px 20px 100px;
}

.resources-container {
    width: 100%;
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.resources-header {
    max-width: 100%;
    margin: 0 auto 40px;
    text-align: center;
}

.resources-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #e62b72;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.resources-header h1 {
    margin: 0 0 15px;
    color: #202338;
    font-size: 46px;
    line-height: 1.15;
    font-weight: 700;
}

.resources-header p {
    margin: 0;
    color: #686b7b;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   SEARCH
========================================= */

.resources-search {
    max-width: 720px;
    margin: 0 auto 35px;
}

.resources-search form {
    display: flex;
    background: #ffffff;
    padding: 6px;
    border: 1px solid #e4e6ed;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(30, 35, 60, .06);
}

.resources-search input[type="search"] {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    outline: none;
    background: transparent;
    color: #202338;
    font-size: 15px;
}

.resources-search button {
    min-width: 110px;
    border: 0;
    border-radius: 8px;
    background: #e62b72;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}


/* =========================================
   CATEGORIES
========================================= */

.resources-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.resource-category-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border: 1px solid #e0e2e9;
    border-radius: 30px;
    background: #ffffff;
    color: #4b4e5d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}

.resource-category-link:hover,
.resource-category-link.active {
    border-color: #e62b72;
    background: #e62b72;
    color: #ffffff;
}


/* =========================================
   RESOURCE GRID
========================================= */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}


/* =========================================
   RESOURCE CARD
========================================= */

.resource-card {
    overflow: hidden;
    border: 1px solid #e7e8ee;
    border-radius: 14px;
    background: #ffffff;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(25, 30, 55, .10);
}


/* =========================================
   IMAGE
========================================= */

.resource-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f0f1f5;
}

.resource-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.resource-card:hover .resource-card-image img {
    transform: scale(1.04);
}

.resource-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #888;
    font-size: 14px;
}


/* =========================================
   BADGES
========================================= */

.resource-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
}

.resource-badge.premium {
    background: #202338;
    color: #ffffff;
}

.resource-badge.free {
    background: #ffffff;
    color: #333744;
}


/* =========================================
   CARD CONTENT
========================================= */

.resource-card-content {
    padding: 18px;
}

.resource-card-category {
    margin-bottom: 7px;
    color: #e62b72;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.resource-card-title {
    margin: 0 0 13px;
    font-size: 18px;
    line-height: 1.35;
}

.resource-card-title a {
    color: #202338;
    text-decoration: none;
}

.resource-card-title a:hover {
    color: #e62b72;
}


/* =========================================
   META
========================================= */

.resource-card-meta {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #eeeeF2;
    color: #747787;
    font-size: 12px;
}


/* =========================================
   FORMATS
========================================= */

.resource-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.resource-formats span {
    padding: 4px 7px;
    border-radius: 4px;
    background: #f1f2f6;
    color: #606372;
    font-size: 10px;
    font-weight: 600;
}


/* =========================================
   EMPTY
========================================= */

.resources-empty {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
}

.resources-empty h2 {
    margin-bottom: 10px;
    color: #202338;
}

.resources-empty p {
    color: #777;
}


/* =========================================
   PAGINATION
========================================= */

.resources-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.resources-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0 10px;
    border: 1px solid #e0e2e8;
    border-radius: 7px;
    background: #ffffff;
    color: #333747;
    text-decoration: none;
    font-size: 13px;
}

.resources-pagination .page-numbers.current,
.resources-pagination .page-numbers:hover {
    border-color: #e62b72;
    background: #e62b72;
    color: #ffffff;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .resources-archive {
        padding: 45px 15px 70px;
    }

    .resources-header h1 {
        font-size: 34px;
    }

    .resources-header p {
        font-size: 15px;
    }

    .resources-search form {
        display: block;
        padding: 8px;
    }

    .resources-search input[type="search"] {
        min-height: 48px;
    }

    .resources-search button {
        width: 100%;
        min-height: 45px;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .resource-card-content {
        padding: 14px;
    }

    .resource-card-title {
        font-size: 15px;
    }

}


@media (max-width: 480px) {

    .resources-grid {
        grid-template-columns: 1fr;
    }

}