/* ==========================================================
   DIGBANG SITE FOOTER
========================================================== */

.db-site-footer {
    width: 100%;
    min-height: 637px;

    margin-top: 96px;

    background: linear-gradient(
    to bottom,
    #FFFFFF 0%,
    #FFFFFF 35%,
    #FCF8F2 60%,
    #F9F2E7 80%,
    #F6EDDE 100%
);
    box-shadow: 0 -14px 36px rgba(38, 20, 2, 0.10);
    font-family: Vazirmatn, sans-serif;
    direction: rtl;
}

.db-site-footer,
.db-site-footer * {
    box-sizing: border-box;
}

.db-site-footer__inner {
    position: relative;

    width: 100%;
    max-width: 1440px;
    min-height: 637px;

    margin-inline: auto;
}

/* ==========================================================
   NEWSLETTER
========================================================== */

.db-footer-newsletter {
    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    width: 1320px;
    height: 114px;

    margin-inline: auto;

    direction: rtl;
}

/* متن سمت راست */

.db-footer-newsletter__content {
    padding-top: 20px;

    text-align: right;
}

.db-footer-newsletter__title {
    margin: 0;

    color: #030100;

    font-family: Vazirmatn, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
}

.db-footer-newsletter__description {
    margin: 4px 0 0;

    color: #030100;

    font-family: Vazirmatn, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

/* فرم سمت چپ */

.db-site-footer .db-footer-newsletter__form {
    position: relative;

    width: 380px;
    height: 48px;

    margin-top: 46px;
    margin-left: 0;
    padding: 0;

    direction: rtl;
}

.db-site-footer .db-footer-newsletter__input {
    display: block;

    width: 380px;
    height: 48px;
    min-height: 48px;

    margin: 0;
    padding: 8px 12px 8px 156px;

    box-sizing: border-box;

    color: #030100;
    background: #FFFFFF;

    border: 1px solid #F6EDDE;
    border-radius: 8px;
    outline: none;

    font-family: Vazirmatn, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;

    text-align: right;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.db-site-footer .db-footer-newsletter__input::placeholder {
    color: #B8A292;
    opacity: 1;
}

.db-site-footer .db-footer-newsletter__input:focus {
    border-color: #FF8533;
    box-shadow: 0 0 0 3px rgba(255, 133, 51, 0.14);
}

/* دکمه داخل اینپوت */

.db-site-footer .db-footer-newsletter__button {
    position: absolute;

    top: 10px;
    left: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 140px;
    min-width: 140px;
    max-width: 140px;

    height: 28px;
    min-height: 28px;
    max-height: 28px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    color: #FFFFFF;
    background: #FF8533;

    border: 0;
    border-radius: 5.23px;

    appearance: none;
    -webkit-appearance: none;

    font-family: Vazirmatn, sans-serif;
    font-size: 10.45px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.db-site-footer .db-footer-newsletter__button:hover,
.db-site-footer .db-footer-newsletter__button:focus-visible {
    color: #FFFFFF;
    background: #CC5200;
}

.db-site-footer .db-footer-newsletter__button:active {
    transform: scale(0.98);
}


/* ==========================================================
   NEWSLETTER MESSAGE
========================================================== */

.db-footer-newsletter__form-wrap {
    position: relative;

    width: 380px;

    margin: 0;
    padding: 0;
}


.db-site-footer .db-footer-newsletter__form-wrap
.db-footer-newsletter__form {
    width: 100%;
}


.db-footer-newsletter__message {
    position: absolute;

    top: 100%;
    right: 0;

    width: 100%;

    margin: 6px 0 0;
    padding: 0;

    font-family: Vazirmatn, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;

    text-align: right;
}


/* موفقیت */

.db-footer-newsletter__message.is-success {
    color: #4F7A4A;
}


/* قبلاً عضو شده */

.db-footer-newsletter__message.is-info {
    color: #8E7D71;
}


/* خطا */

.db-footer-newsletter__message.is-error {
    color: #CC5200;
}

/* ==========================================================
   MAIN BROWN PANEL
========================================================== */

.db-site-footer__panel {
    width: 1320px;
    height: 394px;

    margin: 20px auto 0;

    overflow: hidden;

    background: #261402;
    border-radius: 28px;
}

/* ==========================================================
   TOP ROW
========================================================== */

.db-site-footer__top-row {
    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    width: 100%;
    min-height: 214px;

    padding: 46px 56px 0;

    direction: rtl;
}

/* جلوگیری از کشیده‌شدن ستون‌ها */

.db-site-footer__top-row > * {
    flex: 0 0 auto;
    min-width: 0;
}

/* ==========================================================
   BRAND
========================================================== */

.db-footer-brand {
    width: 586px;

    padding-top: 27px;
}

.db-footer-brand__logo-link {
    display: inline-block;

    width: 98.22px;
    height: 40px;

    text-decoration: none;
}

.db-footer-brand__logo {
    display: block;

    width: 98.22px;
    height: 40px;

    object-fit: contain;
}

.db-footer-brand__description {
    width: 586px;

    margin: 16px 0 0;

    color: #F6EDDE;

    font-family: Vazirmatn, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;

    text-align: right;
}

/* ==========================================================
   SHARED LINK COLUMNS
========================================================== */

.db-footer-links,
.db-footer-contact {
    width: max-content;
    min-width: 0;
}

.db-footer-links__title,
.db-footer-contact__title,
.db-footer-social__title {
    margin: 0;

    color: #F6EDDE;

    font-family: Vazirmatn, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;

    text-align: right;
}

.db-footer-links__list,
.db-footer-contact__list {
    margin: 12px 0 0;
    padding: 0;

    list-style: none;
}

.db-footer-links__item {
    margin: 0 0 4px;
}

.db-footer-links__item:last-child {
    margin-bottom: 0;
}

.db-footer-links__item a {
    display: inline-block;

    color: #F6EDDE;

    font-family: Vazirmatn, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;

    text-decoration: none;

    transition: color 0.2s ease;
}

.db-footer-links__item a:hover,
.db-footer-links__item a:focus-visible {
    color: #FF8533;
}

/* ==========================================================
   CONTACT
========================================================== */

.db-footer-contact__list {
    margin-top: 12px;
}

.db-footer-contact__item {
    display: flex;
    align-items: center;
    gap: 8px;

    min-height: 25px;

    margin-bottom: 4px;

    color: #F6EDDE;

    font-family: Vazirmatn, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;

    white-space: nowrap;
}

.db-footer-contact__item:last-child {
    margin-bottom: 0;
}

.db-footer-contact__icon {
    display: block;
    flex: 0 0 20px;

    width: 20px;
    height: 20px;

    object-fit: contain;
}

.db-footer-contact__item a {
    color: #F6EDDE;
    text-decoration: none;

    transition: color 0.2s ease;
}

.db-footer-contact__item a:hover,
.db-footer-contact__item a:focus-visible {
    color: #FF8533;
}

/* ==========================================================
   FOOTER BOTTOM
========================================================== */

.db-footer-bottom {
    width: 100%;
}

.db-footer-bottom__divider {
    width: 1208px;
    height: 2px;

    margin: 32px auto 0;

    background: #F6EDDE;
}

.db-footer-bottom__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    width: 1208px;

    margin: 32px auto 0;

    direction: rtl;
}

/* ==========================================================
   SOCIAL MEDIA
========================================================== */

.db-footer-social {
    width: max-content;
}

.db-footer-social__icons {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-top: 16px;
}

.db-footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    text-decoration: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.db-footer-social__link img {
    display: block;

    width: 24px;
    height: 24px;

    object-fit: contain;
}

.db-footer-social__link:hover,
.db-footer-social__link:focus-visible {
    opacity: 0.75;
    transform: translateY(-2px);
}

/* محل اینماد؛ فعلاً خالی */

.db-footer-enamad {
    min-width: 120px;
    min-height: 70px;
}

/* ==========================================================
   COPYRIGHT
========================================================== */

.db-site-footer__copyright {
    margin: 40px 0 0;

    color: #261402;

    font-family: Vazirmatn, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;

    text-align: center;
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1399px) {

    .db-site-footer__inner {
        width: calc(100% - 32px);
    }

    .db-footer-newsletter,
    .db-site-footer__panel {
        width: 100%;
    }

    .db-site-footer__top-row {
        gap: 24px;

        padding-right: 40px;
        padding-left: 40px;
    }

    .db-footer-brand {
        width: min(44vw, 586px);
    }

    .db-footer-brand__description {
        width: 100%;
    }

    .db-footer-bottom__divider,
    .db-footer-bottom__row {
        width: calc(100% - 112px);
    }
}

/* ==========================================================
   MEDIUM SCREENS
========================================================== */

@media (max-width: 1100px) {

    .db-site-footer__panel {
        height: auto;
    }

    .db-site-footer__top-row {
        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 40px 32px;

        padding-bottom: 40px;
    }

    .db-footer-brand {
        grid-column: 1 / -1;

        width: 100%;
        padding-top: 0;
    }

    .db-footer-brand__description {
        max-width: 586px;
    }

    .db-footer-bottom__divider {
        margin-top: 0;
    }

    .db-footer-bottom__row {
        padding-bottom: 32px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .db-site-footer {
        min-height: auto;

        margin-top: 64px;
        padding-bottom: 32px;
    }

    .db-site-footer__inner {
        width: calc(100% - 32px);
        min-height: auto;
    }

    .db-footer-newsletter {
        display: block;

        width: 100%;
        height: auto;
    }

    .db-footer-newsletter__content {
        padding-top: 0;
    }

    .db-footer-newsletter__title {
        font-size: 24px;
    }

    .db-footer-newsletter__description {
        font-size: 14px;
    }

    .db-site-footer .db-footer-newsletter__form {
        width: 100%;
        height: 48px;

        margin-top: 20px;
    }

    .db-site-footer .db-footer-newsletter__input {
        width: 100%;

        padding-right: 12px;
        padding-left: 132px;
    }

    .db-site-footer .db-footer-newsletter__button {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }

    .db-site-footer__panel {
        width: 100%;
        height: auto;

        margin-top: 32px;

        border-radius: 20px;
    }

    .db-site-footer__top-row {
        display: grid;
        grid-template-columns: 1fr;

        row-gap: 32px;

        width: 100%;
        min-height: auto;

        padding: 32px 24px 0;
    }

    .db-footer-brand {
        grid-column: auto;

        width: 100%;
        padding-top: 0;
    }

    .db-footer-brand__description {
        width: 100%;

        font-size: 14px;
    }

    .db-footer-links,
    .db-footer-contact {
        width: 100%;
    }

    .db-footer-links__title,
    .db-footer-contact__title,
    .db-footer-social__title {
        font-size: 18px;
    }

    .db-footer-bottom__divider {
        width: calc(100% - 48px);

        margin-top: 32px;
    }

    .db-footer-bottom__row {
        display: block;

        width: calc(100% - 48px);

        margin-top: 32px;
        padding-bottom: 32px;
    }

    .db-footer-enamad {
        margin-top: 20px;
    }

    .db-site-footer__copyright {
        margin-top: 24px;

        font-size: 13px;
    }
    
    .db-footer-newsletter__form-wrap {
    width: 100%;
}
}