.diseases-hero {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.diseases-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.disease-filters {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-pill {
    padding: 10px 20px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-pill:hover {
    background: #F8F9FA;
}

.filter-pill.active {
    background: #E74C3C;
    color: white;
    border-color: #E74C3C;
}

.diseases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
    gap: 20px;
    margin-bottom: 40px;
}

/* Tablet & Desktop: 3 columns */
@media (min-width: 768px) {
    .diseases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Desktop: Keep 3 columns with larger gap */
@media (min-width: 1024px) {
    .diseases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.disease-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.disease-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.disease-image {
    height: 200px;
    background: linear-gradient(45deg, #FFE5E5, #FFCCCC);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
}

.disease-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.severity-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.disease-content {
    padding: 20px;
}

.disease-title {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 10px;
}

.disease-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #7F8C8D;
}

.disease-description {
    color: #5D6D7E;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-view, .btn-view-display {
    display: none; /* ซ่อนปุ่มเพราะ card คลิกได้ทั้งใบแล้ว */
    width: 100%;
    padding: 12px;
    background: #E74C3C;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.3s;
    pointer-events: none; /* Card handles the click */
}

.disease-card:hover .btn-view,
.disease-card:hover .btn-view-display {
    background: #C0392B;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    font-size: 16px;
}

.search-btn {
    padding: 12px 30px;
    background: #E74C3C;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    color: #2C3E50;
    margin-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* ⭐ Already handled by Mobile First approach above ⭐ */
    
    .disease-card {
        border-radius: 12px;
    }
    
    .disease-image {
        height: 150px;
        font-size: 40px;
    }
    
    .disease-content {
        padding: 12px;
    }
    
    .disease-content h3 {
        font-size: 1rem;
    }
    
    .filter-pills {
        flex-direction: column;
    }
    
    .search-box {
        flex-direction: column;
    }
}

/* Small Mobile (≤480px) - Compact */
@media (max-width: 480px) {
    /* Grid already 1 column from Mobile First approach */
    
    .disease-image {
        height: 120px;
        font-size: 35px;
    }
    
    .disease-content {
        padding: 10px;
    }
    
    .disease-content h3 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

/* Additional styles from archive-diseases.php */
            .diseases-pagination .page-numbers {
                display: flex;
                list-style: none;
                padding: 0;
                margin: 0;
                gap: 8px;
                flex-wrap: wrap;
                justify-content: center;
            }
            .diseases-pagination .page-numbers li { margin: 0; }
            .diseases-pagination .page-numbers a,
            .diseases-pagination .page-numbers span {
                display: inline-block;
                padding: 10px 16px;
                background: white;
                border: 2px solid #E8E8E8;
                border-radius: 8px;
                color: #2C3E50;
                text-decoration: none;
                font-weight: 500;
                transition: all 0.3s;
            }
            .diseases-pagination .page-numbers a:hover,
            .diseases-pagination .page-numbers .current {
                background: #E74C3C;
                border-color: #E74C3C;
                color: white;
            }
