/* Resource/Downloads page */

.resource-content {
    padding: 40px 0 60px;
}

/* Tab navigation */
.resource-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
    color: #1e3a5f;
}

.tab-btn.active {
    color: #1e3a5f;
    border-bottom-color: #00a79d;
}

/* Tab panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Catalogue cards */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.catalogue-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.catalogue-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.catalogue-icon {
    color: #00a79d;
    margin-bottom: 16px;
}

.catalogue-card h3 {
    font-size: 16px;
    color: #1e3a5f;
    margin: 0 0 16px;
}

/* Download buttons */
.btn-download,
.btn-download-sm {
    display: inline-block;
    background: #00a79d;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-download:hover,
.btn-download-sm:hover {
    background: #008f87;
    color: #fff;
}

.btn-download-sm {
    padding: 5px 14px;
    font-size: 13px;
}

.btn-external {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s;
}

.btn-external:hover {
    color: #0056b3;
}

/* Specs filter */
.specs-filter {
    margin-bottom: 24px;
}

.specs-filter label {
    font-weight: 600;
    margin-right: 10px;
    color: #1e3a5f;
}

.specs-filter select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

/* Spec categories */
.spec-category-title {
    font-size: 18px;
    color: #1e3a5f;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.spec-subcategory-title {
    font-size: 15px;
    color: #555;
    margin: 16px 0 8px 12px;
}

.spec-list {
    margin-left: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.spec-item:hover {
    background: #f8f9fa;
}

.spec-name {
    font-size: 14px;
    color: #333;
    font-family: monospace;
}

/* Industry standards */
.standards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.standard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.standard-item:hover {
    background: #f8f9fa;
}

.standard-title {
    font-size: 14px;
    color: #333;
    flex: 1;
    margin-right: 20px;
}

/* Empty state */
.empty-message {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .resource-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .catalogue-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .spec-item,
    .standard-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
