:root {
    --primary-dark: #133126;
    --primary-light: #1b4332;
    --islamic-green: #4ca64c;
    --islamic-hover: #2e6930;
    --gold-accent: #223b82;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f4f7f5;
    --white: #ffffff;
    --smooth-bounce: cubic-bezier(0.25, 1, 0.5, 1);
    --islamic-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%234ca64c' stroke-width='0.4' stroke-opacity='0.07'/%3E%3Ccircle cx='30' cy='30' r='5' fill='none' stroke='%23223b82' stroke-width='0.3' stroke-opacity='0.1'/%3E%3C/svg%3E");
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

html[dir="ltr"] .dropdown-lvl1 { right: auto; left: 0; }
html[dir="ltr"] .dropdown-lvl2, html[dir="ltr"] .dropdown-lvl3 { right: auto; left: 100%; border-right: none; border-left: 3px solid var(--gold-accent); }
html[dir="ltr"] .has-children > a::after { content: ' ▾'; margin-right: 0; margin-left: 5px; }
html[dir="ltr"] .dropdown-lvl1 .has-children > a::after, html[dir="ltr"] .dropdown-lvl2 .has-children > a::after { content: ' ▸'; }
html[dir="ltr"] .section-title::after { right: auto; left: 0; }
html[dir="ltr"] .footer-col h4::after { right: auto; left: 0; }
html[dir="ltr"] .social-sidebar { left: auto; right: 0; }
html[dir="ltr"] .social-tab { border-radius: 10px 0 0 10px; border-left: 1px solid rgba(255, 255, 255, 0.4); border-right: none; }
html[dir="ltr"] .social-tab:hover { padding-right: 0; padding-left: 18px; justify-content: flex-end; }
html[dir="ltr"] .social-tab span { margin-right: 0; margin-left: 12px; }

html[dir="ltr"] .breadcrumbs-container { text-align: left; direction: ltr; }
html[dir="ltr"] .footer-grid { text-align: left; direction: ltr; }
html[dir="ltr"] .footer-col h4::after { left: 0; right: auto; }
html[dir="ltr"] .footer-contact p { flex-direction: row; }
html[dir="ltr"] .footer-links li a::before { content: '• '; margin-right: 5px; margin-left: 0; }
html[dir="ltr"] .footer-links li a:hover { transform: translateX(5px); -webkit-transform: translateX(5px); -moz-transform: translateX(5px); -ms-transform: translateX(5px); }
html[dir="ltr"] .calc-grid-results { direction: ltr; }

html[dir="ltr"] .slide-content { text-align: left; direction: ltr; }
html[dir="ltr"] .carousel-btn.prev { right: auto; left: 20px; }
html[dir="ltr"] .carousel-btn.next { left: auto; right: 20px; }

/* التعديل رقم 4: تنسيق مودال "تواصل معنا مباشرة" الجديد */
#contactModal .modal-content {
    padding: 30px;
}
#contactModal .form-group {
    margin-bottom: 15px;
}
#contactModal .btn-submit {
    margin-top: 10px;
}

/* التعديل رقم 3: تنسيق أزرار "عرض المزيد" */
.show-more-wrapper {
    text-align: center;
    margin-top: 30px;
}
.btn-show-more {
    background-color: var(--gold-accent);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.btn-show-more:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; font-family: 'Cairo', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--white); background-image: var(--islamic-pattern); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

#preloader { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(255, 255, 255, 0.95); 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column; 
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center; 
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center; 
    -webkit-transition: opacity 0.5s ease, visibility 0.5s; 
    -o-transition: opacity 0.5s ease, visibility 0.5s; 
    -moz-transition: opacity 0.5s ease, visibility 0.5s; 
    transition: opacity 0.5s ease, visibility 0.5s; 
}
.preloader-content {
    text-align: center;
    -webkit-animation: pulseWrapper 2.5s ease-in-out infinite;
    -moz-animation: pulseWrapper 2.5s ease-in-out infinite;
    animation: pulseWrapper 2.5s ease-in-out infinite;
}
.preloader-logo {
    width: 180px; 
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
    margin-bottom: 15px;
    -webkit-filter: drop-shadow(0px 4px 15px rgba(0,0,0,0.08));
    filter: drop-shadow(0px 4px 15px rgba(0,0,0,0.08));
}

@-webkit-keyframes pulseWrapper {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); opacity: 0.9; }
    50% { -webkit-transform: scale(1.03); transform: scale(1.03); opacity: 1; }
}
@-moz-keyframes pulseWrapper {
    0%, 100% { -moz-transform: scale(1); transform: scale(1); opacity: 0.9; }
    50% { -moz-transform: scale(1.03); transform: scale(1.03); opacity: 1; }
}
@keyframes pulseWrapper {
    0%, 100% { -webkit-transform: scale(1); -moz-transform: scale(1); transform: scale(1); opacity: 0.9; }
    50% { -webkit-transform: scale(1.03); -moz-transform: scale(1.03); transform: scale(1.03); opacity: 1; }
}

#preloader p { color: var(--primary-dark); font-weight: 700; font-size: 20px; text-shadow: none; }
#preloader span { color: var(--gold-accent); display: block; font-size: 15px; margin-top: 5px; font-weight: 600; }

.hover-smooth { 
    -webkit-transition: all 0.4s var(--smooth-bounce); 
    -o-transition: all 0.4s var(--smooth-bounce); 
    -moz-transition: all 0.4s var(--smooth-bounce); 
    transition: all 0.4s var(--smooth-bounce); 
}
@media (min-width: 769px) {
    .hover-smooth:hover { 
        -webkit-transform: translateY(-7px); 
        -moz-transform: translateY(-7px); 
        -ms-transform: translateY(-7px); 
        transform: translateY(-7px); 
        -webkit-box-shadow: 0 15px 30px rgba(76, 166, 76, 0.15); 
        box-shadow: 0 15px 30px rgba(76, 166, 76, 0.15); 
    }
}

header { 
    background-color: rgba(255, 255, 255, 0.96); 
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px); 
    -webkit-box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: -webkit-sticky; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid var(--gold-accent); 
}
.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-pack: justify; 
    -ms-flex-pack: justify; 
    justify-content: space-between; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    height: 110px; 
}

.brand-wrapper { 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    -webkit-box-pack: center; 
    -ms-flex-pack: center; 
    justify-content: center; 
    text-decoration: none; 
    padding-top: 5px; 
}
.brand-logo-img { 
    width: 55px; 
    height: 55px; 
    -o-object-fit: contain; 
    object-fit: contain; 
    margin-bottom: 2px; 
    -webkit-transition: transform 0.3s; 
    -o-transition: transform 0.3s; 
    -moz-transition: transform 0.3s; 
    transition: transform 0.3s; 
} 
.brand-wrapper:hover .brand-logo-img { 
    -webkit-transform: scale(1.05); 
    -moz-transform: scale(1.05); 
    -ms-transform: scale(1.05); 
    transform: scale(1.05); 
}
.logo { font-size: 15px; font-weight: 700; color: var(--primary-dark); line-height: 1.2; text-align: center; }
.logo span { color: var(--islamic-green); }

.menu-toggle { 
    display: none; 
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
    background: none; 
    border: none; 
}
.menu-toggle span { width: 25px; height: 3px; background-color: var(--primary-dark); }

.nav-menu { 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    list-style: none; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    height: 100%; 
}
.nav-item { position: relative; }
.nav-item > a { 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    padding: 40px 14px; 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 600; 
    font-size: 15px; 
    -webkit-transition: color 0.3s; 
    -o-transition: color 0.3s; 
    -moz-transition: color 0.3s; 
    transition: color 0.3s; 
}
.nav-item > a:hover { color: var(--islamic-green); }

.dropdown-lvl1 { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    background: var(--white); 
    -webkit-box-shadow: 0 5px 25px rgba(0,0,0,0.1); 
    box-shadow: 0 5px 25px rgba(0,0,0,0.1); 
    list-style: none; 
    min-width: 250px; 
    display: none; 
    border-top: 3px solid var(--islamic-green); 
    z-index: 100; 
}
.dropdown-lvl1 li { position: relative; }
.dropdown-lvl1 a { 
    padding: 12px 20px; 
    font-size: 14px; 
    border-bottom: 1px solid #edf2f7; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-pack: justify; 
    -ms-flex-pack: justify; 
    justify-content: space-between; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    text-decoration: none; 
    color: var(--text-dark); 
    -webkit-transition: all 0.3s; 
    -o-transition: all 0.3s; 
    -moz-transition: all 0.3s; 
    transition: all 0.3s; 
}
.dropdown-lvl1 a:hover { background-color: var(--bg-light); color: var(--islamic-green); padding-right: 25px; }

.dropdown-lvl2, .dropdown-lvl3 { 
    position: absolute; 
    top: 0; 
    right: 100%; 
    background: var(--white); 
    -webkit-box-shadow: 0 5px 25px rgba(0,0,0,0.1); 
    box-shadow: 0 5px 25px rgba(0,0,0,0.1); 
    list-style: none; 
    min-width: 240px; 
    display: none; 
    border-right: 3px solid var(--gold-accent); 
    z-index: 101; 
}

.nav-item:hover > .dropdown-lvl1 { display: block; }
.dropdown-lvl1 li:hover > .dropdown-lvl2 { display: block; }
.dropdown-lvl2 li:hover > .dropdown-lvl3 { display: block; }

.has-children > a::after { content: ' ▾'; font-size: 11px; margin-right: 5px; opacity: 0.8; color: var(--gold-accent); -webkit-transition: transform 0.3s; -o-transition: transform 0.3s; -moz-transition: transform 0.3s; transition: transform 0.3s; }
.nav-item.has-children:hover > a::after { -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); color: var(--islamic-green); }
.dropdown-lvl1 .has-children > a::after, .dropdown-lvl2 .has-children > a::after { content: ' ◂'; font-size: 11px; color: var(--text-light); }
.dropdown-lvl1 .has-children:hover > a::after, .dropdown-lvl2 .has-children:hover > a::after { color: var(--islamic-green); }

.header-actions { 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    gap: 12px; 
}
.btn-cta { 
    background-color: var(--islamic-green); 
    color: var(--white); 
    padding: 10px 18px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    -webkit-transition: all 0.3s; 
    -o-transition: all 0.3s; 
    -moz-transition: all 0.3s; 
    transition: all 0.3s; 
    text-align: center; 
    font-size: 14px; 
}
.btn-cta:hover { 
    background-color: var(--islamic-hover); 
    -webkit-transform: translateY(-2px); 
    -moz-transform: translateY(-2px); 
    -ms-transform: translateY(-2px); 
    transform: translateY(-2px); 
}

.lang-select-wrapper { 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    background: var(--white); 
    border: 2px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 2px 8px;
    position: relative;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.lang-select-wrapper::before { content: '🌐'; font-size: 14px; margin-left: 4px; margin-right: 4px; pointer-events: none; }
.lang-select-wrapper:hover { border-color: var(--islamic-green); -webkit-box-shadow: 0 4px 8px rgba(76, 166, 76, 0.1); box-shadow: 0 4px 8px rgba(76, 166, 76, 0.1); }
.lang-select-wrapper:focus-within { border-color: var(--gold-accent); -webkit-box-shadow: 0 0 0 3px rgba(34, 59, 130, 0.15); box-shadow: 0 0 0 3px rgba(34, 59, 130, 0.15); }

.lang-switch-select { 
    background: transparent; 
    border: none; 
    color: var(--primary-dark); 
    font-weight: 700; 
    font-size: 13px; 
    cursor: pointer; 
    outline: none; 
    padding: 6px 20px 6px 10px; 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
html[dir="rtl"] .lang-switch-select { padding: 6px 10px 6px 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23223b82' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 2px center; background-size: 12px; }
html[dir="ltr"] .lang-switch-select { padding: 6px 20px 6px 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23223b82' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center; background-size: 12px; }

.breadcrumbs-bar { background: var(--bg-light); border-bottom: 1px solid #e2e8f0; padding: 8px 20px; }
.breadcrumbs-container { max-width: 1200px; margin: 0 auto; font-size: 13px; color: var(--text-light); text-align: right; }
.breadcrumbs-container a { color: var(--islamic-green); text-decoration: none; font-weight: 600; }
.breadcrumbs-container span { margin: 0 8px; color: var(--gold-accent); }

.hero-carousel { position: relative; height: 480px; background: #0c1f18; overflow: hidden; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; -webkit-transition: opacity 0.8s ease-in-out; -o-transition: opacity 0.8s ease-in-out; -moz-transition: opacity 0.8s ease-in-out; transition: opacity 0.8s ease-in-out; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
.carousel-slide.active { opacity: 1; }
.slide-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; opacity: 0.35; }
.slide-content { position: relative; z-index: 10; max-width: 800px; text-align: center; color: var(--white); padding: 0 20px; }
.slide-content h2 { font-size: 36px; margin-bottom: 15px; }
.slide-content h2 span { color: var(--islamic-green); } 
.slide-content p { font-size: 16px; margin-bottom: 25px; color: #e2e8f0; }

.carousel-btn { 
    position: absolute; 
    top: 50%; 
    -webkit-transform: translateY(-50%); 
    -moz-transform: translateY(-50%); 
    -ms-transform: translateY(-50%); 
    transform: translateY(-50%); 
    background: rgba(255,255,255,0.15); 
    color: white; 
    border: none; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 20; 
    font-size: 18px; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    -webkit-box-pack: center; 
    -ms-flex-pack: center; 
    justify-content: center; 
}
.carousel-btn:hover { background: var(--islamic-green); }
.prev { right: 20px; } .next { left: 20px; }

.calc-section { max-width: 1200px; margin: -30px auto 40px; padding: 0 20px; position: relative; z-index: 30; }
.calculator-card { background-color: var(--white); padding: 25px; border-radius: 16px; -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-bottom: 4px solid var(--gold-accent); }
.calc-grid { 
    display: -ms-grid; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 15px; 
    margin-top: 15px; 
}
.calc-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--primary-dark); }
.calc-group input, .calc-group select { width: 100%; padding: 11px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 14px; outline: none; background-color: #fff; color: var(--text-dark); }
.calc-group input:focus, .calc-group select:focus { border-color: var(--islamic-green); }

.calc-grid-results { 
    display: -ms-grid; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 15px; 
    margin-top: 20px; 
    border-top: 1px dashed #e2e8f0; 
    padding-top: 15px; 
}
.calc-result-box { background: var(--bg-light); padding: 12px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 14px; color: var(--primary-dark); border-right: 3px solid var(--islamic-green); }
html[dir="ltr"] .calc-result-box { border-right: none; border-left: 3px solid var(--islamic-green); }
.calc-result-box span { color: var(--islamic-green); font-size: 18px; display: block; margin-top: 4px; }

/* التعديل رقم 2: تنسيق شريط الملاحظات */
#productNoteBar {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #ffeeba;
    font-size: 14px;
    font-weight: 600;
    display: none; /* مخفي افتراضياً */
    text-align: center;
}

.section-wrapper { padding: 60px 20px; max-width: 1200px; margin: 0 auto; position: relative; }
.section-title { font-size: 24px; color: var(--primary-dark); margin-bottom: 30px; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 60px; height: 3px; background-color: var(--gold-accent); border-radius: 2px; }

.carousel-container { 
    position: relative; 
    width: 100%; 
    padding: 15px 0; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column; 
}

.track-viewport { 
    overflow-x: auto; 
    width: 100%; 
    border-radius: 14px; 
    scroll-behavior: smooth;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch; 
}

.track-viewport::-webkit-scrollbar {
    height: 8px;
}
.track-viewport::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.track-viewport::-webkit-scrollbar-thumb {
    background-color: var(--islamic-green);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.track-viewport::-webkit-scrollbar-thumb:hover {
    background-color: var(--islamic-hover);
}

.dynamic-track { 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    gap: 25px; 
    width: -webkit-max-content; 
    width: -moz-max-content; 
    width: max-content; 
}

.generic-card { 
    background: var(--white); 
    border: 1px solid #e2e8f0; 
    border-radius: 14px; 
    width: 380px; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column; 
    overflow: hidden; 
    -webkit-box-shadow: 0 4px 15px rgba(0,0,0,0.02); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-top: 4px solid var(--islamic-green); 
    position: relative;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.card-img-wrapper { width: 100%; height: 190px; overflow: hidden; position: relative; background: #eee; }
.card-img-wrapper img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; -webkit-transition: transform 0.5s ease; -o-transition: transform 0.5s ease; -moz-transition: transform 0.5s ease; transition: transform 0.5s ease; }
.generic-card:hover .card-img-wrapper img { -webkit-transform: scale(1.08); -moz-transform: scale(1.08); -ms-transform: scale(1.08); transform: scale(1.08); }

.card-badge { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: rgba(19, 49, 38, 0.85); 
    color: var(--white); 
    font-size: 11px; 
    font-weight: 600; 
    padding: 4px 10px; 
    border-radius: 20px; 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    /*border: 1px solid var(--gold-accent); */
}
.card-body { 
    padding: 22px; 
    -webkit-box-grow: 1; 
    -ms-flex-positive: 1; 
    flex-grow: 1; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column; 
    -webkit-box-pack: justify; 
    -ms-flex-pack: justify; 
    justify-content: space-between; 
}
.card-body h4 { font-size: 18px; color: var(--primary-dark); margin-bottom: 8px; font-weight: 700; }
.card-body p { 
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    font-size: 13.5px;
    color: var(--text-light);
    margin-bottom: 18px;
    text-align: justify;
    line-height: 1.5;     
    overflow: hidden;        
    text-overflow: ellipsis;  
}
#globalModal .modal-content {
    max-height: 85vh; 
    display: flex;
    flex-direction: column;
    overflow: scroll; 
}
#globalModal #mText {
    max-height: 400px; 
    white-space: pre-wrap; 
    word-break: break-word; 
    padding-right: 5px;
    display: contents;
}

.btn-secondary { background: var(--bg-light); color: var(--primary-dark); border: 1px solid #e2e8f0; padding: 10px 15px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; -webkit-transition: all 0.3s; -o-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; text-align: center; width: 100%; }
.btn-secondary:hover { background: var(--islamic-green); color: white; border-color: var(--islamic-green); }

.stat-card { 
    width: 380px; 
    text-align: center; 
    background: -webkit-linear-gradient(305deg, #ffffff, #f4f7f5); 
    background: -moz-linear-gradient(305deg, #ffffff, #f4f7f5); 
    background: -o-linear-gradient(305deg, #ffffff, #f4f7f5); 
    background: linear-gradient(145deg, #ffffff, #f4f7f5); 
    border: 1px solid #e2e8f0; 
    padding: 35px 20px; 
    border-radius: 14px; 
    border-bottom: 4px solid var(--gold-accent); 
    position: relative; 
    -ms-flex-negative: 0; 
    flex-shrink: 0; 
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--islamic-green); -webkit-transform: scaleX(0); -moz-transform: scaleX(0); -ms-transform: scaleX(0); transform: scaleX(0); -webkit-transition: -webkit-transform 0.4s; transition: -webkit-transform 0.4s; -o-transition: transform 0.4s; -moz-transition: transform 0.4s, -moz-transform 0.4s; transition: transform 0.4s; transition: transform 0.4s, -webkit-transform 0.4s, -moz-transform 0.4s; }
.stat-card:hover::before { -webkit-transform: scaleX(1); -moz-transform: scaleX(1); -ms-transform: scaleX(1); transform: scaleX(1); }
.stat-number { font-size: 36px; font-weight: 700; color: var(--islamic-green); text-shadow: 1px 1px 1px rgba(0,0,0,0.05); }

.social-sidebar { 
    position: fixed; 
    left: 0; 
    top: 35%; 
    z-index: 1000; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column; 
    gap: 8px; 
}

.social-tab { 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    -webkit-box-pack: center; 
    -ms-flex-pack: center; 
    justify-content: center; 
    width: 50px;
    height: 50px;
    background: rgba(34, 59, 130, 0.15); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    color: transparent; 
    text-decoration: none; 
    border-radius: 0 10px 10px 0; 
    font-size: 20px; 
    border: 1px solid rgba(34, 59, 130, 0.3);
    border-left: none;
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    -webkit-transition: all 0.3s var(--smooth-bounce);
    -o-transition: all 0.3s var(--smooth-bounce);
    -moz-transition: all 0.3s var(--smooth-bounce);
    transition: all 0.3s var(--smooth-bounce); 
}

.social-tab i { 
    /*opacity: 0;*/
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease; 
}

.social-tab:hover { 
    width: 155px; 
    background: rgba(34, 59, 130, 0.95); 
    color: var(--white);
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    padding-right: 18px;
}
.social-tab:hover i { 
    opacity: 1;
    color: var(--white) !important;
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1); 
}
.social-tab span { display: none; margin-right: 12px; white-space: nowrap; font-size: 13px; font-weight: 600; }
.social-tab:hover span { display: inline; }

.social-tab.wa i { color: #25D366; }
.social-tab.fb i { color: #1877F2; }
.social-tab.tw i { color: #1DA1F2; }

.contact-section { background: var(--bg-light); border-top: 1px solid #edf2f7; padding: 60px 20px; }
.contact-container { max-width: 600px; margin: 0 auto; background: var(--white); padding: 30px; border-radius: 12px; -webkit-box-shadow: 0 4px 20px rgba(0,0,0,0.03); box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e0; border-radius: 6px; outline: none; font-size: 14px; }
.btn-submit { background: var(--primary-dark); color: white; border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; width: 100%; font-weight: 600; -webkit-transition: background 0.3s; -o-transition: background 0.3s; -moz-transition: background 0.3s; transition: background 0.3s; }
.btn-submit:hover { background: var(--islamic-green); }

#backToTop { position: fixed; bottom: 25px; right: 25px; background: var(--islamic-green); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: none; z-index: 1000; -webkit-box-shadow: 0 4px 10px rgba(0,0,0,0.15); box-shadow: 0 4px 10px rgba(0,0,0,0.15); font-weight: 700; font-size: 16px; line-height: 40px; text-align: center; }
#backToTop:hover { background: var(--primary-dark); }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 2000; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; padding: 15px; }
.modal.active { display: -webkit-box; display: -ms-flexbox; display: flex; }
.modal-content { background-color: var(--white); padding: 25px; border-radius: 14px; max-width: 500px; width: 100%; position: relative; }

/* التعديل رقم 5: تغيير موضع الـ X في الـ modal بناءً على اللغة */
.close-modal { position: absolute; top: 15px; font-size: 22px; cursor: pointer; }
html[dir="rtl"] .close-modal { left: 15px; right: auto; } /* جهة اليسار في العربي */
html[dir="ltr"] .close-modal { right: 15px; left: auto; } /* جهة اليمين في الإنجليزي */

.professional-footer { background-color: var(--primary-dark); background-image: var(--islamic-pattern); color: #d1d5db; padding: 70px 20px 20px; border-top: 4px solid var(--gold-accent); font-size: 14px; }
.footer-grid { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: -ms-grid; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 40px; 
    text-align: right; 
    padding-bottom: 40px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
}
.footer-col h4 { color: var(--white); font-size: 17px; font-weight: 700; margin-bottom: 22px; position: relative; padding-bottom: 8px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 35px; height: 2px; background-color: var(--gold-accent); }
.footer-about p { line-height: 1.7; font-size: 13.5px; color: #cbd5e0; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links li a { color: #cbd5e0; text-decoration: none; -webkit-transition: all 0.3s ease; -o-transition: all 0.3s ease; -moz-transition: all 0.3s ease; transition: all 0.3s ease; display: inline-block; }
.footer-links li a:hover { color: var(--islamic-green); -webkit-transform: translateX(-5px); -moz-transform: translateX(-5px); -ms-transform: translateX(-5px); transform: translateX(-5px); }
.footer-links li a::before { content: '• '; color: var(--gold-accent); margin-left: 5px; }
.footer-contact p { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13.5px; }
.footer-socials { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 12px; margin-top: 15px; }
.footer-social-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; color: #cbd5e0; text-decoration: none; -webkit-transition: all 0.3s ease; -o-transition: all 0.3s ease; -moz-transition: all 0.3s ease; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 16px; }
.footer-social-btn:hover { background: var(--gold-accent); color: var(--white); border-color: var(--gold-accent); -webkit-transform: translateY(-3px); -moz-transform: translateY(-3px); -ms-transform: translateY(-3px); transform: translateY(-3px); -webkit-box-shadow: 0 5px 15px rgba(34, 59, 130, 0.3); box-shadow: 0 5px 15px rgba(34, 59, 130, 0.3); }
.footer-bottom { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding-top: 25px; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-pack: justify; 
    -ms-flex-pack: justify; 
    justify-content: space-between; 
    -webkit-box-align: center; 
    -ms-flex-align: center; 
    align-items: center; 
    -ms-flex-wrap: wrap; 
    flex-wrap: wrap; 
    gap: 15px; 
    font-size: 13px; 
    color: #a0aec0; 
}

@media (max-width: 768px) {
    .menu-toggle { display: -webkit-box; display: -ms-flexbox; display: flex; }
    .nav-container { height: 95px; }
    .brand-logo-img { width: 45px; height: 45px; }
    .nav-menu { position: absolute; top: 95px; right: -100%; width: 100%; background: var(--white); -webkit-box-direction: normal; -webkit-box-orient: vertical; -ms-flex-direction: column; flex-direction: column; padding: 20px; -webkit-transition: right 0.4s var(--smooth-bounce); -o-transition: right 0.4s var(--smooth-bounce); -moz-transition: right 0.4s var(--smooth-bounce); transition: right 0.4s var(--smooth-bounce); -webkit-box-shadow: 0 10px 15px rgba(0,0,0,0.05); box-shadow: 0 10px 15px rgba(0,0,0,0.05); height: auto; }
    .nav-menu.active { right: 0; }
    .nav-item { width: 100%; }
    .nav-item > a { padding: 15px 5px; border-bottom: 1px solid #edf2f7; }
    
    .dropdown-lvl1, .dropdown-lvl2, .dropdown-lvl3 { position: relative; top: 0; right: 0; width: 100%; -webkit-box-shadow: none; box-shadow: none; border-right: 2px solid var(--gold-accent); border-top: none; display: none; }
    .nav-item.active > .dropdown-lvl1, .dropdown-lvl1 li.active > .dropdown-lvl2, .dropdown-lvl2 li.active > .dropdown-lvl3 { display: block; }
    
    .header-actions { margin-top: 15px; width: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; gap: 10px; }
    .hero-carousel { height: 320px; }
    .slide-content h2 { font-size: 22px; }
    
    .generic-card, .stat-card { width: 290px; }
    .section-wrapper { padding: 40px 15px; }
    
    .footer-grid { text-align: center !important; }
    .footer-col h4::after { right: 50% !important; left: auto !important; -webkit-transform: translateX(50%); -moz-transform: translateX(50%); -ms-transform: translateX(50%); transform: translateX(50%); }
    .footer-bottom { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; text-align: center; }
    .footer-socials { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
   /* .social-sidebar { display: none; }*/
    .breadcrumbs-container { text-align: center !important; }

    html[dir="ltr"] .carousel-btn.prev { left: 15px; right: auto; }
    html[dir="ltr"] .carousel-btn.next { right: 15px; left: auto; }
}

