html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #1a7431;
    font-family: 'Shabnam', sans-serif !important;
    direction: rtl;
    color: #ffffff;
}
.custom-header {
    background-color: #f5f5f5;
}

.custom-header .navbar-nav .nav-link {
    color: #666;
    font-weight: 500;
}
.custom-header .navbar-nav .nav-link:hover {
    color: #2e7d32;
}
/* تغییر رنگ آیکون 3 خط */
.navbar-toggler {
    border: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none; /* حذف آیکون پیش‌فرض */
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon::after {
    content: '';
    background-color: #666; /* هم‌رنگ منوها */
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: 4px;
}

.navbar-toggler-icon::after {
    top: 12px;
}

.navbar-toggler-icon {
    position: relative;
}
.offcanvas.offcanvas-end {
    background-color: #f5f5f5; /* رنگ دلخواه هماهنگ با header */
}
.offcanvas .nav-link {
    color: #333;
}

.offcanvas .nav-link:hover {
    color: #2e7d32;
}
/* آیتم‌های ساده بدون زیرمنو (کاملاً هماهنگ با آکاردئون) */
.accordion-button.static-link {
    background-color: transparent !important; /* ❌ حذف آبی */
    color: #212529 !important; /* ✅ رنگ منوهای بازشونده */
    font-size: 1rem;
    font-weight: 300;
    padding: 1rem 1.25rem;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    border-bottom: none !important; /* ❌ حذف خط زیر */
}
.accordion-button.static-link {
    color: #333;
    text-decoration: none;
}
    /* فلش رو حذف کنیم چون زیرمنو نداره */
    .accordion-button.static-link::after {
        display: none !important;
        color: #333;
    }

/* هاور زیبا */
    .accordion-button.static-link:hover {
        background-color: #f0f0f0;
        text-decoration: none;
        color: #2e7d32;
    }
.accordion-body a.nav-link,
.dropdown-menu a {
    font-weight: 300 !important; /* هماهنگ با آیتم اصلی */
    font-size: 0.95rem;
    color: #212529;
    padding: 0.5rem 1rem;
    display: block;
}



nav a {
    font-size: 0.95rem;
    padding: 0.3rem 0.6rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #388e3c;
}

.btn {
    border-radius: 10px;
    font-weight: 500;
}


.search-wrapper {
    position: relative;
}

    .search-wrapper .custom-search {
        background-color: #6B9C6B !important;
        border: 1px solid #ffffff !important;
        color: #ffffff !important;
        padding-right: 2.2rem;
        border-radius: 6px !important;
        transition: all 0.3s ease;
    }

.search-wrapper .custom-search::placeholder {
    color: #ffffff !important;
}

/* آیکون ذره بین */
.search-wrapper .search-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #ffffff;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* هنگام فوکوس */
.search-wrapper .custom-search:focus {
    background-color: #ffffff !important;
    border-color: #66bb6a !important;
    color: #000000 !important;
    box-shadow: 0 0 0 0.15rem rgba(102, 187, 106, 0.25) !important;
    outline: none !important;
}

.search-wrapper .custom-search:focus::placeholder {
    color: #000000 !important;
}

.search-wrapper .custom-search:focus ~ .search-icon {
    color: #000000 !important;
}

.footer-logo h4 {
    font-family: 'Shabnam', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}



.footer h6,
.footer h4 {
    margin-bottom: 1rem;
}

.footer a:hover {
    color: #d0f5d6 !important;
    text-decoration: underline;
}

.footer form input {
    border-radius: 0 0.5rem 0.5rem 0;
}

.footer form button {
    border-radius: 0.5rem 0 0 0.5rem;
    border: 1px solid white;
}



.footer-social a {
    background-color: #a6d6a8; /* سبز روشن */
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

.footer-social a:hover {
    background-color: #81c784; /* سبز روشن‌تر هنگام هاور */
    transform: scale(1.1);
}

.scroll-top-btn {
    width: 40px;
    height: 40px;
    background-color: #a6d6a8; /* سبز روشن */
    border-radius: 50%;
    color: #1a7431; /* سبز تیره برای آیکون */
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #81c784;
    transform: translateY(-3px);
}
