/* ==========================================================================
   1. Reset & General Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #1e3a8a;
  --secondary-color: #2563eb;
  --accent-color: #ffc107;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #0f172a;
  --text-muted: #6c757d;
  --radius: 12px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Cairo",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   2. Navbar Styles
   ========================================================================== */
.navbar {
  background-color: var(--card-bg);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: translateY(-2px);
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--primary-color);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.logo-container:hover .logo-icon {
  color: var(--secondary-color);
  transform: scale(1.08);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-color);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.logo-container:hover .logo-text {
  color: var(--secondary-color);
}

.desktop-only {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  padding: 10px 0;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  transition: color 0.25s ease;
}

.dropdown-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-btn {
  color: var(--secondary-color);
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 230px;
  background-color: var(--card-bg);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #eff6ff;
  color: var(--secondary-color);
  transform: translateX(-4px);
}

.btn-hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.btn-hotline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Hamburger & Mobile Menu Base */
.hamburger-btn {
  display: none;
  color: #1e293b;
  padding: 8px;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.hamburger-btn:hover {
  background-color: #f1f5f9;
  color: var(--secondary-color);
}

.hamburger-btn svg {
  width: 28px;
  height: 28px;
}

.mobile-menu {
  display: none;
  background-color: var(--card-bg);
  border-top: 1px solid #f1f5f9;
  padding: 14px 20px 20px;
}

.mobile-menu.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  color: #1e293b;
  transition: all 0.2s ease;
}

.mobile-link:hover {
  background-color: #eff6ff;
  color: var(--secondary-color);
}

.mobile-dropdown-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: #1e293b;
  font-weight: 700;
  border-radius: 8px;
}

.mobile-dropdown-menu {
  display: none;
  padding-right: 12px;
  background-color: var(--bg-color);
  border-radius: 8px;
  margin-top: 4px;
}

.mobile-dropdown-menu.active {
  display: block;
}

.mobile-sublink {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

.btn-hotline-mobile {
  display: block;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 800;
  margin-top: 14px;
}

/* ==========================================================================
   3. Page Layout & Content Components
   ========================================================================== */
.main-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #ffffff;
  padding: 30px 15px;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.main-header h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.main-header .subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hotlines-header {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hotline-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-content {
  padding: 20px 0;
}

.content-block {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.content-block h2 {
  color: var(--secondary-color);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 15px;
  border-right: 4px solid var(--secondary-color);
  padding-right: 10px;
}

.content-block h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin: 18px 0 10px;
}

.content-block p {
  color: #495057;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.styled-list {
  list-style: none;
  margin: 15px 0;
}

.styled-list li {
  position: relative;
  padding-right: 25px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.styled-list li::before {
  content: "✔";
  position: absolute;
  right: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.category-card {
  display: flex;
  flex-direction: row;
  background: var(--card-bg);
  border: 1px solid #e9ecef;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.category-card .card-image {
  position: relative;
  width: 40%;
  min-height: 180px;
}

.category-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: #000000;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 20px;
}

.category-card .card-body {
  padding: 15px;
  width: 60%;
}

.hotlines-section {
  background: #f1f5f9;
  padding: 15px;
  border-radius: var(--radius);
  margin: 20px 0;
}

.hotlines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.hotline-card {
  background: var(--card-bg);
  padding: 12px 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hotline-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.hotline-info small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.call-btn {
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s ease-in-out;
}

.call-btn:hover {
  background: #0b5ed7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.info-card {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.info-card i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   4. Media Queries (التجاوب الكامل)
   ========================================================================== */

/* للشاشات المتوسطة والتابلت (أقل من 992px) */
@media (max-width: 992px) {
  .desktop-only {
    display: none; /* إخفاء عناصر الديسكتوب */
  }

  .hamburger-btn {
    display: block; /* إظهار زر القائمة للموبايل */
  }

  .nav-container {
    padding: 10px 16px;
  }
}

/* للشاشات الصغيرة والموبايل (أقل من 768px) */
@media (max-width: 768px) {
  .category-card {
    flex-direction: column;
  }

  .category-card .card-image {
    width: 100%;
    height: 200px;
  }

  .category-card .card-body {
    width: 100%;
  }

  .content-block {
    padding: 15px;
  }

  .hotlines-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hotline-badge {
    width: 100%;
    justify-content: center;
  }
}

/* للشاشات الصغيرة جداً (أقل من 480px) */
@media (max-width: 480px) {
  .hotline-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }

  .call-btn {
    width: 100%;
    text-align: center;
  }

  .main-header {
    padding: 20px 10px;
    border-radius: 0 0 12px 12px;
  }
}
/* SEO Card Styles */
.seo-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  direction: rtl;
}

.seo-keywords-title {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 12px;
}

.seo-keywords-intro {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* SEO Grid */
.seo-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.seo-tag-box {
  background: #f8fafc;
  border-right: 4px solid #2563eb;
  padding: 16px;
  border-radius: 6px;
}

.seo-tag-box h3 {
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.seo-tag-box p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.8;
}

.seo-tag-box strong {
  color: #2563eb;
}

/* Data Table Styles */
.seo-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}

.seo-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}

.seo-data-table th,
.seo-data-table td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
}

.seo-data-table th {
  background-color: #f1f5f9;
  color: #1e293b;
}

.table-link {
  color: #2563eb;
  font-weight: bold;
  text-decoration: none;
}

/* Expanded Tags Cloud List */
.seo-queries-list h4 {
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 12px;
}

.seo-queries-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-queries-list li {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  transition: background-color 0.2s ease;
}

.seo-queries-list li:hover {
  background: #dbeafe;
}
/* Legal Section Glassmorphism Design */
.seo-container .legal-section {
  background: #1e293b;
  color: #f8fafc;
  border-right: 6px solid #38bdf8;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}
.legal-tab-content {
  display: none;
}

.legal-tab-content.active {
  display: block !important;
}
.seo-container .legal-tabs-nav {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid #334155;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.seo-container .legal-tab-btn {
  background: #334155;
  color: #94a3b8;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.seo-container .legal-tab-btn:hover {
  background: #475569;
  color: #ffffff;
}

.seo-container .legal-tab-btn.active {
  background: #38bdf8;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.seo-container .legal-tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.seo-container .legal-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.seo-container .legal-title {
  color: #38bdf8;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.seo-container .legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.seo-container .legal-box {
  background: #0f172a;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #334155;
}

.seo-container .legal-box h4 {
  color: #f1f5f9;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.seo-container .legal-box p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.seo-container .legal-notice-box {
  background: rgba(245, 158, 11, 0.1);
  border-right: 4px solid #f59e0b;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #fef3c7;
}

.seo-container .legal-list {
  list-style-type: none;
  padding: 0;
}

.seo-container .legal-list li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 10px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.seo-container .legal-list li::before {
  content: "✦";
  position: absolute;
  right: 0;
  color: #38bdf8;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
  .seo-container {
    padding: 0 15px;
  }
  .seo-container .seo-card,
  .seo-container .keywords-card,
  .seo-container .legal-section {
    padding: 20px 15px;
  }
  .seo-container .card-title {
    font-size: 1.3rem;
  }
  .seo-container .legal-tabs-nav {
    flex-direction: column;
  }
  .seo-container .legal-tab-btn {
    width: 100%;
    text-align: center;
  }
  .seo-container .hotline-numbers {
    flex-direction: column;
    align-items: center;
  }
  .seo-container .hotline-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}
/* ==========================================================================
   Footer Styles (Matching Navbar Design Language)
   ========================================================================== */
.footer {
  background-color: #0f172a;
  color: #f8fafc;
  padding-top: 50px;
  margin-top: 60px;
  border-top: 4px solid #2563eb;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 32px;
}

/* Footer Brand */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  color: #3b82f6;
}

.footer-logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer Titles */
.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background-color: #2563eb;
  border-radius: 4px;
}

/* Footer Link Lists */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #60a5fa;
  transform: translateX(-5px);
}

/* Hotline Cards */
.hotline-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-hotline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #1e293b;
  border: 1px solid #334155;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-hotline-card:hover {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.card-icon {
  font-size: 1.2rem;
}

.card-details {
  display: flex;
  flex-direction: column;
}

.phone-number {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.phone-label {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-hotline-card:hover .phone-label {
  color: #e2e8f0;
}

/* Footer Bottom Bar */
.footer-bottom {
  background-color: #020617;
  padding: 18px 24px;
  border-top: 1px solid #1e293b;
  text-align: center;
}

.bottom-container p {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Responsive Styles for Mobile */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}
/* منع تحديد وتظليل النصوص في الصفحة بالكامل */
body {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE / Edge */
  user-select: none; /* Standard */
}

/* استثناء حقول المدخلات لتسمح للمستخدم بالكتابة داخلها بشكل طبيعي */
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
