/* ==========================================================================
   Footer redesign (frontend)
   The default theme stacks several backgrounds (footer-top + footer-widget)
   which produce a boxy look. This file flattens everything into one
   continuous, low-contrast surface, restyles the four columns (About, Recent
   Posts, Useful Links, Contact info) with a quiet typographic hierarchy, and
   gives the copyright row a hairline divider instead of a tinted bar.
   ========================================================================== */

/* ----- Surface ----- */
html body footer.footer-area,
html body footer.footer-area.home-variant-21,
html body footer.footer-area.home-21 {
    background:
        linear-gradient(180deg, #0b1220 0%, #0a0f1c 100%) !important;
    color: #c2cad5 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html body footer.footer-area .footer-top,
html body footer.footer-area.home-variant-21 .footer-top,
html body footer.footer-area.home-21 .footer-top {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    padding: 72px 0 40px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

footer.footer-area .footer-top > .container > .row {
    row-gap: 32px;
}

/* ----- Reset widget container so each column is open, not a card ----- */
footer.footer-area .footer-widget,
footer.footer-area .widget.footer-widget {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

footer.footer-area .footer-widget .footer-widget {
    margin: 0 !important;
}

/* ----- Section headings (Recent Posts / Useful Links / Contact info) ----- */
html body footer[class*="footer-area"].footer-area .widget-title,
html body footer[class*="footer-area"].footer-area .widget-title.style-01,
html body footer[class*="footer-area"].footer-area .footer-top .widget-title,
html body footer[class*="footer-area"].footer-area .footer-top h4.widget-title,
html body footer[class*="footer-area"].footer-area.home-variant-21 .footer-top .widget.footer-widget .widget-title,
html body footer[class*="footer-area"].footer-area.home-21 .footer-top .widget.footer-widget .widget-title,
html body footer[class*="footer-area"].footer-area.home-variant-21 .footer-top .widget.footer-widget .widget-title.style-01,
html body footer[class*="footer-area"].footer-area.home-21 .footer-top .widget.footer-widget .widget-title.style-01 {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    position: relative;
}
html body footer.footer-area .widget-title::after,
html body footer.footer-area .widget-title.style-01::after {
    display: none !important;
}

/* ----- Body copy & links ----- */
html body footer.footer-area p,
html body footer.footer-area li,
html body footer.footer-area a,
html body footer.footer-area span,
html body footer.footer-area .footer-top .footer-widget *,
html body footer.footer-area .footer-top .sidebars-single-content *,
html body footer.footer-area .footer-top .about_us_widget *,
html body footer.footer-area .footer-top .widget_nav_menu *,
html body footer.footer-area .footer-top .recent_post_item *,
html body footer.footer-area .footer-top .contact_info_list * {
    color: #c2cad5 !important;
}
html body footer.footer-area a:hover {
    color: #ffffff !important;
    text-decoration: none;
}

/* ----- About column ----- */
footer.footer-area .about_us_widget,
footer.footer-area .about_us_widget.style-01 {
    background: transparent !important;
    padding: 0 !important;
}
footer.footer-area .about_us_widget .footer-logo {
    max-height: 56px;
    width: auto;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
    opacity: .92;
}
footer.footer-area .about_us_widget p {
    color: #b6c0cd !important;
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 6px;
}
footer.footer-area .about_us_widget p:has(+ p:empty),
footer.footer-area .about_us_widget p:empty { display: none; }

/* ----- Recent posts ----- */
footer.footer-area .recent_post_item {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
footer.footer-area .single-recent-post-item {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
footer.footer-area .single-recent-post-item .thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
}
footer.footer-area .single-recent-post-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
footer.footer-area .single-recent-post-item .content { flex: 1 1 auto; min-width: 0; }
footer.footer-area .single-recent-post-item .content .title {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}
footer.footer-area .single-recent-post-item .content .title a {
    color: #ffffff !important;
    text-decoration: none;
}
footer.footer-area .single-recent-post-item .content .title a:hover {
    color: #93c5fd !important;
}
footer.footer-area .single-recent-post-item .content .time {
    color: #8a93a3 !important;
    font-size: 12px;
}
footer.footer-area .single-recent-post-item .content .time i {
    color: #8a93a3 !important;
    margin-right: 4px;
}

/* ----- Useful links ----- */
footer.footer-area .widget_nav_menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
footer.footer-area .widget_nav_menu ul li { padding: 0 !important; }
footer.footer-area .widget_nav_menu ul li a {
    position: relative;
    padding: 4px 0 4px 16px !important;
    color: #c2cad5 !important;
    font-size: 14px;
    line-height: 1.4;
    transition: color .15s ease;
    display: inline-block;
    background: transparent !important;
    border: 0 !important;
}
footer.footer-area .widget_nav_menu ul li a::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35) !important;
    color: transparent !important;
    font-family: inherit !important;
    transition: background-color .15s ease, transform .15s ease;
}
footer.footer-area .widget_nav_menu ul li a:hover {
    color: #ffffff !important;
}
footer.footer-area .widget_nav_menu ul li a:hover::after {
    background: #93c5fd !important;
    transform: translateY(-50%) scale(1.2);
}

/* ----- Contact info ----- */
footer.footer-area .contact_info_list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
footer.footer-area .contact_info_list .single-info-item {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
footer.footer-area .contact_info_list .single-info-item .icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 14px;
}
footer.footer-area .contact_info_list .single-info-item .icon i {
    color: #ffffff !important;
    font-size: 14px;
    margin: 0 !important;
}
footer.footer-area .contact_info_list .single-info-item .details {
    color: #c2cad5 !important;
    font-size: 14px;
    line-height: 1.5;
    padding-top: 6px;
}

/* ----- Copyright row ----- */
html body footer.footer-area .copyright-area,
html body footer.footer-area .copyright-bg,
html body footer.footer-area .copyright-area.copyright-bg,
html body footer.footer-area.home-variant-21 .copyright-area,
html body footer.footer-area.home-variant-21 .copyright-bg,
html body footer.footer-area.home-21 .copyright-area,
html body footer.footer-area.home-21.footer-color-five .copyright-area.copyright-bg {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    padding: 18px 0 !important;
    border: 0 !important;
}
footer.footer-area .copyright-item,
footer.footer-area .copyright-area-inner {
    background: transparent !important;
    padding: 0 !important;
    color: #8a93a3 !important;
    font-size: 13px;
    text-align: center;
}
footer.footer-area .copyright-area-inner a { color: #c2cad5 !important; }
footer.footer-area .copyright-area-inner a:hover { color: #ffffff !important; }

/* ----- Subscribe form (if used) ----- */
footer.footer-area .subscribe-form .form-control {
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}
footer.footer-area .subscribe-form .form-control::placeholder {
    color: rgba(255, 255, 255, .55) !important;
}
footer.footer-area .subscribe-form .submit-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    border: 0 !important;
}
footer.footer-area .subscribe-form .submit-btn:hover {
    background: #1d4ed8 !important;
}

/* ----- Back to top button alignment with new dark surface ----- */
.back-to-top .back-top {
    background: #1f2937 !important;
    color: #ffffff !important;
}
.back-to-top .back-top:hover {
    background: #374151 !important;
}

/* ----- Responsive ----- */
@media (max-width: 767px) {
    footer.footer-area .footer-top {
        padding: 48px 0 24px !important;
    }
    footer.footer-area .widget-title,
    footer.footer-area .widget-title.style-01 {
        margin-top: 8px !important;
    }
}
/* Override ultra-specific rules from redesign.css home-21 footer */
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .widget-title,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget h4.widget-title,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .widget-title.style-01,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content .widget-title,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content h4.widget-title,
html body footer.footer-area.home-21 .footer-top .widget.footer-widget .widget-title,
html body footer.footer-area.home-21 .footer-top .widget.footer-widget h4.widget-title,
html body footer.footer-area.home-21 .footer-top .widget.footer-widget .widget-title.style-01,
html body footer.footer-area.home-21 .footer-top .sidebars-single-content .widget-title,
html body footer.footer-area.home-21 .footer-top .sidebars-single-content h4.widget-title {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* =====================================================================
   FORCE-OVERRIDE FOR DARK FOOTER
   Inline <style> tags from theme partials and home-21 variant ship even
   higher specificity rules. Use a long, ultra-specific selector list and
   include all text/icon/link descendants of the footer so dark navy and
   gold colors get neutralized on the dark surface.
   ===================================================================== */

html body footer[class*="footer-area"].footer-area,
html body footer[class*="footer-area"].footer-area p,
html body footer[class*="footer-area"].footer-area span,
html body footer[class*="footer-area"].footer-area li,
html body footer[class*="footer-area"].footer-area a,
html body footer[class*="footer-area"].footer-area div,
html body footer[class*="footer-area"].footer-area .footer-widget,
html body footer[class*="footer-area"].footer-area .footer-widget *,
html body footer[class*="footer-area"].footer-area .about_us_widget *,
html body footer[class*="footer-area"].footer-area .recent_post_item *,
html body footer[class*="footer-area"].footer-area .widget_nav_menu *,
html body footer[class*="footer-area"].footer-area .contact_info_list *,
html body footer[class*="footer-area"].footer-area .sidebars-single-content *,
html body footer[class*="footer-area"].footer-area .footer-top *,
html body footer[class*="footer-area"].footer-area.home-variant-21 .footer-top * {
    color: #c2cad5 !important;
}

/* Headings and primary links go fully white */
html body footer[class*="footer-area"].footer-area h1,
html body footer[class*="footer-area"].footer-area h2,
html body footer[class*="footer-area"].footer-area h3,
html body footer[class*="footer-area"].footer-area h4,
html body footer[class*="footer-area"].footer-area h5,
html body footer[class*="footer-area"].footer-area h6,
html body footer[class*="footer-area"].footer-area .recent_post_item .single-recent-post-item .content .title a,
html body footer[class*="footer-area"].footer-area .recent_post_item .single-recent-post-item .title,
html body footer[class*="footer-area"].footer-area.home-variant-21 .footer-top .recent_post_item .single-recent-post-item .content .title a {
    color: #ffffff !important;
}

/* Useful Links: bullet now is the only icon color we want; the link text
   itself stays neutral so the dark navy from the theme stops bleeding in. */
html body footer[class*="footer-area"].footer-area .widget_nav_menu ul li a,
html body footer[class*="footer-area"].footer-area.home-variant-21 .footer-top .widget_nav_menu ul li a {
    color: #c2cad5 !important;
}
html body footer[class*="footer-area"].footer-area .widget_nav_menu ul li a:hover {
    color: #ffffff !important;
}

/* Contact info icons: light, not gold */
html body footer[class*="footer-area"].footer-area .contact_info_list .single-info-item .icon,
html body footer[class*="footer-area"].footer-area .contact_info_list .single-info-item .icon i,
html body footer[class*="footer-area"].footer-area.home-variant-21 .footer-top .contact_info_list .single-info-item .icon,
html body footer[class*="footer-area"].footer-area.home-variant-21 .footer-top .contact_info_list .single-info-item .icon i {
    color: #ffffff !important;
}

/* Recent posts time icon */
html body footer[class*="footer-area"].footer-area .recent_post_item .time,
html body footer[class*="footer-area"].footer-area .recent_post_item .time i,
html body footer[class*="footer-area"].footer-area.home-variant-21 .footer-top .recent_post_item .time,
html body footer[class*="footer-area"].footer-area.home-variant-21 .footer-top .recent_post_item .time i {
    color: #8a93a3 !important;
}

/* About column logo: drop the inverted brightness fight; replace with raw
   white image rendering and preserve aspect. */
html body footer[class*="footer-area"].footer-area .about_us_widget .footer-logo,
html body footer[class*="footer-area"].footer-area.home-variant-21 .about_us_widget .footer-logo {
    filter: brightness(0) invert(1) !important;
    opacity: .92 !important;
    background: transparent !important;
    border-radius: 0 !important;
    max-height: 56px !important;
    width: auto !important;
}

/* =====================================================================
   FINAL ULTRA-SPECIFIC OVERRIDES
   redesign.css ships rules like
     .footer-area.home-variant-21 .footer-top .widget.footer-widget
       .about_us_widget p { color: #203047 !important; }
   which carry specificity 0,5,5 and beat any shorter selector even with
   !important. We mirror that depth and override directly.
   ===================================================================== */

html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget *,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget p,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget li,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget a,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget span,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .about_us_widget p,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .about_us_widget p *,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .recent_post_item *,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .widget_nav_menu *,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .widget_nav_menu ul li a,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content *,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content .contact_info_list .single-info-item,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content .contact_info_list .single-info-item .details {
    color: #c2cad5 !important;
}

/* Headings: solid white at the same depth */
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .widget-title,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget h4.widget-title,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .widget-title.style-01,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content .widget-title,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content h4.widget-title {
    color: #ffffff !important;
}

/* Recent post titles + their anchors keep full white */
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .recent_post_item .single-recent-post-item .content .title,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .recent_post_item .single-recent-post-item .content .title a {
    color: #ffffff !important;
}

/* Recent post timestamp icon + text */
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .recent_post_item .single-recent-post-item .content .time,
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .recent_post_item .single-recent-post-item .content .time i {
    color: #94a3b8 !important;
}

/* Contact info icons: solid white */
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content .contact_info_list .single-info-item .icon,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content .contact_info_list .single-info-item .icon i {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Useful links li::after pseudo from theme (gold check) is killed */
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .widget_nav_menu ul li a::after,
html body footer.footer-area .widget_nav_menu ul li a::after {
    content: '' !important;
    color: transparent !important;
    background: rgba(255, 255, 255, 0.35) !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 999px !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    font-family: inherit !important;
}
html body footer.footer-area.home-variant-21 .footer-top .widget.footer-widget .widget_nav_menu ul li a:hover::after,
html body footer.footer-area .widget_nav_menu ul li a:hover::after {
    background: #93c5fd !important;
}

/* =====================================================================
   Footer overlap fixes
   - Kill legacy gold chevron in Useful Links (::before)
   - Remove legacy left padding from contact details that made text appear
     to sit on top of the icon box
   ===================================================================== */

html body footer.footer-area .widget_nav_menu ul li a::before,
html body footer.footer-area.home-variant-21 .footer-top .widget_nav_menu ul li a::before {
    content: none !important;
    display: none !important;
}

html body footer.footer-area .contact_info_list .single-info-item .details,
html body footer.footer-area .sidebars-single-content .contact_info_list .single-info-item .details,
html body footer.footer-area.home-variant-21 .footer-top .sidebars-single-content .contact_info_list .single-info-item .details {
    padding-left: 0 !important;
    margin-left: 0 !important;
    flex: 1 1 auto !important;
}
