.header-area .main-nav .nav li.contact-item a {
    color: #fff !important;
    padding: 0px 20px;
    font-weight: 400;
}

/* rtl */

html[dir='rtl'] body {
    direction: rtl;
    text-align: right;
}

html[dir='rtl'] section,
html[dir='rtl'] p,
html[dir='rtl'] h1,
html[dir='rtl'] h2,
html[dir='rtl'] h3,
html[dir='rtl'] h4,
html[dir='rtl'] h5,
html[dir='rtl'] h6 {
    text-align: right !important;
}

html[dir='rtl'] .about-us .left-image {
    left: 0;
    right: auto;
    margin-left: 0;
    margin-right: 0;
}

html[dir='rtl'] .our-services .left-image,
html[dir='rtl'] form#contact {
    margin-right: 30px;
    margin-left: 0;
}

html[dir='rtl'] footer p {
    text-align: right;
}

html[dir='rtl'] .about-us .services .item .icon {
    float: right;
    margin-left: 25px;
}

html[dir='rtl'] .our-services .section-heading h2 {
    left: 100px;
}

html[dir='rtl'] .our-services .first-bar span {
    right: 90%;
}

html[dir='rtl'] .our-services .second-bar span {
    right: 90%;
}

html[dir='rtl'] .our-services .third-bar span {
    right: 90%;
}

html[dir='rtl'] footer p {
    text-align: center !important;
}
/* selector language */

.language-selector > a {
    display: flex;
    align-items: center;
    color: #2a2a2a;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.language-selector > a i {
    margin-right: 6px;
    color: #03a4ed;
}

.language-selector ul {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 5px 0;
}

.language-selector ul li a {
    font-size: 14px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.language-selector ul li a:hover {
    background-color: #f0f8ff;
    color: #fe3f40 !important;
    padding-left: 25px;
}

.language-selector ul li a.active {
    background-color: #03a4ed;
    color: #fff !important;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .language-selector ul {
        position: relative;
        box-shadow: none;
    }

    .header-area .main-nav .nav li.language-selector {
        display: block !important;
        /*padding: 10px 0 !important;*/
    }

    .header-area .main-nav .nav li.contact-item a {
        color: #000000 !important;
        padding: 0px 20px;
        font-weight: 400;
    }
}

/* ========== Language Dropdown Mobile Behavior ========== */
@media (max-width: 767px) {

    .header-area .main-nav .nav li.language-selector ul {
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: none;
        background: #fff;
        border-radius: 8px;
    }

    .header-area .main-nav .nav li.language-selector ul.active {
        height: auto !important;
        overflow: visible;
        padding: 5px 0;
    }

    .header-area .main-nav .nav li.language-selector ul li a {
        display: block;
        padding: 10px 20px;
        font-size: 14px;
        line-height: 20px;
        color: #2a2a2a;
        background-color: #fff;
    }

    .header-area .main-nav .nav li.language-selector ul li a:hover {
        background-color: #f0f8ff;
        color: #fe3f40 !important;
        padding-left: 25px;
    }

    .header-area .main-nav .nav {
        max-height: calc(100vh - 100px); /* کل صفحه منهای هدر */
        overflow-y: auto !important;     /* فعال شدن اسکرول عمودی */
        margin-top: 0 !important;        /* حذف فاصله بین هدر و منو */
        padding-top: 10px;
        background-color: #fff;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        border-radius: 6px;
        position: relative;
        z-index: 999; /* زیرمنو زبان بالاتر از این */
    }

    .header-area .main-nav .nav li {
        display: block;
        width: 100%;
    }

}


/* ========== css FIX ========== */
.header-area {
   background-color: #f3e33f !important;
}

li.row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.our-blog .container .row .right-list ul li span {
    color: #ff4d61;
    font-size: 16px;
}

.our-blog .container .row .left-image span {
    color: #ff4d61;
    font-size: 16px;
}

/* ================================================
   CONTACT IMAGES UNIFIED SIZE — Grounded to Space Dynamic style
   ================================================ */
.contact-images {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-images a {
    flex: 1 1 220px;
    max-width: 220px;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-images img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.contact-images a:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 22px rgba(3,164,237,0.2);
}

@media (max-width: 767px) {
    .contact-images {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .contact-images a {
        max-width: 85%;
    }

    /* 💡 Key Change: show full image without cropping */
    .contact-images img {
        height: auto !important;          /* Let natural ratio take full display */
        max-height: 220px;                /* Optional: prevent too tall images */
        object-fit: contain !important;   /* show full image entirely, shrink inside box */
        object-position: center center;   /* keep centered */
        background-color: #fff;           /* match existing contact-us white bg */
    }
}

