/* Resources Grid Styles */
.resources-grid {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}

.resources-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.resources-grid[data-columns="3"] {
    grid-template-columns: repeat(2, 1fr);
}

.resources-grid[data-columns="4"] {
    grid-template-columns: repeat(2, 1fr);
}

/* Mobile - Single Column */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* Resource Item */
.resource-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.resource-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image Wrapper */
.resource-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #1a1a1a;
}

.resource-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-item:hover .resource-image {
    transform: scale(1.05);
}

/* Dark Overlay */
.resource-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.7) 80%,
        rgba(0, 0, 0, 0.85) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    z-index: 1;
}

/* Resource Type Badge - Pill Style */
.resource-type {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    align-self: flex-start;
    backdrop-filter: blur(4px);
}

/* Resource Content */
.resource-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.resource-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    flex: 1;
}

@media (max-width: 768px) {
    .resource-title {
        font-size: 20px;
    }
}

/* Read More Link */
.resource-read-more {
    display: inline-block;
    color: #F78F20;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.resource-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff8c42;
}

.resource-link:hover .resource-read-more {
    color: #8DC63F;
}

.resource-link:hover .resource-read-more::after {
    background: #8DC63F;
}

/* No Results Message */
.resources-grid-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Pagination Styles */
.resources-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.resources-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.resources-pagination .page-numbers li {
    margin: 0;
}

.resources-pagination .page-numbers a,
.resources-pagination .page-numbers span {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.resources-pagination .page-numbers a:hover {
    background: #ff8c42;
    color: #fff;
    border-color: #ff8c42;
    transform: translateY(-2px);
}

.resources-pagination .page-numbers .current {
    background: #ff8c42;
    color: #fff;
    border-color: #ff8c42;
}

.resources-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    padding: 10px 8px;
}

.resources-pagination .page-numbers .prev,
.resources-pagination .page-numbers .next {
    font-weight: 600;
}

@media (max-width: 640px) {
    .resources-pagination .page-numbers a,
    .resources-pagination .page-numbers span {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 38px;
    }
    
    .resources-pagination .page-numbers {
        gap: 6px;
    }
}

