

body {
    font-family: var(--font-family-base);
    color: var(--default-color);
    background-color: var(--surface-color);
}



/* ====== HEADER STYLES ====== */

/* ✅ Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.site-logo img {
    max-height: 40px;
}

/* ✅ Main Navigation */
.nav.nav-pills {
    list-style: none; /* ❗ يخفي النقاط */
    margin: 0;
     position: relative;
    width: fit-content; 
    display: flex;
    align-items: center;
    gap: 1rem;
}


.nav.nav-pills > li {
    list-style: none;
}

.nav.nav-pills > li > a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav.nav-pills > li > a:hover,
.nav.nav-pills > li.current-menu-item > a {
    background-color: #007bff;
    color: white;
}

/* ✅ Header Actions (buttons + mobile) */
.header-actions .btn {
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

/* ✅ Mobile Menu */
#mobile-menu {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

#mobile-menu .nav.flex-column > li > a {
    color: #333;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}

#mobile-menu .nav.flex-column > li > a:hover {
    color: #007bff;
}

/* ✅ Hero Section (gap fix) */
.hero-caption-one .d-flex {
    gap: 15px;
    flex-wrap: wrap;
}

/* ====== MEGA MENU STYLES ====== */

/* ✅ Mega Submenu Container */
.mega-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* ✅ تأخذ عرض .nav.nav-pills فقط */
    max-width: none;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: none;
    z-index: 1000;
    border-radius: 0;
    box-sizing: border-box;
}

.submenu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
     max-height: 200px;
    margin-top: 15px;
    overflow-y: auto;
}

.submenu-link-item {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.submenu-link-item:hover {
    background-color: #f0f4ff;
    color: #007bff;
}

/* ✅ Show Mega Menu on Hover */
.menu-item:hover > .mega-submenu {
    display: block;
    pointer-events: auto; /* تمكين التفاعل عند الظهور */
    opacity: 1;
    visibility: visible;
}

/* ✅ Grid of submenu items */
.submenu-items-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-header .container {
    position: relative; /* ❗ مرجع للمكان */
}

.container {
  max-width: 1345px;  
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}


.mega-submenu {
    left: auto;
    right: 0; /* ❗ يجعل القائمة الفرعية بمحاذاة اليمين */
    min-width: 300px;
}


/* ✅ ضبط شبكة الميجا منيو */
.mega-submenu-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* ✅ الجزء الأيسر: العنوان + الوصف + الروابط */
.submenu-content-left {
    flex: 1;
    min-width: 250px;
}

/* ✅ الجزء الأيمن: الصورة */
.submenu-content-right {
    width: 180px;  /* حجم الصورة */
    flex-shrink: 0;
}

.submenu-content-right img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}


@media (max-width: 991px) {
    .site-header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 10px;
    }

    .site-logo {
        order: 1;
        text-align: center;
        margin-bottom: 10px;
    }

    .header-actions {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }

    nav.d-none.d-lg-block {
        display: none !important;
    }
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    z-index: 2000;
    background-color: white;
    padding: 30px 20px;
    display: none;
}

#mobile-menu .nav li a {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

#mobile-menu .nav {
    padding-top: 20px;
}


/* ====== SUBMENU ITEM STYLES ====== */

/* ✅ Submenu Item */
.submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

/* ✅ Submenu Item Text Content (left) */
.submenu-item-content {
    flex: 1;
}

/* ✅ Submenu Item Title */
.submenu-item-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

/* ✅ Submenu Item Description */
.submenu-item-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ✅ Submenu Item Image (right) */
.submenu-item-image {
    flex-shrink: 0;
    width: 160px; /* بدل 80px */
    height: auto;
}

.submenu-item-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

/* ✅ Hover effect on submenu item */
.submenu-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submenu-item:hover h4 {
    color: #007bff;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 991px) {
    .mega-submenu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        padding: 10px 0;
    }

    .submenu-items-grid {
        flex-direction: column;
    }

    .submenu-item {
        flex-direction: column;
        text-align: center;
    }

    .submenu-item-image {
        width: 100%;
        margin-top: 10px;
    }

    .submenu-item-image img {
        width: 100%;
    }
}





/* ====== CONTAINER GLOBAL ====== */
.site-container {
  max-width: 1345px;
  margin: 0 auto;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}





/* ===== TYPOGRAPHY BASE ===== */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--default-color, #212529);
    font-size: 1rem; /* 16px */
    line-height: 1.6;
    padding-top: 10px; 
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--heading-color, #2d465e);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* ===== HEADINGS ===== */
h1 { font-size: 2.5rem; } /* 40px */
h2 { font-size: 2rem; }   /* 32px */
h3 { font-size: 1.75rem; } /* 28px */
h4 { font-size: 1.5rem; }  /* 24px */
h5 { font-size: 1.25rem; } /* 20px */
h6 { font-size: 1rem; }    /* 16px */

/* ===== Paragraphs ===== */


/* ===== Small Text ===== */
small {
    font-size: 0.875rem; /* 14px */
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }   /* 32px */
    h2 { font-size: 1.75rem; } /* 28px */
    h3 { font-size: 1.5rem; }  /* 24px */
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; } /* 28px */
    h2 { font-size: 1.5rem; }  /* 24px */
    h3 { font-size: 1.25rem; } /* 20px */
}

@media (max-width: 576px) {
    h1 { font-size: 1.5rem; }  /* 24px */
    h2 { font-size: 1.25rem; } /* 20px */
    h3 { font-size: 1.125rem; } /* 18px */
}


/* ✅ عناوين واضحة */
h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* ✅ النصوص أسفل العناوين */
p {
    margin-bottom: 30px;
}

