@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --primaryColor: #0284c7;
    --primaryDark: #0369a1;
    --primaryLight: #38bdf8;
    --accentColor: #f59e0b;
    --accentDark: #d97706;
    --darkBg: #0b1329;
    --cardBg: #ffffff;
    --textColor: #1e293b;
    --textMuted: #64748b;
    --borderColor: #e2e8f0;
    --cyanGlow: rgba(6, 182, 212, 0.2);
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background-color: #0b1329;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primaryColor);
    background-image: linear-gradient(180deg, #0284c7 0%, #06b6d4 100%);
    border-radius: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.services-title {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.services-title h2, .services-title h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
    color: #0f172a;
}

.services-title h2 span, .services-title h1 span {
    color: #0284c7;
}

.services-title h2::after, .services-title h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #06b6d4, #f59e0b);
    border-radius: 4px;
}

.services-title p {
    color: var(--textMuted);
    font-size: clamp(15px, 1.8vw, 18px);
    max-width: 650px;
    margin: 10px auto 0;
    line-height: 1.6;
}

.services-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 36px;
    max-width: 1160px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.services-col {
    display: flex;
}

.service-card {
    background: var(--cardBg);
    border-radius: 20px;
    border: 1px solid rgba(2, 132, 199, 0.15);
    box-shadow: 0 12px 35px rgba(11, 19, 41, 0.07);
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.16);
    border-color: rgba(2, 132, 199, 0.4);
}

.service-card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card-badge.takaful-badge {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.icon-box {
    width: 100%;
    height: 240px;
    background: #0f172a;
    overflow: hidden;
    position: relative;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.service-card:hover .icon-box img {
    transform: scale(1.06);
}

.card-data {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.service-card h3 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.service-provider-tag {
    font-size: 13px;
    color: #0284c7;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.price-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.price-label {
    font-size: 14px;
    color: var(--textMuted);
    font-weight: 600;
}

.price-val {
    font-size: 32px;
    font-weight: 900;
    color: #0284c7;
    line-height: 1;
}

.price-currency {
    font-size: 16px;
    font-weight: 700;
    color: #f59e0b;
    margin-right: 4px;
}

.service-features-list {
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #334155;
    font-weight: 600;
    line-height: 1.4;
}

.service-features-list li i {
    color: #0284c7;
    font-size: 16px;
    flex-shrink: 0;
}

.service-features-list li.highlight-feature i {
    color: #f59e0b;
}

.card-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.card-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.card-whatsapp-btn:hover {
    background: linear-gradient(135deg, #1fa855 0%, #075e54 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

.card-whatsapp-btn i {
    font-size: 20px;
}

.card-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-details-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-2px);
}

.card-details-btn i {
    transition: transform 0.3s ease;
}

.card-details-btn:hover i {
    transform: translateX(-4px);
}

.card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid #0284c7;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.card-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0b1329 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    transform: translateY(-2px);
}

.card-btn i {
    transition: transform 0.3s ease;
}

.card-btn:hover i {
    transform: translateX(-4px);
}

/* -------- Responsive -------- */
@media (max-width: 900px) {
    .services-section {
        grid-template-columns: 1fr;
        max-width: 580px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .icon-box {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .services-section {
        padding: 0 12px;
        gap: 24px;
    }

    .card-data {
        padding: 20px 16px;
    }

    .service-card h3 {
        font-size: 22px;
    }

    .price-val {
        font-size: 28px;
    }

    .icon-box {
        height: 190px;
    }
}