﻿@font-face {
    font-family: IranSans;
    src: url(../../../Content/Main/Fonts/IRANSans.woff) format('woff');
    font-display: swap;
}

* {
    font-family: IranSans,sans-serif !important;
}
body {
    padding:0 !important;
    overflow-x:hidden;
}
/* Slider container full width */
.slider {
    position: relative;
    width: 100%;
    height: fit-content;
    aspect-ratio: 16 / 5;
    overflow: hidden;
}
.mainDivScrolltable {
    overflow-x: auto;
    padding: 1vw;
    direction: rtl;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    transform: scale(1.08);
    aspect-ratio: 16 / 5;
}

    .slide.active {
        opacity: 1;
        transform: scale(1);
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.MainDivContentPaddingTop {
    padding-top: 100px;
    min-height: 70vh;
}
@media (max-width:650px) {
    .MainDivContentPaddingTop {
        padding-top: 130px;
    }
}
    @media (max-width:425px) {
        .slider {
            aspect-ratio: 16 / 8;
        }
        .slide {
            aspect-ratio: 16 / 8;
        }
    }
/* Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 15px;
    font-size: 25px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

    .prev:hover, .next:hover {
        background: rgba(255,255,255,0.4);
        color: #000;
    }

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Dots */
.dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

    .dot.active {
        background: #fff;
        transform: scale(1.3);
    }


/* Brands */


.slider-containerBrand {
    width: 90%;
    max-width: 1500px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    direction: ltr;
}

.slider-wrapperBrand {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slideBrand {
    min-width: 25%;
    padding: 10px;
    box-sizing: border-box;
}

    .slideBrand img {
        width: 100%;
        height: auto;
        object-fit: contain;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
        /* border: 1px solid #e6e6e6; */
        padding: 0px;
        background: #fff;
    }

.navBrand {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 50%;
    /*box-shadow: 0 3px 6px rgba(0,0,0,0.2);*/
    transition: 0.3s;
}

    .navBrand:hover {
        background: #eee;
    }

.prevBrand {
    left: 0px;
}

.nextBrand {
    right: 0px;
}


/* MainStyles */

.about-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.about-section:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.about-section h1 {
    color: #204895;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.about-section h2 {
    color: #204895;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-section h3 {
    color: #204895;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-section p {
    color: #7a7a7a;
    text-align: center;
    width: 90%;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0.5rem;
    }

        .about-section h1 {
            font-size: 1.7rem;
        }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-section h3 {
        font-size: 1.2rem;
    }

    .about-section p {
        font-size: 1rem;
        width: 95%;
    }
}
.MainBtnFirst {
    background-color: #104D8C;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-radius: 10px 10px 10px 10px;
    padding: 1% 3% 1% 3%;
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: block;
    width: fit-content;
}

.margin0Auto {
    margin: 0 auto;
}

.galery-section {
    background-image: url('https://maheranrepair.com/f/backindex.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 1rem 0;
}

    .galery-section a {
    }

        .galery-section a img {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            margin: 1rem 0;
        }

.customRow90 {
    width: 90%;
    margin: 0 auto !important;
    max-width: 1500px;
}

.mainDivCustomCard {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    margin: 1rem 0;
}

    .mainDivCustomCard img {
        aspect-ratio: 16 / 9;
        width: 100%;
        object-fit: cover;
        height: fit-content;
        object-position:top;
    }
    .mainDivCustomCardimgA {
        aspect-ratio: 16 / 9;
        width: 100%;
        height:fit-content;
    }

    .mainDivCustomCard h2 {
        font-size: 16px;
    }

    .mainDivCustomCard .card-body {
        width: 100%;
    }

.featured {
    padding: 3rem 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.brands-slider {
    padding: 3rem 0;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.customH2Brands {
    color: #204895;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
}

.text-container {
    overflow: hidden;
    height: 50px;
    word-wrap: break-word;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width:767px) {
    .slideBrand {
        min-width: 100%;
    }
}

.topics-section input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    font-size: 15px;
}

    .topics-section a {
        display: inline-block;
        padding: 10px 15px;
        margin: 5px;
        background: #fff;
        border-radius: 10px;
        text-decoration: none;
        border: 1px solid #ddd;
        color: #333;
        transition: 0.3s;
    }

        .topics-section a:hover {
            background: #0099ff;
            color: white;
            border-color: #0099ff;
        }

/* ظرف اصلی دسته‌بندی */
.topics-section {
    background: #104d8c;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 25px;
}

/* لینک‌های دسته‌بندی – ریسپانسیو */
.topics-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

    /* لینک‌ها */
    .topics-nav a {
        padding: 4px 10px;
        background: #fff;
        border-radius: 10px;
        text-decoration: none;
        border: 1px solid #ddd;
        color: #333;
        font-size: 14px;
        transition: 0.3s;
        white-space: nowrap;
    }

        /* حالت هاور */
        .topics-nav a:hover {
            background: #dbdbdb;
            color: #000000;
            border-color: #dbdbdb;
        }

/* ریسپانسیو برای موبایل: اسکرول افقی */
@media (max-width: 768px) {
    .topics-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }

        .topics-nav a {
            flex: 0 0 auto;
        }
}

/* ریسپانسیو برای تبلت – دو ردیف مرتب */
@media (min-width: 769px) and (max-width: 1024px) {
    .topics-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

        .topics-nav a {
            text-align: center;
            width: 100%;
        }
}

/* دسکتاپ – ساختار آزاد و واکنش‌گرا */
@media (min-width: 1025px) {
    .topics-nav {
        display: flex;
        flex-wrap: wrap;
    }
}

/* page */



.sp-container {
    max-width: 1500px;
    margin: auto;
    width: 97%;
}


.sp-post-layout {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.sp-post-main {
    flex: 1 1 600px;
}

.sp-post-sidebar {
    flex: 0 0 250px;
    background: var(--sp-card);
    padding: 16px;
    border-radius: var(--sp-radius);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    height:fit-content;
}


.sp-post-card {
    background: var(--sp-card);
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.sp-post-hero {
    width: 100%;
    height: auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

    .sp-post-hero img {
        width: 100%;
        height: fit-content;
        object-fit: cover;
        aspect-ratio: 16 / 9;
        object-position:top;
    }


.sp-post-body {
    padding: 24px;
}

.sp-meta {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--sp-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

    .sp-meta time {
        background: #e7ecf7;
        padding: 5px 10px;
        border-radius: 8px;
        color: var(--sp-primary);
    }

.sp-title {
    font-size: 26px;
    margin: 10px 0;
    color: var(--sp-primary);
}

.sp-content {
    line-height: 1.9;
    font-size: 16px;
    color: #333;
}


.sp-comments {
    margin-top: 30px;
    background: #fff;
    padding: 18px;
    border-radius: var(--sp-radius);
    border: 1px solid #e3e8f2;
}

    .sp-comments h2 {
        margin: 0 0 15px;
        color: var(--sp-primary);
    }

.sp-comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .sp-comment-form input, .sp-comment-form textarea {
        padding: 12px;
        border-radius: 10px;
        border: 1px solid #d7dce3;
        font-size: 15px;
    }

.sp-btn {
    background: var(--sp-primary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}

.sp-comments-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sp-comment-item {
    background: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e7eaf0;
}

.sp-c-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sp-c-author {
    font-weight: bold;
}

.sp-c-time {
    font-size: 13px;
    color: var(--sp-muted);
}

.sp-admin-reply {
    margin-top: 10px;
    background: #f1f4ff;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--sp-primary);
}


/* Sidebar link box */
.sp-sidebar-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .sp-sidebar-box a {
        display: block;
        padding: 10px 12px;
        background: var(--sp-bg);
        border-left: 4px solid var(--sp-primary);
        border-radius: 8px;
        text-decoration: none;
        color: var(--sp-primary);
        transition: 0.3s;
    }

        .sp-sidebar-box a:hover {
            background: var(--sp-primary);
            color: #fff;
        }


/* Responsive */
@media(max-width:768px) {
    .sp-post-layout {
        flex-direction: column;
    }

    .sp-post-sidebar {
        flex: 1 1 100%;
    }

    .sp-title {
        font-size: 22px;
    }
}

/* service page */

.unique-hero-204895 {
    background-color: #204895;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

    .unique-hero-204895 h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .unique-hero-204895 p {
        font-size: 18px;
        margin-top: 0;
    }

.unique-services-204895 {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.unique-service-card-204895 {
    background: #fff;
    text-decoration: none;
    border-radius: 12px;
    color: #204895;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

    .unique-service-card-204895:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    }

    .unique-service-card-204895 h3 {
        margin-top: 0;
        color: #204895;
        font-size: 20px;
    }
    .unique-service-card-204895 p {
        /*text-align:justify;*/
    }

.unique-footer-204895 {
    text-align: center;
    padding: 30px;
    color: #fff;
    background-color: #204895;
    margin-top: 50px;
}

/* MainPage Steps */

.steps-204895 {
    direction: rtl;
    font-family: sans-serif;
    padding: 60px 20px;
    background: #fff;
}

.steps-container-204895 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.steps-image-204895 img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

.steps-content-204895 {
    flex: 1;
    /*min-width: 300px;*/
}

    .steps-content-204895 h2 {
        font-size: 32px;
        color: #204895;
        margin-bottom: 10px;
    }

    .steps-content-204895 p {
        font-size: 18px;
        color: #444;
        margin-bottom: 30px;
    }

.steps-list-204895 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item-204895 {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number-204895 {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #204895;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    flex-shrink: 0;
}

.step-text-204895 h3 {
    margin: 0;
    font-size: 22px;
    color: #204895;
}

.step-text-204895 p {
    margin: 5px 0 0 0;
    color: #555;
    line-height: 1.6;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .steps-container-204895 {
        flex-direction: column;
        text-align: center;
    }

    .step-item-204895 {
        flex-direction: column;
        align-items: center;
    }

    .step-number-204895 {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .steps-content-204895 h2 {
        font-size: 24px;
    }

    .steps-content-204895 p {
        font-size: 16px;
    }

    .step-number-204895 {
        width: 34px;
        height: 34px;
        font-size: 18px;
        line-height: 34px;
    }

    .step-text-204895 h3 {
        font-size: 20px;
    }

    .step-text-204895 p {
        font-size: 14px;
    }
}