* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.container-exam-page {
    max-width: 1400px;
    margin: 0 auto;
    background: #F7F5F2;
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

/* Header */
.header-exam-list {
    text-align: center;
}

.header-exam-list h1 {
    background: #9C2D2D;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    
}

.header-exam-list p {
    color: #666;
    margin: 0 auto;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Filter and Search Section */
.filter-search-section {
    background: #f3f1f0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0d8c8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.box-search-result {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    width: 65%;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9C2D2D;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: #FAFAFA;
    border: 2px solid #ddd;
    border-radius: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #9C2D2D;
    box-shadow: 0 0 0 3px rgba(229, 32, 32, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
    display: flex;
    align-items: center;
}

.filter-btn i {
    margin-right: 8px;
}

.filter-btn:hover {
    transform: translateY(-3px);
    border-color: #9C2D2D;
    box-shadow: 0 5px 15px rgba(229, 32, 32, 0.1);
}

.filter-btn.active {
    background: #9C2D2D;
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(229, 32, 32, 0.2);
}

/* Results Count */
.results-count {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 15px;
    border: 1px solid #ddd;
}

.count-text {
    color: #666;
}

.count-number {
    color: #9C2D2D;
    margin: 0 5px;
}

/* Category Containers */
.category-container {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-container:hover {
    transform: translateY(-5px);
}

/* Container Header */
.category-header {
    padding: 5px 7px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.category-title {
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i {
    font-size: 1rem;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

/* Exam Grid in Each Container */
.category-exams {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Exam Card */
.exam-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.exam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.exam-name {
    color: #222;
}

.exam-type {
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    color: #555;
}

.exam-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Card Buttons */
.card-actions {
    display: flex;
    gap: 10px;
}

.card-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-btn i {
    margin-right: 6px;
}

.info-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
}

.info-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.register-btn {
    background: linear-gradient(135deg, #F7AD45, #E52020);
    color: white;
}

.register-btn:hover {
    background: linear-gradient(135deg, #E52020, #F7AD45);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 32, 32, 0.3);
}

/* Different Colors for Containers */

/* IELTS - Soft Pink */
.ielts-container {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
}
.ielts-container .category-header {
    background: linear-gradient(135deg, #f48fb1 0%, #e91e63 100%);
}
.ielts-container .register-btn {
    background: linear-gradient(135deg, #f48fb1, #e91e63);
}
.ielts-container .register-btn:hover {
    background: linear-gradient(135deg, #e91e63, #f48fb1);
}

/* TOEFL - Soft Blue */
.toefl-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}
.toefl-container .category-header {
    background: linear-gradient(135deg, #64b5f6 0%, #1976d2 100%);
}
.toefl-container .register-btn {
    background: linear-gradient(135deg, #64b5f6, #1976d2);
}
.toefl-container .register-btn:hover {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
}

/* PTE - Soft Green */
.pte-container {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
.pte-container .category-header {
    background: linear-gradient(135deg, #81c784 0%, #388e3c 100%);
}
.pte-container .register-btn {
    background: linear-gradient(135deg, #81c784, #388e3c);
}
.pte-container .register-btn:hover {
    background: linear-gradient(135deg, #388e3c, #81c784);
}

/* GRE - Soft Orange */
.gre-container {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}
.gre-container .category-header {
    background: linear-gradient(135deg, #ffb74d 0%, #f57c00 100%);
}
.gre-container .register-btn {
    background: linear-gradient(135deg, #ffb74d, #f57c00);
}
.gre-container .register-btn:hover {
    background: linear-gradient(135deg, #f57c00, #ffb74d);
}

/* GMAT - Soft Purple */
.gmat-container {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}
.gmat-container .category-header {
    background: linear-gradient(135deg, #ba68c8 0%, #7b1fa2 100%);
}
.gmat-container .register-btn {
    background: linear-gradient(135deg, #ba68c8, #7b1fa2);
}
.gmat-container .register-btn:hover {
    background: linear-gradient(135deg, #7b1fa2, #ba68c8);
}

/* Other - Warm Gray */
.other-container {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
}
.other-container .category-header {
    background: linear-gradient(135deg, #9e9e9e 0%, #616161 100%);
}
.other-container .register-btn {
    background: linear-gradient(135deg, #9e9e9e, #616161);
}
.other-container .register-btn:hover {
    background: linear-gradient(135deg, #616161, #9e9e9e);
}

/* Colors for New Categories */
.oxford-container .category-header {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
}

.oet-container .category-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.microsoft-container .category-header {
    background: linear-gradient(135deg, #00a4ef, #0078d7);
    color: white;
}

.cisco-container .category-header {
    background: linear-gradient(135deg, #1ba0d7, #0f7cb6);
    color: white;
}

.dell-container .category-header {
    background: linear-gradient(135deg, #007db8, #005d8f);
    color: white;
}

.ellt-container .category-header {
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
}

.fortigate-container .category-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.vmware-container .category-header {
    background: linear-gradient(135deg, #607d8b, #455a64);
    color: white;
}

/* Different Colors for Containers */

/* 1 - Soft Pink */
.container-1 {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
}
.container-1 .category-header {
    background: linear-gradient(135deg, #f48fb1 0%, #e91e63 100%);
}
.container-1 .register-btn {
    background: linear-gradient(135deg, #f48fb1, #e91e63);
}
.container-1 .register-btn:hover {
    background: linear-gradient(135deg, #e91e63, #f48fb1);
}

/* 2 - Soft Blue */
.container-2 {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}
.container-2 .category-header {
    background: linear-gradient(135deg, #64b5f6 0%, #1976d2 100%);
}
.container-2 .register-btn {
    background: linear-gradient(135deg, #64b5f6, #1976d2);
}
.container-2 .register-btn:hover {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
}

/* 3 - Soft Green */
.container-3 {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
.container-3 .category-header {
    background: linear-gradient(135deg, #81c784 0%, #388e3c 100%);
}
.container-3 .register-btn {
    background: linear-gradient(135deg, #81c784, #388e3c);
}
.container-3 .register-btn:hover {
    background: linear-gradient(135deg, #388e3c, #81c784);
}

/* 4 - Soft Orange */
.container-4 {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}
.container-4 .category-header {
    background: linear-gradient(135deg, #ffb74d 0%, #f57c00 100%);
}
.container-4 .register-btn {
    background: linear-gradient(135deg, #ffb74d, #f57c00);
}
.container-4 .register-btn:hover {
    background: linear-gradient(135deg, #f57c00, #ffb74d);
}

/* 5 - Soft Purple */
.container-5 {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}
.container-5 .category-header {
    background: linear-gradient(135deg, #ba68c8 0%, #7b1fa2 100%);
}
.container-5 .register-btn {
    background: linear-gradient(135deg, #ba68c8, #7b1fa2);
}
.container-5 .register-btn:hover {
    background: linear-gradient(135deg, #7b1fa2, #ba68c8);
}

/* 6 - Warm Gray */
.container-6 {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
}
.container-6 .category-header {
    background: linear-gradient(135deg, #9e9e9e 0%, #616161 100%);
}
.container-6 .register-btn {
    background: linear-gradient(135deg, #9e9e9e, #616161);
}
.container-6 .register-btn:hover {
    background: linear-gradient(135deg, #616161, #9e9e9e);
}

/* Colors for New Categories */
.container-7 .category-header {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
}

.container-8 .category-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.container-9 .category-header {
    background: linear-gradient(135deg, #00a4ef, #0078d7);
    color: white;
}

.container-10 .category-header {
    background: linear-gradient(135deg, #1ba0d7, #0f7cb6);
    color: white;
}

.container-11 .category-header {
    background: linear-gradient(135deg, #007db8, #005d8f);
    color: white;
}

.container-12 .category-header {
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
}

.container-13 .category-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.container-14 .category-header {
    background: linear-gradient(135deg, #607d8b, #455a64);
    color: white;
}

/* Base style for header */
.category-header {
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.category-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #ddd;
    margin-top: 30px;
    display: none;
}

.no-results i {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 25px;
}

.no-results h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-results p {
    color: #888;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Details Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #222;
    font-size: 1rem;
    font-weight: 700;
}

.modal-type {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.modal-body {
    padding: 25px;
}

.modal-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.modal-details {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    color: #777;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.detail-label i {
    margin-right: 8px;
    font-size: 1rem;
    color: #E52020;
}

.detail-value {
    color: #222;
    font-weight: 700;
    font-size: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.modal-tag {
    padding: 6px 14px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
}

.modal-footer {
    padding: 20px 25px 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.modal-btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #F7AD45, #E52020);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.modal-btn i {
    margin: 0 auto;
    font-size: 1.1rem;
}

.modal-btn:hover {
    background: linear-gradient(135deg, #E52020, #F7AD45);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(229, 32, 32, 0.2);
}

.close-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 15px;
}

.close-btn:hover {
    color: #E52020;
}

/* Responsive */
@media (max-width: 768px) {
    .header-exam-list h1 {
        font-size: 1rem;
    }
    
    .box-search-result {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .category-exams {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }
    
    .category-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .exam-card {
        height: 170px;
        padding: 20px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .header-exam-list h1 {
        font-size: 1.6rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .exam-card {
        height: 160px;
        padding: 18px;
    }
    
    .exam-name {
        font-size: 1.1rem;
    }
    
    .card-btn {
        padding: 10px;
        font-size: 0.8rem;
    }
}

.hidden-category {
    display: none;
}
