/**
 * Alshifa Services Widget Stylesheet
 * 
 * Replicates and elevates the MedTripz Specialized Treatments UI
 * Features rich multi-tone medical vectors, zero text truncation,
 * clean bilingual hierarchy, and seamless responsiveness.
 */

.alshifa-services-section {
    position: relative;
    width: 100%;
    padding: 50px 0 65px 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #FFFFFF;
}

.alshifa-services-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ========================================================
   1. BIG BLUE ROUNDED CONTAINER (MEDTRIPZ SIGNATURE BOX)
   ======================================================== */
.alshifa-services-card-wrap {
    position: relative;
    background: linear-gradient(145deg, #0B63C5 0%, #004F9E 100%);
    border-radius: 28px;
    padding: 55px 40px 48px 40px;
    box-shadow: 0 20px 45px rgba(11, 99, 197, 0.22);
    box-sizing: border-box;
    overflow: hidden;
}

/* Decorative subtle background overlay circles */
.alshifa-services-card-wrap::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.alshifa-services-card-wrap::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 159, 223, 0.18) 0%, rgba(14, 159, 223, 0) 70%);
    pointer-events: none;
}

/* ========================================================
   2. HEADER & TITLES
   ======================================================== */
.alshifa-services-header {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto 36px auto;
    text-align: center;
}

.alshifa-services-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.alshifa-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #00A887;
    box-shadow: 0 0 0 0 rgba(0, 168, 135, 0.8);
    animation: alshifaPulseGreen 1.8s infinite;
    flex-shrink: 0;
}

@keyframes alshifaPulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 168, 135, 0.8);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(0, 168, 135, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 168, 135, 0);
    }
}

.alshifa-services-title {
    margin: 0 0 6px 0;
    font-size: 34px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.alshifa-services-title-ar {
    margin: 0 0 10px 0;
    font-size: 19px;
    font-weight: 700;
    color: #BAE6FD; /* Soft Cyan */
    direction: rtl;
    line-height: 1.35;
}

.alshifa-services-subtitle {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    opacity: 0.95;
    line-height: 1.35;
}

.alshifa-services-desc {
    margin: 0;
    font-size: 14.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

/* ========================================================
   3. TREATMENT CARDS GRID (NO TRUNCATION, BEAUTIFUL CARDS)
   ======================================================== */
.alshifa-services-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.alshifa-service-item {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 14px 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
}

.alshifa-service-item:hover {
    transform: translateY(-4px);
    border-color: #0E9FDF;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(14, 159, 223, 0.25);
}

/* Left: Multi-Tone Medical Icon Box */
.alshifa-service-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 14px;
    box-sizing: border-box;
    padding: 8px;
    flex-shrink: 0;
    transition: transform 0.28s ease;
}

.alshifa-service-item:hover .alshifa-service-icon-box {
    transform: scale(1.08);
}

.alshifa-service-custom-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.alshifa-service-vector-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alshifa-service-vector-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Center: Text Box (Zero Truncation, Clean Stacked Flow) */
.alshifa-service-text-box {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alshifa-service-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alshifa-service-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    letter-spacing: -0.2px;
    white-space: normal; /* No truncation! */
    word-break: break-word;
    transition: color 0.2s ease;
}

.alshifa-service-item:hover .alshifa-service-name {
    color: #0B63C5;
}

.alshifa-service-arabic-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #0284C7;
    background: #EFF6FF;
    border-radius: 6px;
    padding: 1px 7px;
    margin-top: 2px;
    direction: rtl;
    line-height: 1.3;
    width: fit-content;
}

.alshifa-service-desc-line {
    margin: 4px 0 0 0;
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.3;
    white-space: normal; /* No truncation! */
}

/* Right: Subtle Action Arrow Pill */
.alshifa-service-action-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #94A3B8;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.alshifa-service-item:hover .alshifa-service-action-pill {
    background: #00A887;
    color: #FFFFFF;
    transform: translateX(3px);
}

.alshifa-service-action-pill svg {
    width: 13px;
    height: 13px;
}

/* ========================================================
   4. BOTTOM ACTION BUTTONS
   ======================================================== */
.alshifa-services-bottom-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.alshifa-services-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00A887;
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(0, 168, 135, 0.35);
    transition: all 0.25s ease;
}

.alshifa-services-btn-whatsapp i {
    font-size: 19px;
}

.alshifa-services-btn-whatsapp:hover {
    background: #008f73;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 168, 135, 0.45);
}

.alshifa-services-btn-viewall {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #FFFFFF;
    color: #0B63C5 !important;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.alshifa-services-btn-viewall:hover {
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.alshifa-services-btn-viewall i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.alshifa-services-btn-viewall:hover i {
    transform: translateX(4px);
}

/* Assurance Footer Note */
.alshifa-services-assurance-box {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.alshifa-assurance-en {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    font-weight: 500;
}

.alshifa-assurance-ar {
    margin: 0;
    font-size: 13.5px;
    color: #BAE6FD;
    direction: rtl;
    line-height: 1.5;
    font-weight: 500;
}

/* ========================================================
   5. RESPONSIVE DESIGN (DESKTOP, TABLET & MOBILE)
   ======================================================== */
/* Laptops & Standard Desktop (1024px - 1280px) -> 3 Columns so cards are wide and spacious */
@media (max-width: 1280px) and (min-width: 992px) {
    .alshifa-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Tablets (768px - 991px) -> 2 Columns */
@media (max-width: 991px) {
    .alshifa-services-card-wrap {
        padding: 42px 26px 36px 26px;
        border-radius: 22px;
    }

    .alshifa-services-title {
        font-size: 28px;
    }

    .alshifa-services-title-ar {
        font-size: 17px;
    }

    .alshifa-services-subtitle {
        font-size: 16px;
    }

    .alshifa-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Small Tablets / Large Phones (600px - 767px) -> 2 Columns with tighter gaps */
@media (max-width: 767px) and (min-width: 601px) {
    .alshifa-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .alshifa-service-icon-box {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }
}

/* Mobile Phones (up to 600px) -> 1 Column */
@media (max-width: 600px) {
    .alshifa-services-section {
        padding: 30px 0 40px 0;
    }

    .alshifa-services-container {
        padding: 0 12px;
    }

    .alshifa-services-card-wrap {
        padding: 28px 14px 24px 14px;
        border-radius: 18px;
    }

    .alshifa-services-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .alshifa-services-title {
        font-size: 22px;
        line-height: 1.25;
    }

    .alshifa-services-title-ar {
        font-size: 15px;
    }

    .alshifa-services-subtitle {
        font-size: 14.5px;
    }

    .alshifa-services-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .alshifa-services-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .alshifa-service-item {
        padding: 12px;
    }

    .alshifa-service-icon-box {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .alshifa-service-vector-icon {
        width: 36px;
        height: 36px;
    }

    .alshifa-service-name {
        font-size: 14.5px;
    }

    .alshifa-service-arabic-tag {
        font-size: 11px;
    }

    .alshifa-services-bottom-row {
        flex-direction: column;
        gap: 10px;
    }

    .alshifa-services-btn-whatsapp,
    .alshifa-services-btn-viewall {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        box-sizing: border-box;
    }

    .alshifa-assurance-en {
        font-size: 12.5px;
    }

    .alshifa-assurance-ar {
        font-size: 12px;
    }
}
