body {
    font-family: 'Shabnam', sans-serif;
    background-color: #f8f2ed8c;
    color: #333;
}

@font-face {
    font-family: 'Shabnam';
    src: url('/fonts/Shabnam.woff2') format('woff2'), url('/fonts/Shabnam.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Buttons */
.btn-main {
    background-color: #A6B39A;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.3s;
}

    .btn-main:hover {
        background-color: #8C9C7F;
    }

/* Hero Section */
.hero {
    background-color: #E8DDCD;
    padding: 80px 20px;
    text-align: center;
}

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.1rem;
        color: #555;
    }

/* =========================
   HERO CAROUSEL (FINAL)
   ========================= */
#heroCarousel .carousel-inner {
    height: 70vh;
}
/* Desktop */
#heroCarousel .carousel-item {
    height: 100%;
    position: relative;
}

    #heroCarousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

@media (max-width: 992px) {
    #heroCarousel .carousel-inner {
        height: 56vh !important;
    }
}
/* Tablet */
/*@media (max-width: 768px) {
    #heroCarousel .carousel-inner {
        height: 10vh !important;
    }
}*/
/* Mobile */
#heroCarousel {
    margin-bottom: 0 !important;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 8px;
    bottom: 20%;
}

/* Cards */
.card, .services .card, .portfolio .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover, .services .card:hover, .portfolio .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

/* About Section */
.about-section {
    padding: 60px 5%;
    direction: rtl;
}

.about-title {
    color: #3f4422;
    font-weight: 800;
    font-size: 32px;
    margin: 40px 0 10px;
}

.about-subtitle {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #222;
}

.about-paragraph {
    font-size: 16px;
    color: #444;
    line-height: 2;
    max-width: 900px;
    margin: 0 auto 60px;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    justify-content: space-between;
}

    .about-grid.reverse {
        flex-direction: row-reverse;
    }

.about-text {
    flex: 1;
    min-width: 300px;
}

    .about-text h3 {
        color: #3f4422;
        font-size: 24px;
        font-weight: 700;
    }

.line {
    width: 70%;
    height: 2px;
    background-color: #3f4422;
    margin: 12px 0 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

    .about-image img {
        width: 100%;
        border-radius: 8px;
        object-fit: cover;
    }

/* Form Request */
.form-request-section {
    margin: 58px auto 120px;
    padding: 0 20px;
}

.form-request-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    text-align: center;
}

.form-request-button {
       background-color: #dc3545;

    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

    .form-request-button:hover {
        background-color: #c9b09a;
    }

/* Projects Section */
.projects-section {
    padding: 80px 5%;
    background-color: #f9f9f9;
    direction: rtl;
}

.projects-title {
    text-align: center;
    color: #3f4422;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px;
}

.project-card {
    position: relative;
    height: 370px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-img-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .project-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

.project-overlay {
    position: absolute;
    bottom: 70px;
    height: 4px;
    background: white;
    width: 100%;
    z-index: 1;
}

.project-footer {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    align-items: center;
}

    .project-footer p {
        color: white;
        font-size: 18px;
        margin: 0;
        font-weight: 500;
    }

    .project-footer a {
        color: white;
        border: 2px solid white;
        padding: 6px 16px;
        border-radius: 6px;
        text-decoration: none;
        transition: 0.3s ease;
    }

        .project-footer a:hover {
            background-color: white;
            color: black;
        }

.projects-viewall {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 10px;
}

    .projects-viewall a {
        color: #6f6a5f;
        font-size: 18px;
        text-decoration: none;
        transition: 0.3s ease;
    }

        .projects-viewall a:hover {
            color: #bda888;
        }

/* Footer */
footer, .footer-container {
    background-color: #a7ad8f;
    color: #ffffff;
    padding: 24px 0 12px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin: 6px 0;
    transition: 0.3s;
}

    .footer-link:hover {
        color: #A6B39A;
        text-decoration: underline;
    }

.footer-text {
    font-size: 14px;
    line-height: 2;
    text-align: justify;
    margin: 0 auto;
    max-width: 320px;
}

.footer-icon {
    color: #ffffff;
    font-size: 20px;
    margin: 0 10px;
    transition: 0.3s;
}

    .footer-icon:hover {
        color: #A6B39A;
    }

.footer-bottom {
    background-color: #a7ad8f;
    color: #3f4422;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
}

/* Responsive (general) */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-footer a {
        display: none;
    }

    .projects-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .about-grid, .about-grid.reverse {
        flex-direction: column;
    }

    .line, .about-title, .about-subtitle, .about-paragraph {
        text-align: center;
        width: 100%;
    }

    .form-request-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .form-request-button {
        margin-top: 12px;
    }
}

/* Menu */
.menu-link {
    color: #3f4422 !important;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

    .menu-link:hover {
        color: #8C9C7F !important;
    }

    .menu-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: #8C9C7F;
        transition: width 0.3s ease;
    }

    .menu-link:hover::after {
        width: 50%;
    }

.menu-divider {
    border-color: #3f4422 !important;
}

.menu-subtitle {
    color: #3f4422;
    font-weight: bold;
    font-size: 14px;
    margin-top: 4px;
}

/* EN/FA button */
#toggleDirection {
    background-color: #000 !important;
    color: #fff !important;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

    #toggleDirection:hover {
        background-color: #333 !important;
    }

/* Selects */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    padding-right: 35px;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="18px" viewBox="0 0 24 24" width="18px" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

    select:focus, select:hover {
        border-color: #8C9C7F;
    }

    select::-ms-expand {
        display: none;
    }

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    padding-right: 35px;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="18px" viewBox="0 0 24 24" width="18px" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

/* عنوان بخش با خط عمودی سمت راست */
.section-title {
    position: relative;
    color: #3f4422;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 24px;
    padding-right: 24px;
    text-align: right;
}

    .section-title::before {
        content: "";
        position: absolute;
        right: 0;
        top: 4px;
        width: 4px;
        height: 80%;
        background-color: #A6B39A;
        border-radius: 2px;
    }

/* اسلایدهای متنی داخلی */
.custom-slide-box {
    position: relative;
    min-height: 500px !important;
    border-radius: 16px;
    overflow: hidden;
}

.slide-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

    .slide-image::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(166, 179, 154, 0.65);
        z-index: 1;
    }

.slide-content-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: #fff;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 2;
    background-color: rgba(0,0,0,0.4);
    box-sizing: border-box;
}

.article-content {
    line-height: 2;
    font-size: 1.1rem;
    color: #333;
    text-align: justify;
}

@media (max-width: 768px) {
    .slide-text-box {
        padding: 24px;
        font-size: 0.95rem;
    }

    .slide-content-text {
        padding: 16px 20px;
    }

    .slider-controls {
        bottom: 10px;
        right: 10px;
        transform: scale(0.85);
    }
}

.slide-text-container {
    background-color: rgba(0,0,0,0.4);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
}

.slide-content-btn {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 20px;
}

/* کنترل فلش اسلایدرهای داخلی */
.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

    .slider-controls .slider-btn-prev, .slider-controls .slider-btn-next {
        background-color: #A6B39A;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }

        .slider-controls .slider-btn-prev:hover, .slider-controls .slider-btn-next:hover {
            background-color: #8C9C7F;
        }

/* کارت عکس */
.card-image {
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(114,161,131,0.4);
}

.card-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.card-title {
    background-color: #80A989;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: bold;
    width: fit-content;
}

.card-button .btn {
    font-size: 0.9rem;
    border-radius: 8px;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* راست: مقالات و سرچ */
.article-summary {
    padding-right: 1rem;
}

.article-thumb {
    width: 90px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.article-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.bg-site {
    background-color: #80A989 !important;
    color: white !important;
}

/* Related articles slider (Slick) */
.related-articles-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

    .related-articles-slider .slick-slide {
        padding: 0 12px;
        box-sizing: border-box;
    }

    .related-articles-slider .slick-track {
        margin-right: -12px;
        margin-left: -12px;
        display: flex !important;
    }

@media (max-width: 768px) {
    .related-articles-slider .slick-slide {
        padding: 0 8px;
    }

    .related-articles-slider .slick-track {
        margin-right: -8px;
        margin-left: -8px;
    }
}

.related-article-card {
    min-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
}

.related-article-bg {
    background-size: cover;
    background-position: center;
    height: 340px;
    position: relative;
}

.related-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-title {
    background-color: #3f4422;
    padding: 6px 12px;
    border-radius: 8px;
    width: fit-content;
}

.related-summary {
    font-size: 0.9rem;
    line-height: 1.7;
}

.related-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

.slide-shadow-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(166,179,154,0.5);
    z-index: 2;
    border-radius: 12px;
}

/* Category slider */
.category-slider-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px;
    position: relative;
}

.category-slider {
    width: 100%;
}

.category-slide-box {
    height: 400px !important;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.category-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
}

.slider-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 36px;
    height: 36px;
    background-color: #A6B39A;
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .slider-btn:hover {
        background-color: #8C9C7F;
    }

@media (max-width: 768px) {
    .category-slide-box {
        height: 180px !important;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .slider-controls {
        bottom: 10px;
        right: 10px;
    }
}

.category-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(166, 179, 154, 0.4);
    z-index: 1;
    border-radius: 16px;
}

.slider-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #A6B39A;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
    font-size: 16px;
}

    .slider-btn:hover {
        background-color: #8C9C7F;
    }

/* Pagination */
.custom-pagination-wrapper {
    text-align: center;
}

.custom-pagination {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 5px;
}

    .custom-pagination li {
        display: inline-block;
    }

        .custom-pagination li a, .custom-pagination li span {
            display: block;
            padding: 8px 14px;
            border-radius: 6px;
            background-color: #f3f3f3;
            color: #555;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .custom-pagination li.active span {
            background-color: #e5bfa1;
            color: white;
        }

        .custom-pagination li a:hover {
            background-color: #d9d9d9;
        }

        .custom-pagination li.disabled span {
            opacity: 0.4;
            cursor: default;
        }

        .custom-pagination li.dots span {
            background: none;
            color: #999;
        }

/* Hover zoom */
.project-img-wrapper img {
    transition: transform 0.4s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

/* درباره ما – گوشه‌ها */
.corner-box {
    width: 50px;
    height: 50px;
    position: absolute;
    border-radius: 8px;
    z-index: 1;
}

.top-start {
    top: -25px;
    left: -25px;
}

.top-end {
    top: -25px;
    right: -25px;
}

.bottom-start {
    bottom: -25px;
    left: -25px;
}

.bottom-end {
    bottom: -25px;
    right: -25px;
}

.bg-peach {
    background-color: #e2b19e;
}

.bg-green {
    background-color: #3f4422;
}

/* اسلایدر صفحه اصلی – دکمه‌ها */
.btn-slider-main {
    background-color: #3f4422;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-control {
    background-color: #A6B39A;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

    .btn-control:hover {
        background-color: #8C9C7F;
    }

/* Footer blocks */
.footer-container {
    background-color: #a7ad8f;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-column li {
        margin: 6px 0;
    }

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

    .footer-link:hover {
        text-decoration: underline;
        color: #cfdac6;
    }

.footer-icon {
    color: #ffffff;
    font-size: 20px;
    margin: 0 8px;
    transition: 0.3s;
}

    .footer-icon:hover {
        color: #dfe8d4;
    }

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
}

.footer-bottom {
    color: #3f4422;
    font-size: 13px;
    margin-top: 20px;
}

.footer-grid::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 12px auto;
}

@media (max-width: 768px) {
    .footer-column {
        text-align: center !important;
        align-items: center !important;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
}

/* فاصله منطقی AboutBanner زیر اسلایدر – بدون margin منفی */
.aboutSectionMargin {
    margin-top: .5rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .aboutSectionMargin {
        margin-top: .25rem;
    }
}
/* Mobile: slightly smaller hero image */
@media (max-width: 768px) {
    #heroCarousel .carousel-inner {
        height: 30vh !important;
    }
    /* قبلاً ~44vh بود */
}

/*@media (max-width: 400px) {
    #heroCarousel .carousel-inner {
        height: 36vh !important;
    }*/
    /* خیلی گوشی‌های کوچک */
}
/* ===== AboutServices (scoped) ===== */
.about-services-section .intro-modern {
    padding: 8px 0;
}

/* لوگو کنار عنوان */
.about-services-section .brand-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 40px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.08));
}

/* تایپوگرافی */
.about-services-section .intro-title {
    font-weight: 800;
    font-size: clamp(1.25rem, 1.1rem + 1vw, 1.7rem);
    color: #333;
}

.about-services-section .intro-subtitle {
    font-size: .95rem;
    color: #a7ad8f;
    font-weight: 600;
    margin-top: .35rem;
}

/* متن توضیح */
.about-services-section .intro-description {
    font-size: 1rem;
    line-height: 1.95;
    color: #444;
    padding-inline-start: 10px; /* RTL/LTR-safe */
    margin: 0;
    text-align: justify;
}

/* کارت‌ها */
.about-services-section .card {
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .about-services-section .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

.about-services-section .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* تصویر یکنواخت با نسبت ثابت */
.about-services-section .card-img-top {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

/* عنوان روی تصویر */
.about-services-section .image-title-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: .6rem 1rem;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: clamp(1rem, .9rem + .4vw, 1.15rem);
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15) 70%, transparent);
}

/* متن داخل کارت */
.about-services-section .description-text {
    line-height: 1.75;
    color: #444;
    /* برای محدود کردن خطوط: */
    /* display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; */
}

.about-services-section .feature-item {
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ریسپانسیو */
@media (max-width:768px) {
    .about-services-section .title-wrap {
        justify-content: center;
    }

    .about-services-section .intro-right {
        text-align: center;
    }

    .about-services-section .intro-description {
        padding-inline-start: 0;
        margin-top: .5rem;
    }
}
/* ==== Home: فاصله‌ی کم برای فرم درخواست ==== */
.form-request-section.home-gap {
    margin-top: 12px;
    margin-bottom: 16px;
}

@media (max-width:768px) {
    .form-request-section.home-gap {
        margin-top: 8px;
        margin-bottom: 12px;
    }
}

/* ==== Home: نمونه‌کارها (فشرده و اسکوپ‌شده) ==== */
.projects-section.home-works {
    padding-top: 12px; /* override روی padding بزرگ global */
    padding-bottom: 12px;
    background: transparent;
}

    .projects-section.home-works .section-title {
        font-weight: 700;
        font-size: 1.7rem;
        color: #3a3a3a;
        margin-bottom: 1.25rem;
    }
        /* حذف تزئین احتمالی عنوان فقط در این سکشن */
        .projects-section.home-works .section-title::before,
        .projects-section.home-works .section-title::after {
            display: none !important;
            content: none !important;
            border: none !important;
        }

    /* کارت‌ها (اسکوپ به نمونه‌کارهای خانه) */
    .projects-section.home-works .project-card {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        transition: all .4s ease-in-out;
        cursor: pointer;
    }

    .projects-section.home-works .project-img {
        height: 340px;
        object-fit: cover;
        display: block;
        margin: 0;
        padding: 0;
        transition: transform .4s ease;
    }

    .projects-section.home-works .project-card:hover .project-img {
        transform: scale(1.03);
        filter: brightness(0.85);
    }

    /* نوار پایینی کارت */
    .projects-section.home-works .project-info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(50,50,50,.6);
        color: #fff;
        backdrop-filter: blur(2px);
        font-size: .95rem;
        padding: .4rem 1rem;
        margin: 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .projects-section.home-works .project-title {
        font-weight: 600;
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .projects-section.home-works .project-btn {
        background-color: #a7ad8f;
        border: none;
        color: #fff;
        font-weight: 500;
        padding: 3px 10px;
        transition: background-color .3s ease;
    }

        .projects-section.home-works .project-btn:hover {
            background-color: #929873;
            color: #fff;
        }

/* موبایل: کمی کوتاه‌تر */
@media (max-width:768px) {
    .projects-section.home-works .project-img {
        height: 280px;
    }
}
/* ===== Before/After (scoped) ===== */
.before-after-section {
    background: transparent;
}

    /* دو تصویر همیشه کنار هم (روی موبایل هم) */
    .before-after-section .ba-pair {
        align-items: stretch;
    }

    /* اندازه‌ی یکنواخت تصاویر */
    .before-after-section .ba-img {
        width: 100%;
        height: 320px; /* دسکتاپ */
        object-fit: cover;
        display: block;
    }

@media (max-width: 768px) {
    .before-after-section .ba-img {
        height: 220px;
    }
    /* موبایل: کمی کوتاه‌تر تا اسکرول عمودی کم بشه */
}

/* برچسب‌ها */
.before-after-section .ba-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #a6957a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 500;
}
/* برچسب تصویر دوم سمت چپ برای قرینه بودن */
.before-after-section .ba-col:last-child .ba-label {
    right: auto;
    left: 10px;
}

/* فاصله‌ی دات‌های Slick */
.before-after-section .slick-dots {
    bottom: -30px;
}
/* ==== FOOTER — minimal, bootstrap-friendly ==== */

/* موبایل (پیش‌فرض): همه‌چیز وسط */
.footer-container .footer-column {
    align-items: center;
    text-align: center;
}

/* از md به بالا، هر ستون طبق کلاس بوت‌استرپ خودش تراز می‌شود */
@media (min-width: 768px) {
    /* ستون برند: text-md-end در مارکاپ هست */
    .footer-container .footer-column.text-md-end {
        align-items: flex-end;
        text-align: right !important;
    }

    /* ستون صفحات: text-center در مارکاپ هست */
    .footer-container .footer-column.text-center {
        align-items: center;
        text-align: center !important;
    }

    /* ستون خدمات: text-md-start در مارکاپ هست */
    .footer-container .footer-column.text-md-start {
        align-items: flex-start;
        text-align: left !important;
    }

    /* متن توضیح برند: از justify خارج شود تا فاصله‌های غیرعادی نداشته باشد */
    .footer-container .footer-text {
        text-align: inherit; /* راست‌چین برای fa، چپ‌چین برای en */
        max-width: 24rem; /* اختیاری؛ اگر خواستی محدودش کن */
    }

    /* عنوان/لیست/پاراگراف پهنای کامل ستون بگیرند */
    .footer-container .footer-column > h5,
    .footer-container .footer-column > p,
    .footer-container .footer-column > ul {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}
