/* ==========================================================================
   CSS Variables - Luxury & Premium Design
   ========================================================================== */
:root {
  /* ألوان الهوية الملكية الفاخرة */
  --primary-color: #0d1e3d; /* كحلي ملكي عميق (Royal Deep Navy) */
  --primary-light: #182e5c; /* كحلي مضيء */
  --secondary-color: #c5a059; /* ذهبي عتيق فاخر (Antique Classic Gold) */
  --accent-color: #e5c17d; /* ذهبي فاتح للتأثيرات والتفاعلات */
  --bg-color: #fcfaf7; /* عاجي ملكي / كريمي دافئ ناعم جداً (Royal Ivory) */
  --bg-dark: #071329; /* أزرق داكن يقارب الأسود للفوتر والهيدر */
  --text-dark: #2c3545; /* لون النصوص الداكنة - كحلي رمادي مريح */
  --text-light: #ffffff; /* لون النصوص الفاتحة */
  --gray-light: #f3edd3; /* حدود ذهبية خفيفة جداً */
  --gray-border: rgba(197, 160, 89, 0.25); /* حدود ذهبية شفافة ومترفة */
  --gray-dark: #697386; /* نصوص ثانوية */
  
  /* تدرجات ألوان فاخرة */
  --gold-gradient: linear-gradient(135deg, #b38938 0%, #e5c17d 50%, #a0782d 100%);
  --gold-gradient-hover: linear-gradient(135deg, #c5a059 0%, #f1d89d 50%, #b38938 100%);
  --navy-gradient: linear-gradient(135deg, #0d1e3d 0%, #071329 100%);
  
  /* الخطوط */
  --font-heading: 'Amiri', serif;
  --font-body: 'Tajawal', sans-serif;
  
  /* انتقالات وتأثيرات بصرية راقية */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* انتقال ناعم جداً */
  --radius: 12px;
  --radius-sm: 6px;
  
  /* ظلال ناعمة للغاية */
  --shadow-sm: 0 4px 20px rgba(13, 30, 61, 0.03);
  --shadow: 0 15px 35px rgba(13, 30, 61, 0.05);
  --shadow-hover: 0 25px 55px rgba(197, 160, 89, 0.12); /* ظل متوهج بالذهبي */
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  letter-spacing: 0.2px;
}

/* تحسين شريط التمرير */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.4;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* ==========================================================================
   Elegant Dividers & Section Titles
   ========================================================================== */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--primary-color);
  display: inline-block;
  position: relative;
  padding-bottom: 20px;
}

/* فاصل كلاسيكي فاخر */
.section-title h2::after {
  content: "❖";
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--secondary-color);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-color);
  padding: 0 15px;
  z-index: 2;
}

.section-title h2::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

.section-title p {
  color: var(--gray-dark);
  margin-top: 25px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* ==========================================================================
   Buttons - Luxury styling
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 12px;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
  border: 1px solid var(--secondary-color);
}

.btn-primary:hover {
  background: var(--gold-gradient-hover);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.25);
}

.btn-whatsapp {
  background-color: #128c7e;
  color: #fff;
  border: 1px solid #128c7e;
}

.btn-whatsapp:hover {
  background-color: #25d366;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(7, 19, 41, 0.85);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--secondary-color);
}

.logo i {
  font-size: 2.2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text .logo-name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin: 0;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  display: block;
}

.logo-text .logo-sub {
  font-size: 0.75rem;
  color: var(--accent-color);
  letter-spacing: 1px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.mobile-toggle {
  display: none;
  font-size: 1.6rem;
  color: var(--secondary-color);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(rgba(7, 19, 41, 0.9), rgba(7, 19, 41, 0.95)), url('hero_bg.png') center/cover no-repeat;
  color: var(--text-light);
  padding: 160px 0 140px;
  text-align: center;
  position: relative;
  border-bottom: 2px solid var(--secondary-color);
}

/* تأثير خطوط ذهبية خفيفة في الخلفية كإطار ملوك */
.hero::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(197, 160, 89, 0.15);
  pointer-events: none;
}

.hero h1 {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.2rem;
  line-height: 1.6;
  padding-top: 15px;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero h2 {
  color: #fff;
  font-size: 2.2rem;
  font-family: var(--font-body);
  font-weight: 300;
  margin-bottom: 35px;
}

.hero p {
  font-size: 1.3rem;
  max-width: 850px;
  margin: 0 auto 45px;
  color: #d1d6e0;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.hero .btn-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.hero .btn-secondary:hover {
  background: var(--gold-gradient);
  color: var(--bg-dark);
}

.hero-note {
  font-size: 0.95rem;
  color: var(--accent-color);
  opacity: 0.8;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
  position: relative;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-top: -65px;
  position: relative;
  z-index: 10;
}

.stat-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 50px 35px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(197, 160, 89, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* تأثير خط الحواف الذهبي المترهل عند الهوفر */
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  transform: scaleX(0.2);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-color);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-icon {
  font-size: 3.2rem;
  margin-bottom: 25px;
  display: inline-block;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.stat-card p {
  color: var(--gray-dark);
  font-size: 1rem;
}

/* ==========================================================================
   Timeline / Comparison Section
   ========================================================================== */
.comparison {
  background-color: #ffffff;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.timeline-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  align-items: stretch;
}

.timeline-card {
  flex: 1;
  max-width: 480px;
  padding: 45px;
  border-radius: var(--radius);
  background-color: var(--bg-color);
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(197, 160, 89, 0.12);
  transition: var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow);
}

.timeline-card.wrong {
  border-top: 4px solid #c0392b;
}

.timeline-card.correct {
  border-top: 4px solid var(--secondary-color);
  background-color: rgba(197, 160, 89, 0.03);
}

.year-badge {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-family: var(--font-heading);
}

.timeline-card.wrong .year-badge {
  background-color: rgba(192, 57, 43, 0.08);
  color: #c0392b;
}

.timeline-card.correct .year-badge {
  background-color: rgba(197, 160, 89, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.timeline-card h3 {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.timeline-card p {
  color: var(--gray-dark);
}

.timeline-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--secondary-color);
  font-weight: bold;
  opacity: 0.6;
}

/* ==========================================================================
   Steps / Rules Section
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.step-card {
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.step-number {
  position: absolute;
  right: 25px;
  top: -20px;
  width: 45px;
  height: 45px;
  background: var(--gold-gradient);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.step-card h3 {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.step-card p {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.alert-box {
  background-color: rgba(197, 160, 89, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-right: 4px solid var(--secondary-color);
  padding: 25px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}

.alert-box i {
  color: var(--secondary-color);
  font-size: 1.8rem;
}

.alert-box div {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================================================
   Documents Section
   ========================================================================== */
.docs {
  background-color: #ffffff;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.doc-card {
  border: 1px solid var(--gray-border);
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 35px 25px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--secondary-color);
  background-color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.doc-icon {
  background: var(--gold-gradient);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.2);
}

.doc-card:hover .doc-icon {
  background: var(--navy-gradient);
  color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(13, 30, 61, 0.2);
}

.doc-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.doc-content p {
  font-size: 0.95rem;
  color: var(--gray-dark);
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-container {
  max-width: 850px;
  margin: 50px auto 0;
}

.accordion-item {
  background-color: #ffffff;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: var(--secondary-color);
}

.accordion-header {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #ffffff;
  transition: var(--transition);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  font-weight: 600;
}

.accordion-icon {
  color: var(--secondary-color);
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow);
}

.accordion-item.active .accordion-header {
  background: var(--navy-gradient);
}

.accordion-item.active .accordion-header h3 {
  color: var(--accent-color);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.accordion-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background-color: #ffffff;
}

.accordion-content p {
  padding: 24px 0;
  color: var(--gray-dark);
  font-size: 1rem;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
}

/* ==========================================================================
   Call to Action Section
   ========================================================================== */
.cta {
  background: var(--navy-gradient);
  color: var(--text-light);
  text-align: center;
  padding: 100px 0;
  position: relative;
  border-top: 3px solid var(--secondary-color);
  border-bottom: 3px solid var(--secondary-color);
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+CjxyZWN0IHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgZmlsbD0iIzBiMWMzZiI+PC9yZWN0Pgo8cGF0aCBkPSJNMCAwbDQwIDQwbC00MCA0MHoiIGZpbGw9IiMxMTIyNDYiPjwvcGF0aD4KPHBhdGggZD0iTTgwIDBsLTQwIDQwbDQwIDQweiIgZmlsbD0iIzExMjI0NiI+PC9wYXRoPgo8L3N2Zz4=') center/cover;
  opacity: 0.08;
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 750px;
  margin: 0 auto;
}

.cta h2 {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.8rem;
  margin-bottom: 25px;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: #d1d6e0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 25px;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-about .logo {
  margin-bottom: 25px;
}

.legal-notice {
  font-size: 0.88rem;
  color: #b0b8c6;
  line-height: 1.9;
}

.footer-title {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-family: var(--font-heading);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 1.5px;
  background-color: var(--secondary-color);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b0b8c6;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-right: 8px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #b0b8c6;
}

.footer-contact i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.social-links a:hover {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 25px;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  font-size: 0.9rem;
  color: #b0b8c6;
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
.footer-legal-links {
  display: flex;
  gap: 20px;
}
.footer-legal-links a {
  color: #b0b8c6;
  transition: var(--transition);
  font-size: 0.85rem;
  text-decoration: none;
}
.footer-legal-links a:hover {
  color: var(--secondary-color);
}


/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 35px;
  left: 35px;
  width: 50px;
  height: 50px;
  background: var(--gold-gradient);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--navy-gradient);
  color: var(--accent-color);
  transform: translateY(-5px);
  border: 1px solid var(--secondary-color);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Inner Pages Styles
   ========================================================================== */
.page-header {
  background: var(--navy-gradient);
  color: var(--text-light);
  padding: 100px 0;
  text-align: center;
  position: relative;
  border-bottom: 2px solid var(--secondary-color);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(197, 160, 89, 0.15);
  pointer-events: none;
}

.page-header h1 {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.2rem;
  position: relative;
  z-index: 10;
  font-weight: 700;
}

.page-header p {
  color: #d1d6e0;
  font-size: 1.15rem;
  margin-top: 15px;
  position: relative;
  z-index: 10;
  font-weight: 300;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 50px;
}

.contact-info-card {
  background-color: #ffffff;
  padding: 50px 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 35px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.contact-item-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-item-content p {
  color: var(--gray-dark);
}

.contact-form-card {
  background-color: #ffffff;
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
}

.form-group {
  margin-bottom: 25px;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-color);
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 160px;
}

/* Services Page */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.service-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 50px 35px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-border);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-color);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card.featured {
  border-color: var(--secondary-color);
  background: var(--navy-gradient);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.service-card.featured::after {
  background: var(--gold-gradient);
  transform: scaleX(1);
}

.service-card.featured h3 {
  color: var(--accent-color);
}

.service-card.featured p {
  color: #b0b8c6;
}

.service-icon {
  font-size: 3.2rem;
  display: inline-block;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  font-weight: 700;
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 2px;
  background-color: var(--secondary-color);
}

.about-text p {
  margin-bottom: 25px;
  color: var(--gray-dark);
  font-size: 1.1rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  outline: 1px solid var(--secondary-color);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover img {
  transform: scale(1.06);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.value-card {
  background-color: #ffffff;
  padding: 40px 25px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.value-card i {
  font-size: 2.8rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  display: inline-block;
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.team-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-color);
}

.team-image {
  background: var(--navy-gradient);
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 4.5rem;
  position: relative;
}

.team-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--secondary-color);
}

.team-info {
  padding: 30px 20px;
}

.team-info h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.team-info p {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.team-info span {
  color: var(--gray-dark);
  font-size: 0.9rem;
  display: block;
  line-height: 1.6;
}

/* ==========================================================================
   Achievements Section
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.achievement-card {
  background-color: var(--bg-color);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 45px 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(197, 160, 89, 0.4);
}

.achievement-card:hover::before {
  transform: scaleX(1);
}

.achievement-icon {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  opacity: 0.9;
}

.achievement-number {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.achievement-card p {
  color: var(--gray-dark);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ==========================================================================
   Why Us Section
   ========================================================================== */
.why-us {
  position: relative;
  overflow: hidden;
}

.why-us-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.why-us-text {
  background: #ffffff;
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
}

.why-us-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.why-us-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.why-us-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.why-us-list li i {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-top: 4px;
}

/* ==========================================================================
   Legal Framework & Latest Articles
   ========================================================================== */
.legal-framework-section .timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.timeline-item {
  background: var(--bg-color);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  position: relative;
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-color);
}

.timeline-item .year {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.timeline-item.highlighted {
  border-color: var(--secondary-color);
  background: rgba(197, 160, 89, 0.05);
}

.timeline-item.success {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.05);
}

.timeline-item.success .year {
  background: #2ecc71;
  color: #fff;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.article-card {
  background: var(--bg-color);
  padding: 30px 25px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-color);
}

.article-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.article-card a {
  color: var(--secondary-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-card a:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .about-content, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero h1 {
    font-size: 3.3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 30px 0;
    box-shadow: 0 15px 30px rgba(7, 19, 41, 0.95);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 20px;
    border-bottom: 1px solid var(--gray-border);
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .btn-header {
    display: none;
  }
  
  .btn-header-mobile {
    display: block !important;
  }
  
  .hero h1 {
    font-size: 2.6rem;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .timeline-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .timeline-card.wrong, .timeline-card.correct {
    border-right: none;
    border-top: 4px solid;
  }
  
  .timeline-card.wrong {
    border-top-color: #c0392b;
  }
  
  .timeline-card.correct {
    border-top-color: var(--secondary-color);
  }
  
  .timeline-vs {
    margin: 10px 0;
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }
  
  .section {
    padding: 60px 0;
  }
}

/* ==========================================================================
   Responsive Article Content & General Container Improvements
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

/* تحسين تجاوب محتوى المقالات الديناميكي (TinyMCE) */
.article-content img {
  max-width: 100% !important;
  height: auto !important;
}

.article-content table {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.article-content iframe, 
.article-content video, 
.article-content embed {
  max-width: 100% !important;
  width: 100% !important;
}

.article-content pre, 
.article-content code {
  white-space: pre-wrap;
  word-break: break-all;
}

.article-content a {
  word-break: break-all;
}

/* شعار ورقم ترخيص المحاماة في الفوتر */
.license-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(197, 160, 89, 0.2);
  width: fit-content;
  transition: var(--transition);
}
.license-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--secondary-color);
}
.license-badge img {
  height: 45px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #fff;
}
.license-badge i {
  font-size: 1.3rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.license-badge span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}



/* ==========================================================================
   زر واتساب العائم (Floating WhatsApp Button)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 35px;
  right: 35px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.7);
}

@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    bottom: 25px;
    right: 20px;
  }
}
