@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #006400;
    --secondary-color: #8bc34a;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'B Nazanin', sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Top Banner Styles */
.top-banner {
    background: url('../assets/images/header.png') center/cover no-repeat;
    padding: 8px 0;
    position: relative;
    overflow: hidden;
    height: 50px;
}

.top-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to left, rgba(0, 77, 0, 0.85), rgba(var(--primary-color-rgb), 0.85));
    z-index: 0;
}

.top-banner .container {
    position: relative;
    z-index: 1;
}

.discount-icons {
    display: flex;
    align-items: center;
}

.discount-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.discount-text {
    font-size: 15.5px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.location-icon i {
    font-size: 22px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

/* Header Styles */
header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
    background-color: white;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sticky-header .logo img {
    max-height: 50px;
}

.search-box .form-control {
    border-color: var(--border-color);
    height: 45px;
    font-size: 14px;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 100, 0, 0.25);
    border-color: var(--primary-color);
}

.search-box .form-control::placeholder {
    color: #aaa;
}

.search-btn {
    width: 50px;
    height: 45px;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 0 8px 8px 0;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #7cb342;
}

.logo img {
    max-height: 70px;
    transition: all 0.3s ease;
}

.my-account {
    margin-right: 0;
    margin-left: 5px;
}

.my-account button {
    font-size: 13.5px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-width: 110px;
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.my-account button:hover {
    background-color: #005400;
    transform: translateY(-2px);
}

.my-account .dropdown-toggle::after {
    display: none;
}

.my-account button i {
    font-size: 9px;
}

.shopping-cart {
    margin-left: 10px;
}

.cart-icon {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cart-icon i {
    margin-left: 5px;
    font-size: 20px;
    color: var(--primary-color);
}

.cart-text {
    font-size: 15px;
    font-weight: 500;
}

/* Navigation Menu Styles */
.navbar {
    border-color: var(--border-color);
    padding: 0;
}

.navbar-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    padding: 15px 12px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

.dropdown-menu {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: none;
    padding: 10px;
    min-width: 200px;
}

.dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 5px;
}

.dropdown-item:hover {
    background-color: rgba(0, 100, 0, 0.1);
    color: var(--primary-color);
    transform: translateX(-3px);
}

.dropdown-toggle::after {
    display: none;
}

.course-consult {
    display: flex;
    align-items: center;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

.course-consult:hover {
    transform: scale(1.05);
}

.course-consult i {
    font-size: 18px;
}

/* Custom Button Styles */
.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 10px;
    padding: 7px 15px;
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 100, 0, 0.2);
}

/* Dropdown Hover Menu */
.navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar .dropdown-menu {
    margin-top: 0;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* سایر استایل‌های مربوط به منو */
.navbar-nav .nav-item.dropdown:hover .nav-link {
    color: var(--primary-color);
}

/* اضافه کردن خط زیر منوی فعال */
.navbar-nav .nav-item .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
    margin-top: 3px;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-nav .nav-item:hover .nav-link::after {
    width: 70%;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }
    
    .btn-outline-success {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .navbar-nav {
        padding: 15px 0;
        flex-direction: column;
        align-items: start !important;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .top-banner {
        font-size: 14px;
    }
    
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav .btn-outline-success {
        margin-top: 10px;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    .navbar-toggler {
        padding: 5px 10px;
        margin-right: 15px;
        border-color: var(--primary-color);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(0, 100, 0, 0.25);
    }
    
    /* فیکس منوی دراپ‌داون در موبایل */
    .navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
        animation: none;
        border-top: none;
    }
    
    .navbar-nav .nav-item .nav-link::after {
        display: none;
    }
    
    .dropdown-item:hover {
        transform: none;
    }
    
    .my-account button, .cart-icon {
        font-size: 12px;
    }
    
    .cart-icon i {
        font-size: 18px;
    }
    
    .search-box .form-control {
        height: 40px;
    }
    
    .search-btn {
        height: 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .discount-text {
        font-size: 12px;
    }
    
    .discount-icon {
        width: 22px;
        height: 22px;
    }
    
    .top-banner .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 15px;
    }
    
    .discount-icons {
        margin-top: 5px;
    }
    
    header .row {
        flex-direction: column;
    }
    
    .search-box {
        margin: 15px 0;
    }
    
    .logo {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .shopping-cart {
        justify-content: center !important;
        margin: 10px 0;
    }
    
    .col-lg-3, .col-lg-6 {
        width: 100%;
    }
    
    header .d-flex {
        justify-content: center !important;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    .top-banner {
        padding: 5px 0;
    }
    
    .location-icon i {
        font-size: 18px;
    }
    
    .discount-text {
        font-size: 11px;
        margin: 5px 0;
    }
    
    .discount-icon {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }
    
    .navbar-brand img {
        max-width: 120px;
    }
    
    .my-account button {
        min-width: 90px;
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .cart-text {
        font-size: 12px;
    }
    
    .cart-icon i {
        font-size: 16px;
    }
    
    .btn-outline-success {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* استایل‌های فوتر */
footer {
    background-color: #f8f9fa;
    color: var(--text-color);
    border-top: 1px solid #e0e0e0;
}

.footer-logo {
    max-height: 80px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-links i {
    color: var(--primary-color);
    font-size: 12px;
}

.newsletter-box {
    margin-top: 20px;
}

.newsletter-input {
    border-radius: 0 8px 8px 0;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    height: 46px;
}

.newsletter-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #005400;
    color: white;
}

.social-media {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: var(--text-color);
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.partner-logo {
    max-width: 100px;
    max-height: 70px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.copyright {
    background-color: #f1f1f1;
    color: #777;
    font-size: 0.85rem;
}

.phone-number {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.phone-number:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ریسپانسیو فوتر */
@media (max-width: 992px) {
    .footer-heading {
        margin-top: 20px;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .partner-logo {
        max-width: 80px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        margin-left: 8px;
    }
}

@media (max-width: 576px) {
    .footer-heading {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
        margin-left: 6px;
    }
    
    .partner-logo {
        max-width: 70px;
    }
}

/* استایل‌های فوتر جدید */
.footer-new {
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'B Nazanin', sans-serif;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
}

.footer-new .footer-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

.footer-new .footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-new .footer-heading::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-new .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-new .footer-links li {
    margin-bottom: 12px;
    padding-right: 15px;
    position: relative;
}

.footer-new .footer-links li:before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-new .footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

.footer-new .footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-new .footer-links i {
    display: none;
}

.social-icons-row {
    margin: 25px 0;
    gap: 15px;
}

.social-icon-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #777;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 5px;
    font-size: 1.1rem;
}

.social-icon-new:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.partners-wrapper {
    margin: 10px 0 20px;
}

.footer-new .partner-logo {
    max-width: 110px;
    height: auto;
    filter: grayscale(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.footer-new .partner-logo:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 5px 10px rgba(0, 100, 0, 0.2));
}

.newsletter-section {
    background-color: #8bc34a;
    padding: 25px 0;
    position: relative;
}

.newsletter-section:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../assets/images/wave-pattern.png');
    background-size: 400px;
    opacity: 0.1;
    z-index: 1;
}

.newsletter-title {
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.newsletter-form {
    position: relative;
    z-index: 2;
}

.newsletter-section .form-control {
    border-radius: 25px 0 0 25px;
    height: 45px;
    border: none;
    padding: 10px 20px;
    background-color: #f9f9f9;
}

.btn-newsletter {
    border-radius: 0 25px 25px 0;
    font-weight: 500;
    border: none;
    padding: 0 20px;
    color: #006400;
    background-color: #fff;
}

.btn-newsletter:hover {
    background-color: #f1f1f1;
    color: #006400;
}

.copyright-section {
    position: relative;
    padding: 15px 0;
    margin: 0 auto;
}

.copyright-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 100%;
    background-color: #8BC34A;
    z-index: -1;
}

.copyright-text {
    color: white;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 400;
}

.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0.8;
    text-decoration: none;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    opacity: 1;
    color: white;
}

.scroll-top-btn i {
    font-size: 18px;
}

/* ریسپانسیو فوتر جدید */
@media (max-width: 992px) {
    .footer-new .footer-heading {
        margin-top: 15px;
    }
    
    .footer-new .partner-logo {
        max-width: 90px;
    }
    
    .social-icons-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .social-icon-new {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .social-icons-row {
        gap: 10px;
    }
    
    .footer-new .partner-logo {
        max-width: 80px;
    }
}

@media (max-width: 576px) {
    .footer-new .footer-heading {
        font-size: 1rem;
    }
    
    .social-icon-new {
        width: 32px;
        height: 32px;
        margin: 0 3px;
    }
    
    .footer-new .partner-logo {
        max-width: 70px;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: 15px;
    }
}

/* دکمه بخش بالای صفحه */
.return-to-top-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.circle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.circle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn {
    display: none;
}

@media (max-width: 576px) {
    .return-to-top-button {
        bottom: 20px;
        left: 20px;
    }
    
    .circle-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .copyright-section:before {
        left: 5%;
        width: 90%;
    }
}

@media (max-width: 576px) {
    .copyright-section:before {
        left: 0;
        width: 100%;
    }
}

/* استایل فوتر موبایل */
.mobile-footer {
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
}

.mobile-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: all 0.3s ease;
}

.mobile-footer-item:hover, 
.mobile-footer-item:active {
    color: #4CAF50;
    text-decoration: none;
}

.mobile-footer-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-footer-icon img {
    max-width: 100%;
    max-height: 100%;
}

/* استایل‌های لودینگ وبسایت */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-logo {
    width: 120px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: pulse 2s infinite ease-in-out;
}

.loading-circle {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
}

.loading-circle-1 {
    width: 140px;
    height: 140px;
    border-top-color: var(--primary-color);
    animation: spin 2s infinite linear;
}

.loading-circle-2 {
    width: 160px;
    height: 160px;
    border-right-color: var(--secondary-color);
    animation: spin 3s infinite linear reverse;
}

.loading-circle-3 {
    width: 180px;
    height: 180px;
    border-bottom-color: var(--primary-color);
    animation: spin 4s infinite linear;
}

.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation: fadeInOut 3s infinite 0.2s;
}

.particle:nth-child(2) {
    top: 70%;
    left: 15%;
    animation: fadeInOut 3s infinite 0.6s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 80%;
    animation: fadeInOut 3s infinite 0.8s;
}

.particle:nth-child(4) {
    top: 65%;
    left: 75%;
    animation: fadeInOut 3s infinite 1s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation: fadeInOut 3s infinite 1.2s;
}

.particle:nth-child(6) {
    top: 85%;
    left: 50%;
    animation: fadeInOut 3s infinite 1.5s;
}

.loading-text {
    margin-top: 30px;
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    font-size: 16px;
    color: var(--primary-color);
    position: relative;
}

.loading-text:after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background-color: rgba(0, 100, 0, 0.1);
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    animation: progress 3s ease-in-out forwards;
    background-image: linear-gradient(45deg, var(--secondary-color) 25%, transparent 25%, transparent 50%, var(--secondary-color) 50%, var(--secondary-color) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

@keyframes progress {
    0% { width: 0; }
    20% { width: 20%; }
    50% { width: 50%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

/* افکت ظاهر شدن با فید برای کل صفحه */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .loading-container {
        width: 160px;
        height: 160px;
    }
    
    .loading-logo {
        width: 90px;
    }
    
    .loading-circle-1 {
        width: 110px;
        height: 110px;
    }
    
    .loading-circle-2 {
        width: 130px;
        height: 130px;
    }
    
    .loading-circle-3 {
        width: 150px;
        height: 150px;
    }
    
    .loading-progress {
        width: 160px;
    }
}

/* استایل‌های صفحه اصلی - بخش هیرو و معرفی */
.hero-section {
    padding: 40px 0;
    position: relative;
}

.main-heading {
    color: #28a745;
    font-weight: 700;
    font-size: 28px;
}

.hero-text-box {
    padding-right: 20px;
    text-align: right;
}

.hero-text-box .lead {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.hero-image-container {
    position: relative;
    min-height: 300px;
}

.hero-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.img-circle {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}

.img-lg {
    width: 160px;
    height: 160px;
    top: 20px;
    right: 50px;
}

.img-md {
    width: 120px;
    height: 120px;
    top: 30px;
    right: 230px;
}

.img-sm {
    width: 90px;
    height: 90px;
    top: 180px;
    right: 170px;
}

.img-xs {
    width: 70px;
    height: 70px;
    top: 140px;
    right: 30px;
}

/* استایل‌های بخش آمار */
.stats-section {
    margin: 40px 0;
}

.stats-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-item {
    padding: 10px 15px;
}

.stat-icon {
    font-size: 24px;
    color: #28a745;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* استایل‌های عمومی بخش ها */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    position: relative;
    margin-bottom: 20px;
    padding-right: 15px;
}

.section-title:before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: #28a745;
    border-radius: 2px;
}

.section-controls {
    display: flex;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #28a745;
    width: 30px;
    border-radius: 5px;
}

/* استایل‌های کارت دوره‌ها */
.course-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
}

.course-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    height: 66px;
    overflow: hidden;
}

.course-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    color: #28a745;
    font-weight: 700;
}

.course-rating {
    color: #666;
    font-size: 14px;
}

.course-rating i {
    color: #FFC107;
    margin-left: 5px;
}

/* استایل‌های کارت مقالات */
.article-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
}

.article-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    height: 66px;
    overflow: hidden;
}

.article-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-date {
    color: #888;
    font-size: 13px;
}

.article-more {
    color: #28a745;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.article-more:hover {
    text-decoration: underline;
}

/* استایل‌های بخش دسته‌بندی‌ها */
.category-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background-color: #f8fffa;
}

.category-icon {
    margin-bottom: 15px;
}

.category-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.category-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* استایل‌های بخش مشاوره تخصصی */
.consultation-box {
    background-color: #28a745;
    border-radius: 10px;
    padding: 30px;
    overflow: hidden;
    position: relative;
}

.consultation-box:before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    top: -150px;
    left: -150px;
}

.consultation-box:after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    bottom: -100px;
    right: 50px;
}

.consultation-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.consultation-box p {
    margin-bottom: 20px;
    font-size: 16px;
    opacity: 0.9;
}

.consultation-image img {
    max-height: 200px;
    object-fit: contain;
}

/* رسپانسیو */
@media (max-width: 991.98px) {
    .hero-text-box {
        text-align: center;
        padding-right: 0;
    }
    
    .img-lg {
        width: 140px;
        height: 140px;
        right: 30px;
    }
    
    .img-md {
        width: 100px;
        height: 100px;
        right: 180px;
    }
    
    .img-sm {
        width: 80px;
        height: 80px;
        right: 130px;
    }
    
    .img-xs {
        width: 60px;
        height: 60px;
        right: 10px;
    }
    
    .stats-container {
        flex-wrap: wrap;
    }
    
    .consultation-box h2 {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .hero-image-container {
        min-height: 250px;
    }
    
    .hero-images {
        display: flex;
        justify-content: center;
    }
    
    .img-lg {
        position: relative;
        top: 0;
        right: 0;
    }
    
    .img-md, .img-sm, .img-xs {
        display: none;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .stats-container {
        padding: 10px;
    }
    
    .stat-item {
        padding: 10px;
        flex: 0 0 33.333%;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .consultation-box {
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .main-heading {
        font-size: 22px;
    }
    
    .hero-text-box .lead {
        font-size: 14px;
    }
    
    .course-image {
        height: 150px;
    }
    
    .article-image {
        height: 150px;
    }
    
    .category-icon img {
        width: 40px;
        height: 40px;
    }
    
    .category-title {
        font-size: 13px;
    }
}

/* مدیا کوئری برای اسلایدرها در موبایل */
@media (max-width: 575.98px) {
    .row-courses {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        margin-right: -15px;
        margin-left: -15px;
        scroll-snap-type: x mandatory;
    }
    
    .row-courses .col-lg-3 {
        flex: 0 0 85%;
        max-width: 85%;
        padding-right: 10px;
        padding-left: 10px;
        scroll-snap-align: start;
    }
} 