﻿.company-slogan {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
    margin: 0 15px;
}

    .company-slogan h3 {
        font-family: 'Playfair Display', serif;
        font-weight: 700; /* Bold */
        font-size: 2.5rem;
        color: #2a4365;
    }

    .company-slogan p {
        font-family: 'Playfair Display', serif;
        font-weight: 400; /* Regular */
        font-size: 1.2rem;
        color: #4a5568;
        font-style: italic;
    }

    .company-slogan h3 {
        font-size: 18px;
        color: #333;
        margin-bottom: 5px;
    }

    .company-slogan p {
        font-size: 14px;
        color: #777;
    }
/* اضافه کردن این استایل برای هدر */
header {
    position: relative;
    z-index: 1000; /* مقدار بالاتر از اسلایدر */
}

/* استایل‌های قبلی اسلایدر */
.slider-animate {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 100; /* مقدار کمتر از هدر */
}

.swiper-slide {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}

.swiper-slide-active,
.swiper-slide-duplicate-active {
    opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1.5rem;
    }

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--theme-color);
    opacity: 1;
}

.text-box {
    padding: 30px;
    border-radius: 15px;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

    .text-box::before {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        /*  background: linear-gradient(45deg, #c5e5ff, #f0f0f0, #fefefe); */
        z-index: -1;
        border-radius: 18px;
    }

.home-overlay {
    display: flex;
    align-items: center;
}


.heding-2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.content-2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #555;
}

.text-content {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.imgCourse {
    transition-duration: 0.5s;
}

    .imgCourse:hover {
        transition-duration: 0.5s;
        opacity: 0.5;
    }

.btnPro {
    color: #013660;
    border: 1px solid #013660;
    background-color: transparent;
    transition: all 0.3s ease;
}

    /* حالت hover */
    .btnPro:hover {
        background-color: #013660 !important;
        color: white !important;
        border-color: #013660 !important;
    }

/* استایل خاص برای دکمه‌های outline */
.btn-outline.btnPro {
    background-color: transparent;
    color: #013660;
}

    .btn-outline.btnPro:hover {
        background-color: #013660 !important;
        color: white !important;
    }

.uniform-image {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain; /* برای حفظ تناسب تصویر */
}


/* استایل پاپ آپ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .popup-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.popup-container {
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-header {
    padding: 15px 20px;
    background-color: #f8f8f8;
    color: #00355f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
}

.popup-title {
    font-size: 20px;
    font-weight: bold;
}

.close-popup {
    background: none;
    border: none;
    color: #00355f;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.popup-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 70vh;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.file-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}



/* تصاویر فایل‌ها در پاپ‌آپ */
.file-image {
    width: 100%;
    height: 190px; /* کاهش ارتفاع از 150px */
    object-fit: cover;
    aspect-ratio: 1/1; /* نسبت مربعی */
}



.file-details {
    padding: 15px;
}

.file-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.file-title {
    font-size: 14px;
    color: #00355f;
    margin-bottom: 8px;
}

.file-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.download-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #00355f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #00355f;
    transition: background-color 0.3s;
}

    .download-btn:hover {
        background-color: white;
        color: #00355f;
    }


#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #fefefe url('/AtiAbzar/images/loading/loading.gif') no-repeat center;
    z-index: 999;
    display: none;
}

@@media (max-width: 600px) {
    .file-list {
        grid-template-columns: 1fr;
    }
}

.product-box-4 {
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
}

    .product-box-4:hover {
        border-color: #1169ae; /* رنگ دلخواه */
        box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* سایه مختصر */
        background-color: #fafafa;
    }

.gallery-btn-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.product-box-4:hover .gallery-btn-container {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* دکمه گالری */
.gallery-btn {
    background-color: #007bff; /* آبی پیش‌فرض */
    color: #fff;
    font-size: 0.75rem; /* کوچیک‌تر از btn-sm */
    padding: 3px 10px; /* جمع و جورتر */
    border-radius: 6px;
    border: none;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    cursor: pointer;
}

    /* افکت hover روی دکمه */
    .gallery-btn:hover {
        background-color: #0056b3; /* آبی تیره‌تر */
        transform: scale(1.05); /* کمی بزرگتر شه برای جذابیت */
        color: #fff;
    }
.swiper-slide img {
    width: 100%;
    height: 250px; /* ارتفاع پیش‌فرض (موبایل) */
    object-fit: cover;
}

@media (min-width: 768px) {
    .swiper-slide img {
        height: 400px; /* تبلت */
    }
}

@media (min-width: 1200px) {
    .swiper-slide img {
        height: 500px; /* دسکتاپ */
    }
}