/* ==========================================================================
   Yellow & Orange Pharmaceutical — Modern footer (all pages)
   Restyles the existing footer markup; loaded after the theme CSS.
   ========================================================================== */
footer {
    position: relative;
    background: #1A1206 !important;
    color: rgba(255, 255, 255, .7);
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
}
footer::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, #E8620A, #F5C400);
}
footer::after {
    content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -260px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(245, 196, 0, .10), transparent); pointer-events: none;
}
footer .footer-top-wrap { position: relative; z-index: 1; padding: 72px 0 24px !important; background: transparent !important; }
footer .footer-widget { margin-bottom: 8px; }
footer .fw-title {
    margin-bottom: 20px !important; padding: 0 !important;
    font-family: 'Poppins', sans-serif; font-size: 16px !important; font-weight: 600 !important;
    color: #fff !important; letter-spacing: 0; text-transform: none;
}
footer .fw-title::before, footer .fw-title::after { display: none !important; }

/* Contact list */
footer .footer-contact-list { display: grid; gap: 18px; }
footer .footer-contact-item { display: flex; align-items: flex-start; gap: 14px; margin: 0 !important; }
footer .footer-contact-icon {
    flex: 0 0 42px; width: 42px !important; height: 42px !important; border-radius: 12px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .07) !important; color: #F5C400 !important; font-size: 15px;
    border: 1px solid rgba(255, 255, 255, .08); box-shadow: none !important;
}
footer .footer-contact-icon i { color: #F5C400 !important; }
footer .footer-contact-title { display: block; margin-bottom: 2px; font-size: 13px !important; font-weight: 600 !important; color: #fff !important; }
footer .footer-contact-text, footer .footer-contact-content { font-size: 14px !important; line-height: 1.6; color: rgba(255, 255, 255, .68) !important; }
footer .footer-contact-link { color: rgba(255, 255, 255, .86) !important; text-decoration: none; }
footer .footer-contact-link:hover { color: #F5C400 !important; }
footer .footer-contact-link[style*="color"] { color: #FFB866 !important; }

/* Link columns */
footer .fw-link ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer .fw-link ul li { margin: 0 !important; padding: 0 !important; }
footer .fw-link ul li a {
    position: relative; display: inline-block; padding: 0 !important;
    font-size: 14px !important; font-weight: 400; color: rgba(255, 255, 255, .7) !important;
    transition: color .2s ease, transform .2s ease;
}
footer .fw-link ul li a::before { display: none !important; }
footer .fw-link ul li a:hover { color: #fff !important; transform: translateX(3px); }

/* Newsletter + apps */
footer .f-newsletter p { font-size: 14px !important; line-height: 1.6; color: rgba(255, 255, 255, .68) !important; margin-bottom: 14px; }
footer .newsletter-form { display: flex; gap: 8px; }
footer .newsletter-form input {
    flex: 1; min-width: 0; height: 48px !important; padding: 0 18px !important;
    font-size: 14px; color: #fff !important;
    background: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 999px !important;
}
footer .newsletter-form input::placeholder { color: rgba(255, 255, 255, .45) !important; }
footer .newsletter-form input:focus { outline: 0; border-color: #E8620A !important; background: rgba(255, 255, 255, .09) !important; }
footer .newsletter-form button {
    position: static !important; flex: 0 0 48px; width: 48px !important; height: 48px !important;
    border: 0; border-radius: 50% !important; background: #E8620A !important; color: #fff !important;
    transition: background .2s ease, transform .2s ease;
}
footer .newsletter-form button:hover { background: #B84D08 !important; transform: translateY(-1px); }
footer .fw-download-btn { margin-top: 18px !important; gap: 10px !important; flex-wrap: wrap; }
footer .fw-download-btn img { height: 42px; width: auto; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); }

/* Bottom bar */
footer .copyright-area {
    position: relative; z-index: 1;
    background: rgba(0, 0, 0, .25) !important; border-top: 1px solid rgba(255, 255, 255, .08) !important;
    padding: 18px 0 !important;
}
footer .copyright-area p { color: rgba(255, 255, 255, .55) !important; font-size: 13px !important; }
footer .copyright-area strong { color: #fff !important; font-weight: 600; }
footer .copyright-area a { color: #F5C400 !important; }

/* Mobile: link columns side by side, tighter spacing */
@media (max-width: 767.98px) {
    footer .footer-top-wrap { padding: 52px 0 8px !important; }
    footer .footer-top-wrap .row > div { margin-bottom: 28px !important; }
    footer .footer-top-wrap .row > div:nth-child(2),
    footer .footer-top-wrap .row > div:nth-child(3) { flex: 0 0 50%; max-width: 50%; }
    footer .fw-title { margin-bottom: 14px !important; }
    footer .copyright-area .row > div { text-align: center !important; }
}

/* Tighten icon-to-text spacing in the contact list (theme adds an extra left margin) */
footer .footer-contact-content { margin: 0 !important; padding: 0 !important; min-width: 0; }
footer .footer-contact-item { gap: 14px !important; }
footer .footer-contact-icon { margin: 0 !important; }
footer .footer-contact-item > * + * { margin-left: 0 !important; }

/* ==========================================================================
   Registered-with logos — own white band directly above the footer (all pages)
   Small, greyscale; real colours on hover. Auto-slides, pauses on hover.
   ========================================================================== */
.ft-trust {
    position: relative; overflow: hidden; background: #fff;
    padding: 26px 0; border-top: 1px solid #F0E8DD;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ft-trust-track { display: flex; width: max-content; animation: ftTrust 40s linear infinite; }
.ft-trust:hover .ft-trust-track { animation-play-state: paused; }
.ft-trust-set { display: flex; align-items: center; gap: 56px; margin: 0; padding: 0 28px; list-style: none; }
.ft-trust-set li { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 110px; height: 48px; overflow: hidden; }
.ft-trust-set img {
    max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block;
    filter: grayscale(1); opacity: .55; mix-blend-mode: multiply;
    transition: filter .3s ease, opacity .3s ease;
}
.ft-trust-set li:hover img { filter: none; opacity: 1; }
/* some source images carry lots of white padding — zoom them to match */
.ft-trust-set img[src$="who.jfif"], .ft-trust-set img[src$="fda.jfif"] { transform: scale(1.9); }
.ft-trust-set img[src$="waho.jfif"] { transform: scale(1.25); }
.ft-trust-set img[src$="pcg.png"] { transform: scale(1.15); }
@keyframes ftTrust { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 767.98px) {
    .ft-trust { padding: 18px 0; }
    .ft-trust-set { gap: 36px; padding: 0 18px; }
    .ft-trust-set li { width: 84px; height: 38px; }
    .ft-trust-track { animation-duration: 30s; }
}
@media (hover: none) { .ft-trust-set img { opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
    .ft-trust { -webkit-mask-image: none; mask-image: none; }
    .ft-trust-track { animation: none; width: auto; justify-content: center; }
    .ft-trust-set { flex-wrap: wrap; justify-content: center; row-gap: 18px; }
    .ft-trust-set[aria-hidden="true"] { display: none; }
}
