/* Resources Section */
.resources-section {
    padding: 6rem 0;
    min-height: calc(100vh - 80px);
    background-color: var(--bg-light);
}

/* Header and Filter Styles */
.resources-header {
    margin-bottom: 2rem;
}

.resources-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.filter-form {
    background: var(--mbdi-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--mbdi-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Resource Card */
.resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--mbdi-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.resource-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-image i {
    font-size: 3rem;
    color: var(--text-muted);
}

.resource-card:hover .resource-image img {
    transform: scale(1.05);
}

.resource-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.resource-category {
    background: var(--mbdi-blue-light);
    color: var(--mbdi-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.resource-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: #e1f5fe;
    color: #0288d1;
}

.resource-content h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    color: var(--text-dark);
    line-height: 1.4;
}

.resource-details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.resource-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.resource-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.read-more {
    color: var(--mbdi-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--blue-dark);
}

.read-more:hover i {
    transform: translateX(4px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
    text-decoration: none !important;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--mbdi-blue);
    color: #ffffff !important;
    border: 2px solid var(--mbdi-blue);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #004d99;
    border-color: #004d99;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 153, 0.2);
}

.btn-secondary {
    background-color: #e9ecef;
    color: #495057 !important;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #dde2e6;
    border-color: #dde2e6;
    color: #343a40 !important;
}

/* No Results State */
.no-resources {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--mbdi-white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.no-resources i {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-resources p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Filter Button Group */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Date Filter Styles */
.date-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-section {
        padding: 4rem 1rem;
    }

    .resources-header h1 {
        font-size: 2rem;
    }

    .filter-row,
    .date-filter-row {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .filter-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
} 