* {
    box-sizing: border-box;
}

/* بخش بنر اصلی سایت */
.hero {
    position: relative;
    text-align: center;
    color: white;
    min-height: 380px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center 30%;

}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1.5px) brightness(0.75);
}

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

/*************************/

/* لایه تار برای خوانایی متن */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 75, 107, 0.25);
    z-index: 1;
}

.hero h1 {
    font-size: var(--fs-h1);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.hero p {
    font-size: var(--fs-body);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.home-btn {
    font-family: 'Vazirmatn';
    font-size: var(--fs-body);
    display: inline-block;
    background-color: #38BDF8;
    color: white;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    margin-right: 8px;
    transition: transform .3s,
    background-color .3s,
    box-shadow .3s;
}

/* فقط دکمه داخل اسلایدر */
.caption .home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    margin-top: 10px;
    background: #38BDF8;
    color: #fff;
    border-radius: 18px;
    text-decoration: none;
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.2;
    transition: .2s ease;
}

.caption .home-button:hover {
    background: #0EA5E9;
}

/* ===================== */
/* Slider */

.slider-section {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px;
}

.slider-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.mySwiper {
    width: 100%;
    aspect-ratio: 19 / 7;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.swiper-slide {
    position: relative;
}

.swiper-slide picture,
.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;

}

.caption {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 45px 55px;
    text-align: center;
    color: #fff;
    animation: fadeUp .7s ease;
    z-index: 5;
    pointer-events: none;
}

.caption .home-button {
    pointer-events: auto;
}

.slider-content {
    max-width: 520px;
    color: #fff;
    text-align: right;
}

.caption h2 {
    font-size: 2.4rem;
    line-height: 1.5;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .6);

}

/*مربوط به فیلد محتوای اسلاید*/
.slider-description {
    max-width: 700px;
    margin-bottom: 10px;
    line-height: 2;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);

}

.slider-description p {
    margin-bottom: 6px;
}

.slider-description ul,
.slider-description ol {
    display: inline-block;
    text-align: right;
    margin: 15px auto;
    padding-right: 25px;
}

.slider-description li {
    margin-bottom: 8px;
}

.slider-description strong {
    font-weight: 700;
}

.slider-description em {
    font-style: italic;
}

/**/
.swiper-button-next,
.swiper-button-prev {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
    color: #fff;
    transition: .3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #38BDF8;
    transform: scale(1.08);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: .45;
    transition: 0.3s;
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 20px;
    background: #38BDF8;
    opacity: 1;
}

@media (max-width: 768px) {

    .slider-section {
        padding: 0 12px;
    }

    .mySwiper {
        aspect-ratio: 16 / 9;
    }

    .caption {
        align-items: flex-end;
        justify-content: right;
        padding: 20px;
    }

    .slider-content {
        max-width: 100%;
        text-align: right;
    }

    .slider-description {
        font-size: .9rem;
        line-height: 1.8;
    }


    .caption h2 {
        font-size: 1.3rem;
    }

    .caption p {
        font-size: .9rem;
        max-width: 100%;
        line-height: 1.9;
    }

    .caption .home-button {

        padding: 3px 8px;
        margin-top: 5px;
        font-size: .65rem;
        border-radius: 12px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }

}

/* ===================== */


.home-btn:hover {
    transform: translateY(-2px);
    background-color: #0EA5E9;
}

/* کارت‌های خدمات */
.services {
    padding: 20px 0 60px;
}

.services .section-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.section-title {
    text-align: center;
    font-size: var(--fs-h2);
    margin-bottom: 10px;
    margin-top: 15px;
    color: #0A4B6B;
}

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

.home-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.home-card:hover {
    transform: translateY(-5px);
}

.home-card p {
    font-size: var(--fs-body);
    line-height: 2;
    color: #666;
    min-height: 80px;
}

.home-card h3 {
    font-size: var(--fs-h3);
    margin: 15px 0;
    color: #0A4B6B;
}

.home-card .home-btn {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: .9rem;
}

/* بخش چرا ما */
/* ==========================
   Features
========================== */

.features {
    padding: 20px 0;
    position: relative;
    background: #fff;
    box-shadow: inset 0 1px 0 #f3f3f3;

}

.features-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.feature {
    text-align: center;
    position: relative;
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    width: 70px;
    height: 70px;
    transition: .3s;
}

.feature:hover .feature-icon img {
    transform: scale(1.08);
}

.feature h3 {
    margin-bottom: 15px;
    font-size: var(--fs-h3);
    color: #222;
}

.feature p {
    font-size: var(--fs-body);
    color: #666;
    line-height: 2;
}

.feature:not(:last-child)::after {
    content: "";

    position: absolute;

    left: -25px;

    top: 20%;

    width: 1px;

    height: 60%;

    background: #e6e6e6;
}

.comments-wrapper {

    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 25px;
}

.comments-section {
    margin-bottom: 50px;
    flex: 2;
}

.comment-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.contact-form {
    background: white;
    width: 100%;
    max-width: 700px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    flex: 1;
}

.comment-card h4 {
    color: #0A4B6B;
    margin-bottom: 10px;
}


.rating {
    font-size: 20px;
    margin-bottom: 10px;
}

.comment-card small {
    display: block;
    font-size: var(--fs-small);
    margin-top: 15px;
    color: #6B7280;
}

.hidden-comment {
    display: none;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    font-family: 'Vazirmatn';
    width: 100%;
    padding: 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: var(--fs-body);
    transition: .3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(10, 75, 107, .12);
}

/* ==========================
   Latest Articles
========================== */

.latest-articles {
    padding: 30px 0 10px;
}

.articleSwiper {
    width: 100%;
    padding: 20px 5px 50px;
}


.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    height: 100%;
    transition: .3s ease;
}


.article-card:hover {
    transform: translateY(-5px);
}


.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}


.article-content {
    padding: 20px;
    text-align: center;
}

.article-content h3 {
    color: #0A4B6B;
    font-size: var(--fs-h3);
    line-height: 1.8;
    min-height: 70px;
}


.article-content small {
    display: block;
    color: #6B7280;
    margin: 10px 0;
}


.article-content .home-btn {
    margin-top: 10px;
    padding: 10px 25px;
    font-size: .9rem;
}


/* ریسپانسیو */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero h1 {
        line-height: 1.5;
    }

    .hero p {
        font-size: 16px;
        line-height: 2;
    }

    .hero {

        min-height: 420px;
        height: auto;
        padding: 40px 0;
    }

    .home-btn {

        display: block;
        width: 100%;
        max-width: 320px;
        margin: 15px auto;
    }

    .cards {
        grid-template-columns:1fr;
        gap: 20px;
    }


    .comments-wrapper {
        flex-direction: column;
    }

    .comments-wrapper {
        gap: 35px;
    }

    .comments-section,
    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .feature::after {
        display: none;
    }

    .features-grid {
        gap: 40px;
    }

    .hero .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .home-card {
        padding: 25px;
    }
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

