﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0f2c3d;
    --primary: #1a4a6e;
    --primary-light: #2c6e9e;
    --accent: #e8a838;
    --accent-light: #f5c86e;
    --gold: #d4af37;
    --silver: #b0bec5;
    --bg-light: #f8f9fc;
    --white: #ffffff;
    --text-dark: #2d3e50;
    --text-gray: #6c7a89;
    --border-light: #e8ecef;
    --shadow-sm: 0 5px 20px rgba(0,0,0,0.05);
    --shadow-md: 0 15px 35px rgba(0,0,0,0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.15);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

body {
    font-family: 'Sahel', 'Tahoma', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 25px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.header-scrolled {
    background: white;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-gray);
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 5px;
    list-style: none;
    align-items: center;
}

    .nav-list li a {
        text-decoration: none;
        padding: 10px 18px;
        border-radius: 40px;
        font-weight: 600;
        color: var(--text-dark);
        transition: var(--transition);
        font-size: 0.9rem;
    }

        .nav-list li a:hover {
            background: var(--primary);
            color: white;
        }

        .nav-list li a.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 12px rgba(26,74,110,0.3);
        }

.btn-consult {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--primary-dark) !important;
    font-weight: 700;
}

    .btn-consult:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(232,168,56,0.4);
    }

.mobile-menu-toggle {
    display: none;
    background: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
}

/* ========== HERO SLIDER ========== */
.hero-section {
    margin-top: 85px;
    position: relative;
}

.heroSwiper {
    width: 100%;
    height: 600px;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

    .hero-bg::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(15,44,61,0.65), rgba(26,74,110,0.5));
    }

.hero-content {
    position: absolute;
    bottom: 20%;
    right: 10%;
    left: 10%;
    text-align: center;
    color: white;
    z-index: 2;
}

    .hero-content h2 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 16px;
        text-shadow: 0 2px 15px rgba(0,0,0,0.2);
    }

    .hero-content p {
        font-size: 1.2rem;
        opacity: 0.95;
    }

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 18px;
    }

/* ========== STATS CARDS ========== */
.stats-section {
    transform: translateY(-40px);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

    .stat-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent);
    }

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: white;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    direction: ltr;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 600;
    margin-top: 8px;
}

/* ========== PORTAL BUTTONS ========== */
.portal-section {
    padding: 60px 0;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.portal-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 45px 35px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

    .portal-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold));
    }

    .portal-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

.portal-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 45px;
    color: white;
}

.portal-card h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.portal-card p {
    color: var(--text-gray);
    margin-bottom: 28px;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

    .portal-btn:hover {
        background: var(--primary-light);
        gap: 18px;
        transform: scale(1.02);
    }

/* ========== BLOG ========== */
.blog-section {
    padding: 70px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

    .section-header h2 {
        font-size: 2.2rem;
        color: var(--primary-dark);
        margin-bottom: 12px;
    }

.section-line {
    display: inline-block;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 3px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

    .blog-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-md);
    }

.blog-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* ========== ABOUT ========== */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4f8, #e8edf2);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.address-box {
    background: white;
    padding: 22px 28px;
    border-radius: var(--radius-md);
    margin: 25px 0;
    border-right: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

    .address-box i {
        color: var(--accent);
        width: 30px;
    }

.about-stats {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

    .about-stats span {
        background: white;
        padding: 10px 22px;
        border-radius: 40px;
        font-weight: 700;
        color: var(--primary);
        box-shadow: var(--shadow-sm);
    }

.about-image {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50px;
    padding: 50px;
    text-align: center;
    color: white;
    font-size: 120px;
}

/* ========== SERVICES (8 ITEMS) ========== */
.services-section {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-md);
        border-color: var(--accent);
    }

.service-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* ========== PARTNERS ========== */
.partners-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.partner-card {
    background: white;
    padding: 25px 35px;
    border-radius: 50px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

    .partner-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
        border-color: var(--gold);
    }

.partner-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* ========== TEAM SLIDER ========== */
.team-section {
    padding: 70px 0;
    background: white;
}

.teamSwiper {
    padding: 20px 0;
}

.team-card {
    background: white;
    border-radius: 32px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin: 15px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

    .team-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

.team-img img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    margin-bottom: 18px;
}

.team-position {
    color: var(--accent);
    font-weight: 700;
    margin: 8px 0;
}

/* ========== FOOTER 4 COLUMNS ========== */
.site-footer {
    background: #0f2c3d;
    color: #c8d6e5;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: white;
    margin-bottom: 22px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

    .footer-col h4:after {
        content: '';
        position: absolute;
        bottom: -8px;
        right: 0;
        width: 45px;
        height: 3px;
        background: var(--accent);
        border-radius: 3px;
    }

.footer-col p {
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

    .footer-col ul li {
        margin-bottom: 12px;
    }

        .footer-col ul li a {
            color: #c8d6e5;
            text-decoration: none;
            transition: var(--transition);
            font-size: 0.85rem;
        }

            .footer-col ul li a:hover {
                color: var(--accent);
                padding-right: 5px;
            }

.footer-col i {
    width: 28px;
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 25px 0;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

    .social-icons a {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: var(--transition);
        font-size: 1.1rem;
    }

        .social-icons a:hover {
            background: var(--accent);
            transform: translateY(-3px);
        }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .heroSwiper {
        height: 480px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 77px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 77px);
        background: white;
        transition: right 0.3s;
        z-index: 999;
        padding: 30px;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        border-radius: 24px 0 0 24px;
    }

        .main-nav.nav-open {
            right: 0;
        }

    .nav-list {
        flex-direction: column;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-section {
        transform: translateY(-20px);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4:after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .heroSwiper {
        height: 350px;
    }

    .container {
        padding: 0 20px;
    }
}

/* ========== TEAM SLIDER HORIZONTAL (تصویر جلوی اسم) ========== */
.team-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    overflow: hidden;
}

    .team-section::before {
        content: '';
        position: absolute;
        top: 20%;
        left: -10%;
        width: 120%;
        height: 70%;
        background: radial-gradient(ellipse at center, rgba(26,74,110,0.08) 0%, rgba(26,74,110,0) 70%);
        border-radius: 50%;
        z-index: 0;
        pointer-events: none;
    }

    .team-section::after {
        content: '';
        position: absolute;
        bottom: 10%;
        right: -15%;
        width: 130%;
        height: 60%;
        background: radial-gradient(ellipse at center, rgba(232,168,56,0.06) 0%, rgba(232,168,56,0) 70%);
        border-radius: 50%;
        z-index: 0;
        pointer-events: none;
    }

.teamSwiper {
    position: relative;
    z-index: 2;
    padding: 30px 0 60px;
}

/* کارد افقی - تصویر در کنار اسم */
.team-card-horizontal {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 28px 32px;
    transition: all 0.4s ease;
    border: 1px solid rgba(26,74,110,0.1);
    backdrop-filter: blur(2px);
    width: 100%;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
}

    .team-card-horizontal:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.2);
        border-color: var(--accent);
    }

/* تصویر پروفایل */
.team-img-horizontal {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: var(--primary-light);
    transition: all 0.3s ease;
}

    .team-img-horizontal img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* اطلاعات در سمت چپ تصویر */
.team-info-horizontal {
    flex: 1;
    text-align: right;
}

.team-name-horizontal {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.team-position-horizontal {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.team-bio-horizontal {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-top: 8px;
}

    .team-bio-horizontal p {
        margin-bottom: 6px;
    }

    .team-bio-horizontal i {
        color: var(--accent);
        width: 22px;
        font-size: 0.8rem;
    }

.team-section .swiper-button-next,
.team-section .swiper-button-prev {
    background: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .team-section .swiper-button-next:after,
    .team-section .swiper-button-prev:after {
        font-size: 18px;
        color: white;
    }

    .team-section .swiper-button-next:hover,
    .team-section .swiper-button-prev:hover {
        background: var(--accent);
    }

.team-section .swiper-pagination-bullet-active {
    background: var(--accent);
}

@media (max-width: 768px) {
    .team-card-horizontal {
        flex-direction: column;
        text-align: center;
        max-width: 95%;
        padding: 20px;
    }

    .team-img-horizontal {
        width: 90px;
        height: 90px;
    }

    .team-name-horizontal {
        font-size: 1.2rem;
    }

    .team-bio-horizontal {
        text-align: center;
        font-size: 0.75rem;
    }

    .team-info-horizontal {
        text-align: center;
    }
}
