
/* Root Variables for Color Scheme */
:root {
    --primary-red: #dc2626;
    --primary-black: #1f2937;
    --primary-white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6b7280;
    --hover-red: #b91c1c;
    --border-color: #e5e7eb;
    --nav-primary-red: #dc2626;
    --nav-primary-black: #1f2937;
    --nav-primary-white: #ffffff;
    --nav-light-gray: #f8f9fa;
    --nav-dark-gray: #6b7280;
    --nav-border-color: #e5e7eb;
    --nav-hover-red: #b91c1c;
    --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
      --gradient-red: linear-gradient(135deg, var(--primary-red), var(--hover-red));
    --footer-bg: #111827;
    --footer-dark: #0f172a;
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --overlay-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --content-bg: rgba(0, 0, 0, 0.5);
    --text-dark: #374151;
    --light-gray: #f8fafc;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --overlay-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    --border-color: #e5e7eb;
    --slide-transition: 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    --teal-dark: #0f766e;
}

@font-face {
    font-family: 'vazir';
    src: url('/assets/sitetheme/font/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
}
body,
html {
    margin: 0;
    padding: 0;
    font-family: Vazir, Arial, sans-serif;
    background-color: #f8f9fa;
    font-size: 16px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--light-gray) 100%);
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-topbar {
    padding: 15px 0;
    min-height: 70px;
}

/* Brand Logo Section */
.header-brand {
    flex: 0 0 auto;
    order: 1;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.header-logo-image {
    max-height: 50px;
    width: auto;
}

.header-logo-text {
    display: flex;
    flex-direction: column;
}

.header-logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-black);
    line-height: 1.2;
}

.header-logo-subtitle {
    font-size: 12px;
    color: var(--primary-red);
    font-weight: 500;
}

.header-logo-link {
    text-decoration: none;
}

.header-logo-link:hover .header-logo-wrapper {
    transform: translateY(-2px);
}

/* Contact Info Section */
.header-contact-info {
    flex: 1;
    justify-content: center;
    order: 2;
}

.header-contact-location,
.header-contact-hours,
.header-contact-phone,
.header-contact-email {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-contact-location:hover,
.header-contact-hours:hover,
.header-contact-phone:hover,
.header-contact-email:hover {
    background-color: rgba(220, 38, 38, 0.05);
}

.header-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.header-contact-icon--location {
    background: linear-gradient(135deg, var(--primary-red), var(--hover-red));
    color: var(--primary-white);
}

.header-contact-icon--time {
    background: linear-gradient(135deg, var(--primary-black), #333333);
    color: var(--primary-white);
}

.header-contact-icon--phone {
    background: linear-gradient(135deg, var(--primary-red), var(--hover-red));
    color: var(--primary-white);
}

.header-contact-icon--email {
    background: linear-gradient(135deg, var(--primary-black), #333333);
    color: var(--primary-white);
}

.header-contact-content {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.header-contact-label {
    font-size: 12px;
    color: var(--secondary-gray);
    font-weight: 500;
    margin-bottom: 2px;
}

.header-contact-value {
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.header-phone-number {
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Social Media Section */
.header-social {
    flex: 0 0 auto;
    order: 3;
}

.header-social-links {
    display: flex;
    gap: 10px;
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--dark-gray);
    color: var(--primary-white);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-social-link:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.header-mobile-toggle {
    display: none;
    background-color: var(--primary-red);
    color: var(--primary-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-mobile-toggle:hover {
    background-color: var(--hover-red);
}

/* Mobile Menu */
.header-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-white);
    z-index: 2000;
    overflow-y: auto;
    flex-direction: column;
}

.header-mobile-menu.active {
    display: flex;
}

/* Mobile Menu Top */
.header-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.header-mobile-top-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-mobile-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}

.header-mobile-title-wrapper {
    display: flex;
    flex-direction: column;
}

.header-mobile-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0;
}

.header-mobile-subtitle {
    font-size: 12px;
    color: var(--dark-gray);
    margin: 0;
}

.header-mobile-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-gray);
    cursor: pointer;
}

/* Mobile Menu Tabs */
.header-mobile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.header-mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--dark-gray);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-mobile-tab i {
    font-size: 18px;
    margin-bottom: 5px;
}

.header-mobile-tab.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* Mobile Search */
.header-mobile-search {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.header-search-form {
    display: flex;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.header-search-button {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background-color: var(--primary-red);
    color: var(--primary-white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

/* Mobile Tab Content */
.header-mobile-tab-content {
    display: none;
    padding: 15px;
}

.header-mobile-tab-content.active {
    display: block;
}

/* Mobile Services List */
.header-mobile-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-mobile-service-item {
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.header-mobile-service-link {
    display: flex;
    align-items: center;
    padding: 15px;
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 500;
}

.header-mobile-service-link i {
    margin-left: 12px;
    width: 20px;
    text-align: center;
    color: var(--primary-red);
}

.header-mobile-service-toggle {
    position: absolute;
    left: 15px;
    top: 15px;
    background: none;
    border: none;
    color: var(--dark-gray);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-mobile-service-toggle.active i {
    transform: rotate(180deg);
}

/* Mobile Submenu */
.header-mobile-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    background-color: rgba(0, 0, 0, 0.02);
}

.header-mobile-submenu.active {
    display: block;
}

.header-mobile-submenu-link {
    display: block;
    padding: 12px 15px 12px 40px;
    color: var(--primary-black);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-mobile-submenu-item:last-child .header-mobile-submenu-link {
    border-bottom: none;
}

/* Mobile Contact */
.header-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mobile Social Section */
.header-mobile-social-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.header-mobile-social-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 15px;
    text-align: center;
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-topbar > * {
    animation: fadeInUp 0.6s ease forwards;
}

.header-brand {
    animation-delay: 0.1s;
}

.header-contact-info {
    animation-delay: 0.2s;
}

.header-social {
    animation-delay: 0.3s;
}

/* Slide In Animation for Mobile Menu */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.header-mobile-menu.active {
    animation: slideInRight 0.3s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-topbar {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 15px 0;
    }
    
    .header-brand {
        flex: 1;
    }
    
    .header-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }
}

@media (max-width: 768px) {
    .header-logo-title {
        font-size: 16px;
    }
    
    .header-logo-subtitle {
        font-size: 11px;
    }
    
    .header-mobile-contact .header-contact-item {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-logo-image {
        max-height: 40px;
    }
    
    .header-logo-title {
        font-size: 14px;
    }
    
    .header-logo-subtitle {
        font-size: 10px;
    }
    
    .header-contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* منو */

.main-navigation {
    background: var(--primary-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 990;
    padding: 0;
}

.navigation-wrapper {
    padding: 12px 0;
    min-height: 70px;
}

/* Main Menu Section (سمت راست) */
.main-menu-section {
    flex: 0 0 auto;
}

.primary-menu {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-item {
    position: relative;
}

.menu-link {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.menu-link:hover::before {
    width: 70%;
}

.menu-link:hover {
    color: var(--primary-red);
    background: rgba(220, 38, 38, 0.05);
}

.menu-item--home .menu-link {
    background: var(--primary-red);
    color: var(--primary-white);
}

.menu-item--home .menu-link:hover {
    background: var(--hover-red);
    color: var(--primary-white);
}

.menu-icon-left {
    font-size: 14px;
}

.menu-icon {
    font-size: 10px;
    margin-right: 2px;
    transition: transform 0.3s ease;
}

.menu-item--dropdown:hover .menu-icon {
    transform: rotate(180deg);
}

/* Mega Dropdown Menu Styles */
.mega-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: 15px;
    min-width: 650px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.menu-item--dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: var(--primary-white);
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.mega-dropdown-inner {
    position: relative;
    z-index: 2;
    background: var(--primary-white);
}

.mega-dropdown-section {
    padding: 20px;
}

.mega-dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 15px;
}

.mega-dropdown-header i {
    font-size: 18px;
}

.mega-dropdown-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.mega-dropdown-col {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
}

.mega-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--primary-black);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    position: relative;
}

.mega-dropdown-item::before {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.mega-dropdown-item:hover {
    background: rgba(220, 38, 38, 0.05);
    color: var(--primary-red);
    padding-left: 20px;
}

.mega-dropdown-item:hover::before {
    left: 8px;
    opacity: 1;
}

.mega-item-icon {
    color: var(--primary-red);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.mega-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.mega-dropdown-footer {
    background: rgba(0, 0, 0, 0.02);
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
}

.mega-dropdown-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mega-dropdown-all-link:hover {
    color: var(--primary-red);
}

.mega-dropdown-all-link i {
    transition: transform 0.3s ease;
}

.mega-dropdown-all-link:hover i {
    transform: translateX(-5px);
}

/* Search & Appointment Section */
.search-appointment-section {
    flex: 1;
    justify-content: flex-end;
    gap: 20px;
}

/* Search Section */
.search-section {
    flex: 0 0 auto;
}

.search-container {
    position: relative;
    width: 280px;
}

.search-form {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-form:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 15px;
    font-size: 14px;
    width: 100%;
    color: var(--primary-black);
}

.search-input::placeholder {
    color: var(--dark-gray);
}

.search-submit-btn {
    background: var(--primary-red);
    border: none;
    color: var(--primary-white);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    left: 2px;
    top: 2px;
}

.search-submit-btn:hover {
    background: var(--hover-red);
}

/* Appointment Button Section */
.appointment-button-section {
    flex: 0 0 auto;
}

.appointment-btn {
    background: var(--primary-red);
    color: var(--primary-white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.appointment-btn:hover {
    background: var(--hover-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.2);
    color: var(--primary-white);
}

.appointment-icon {
    font-size: 16px;
}

/* Animation Effects */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-dropdown {
    animation: fadeInDown 0.3s ease;
    animation-fill-mode: forwards;
    animation-play-state: paused;
}

.menu-item--dropdown:hover .mega-dropdown {
    animation-play-state: running;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .mega-dropdown {
        min-width: 600px;
    }
    
    .search-container {
        width: 220px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .menu-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .mega-dropdown {
        min-width: 550px;
    }
    
    .search-container {
        width: 180px;
    }
    
    .appointment-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}
/* Mobile Menu Styles */


/* Responsive Design */
@media (max-width: 1200px) {
    .search-container {
        width: 280px;
    }
    
    .primary-menu {
        gap: 1rem;
    }
    
    .search-contact-section {
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }
}

@media (max-width: 768px) {
    .search-container {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .contact-us-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .search-input {
        font-size: 12px;
        padding: 10px 50px 10px 15px;
    }
}
/* اسلایدر */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 85vh;
    min-height: 650px;
    max-height: 900px;
    background-color: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--slide-transition), visibility var(--slide-transition);
}

.slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* تصویر اسلاید و افکت‌ها */
.slide-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85);
    transition: transform 10s ease, filter 1s ease;
}

.slide--active .slide-image {
    transform: scale(1.08);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

/* استایل‌های محتوا */
.slide-content-wrapper {
    position: relative;
    height: 100%;
    z-index: 3;
}

.slide-content {
    position: relative;
    z-index: 3;
    padding: 0;
    max-width: 650px;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.badge-text-slide {
    color: var(--primary-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(220, 38, 38, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary-red);
}

.badge-text-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
    animation: badgeShine 3s infinite;
}

@keyframes badgeShine {
    0% { left: -30px; }
    20% { left: 120%; }
    100% { left: 120%; }
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--primary-white);
    position: relative;
}

.title-highlight {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(220, 38, 38, 0.3);
    z-index: -1;
}

.slide-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
    position: relative;
    font-weight: 400;
}

.slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

/* استایل دکمه‌ها */
.slide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--primary-black);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--hover-red);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--primary-black);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary-slide {
    background: transparent;
    color: var(--primary-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.btn-secondary-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-secondary-slide:hover {
    color: var(--hover-red);
    border-color: var(--primary-white);
    transform: translateY(-5px);
}

.btn-secondary:hover::before {
    left: 0;
}

/* کنترل‌های اسلایدر */
.slider-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slider-progress {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    margin: 0 30px;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-red);
    width: 0;
    transition: width 0.1s linear;
}

.slider-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.slider-arrows {
    display: flex;
    gap: 15px;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    color: var(--primary-white);
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.arrow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: -1;
}

.arrow-btn:hover {
    color: var(--primary-white);
}

.arrow-btn:hover::before {
    transform: translateY(0);
}

.slide-counter {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    color: var(--primary-white);
    font-size: 16px;
    font-weight: 600;
}

.current-slide {
    color: var(--primary-white);
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
}

.counter-divider {
    opacity: 0.5;
    align-self: flex-end;
    margin-bottom: 5px;
}

.total-slides {
    opacity: 0.5;
    align-self: flex-end;
    margin-bottom: 5px;
}

.slider-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator--active {
    background: var(--primary-red);
    width: 50px;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide--active .slide-badge {
    animation: fadeInRight 0.8s ease forwards;
}

.slide--active .slide-title {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.slide--active .slide-description {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.slide--active .slide-actions {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}


/* ===== طرح‌بندی موبایل ===== */
@media (max-width: 991.98px) {
    .hero-slider {
        height: 100vh;
        min-height: 600px;
    }
    
    .slide-overlay {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%);
    }
    
    .slide-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .scroll-down {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-slider {
        height: 90vh;
        min-height: 550px;
    }
    
    .slide-content-wrapper {
        display: flex;
        align-items: flex-end;
        padding-bottom: 120px;
    }
    
    .slide-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .slide-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .slider-controls {
        padding: 15px 0;
    }
    
    .slider-progress {
        display: none;
    }
    
    .controls-wrapper {
        justify-content: center;
        gap: 20px;
    }
    
    .slide-counter {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        min-height: 500px;
    }
    
    .slide-content-wrapper {
        padding-bottom: 100px;
    }
    
    .slide-badge {
        margin-bottom: 15px;
    }
    
    .badge-text {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .slide-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .slide-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .slide-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .indicator {
        width: 20px;
    }
    
    .indicator--active {
        width: 35px;
    }
}

/* مدال ویدیو */
.modal-content {
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: var(--primary-red);
    color: var(--primary-white);
    border-bottom: none;
    padding: 20px;
}

.modal-title {
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-header .btn-close {
    color: var(--primary-white);
    filter: brightness(0) invert(1);
    opacity: 1;
}

.modal-body {
    padding: 0;
}

/* معرفی مکانیک */
/* ===== متغیرهای رنگ ===== */
:root {
    --primary-red: #dc2626;
    --hover-red: #b91c1c;
    --primary-black: #111827;
    --primary-white: #ffffff;
    --dark-gray: #4b5563;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
}

/* ===== بخش معرفی ===== */
.about-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="2" cy="2" r="2" fill="%23dc2626" opacity="0.1"/></svg>') repeat;
    z-index: 1;
}

.about-wrapper {
    position: relative;
    z-index: 2;
}

.about-content {
    gap: 60px;
}

/* محتوای متنی */
.content-text {
    flex: 1;
    max-width: 600px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.badge-text {
   color: var(--primary-black);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(220, 38, 38, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary-red);
}

.badge-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    animation: badgeShine 3s infinite;
}

@keyframes badgeShine {
    0% { left: -30px; }
    20% { left: 120%; }
    100% { left: 120%; }
}


.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-black);
    line-height: 1.2;
    margin-bottom: 40px;
    position: relative;
}


.description-content {
    margin-bottom: 40px;
}

.description-text {
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.trust-statement {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(220, 38, 38, 0.05);
    padding: 25px;
    border-radius: 0;
    border-right: 4px solid var(--primary-red);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trust-statement:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trust-icon {
    background: var(--primary-red);
    color: var(--primary-white);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.trust-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(10);
        opacity: 0;
    }
}

.trust-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--primary-white);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--hover-red);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--primary-white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-red);
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--primary-white);
    border-color: var(--primary-black);
    transform: translateY(-5px);
}

.btn-secondary:hover::before {
    left: 0;
}

/* محتوای تصویری */
.content-visual {
    flex: 1;
    max-width: 550px;
}

.visual-container {
    position: relative;
    height: 650px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.mechanic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s ease;
}

.main-image:hover .mechanic-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), transparent);
}

.experience-badge {
    position: absolute;
    top: -30px;
    left: -30px;
    background: var(--primary-white);
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    border-right: 5px solid var(--primary-red);
    border-bottom: 5px solid var(--primary-red);
    transition: all 0.4s ease;
}

.experience-badge:hover {
    transform: translateY(-10px) rotate(-5deg);
}

.experience-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

.experience-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
}

.stats-cards {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
}

.stat-card {
    background: var(--primary-white);
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
    border-right: 3px solid transparent;
}

.stat-card:hover {
    transform: translateX(-10px);
    border-right-color: var(--primary-red);
}

.stat-icon {
    background: var(--primary-red);
    color: var(--primary-white);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-black);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
}

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.deco-circle {
    position: absolute;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    opacity: 0.2;
}

.deco-circle--1 {
    width: 120px;
    height: 120px;
    top: 50px;
    right: -60px;
    animation: float 6s ease-in-out infinite;
}

.deco-circle--2 {
    width: 80px;
    height: 80px;
    bottom: 100px;
    left: -40px;
    animation: float 4s ease-in-out infinite reverse;
}

.deco-dots {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="2" fill="%23dc2626"/></svg>') repeat;
    background-size: 20px 20px;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== بخش ویژگی‌های برجسته ===== */
.features-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.feature-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-red);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--primary-red);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card--active {
    background: linear-gradient(135deg, var(--primary-red), var(--hover-red));
}

.feature-card--active::before {
    display: none;
}

.feature-card--active .feature-title,
.feature-card--active .feature-desc {
    color: #ffffff;
}

.feature-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-red);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.2);
}

.feature-card--active .feature-icon {
    background: #ffffff;
    color: var(--primary-red);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed var(--primary-red);
    border-radius: 50%;
    animation: spin 20s linear infinite;
    opacity: 0.3;
}

.feature-card--active .feature-icon::after {
    border-color: #ffffff;
}

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

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.feature-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0;
    transition: all 0.3s ease;
}

/* انیمیشن‌های ورود */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.fade-in-up.active,
.fade-in-right.active,
.fade-in-left.active {
    opacity: 1;
    transform: translate(0);
}

/* واکنش‌گرایی */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 3rem;
    }
    
    .visual-container {
        height: 600px;
    }
    
    .main-image {
        height: 450px;
    }
    
    .stats-cards {
        width: 280px;
    }
}

@media (max-width: 991.98px) {
    .about-section {
        padding: 80px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .content-text,
    .content-visual {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .visual-container {
        height: 550px;
        margin-top: 60px;
    }
    
    .stats-cards {
        width: 300px;
    }
    
    .features-row {
        flex-direction: column;
        margin-top: 40px;
    }
    
    .feature-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .feature-card:last-child {
        margin-bottom: 0;
    }
    
    .feature-card:hover {
        transform: translateX(15px);
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .visual-container {
        height: 500px;
    }
    
    .main-image {
        height: 400px;
    }
    
    .experience-badge {
        padding: 20px;
        top: -20px;
        left: -20px;
    }
    
    .experience-number {
        font-size: 2.5rem;
    }
    
    .stats-cards {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: row;
        width: 100%;
        margin-top: 30px;
    }
    
    .stat-card {
        flex: 1;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .features-row {
        margin-top: 30px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .feature-title {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .feature-desc {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .trust-statement {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .trust-icon {
        margin-bottom: 10px;
    }
    
    .visual-container {
        height: auto;
    }
    
    .main-image {
        height: 350px;
    }
    
    .stats-cards {
        flex-direction: column;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .feature-card {
        gap: 15px;
    }
}

/* بلاگ */
/* ===== بخش بلاگ ===== */
.blog-section {
    padding: 13px 0;
    background-color: var(--primary-white);
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* سرتیتر بخش */
.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.badge-text-slide {
    color: var(--primary-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(220, 38, 38, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary-red);
}

.badge-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 2px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-black);
    line-height: 1.3;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.title-highlight {
    color: var(--primary-red);
    display: inline-block;
    background: linear-gradient(to bottom, transparent 60%, rgba(220, 38, 38, 0.1) 40%);
    padding: 0 5px;
}

.section-description {
    font-size: 17px;
    color: var(--dark-gray);
    max-width: 600px;
    line-height: 1.8;
}

/* گرید مطالب بلاگ */
.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
    width: 100%;
}

/* کارت بلاگ */
.blog-card {
    width: calc((100% - 60px) / 3); /* 3 کارت در یک ردیف با فاصله 30px */
    display: flex;
    flex-direction: column;
    background: var(--primary-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* تصویر بلاگ */
.blog-image-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

/* اورلی تصویر */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card:hover .image-overlay {
    opacity: 1;
}

.read-more-link {
    background: var(--primary-red);
    color: var(--primary-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover .read-more-link {
    transform: scale(1);
}

.read-more-link:hover {
    background: var(--hover-red);
}

/* دسته‌بندی بلاگ */
.blog-category {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.category-text {
    background: var(--gradient-red);
    color: var(--primary-white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
    display: inline-block;
}

/* محتوای بلاگ */
.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--dark-gray);
}

.meta-item i {
    color: var(--primary-red);
    font-size: 12px;
}

.blog-title {
    margin-bottom: 15px;
}

.blog-title a {
    color: var(--primary-black);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a:hover {
    color: var(--primary-red);
}

.blog-excerpt {
    color: var(--dark-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* فوتر بلاگ */
.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.read-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--hover-red);
    gap: 12px;
}

.blog-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--dark-gray);
}

.stat-item i {
    color: var(--primary-red);
    font-size: 12px;
}

/* فوتر بخش */
.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-red);
    color: var(--primary-white);
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.25);
    overflow: hidden;
    position: relative;
}

.view-all-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.view-all-btn:hover::after {
    left: 100%;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, var(--hover-red), #991b1b);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4);
    color: var(--primary-white);
}

/* انیمیشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-card:nth-child(1) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.4s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* واکنش‌گرایی */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .blog-grid {
        gap: 25px;
    }
    
    .blog-card {
        width: calc((100% - 50px) / 3); /* 3 کارت در یک ردیف با فاصله 25px */
    }
}

@media (max-width: 992px) {
    .blog-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .blog-grid {
        gap: 20px;
    }
    
    .blog-card {
        width: calc((100% - 20px) / 2); /* 2 کارت در یک ردیف با فاصله 20px */
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .blog-meta {
        gap: 12px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .blog-title a {
        font-size: 18px;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-image-wrapper {
        height: 220px;
    }
    
    .blog-card {
        width: calc((100% - 20px) / 2); /* 2 کارت در یک ردیف با فاصله 20px */
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .blog-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .blog-card {
        width: 100%; /* 1 کارت در یک ردیف */
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog-stats {
        align-self: flex-end;
    }
    
    .view-all-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-image-wrapper {
        height: 200px;
    }
}

/* فوتر بخش */
/* ===== فوتر ===== */
:root {
    --footer-bg: #111827;
    --footer-dark: #0f172a;
    --primary-red: #dc2626;
    --hover-red: #b91c1c;
    --primary-white: #ffffff;
    --primary-black: #1f2937;
    --light-gray: #f8fafc;
    --dark-gray: #6b7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-red: linear-gradient(135deg, var(--primary-red), var(--hover-red));
}

/* فوتر اصلی */
.main-footer {
    background: var(--footer-bg);
    color: var(--primary-white);
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* بخش CTA */
.footer-cta {
    background: var(--gradient-red);
    padding: 13px 0;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-white);
    color: var(--primary-red);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    background: var(--primary-black);
    color: var(--primary-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* محتوای اصلی فوتر */
.footer-main {
    padding: 60px 0 40px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 2px, transparent 2px);
    background-size: 30px 30px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-widget {
    display: flex;
    flex-direction: column;
}

.widget-about {
    flex: 1 1 450px;
}

.widget-links {
    flex: 1 1 250px;
}

.widget-contact {
    flex: 1 1 300px;
}

/* اطلاعات شرکت */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-image {
    width: 45px;
    height: 45px;
    border-radius: 10px;
}

.company-name {
    color: var(--primary-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.company-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

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

/* عنوان ویجت */
.widget-title {
    color: var(--primary-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
}

/* لینک‌های فوتر */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 10px;
    color: var(--primary-red);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(5px);
}

.footer-links a:hover {
    color: var(--primary-white);
    padding-right: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* اطلاعات تماس */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    background: rgba(220, 38, 38, 0.2);
    color: var(--primary-red);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--primary-red);
    color: var(--primary-white);
}

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    color: var(--primary-white);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
}

.contact-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.contact-text:hover {
    color: var(--primary-red);
}

/* بخش پایین فوتر */
.footer-bottom {
    background: var(--footer-dark);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
}

.footer-menu {
    display: flex;
    gap: 20px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--primary-red);
}

/* دکمه اسکرول به بالا */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: var(--primary-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--hover-red);
    transform: translateY(-5px);
}

/* دکمه شناور تماس */
.floating-contact {
    position: fixed;
    bottom: 90px;
    right: 30px; /* تغییر از left به right */
    z-index: 1000;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--teal-dark);
    color: var(--primary-white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    background: var(--hover-red);
    color: var(--primary-white);
    transform: translateY(-5px);
}
/* اضافه کردن استایل برای زیرعنوان لوگو */

.company-tagline {
    color: var(--primary-red);
    font-size: 0.8rem;
    display: block;
    margin-top: 2px;

}

/* تنظیم flex برای متن لوگو */
.logo-text {
    display: flex;
    flex-direction: column;
}
/* واکنش‌گرایی */
@media (max-width: 992px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cta-title {
        font-size: 1.4rem;
    }
    
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-widgets {
        gap: 25px;
    }
    
    .widget-about {
        flex: 1 1 100%;
    }
    
    .widget-links, .widget-contact {
        flex: 1 1 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .footer-cta {
        padding: 30px 0;
    }
    
    .cta-title {
        font-size: 1.3rem;
    }
    
    .widget-links, .widget-contact {
        flex: 1 1 calc(50% - 15px);
        min-width: 200px;
    }
    
    .bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-menu {
        justify-content: center;
    }
    
    .floating-contact {
        right: 20px; /* تغییر از left به right */
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 40px 0 20px;
    }
    
    /* تضمین می‌کند که در حالت موبایل، خدمات و اطلاعات رسمی در یک سطر کنار هم باشند */
    .widget-links, .widget-contact {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }
    
    .contact-item {
        flex-direction: row;
        text-align: start;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        left: 20px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
    }
    
    .floating-contact {
        bottom: 80px;
        right: 20px; /* تغییر از left به right */
    }
    
    .scroll-top-btn {
        bottom: 20px;
    }
}


/* هدر صفحه بلاگ - طراحی جمع‌وجور */
.blog-page-header_blog {
    background: linear-gradient(135deg, #2c3e50, #1a1f36);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    color: var(--primary-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.blog-page-header_blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

/* محتوای هدر */
.blog-header-content_blog {
    position: relative;
    z-index: 1;
}

.header-main_blog {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.header-text_blog {
    flex: 1;
}



.blog-page-title_blog {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-white);
}

.blog-page-title_blog .highlight_blog {
    color: #6ee7b7;
    position: relative;
}

.blog-page-description_blog {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* باکس جستجو */
.blog-search-box_blog {
    width: 300px;
    flex-shrink: 0;
}

.search-input-wrapper_blog {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.search-input_blog {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    color: var(--primary-white);
}

.search-input_blog::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn_blog {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn_blog:hover {
    background: rgba(110, 231, 183, 0.3);
}

/* دسته‌بندی‌های هدر */
.header-categories_blog {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-pill_blog {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-pill_blog:hover {
    background: rgba(110, 231, 183, 0.2);
    border-color: rgba(110, 231, 183, 0.4);
    color: #6ee7b7;
}