/* Resources Hub CSS */
/* Container Styles */
.resources-hub-container {
    font-family: "Open Sans", Sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 90px;
}

/* Category Navigation */
.resource-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 4px solid #081A51;
    max-width: max-content;
    margin: 0 auto;
    margin-bottom: 20px;
}

.category-tab {
    padding: 16px 56px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #081A51;
    font-weight: 400;
    position: relative;
}

.category-tab.active {
    color: #081A51;
    font-weight: 700;
    transition: all 0.3s ease;
}

.category-tab:hover:after,
.category-tab.active:after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: #0990CC;
}

/* Filter Section */
.resource-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin-bottom: 30px;
    max-width: 1408px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.filter-label {
    margin-right: 20px;
    min-width: 80px;
}

.filter-dropdown {
    margin-right: 24px;
    min-width: 200px;
    color: #515050;
    font-weight: 400;
    font-size: 16px;
}

.filter-dropdown:last-of-type {
    margin-right: 0;
}

.filter-dropdown select {
    width: 100%;
    padding: 10px 15px;
    margin: 10px 0;
    min-width: 408px;
    border: 1px solid #3F3F3F;
    border-radius: 0;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M0 0L5 6L10 0Z' fill='%23666'/></svg>");
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: right 10px center;
    background-color: white;
    color: #515050;
    font-size: 14px;
    font-weight: 400;
    outline: none;
}

#clear-filters {
    display: none;
    margin-left: auto;
    padding-top: 15px;
    background-color: transparent;
    border: none;
    color: #081A51;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    margin-top: 10px;
    font-weight: 600;
    font-size: 15px;
    line-height: 120%;
    width: 100%;
}

#clear-filters:hover {
    color: #ff0000;
}

.resources-loader {
    display: none;
    text-align: center;
}

/* Resources Results */
.resources-results {
    background-color: #F1F1F1;
    padding: 75px 0;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    grid-gap: 34px 45px;
    max-width: 1408px;
    padding: 0 15px;
    margin: 0 auto;
}

.resource-item {
    overflow: hidden;
    box-shadow: 0px 4px 3px 0px #00000040;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    position: relative;
}

.resource-content {
    padding-top: 32px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 24px;
}

.resource-btn-wrap {
    text-align: center;
    padding-top: 32px;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-image {
    height: 191px;
    overflow: hidden;
    position: relative;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-here {
    color: #0990CC;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    line-height: 120%;
    letter-spacing: 0%;
}

.resource-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 135%;
}

.resource-excerpt {
    font-size: 14px;
    line-height: 1.5;
}

.download-btn {
    display: inline-block;
    text-align: center;
    background-color: #0990CC;
    color: #fff !important;
    text-decoration: none !important;
    padding: 6px 22px;
    font-size: 16px;
    line-height: 150%;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #0052a3;
}

.loading-indicator {
    text-align: center;
    padding: 50px 0;
}

.error {
    color: red;
    text-align: center;
    padding: 50px 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 0;
    color: #666;
    font-size: 18px;
}

/* Pagination */
.paginate-wrapper {
    max-width: 1408px;
    padding: 25px 15px;
    margin: 0 auto;
}

.paginate-wrapper .pagination {
    justify-content: center;
}

.paginate-wrapper .page-numbers {
    padding: 3px 10px;
    margin: 0 5px;
    color: #333;
    transition: background-color 0.5s ease;
}

.paginate-wrapper .page-numbers.current {
    background-color: #0990CC;
    color: #fff;
}

.paginate-wrapper .page-numbers:hover {
    background-color: #0990CC;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 1601px) {
    .category-tab {
        padding: 16px 40px;
    }
}

@media (max-width: 1400px) {
    .category-tab {
        padding: 16px 30px;
    }

    .filter-dropdown select {
        min-width: 300px;
    }
}

@media (max-width: 1200px) {
    .filter-dropdown {
        padding: 0 0;
    }
}

@media (max-width: 1025px) {
    .filter-dropdown {
        margin-bottom: 5px;
        width: 100%;
    }

    .filter-label {
        min-width: 100%;
        margin-bottom: 25px;
        padding-left: 15px;
    }
}

@media (max-width: 991px) {}

@media (max-width: 768px) {
    .resources-hub-container {
        padding-top: 30px;
    }

    .category-tab {
        padding: 16px 16px;
        min-width: 100%;
    }

    .category-tab:hover:after,
    .category-tab.active:after {
        bottom: 0;
    }

    .resource-categories {
        /* padding: 0 15px; */
        /* overflow-x: auto;
        white-space: nowrap;
        display: block;
        border-bottom: none;
        padding: 0 15px;
        margin-left: 0;
        max-width: 100%; */
    }

    .resource-filters {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 15px;
    }

    .filter-label {
        padding-left: 0;
    }

    #clear-filters {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .resources-results {
        padding: 50px 15px;
    }

    .resource-content {
        padding: 20px 25px;
    }

    .resources-grid {
        padding: 0 0;
    }
}