/* =========================================================
   DIDAF FOOTER
========================================================= */

.didaf-footer {
    width: 100%;
    direction: rtl;
    background: #fff;
    color: #111;
}

.didaf-footer *,
.didaf-footer *::before,
.didaf-footer *::after {
    box-sizing: border-box;
}


/* =========================================================
   TOP
========================================================= */

.didaf-footer-top {
    width: 1200px;
    max-width: calc(100% - 40px);

    margin: 0 auto;
    padding: 30px 0 15px;

    display: grid;

    grid-template-columns:
        1.35fr
        1fr
        1fr
        1.15fr
        1.15fr;

    gap: 32px;

    align-items: start;
}


/* =========================================================
   BRAND
========================================================= */

.didaf-footer-brand {
    text-align: right;
}

.didaf-footer-logo {
    display: block;
    margin-bottom: 12px;
}

.didaf-footer-logo img {
    display: block;

    width: 250px;
    height: auto;
    max-height: 95px;

    object-fit: contain;
    object-position: right center;
}

.didaf-footer-brand p {
    width: 260px;
    max-width: 100%;

    margin: 0;
text-align:center;
    font-size: 16px;
    line-height:1.7;
}


/* =========================================================
   COLUMNS
========================================================= */

.didaf-footer-column h3,
.didaf-footer-contact h3 {
    margin: 0 0 22px;
color:#a29999;
    font-size: 16px;
    font-weight: 700;
}

.didaf-footer-column a {
    display: block;

    margin-bottom: 10px;

    color: #111;
    text-decoration: none;

    font-size: 17px;
    line-height: 1.5;

    transition: .2s;
}

.didaf-footer-column a:hover {
    color: #ed1c24;
}


/* =========================================================
   CONTACT
========================================================= */

.didaf-footer-contact {
    min-width: 0;
}

.didaf-contact-row-f {
    display: flex;
    flex-direction: row;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 0;
    padding: 0 0 18px;
    margin-top: 0;

    border-bottom: 1px solid #dedede;

    font-size: 13px;
    line-height: 1.9;
}

.didaf-contact-row-f + .didaf-contact-row-f {
    padding-top: 17px;
}

.didaf-contact-row-f:last-child {
    border-bottom: 0;
}

.didaf-contact-row-f svg {
    flex: 0 0 26px;

    width: 26px;
    height: 26px;

    fill: none;
    stroke: #ed1c24;
    stroke-width: 1.7;
}

.didaf-contact-text {
    flex: 1;
    min-width: 0;
}

.didaf-contact-text strong {
    display: block;
color:#000;
    font-weight: 400;
    direction: ltr;
    text-align: right;
}


/* =========================================================
   MAP
========================================================= */

.didaf-footer-map {
    position: relative;
}

.didaf-map-title-icon {
    position: absolute;

    top: -4px;
    right: 0;

    z-index: 3;
}

.didaf-map-title-icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: #ed1c24;
    stroke-width: 1.7;
}

.didaf-map-box {
    width: 100%;
    height: 285px;

    overflow: hidden;
}

.didaf-map-box iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* =========================================================
   BOTTOM GREY BOX
========================================================= */

.didaf-footer-bottom {
    position: relative;

    width: 1200px;
    max-width: calc(100% - 40px);

    min-height: 253px;

    margin: 0 auto;

    padding: 38px 45px 55px;

    background: #f1f1f1;

    border-radius: 27px;

    display: grid;

    grid-template-columns:
        1.25fr
        .75fr
        1.25fr;

    gap: 45px;

    align-items: start;
}


/* =========================================================
   NEWSLETTER
========================================================= */

.didaf-newsletter-f {
    text-align: right;
}

.didaf-newsletter-f h3 {
    margin: 0;

    font-size: 17px;
    font-weight: 500;
}

.didaf-newsletter-f > strong {
    display: block;

    font-size: 16px;
    font-weight: 500;
}

.didaf-newsletter-f > p {
    margin: 27px 0 12px;

    color: #777;
    font-size: 13px;
}


/* FORM */

.didaf-newsletter-form {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;

    padding: 4px;

    background: #fff;
    border-radius: 28px;
}

.didaf-newsletter-form input {
    flex: 1;

    min-width: 0;
    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    padding: 0 17px;

    font-family: inherit;
    font-size: 13px;

    text-align: right;
}

.didaf-newsletter-form input::placeholder {
    color: #c7c7c7;
}

.didaf-newsletter-form button {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: #ed1c24;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.didaf-newsletter-form button svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: #fff;
    stroke-width: 2;
}


/* =========================================================
   SOCIAL
========================================================= */

.didaf-footer-social {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 17px;
}

.didaf-social-item {
    width: 180px;

    display: grid;

    grid-template-columns: 64px 1fr;
    grid-template-rows: 1fr 1fr;

    gap: 0 12px;

    align-items: center;
}

.didaf-social-icon {
    grid-row: 1 / 3;

    width: 64px;
    height: 64px;

    border: 2px solid #111;
    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.didaf-social-icon svg {
    width: 27px;
    height: 27px;

    fill: none;
    stroke: #111;
    stroke-width: 1.7;
}

.didaf-social-item span {
    font-size: 13px;
color:#000;
}

.didaf-social-item strong {
    font-size: 13px;
    font-weight: 400;
color:#000;
    direction: ltr;
    text-align: right;
}


/* =========================================================
   POSTS
========================================================= */

.didaf-footer-posts {
    min-width: 0;
}

.didaf-posts-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.didaf-posts-heading h3 {
    margin: 0;

    font-size: 17px;
    font-weight: 500;

    line-height: 1.65;
}

.didaf-posts-heading a {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #ed1c24;

    text-decoration: none;

    font-size: 13px;

    white-space: nowrap;
}

.didaf-posts-heading a svg {
    order: -1;

    width: 36px;
    height: 21px;

    padding: 3px 7px;

    background: #898989;

    border-radius: 20px;

    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

.didaf-footer-posts > p {
    margin: 20px 0 14px;

    font-size: 13px;
    line-height: 1.9;
}


/* POST BAR */

.didaf-post-search {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;

    padding: 4px;

    background: #fff;
    border-radius: 27px;
}

.didaf-post-search input {
    flex: 1;
    min-width: 0;

    height: 100%;

    border: 0;
    outline: 0;

    padding: 0 14px;

    background: transparent;

    font-family: inherit;
    font-size: 12px;
}

.didaf-post-search button {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #ed1c24;

    display: flex;
    align-items: center;
    justify-content: center;
}

.didaf-post-search button svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: #fff;
    stroke-width: 2;
}


/* =========================================================
   BOTTOM LOGOS + CURVE
========================================================= */

.didaf-footer-logos {
    position: absolute;

    left: 50%;
    bottom: -48px;

    transform: translateX(-50%);

    width: 290px;
    height: 82px;

    background: #f1f1f1;

    border-radius: 0 0 90px 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    z-index: 5;
}

.didaf-footer-logos img {
    width: 43px;
    height: 43px;

    object-fit: contain;
}

/* =========================================================
   TABLET
   901px تا 768px
========================================================= */

@media (max-width: 1100px) and (min-width: 769px) {

    /* =====================================================
       TOP FOOTER
    ===================================================== */

    .didaf-footer-top {
        width: calc(100% - 40px);
        max-width: 100%;

        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 30px;

        padding: 35px 0 20px;
    }


    /* لوگو */

    .didaf-footer-logo img {
        width: 210px;
        max-height: 85px;
    }

    .didaf-footer-brand p {
        width: 230px;
        font-size: 14px;
        line-height: 1.8;
    }


    /* منوها */

    .didaf-footer-column h3,
    .didaf-footer-contact h3 {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .didaf-footer-column a {
        font-size: 14px;
        margin-bottom: 9px;
    }


    /* اطلاعات تماس */

    .didaf-contact-row-f {
        gap: 9px;
        padding-bottom: 15px;

        font-size: 12px;
    }

    .didaf-contact-row-f + .didaf-contact-row-f {
        padding-top: 14px;
    }

    .didaf-contact-row-f svg {
        flex: 0 0 23px;

        width: 23px;
        height: 23px;
    }


    /* نقشه */

    .didaf-footer-map {
        grid-column: 1 / -1;

        margin-top: 15px;
    }

    .didaf-map-box {
        width: 100%;
        height: 260px;
    }


    /* =====================================================
       BOTTOM FOOTER
    ===================================================== */

    .didaf-footer-bottom {
        width: calc(100% - 40px);
        max-width: 100%;

        min-height: auto;

        padding: 35px 35px 75px;

        grid-template-columns: 1.2fr .8fr;
        gap: 35px;
    }


    /* خبرنامه */

    .didaf-newsletter-f h3 {
        font-size: 16px;
    }

    .didaf-newsletter-f > strong {
        font-size: 15px;
    }

    .didaf-newsletter-f > p {
        margin-top: 20px;
        font-size: 12px;
    }


    /* شبکه اجتماعی */

    .didaf-footer-social {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        gap: 15px;
    }

    .didaf-social-item {
        width: 170px;
    }


    /* آخرین مطالب */

    .didaf-footer-posts {
        grid-column: 1 / -1;

        margin-top: 5px;
    }

    .didaf-footer-posts > p {
        font-size: 12px;
    }


    /* لوگوهای پایین */

    .didaf-footer-logos {
        width: 260px;
        height: 75px;

        bottom: -43px;

        gap: 15px;
    }

    .didaf-footer-logos img {
        width: 40px;
        height: 40px;
    }

}


/* =========================================================
   MOBILE
   768px و پایین‌تر
========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       TOP FOOTER
    ===================================================== */

    .didaf-footer-top {
        width: calc(100% - 30px);
        max-width: 100%;

        margin: 0 auto;

        padding: 30px 0 20px;

        display: grid;
        grid-template-columns: 1fr;

        gap: 32px;
    }


    /* =====================================================
       BRAND
    ===================================================== */

    .didaf-footer-brand {
        text-align: center;
    }

    .didaf-footer-logo {
        display: flex;

        align-items: center;
        justify-content: center;

        margin-bottom: 12px;
    }

    .didaf-footer-logo img {
        width: 190px;
        max-width: 75%;
        max-height: 80px;

        object-position: center;
    }

    .didaf-footer-brand p {
        width: 100%;
        max-width: 320px;

        margin: 0 auto;

        text-align: center;

        font-size: 13px;
        line-height: 2;
    }


    /* =====================================================
       COLUMNS
    ===================================================== */

    .didaf-footer-column {
        text-align: center;
    }

    .didaf-footer-column h3,
    .didaf-footer-contact h3 {
        margin: 0 0 16px;

        font-size: 16px;
        text-align: center;
    }

    .didaf-footer-column a {
        margin-bottom: 9px;

        font-size: 14px;
        line-height: 1.7;
    }


    /* =====================================================
       CONTACT
    ===================================================== */

    .didaf-footer-contact {
        width: 100%;
    }

    .didaf-contact-row-f {
        width: 100%;

        display: flex;

        align-items: flex-start;

        gap: 10px;

        padding: 13px 5px;

        font-size: 12px;
        line-height: 1.9;

        text-align: right;
    }

    .didaf-contact-row-f svg {
        flex: 0 0 23px;

        width: 23px;
        height: 23px;

        margin-top: 2px;
    }

    .didaf-contact-text {
        flex: 1;
        min-width: 0;
    }


    /* =====================================================
       MAP
    ===================================================== */

    .didaf-footer-map {
        width: 100%;

        margin-top: 0;
    }

    .didaf-map-title-icon {
        top: -3px;
        right: 0;
    }

    .didaf-map-title-icon svg {
        width: 22px;
        height: 22px;
    }

    .didaf-map-box {
        width: 100%;
        height: 230px;

        border-radius: 14px;
        overflow: hidden;
    }

    .didaf-map-box iframe {
        width: 100%;
        height: 100%;
    }


    /* =====================================================
       BOTTOM GREY BOX
    ===================================================== */

    .didaf-footer-bottom {
        width: calc(100% - 30px);
        max-width: 100%;

        min-height: auto;

        margin: 0 auto;

        padding: 30px 20px 80px;

        display: grid;

        grid-template-columns: 1fr;

        gap: 35px;

        border-radius: 22px;
    }


    /* =====================================================
       NEWSLETTER
    ===================================================== */

    .didaf-newsletter-f {
        width: 100%;

        text-align: center;
    }

    .didaf-newsletter-f h3 {
        font-size: 16px;
    }

    .didaf-newsletter-f > strong {
        font-size: 15px;
    }

    .didaf-newsletter-f > p {
        margin: 18px 0 12px;

        font-size: 12px;
    }

    .didaf-newsletter-form {
        width: 100%;
        max-width: 400px;

        height: 48px;

        margin: 0 auto;
    }


    /* =====================================================
       SOCIAL
    ===================================================== */

    .didaf-footer-social {
        width: 100%;

        display: flex;

        flex-direction: row;

        justify-content: center;
        align-items: center;

        gap: 18px;

        flex-wrap: wrap;
    }

    .didaf-social-item {
        width: 150px;

        grid-template-columns: 55px 1fr;

        gap: 0 9px;
    }

    .didaf-social-icon {
        width: 55px;
        height: 55px;

        border-radius: 18px;
    }

    .didaf-social-icon svg {
        width: 24px;
        height: 24px;
    }

    .didaf-social-item span {
        font-size: 12px;
    }

    .didaf-social-item strong {
        font-size: 11px;
    }


    /* =====================================================
       POSTS
    ===================================================== */

    .didaf-footer-posts {
        width: 100%;
    }

    .didaf-posts-heading {
        width: 100%;

        align-items: center;

        gap: 10px;
    }

    .didaf-posts-heading h3 {
        font-size: 16px;
    }

    .didaf-posts-heading a {
        font-size: 11px;
    }

    .didaf-posts-heading a svg {
        width: 32px;
        height: 20px;
    }

    .didaf-footer-posts > p {
        margin: 15px 0 12px;

        font-size: 12px;
        line-height: 1.9;
    }

    .didaf-post-search {
        height: 48px;
    }

    .didaf-post-search input {
        font-size: 11px;
    }


    /* =====================================================
       THREE LOGOS
    ===================================================== */

    .didaf-footer-logos {
        width: 230px;
        height: 70px;

        bottom: -40px;

        gap: 13px;

        border-radius: 0 0 80px 80px;
    }

    .didaf-footer-logos img {
        width: 38px;
        height: 38px;
    }

}


/* =========================================================
   SMALL MOBILE
   480px و پایین‌تر
========================================================= */

@media (max-width: 480px) {

    .didaf-footer-top {
        width: calc(100% - 24px);

        padding-top: 25px;

        gap: 28px;
    }


    /* لوگو */

    .didaf-footer-logo img {
        width: 170px;
    }

    .didaf-footer-brand p {
        max-width: 290px;

        font-size: 12px;
    }


    /* منو */

    .didaf-footer-column h3,
    .didaf-footer-contact h3 {
        font-size: 15px;
    }

    .didaf-footer-column a {
        font-size: 13px;
    }


    /* تماس */

    .didaf-contact-row-f {
        font-size: 11px;
        gap: 8px;
    }

    .didaf-contact-row-f svg {
        flex-basis: 21px;

        width: 21px;
        height: 21px;
    }


    /* نقشه */

    .didaf-map-box {
        height: 200px;
    }


    /* باکس پایین */

    .didaf-footer-bottom {
        width: calc(100% - 24px);

        padding: 27px 15px 75px;

        border-radius: 20px;

        gap: 30px;
    }


    /* شبکه اجتماعی */

    .didaf-footer-social {
        gap: 12px;
    }

    .didaf-social-item {
        width: 140px;

        grid-template-columns: 50px 1fr;

        gap: 0 8px;
    }

    .didaf-social-icon {
        width: 50px;
        height: 50px;
    }


    /* آخرین مطالب */

    .didaf-posts-heading h3 {
        font-size: 15px;
    }

    .didaf-posts-heading a {
        font-size: 10px;
    }


    /* لوگوهای پایین */

    .didaf-footer-logos {
        width: 205px;
        height: 65px;

        bottom: -37px;

        gap: 10px;
    }

    .didaf-footer-logos img {
        width: 34px;
        height: 34px;
    }

}


/***********************      شروع شبکه اجتماعی شناور     ********************************/
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.image-social{
    padding-left: 7px;
}
.social-menu {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.social-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.bale {
    background: linear-gradient(135deg, #f09433, #e1306c, #833ab4);
}

.telegrami {
    background:#1d87bb;
}

.whatsapp {
    background: #25D366;
}

.social-icon{
    width: 32px;
    height: 32px;
    display: block;
}

.social-item i{
    font-size: 32px;
}
@media (max-width: 768px) {
    .social-menu {
        right: 33px;
        bottom: 90px;
        gap: 8px;
margin-bottom: 5px;
    }
    
    .social-item {
        width: 55px !important;
        height: 55px !important;
    }
    
   .image-social {
        width: 36px !important;
        height: 30px !important;
        padding-left: 7px !important;
        flex-shrink: 0 !important;
    }
    
  
}
overflow-x{
display:hidden;
}


/***********************  پایان  شبکه اجتماعی شناور    ********************************/
