/* تنظیمات کلی */
#Wrapper .contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
    padding: 0 1rem;
}

.contact-title-primary {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003087;
    text-align: center;
    margin: 0;
}

.contact-title-secondary {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin: 0;
}

.contact-description {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    width: 100%;
    margin: 0;
}

.search-container {
    max-width: 500px;
    margin: 1rem auto;
    position: sticky;
    top: 140px;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.search-input {
    width: 100%;
    padding: 0.75rem 6rem 0.75rem 1rem;
    border: 2px solid #e8ecef;
    border-radius: 50px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #003087;
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #003087, #0055b7);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(90deg, #002066, #003f87);
}

.search-icon {
    display: none;
}

/* تب‌ها */
.tabs {
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    position: sticky;
    top: 80px;
    z-index: 2;
    direction: rtl;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex-shrink: 0;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    color: #333;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab:hover {
    background: #e8ecef;
}

.tab.active {
    background: linear-gradient(90deg, #003087, #0055b7);
    color: #fff;
    font-weight: 600;
}

.mobile-left-gradient {
    display: none !important;
}

/* جدول */
.class-schedule {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.schedule-title {
    text-align: center;
    line-height: 34px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #003087;
    margin-bottom: 2rem;
}

.schedule-table-wrapper {
    overflow-x: auto;
    position: relative;
}

.schedule-table {
    min-width: 600px;
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
}

.schedule-table thead {
    background: linear-gradient(90deg, #003087, #0055b7);
    color: #fff;
}

.schedule-table thead > tr > th {
    color: #fff !important;
}

.schedule-table tbody {
    background: #f5f6f8;
}

.schedule-table tbody > tr > td {
    color: #002aa0;
}

.schedule-table tbody > tr > td > a {
    color: #0A246A;
}

.schedule-table th, .schedule-table td {
    padding: 1rem;
    border-right: 2px solid #fff;
    font-size: 1rem;
    vertical-align: middle;
}

.schedule-table tbody tr {
    border-bottom: 2px solid #fff;
    transition: background 0.2s ease;
}

.schedule-table tbody tr:hover {
    background: #e8ecef;
}

.price_istaal .original-price {
    text-decoration: line-through;
    text-decoration-color: #0d48a1;
    text-decoration-thickness: 2px;
    color: #666;
}

.discounted-price {
    color: #d32f2f;
    font-weight: 600;
}

.no-courses {
    padding: 2rem;
    font-size: 1.1rem;
    color: #666;
}
  .schedule-table .price_istaal .tuition-grade{
        border: 1px solid #7a81ff;
    }
/* تنظیمات ریسپانسیو */
@media (max-width: 768px) {
    .tabs {
        gap: 0.5rem;
        padding: 0.5rem;
        border-radius: 25px;
        justify-content: space-between;
        flex-wrap: wrap;
        overflow-x: hidden;
    }

    .tab {
        flex: 0 0 calc(33.33% - 0.5rem);
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .contact-title-primary {
        font-size: 1.8rem;
    }

    .contact-title-secondary {
        font-size: 1.2rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .search-container {
        max-width: 90%;
        margin-bottom: 0;
    }

    .search-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .class-schedule {
        padding: 1rem;
        margin: 0 1rem 2rem;
    }

    .schedule-title {
        font-size: 1.5rem;
    }

    .schedule-table th, .schedule-table td {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

@media (max-width: 450px) {
    .tabs {
        padding: 0.3rem;
        top: 72px;
        width: 90%;
    }
    .search-container{top: 145px;}
    .tab {
        flex: 0 0 calc(33.33% - 0.5rem);
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    .contact-title-primary {
        font-size: 1.6rem;
    }

    .contact-title-secondary {
        font-size: 1.1rem;
    }

    .contact-description {
        font-size: 0.9rem;
    }

    .search-input {
        font-size: 0.85rem;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    }

    .search-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .schedule-table th, .schedule-table td {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

@media screen and (min-width: 1500px) {
    #price_page {
        max-width: 95%;
        width: 1500px;
        margin: 0 auto;
    }
}