/* ==========================================================================
         بخش دوم: استایل‌های مخصوص صفحه اصلی (Home Page Only Styles)
         شامل: اسلایدرها، بنرها، سکشن‌های محصولات و محتوای داخلی صفحه
         -- بازنویسی شده با پالت رنگی Sinour --
 ========================================================================== */

section {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.reveal-item {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
    transform: translateY(100px) scale(0.95);
}

.reveal-item.reveal-left {
    transform: translateX(-100px) scale(0.95);
}

.reveal-item.reveal-right {
    transform: translateX(100px) scale(0.95);
}

.reveal-item.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Hero */
.hero-wrap {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Overlay برای ویدیو و اسلایدر Hero */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay, .hero-video {
    filter: brightness(0.5); /* کمی تیره‌تر برای خوانایی بهتر متن */
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--sinour-white);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About */
.about-section {
    background-color: var(--sinour-white); /* پس‌زمینه سفید */
    overflow: hidden;
}

.about-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 104, 176, 0.1); /* سایه با تناژ آبی */
}

.about-img-wrap img {
    transition: transform 0.5s;
}

.about-img-wrap:hover img {
    transform: scale(1.05);
}

.about-line {
    width: 80px;
    height: 4px;
    background: var(--sinour-primary);
    margin-bottom: 20px;
}

/* Counter */
.counter-section {
    background: linear-gradient(rgba(0, 82, 140, 0.85), rgba(0, 104, 176, 0.85)), url('../images/banner/015.webp'); /* اورلی با رنگ سازمانی */
    background-size: cover;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
}

.counter-icon {
    font-size: 3rem;
    color: var(--sinour-white); /* آیکون سفید برای کنتراست بهتر */
    margin-bottom: 15px;
    display: inline-block;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sinour-white);
}

.counter-label {
    color: var(--sinour-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Products */
.product-slider {
    padding: 10px;
    overflow: hidden;
}

.product-card-dark {
    border-radius: 15px;
    background-color: var(--sinour-white);
    overflow: hidden;
    transition: var(--sinour-transition);
    border: 1px solid var(--sinour-secondary);
    box-shadow: 0 5px 15px rgba(0, 104, 176, 0.08);
}

.product-card-dark:hover {
    transform: translateY(-7px);
    border-color: var(--sinour-primary);
    box-shadow: 0 10px 25px rgba(0, 104, 176, 0.15);
}

.price-tag {
    font-size: 1.2rem;
    color: var(--sinour-text-dark);
    font-weight: 700;
}

.product-card-dark h5 {
    color: var(--sinour-text-dark);
}

/* .text-gold و .bg-gold از متغیرهای root مقدار می‌گیرند و به آبی تغییر کرده‌اند */

/* Shop CTA - تبدیل شده به تم روشن */
.shop-cta-section {
    background-color: #f0f6fb; /* آبی بسیار روشن برای این بخش */
    border-top: 1px solid var(--sinour-secondary);
    border-bottom: 1px solid var(--sinour-secondary);
    position: relative;
    overflow: hidden;
}

.shop-cta-overlay {
    position: absolute;
    top: 0;
    start: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner/019.webp') center/cover fixed;
    opacity: 0.05; /* کاهش شفافیت برای پس‌زمینه روشن */
    z-index: 0;
}

/* بازنویسی رنگ متن‌ها در این بخش به تیره */
.shop-cta-section h2, .shop-cta-section h6 {
    color: var(--sinour-text-dark) !important;
}

.shop-cta-section p {
    color: var(--sinour-text-gray) !important;
}

.service-box {
    background: var(--sinour-white);
    padding: 20px;
    border-radius: 15px;
    transition: var(--sinour-transition);
    border: 1px solid var(--sinour-secondary);
    height: 100%;
}

.service-box:hover {
    border-color: var(--sinour-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 104, 176, 0.1);
}

/* Services */
.services-main-section {
    padding: 80px 0;
    background-color: var(--bg-body);
}

.service-card-main {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--sinour-white);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 104, 176, 0.1);
    transition: var(--sinour-transition);
    height: 100%;
}

.service-card-main:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 104, 176, 0.15);
}

.service-icon-main {
    width: 90px;
    height: 90px;
    background: var(--sinour-primary);
    color: var(--sinour-white); /* متن آیکون به سفید تغییر کرد */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

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

.service-card-main h5 {
    font-weight: 700;
    color: var(--sinour-text-dark);
    margin-bottom: 15px;
}

.service-card-main p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Contact Area - طبق درخواست با پس‌زمینه تیره */
.contact-section-bg {
    background: #2a2a2a; /* طوسی تیره درخواستی */
}

.contact-cta-section {
    padding: 5rem 0;
}

.contact-pulse-btn {
    width: 100px;
    height: 100px;
    background-color: var(--sinour-primary);
    color: var(--sinour-white) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 104, 176, 0.5); /* سایه با رنگ سازمانی */
    transition: transform 0.3s;
    margin: 0 auto;
}

.contact-pulse-btn:hover {
    transform: scale(1.1);
    color: var(--sinour-white) !important;
}

.contact-pulse-btn::before, .contact-pulse-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--sinour-primary);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

.contact-pulse-btn::after {
    animation-delay: 0.5s;
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 220%;
        height: 220%;
        opacity: 0;
    }
}

.btn-contact-custom {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--sinour-white);
    transition: 0.3s;
}

.btn-contact-custom:hover {
    background-color: var(--sinour-white);
    color: var(--sinour-text-dark);
    border-color: var(--sinour-white);
}

/* Blog */
.blog-card {
    border-radius: 15px;
    background-color: var(--sinour-white);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 104, 176, 0.05);
    border: 1px solid var(--sinour-secondary);
    transition: var(--sinour-transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 104, 176, 0.1);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--sinour-primary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.blog-title {
    color: var(--sinour-text-dark);
    font-size: 1.2rem;
    transition: 0.3s;
}

.blog-card:hover .blog-title {
    color: var(--sinour-primary);
}

.read-more {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.read-more i {
    margin-right: 5px;
    transition: 0.3s;
}

.read-more:hover i {
    margin-right: 10px;
    color: var(--sinour-primary);
}

.section-title-divider {
    width: 50px;
    height: 3px;
    background: var(--sinour-primary);
}

/* --- HERO SLIDER --- */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .swiper-wrapper, .hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 40, 70, 0.1) 0%, rgba(0, 65, 110, 0.6) 100%);
}

/* --- HERO CAPTION (GLASS STYLE) --- */
.hero-caption {
    position: absolute;
    bottom: 60px;
    right: 60px;
    z-index: 2;
    max-width: 420px;
    padding: 22px 26px;
    background: rgba(10, 25, 50, 0.4); /* شیشه تیره‌تر با تناژ آبی */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: right;
    color: var(--sinour-white);
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .hero-caption {
    opacity: 1;
    transform: translateY(0);
}

.hero-caption h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--sinour-white);
}

.hero-caption p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.hero-caption-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--sinour-white);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.35s ease;
    will-change: transform;
}

.hero-btn {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1), box-shadow 0.3s ease;
    will-change: transform;
}

.hero-btn:hover, .hero-caption-btn:hover {
    background-color: var(--sinour-primary);
    border-color: var(--sinour-primary);
    transform: translateY(-3px);
    color: var(--sinour-white) !important;
    box-shadow: 0 5px 15px rgba(0, 104, 176, 0.4);
}

/* --- HERO NAVIGATION --- */
.hero-slider-nav {
    position: absolute;
    left: 40px;
    bottom: 40px;
    display: flex;
    gap: 14px;
}

.hero-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--sinour-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 991px) {
    .hero-caption {
        left: 50%;
        right: auto;
        bottom: 20px;
        transform: translate(-50%, 35px);
        text-align: center;
        width: calc(100% - 36px);
        max-width: 480px;
    }

    .swiper-slide-active .hero-caption {
        transform: translate(-50%, 0);
    }

    .hero-slider-nav {
        left: 15px;
        bottom: 15px;
    }

    .hero-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}
/* ==========================================================================
         استایل‌های نوار هایلایت و دکمه‌ها (بهینه‌شده با رنگ سازمانی)
========================================================================== */
.highlights-section {
    background-color: var(--sinour-white);
    border-bottom: 1px solid rgba(0, 104, 176, 0.1); /* سایه ملایم با رنگ اصلی */
}

.highlights-wrapper {
    position: relative;
    width: 100%;
}

.highlights-swiper {
    width: 100%;
    padding: 20px 0; /* افزایش پدینگ برای جلوگیری از برش سایه‌ها */
}

/* --- استایل آیتم‌ها و دایره‌ها --- */
.highlight-item {
    width: 90px !important;
    text-align: center;
}

.highlight-cover {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    outline: none;
    user-select: none;
}

.highlight-ring {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    /* استفاده از رنگ سازمانی به جای گرادیانت اینستاگرام */
    background: var(--sinour-primary);
    padding: 3px;
    /* سایه ملایم همرنگ با برند */
    box-shadow: 0 4px 15px rgba(0, 104, 176, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.highlight-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sinour-white);
    background-color: var(--sinour-white);
    transition: transform 0.3s ease;
}

/* افکت هاور جذاب‌تر با رنگ‌های برند */
.highlight-cover:hover .highlight-ring {
    transform: scale(1.08) rotate(5deg);
    background: var(--sinour-primary-hover); /* تغییر به رنگ تیره‌تر در زمان هاور */
    box-shadow: 0 8px 20px rgba(0, 104, 176, 0.3); /* پررنگ‌تر شدن سایه */
}

.highlight-cover:hover .highlight-ring img {
    transform: scale(1.02);
}

.highlight-title {
    font-size: 0.8rem;
    color: var(--sinour-text-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.highlight-cover:hover .highlight-title {
    color: var(--sinour-primary); /* تغییر رنگ متن به آبی سازمانی در زمان هاور */
}

/* --- استایل دکمه‌های ناوبری (دستگیره‌ها) --- */
.highlight-btn-next,
.highlight-btn-prev {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(5px) !important; /* افکت شیشه‌ای */
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    top: 59px !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.highlight-btn-next {
    right: 0 !important;
}

.highlight-btn-prev {
    left: 0 !important;
}

.highlight-btn-next::after,
.highlight-btn-prev::after {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: var(--sinour-text-dark) !important;
    transition: color 0.3s ease !important;
}

/* هاور دکمه‌های اسلایدر با رنگ آبی سازمانی */
.highlight-btn-next:hover,
.highlight-btn-prev:hover {
    background: var(--sinour-primary) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.highlight-btn-next:hover::after,
.highlight-btn-prev:hover::after {
    color: var(--sinour-white) !important;
}

.swiper-button-disabled.highlight-btn-next,
.swiper-button-disabled.highlight-btn-prev {
    opacity: 0 !important;
    visibility: hidden;
}

/* ==========================================================================
         استایل‌های مودال اختصاصی نمایش ویدئو (لنداسکیپ)
========================================================================== */
.custom-highlight-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.custom-highlight-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--sinour-white);
    font-size: 35px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.modal-content-wrapper {
    position: relative;
    z-index: 1;
    width: 90%; /* عرض زیاد برای حالت لنداسکیپ */
    max-width: 960px; /* حداکثر عرض مودال */
    aspect-ratio: 16 / 9; /* حفظ نسبت استاندارد مستطیل ویدئو */
    height: auto; /* ارتفاع خودکار بر اساس عرض */
    border-radius: 16px; /* گوشه‌های نرم‌تر */
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-highlight-modal.active .modal-content-wrapper {
    transform: scale(1);
}

.modal-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* استایل برای ویدئو یا iframe درون مودال */
.modal-video-container video,
.modal-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* تضمین اینکه کانتینر ویدئو تمام فضای مودال را می‌گیرد */
#video-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* هر تگی (iframe, video یا div) که توسط Ajax اضافه شود، فول اسکرین می‌شود */
#video-content > * {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border: none !important;
    object-fit: cover;
}

/* تنظیمات مخصوص آپارات */
#video-content .h_iframe-aparat_embed_frame {
    position: relative !important;
    padding-top: 0 !important;
    height: 100% !important;
    width: 100% !important;
}

/* لودینگ انیمیشنی */
.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 2;
}

.modal-loader.active {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--sinour-primary); /* تغییر رنگ لودینگ به آبی */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==========================================================================
         مدیا کوئری (واکنش‌گرایی برای موبایل)
========================================================================== */
@media (max-width: 768px) {
    /* جعبه اصلی مودال را تمام صفحه میکنیم و از فلکس برای وسط‌چین کردن استفاده میکنیم */
    .modal-content-wrapper {
        width: 100% !important;
        height: 100vh !important; /* کل ارتفاع صفحه موبایل را پر کند */
        max-width: 100% !important;
        border-radius: 0 !important;

        /* کدهای جادویی فلکس برای وسط‌چین کردن مطلق محتوا */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* ویدئو را از نظر عمودی وسط می‌آورد */
        align-items: center !important;     /* ویدئو را از نظر افقی وسط می‌آورد */

        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        background: #000 !important;
    }

    /* کانتینر خود ویدئو را مجبور میکنیم نسبت 16:9 بگیرد */
    #video-content {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        display: block !important;
        position: relative !important;
    }

    /* تنظیم جایگاه دکمه بستن در موبایل */
    .modal-close-btn {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 9999 !important;
        width: 35px;
        height: 35px;
    }
}

