/* ==========================================================================
   Unified Luxury Stylesheet - Najm Al-Imtethal Law Firm (شركة نجم الامتثال)
   Author: Professional Overhaul
   Description: Clean, high-end, responsive CSS combining frontend and backend.
   ========================================================================== */

/* --- 1. GLOBAL VARIABLES & BRAND IDENTITY --- */
:root {
    --bg-dark-primary: #050911;      /* Deep Luxury Blue/Black */
    --bg-dark-secondary: #0c1322;    /* Navy Dark Velvet */
    --bg-dark-surface: #121b2d;      /* Elements Surface */
    --bg-admin-card: #1a1a1a;        /* Dashboard Table/Card Background */
    --accent-gold: #c5a059;          /* Classic Regal Gold */
    --accent-gold-hover: #e0bb73;    /* Bright Gold for Hover */
    --text-light: #f4f6f9;           
    --text-muted: #8fa0b5;           
    --border-color: rgba(197, 160, 89, 0.15);
    --border-gold-solid: #d4af37;
    --danger-red: #e74c3c;
    --danger-red-hover: #c0392b;
    --font-heading: 'Amiri', serif;
    --font-body: 'Cairo', sans-serif;
    --hero-bg-image: url('download.jpg'); 
}

/* --- 2. GLOBAL RESETS & BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- 3. ANIMATIONS & REVEAL EFFECT --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 4. FRONTEND HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(5, 9, 17, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: var(--bg-dark-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: var(--accent-gold);
    font-size: 24px;
    border: 1px solid var(--accent-gold);
    padding: 8px;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-btn {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark-primary);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
}

/* --- 5. HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: linear-gradient(180deg, rgba(5,9,17,0.6) 0%, rgba(5,9,17,0.95) 100%), 
                var(--hero-bg-image) no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 80% 40%, rgba(197, 160, 89, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    max-width: 750px;
}

.hero-subtitle {
    color: var(--accent-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 750px; /* عرض مناسب عشان الكلام ميفردش أوي */
    text-align: justify; /* ده السحر اللي بيساوي السطور من الجنبين */
    text-justify: inter-word; /* بيوزع المسافات بين الكلمات بشكل مريح للعين */
    line-height: 1.9; /* تكبير المسافة بين السطور سِنة عشان القراءة تكون مريحة ومطابقة للصورة */
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark-primary);
    padding: 15px 35px;
    font-weight: 700;
    border-radius: 3px;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2);
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    padding: 15px 35px;
    font-weight: 700;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background-color: rgba(197, 160, 89, 0.05);
}

/* --- 6. SECTIONS LAYOUT & CONTENT --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    text-align: center;
}

.section-tag {
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--text-light);
}

.split-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-text h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.split-text p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 25px;
}

.split-image {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 15px;
    background-color: var(--bg-dark-secondary);
}

.split-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Practice Specialities Grid */
.practice-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.practice-card {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 4px;
    transition: all 0.4s ease;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border-color: rgba(197, 160, 89, 0.4);
}

.card-icon {
    font-size: 36px;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify; /* عشان نساوي السطور من اليمين والشمال */
    text-justify: inter-word; /* بيظبط المسافات بين الكلمات بشياكة */
    line-height: 1.8; /* براح بين السطور عشان القراءة تكون مريحة */
}

/* Team Section */
.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.team-card {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-card:last-child {
    grid-column: span 3;
    display: flex;
    text-align: right;
    padding: 30px !important;
}

.team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    margin: 0 auto 20px auto;
    background-color: var(--bg-dark-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent-gold);
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.team-card p {
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Contact Section & Form Inputs */
.contact-section {
    background-color: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    /* قللنا نسبة الفورم شوية عشان يلاقي مساحة في الشاشات المتوسطة */
    grid-template-columns: 1fr 1.2fr !important; 
    gap: 40px !important; /* تقليل المسافة بين الكلام والفورم */
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.contact-info-side h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.contact-info-side p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark-primary);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 4px;
}

.contact-text h5 {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 0;
    font-weight: 600;
}

/* Forms (Shared styling for main contact form & login page) */
/* --- تعديل البوكس الأسود للفورم --- */
.form-wrapper {
    background-color: #000000 !important;
    padding: 35px !important; /* تقليل المساحة الداخلية عشان البوكس ميفردش لبره */
    border: 1px solid var(--accent-gold) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6) !important;
    width: 100% !important;
    max-width: 100% !important; /* دي السطر السحري اللي هيمنعه يخرج بره الشاشة أبدًا */
    box-sizing: border-box !important;
    overflow: hidden !important; /* لو في أي عنصر جواه كبر، ميطلعهوش لبره */
}

/* تنسيق القائمة Choices لضمان المسافة */
.choices__inner {
    padding-left: 70px !important;
    padding-right: 20px !important;
    min-height: 60px !important;
    background-color: #0c0d10 !important;
    border: 1px solid #c5a059 !important;
}

/* ضمان ظهور السهم والنص بدون تداخل */
.choices[data-type*="select-one"] .choices__inner {
    padding-bottom: 0px !important;
}


.form-group {
    margin-bottom: 20px;
}

/* تعديل التخطيط ليكون العمود الثاني أعرض من الأول */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* خانتين بجانب بعض */
    gap: 20px;
    width: 100%; /* نضمن إن الصف واخد العرض كامل */
}

.form-control, 
.login-form input[type="text"], 
.login-form input[type="password"] {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 15px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 14px;
    border-radius: 3px;
    transition: all 0.3s;
}

.form-control:focus,
.login-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: rgba(197, 160, 89, 0.05);
}

textarea.form-control {
    height: 120px;
    resize: none;
}

/* Dropdown/Select Premium Menu Styling */
select.form-control {
    background-color: #0c0d10 !important;
    color: #ffffff !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.form-control option {
    background-color: #0c0d10;
    color: #ffffff;
    padding: 12px;
}

/* --- 7. BACKEND / SECURITY PAGES STYLING --- */

/* Premium Luxury Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-dark-primary);
    padding: 20px;
}

.login-form {
    background: var(--bg-dark-secondary);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    color: #fff;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.login-form h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.login-form input {
    margin-bottom: 20px;
}

.login-form button {
    width: 100%;
    background-color: var(--accent-gold);
    color: var(--bg-dark-primary);
    border: none;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-form button:hover {
    background-color: var(--accent-gold-hover);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

/* Dashboard Styles (Table of Messages) */
.admin-body {
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
    font-family: var(--font-body);
    padding: 30px;
}

.admin-title-area {
    margin-bottom: 30px;
}

.admin-body h1 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 36px;
    margin-bottom: 10px;
}

/* Luxury Dashboard Table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background-color: var(--bg-admin-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid #333;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    text-align: right;
}

.admin-table th {
    background-color: var(--border-gold-solid);
    color: #000000;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.admin-table td {
    border-bottom: 1px solid #292929;
    font-size: 14px;
    color: #e2e8f0;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:nth-child(even) {
    background-color: #222222;
}

.admin-table tr:hover {
    background-color: #2a2c33;
}

/* Interactive Utility Buttons in Dashboard */
.logout-btn {
    color: var(--border-gold-solid);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 15px;
}

.logout-btn:hover {
    color: var(--accent-gold-hover);
    text-shadow: 0 0 8px rgba(212,175,55,0.3);
}

.delete-btn {
    background-color: var(--danger-red);
    color: white !important;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.delete-btn:hover {
    background-color: var(--danger-red-hover);
    box-shadow: 0 3px 10px rgba(231,76,60,0.3);
}

/* --- 8. FOOTER & SOCIAL ICONS --- */
footer {
    background-color: #03060b;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 24px !important;
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--border-gold-solid);
    transform: scale(1.2);
}

/* --- 9. RESPONSIVE BREAKPOINTS (MEDIA QUERIES) --- */
@media (max-width: 992px) {
    .split-container, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid, .practice-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0; right: -100%; height: 100vh; width: 280px;
        background-color: var(--bg-dark-secondary);
        flex-direction: column; align-items: flex-start;
        padding: 100px 40px; transition: right 0.4s ease;
        border-left: 1px solid var(--border-color);
    }
    .nav-menu.active { right: 0; }
    .menu-toggle { display: flex; }
    .hero-title { font-size: 38px; }
    .features-grid, .practice-grid, .team-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; gap: 20px; }
}
/* --- نافذة تأكيد الحذف الفخمة (Custom Modal) --- */
.custom-modal {
    display: none; /* مخفية في البداية */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 9, 17, 0.85); /* تعتيم الخلفية */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #c5a059; /* إطار ذهبي */
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: popIn 0.3s ease; /* حركة ظهور ناعمة */
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-icon {
    font-size: 50px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.modal-content h3 {
    color: #fff;
    font-family: 'Amiri', serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-content p {
    color: #8fa0b5;
    font-size: 15px;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel, .btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
}

.btn-cancel {
    background-color: #333;
    color: #fff;
}

.btn-cancel:hover {
    background-color: #444;
}

.btn-confirm {
    background-color: #e74c3c;
    color: #fff;
}

.btn-confirm:hover {
    background-color: #c0392b;
    box-shadow: 0 0 15px rgba(231,76,60,0.4);
}

/* تضبيط زرار الحذف في الجدول لو كان button */
button.delete-btn {
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}
/* أيقونات التواصل في الموقع (قسم اتصل بنا) */
.contact-icon i, .contact-icon {
    color: var(--accent-gold) !important;
}

/* أيقونات الخدمات (الكروت) */
.card-icon i {
    color: var(--accent-gold) !important;
}

/* أيقونات فريق العمل */
.team-avatar i {
    color: var(--accent-gold) !important;
}
/* إجبار القائمة المنسدلة على اللون الأسود */
select.form-control {
    background-color: #0c0d10 !important;
    color: #ffffff !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    cursor: pointer;
    /* ده السحر اللي بيشيل الستايل الافتراضي بتاع المتصفح */
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c5a059'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 20px;
}

/* لون خيارات القائمة لما تفتحها */
select.form-control option {
    background-color: #0c0d10;
    color: #ffffff;
    padding: 12px;
}
/* حل جذري لمشكلة القائمة المنسدلة */
select.form-control {
    background-color: #0c0d10 !important;
    color: #ffffff !important;
    border: 1px solid #c5a059 !important;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    /* إجبار المتصفح على تجاهل الستايل الافتراضي */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* تنسيق الخيارات داخل القائمة */
select.form-control option {
    background-color: #0c0d10 !important;
    color: #ffffff !important;
    padding: 15px !important;
}
/* تنسيق القائمة المنسدلة (إزالة الأزرق الافتراضي) */
select.form-control {
    background-color: #0c0d10 !important;
    color: #c5a059 !important;
    border: 1px solid #c5a059 !important;
    padding: 15px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none !important; /* إزالة أي إطار أزرق عند الضغط */
}

/* التنسيق عند اختيار خيار معين */
select.form-control option {
    background-color: #0c0d10 !important;
    color: #c5a059 !important;
    padding: 15px !important;
}

/* هنا اللعبة: تغيير اللون عند الوقوف بالماوس أو التحديد */
select.form-control option:hover,
select.form-control option:focus,
select.form-control option:checked {
    background-color: #c5a059 !important; /* خلفية ذهبية */
    color: #050911 !important;           /* نص غامق عشان يظهر */
}
/* تنسيق المكتبة الجديدة (بدل الـ select العادي) */
.choices__inner {
    background-color: #0c0d10 !important;
    border: 1px solid #c5a059 !important;
    color: #c5a059 !important;
}
.choices__list--dropdown {
    background-color: #0c0d10 !important;
    border: 1px solid #c5a059 !important;
}
.choices__item--choice {
    color: #c5a059 !important;
}
/* هنا بنغير لون الـ Hover اللي كان بيطلع أزرق */
.choices__item--choice.is-highlighted {
    background-color: #c5a059 !important;
    color: #050911 !important;
}
/* 1. زيادة طول القائمة عشان الكلام يظهر كامل */
.choices__list--dropdown {
    max-height: 400px !important; /* طول القائمة */
    overflow-y: auto !important;
    border: 1px solid var(--accent-gold) !important;
}

/* 2. زيادة المسافات بين الكلام عشان القراءة تكون مريحة */
.choices__item--choice {
    padding: 15px 20px !important;
    font-size: 15px !important;
}

/* 3. سحر السكرول الذهبي (بدل الأبيض) */
/* لمتصفحات كروم وإيدج */
.choices__list--dropdown::-webkit-scrollbar {
    width: 8px !important;
}
.choices__list--dropdown::-webkit-scrollbar-track {
    background: #0c0d10 !important; /* خلفية السكرول */
}
.choices__list--dropdown::-webkit-scrollbar-thumb {
    background-color: var(--accent-gold) !important; /* السكرول الذهبي */
    border-radius: 4px;
}

/* لمتصفحات فايرفوكس */
.choices__list--dropdown {
    scrollbar-width: thin !important;
    scrollbar-color: var(--accent-gold) #0c0d10 !important;
}
/* إجبار مكتبة Choices على أخذ العرض الكامل للحاوية */
.choices {
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* زيادة مساحة الحاوية الداخلية */
.choices__inner {
    min-height: 50px !important; /* زيادة الارتفاع عشان الكلام يبان مريح */
    padding: 5px 10px !important;
}
#response-message {
    color: #c5a059; /* لون ذهبي */
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(197, 160, 89, 0.05); /* خلفية خفيفة جداً */
    display: none; /* مخفية لحد ما المستخدم يدوس إرسال */
}
/* زيادة المساحة في حاوية القائمة عشان السهم ميبقاش فوق الكلام */
/* زيادة المسافة من ناحية السهم بشكل أكبر */
.choices__inner {
    padding-left: 70px !important;  /* زودتها من 40 لـ 70 عشان النص يهرب تماماً من السهم */
    padding-right: 20px !important; /* مساحة للنص عشان ميبقاش لازق في الحافة */
    min-height: 55px !important;    /* زيادة الارتفاع عشان البوكس يبقى "مستريح" */
}

/* تنسيق إضافي لضمان إن النص يفضل في مكانه */
.choices__list--single .choices__item {
    width: 100%;
}
/* حل مشكلة تقطيع الكلمات في القائمة المنسدلة */
.choices__list--dropdown .choices__item {
    white-space: normal !important;       /* بيسمح للنص ينزل سطر جديد براحته */
    word-break: keep-all !important;      /* بيمنع كسر الكلمة من النص تماماً */
    overflow-wrap: break-word !important; /* بيخلي الالتفاف يحصل عند المسافات بين الكلمات */
    line-height: 1.6 !important;          /* مسافة مريحة بين السطور لو الجملة نزلت على سطرين */
}
/* منع ظهور الخلفية البيضاء للعنصر المحدد في القائمة */
.choices__list--dropdown .choices__item.is-selected,
.choices__list--dropdown .choices__item[aria-selected="true"] {
    background-color: #0c0d10 !important; /* إرجاع الخلفية للون الأسود */
    color: var(--accent-gold) !important; /* تلوين النص بالذهبي عشان يبان إنه تم اختياره */
    font-weight: bold !important;
}

/* التأكيد على أن لون المرور بالماوس (Hover) يفضل ذهبي */
.choices__list--dropdown .choices__item.is-highlighted {
    background-color: var(--accent-gold) !important;
    color: #000000 !important;
}
.custom-logo {
    height: 50px; 
    width: auto;
    object-fit: contain;
    border: 1px solid var(--accent-gold); /* البرواز الذهبي */
    padding: 5px; /* مسافة بين اللوجو والبرواز */
    border-radius: 4px; /* حواف دائرية للبرواز */
}
/* ==========================================================================
   🌟 تحديث شامل لزيادة سُمك ووضوح الخطوط (الواجهة + الآدمن) 🌟
   ========================================================================== */

/* 1. جعل الخط الأساسي لكل نصوص الموقع أتقل وأوضح */
/* ==========================================================================
   تقسيم الخطوط المستقل (كل جزء في الموقع له تحكم خاص)
   ========================================================================== */

/* 1️⃣ المجموعة الأولى: العناوين الرئيسية (أكبر حجم وأتقل خط) */
h1, .hero-title {
    font-size: 55px !important;
    font-weight: 700 !important;
}
h2, .section-title {
    font-size: 42px !important;
    font-weight: 700 !important;
}
h3, .contact-info-side h3, .split-text h3 {
    font-size: 32px !important;
    font-weight: 700 !important;
}

/* 2️⃣ المجموعة الثانية: النصوص العادية والوصف (حجم متوسط ومقروء) */
/* 2️⃣ المجموعة الثانية: النصوص العادية والوصف (حجم متوسط ومقروء) */
/* 🌟 تعديل مخصص لنصوص قسم "عن الكيان" (من نحن) 🌟 */
.split-text p {
    font-weight: 700 !important; /* تثقيل الخط بشكل واضح (Bold) */
    color: #ffffff !important;   /* لون أبيض صريح للوضوح */
    font-size: 17px !important;  /* تكبير الخط سِنة بسيطة */
    line-height: 1.9 !important; /* مسافة مريحة للعين بين السطور */
}

/* 🌟 تعديل مخصص لنص الواجهة الرئيسي (Hero) عشان يكون أتقل وأنور 🌟 */
.hero-desc {
    font-weight: 700 !important; /* خليناه عريض وتقيل جداً */
    font-size: 18px !important;  /* كبرناه سِنة عشان يملأ العين */
    color: #ffffff !important;   /* أبيض صريح ناصع بدل الرمادي الفاتح */
    line-height: 2 !important;   /* مسافة مريحة بين السطور */
}

/* 3️⃣ المجموعة الثالثة: الفورم والقائمة المنسدلة (حجم صغير وخط رفيع وشيك) */
.form-control,
.form-wrapper input,
.form-wrapper textarea,
.choices__inner,
.choices__list--dropdown .choices__item,
.choices__list--single .choices__item {
    font-size: 14px !important;  /* حجم مناسب جداً للخانات */
    font-weight: 400 !important; /* خط عادي مش تخين */
    color: #ffffff !important;
}
/* نصوص الـ Placeholder جوا الخانات */
.form-control::placeholder {
    font-size: 13px !important;
    font-weight: 300 !important;
    color: #8fa0b5 !important;
}

/* 4️⃣ المجموعة الرابعة: الأزرار (خط تخين وواضح عشان تشد الانتباه) */
.btn-primary, .btn-secondary, .nav-btn, .login-form button, .delete-btn {
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* 5️⃣ المجموعة الخامسة: لوحة تحكم الآدمن (Admin Dashboard) */
.admin-body h1 {
    font-size: 36px !important;
    font-weight: 700 !important;
}
.admin-table th {
    font-size: 16px !important;
    font-weight: 700 !important; /* عناوين الجدول تقيلة */
    color: #000000 !important;
}
.admin-table td {
    font-size: 15px !important;
    font-weight: 500 !important; /* بيانات العملاء متوسطة وواضحة */
    color: #ffffff !important;
}
/* 🌟 تعديل مخصص لنصوص كروت التخصصات 🌟 */
.card-desc {
    font-weight: 600 !important; /* تثقيل الخط ليكون واضح جداً (Semi-Bold) */
    color: #ffffff !important;   /* لون أبيض ناصع بدل الرمادي */
    font-size: 15px !important;  /* ضبط الحجم ليكون مقروء ومريح */
    line-height: 1.8 !important; /* مسافة مريحة بين السطور */
}
/* 🌟 تعديل مخصص لنصوص الوصف في كروت المستشارين 🌟 */
.team-card p:last-of-type {
    font-weight: 600 !important; /* تثقيل الخط ليكون واضح جداً */
    color: #ffffff !important;   /* لون أبيض صريح يوضح على الخلفية الكحلي */
    font-size: 15px !important;  /* تكبير الخط سِنة بسيطة لسهولة القراءة */
    line-height: 1.9 !important; /* مسافة مريحة بين السطور */
}
/* 🌟 توضيح النص الوصفي تحت عنوان اتصل بنا 🌟 */
.contact-info-side > p {
    font-size: 15px !important;  /* كبرناه درجة عشان يقرأ بسهولة */
    font-weight: 600 !important; /* تقلنا الخط (Semi-Bold) عشان يبرز */
    color: #ffffff !important;   /* غيرنا اللون لأبيض ناصع بدل الرمادي */
    line-height: 1.8 !important; /* مسافة مريحة بين السطور */
}
/* هذا الكود يعمل فقط عندما تكون الشاشة أقل من 768 بكسل (الموبايل) */
@media (max-width: 768px) {
    .consultants-container {
        display: flex;
        flex-direction: column; /* جعلهم فوق بعض */
        align-items: center;    /* توسيط الكروت */
    }

    .consultant-card {
        width: 90%;             /* الكارت يأخذ 90% من عرض الشاشة */
        margin-bottom: 20px;    /* مسافة بين كل كارت والثاني */
    }
}
@media (max-width: 768px) {
    .request-form-container {
        display: flex;
        flex-direction: column; /* ترتيب العناصر بالطول */
        width: 100%;
        padding: 15px;
    }

    .form-input, .form-textarea {
        width: 100%;            /* الحقول تأخذ عرض الشاشة بالكامل */
        margin-bottom: 15px;
    }

    .submit-button {
        width: 100%;            /* الزر يأخذ عرض الشاشة */
    }
}


/* ==========================================================================
   SAFE RESPONSIVE PATCH - Mobile & Laptop Optimization
   ========================================================================== */

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

.practice-card,
.team-card,
.form-wrapper,
.contact-grid,
.split-container,
.hero-container,
.section-header,
.practice-grid,
.team-grid,
.footer-container {
    width: 100%;
    max-width: 100%;
}

/* تحسين التابلت */
@media (max-width: 992px) {
    .hero-title {
        font-size: 48px !important;
        line-height: 1.3;
    }

    .hero-desc {
        font-size: 16px !important;
    }

    .team-card:last-child {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
    }

    .contact-grid,
    .split-container {
        gap: 30px !important;
    }
}

/* تحسين الموبايل */
@media (max-width: 768px) {

    .nav-container {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 36px !important;
        line-height: 1.4;
    }

    .hero-desc {
        font-size: 15px !important;
        line-height: 1.9 !important;
        text-align: right;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary,
    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .section-padding {
        padding: 70px 0;
    }

    .section-title {
        font-size: 30px !important;
    }

    .split-text h3,
    .contact-info-side h3 {
        font-size: 26px !important;
    }

    .practice-card,
    .team-card,
    .form-wrapper {
        padding: 25px !important;
    }

    .team-card:last-child {
        grid-column: span 1;
        padding: 25px !important;
    }

    .contact-method {
        align-items: flex-start;
    }

    .admin-body {
        padding: 15px;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .footer-container {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .choices__inner {
        padding-left: 55px !important;
        padding-right: 15px !important;
    }
}

/* تحسين الشاشات الصغيرة جداً */
@media (max-width: 480px) {

    .hero-title {
        font-size: 30px !important;
    }

    .hero-desc,
    .split-text p,
    .card-desc {
        font-size: 14px !important;
    }

    .section-title {
        font-size: 26px !important;
    }

    .nav-menu {
        width: 100%;
    }

    .practice-card,
    .team-card,
    .form-wrapper {
        padding: 20px !important;
    }
}
/* ==========================================================================
   Mobile Fix - Consultants & Complaint Form
   ========================================================================== */

@media (max-width: 768px) {

    /* قسم المستشارين */
    .team-grid,
    .consultants-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .team-card,
    .consultant-card {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        padding: 25px !important;
        text-align: center !important;
    }

    .team-card:last-child {
        grid-column: span 1 !important;
        flex-direction: column !important;
    }

    .team-avatar {
        margin: 0 auto 20px auto !important;
    }

    /* بوكس إرسال الشكوى */
    .contact-grid,
    .request-form-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 25px !important;
    }

    .form-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        overflow: hidden !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .form-control,
    .form-input,
    .form-textarea,
    .submit-button,
    .btn-primary {
        width: 100% !important;
    }

    textarea.form-control {
        min-height: 140px !important;
    }
}