/* ==================================================
   DAILY TARJUMAN - CLEAN FOOTER CSS (DESKTOP & MOBILE)
================================================== */

.site-footer {
    background-color: #111111 !important;
    color: #ffffff !important;
    margin-top: 20px !important; /* مارجن کم کر دیا گیا ہے */
    direction: rtl !important;
    font-family: inherit;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-widgets {
    padding: 25px 0 20px 0 !important; /* اضافی پیڈنگ کم کر دی گئی ہے */
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 20px !important; /* گیپ کم کر دیا گیا ہے */
    direction: rtl !important;
    border: none !important;
}

/* --------------------------------------------------
   DESKTOP: SECTION 1 (ABOUT & LOGO)
-------------------------------------------------- */
.widget-about {
    flex: 0 0 32% !important;
    max-width: 32% !important;
    text-align: right !important;
    box-sizing: border-box;
    border: none !important; /* غیر ضروری لائن ختم */
    padding: 0 !important;
}

.footer-auto-logo img,
.footer-auto-logo h2 a {
    max-width: 210px !important;
    height: auto !important;
    margin-bottom: 12px !important;
    display: block !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.about-desc {
    color: #dddddd !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
}

.footer-social-icons {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    direction: rtl !important;
}

.social-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 16px !important;
    text-decoration: none !important;
    background: #222222 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}
.footer-social-icons .social-btn i {
    display: inline-block !important;
    font-family: "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.social-btn:hover {
    background: #d60000 !important;
    border-color: #d60000 !important;
    transform: translateY(-3px);
}

/* --------------------------------------------------
   DESKTOP: SECTION 2 (IMPORTANT LINKS)
-------------------------------------------------- */
.widget-links {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    box-sizing: border-box;
    border: none !important; /* غیر ضروری لائن ختم */
    padding: 0 !important;
}

.widget-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-align: right !important;
    margin-bottom: 14px !important;
    border-bottom: 2px solid #d60000 !important;
    padding-bottom: 4px !important;
    display: inline-block !important;
    background: #111111;
}

.footer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-menu li {
    margin-bottom: 8px !important;
    text-align: right !important;
}

.footer-menu li a {
    color: #eeeeee !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.footer-menu li a:hover {
    color: #d60000 !important;
    transform: translateX(-4px);
}

/* --------------------------------------------------
   DESKTOP: SECTION 3 (APP DOWNLOAD & MOCKUP)
-------------------------------------------------- */
.widget-app {
    flex: 0 0 35% !important;
    max-width: 35% !important;
    box-sizing: border-box;
    border: none !important;
    padding: 0 !important;
}

.app-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

.app-text-side {
    text-align: right !important;
    flex: 1;
}

.app-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 0 4px 0 !important;
}

.app-subtitle {
    color: #bbbbbb !important;
    font-size: 14px !important;
    margin: 0 0 12px 0 !important;
}

.app-badges {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
}

.badge-btn img {
    height: 38px !important;
    width: auto !important;
    max-width: 140px !important;
    display: block !important;
    transition: transform 0.2s ease;
}

.badge-btn img:hover {
    transform: scale(1.05);
}

.app-image-side {
    flex-shrink: 0;
}

.app-mockup-img {
    max-width: 130px !important;
    height: auto !important;
    display: block !important;
    filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.5));
}

/* --------------------------------------------------
   SUB FOOTER (COPYRIGHT BAR)
-------------------------------------------------- */
.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px 0 !important;
    background-color: #0d0d0d !important;
}

.sub-footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    direction: rtl !important;
    gap: 10px !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

.sub-footer-content a {
    color: #dddddd !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.sub-footer-content a:hover {
    color: #d60000 !important;
}

.sub-footer-content .sep {
    color: rgba(255, 255, 255, 0.3) !important;
    margin: 0 4px !important;
}

/* ==================================================
   MOBILE RESPONSIVE FOOTER (< 768px)
================================================== */
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    .site-footer {
        padding-top: 10px !important;
        margin-top: 15px !important;
    }

    .site-footer, 
    .footer-container, 
    .footer-widgets {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .footer-widgets {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 12px 0 !important;
        padding: 10px 0 !important;
    }

    /* 1. اہم لنکس */
    .widget-links {
        order: 1 !important;
        flex: 0 0 47% !important;
        max-width: 47% !important;
        border: none !important;
        padding: 0 !important;
        text-align: right !important;
    }

    .widget-links .widget-title {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    .widget-links ul.footer-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .widget-links ul.footer-menu li a {
        font-size: 13px !important;
    }

    /* 2. ڈیلی ترجمان ایپ */
    .widget-app {
        order: 2 !important;
        flex: 0 0 47% !important;
        max-width: 47% !important;
        border: none !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .app-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .app-text-side {
        text-align: center !important;
    }

    .app-title {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    .app-subtitle {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }

    .app-badges {
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .badge-btn img {
        height: 28px !important;
        max-width: 100px !important;
    }

    .app-mockup-img {
        max-width: 60px !important;
        margin-top: 4px !important;
    }

    /* 3. لوگو اور تعارف */
    .widget-about {
        order: 3 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        border: none !important;
        padding-top: 10px !important;
        margin-top: 5px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-auto-logo img {
        max-width: 130px !important;
        margin: 0 auto 6px auto !important;
    }

    .about-desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
        max-width: 95% !important;
        margin-bottom: 8px !important;
        color: #bbbbbb !important;
    }

    .footer-social-icons {
        justify-content: center !important;
        gap: 8px !important;
    }

    .social-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    /* 4. کاپی رائٹ */
    .sub-footer {
        padding: 10px 8px !important;
    }

    .sub-footer-content {
        flex-direction: column-reverse !important;
        text-align: center !important;
        gap: 5px !important;
        font-size: 11px !important;
    }

    .sub-footer-content a {
        font-size: 11px !important;
    }
}