/* Color Variables */
:root {
    --primary-color: #12a97a;
    --primary-hover-color: #0e9268;
    --text-color: #525151;
    --hover-color: #f8f9fa;
    --active-color: #009b4af0;
    --active-text-color: #fff;
}

/* General Styles */
html[lang="fa"] body {
    direction: rtl;
    font-family: "Source Sans Pro", IRANSansX, Arial, tahoma;
}

html[lang="fa"] .accordion-button {
    margin-right: auto;
    margin-left: initial;
    text-align: right;
}

html[lang="fa"] .accordion-button::after {
    margin-right: auto;
    margin-left: initial;
}

html[lang="fa"] .modal-header .btn-close {
    margin-right: auto;
    margin-left: -0.5rem;
}

/* Button Styles */
.btn-primary {
    transition-duration: 150ms;
    --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tw-shadow-colored: 0 1px 2px 0 rgba(0, 0, 0, 0.1); /* Use a specific shadow color value here */
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
        var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    background-color: var(--primary-color);
    border-color: rgb(4, 120, 87);
    border-width: 1px;
    display: inline-flex;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover-color);
}

.btn {
    border-radius: 50rem;
}

/* Header and Primary Button Styles */
.filter-header,
.m-primary-btn,
.branch-header {
    background: var(--primary-color);
    /* border-top-left-radius: 5px; */
    border-radius: 5px 5px 0 0;
}

.m-primary-btn:hover {
    background: var(--primary-hover-color);
}

/* List Group Styles */
.list-group {
    padding-right: 2px;
}

.list-group-item {
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 0;
    /* border: none; */
    margin: 0;
    margin-right: -2px;
}

.list-group-item a {
    color: var(--text-color);
    display: block;
    padding: 2px;
}

.list-group-item:hover:not(.active-category) {
    background-color: var(--hover-color);
}

.active-category {
    background-color: var(--active-color);
}

.active-category a {
    color: var(--active-text-color);
}

/* Pagination Styles */
.page-item.active .page-link {
    background-color: var(--active-color);
    border-color: var(--active-color);
}

.page-item .page-link {
    color: var(--primary-color);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
    color: var(--primary-color);
    background-color: #12a97a0f;
}

.card-text {
    color: #495057;
}

/* Primary Button Styles (Repetition Removed) */
.m-primary-btn {
    color: #fff;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.m-primary-btn:hover {
    background: var(--primary-hover-color);
}

/* Card Button Styles */
.card-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px !important;
    padding: 0.25rem 0.5rem;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.card-btn:hover {
    background: var(--primary-hover-color);
}

/* Search Button and Input Styles */
.search-btn {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.search-input {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

/* Custom CSS */

.host-logo {
    width: auto;
    height: 64px;
}
.filter-box {
    max-height: 430px;
    overflow-y: auto;
}
.mobile-nav {
    background: #f1f1f1;
    position: fixed;
    bottom: 0;
    height: 65px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    z-index: 9999;
    right: 0;
}
.bloc-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 14px;
}
.bloc-icon:not(:last-child) {
    border-left: 1px solid #c1bdbd;
}
.bloc-icon img {
    width: 20px;
    margin-bottom: 5px;
}
.page-item:first-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-top-left-radius: unset;
    border-bottom-left-radius: unset;
}
.page-item:last-child .page-link {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: unset;
    border-bottom-right-radius: unset;
}
.pagination {
    padding: 0;
}

.no-padding {
    padding: 0 !important;
}

@media screen and (min-width: 768px) {
    .header-main-logo {
        background: white;
        padding: 2px;
        transform: scale(1.2) translate(0, 32px) !important;
    }
}
@media screen and (max-width: 768px) {
    .host-logo,
    .header-main-logo {
        width: auto !important;
        height: 48px !important;
    }
}

@media screen and (max-width: 480px) {
}

.rounded {
    border-radius: 50px !important;
}

.sub-footer {
    font-size: 12px;
}
