/* ============================================
   style.css - النسخة المصلحة
   ============================================ */

/* --- المتغيرات الأساسية --- */
:root {
    --gold: #c5a059;
    --gold-light: #e2c47a;
    --gold-dark: #9a7a3a;
    --gold-hover: #F9E5BC;
    --gold-low: rgba(197, 160, 89, 0.2);
    --gold-glow: rgba(197, 160, 89, 0.25);
    --black: #050505;
    --dark-gray: #0f0f0f;
    --card-bg: #0f0f0f;
    --border: rgba(197, 160, 89, 0.15);
    --white: #ffffff;
}

/* --- ريست عام --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: var(--black);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--black);
    color: var(--white);
    direction: rtl;
    /* padding-top بيتحسب تلقائي من الـ navbar fixed */
    padding-top: 70px;
}

/* --- سكرول بار --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-dark), var(--gold));
    border-radius: 4px;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

.loader-content {
    position: relative;
    text-align: center;
}

.loader-circle-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
}

.loader-circle {
    width: 90px;
    height: 90px;
    border: 2px solid rgba(197, 160, 89, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.loader-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.loader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ============================================
   NAVBAR
   ============================================ */
#mainNavbar {
    background: rgba(5, 5, 5, 0.7) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s;
    padding: 14px 0;
    z-index: 9999;
}

#mainNavbar.scrolled {
    background: rgba(5, 5, 5, 0.95) !important;
    border-bottom-color: rgba(197, 160, 89, 0.3);
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.1);
}

.navbar-logo {
    height: 42px;
    width: auto;
    min-width: 42px;
    margin-left: 10px;
    object-fit: contain;
}

.brand-name-adjust {
    font-size: 1rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px !important;
    border-radius: 8px;
    transition: all 0.25s;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
    background: rgba(197, 160, 89, 0.07);
}

.navbar-toggler {
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: rgba(197, 160, 89, 0.05) !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2) !important;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 20px;
    gap: 5px;
}

.hamburger-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* حركة X عند فتح القائمة */
.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 60% at 60% 40%, rgba(197, 160, 89, 0.06) 0%, transparent 65%),
        radial-gradient(ellipse 50% 80% at 10% 90%, rgba(197, 160, 89, 0.04) 0%, transparent 60%),
        var(--black);
    display: flex;
    align-items: center;
    padding: 40px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c5a059' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-main-frame {
    background: rgba(18, 12, 5, 0.5);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(197, 160, 89, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    transition: border-color 0.5s, box-shadow 0.5s;
}

.hero-main-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.hero-main-frame:hover {
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.1);
}

.content-column {
    padding: 52px 48px !important;
    text-align: right !important;
    direction: rtl;
}

.official-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(197, 160, 89, 0.35);
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(197, 160, 89, 0.06);
}

.official-tag::before {
    content: '◆';
    font-size: 0.5rem;
    color: var(--gold);
}

.hero-name {
    font-family: 'Aref Ruqaa', serif !important;
    font-size: 4.2rem;
    background: linear-gradient(90deg, var(--gold-dark) 0%, #fff 35%, var(--gold-light) 55%, var(--gold) 75%, #fff 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerName 4s linear infinite;
    line-height: 1.1;
    margin-bottom: 20px;
}

@keyframes shimmerName {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.lead {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    line-height: 1.95;
    font-weight: 400;
}

/* Hero Buttons */
.btn-gold-fill {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000 !important;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    padding: 14px 32px;
    font-size: 0.92rem;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(197, 160, 89, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none !important;
}

.btn-gold-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: 0.3s;
}

.btn-gold-fill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(197, 160, 89, 0.55);
}

.btn-gold-fill:hover::after {
    opacity: 1;
}

.btn-outline-gold {
    background: rgba(197, 160, 89, 0.04);
    color: var(--gold) !important;
    font-weight: 700;
    border: 1px solid rgba(197, 160, 89, 0.5) !important;
    border-radius: 14px;
    padding: 14px 32px;
    font-size: 0.92rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none !important;
}

.btn-outline-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.08), transparent);
    transition: left 0.5s;
}

.btn-outline-gold:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--gold) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(197, 160, 89, 0.2), 0 0 0 1px rgba(197, 160, 89, 0.3);
}

.btn-outline-gold:hover::before {
    left: 100%;
}

.btn-gold-outline-sm {
    color: var(--gold) !important;
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
    background: transparent;
    border-radius: 10px;
    padding: 9px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none !important;
}

.btn-gold-outline-sm:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--gold) !important;
}

/* Hero Stats */
.hero-stats-strip {
    display: flex;
    gap: 28px;
    margin-top: 32px;
    flex-wrap: wrap;
    direction: rtl;
    justify-content: flex-start;
}

.hero-stat-divider {
    width: 1px;
    background: var(--border);
}

.stat-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Hero Badge */
.hero-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 14px;
    padding: 11px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    animation: floatBadge 4s ease-in-out infinite;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71, 0 0 20px rgba(46, 204, 113, 0.4);
    animation: blink 2s infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

/* Hero Image Column */
.img-column {
    background: transparent;
}

.deputy-img-final {
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
    background: transparent;
    width: 100%;
    height: auto;
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '—';
    opacity: 0.5;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: linear-gradient(180deg, var(--black) 0%, #080808 100%);
}

.service-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
    padding: 30px;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: 0.35s;
}

.service-card:hover {
    border-color: rgba(197, 160, 89, 0.35) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 72px;
    height: 72px;
    background: rgba(197, 160, 89, 0.07);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    transition: all 0.3s;
}

.service-card:hover .service-icon-wrap {
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
    background: #080808;
}

.about-img-frame {
    border-radius: 20px;
    overflow: visible;
    position: relative;
    padding: 15px;
    border: 1px solid var(--gold-low);
    background: rgba(255, 255, 255, 0.02);
}

.about-img-frame img {
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    width: 100%;
    height: auto;
    filter: grayscale(30%);
    transition: filter 0.5s;
}

.about-img-frame img:hover {
    filter: grayscale(0%);
}

.about-img-frame::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.3), transparent 50%, rgba(197, 160, 89, 0.1));
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: #0f0f0f;
    padding: 14px 22px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.info-item {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    transition: 0.3s;
    height: 100%;
}

.info-item:hover {
    border-color: rgba(197, 160, 89, 0.35) !important;
}

.vision-card {
    border-right: 2px solid var(--gold);
    background: rgba(197, 160, 89, 0.03);
    padding: 18px 20px;
    border-radius: 0 14px 14px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.08);
    border-bottom: 1px solid rgba(197, 160, 89, 0.08);
    transition: 0.3s;
}

.vision-card:hover {
    background: rgba(197, 160, 89, 0.06);
}

/* ============================================
   QUOTE
   ============================================ */
.quote-section {
    background: linear-gradient(135deg, #0a0805, #080808, #0a0805);
    border-top: 1px solid rgba(197, 160, 89, 0.08);
    border-bottom: 1px solid rgba(197, 160, 89, 0.08);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '❝';
    position: absolute;
    font-size: 22rem;
    color: rgba(197, 160, 89, 0.025);
    top: -80px;
    right: -20px;
    line-height: 1;
    pointer-events: none;
}

.quote-text {
    font-family: 'Aref Ruqaa', serif;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.quote-text em {
    color: var(--gold);
    font-style: normal;
}

.quote-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 14px auto 0;
}

/* ============================================
   NEWS
   ============================================ */
.news-section {
    background: #080808;
}

.news-card-home {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-home:hover {
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.news-img-wrap {
    height: 210px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.news-card-home:hover .news-img-wrap img {
    transform: scale(1.08);
}

.news-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--card-bg));
}

.news-text-white {
    color: rgba(255, 255, 255, 0.8) !important;
}

.news-date {
    font-size: 0.7rem;
    color: rgba(197, 160, 89, 0.55);
    letter-spacing: 1px;
}

.btn-gold-glow {
    color: var(--gold) !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    background: transparent;
    transition: all 0.3s;
    font-weight: 700;
    border-radius: 10px;
}

.btn-gold-glow:hover {
    background: var(--gold) !important;
    color: #000 !important;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.4);
}

/* ============================================
   STATS
   ============================================ */
.stats {
    background: var(--black);
}

.stat-card-new {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px 28px;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.stat-card-new::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.4), transparent);
}

.stat-card-new::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: width 0.4s;
}

.stat-card-new:hover {
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.stat-card-new:hover::after {
    width: 80%;
}

.stat-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(197, 160, 89, 0.06);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.stat-card-new:hover .stat-icon-wrap {
    background: rgba(197, 160, 89, 0.12);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.15);
}

.stat-number-big {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(197, 160, 89, 0.3));
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #030303;
    border-top: 1px solid rgba(197, 160, 89, 0.08);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-logo-wrap {
    width: 64px;
    height: 64px;
    background: rgba(197, 160, 89, 0.06);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.footer-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.footer-sub {
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-top: 4px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.15), transparent);
    margin: 28px 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.9rem !important;
    transition: all 0.3s;
    margin: 0 5px;
    text-decoration: none !important;
}

.social-links a:hover {
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--gold);
    color: var(--gold) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.2);
}

.dev-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 160, 89, 0.04);
    border: 1px solid rgba(197, 160, 89, 0.12);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    text-decoration: none !important;
}

.dev-credit:hover {
    border-color: rgba(197, 160, 89, 0.3);
    color: var(--gold) !important;
    background: rgba(197, 160, 89, 0.08);
}

.dev-credit .dev-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: blink 2s infinite;
}

/* Scroll To Top Button */
#scrollTopBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: 14px;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
    margin: 0 auto 24px;
    animation: bounceUp 1.5s ease-in-out infinite;
}

#scrollTopBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.5);
    animation: none;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    background: #0a0a0a !important;
    border: 1px solid rgba(197, 160, 89, 0.2) !important;
    border-radius: 20px !important;
}

.modal-header {
    border-bottom: 1px solid rgba(197, 160, 89, 0.12) !important;
}

#modalBody,
.modal-body,
.card-text,
.info-item p,
.service-card p,
.table td {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

.modal-body {
    padding: 25px !important;
    text-align: right !important;
    line-height: 1.8;
}

/* ============================================
   UTILITIES
   ============================================ */
.gold-text       { color: var(--gold) !important; }
.text-light-gray { color: rgba(255, 255, 255, 0.65); }
.bg-darker       { background: #080808; }
.border-gold-low { border: 1px solid rgba(197, 160, 89, 0.2) !important; }
.brand-ruqaa     { font-family: 'Aref Ruqaa', serif; }

/* Links */
a {
    text-decoration: none !important;
    color: var(--white);
    transition: color 0.3s;
}

a:hover {
    color: var(--gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    body {
        padding-top: 65px;
    }

    .hero {
        padding: 30px 0 40px 0 !important;
        min-height: auto;
    }

    .hero-name {
        font-size: clamp(1.8rem, 8vw, 2.8rem) !important;
        text-align: center;
    }

    .hero-main-frame {
        margin: 0 10px;
        border-radius: 15px;
    }

    .content-column {
        text-align: center !important;
        padding: 24px 20px !important;
    }

    .hero-stats-strip {
        justify-content: center !important;
    }

    .img-column img {
        max-width: 80% !important;
        margin: 0 auto;
    }

    .btn-gold-fill,
    .btn-outline-gold {
        width: 100% !important;
        margin: 0 0 12px 0 !important;
        display: block;
        text-align: center;
    }

    .navbar-brand {
        max-width: 70%;
    }

    .navbar-logo {
        height: 34px !important;
    }

    .brand-name-adjust {
        font-size: 0.88rem !important;
    }

    .navbar-collapse {
        background: rgba(10, 10, 10, 0.97);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid rgba(197, 160, 89, 0.2);
    }

    .news-img-wrap {
        height: 200px !important;
    }

    .service-card {
        margin-bottom: 20px;
        padding: 20px !important;
    }

    .experience-badge {
        left: 8px;
        bottom: 8px;
        padding: 10px 14px;
    }

    .quote-text {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    .hero-name {
        font-size: 2rem !important;
    }

    .hero-stats-strip {
        gap: 16px;
    }

    .hero-badge {
        bottom: 12px;
        left: 12px;
        padding: 8px 12px;
    }
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 0 20px;
}

.timeline-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
    opacity: 0.3;
    z-index: 0;
}

.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

/* اليمين: الكارد يمين، الدوت وسط */
.tl-right {
    flex-direction: row-reverse;
    text-align: right;
    padding-left: 52%;
}

/* الشمال: الكارد شمال، الدوت وسط */
.tl-left {
    flex-direction: row;
    text-align: right;
    padding-right: 52%;
}

.tl-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.85rem;
    box-shadow: 0 0 0 4px rgba(197,160,89,0.15), 0 0 20px rgba(197,160,89,0.3);
    flex-shrink: 0;
    z-index: 2;
}

.tl-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px 24px;
    width: 100%;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.tl-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: 0.35s;
}

.tl-card:hover {
    border-color: rgba(197,160,89,0.35);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    transform: translateY(-3px);
}

.tl-card:hover::before {
    opacity: 1;
}

.tl-year {
    display: inline-block;
    background: rgba(197,160,89,0.1);
    border: 1px solid rgba(197,160,89,0.3);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .timeline-line { left: 20px; }
    .tl-item { flex-direction: column !important; padding: 0 0 0 52px !important; text-align: right !important; }
    .tl-dot { left: 20px; top: 0; transform: none; }
}
