:root {
    --primary: #1E5B9A;
    --primary-dark: #123A63;
    --primary-soft: #EAF4FF;
    --sky: #5DB7E8;
    --sky-soft: #F3FAFF;
    --text-dark: #172033;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --border: #DCE8F5;
    --shadow: 0 14px 35px rgba(18, 58, 99, 0.12);
}

body {
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    background: linear-gradient(180deg, #F6FBFF 0%, #FFFFFF 45%, #F8FBFF 100%);
    color: var(--text-dark);
}

.top-hero {
    background:
        radial-gradient(circle at top right, rgba(93, 183, 232, 0.28), transparent 35%),
        linear-gradient(135deg, #123A63 0%, #1E5B9A 55%, #5DB7E8 100%);
    color: #fff;
    padding: 55px 0 45px;
    position: relative;
    overflow: hidden;
}

.top-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
}

.main-navbar {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(18, 58, 99, 0.08);
}

.main-navbar .nav-link {
    color: var(--primary-dark);
    font-weight: 800;
    padding: 18px 16px;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 10px;
}

.dropdown-item {
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 14px;
}

.dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.section-title {
    color: var(--primary-dark);
    font-weight: 900;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.pro-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: 0.25s ease;
}

.pro-card:hover {
    transform: translateY(-5px);
}

 .pro-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    background: #F3FAFF;
    padding: 6px;
}

.pro-card-body {
    padding: 22px;
}

.badge-soft {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: 1px solid var(--border);
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 50px;
}

.btn-main {
    background: linear-gradient(135deg, var(--primary), var(--sky));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 12px 28px rgba(30, 91, 154, 0.22);
}

.btn-main:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-main {
    color: var(--primary-dark);
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-main:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 35px 0;
    margin-top: 60px;
}
/* ===============================
   Mobile First Enhancements
   =============================== */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    padding-left: 16px;
    padding-right: 16px;
}

/* الهيدر على الموبايل */
@media (max-width: 768px) {

    .top-hero {
        padding: 24px 0 20px;
        text-align: center;
    }

    .site-brand {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .brand-logo {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 22px;
    }

    .brand-title {
        font-size: 19px !important;
        line-height: 1.6;
        max-width: 100%;
    }

    .brand-subtitle {
        font-size: 12.5px !important;
        line-height: 1.8;
        max-width: 310px;
        margin: 5px auto 0;
    }

    /* القائمة */
    .main-navbar {
        border-radius: 0 0 18px 18px;
    }

    .navbar {
        padding: 8px 0;
    }

    .navbar-brand {
        font-size: 15px;
        color: var(--primary-dark) !important;
    }

    .navbar-toggler {
        padding: 6px 9px;
        border-radius: 12px;
        background: var(--primary-soft);
    }

    .navbar-collapse {
        margin-top: 10px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 8px;
        box-shadow: 0 12px 30px rgba(18, 58, 99, 0.10);
    }

    .main-navbar .nav-link {
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 15px;
        margin-bottom: 3px;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border-radius: 14px;
        box-shadow: none;
        border: 1px solid var(--border);
        background: var(--sky-soft);
        margin: 4px 0 8px;
        padding: 6px;
    }

    .dropdown-item {
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    /* الهيرو الرئيسي في index */
    main section.py-5:first-child {
        padding-top: 28px !important;
        padding-bottom: 34px !important;
        text-align: center;
    }

    .display-5 {
        font-size: 26px !important;
        line-height: 1.65 !important;
    }

    .lead {
        font-size: 15.5px;
        line-height: 2 !important;
    }

    .badge-soft {
        font-size: 12.5px;
        padding: 7px 11px;
    }

    .d-flex.flex-wrap.gap-3 {
        justify-content: center;
    }

    .btn-main,
    .btn-outline-main {
        width: 100%;
        text-align: center;
        padding: 13px 18px;
        font-size: 15px;
        border-radius: 16px;
    }

    /* كارت الصورة الشخصية */
    .pro-card {
        border-radius: 18px;
    }

    .pro-card.p-4 {
        padding: 18px !important;
    }

  .pro-card img {
    height: 230px;
    object-fit: contain;
    background: #F3FAFF;
    padding: 6px;
}

    .pro-card-body {
        padding: 18px;
    }

    /* صورة/لوجو صاحب الموقع */
    .pro-card div[style*="height:360px"] {
        height: 250px !important;
    }

    .pro-card div[style*="font-size:70px"] {
        font-size: 48px !important;
    }

    /* العناوين */
    .section-title {
        font-size: 22px;
        line-height: 1.6;
        text-align: center;
    }

    .section-subtitle {
        font-size: 14.5px;
        text-align: center;
        line-height: 1.9;
        margin-bottom: 20px;
    }

    .d-flex.justify-content-between.align-items-end {
        justify-content: center !important;
        text-align: center;
    }

    /* كروت الخدمات */
    .col-md-3 .pro-card {
        min-height: auto;
    }

    .h2.fw-bold {
        font-size: 28px;
    }

    /* الأخبار والتحديثات */
    .border-bottom.py-3 {
        text-align: right;
    }

    .border-bottom.py-3 h6 {
        font-size: 15.5px;
        line-height: 1.8;
    }

    .border-bottom.py-3 p {
        font-size: 14px;
        line-height: 1.9;
    }

    /* الفوتر */
    .footer {
        text-align: center;
        padding: 28px 0;
        margin-top: 35px;
    }

    .footer h5 {
        font-size: 17px;
        line-height: 1.8;
    }

    .footer p {
        font-size: 13.5px;
        line-height: 1.9;
    }

    .footer .text-lg-end {
        text-align: center !important;
    }
}

/* موبايلات صغيرة جدًا */
@media (max-width: 420px) {

    .container {
        padding-left: 13px;
        padding-right: 13px;
    }

    .brand-title {
        font-size: 17px !important;
    }

    .brand-subtitle {
        font-size: 12px !important;
    }

    .display-5 {
        font-size: 23px !important;
    }

    .lead {
        font-size: 14.5px;
    }

    .btn-main,
    .btn-outline-main {
        font-size: 14px;
        padding: 12px 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .pro-card-body h5 {
        font-size: 17px;
        line-height: 1.7;
    }

    .pro-card-body p {
        font-size: 14px;
    }
}

/* تابلت */
@media (min-width: 769px) and (max-width: 991px) {

    .top-hero {
        text-align: center;
    }

    .site-brand {
        justify-content: center;
    }

    .display-5 {
        font-size: 34px;
    }

    .main-navbar .nav-link {
        padding: 13px 12px;
        font-size: 14px;
    }
}
/* ===============================
   Floating WhatsApp Button
   =============================== */

.floating-whatsapp {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 2000;
    background: linear-gradient(135deg, #1E5B9A, #5DB7E8);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    padding: 13px 18px;
    font-weight: 900;
    box-shadow: 0 16px 38px rgba(18, 58, 99, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.35);
}

.floating-whatsapp:hover {
    color: #fff;
    transform: translateY(-3px);
}

.floating-whatsapp .wa-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 76px;
    }

    .floating-whatsapp {
        left: 14px;
        right: 14px;
        bottom: 12px;
        justify-content: center;
        padding: 13px 15px;
        border-radius: 18px;
        font-size: 15px;
    }

    .floating-whatsapp .wa-icon {
        width: 28px;
        height: 28px;
    }
}
.category-pill {
    text-decoration: none;
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 16px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(18,58,99,.06);
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .category-pill {
        font-size: 13px;
        padding: 9px 12px;
    }
}