:root {
  --gold-primary: #D4AF37; --gold-light: #E8C766; --gold-dark: #B8860B; --gold-shimmer: #F4E4A6; --gold-deep: #9E7B0A;
  --bg-primary: #FAFAF7; --bg-secondary: #F5F2E8; --bg-tertiary: #FFFFFF; --bg-overlay: rgba(250, 250, 247, 0.95);
  --text-primary: #1A1A1A; --text-secondary: #4A4A4A; --text-muted: #8A8A8A; --text-inverse: #FAFAF7;
  --border-color: rgba(212, 175, 55, 0.2); --border-strong: rgba(212, 175, 55, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04); --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08); --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12); --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.25);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4A6 50%, #B8860B 100%);
  --gradient-gold-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(244, 228, 166, 0.05) 100%);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); --transition-fast: all 0.25s ease;
}

[data-theme="dark"] {
  --bg-primary: #0A1128; --bg-secondary: #0F1B3D; --bg-tertiary: #14234A; --bg-overlay: rgba(10, 17, 40, 0.95);
  --text-primary: #F0F6FC; --text-secondary: #B8C5D6; --text-muted: #7384A3;
  --border-color: rgba(212, 175, 55, 0.2); --border-strong: rgba(212, 175, 55, 0.4);
  --shadow-sm: 0 2px 8px rgba(10, 17, 40, 0.3); --shadow-md: 0 8px 30px rgba(10, 17, 40, 0.5); --shadow-lg: 0 20px 60px rgba(10, 17, 40, 0.7); --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Tajawal', 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; transition: background 0.4s ease, color 0.4s ease; }
body[dir="rtl"] { font-family: 'Tajawal', sans-serif; } body[dir="ltr"] { font-family: 'Inter', sans-serif; }
.gold-text { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.loader { position: fixed; inset: 0; background: var(--bg-primary); z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2rem; transition: opacity 0.8s ease, visibility 0.8s ease; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 80px; height: 80px; position: relative; animation: pulse-gold 2s ease-in-out infinite; }
.loader-bar { width: 200px; height: 2px; background: var(--border-color); border-radius: 2px; overflow: hidden; position: relative; }
.loader-bar::after { content: ''; position: absolute; inset: 0; background: var(--gradient-gold); animation: load-progress 2s ease-in-out infinite; }
@keyframes pulse-gold { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5)); } 50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.8)); } }
@keyframes load-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.5rem 0; transition: var(--transition); background: transparent; }
.navbar.scrolled { background: var(--bg-overlay); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 1rem 0; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border-color); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; text-decoration: none; }
.nav-logo-icon { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; position: relative; }
.nav-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; color: var(--text-primary); }
.nav-logo-text span { color: var(--gold-primary); }
.nav-menu { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; position: relative; transition: var(--transition-fast); cursor: pointer; }
.nav-link::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px; background: var(--gradient-gold); transition: width 0.3s ease; }
.nav-link:hover { color: var(--gold-primary); } .nav-link:hover::after, .nav-link.active::after { width: 100%; } .nav-link.active { color: var(--gold-primary); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-tertiary); border: 1px solid var(--border-color); cursor: pointer; transition: var(--transition-fast); color: var(--text-primary); }
.nav-toggle:hover { background: var(--gold-primary); color: #fff; border-color: var(--gold-primary); }
.nav-cta { padding: 0.75rem 1.75rem; background: var(--gradient-gold); color: #0A0A0A !important; border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease; box-shadow: var(--shadow-gold); display: inline-flex; align-items: center; gap: 0.5rem; }
.nav-cta:hover { box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4); }
.mobile-toggle { display: none; background: transparent; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

.hero { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; padding-top: 100px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%); }
.hero-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); }
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle { position: absolute; width: 4px; height: 4px; background: var(--gold-primary); border-radius: 50%; opacity: 0; animation: float-particle 15s infinite linear; box-shadow: 0 0 10px var(--gold-primary); }
@keyframes float-particle { 0% { transform: translateY(100vh) translateX(0); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { transform: translateY(-100px) translateX(100px); opacity: 0; } }

.hero-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; width: 100%; }
.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.hero-text { position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--gradient-gold-soft); border: 1px solid var(--border-strong); border-radius: 50px; font-size: 0.85rem; color: var(--gold-primary); font-weight: 500; margin-bottom: 1.5rem; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--gold-primary); border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }
.hero-title { font-family: 'Cormorant Garamond', 'Tajawal', serif; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; color: var(--text-primary); }
.hero-title-line { display: block; overflow: hidden; }
.hero-title-line span { display: inline-block; animation: slide-up 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; opacity: 0; transform: translateY(100%); }
.hero-title-line:nth-child(2) span { animation-delay: 0.2s; } .hero-title-line:nth-child(3) span { animation-delay: 0.4s; }
@keyframes slide-up { to { opacity: 1; transform: translateY(0); } }
.hero-description { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 580px; line-height: 1.8; opacity: 0; animation: fade-in 1s ease 0.8s forwards; }
@keyframes fade-in { to { opacity: 1; } }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fade-in 1s ease 1s forwards; }

.btn-primary { padding: 1rem 2rem; background: var(--gradient-gold); color: #0A0A0A; border: none; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease; box-shadow: var(--shadow-gold); display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: left 0.6s ease; }
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { box-shadow: 0 15px 50px rgba(212, 175, 55, 0.5); }
.btn-secondary { padding: 1rem 2rem; background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.btn-secondary:hover { background: var(--gold-primary); color: #0A0A0A; border-color: var(--gold-primary); transform: translateY(-3px); }

.hero-visual { position: relative; height: auto; min-height: 450px; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: 1rem; opacity: 0; animation: fade-in 1.5s ease 1.2s forwards; }
.hero-card { position: relative; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); width: 100%; animation: float-card 6s ease-in-out infinite; }
.hero-card-1 { align-self: flex-start; width: 90%; animation-delay: 0s; }
.hero-card-2 { align-self: flex-end; width: 85%; animation-delay: 2s; }
.hero-card-3 { align-self: center; width: 75%; animation-delay: 4s; }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-card-icon { width: 45px; height: 45px; background: var(--gradient-gold-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold-primary); font-size: 1.2rem; margin-bottom: 1rem; }
.hero-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-secondary); }
.hero-card-value { font-size: 2.2rem; font-weight: 800; color: var(--gold-primary); font-family: 'Cormorant Garamond', serif; line-height: 1.2; }
.hero-card-change { font-size: 0.85rem; color: #4CAF50; margin-top: 0.25rem; display: flex; align-items: center; gap: 0.3rem; }

section { padding: 6rem 0; position: relative; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-badge { display: inline-block; padding: 0.4rem 1rem; background: var(--gradient-gold-soft); border: 1px solid var(--border-color); border-radius: 50px; font-size: 0.8rem; color: var(--gold-primary); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; }
.section-title { font-family: 'Cormorant Garamond', 'Tajawal', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }

.stats { background: var(--bg-secondary); padding: 4rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -1rem; transform: translateY(-50%); width: 1px; height: 60px; background: var(--border-color); }
body[dir="rtl"] .stat-item:not(:last-child)::after { right: auto; left: -1rem; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 700; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; }

.trust-bar-section { padding: 3rem 0; background: var(--bg-primary); border-bottom: 1px solid var(--border-color); overflow: hidden; }
.trust-bar-title { text-align: center; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; font-weight: 600; }
.trust-bar-wrapper { width: 100%; overflow: hidden; position: relative; }
.trust-bar-wrapper::before, .trust-bar-wrapper::after { content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; pointer-events: none; }
.trust-bar-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-primary), transparent); }
.trust-bar-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-primary), transparent); }
.trust-track { display: flex; gap: 4rem; width: max-content; animation: scroll-trust 30s linear infinite; }
.trust-item { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; color: var(--text-secondary); opacity: 0.6; transition: opacity 0.3s, color 0.3s; white-space: nowrap; cursor: pointer; }
.trust-item:hover { opacity: 1; color: var(--gold-primary); }
@keyframes scroll-trust { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
body[dir="rtl"] .trust-track { animation: scroll-trust-rtl 30s linear infinite; }
@keyframes scroll-trust-rtl { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 20px; padding: 2.5rem; transition: var(--transition); position: relative; overflow: hidden; cursor: pointer; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.service-icon { width: 70px; height: 70px; background: var(--gradient-gold-soft); border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--gold-primary); font-size: 1.8rem; margin-bottom: 1.5rem; transition: var(--transition); }
.service-card:hover .service-icon { background: var(--gradient-gold); color: #0A0A0A; transform: rotate(-5deg) scale(1.05); }
.service-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.service-description { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-link { display: none !important; } /* إخفاء زر اقرأ المزيد */
.service-number { position: absolute; top: 1.5rem; right: 1.5rem; font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: var(--border-color); font-weight: 700; line-height: 1; }
body[dir="rtl"] .service-number { right: auto; left: 1.5rem; }

.news { background: var(--bg-secondary); }
.news-featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.news-featured-large { position: relative; border-radius: 20px; overflow: hidden; min-height: 450px; cursor: pointer; }
.news-featured-large img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.8s ease; }
.news-featured-large:hover img { transform: scale(1.05); }
.news-featured-large::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%); }
.news-featured-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem; z-index: 2; color: #fff; }
.news-category { display: inline-block; padding: 0.3rem 0.8rem; background: var(--gold-primary); color: #0A0A0A; border-radius: 50px; font-size: 0.75rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.news-featured-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
.news-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; opacity: 0.9; }
.news-featured-small { display: flex; flex-direction: column; gap: 1.5rem; }
.news-small-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.25rem; transition: var(--transition); cursor: pointer; }
.news-small-card:hover { transform: translateX(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
body[dir="rtl"] .news-small-card:hover { transform: translateX(5px); }
.news-small-image { width: 120px; height: 100px; border-radius: 12px; overflow: hidden; position: relative; }
.news-small-image img { width: 100%; height: 100%; object-fit: cover; }
.news-small-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); line-height: 1.4; }
.news-small-content .news-meta { font-size: 0.75rem; color: var(--text-muted); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* Force Fix News Image Size */
.news-card { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; transition: var(--transition); cursor: pointer; display: flex !important; flex-direction: column !important; height: 100% !important; }
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.news-card-image { width: 100% !important; height: 220px !important; max-height: 220px !important; overflow: hidden !important; position: relative !important; flex-shrink: 0 !important; }
.news-card-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; display: block !important; transition: transform 0.6s ease !important; filter: saturate(0.9) contrast(1.1) !important; }
.news-card:hover .news-card-image img { transform: scale(1.1) !important; }
.news-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(10, 17, 40, 0.4) 100%); pointer-events: none; }
.news-card-content { padding: 1.5rem; }
.news-card-date { font-size: 0.8rem; color: var(--gold-primary); font-weight: 600; margin-bottom: 0.5rem; }
.news-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-primary); line-height: 1.4; }
.news-card-excerpt { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-visual { position: relative; height: 500px; }
.about-image-main { width: 100%; height: 100%; border-radius: 20px; overflow: hidden; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.about-image-main img { width: 100%; height: 120%; object-fit: cover; transform: translateY(-10%); will-change: transform; filter: saturate(0.9) contrast(1.1); }
.about-image-overlay { position: absolute; bottom: -30px; right: -30px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); max-width: 280px; z-index: 2; }
body[dir="rtl"] .about-image-overlay { right: auto; left: -30px; }
.about-experience-number { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 700; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.about-experience-text { font-size: 0.95rem; color: var(--text-secondary); margin-top: 0.5rem; }
.about-text h2 { font-family: 'Cormorant Garamond', 'Tajawal', serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; }
.about-text p { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.about-feature { display: flex; align-items: flex-start; gap: 1rem; }
.about-feature-icon { width: 40px; height: 40px; background: var(--gradient-gold-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--gold-primary); flex-shrink: 0; }
.about-feature-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.about-feature-text p { font-size: 0.85rem; margin: 0; }

.contact { background: var(--bg-secondary); }
.contact-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-info h2 { font-family: 'Cormorant Garamond', 'Tajawal', serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.7; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item-icon { width: 50px; height: 50px; background: var(--gradient-gold-soft); border: 1px solid var(--border-color); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--gold-primary); font-size: 1.2rem; flex-shrink: 0; }
.contact-item-text h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; font-weight: 500; }
.contact-item-text p { font-size: 1rem; color: var(--text-primary); font-weight: 600; }
.contact-form { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 24px; padding: 2.5rem; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; font-weight: 500; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.85rem 1rem; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-primary); font-size: 0.95rem; font-family: inherit; transition: var(--transition-fast); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--gold-primary); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
.form-textarea { resize: vertical; min-height: 120px; }

.footer { background: var(--bg-tertiary); border-top: 1px solid var(--border-color); padding: 4rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { margin-bottom: 1.5rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 40px; height: 40px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition-fast); text-decoration: none; }
.footer-social a:hover { background: var(--gradient-gold); color: #0A0A0A; border-color: var(--gold-primary); transform: translateY(-3px); }
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: var(--transition-fast); }
.footer-col ul li a:hover { color: var(--gold-primary); padding-inline-start: 5px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: var(--transition-fast); }
.footer-bottom-links a:hover { color: var(--gold-primary); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 2rem; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 24px; max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(0.9); transition: transform 0.3s ease; }
.modal-overlay.active .modal { transform: scale(1); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); transition: var(--transition-fast); z-index: 2; }
.modal-close:hover { background: var(--gold-primary); color: #0A0A0A; transform: rotate(90deg); }
.modal-image { width: 100%; height: 400px; overflow: hidden; border-radius: 24px 24px 0 0; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 2.5rem; }
.modal-category { display: inline-block; padding: 0.3rem 0.8rem; background: var(--gradient-gold-soft); border: 1px solid var(--border-color); border-radius: 50px; font-size: 0.75rem; color: var(--gold-primary); font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.modal-title { font-family: 'Cormorant Garamond', 'Tajawal', serif; font-size: 2rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); line-height: 1.3; }
.modal-meta { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.modal-meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.modal-body { color: var(--text-secondary); line-height: 1.8; font-size: 1rem; }
.modal-body p { margin-bottom: 1rem; }

.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; background: var(--gradient-gold); border: none; border-radius: 50%; color: #0A0A0A; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: var(--shadow-gold); }
body[dir="rtl"] .back-to-top { right: auto; left: 2rem; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); }

.page-hero { padding: 180px 0 80px; background: var(--bg-secondary); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%); }
.page-hero-content { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { font-family: 'Cormorant Garamond', 'Tajawal', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.page-hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 1.5rem; font-size: 0.9rem; }
.breadcrumb a { color: var(--gold-primary); text-decoration: none; }
.breadcrumb span { color: var(--text-muted); }

.dashboard-body { background: var(--bg-secondary); }
.dashboard-container { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dashboard-sidebar { background: var(--bg-tertiary); border-right: 1px solid var(--border-color); padding: 1.5rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
body[dir="rtl"] .dashboard-sidebar { border-right: none; border-left: 1px solid var(--border-color); }
.dashboard-logo { padding: 0 1.5rem 2rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.dashboard-nav { padding: 0 1rem; }
.dashboard-nav-section { margin-bottom: 1.5rem; }
.dashboard-nav-title { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; padding: 0 0.75rem; margin-bottom: 0.5rem; }
.dashboard-nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 10px; color: var(--text-secondary); cursor: pointer; transition: var(--transition-fast); font-size: 0.9rem; font-weight: 500; margin-bottom: 0.25rem; text-decoration: none; }
.dashboard-nav-item:hover { background: var(--bg-secondary); color: var(--gold-primary); }
.dashboard-nav-item.active { background: var(--gradient-gold-soft); color: var(--gold-primary); border: 1px solid var(--border-color); }
.dashboard-nav-item i { width: 20px; text-align: center; }
.dashboard-main { padding: 2rem; overflow-y: auto; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dashboard-header h1 { font-family: 'Cormorant Garamond', 'Tajawal', serif; font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.dashboard-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.dashboard-stat-card { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; transition: var(--transition); }
.dashboard-stat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dashboard-stat-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.dashboard-stat-icon { width: 45px; height: 45px; background: var(--gradient-gold-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold-primary); }
.dashboard-stat-trend { font-size: 0.8rem; padding: 0.25rem 0.5rem; border-radius: 6px; font-weight: 600; }
.dashboard-stat-trend.up { background: rgba(76, 175, 80, 0.1); color: #4CAF50; }
.dashboard-stat-trend.down { background: rgba(244, 67, 54, 0.1); color: #F44336; }
.dashboard-stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--text-primary); line-height: 1; margin-bottom: 0.25rem; }
.dashboard-stat-label { color: var(--text-muted); font-size: 0.85rem; }
.dashboard-card { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; }
.dashboard-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.dashboard-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.dashboard-table { width: 100%; border-collapse: collapse; }
.dashboard-table th, .dashboard-table td { padding: 0.85rem; text-align: start; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.dashboard-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.dashboard-table td { color: var(--text-primary); }
.dashboard-table tr:last-child td { border-bottom: none; }
.dashboard-table tr:hover td { background: var(--bg-secondary); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state p { font-size: 0.95rem; }
.status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.status-badge.published { background: rgba(76, 175, 80, 0.1); color: #4CAF50; }
.status-badge.draft { background: rgba(255, 152, 0, 0.1); color: #FF9800; }
.action-btn { width: 32px; height: 32px; border: 1px solid var(--border-color); background: var(--bg-secondary); border-radius: 8px; cursor: pointer; color: var(--text-secondary); transition: var(--transition-fast); display: inline-flex; align-items: center; justify-content: center; margin: 0 2px; }
.action-btn:hover { background: var(--gold-primary); color: #0A0A0A; border-color: var(--gold-primary); }
.action-btn.danger:hover { background: #F44336; color: #fff; border-color: #F44336; }

.form-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.form-tab { padding: 0.75rem 1.5rem; background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: var(--transition-fast); border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 0.5rem; }
.form-tab.active { color: var(--gold-primary); border-bottom-color: var(--gold-primary); }
.form-tab-content { display: none; }
.form-tab-content.active { display: block; animation: fade-in 0.3s ease; }
.lang-flag { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
.lang-flag.ar { background: linear-gradient(135deg, #000 0%, #000 50%, #006C35 50%, #006C35 100%); color: #fff; }
.lang-flag.en { background: linear-gradient(135deg, #012169 0%, #012169 50%, #fff 50%, #fff 100%); color: #C8102E; }

.image-upload { position: relative; border: 2px dashed var(--border-color); border-radius: 16px; padding: 2rem; text-align: center; transition: var(--transition-fast); cursor: pointer; background: var(--bg-secondary); }
.image-upload:hover { border-color: var(--gold-primary); background: var(--gradient-gold-soft); }
.image-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-upload-icon { font-size: 2.5rem; color: var(--gold-primary); margin-bottom: 1rem; }
.image-upload-text { color: var(--text-secondary); font-size: 0.9rem; }
.image-upload-text strong { color: var(--gold-primary); }
.image-preview { margin-top: 1rem; position: relative; border-radius: 12px; overflow: hidden; display: none; }
.image-preview.active { display: block; }
.image-preview img { width: 100%; max-height: 250px; object-fit: cover; }
.image-preview-remove { position: absolute; top: 0.75rem; right: 0.75rem; width: 32px; height: 32px; background: rgba(0, 0, 0, 0.7); color: #fff; border: none; border-radius: 50%; cursor: pointer; }

.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-left: 4px solid var(--gold-primary); padding: 1rem 1.5rem; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem; z-index: 3000; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); max-width: 400px; }
body[dir="rtl"] .toast { right: auto; left: 2rem; transform: translateX(-120%); border-left: none; border-right: 4px solid var(--gold-primary); }
.toast.show { transform: translateX(0); }
.toast-icon { width: 40px; height: 40px; background: var(--gradient-gold-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-primary); flex-shrink: 0; }
.toast-content h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.toast-content p { font-size: 0.85rem; color: var(--text-secondary); }

/* Ultra Luxury Additions */
[data-theme="dark"] .hero-card, [data-theme="dark"] .service-card, [data-theme="dark"] .news-card, [data-theme="dark"] .contact-form { background: rgba(20, 35, 74, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(212, 175, 55, 0.15); }
[data-theme="dark"] .service-card:hover, [data-theme="dark"] .news-card:hover, [data-theme="dark"] .hero-card:hover { border-color: var(--gold-primary); box-shadow: 0 0 20px rgba(212, 175, 55, 0.15), 0 20px 60px rgba(10, 17, 40, 0.7); }
[data-theme="dark"] .news-card-image::after { background: linear-gradient(to bottom, rgba(212, 175, 55, 0.05) 0%, rgba(10, 17, 40, 0.6) 100%); }

@media (max-width: 1024px) {
  .hero-content, .about-content, .contact-content, .news-featured { grid-template-columns: 1fr; }
  .hero-visual { display: none; } .footer-content { grid-template-columns: 1fr 1fr; } .dashboard-container { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: fixed; top: 0; left: 0; width: 260px; transform: translateX(-100%); z-index: 1000; transition: transform 0.3s ease; }
  body[dir="rtl"] .dashboard-sidebar { left: auto; right: 0; transform: translateX(100%); }
  .dashboard-sidebar.open { transform: translateX(0); } .about-visual { height: 400px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; } 
  .mobile-toggle { display: block; } 
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } 
  .stat-item::after { display: none; }
  .about-features { grid-template-columns: 1fr; } 
  .footer-content { grid-template-columns: 1fr; } 
  .form-row { grid-template-columns: 1fr; }
  section { padding: 4rem 0; } 
  .container { padding: 0 1rem; } 
  .news-small-card { grid-template-columns: 100px 1fr; } 
  .trust-item { font-size: 1.4rem; }
  
  /* عرض صورة الخبر بالكامل على الهاتف دون قص (نسبة 16:9) */
  .news-card-image { 
    height: auto !important; 
    max-height: none !important; 
    aspect-ratio: 16/9 !important; 
  }
  .news-card-image img { 
    object-fit: contain !important; 
    background: var(--bg-secondary) !important;
  }
}

.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: var(--bg-tertiary); border-left: 1px solid var(--border-color); z-index: 1500; padding: 2rem; transition: right 0.3s ease; overflow-y: auto; }
body[dir="rtl"] .mobile-menu { right: auto; left: -100%; border-left: none; border-right: 1px solid var(--border-color); }
.mobile-menu.open { right: 0; } body[dir="rtl"] .mobile-menu.open { right: auto; left: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.mobile-menu-close { background: transparent; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }
.mobile-menu nav ul { list-style: none; } .mobile-menu nav ul li { margin-bottom: 1rem; }
.mobile-menu nav ul li a { color: var(--text-primary); text-decoration: none; font-size: 1.1rem; font-weight: 500; display: block; padding: 0.5rem 0; transition: var(--transition-fast); }
.mobile-menu nav ul li a:hover { color: var(--gold-primary); }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1400; opacity: 0; visibility: hidden; transition: var(--transition); }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

[data-aos] { opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; }
[data-aos="fade-up"] { transform: translateY(30px); } [data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); } [data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos].aos-animate { opacity: 1; transform: translate(0, 0); }

::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }
::selection { background: var(--gold-primary); color: #0A0A0A; }
@media print { .navbar, .footer, .back-to-top, .mobile-menu, .mobile-menu-overlay { display: none !important; } }

/* إخفاء زر تبديل الوضع الليلي والنهاري */
.theme-toggle { display: none !important; }

/* ===== Language Dropdown with Flags ===== */
.lang-dropdown { position: relative; display: inline-block; }
.lang-flag-img { width: 20px; height: auto; border-radius: 3px; vertical-align: middle; }
.lang-dropdown-menu {
  position: absolute;
  top: 120%; 
  inset-inline-end: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 130px;
  z-index: 1001;
}
.lang-dropdown.active .lang-dropdown-menu { display: flex; }
.lang-dropdown-menu a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.lang-dropdown-menu a:hover { background: var(--bg-secondary); color: var(--gold-primary); }
.lang-dropdown-menu a.active { background: var(--gradient-gold-soft); color: var(--gold-primary); }

/* ===== News Gallery Modal ===== */
.modal-image { position: relative; }
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 17, 40, 0.7);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.5);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: 0.3s;
  z-index: 10;
}
.gallery-btn:hover { background: var(--gold-primary); color: #0A0A0A; }
.gallery-btn.prev { left: 15px; }
.gallery-btn.next { right: 15px; }
.gallery-counter {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 17, 40, 0.8);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ===== Mobile News Image Fix (Appended at the very end) ===== */
@media (max-width: 768px) {
  .news-card-image {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
  }
  .news-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: var(--bg-tertiary) !important;
  }
}



/* ===== Mobile Featured News Image Fix ===== */
@media (max-width: 768px) {
  .news-featured-large {
    min-height: auto !important;
    aspect-ratio: 16/9 !important;
    position: relative !important;
  }
  .news-featured-large img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: var(--bg-secondary) !important;
  }
  /* تعديل موضع النص ليكون أسفل الصورة وليس متداخلاً معها على الهاتف */
  .news-featured-large::after {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%) !important;
  }
}

/* ===== Ultimate Mobile News Modal Image Fix ===== */
@media (max-width: 768px) {
  #news-modal .modal-image {
    height: auto !important;
    max-height: 50vh !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    background: var(--bg-tertiary) !important;
  }
  #news-modal .modal-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: var(--bg-tertiary) !important;
  }
  #news-modal .gallery-btn {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }
}
