/* css/retreats_resources.css - Additions for Resources Page */

.resource-filters { /* Similar to class-filters */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white-space);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
}
.resource-filters .filter-group label {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: var(--neutral-dark);
}
.resource-filters .filter-group select {
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--neutral-medium);
    min-width: 200px;
}
.resource-filters .button-secondary {
    padding: 10px 20px;
}

/* Resources Grid Styling */
.resources-grid {
    gap: 25px; /* Adjust as needed */
}

.resource-item { /* Uses .card-sm */
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.resource-item-icon-type .resource-type-icon {
    width: 50px; /* Adjust size as needed */
    height: 50px;
    margin-bottom: 15px;
    opacity: 0.7;
    /* Ensure your SVGs are styled for fill color via CSS or inline if needed */
    fill: var(--primary-color);
}

.resource-item-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    min-height: 2.6rem; /* For 2 lines of text to align cards */
}

.resource-type-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.resource-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--neutral-dark);
    margin-bottom: 15px;
    min-height: 4.5rem; /* Approx 3 lines to help align cards */
    flex-grow: 1;
}

.resource-item-content .button {
    width: 100%;
    margin-top: auto; /* Pushes button to the bottom */
    font-size: 0.9em;
    padding: 10px 15px;
}

/* Modal for Resource Content */
#modal-resource-body {
    max-height: 70vh;
    overflow-y: auto;
    text-align: left; /* Ensure content in modal is readable */
    line-height: 1.7;
}
#modal-resource-body h4 { /* If you add a title within the modal */
    color: var(--primary-color);
    margin-bottom: 1rem;
}


/* Responsive adjustments for resources */
@media (max-width: 992px) {
    .resources-grid.grid-cols-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}
@media (max-width: 768px) {
    .resource-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .resource-filters .filter-group select, .resource-filters .button {
        width: 100%;
    }
}

