/* ==================== متغیرهای رنگ ==================== */
:root {
    --primary-color: #1a5490;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --dark-bg: #1e2833;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ==================== تنظیمات پایه ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==================== کانتینر ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== هدر ==================== */
header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    color: var(--white);
    position: relative;
    overflow: visible;
     z-index: 100;
    box-shadow: var(--shadow-lg);
}


header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><circle cx="50" cy="50" r="35" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: contain;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="20" width="60" height="60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><rect x="30" y="30" width="40" height="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: contain;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.top-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    z-index: 10000;
}

.top-bar .social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: var(--accent-color);
}

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

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* ==================== نویگیشن ==================== */
/* ==================== Main Navigation (Modern) ==================== */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    backdrop-filter: blur(10px);
}

/* ---------- Wrapper ---------- */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

/* ================= Desktop Menu ================= */
/* ==================== Main Navigation (Final & Fixed) ==================== */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(26, 84, 144, 0.75);
    backdrop-filter: blur(12px);
}

/* ---------- Wrapper ---------- */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
}

.logo-img {
    width: 64px;
    height: 64px;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}

/* ================= Desktop Menu ================= */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    position: relative;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--white);
    border-radius: 999px;
    transition: background .25s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, .12);
}

/* ===== Underline ONLY Desktop ===== */
@media (min-width: 993px) {
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: -6px;
        right: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg,
                var(--accent-color),
                var(--secondary-color));
        transform: translateX(50%);
        border-radius: 2px;
        transition: width .3s ease;
    }

    .nav-menu a:hover::after {
        width: 55%;
    }

    .nav-menu a.active::after {
        width: 75%;
        height: 2.5px;
    }
}

/* ================= Submenu (Desktop) ================= */
.has-submenu {
    display: flex;
    align-items: center;
}

.submenu-toggle {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    margin-right: -6px;
    color: var(--white);
    user-select: none;
    background: transparent;
    border: 0;
    padding: 4px 6px;
    line-height: 1;
}

.submenu {
    position: absolute;
    top: 130%;
    right: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.35);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
}

@media (min-width: 993px) {
    .has-submenu:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.submenu li a:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ================= Mobile ================= */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: .3s;
}

@media (max-width: 992px) {

    body.menu-open {
        overflow: hidden;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 25px;
        background: linear-gradient(180deg, #1a5490, #1e2833);
        transition: right .35s ease;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: 12px 0;
        border-radius: 0;
    }
    

    /* ✅ Mobile active style (no underline) */
    .nav-menu a::after {
        display: none;
    }

    .nav-menu a.active {
        background: rgba(255, 255, 255, .12);
        padding-right: 12px;
        border-right: 3px solid var(--accent-color);
    }

    /* Submenu mobile */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background:#0088cc;
        padding-right: 15px;
        display: none;
    }

        .nav-menu .submenu li a {
            color: #f39c12;
            /* رنگ دلخواه شما */
        }

    .has-submenu.open .submenu {
        display: block;
    }

    .submenu-toggle {
        margin-right: auto;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ================= Hamburger → X ================= */
body.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

body.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}
/* ==================== بخش اصلی (Hero) ==================== */

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.80) 0%, rgba(30, 40, 51, 0.80) 100%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="200" cy="200" r="180" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="3"/><circle cx="200" cy="200" r="140" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="3"/><circle cx="200" cy="200" r="100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="3"/><rect x="800" y="100" width="240" height="240" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="3"/><rect x="850" y="150" width="140" height="140" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="3"/><circle cx="1000" cy="450" r="80" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/><circle cx="100" cy="500" r="60" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/></svg>');
    background-size: cover;
    background-position: center;
    z-index: 2;
    opacity: 0.5;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    opacity: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s;
    animation-fill-mode: both;
    position: relative;
    z-index: 10;
}

.hero-buttons .btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

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

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e5490, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--shadow);
    border: 2px solid var(--white);
}


.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn i {
    margin-left: 8px;
}



/* ==================== ویژگی‌ها ==================== */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== محصولات ==================== */
.products-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.product-price small {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
}

/* ==================== فوتر ==================== */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f1419 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 10px;
}

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

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-section i {
    margin-left: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==================== فرم تماس ==================== */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ==================== بارگذاری ==================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== پیام‌های Alert ==================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}   


/* ==================== انیمیشن کلید مخفی ادمین ==================== */
@keyframes adminAccessFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
    

/* =========================================
   Customer Reviews – Standard layout (Feb 2026)
========================================= */
.reviews-section {
    padding: 72px 0 80px;
    background: linear-gradient(0deg, #f3f6fb 0%, #ffffff 100%);
}

.reviews-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-header .section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #152133;
    margin-bottom: 14px;
}

.reviews-header .section-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #5b6676;
    font-size: 0.98rem;
    line-height: 1.8;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e3e7ef;
    border-radius: 18px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
    box-shadow: 0 12px 28px -18px rgba(21, 33, 51, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px -22px rgba(21, 33, 51, 0.3);
}

.review-rating {
    display: inline-flex;
    gap: 4px;
    color: #f39c12;
    font-size: 1.05rem;
}

.review-rating .fas.fa-star,
.review-rating .far.fa-star {
    color: currentColor;
}

.review-message {
    color: #222f43;
    font-size: 0.98rem;
    line-height: 1.9;
}

.review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a5490;
    font-weight: 600;
}

.review-author i {
    font-size: 1.8rem;
    color: rgba(26, 84, 144, 0.8);
}

.review-author strong {
    display: block;
    font-size: 1rem;
    color: #152133;
}

.review-author span {
    font-size: 0.9rem;
    color: #5b6676;
    font-weight: 500;
}

.review-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(26, 84, 144, 0.08);
    color: #1a5490;
    font-size: 0.85rem;
    font-weight: 600;
}

.review-date i {
    font-size: 0.9rem;
}

.reviews-empty {
    grid-column: 1 / -1;
    padding: 64px 24px;
    border-radius: 18px;
    border: 1px dashed #c7cedb;
    background: rgba(255, 255, 255, 0.9);
    color: #5b6676;
    text-align: center;
}

.reviews-empty i {
    font-size: 2.3rem;
    margin-bottom: 12px;
    color: rgba(26, 84, 144, 0.55);
}

/* Review form */
.review-form-wrapper {
    background: #ffffff;
    border: 1px solid #dfe3ec;
    border-radius: 20px;
    padding: 34px 32px;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 14px 36px -24px rgba(15, 28, 47, 0.32);
}

.review-form-wrapper h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #152133;
    margin-bottom: 24px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.review-form {
    display: grid;
    gap: 22px;
    text-align: right;
}

.review-form .form-row {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.review-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-form label {
    color: #1f2d3d;
    font-weight: 600;
    font-size: 0.95rem;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1px solid #cfd6e4;
    border-radius: 12px;
    background: #f7f9fc;
    font-size: 0.95rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    border-color: #1a5490;
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.18);
    background: #ffffff;
    outline: none;
}

.review-form textarea {
    min-height: 150px;
    resize: vertical;
}

.review-form .btn.btn-primary {
    justify-self: center;
    padding: 0.8rem 2.6rem;
    border-radius: 999px;
    background: #1a5490;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.96rem;
    border: none;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.review-form .btn.btn-primary:hover {
    background: #164474;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -16px rgba(26, 84, 144, 0.4);
}

.review-alert {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    background: rgba(26, 84, 144, 0.08);
    color: #1a5490;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.review-form .hidden-field {
    display: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .reviews-section {
        padding: 56px 0 64px;
    }

    .reviews-header {
        margin-bottom: 36px;
    }

    .review-card {
        padding: 22px 20px;
    }

    .review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .review-form-wrapper {
        padding: 28px 24px;
    }
}

.reviews-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 14px 22px;
    border: 1px solid #dfe3ec;
    border-radius: 14px;
    background: rgba(26, 84, 144, 0.06);
    color: #152133;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.reviews-callout span {
    font-weight: 600;
    color: #1f2d3d;
}

.reviews-callout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #1a5490;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.reviews-callout-link:hover {
    background: #164474;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -18px rgba(26, 84, 144, 0.45);
}

.reviews-callout-link i {
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .reviews-callout {
        text-align: center;
        padding: 12px 18px;
    }

    .reviews-callout-link {
        width: 100%;
        justify-content: center;
    }
}

.lang-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.lang-menu {
    position: absolute;
    top: 32px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999;
    min-width: 140px;
}

.lang-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: #fff;
    border: none;
    text-align: right;
    cursor: pointer;
    font-family: inherit;
}

.lang-menu button:hover {
    background: #f2f2f2;
}




.has-submenu {
    position: relative;
}

.submenu-toggle {
    cursor: pointer;
    margin-right: 6px;
    font-size: 12px;
    user-select: none;
}

.submenu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 999;
}

.submenu li {
    list-style: none;
}

.submenu li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
}

.submenu li a:hover,
.submenu li a.active {
    background: #f2f2f2;
}

.has-submenu:hover > .submenu {
    display: block;
}

/* حالت موبایل */
@media (max-width: 900px) {
    .submenu {
        position: static;
        box-shadow: none;
        background: transparent;
        display: none;
        padding: 0;
        margin-top: 6px;
    }

    .has-submenu.open > .submenu {
        display: block;
    }

    .submenu li a {
        padding: 8px 12px;
    }
}




/* ═══════════════════════════════════════════
   بخش مشتریان ما — clients-section
   ═══════════════════════════════════════════ */
.clients-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8faff 0%, #eef3fa 100%);
}

.clients-section .section-title {
    text-align: center;
    margin-bottom: 8px;
}

.clients-section .section-subtitle {
    text-align: center;
    color: #607388;
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ─── گرید کارت‌ها ─── */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* ─── کارت مشتری ─── */
.client-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(15, 36, 66, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15, 36, 66, 0.12);
}

/* ─── لوگو بزرگ ─── */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;              /* خیلی بزرگ‌تر شد */
    background: #f9fbff;
    border-bottom: 1px solid #eef2f9;
    overflow: hidden;
}

.client-logo img {
    max-width: 100%;            /* تمام عرض */
    max-height: 100%;           /* تمام ارتفاع */
    object-fit: contain;
    padding: 10px;              /* فاصله نرم */
    transition: transform 0.3s ease;
}

.client-card:hover .client-logo img {
    transform: scale(1.12);
}

/* بدون تصویر */
.client-no-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #d7dee7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.4rem;
}

/* ─── اطلاعات ─── */
.client-info {
    padding: 20px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    text-align: center;
}

.client-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2933;
    margin-bottom: 10px;
}

.client-desc {
    font-size: 0.95rem;
    color: #607388;
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.client-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a5490;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 12px;
    background: rgba(26, 84, 144, 0.07);
    transition: 0.25s ease;
}

.client-link:hover {
    background: rgba(26, 84, 144, 0.15);
    color: #0e3a6e;
}

/* ─── ریسپانسیو ─── */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .client-logo {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .client-logo {
        height: 220px;
    }
}
