/* === متغیرهای CSS === */
:root {
    --primary-color: #0d3c4d;
    --accent-color: #1089ff;
    --text-font-size: 1.2rem;
    --spacing-md: 1.25rem;
    --spacing-sm: 0.625rem;
    --shadow-light: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.1);
    --tag-blue-start: #2F80ED;
    --tag-blue-end: #56CCF2;
    --tag-brown-start: #FFD194;
    --tag-brown-end: #D1913C;
    --tag-red-start: #ef473a;
    --tag-red-end: #cb2d3e;
}

/* === Bootstrap Carousel === */
.carousel-custom.carousel-fade,
.carousel-custom .carousel-inner,
.carousel-custom .carousel-inner .item,
.carousel-custom .carousel-inner .item img {
    height: 25rem;
    width: 100%;
    margin: 0;
    object-fit: cover;
}

.carousel-custom .carousel-inner .item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: opacity;
}

.carousel-custom .carousel-inner .active {
    opacity: 1;
}

.carousel-custom .carousel-inner .active.left,
.carousel-custom .carousel-inner .active.right {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.carousel-custom .carousel-inner .next.left,
.carousel-custom .carousel-inner .prev.right {
    opacity: 1;
}

.carousel-custom .carousel-control {
    z-index: 2;
}

.carousel-custom .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

/* === Slick Slider === */
.slick-custom .slick-slide {
    margin: 0 var(--spacing-md);
    height: 18.75rem;
    display: flex;
    align-items: center;
}

.slick-custom .slick-slide img {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.slick-custom .slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    user-select: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-custom .slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slick-custom .slick-list:focus {
    outline: none;
}

.slick-custom .slick-list.dragging {
    cursor: pointer;
}

.slick-custom .slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block;
}

.slick-custom .slick-slide {
    display: none;
    float: right;
    min-height: 1px;
}

[dir='rtl'] .slick-custom .slick-slide {
    float: right;
}

.slick-custom .slick-initialized .slick-slide {
    display: block;
}

.slick-custom .slick-loading .slick-slide,
.slick-custom .slick-loading .slick-track {
    visibility: hidden;
}

.slick-custom .slick-arrow.slick-hidden {
    display: none;
}

/* === Owl Carousel === */
.owl-custom .owl-carousel {
    position: relative;
}

.owl-custom .owl-item {
    opacity: 1;
    display: flex;
    justify-content: center;
}

.owl-custom .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.owl-custom .owl-nav .owl-prev,
.owl-custom .owl-nav .owl-next {
    position: absolute;
    color: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.owl-custom .owl-nav .owl-prev {
    left: 0;
}

.owl-custom .owl-nav .owl-next {
    right: 0;
}

.owl-custom:hover .owl-nav .owl-prev {
    left: -1.5625rem;
    opacity: 1;
} 

.owl-custom:hover .owl-nav .owl-next {
    right: -1.5625rem;
    opacity: 1;
}

.owl-custom .owl-nav .owl-prev span:before,
.owl-custom .owl-nav .owl-next span:before {
    font-size: 1.875rem;
}

.owl-custom .owl-dots {
    text-align: center;
    margin-top: var(--spacing-md);
}

.owl-custom .owl-dots .owl-dot {
    width: 0.625rem;
    height: 0.625rem;
    margin: 0.3125rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.owl-custom .owl-dots .owl-dot.active {
    background: var(--accent-color);
}

.owl-custom .work {
    width: 100%;
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.owl-custom .work .img {
    width: 19.9375rem;
    height: 19.3125rem;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: var(--shadow-light);
}

.owl-custom .work .ico {
    fill: #fff;
    width: 3.75rem;
    height: 2.5rem;
    position: relative;
}

.owl-custom .work .img .icon {
    width: 4.375rem;
    height: 4.375rem;
    border-radius: 50%;
    background-color: #fff;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.owl-custom .work:hover .img .icon {
    opacity: 1;
}

.owl-custom .work .text h3 {
    font-size: 1.125rem;
    font-weight: bold;
}

.owl-custom .work .text h3 a {
    color: #000;
}

.owl-custom .work .text span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.owl-custom .work .info-itm {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.owl-custom .work .skill-title {
    font-weight: 500;
    font-size: 1.25rem;
    color: #59c7ac;
}

.owl-custom .work span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* === FAQ === */
#faq .wrapper {
    width: 100%;
    max-width: 43.75rem;
    margin: 2rem auto;
}

#faq .container {
    background-color: #fff;
    color: #000;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-light);
    margin: var(--spacing-md) 0;
}

.question {
    font-size: var(--text-font-size);
    font-weight: 600;
    padding: var(--spacing-sm) 3.75rem var(--spacing-sm) var(--spacing-sm);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: start;
    cursor: pointer;
    outline: none;
}

.question:focus {
    box-shadow: 0 0 0 0.125rem rgba(0, 123, 255, 0.25);
}

.question::after {
    content: "\002B";
    font-size: 2.2rem;
    position: absolute;
    right: 1.25rem;
    transition: transform 0.2s ease;
}

.question.active::after {
    transform: rotate(45deg);
}

.answercont {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.answercont.active {
    max-height: 18.75rem;
}

.answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    line-height: 1.5rem;
}

/* === کارت‌های بلاگ === */
.card {
    display: flex;
    flex-direction: column;
    width: clamp(20rem, calc(20rem + 2vw), 22rem);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border-radius: 1em;
    background: linear-gradient(to right, #FFFFFF, #ECE9E6);
}

.card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag {
    align-self: flex-start;
    padding: 0.25em 0.75em;
    border-radius: 1em;
    font-size: 0.75rem;
}

.tag + .tag {
    margin-left: 0.5em;
}

.tag-blue {
    background: linear-gradient(to bottom, var(--tag-blue-start), var(--tag-blue-end));
    color: #fafafa;
}

.tag-brown {
    background: linear-gradient(to bottom, var(--tag-brown-start), var(--tag-brown-end));
    color: #fafafa;
}

.tag-red {
    background: linear-gradient(to bottom, var(--tag-red-start), var(--tag-red-end));
    color: #fafafa;
}

.card__body h4 {
    font-size: 1.5rem;
    text-transform: capitalize;
}

.card__footer {
    display: flex;
    padding: 1rem;
    margin-top: auto;
}

.user {
    display: flex;
    gap: 0.5rem;
}

.user__image {
    border-radius: 50%;
}

.user__info > small {
    color: #666;
}

/* === ناوبری و مگامنو === */
.navbar-custom .navbar {
    padding: 0.5rem 1rem;
}

.navbar-custom .navbar-brand img {
    max-width: 9.375rem;
    height: auto;
}

.navbar-custom .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: perspective(600px) rotateX(0deg);
}

.navbar-custom .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-width: 75rem;
    border-radius: 0;
    box-shadow: var(--shadow-light);
    padding: var(--spacing-md);
    text-align: right;
    transition: all 0.3s ease-in-out;
    background: #fff;
    border: 1px solid #ebebeb;
    transform: perspective(600px) rotateX(-90deg);
    transform-origin: 100% 0 0;
    opacity: 0;
    visibility: hidden;
}

.navbar-custom .dropdown-menu .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.navbar-custom .dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: background-color 0.3s ease;
    text-align: right;
    margin: 0 0.3125rem;
}

.navbar-custom .dropdown-menu .dropdown-item:hover {
    background-color: #f1f1f1;
    color: #000;
}

.main-navigation {
    position: unset;
}

.main-navigation > ul {
    position: unset;
}

.main-navigation > ul > li.mega-dropdown {
    display: list-item;
    float: none;
    position: unset;
    flex-direction: column;
}

.main-navigation ul li ul.mega-sub-menu {
    width: 100%;
    left: 0;
    padding-top: 3.125rem;
}

.main-navigation ul.mega-sub-menu li.row {
    display: flex;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0;
}

.main-navigation ul li ul.mega-sub-menu .col {
    min-width: 13.75rem;
    position: relative;
    left: auto;
    flex-basis: 0;
    max-width: 25%;
    box-shadow: none;
    transform: translateY(0.625rem);
}

.main-navigation ul li.mega-dropdown:hover > ul .col {
    visibility: visible;
    opacity: 1;
}

.main-navigation ul li ul.mega-sub-menu .col li {
    padding-left: 0;
}

.mega-sub-menu .menu-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
}

/* === سایر استایل‌ها === */
.demoSl1 {
    width: 11.25rem;
    height: 100%;
    overflow: hidden;
    position: relative;
    top: 6.25rem;
    margin: 0 auto;
}

.demoSl1 img {
    object-fit: contain;
}

/* === واکنش‌گرایی === */
@media (min-width: 1200px) {
    .owl-custom .work {
        width: calc(33.33% - var(--spacing-md));
    }
}

@media (max-width: 992px) {
    .navbar-custom .dropdown-menu {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .carousel-custom,
    .carousel-custom .carousel-inner {
        height: 18.75rem;
    }
    .slick-custom .slick-slide {
        margin: 0 var(--spacing-sm);
    }
    .owl-custom .work {
        width: calc(100% - var(--spacing-md));
        margin-bottom: var(--spacing-sm);
    }
    .navbar-custom .dropdown-menu {
        width: 100%;
        margin: 0;
        text-align: right;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    .navbar-custom .dropdown-menu .row {
        flex-direction: column;
    }
    .navbar-custom .dropdown-menu .dropdown-item {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    .main-navigation ul li ul.mega-sub-menu .col {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .carousel-custom,
    .carousel-custom .carousel-inner {
        height: 15rem;
    }
    .slick-custom .slick-slide {
        max-height: 12.5rem;
    }
    .card {
        width: 100%;
    }
    #faq .wrapper {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 400px) {
    .carousel-custom,
    .carousel-custom .carousel-inner {
        height: 12.5rem;
    }
    .demoSl1 {
        width: 100%;
        top: 3.125rem;
    }
}




/* تنظیمات پایه */
body {
    margin: 0;
    background-color: #f5f5f5;
    color: #222;
    font-size: 12pt;
    direction: rtl;
}

/* هدر */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 30px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

@media (min-width: 1200px) {
    .top-nav {
        padding: 10px 50px;
    }
}

.menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .menu ul {
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
    }
}

/* بنر */
.hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

@media (max-width: 576px) {
    .banner-text h1 {
        font-size: 24px;
        letter-spacing: 10px;
    }
    .banner-text h2 {
        font-size: 18px;
    }
}

/* بخش‌های محتوایی */
.intro-section p,
.property-content p,
.duties-content p,
.house-key-paragraph {
    font-size: 1.2rem;
    line-height: 2;
}

@media (max-width: 576px) {
    .intro-section p,
    .property-content p,
    .duties kelet-content p,
    .house-key-paragraph {
        font-size: 0.9rem;
        line-height: 1.8;
    }
}

/* کلید خانه */
@media (max-width: 992px) {
    .house-key-image {
        min-height: auto;
        max-height: 250px;
    }
    .house-key-text {
        border-top: 2px solid #343a40;
        padding-top: 20px;
    }
}

/* فوتر */
@media (max-width: 768px) {
    .top-footer {
        min-height: 400px;
    }
    .img-team {
        position: relative;
        max-width: 100%;
        transform: none;
        left: 0;
    }
}

/* نقاط تزئینی */
@media (max-width: 576px) {
    .dots-grid {
        grid-template-columns: repeat(6, 5px);
        grid-template-rows: repeat(3, 5px);
        gap: 3px;
    }
    .dots-grid span {
        width: 5px;
        height: 5px;
    }
}

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo img {
            height: 40px;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
            font-size: 12px;
            line-height: 1;
        }

        .menu ul {
            list-style: none;
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 0;
            margin: 0;
        }

        .menu a {
            text-decoration: none;
            color: #0d3c4d;
            font-weight: 500;
        }

        .menu .btn {
            background-color: #0d3c4d;
            color: #fff !important;
            padding: 5px 10px;
            border-radius: 5px;
        }

        .menu .search {
            display: flex;
            align-items: center;
        }

        .menu .search input {
            padding: 4px 8px;
            border-radius: 5px;
            border: 1px solid #ccc;
        }

        .menu .search .icon {
            margin-right: 5px;
        }

        .hero-banner {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;
        }

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

        .banner-text {
            position: absolute;
            top: 10%;
            width: 100%;
            text-align: center;
            color: white;
            text-shadow: 0 0 5px black;
        }

        .banner-text h1 {
            font-size: 42pt;
            letter-spacing: 20px;
            margin-bottom: 5px;
        }

        .banner-text h2 {
            font-size: 30pt;
            font-weight: 700;
        }

        /* ===== بخش مشاور املاک ===== */
        .intro-section {
            background-color: #2e2e2e;
            color: white;
            padding: 2.5rem 2.2rem;
            min-height: 350px;
            display: flex;
            align-items: center;
        }

        .intro-section .container {
            max-width: 900px;
            margin: auto;
        }

        .real-estate-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .dots-grid {
            display: grid;
            grid-template-columns: repeat(6, 6px);
            grid-template-rows: repeat(3, 6px);
            gap: 4px;
            margin-left: 0.5rem;
        }

        .dots-grid span {
            width: 6px;
            height: 6px;
            background-color: #ffffff;
            border-radius: 50%;
            display: block;
        }

        .intro-section h3 {
            font-size: 1.5rem;
            margin: 0;
            font-weight: bold;
        }

        .intro-section p {
            font-size: 1.2rem;
            line-height: 2.2;
            text-align: justify;
        }

        /* ===== بخش جدید: شناخت و خرید املاک ===== */
        .property-section {
            padding: 40px 20px;
            background-color: #fff;
        }

        .property-section .container {
            max-width: 900px;
            margin: auto;
        }

        .property-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .property-header .dots-grid {
            display: grid;
            grid-template-columns: repeat(6, 6px);
            grid-template-rows: repeat(3, 6px);
            gap: 4px;
            margin-left: 0.5rem;
        }

        .property-header .dots-grid span {
            width: 6px;
            height: 6px;
            background-color: #000;
            border-radius: 50%;
            display: block;
        }

        .property-header h3 {
            font-size: 1.5rem;
            margin: 0;
            font-weight: bold;
        }

        .property-content {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .property-content img {
            width: 50%;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
        }

        .property-content p {
            font-size: 1.2rem;
            line-height: 2;
            text-align: justify;
            margin: 0;
        }

        .property-footer {
            display: flex;
            gap: 20px;
        }

        .property-footer img {
            width: 50%;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
        }

        .property-footer p {
            font-size: 1.2rem;
            line-height: 2;
            text-align: justify;
            color: #555;
            margin: 0;
        }

        /* اصلاح شده: بخش نقش و وظایف مشاور املاک */
        .duties-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .duties-header .text-container {
            flex-grow: 1;
            /* متن به سمت چپ کشیده می‌شود */
        }

        .duties-header img {
            width: 24px;
            height: 24px;
            margin-left: 20px;
            /* فاصله ثابت بین متن و آیکون */
        }

        .duties-header h3 {
            font-size: 1.5rem;
            margin: 0;
            font-weight: bold;
        }

        .duties-content p {
            font-size: 1.2rem;
            line-height: 2;
            text-align: justify;
            color: #333;
        }

        .duties-footer img {
            width: 100%;
            height: auto;
            border-radius: 1px;
            margin-top: 20px;
        }

        /* واکنش‌گرایی */
        @media (max-width: 768px) {
            .menu ul {
                flex-wrap: wrap;
                gap: 10px;
                justify-content: center;
            }

            .banner-text h1 {
                font-size: 24px;
            }

            .banner-text h2 {
                font-size: 18px;
            }

            .real-estate-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .property-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .property-content {
                flex-direction: column;
            }

            .property-content p {
                line-height: 1.8;
                color: #333;
                font-size: 1.1rem;
            }

            .property-content img {
                width: 100%;
            }

            .property-footer {
                flex-direction: column;
            }

            .property-footer img {
                width: 100%;
            }

            .duties-header {
                flex-direction: row;
                align-items: center;
            }

            .duties-header img {
                margin-left: 15px;
                /* فاصله کمتر در موبایل */
            }

            @media (max-width: 576px) {
                .property-content p {
                    font-size: 1rem;
                }

                .duties-content p {
                    font-size: 1rem;
                }
            }
        }

        /* خط عمودی بخش مشاور املاک */
        #moshaverin {
            position: relative;
        }

        #moshaverin::before {
            content: '';
            position: absolute;
            top: 50%;
            right: 20%;
            transform: translate(-50%, -50%);
            height: 65%;
            width: 2px;
            background: #fff;
            opacity: 0.6;
        }

        /* خط عمودی بخش مشاورین املاک */
        #moshaver {
            position: relative;
        }

        #moshaver::before {
            content: '';
            position: absolute;
            top: 50%;
            right: -10px;
            transform: translate(-50%, -50%);
            height: 100%;
            width: 2px;
            background: #000000;
            opacity: 0.6;
        }

        @media (max-width: 768px) {
            #moshaverin::before {
                display: none;
            }

            #moshaver::before {
                display: none;
            }
        }

        .house-key-section {
            background-color: #DADBD3;
            max-height: 400px;
            padding: 0;
            direction: rtl;
        }

        .house-key-section .container-fluid {
            max-width: 100%;
        }

        .house-key-section .row {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
        }

        .house-key-image-wrapper {
            flex: 0 0 100%;
            max-width: 100%;
            position: relative;
            text-align: left;
        }

        .house-key-image {
            max-width: 100%;
            min-height: 400px;
            border-radius: 1px;
            /* Rounded corners for the image */
        }

        .house-key-text {
            margin-right: auto;
            flex: 0 0 60%;
            max-width: 60%;
            border-right: 2px solid #000000;
            /* Dark vertical line on the right */
            border-radius: 1px;
        }

        .house-key-paragraph {
            font-size: 1.2rem;
            line-height: 2;
            color: #333;
            text-align: justify;
            margin-bottom: 15px;
        }

        /* Responsive adjustments */
        @media (max-width: 992px) {
            .row {
                flex-wrap: wrap;
                /* Stack image and text on smaller screens */
            }

            .house-key-image-wrapper {
                flex: 0 0 100%;
                max-width: 100%;
            }

            .house-key-text {
                flex: 0 0 100%;
                max-width: 100%;
                border-right: none;
                border-top: 4px solid #343a40;
                /* Change to top border on smaller screens */
            }
        }


        .top-footer {
            background: #2d2d2d;
            width: 100%;
            min-height: 650px;
            position: relative;
            padding: 0;
            margin: 0;
            direction: rtl;
        }



        .footer-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .footer-header .text-container {
            flex-grow: 1;
            /* متن به سمت چپ کشیده می‌شود */
        }

        .footer-header img {
            width: 24px;
            height: 24px;
            margin-left: 20px;
            /* فاصله ثابت بین متن و آیکون */
        }

        .footer-header h3 {
            font-size: 1.5rem;
            margin: 0;
            font-weight: bold;
            color: #fff;
        }

        .footer-content p {
            font-size: 1.2rem;
            line-height: 2;
            text-align: justify;
            color: #fff;
        }

        .footer-footer img {
            width: 100%;
            height: auto;
            border-radius: 1px;
            margin-top: 20px;
        }



        .img-team {
            max-width: 75%;
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            margin-bottom: 0;
            z-index: 1;
            display: block;
        }
