.hero,
.services-overview,
.process-section,
.services-details,
.industries-section,
.faq-section{
    margin-top: 40px;
}
/* Section Header -------------------- */
.section-header{
    max-width: 850px;
    margin: 0 auto 30px;
    text-align: center;
}
.section-header h2{
    margin: 0;
    color: #021a48;
    font-size: 1.6rem;
    font-weight: 800;
}
.section-header p{
    margin: 12px auto 0;
    max-width: 750px;
    color: #64748b;
    line-height: 1.9;
    font-size: .95rem;
    text-align: center;
    height: 100%;
}
.section-header .subtitle{
    display: none;
}

/* hero ------------------------------------------------------------------------- */

/* Services Overview ------------------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.service-card {
    position: relative;
    background: #fff;
}
/* Image ---------------------- */
.service-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 2/1;
}
.service-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}
.service-card:hover .service-image img {
    transform: scale(1.06);
}
/* Number ---------------------- */
.service-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0759c9;
    color: #fff;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(2, 26, 72, .2);
}

/* Content ------------------ */
.service-content {
    position: relative;
    padding: 22px 18px 18px;
    text-align: right;
}
.service-content h3 {
    margin: 8px 0 8px;
    color: #021a48;
    font-size: 1rem;
    font-weight: 800;
}
.service-content p {
    margin: 0;
    color: #68778f;
    font-size: .82rem;
    line-height: 1.9;
    min-height: 62px;
}
/* links ----------------- */
.services-overview .section-header a{
    color: #64748b;
}
/* Responsive ----------------------------- */
@media (max-width: 768px) {
    .services-overview {
        margin-top: 30px;
    }
    .services-header {
        margin-bottom: 22px;
    }
    .services-header h2 {
        font-size: 1.35rem;
    }
    .services-header p {
        font-size: .88rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

}
@media (max-width: 480px) {

    .service-content {
        padding: 20px 15px 16px;
    }
    .services-grid {
        grid-template-columns:1fr;
        gap: 15px;
    }
}

/* process --------------------------------------------------------------------- */
.process-title{
    color: #021a48;
    font-size: 1.15rem;
    font-weight: 800;
}
.process-description{
    color: #68778f;
    font-size: .82rem;
    line-height: 1.9;
}
/* Services Details ------------------------------------------------------------ */
.services-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.service-detail {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    min-height: 190px;
    background: #fff;
}
/* Image ----------------------------- */
.service-detail-image {
    width: 100%;
    aspect-ratio: 3 / 1;
    min-height: 0;
    align-self: center;
    overflow: hidden;
}
.service-detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}
.service-detail:hover .service-detail-image img {
    transform: scale(1.04);
}
/* middle ----------------------------- */
.service-detail-middle {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-left: 1px solid #e5ebf4;
    margin: 20px 0;
}
.service-detail:nth-child(even) .service-detail-middle{
    border-left: none;
    border-right: 1px solid #e5ebf4;
}
.service-detail-number {
    position: absolute;
    top: 25px;
    right: 28px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0759c9;
    color: #fff;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 800;
}
.service-detail-icon {
    position: absolute;
    bottom: 25px;
    right: 28px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.service-detail-icon i.drafting{
    background-position: 0 -96px;
}
.service-detail-icon i.shopping{
    background-position: -24px -96px;
}
.service-detail-icon i.screwdriver{
    background-position: -48px -96px;
}
.service-detail-icon i.headset{
    background-position: -72px -96px;
}
/* Content ----------------------------- */
.service-detail-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 35px;
    text-align: right;
}
.service-detail-content h2 {
    margin: 0 0 8px;
    color: #021a48;
    font-size: 1.15rem;
    font-weight: 800;
}
.service-detail-content p {
    margin: 0 0 10px;
    max-width: 620px;
    color: #68778f;
    font-size: .83rem;
    line-height: 1.9;
}
.service-detail-content ul {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 5px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.service-detail-content li {
    position: relative;
    padding-right: 17px;
    color: #4e5f79;
    font-size: .78rem;
    line-height: 1.8;
}
.service-detail-content li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #0759c9;
    border-radius: 50%;
}
/*
    در صفحات RTL:
    سکشن‌های فرد → تصویر سمت چپ
    سکشن‌های زوج → تصویر سمت راست
*/
.service-detail:nth-child(even) {
    direction: ltr;
}
.service-detail:nth-child(even) .service-detail-content {
    direction: rtl;
}

/* Responsive ----------------------------- */
@media (max-width: 1200px) {
    .service-detail {
        grid-template-columns: 1fr 80px 1fr;
    }
    .service-detail-content {
        padding: 22px 25px;
    }
    .service-detail-content ul {
        gap: 5px 20px;
    }
}
@media (max-width: 992px) {
    .service-detail {
        grid-template-columns: 1fr 70px 1fr;
        min-height: 180px;
    }
    .service-detail-middle {
        margin: 15px 0;
    }
    .service-detail-number {
        top: 20px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
    .service-detail-icon {
        bottom: 20px;
        right: 14px;
    }
    .service-detail-content {
        padding: 20px;
    }
    .service-detail-content p {
        font-size: .8rem;
    }
    .service-detail-content ul {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (max-width: 768px) {
    .services-details {
        gap: 20px;
    }
    .service-detail {
        display: flex;
        flex-direction: column;
        min-height: auto;
        direction: rtl !important;
    }
    .service-detail:nth-child(even) {
        direction: rtl;
    }
    .service-detail-image {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 1;
    }
    .service-detail-middle {
        height: 60px;
        margin: 0;
        border: none !important;
        border-bottom: 1px solid #e5ebf4;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }
    .service-detail-number {
        position: static;
        width: 38px;
        height: 38px;
    }
    .service-detail-icon {
        position: static;
        width: 42px;
        height: 42px;
        margin: 0;
    }
    .service-detail-content {
        padding: 22px 25px 25px;
        text-align: right;
        direction: rtl;
    }
    .service-detail-content p {
        max-width: none;
    }
    .service-detail-content ul {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

@media (max-width: 576px) {
    .services-details {
        gap: 15px;
    }
    .service-detail-middle {
        height: 55px;
        padding: 0 15px;
    }
    .service-detail-number {
        width: 35px;
        height: 35px;
        font-size: .9rem;
    }
    .service-detail-icon {
        width: 38px;
        height: 38px;
    }
    .service-detail-content {
        padding: 18px 20px 22px;
    }
    .service-detail-content h2 {
        font-size: 1.05rem;
    }
    .service-detail-content p {
        font-size: .8rem;
        line-height: 1.9;
    }
    .service-detail-content li {
        font-size: .76rem;
    }
}

/* Industries ------------------------------------------------------------ */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.industry-card {
    position: relative;
    height: 145px;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(2, 26, 72, .08);
}
/* Image ----------------------------- */
.industry-card > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}
/* Overlay ----------------------------- */
.industry-overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    to top,
                    rgba(2, 26, 72, .82),
                    rgba(2, 26, 72, .08) 65%
            );
    transition: background .3s ease;
}
/* Hover Image ----------------------------- */
.industry-card:hover > img {
    transform: scale(1.08);
}
.industry-card:hover .industry-overlay {
    background:
            linear-gradient(
                    to top,
                    rgba(2, 26, 72, .92),
                    rgba(2, 26, 72, .18) 70%
            );
}
/* Title ----------------------------- */
.industry-title {
    position: absolute;
    right: 0;
    bottom: 15px;
    width: 100%;
    padding: 0 12px;
    text-align: center;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}
/* Responsive ----------------------------- */
@media (max-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .industries-section {
        margin-top: 35px;
    }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .industry-card {
        height: 150px;
    }
}
@media (max-width: 425px) {
    .industries-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .industry-card {
        height: 130px;
    }
    .industry-title {
        bottom: 10px;
        font-size: .8rem;
    }
}
