/*
Theme Name: Tri-Holding Corporate Final Fix
Author: Expert Dev
Description: Fixed RTL & Mobile Menu
Version: 7.0
*/

:root {
    --gold: #d4af37;
    --dark-bg: #000000;
    --dark-card: #121212;
    --text-white: #ffffff;
    --text-muted: #b0b0b0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    direction: rtl; /* أساسي للعربي */
    text-align: right;
}

/* --- Navbar Fix (حل مشكلة القائمة) --- */
.navbar {
    background-color: #000 !important;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar-brand { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff !important; }
.navbar-brand span { color: var(--gold); }

/* تنسيق الروابط في الموبايل والديسك توب */
.navbar-nav { gap: 20px; padding-top: 10px; }
.nav-link { 
    color: #fff !important; 
    font-size: 1.1rem; 
    font-weight: 500; 
    text-align: right; /* ضمان اليمين */
}
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }

/* زرار القائمة (Hamburger) */
.navbar-toggler { border-color: var(--gold); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; }

/* --- Footer Fix (حل مشكلة الفوتر) --- */
footer {
    background: #080808;
    padding: 60px 0 20px;
    border-top: 3px solid var(--gold);
    margin-top: 80px;
    text-align: right; /* إجبار المحاذاة يمين */
}
footer h5 {
    color: #fff;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 25px;
    border-right: 3px solid var(--gold);
    padding-right: 10px;
}
footer ul { padding: 0; list-style: none; }
footer ul li { margin-bottom: 12px; }
footer ul li a { 
    color: #aaa; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
footer ul li a:hover { color: var(--gold); padding-right: 5px; }
footer .social-icons a { margin-left: 15px; color: #fff; font-size: 1.2rem; }

/* --- Hero & Cards Fix --- */
.hero-wrapper {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* الهيرو الوحيد اللي سنتر */
}
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.hero-content { position: relative; z-index: 2; }

/* كروت الشركات */
.sector-card {
    background: var(--dark-card);
    border: 1px solid #333;
    padding: 30px;
    border-radius: 15px;
    text-align: right; /* محاذاة يمين للكروت */
    transition: 0.3s;
    height: 100%;
}
.sector-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.sector-card i { color: var(--gold); font-size: 2.5rem; margin-bottom: 20px; display: block; }
.sector-card h3 { color: #fff; margin-bottom: 15px; font-family: 'Cairo'; }
.sector-card p { color: #ccc; font-size: 0.95rem; line-height: 1.6; }
.sector-card a { color: var(--gold); text-decoration: none; font-weight: bold; }

/* تنسيق الجداول والـ Cite */
table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #1a1a1a; }
th, td { padding: 15px; border-bottom: 1px solid #333; text-align: right; color: #fff; }
th { background: #222; color: var(--gold); }
/* إخفاء أي كود Cite لو ظهر بالغلط */
cite, .cite { display: none !important; }