@font-face {
    font-family: ff;
    src: url('/fonts/IRANSansDN.ttf');
}

@font-face {
    font-family: ss;
    src: url('/fonts/Sahel.ttf');
}

@font-face {
    font-family: vv;
    src: url('/fonts/Vazir.ttf');
}

/* استایل‌های عمومی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: vv, ss, ff, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 28px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

/* استایل هدر */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 0;
    z-index: 1000;
}

@media (min-width: 768px) {
    header {
        position: sticky;
    }
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--third-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-left: 10px;
    color: var(--third-color-dark);
}

.logo img {
    max-width: 125px;
    height: auto;
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 8px;
    background-color: white;
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.search-bar input {
    border: none;
    font-size: 16px;
    margin-right: 10px;
    outline: none;
    flex: 1;
}

.search-bar button {
    border: none;
    background-color: white;
    cursor: pointer;
    border-radius: 50%;
    color: gray;
    border: 1px solid gray;
}

.search-bar i {
    padding: 8px;
    font-size: 13.3px;
}

.user-actions {
    display: flex;
    gap: 20px;
}

.user-actions a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

    .user-actions a:hover {
        color: var(--primary-color);
        transform: translateY(-2px);
    }

.user-actions a i {
    margin-left: 5px;
    font-size: 18px;
}

/* استایل منو */
.main-menu {
    background-color: var(--white);
    border-radius: 10px;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-list {
    display: flex;
    list-style: none;
    justify-content: space-between;
}

.menu-item {
    position: relative;
    padding: 15px 0;
}

.menu-item>a {
    text-decoration: none;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 10px 15px;
    transition: all 0.3s ease;
    display: block;
}

.menu-item>a:hover {
    color: var(--secondary-color);
}

/* کشویی */
.submenu {
    position: absolute;
    top: 100%;
    background-color: var(--white);
    min-width: 200px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    display: none;
    z-index: 100;
}

.menu-item:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.submenu li:not(:last-child) a {
    border-bottom: 1px solid var(--gray);
}

.submenu li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.menu-item:has(a.active) .submenu {
    display: block;
}

.menu-item:has(ul)>a::after {
    vertical-align: bottom;
    font-family: "Font Awesome 6 Pro";
    content: ' \f078';
    text-wrap: nowrap;
}

.menu-item:has(ul)>a {
    cursor: pointer;
}

@media (max-width: 768px) {
    .submenu {
        left: 0;
        right: 0;
    }
}

/* استایل فوتر */
footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--white);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-left: 10px;
    font-size: 18px;
}

.map-container {
    height: 200px;
    background-color: var(--light-gray);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.map-container img {
    max-width: 100%;
    transform: scale(1.2);
}

.certificates {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.certificate {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .certificate i {
    font-size: 36px;
    color: var(--primary-color-light);
} */

.certificate img {
    max-width: 75px;
    max-height: 75px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* رسپانسیو */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        width: 100%;
        max-width: none;
        margin: 10px 0;
    }

    .menu-list {
        flex-wrap: wrap;
    }

    .menu-item {
        padding: 0;
    }

    .sorting-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filter-group {
        min-width: 100%;
    }
}