/* Resources Page Specific Styles */

.categories-nav {
    background: var(--bg-light);
    padding: 30px 20px;
    position: sticky;
    top: 65px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.cat-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cat-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: var(--white);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.cat-btn:hover {
    border-color: var(--primary-green);
    background: rgba(135, 244, 171, 0.1);
}

.cat-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--primary-blue);
}

.resources-section {
    padding: 60px 20px;
    background: var(--white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: var(--white);
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.resource-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.resource-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.resource-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.resource-type,
.resource-format {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.resource-type {
    background: rgba(25, 51, 102, 0.1);
    color: var(--primary-blue);
}

.resource-format {
    background: rgba(135, 244, 171, 0.2);
    color: var(--primary-blue);
}

.btn-download {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-download:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Resource Modal */
.resource-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .categories-nav {
        position: static;
    }

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

    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .resource-card {
        padding: 20px;
    }

    .cat-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}