/* =======================================================
   CATEGORY_RESOURCES.CSS — Dedicated Resource Category View
   ======================================================= */

.category-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-bottom: 50px;
    box-sizing: border-box;
}

.resource-item-card {
    border: 5px solid #000;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 4px 0 #000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #000;
}

.resource-item-header {
    padding: 24px;
    border-bottom: 5px solid #000;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    box-sizing: border-box;
}

.resource-item-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.resource-item-name {
    margin: 0;
    font-family: 'Arial Black', Gadget, sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
    color: #000;
}

.resource-item-category {
    font-family: sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.resource-item-badge {
    background: #000;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Arial Black', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.resource-item-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.resource-item-desc {
    margin: 0;
    font-family: sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: bold;
    color: #111;
}

.resource-item-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px dashed #ddd;
}

.resource-detail-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
}

.resource-detail-label {
    font-family: 'Arial Black', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.65;
    min-width: 80px;
    flex-shrink: 0;
}

.resource-detail-link {
    color: #000;
    font-weight: 900;
    text-decoration: underline;
    word-break: break-all;
    transition: opacity 0.2s ease;
}

.resource-detail-link:hover {
    opacity: 0.7;
}

.resource-detail-val {
    color: #222;
    font-weight: bold;
}

.resource-item-footer {
    padding: 16px 24px;
    border-top: 5px solid #000;
    background: #fff;
    box-sizing: border-box;
}

.resource-item-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: #000;
    color: #fff;
    border: 4px solid #000;
    border-radius: 50px;
    font-family: 'Arial Black', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.resource-item-link-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* --- RESPONSIVE OVERRIDES (TABLET & MOBILE) --- */
@media (max-width: 1024px) {
    .category-resources-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .resource-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
