/**
 * Alshifa Footer Widget Stylesheet
 * 
 * Clean Pure White Background Design for 100% Logo Visibility
 * 4-Column Responsive Layout, High-Contrast Typography, Medical Accreditations,
 * 24/7 International Helpline Cards, and Theme-Collision Resilient CSS.
 *
 * Version: 1.7.1
 */

/* ========================================================
   GLOBAL FOOTER WRAPPER & RESETS
   ======================================================== */
.alshifa-footer-section {
    position: relative;
    width: 100%;
    background-color: #FFFFFF !important; /* Strictly Pure White BG */
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box !important;
    color: #334155;
    overflow: hidden;
}

.alshifa-footer-section *,
.alshifa-footer-section *::before,
.alshifa-footer-section *::after {
    box-sizing: border-box !important;
}

/* Theme Reset for unstyled lists and links */
.alshifa-footer-section ul,
.alshifa-footer-section ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.alshifa-footer-section a {
    text-decoration: none !important;
    transition: all 0.22s ease-in-out;
}

/* Top Dual-Gradient Accent Line: Medical Light Blue to Bisleri Green */
.alshifa-footer-top-accent {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0E9FDF 0%, #00A887 100%);
    display: block;
}

.alshifa-footer-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 60px 24px 30px 24px;
    box-sizing: border-box;
}

/* ========================================================
   4-COLUMN MAIN FOOTER GRID
   ======================================================== */
.alshifa-footer-main-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr 1.15fr 1.35fr;
    gap: 40px;
    margin-bottom: 45px;
    align-items: start;
}

.alshifa-footer-col {
    display: flex;
    flex-direction: column;
}

/* Column Titles with Bisleri Green Underline */
.alshifa-footer-col-title {
    margin: 0 0 22px 0;
    font-size: 17px;
    font-weight: 800;
    color: #0A2540 !important;
    line-height: 1.3;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.2px;
}

.alshifa-footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background-color: #00A887;
}

/* ========================================================
   COLUMN 1: BRAND LOGO & BIO
   ======================================================== */
.alshifa-footer-logo-wrap {
    margin-bottom: 16px;
    max-width: 250px;
}

.alshifa-footer-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 65px;
    object-fit: contain;
    display: block;
}

/* Fallback Brand Logo SVG Representation */
.alshifa-footer-brand-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alshifa-brand-cross-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0E9FDF 0%, #00A887 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(14, 159, 223, 0.25);
}

.alshifa-brand-cross-icon svg {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
}

.alshifa-brand-text {
    display: flex;
    flex-direction: column;
}

.alshifa-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: #0A2540 !important;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.alshifa-brand-name .highlight {
    color: #00A887 !important;
}

.alshifa-brand-slogan {
    font-size: 11px;
    font-weight: 600;
    color: #64748B !important;
    letter-spacing: 0.2px;
}

/* Styled Arabic Tagline Pill */
.alshifa-footer-ar-tagline-wrap {
    margin-bottom: 14px;
}

.alshifa-footer-ar-tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #0B63C5;
    direction: rtl;
    line-height: 1.5;
    background: #EFF6FF;
    border-radius: 6px;
    padding: 4px 10px;
    border-left: 3px solid #0E9FDF;
}

.alshifa-footer-desc {
    margin: 0 0 20px 0;
    font-size: 13.5px;
    font-weight: 400;
    color: #475569 !important;
    line-height: 1.65;
}

/* Social Buttons */
.alshifa-footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F8FAFC;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 1px solid #E2E8F0;
    font-size: 15px;
}

.social-btn.whatsapp:hover {
    background: #25D366 !important;
    color: #FFFFFF !important;
    border-color: #25D366 !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.social-btn.facebook:hover {
    background: #1877F2 !important;
    color: #FFFFFF !important;
    border-color: #1877F2 !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    color: #FFFFFF !important;
    border-color: transparent !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(214, 36, 159, 0.35);
}

.social-btn.youtube:hover {
    background: #FF0000 !important;
    color: #FFFFFF !important;
    border-color: #FF0000 !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

.social-btn.linkedin:hover {
    background: #0A66C2 !important;
    color: #FFFFFF !important;
    border-color: #0A66C2 !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

.social-btn.twitter:hover {
    background: #0F172A !important;
    color: #FFFFFF !important;
    border-color: #0F172A !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}

/* ========================================================
   COLUMNS 2 & 3: LINK LISTS
   ======================================================== */
.alshifa-footer-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alshifa-footer-links-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.alshifa-footer-links-list li a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.22s ease;
    line-height: 1.4;
}

.alshifa-footer-links-list li a i {
    font-size: 11px;
    color: #00A887;
    transition: transform 0.22s ease, color 0.22s ease;
}

.alshifa-footer-links-list li a:hover {
    color: #0B63C5 !important;
    transform: translateX(5px);
}

.alshifa-footer-links-list li a:hover i {
    color: #0B63C5;
    transform: translateX(2px);
}

/* ========================================================
   COLUMN 4: 24/7 SUPPORT & CONTACT
   ======================================================== */
.alshifa-footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.alshifa-footer-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.alshifa-footer-contact-card:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

/* Specialized Card Hover Borders & Accents */
.alshifa-footer-contact-card.whatsapp:hover {
    border-color: #00A887 !important;
    box-shadow: 0 6px 16px rgba(0, 168, 135, 0.14);
}

.alshifa-footer-contact-card.phone:hover {
    border-color: #0B63C5 !important;
    box-shadow: 0 6px 16px rgba(11, 99, 197, 0.14);
}

.alshifa-footer-contact-card.email:hover {
    border-color: #0E9FDF !important;
    box-shadow: 0 6px 16px rgba(14, 159, 223, 0.14);
}

.alshifa-footer-contact-card.address:hover {
    border-color: #94A3B8 !important;
}

.alshifa-footer-contact-card .contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.alshifa-footer-contact-card.whatsapp .contact-icon {
    background: #D1FAE5;
    color: #00A887;
}

.alshifa-footer-contact-card.phone .contact-icon {
    background: #EFF6FF;
    color: #0B63C5;
}

.alshifa-footer-contact-card.email .contact-icon {
    background: #E0F2FE;
    color: #0E9FDF;
}

.alshifa-footer-contact-card.address .contact-icon {
    background: #F1F5F9;
    color: #475569;
}

.alshifa-footer-contact-card .contact-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.alshifa-footer-contact-card .contact-text .label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748B !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.alshifa-footer-contact-card .contact-text .val {
    font-size: 13.5px;
    font-weight: 700;
    color: #0A2540 !important;
    line-height: 1.25;
    transition: color 0.2s ease;
}

/* Guard text colors on card hover */
.alshifa-footer-contact-card:hover .contact-text .val {
    color: #0A2540 !important;
}

/* 24/7 Live Support Pill with Animated Pulse */
.alshifa-footer-support-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ECFDF5;
    color: #065F46 !important;
    border: 1px solid #A7F3D0;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.support-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00A887;
    animation: alshifaPulseGreen 1.8s infinite;
}

@keyframes alshifaPulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 168, 135, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(0, 168, 135, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 135, 0);
    }
}

/* ========================================================
   MEDICAL DISCLAIMER BOX
   ======================================================== */
.alshifa-footer-disclaimer {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.alshifa-footer-disclaimer .disclaimer-icon {
    font-size: 18px;
    color: #00A887;
    margin-top: 2px;
    flex-shrink: 0;
}

.alshifa-footer-disclaimer p {
    margin: 0;
    font-size: 12px;
    color: #64748B !important;
    line-height: 1.6;
}

/* ========================================================
   BOTTOM BAR: COPYRIGHT & LEGAL LINKS
   ======================================================== */
.alshifa-footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid #E2E8F0;
    font-size: 13px;
    color: #64748B !important;
    flex-wrap: wrap;
    gap: 14px;
}

.alshifa-footer-copy {
    font-weight: 500;
    color: #64748B !important;
}

.alshifa-footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.alshifa-footer-legal-links a {
    color: #64748B !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.alshifa-footer-legal-links a:hover {
    color: #0B63C5 !important;
}

.alshifa-footer-legal-links .sep {
    color: #CBD5E1;
}

/* ========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ======================================================== */
@media (max-width: 1024px) {
    .alshifa-footer-container {
        padding: 50px 20px 25px 20px;
    }

    .alshifa-footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 28px;
    }
}

@media (max-width: 767px) {
    .alshifa-footer-container {
        padding: 36px 16px 24px 16px;
    }

    .alshifa-footer-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .alshifa-footer-logo-wrap {
        max-width: 220px;
    }

    .alshifa-footer-disclaimer {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 8px;
        padding: 14px 16px;
    }

    .alshifa-footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        justify-content: center;
    }

    .alshifa-footer-copy {
        width: 100%;
        text-align: center;
    }

    .alshifa-footer-legal-links {
        justify-content: center;
        width: 100%;
    }
}
