﻿/*body {
    font-family: Tahoma, sans-serif;
    direction: rtl;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}*/

/* گروه‌ها */
.group-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
.group-card {
    flex: 1 1 22%;
    min-width: 50px;
    max-width: 100px;
    background: #fff;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}
.group-card:hover {
    transform: translateY(-5px);
    background-color: #f0f8ff;
}
.group-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}
.group-card .group-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

/* تخصص‌ها */
.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}
.expertise-card {
    flex: 1 1 22%;
    min-width: 50px;
    max-width: 220px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.expertise-card:hover {
    transform: scale(1.03);
}
.expertise-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}
.expertise-name {
    font-size: 15px;
    font-weight: 500;
    margin-top: 10px;
    color: #333;
}
.request-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}
.request-btn:hover {
    background-color: #0056b3;
}
.note-text {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

/* مودال */
.modal {
display: none;
   position:sticky;
    inset: 0;
    left: 50%;
    z-index: 100000;
    width: 560px;
    margin: -150px 16px 0 -280px;
}
.modal-content {
    background: #fff;
    /*background-color: rgba(0,0,0,.5);*/
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}
.modal-input {
    width: 90%;
    padding: 10px;
    margin: 10px auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.modal-textarea {
    width: 90%;
    padding: 10px;
    margin: 10px auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}
.close {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 35px;
    cursor: pointer;
    color: #ff001f;
}
.button {
    background-color: #28a745;
    color: white;
    padding: 10px;
    width: 90%;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 15px;
    cursor: pointer;
}
.button:hover {
    background-color: #218838;
}

@media (max-width: 991px) {
    .group-card, .expertise-card {
        flex: 1 1 30%;
    }
}
@media (max-width: 767px) {
    .group-card, .expertise-card {
        flex: 1 1 45%;
    }
}
@media (max-width: 480px) {
    .group-card, .expertise-card {
        flex: 1 1 90%;
    }
}
#expertise-section {
  display: none; /* اولش مخفی باشه */
}
.highlighted {
    background-color: #ffeaa7;
    transition: background-color 0.5s ease;
}