/* زر اقرأ المزيد في المدونة */
.blog-card .btn.btn-secondary {
  background: var(--gov-blue-dark);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.blog-card .btn.btn-secondary:hover {
  background: var(--gov-blue-medium);
  color: #fff !important;
}
/* =====================
   KYC Kuwait UI Enhancements 2025
   ===================== */
html, body {
  font-family: 'Cairo', 'Noto Kufi Arabic', system-ui, -apple-system, sans-serif;
  background: #f8f9fa;
  color: #222;
  margin: 0;
  padding: 0;
}

main.container, .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: #003366;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: bold;
}

p, ul, ol {
  font-size: 1.13rem;
  line-height: 2.1;
  margin-bottom: 1.1rem;
}

ul, ol {
  padding-right: 1.5rem;
}

.btn, button.btn, a.btn {
  background: #003366;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
  margin: 0.2rem 0.2rem 0.2rem 0;
}
.btn:hover, button.btn:hover, a.btn:hover {
  background: #005fa3;
  color: #fff;
}

/* Footer & Header spacing */
.main-footer, .main-nav {
  box-shadow: 0 2px 16px 0 rgba(0,51,102,0.04);
}
.main-footer {
  background: #003366;
  color: #fff;
  padding: 2.5rem 0 1.2rem 0;
  margin-top: 2.5rem;
}
.main-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
}
.main-footer .footer-about, .main-footer .footer-links, .main-footer .footer-important, .main-footer .footer-social {
  min-width: 180px;
  flex: 1 1 180px;
}
.main-footer .footer-bottom {
  border-top: 1px solid #e6e6e6;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #fff;
  font-size: 1rem;
}
.main-footer .footer-links ul li a, .main-footer .footer-important ul li a {
  font-size: 1.05rem;
}
.main-footer .footer-social i {
  font-size: 1.35rem;
  margin-left: 0.7rem;
  color: #fff;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
}
.main-footer .footer-social i:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* Responsive Design */
@media (max-width: 900px) {
  .main-footer .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  main.container, .container {
    padding: 0 0.5rem;
  }
}
@media (max-width: 600px) {
  h1, h2, h3, h4, h5, h6 {
    font-size: 1.2rem !important;
  }
  .btn, button.btn, a.btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
  .main-footer {
    padding: 1.2rem 0 0.7rem 0;
  }
}

/* Alerts & Messages */
.success-message, .error-message, .help-text {
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  margin: 0.7rem 0;
  font-size: 1rem;
}
.success-message {
  background: #e6f7e6;
  color: #198754;
  border: 1px solid #b6e2b6;
}
.error-message {
  background: #fbeaea;
  color: #dc3545;
  border: 1px solid #f5c2c7;
}
.help-text {
  background: #f8f9fa;
  color: #003366;
  border: 1px solid #e6e6e6;
}

/* Font Awesome icon size unification */
i.fa-brands, i.fa-solid {
  font-size: 1.15em;
  vertical-align: middle;
}
/* =====================
   Footer Unified Style
   ===================== */
.footer-links, .footer-important {
  margin-bottom: 1.5rem;
}
.footer-links h4, .footer-important h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.footer-links ul, .footer-important ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links ul li, .footer-important ul li {
  margin-bottom: 0.5rem;
}
.footer-links ul li a, .footer-important ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  padding-right: 0.3rem;
  display: flex;
  align-items: center;
}
.footer-links ul li a:hover, .footer-important ul li a:hover {
  color: #fbbf24;
  text-decoration: underline;
}
.footer-links ul li a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  display: inline-block;
  margin-left: 0.5rem;
  color: #fff;
  font-size: 0.95em;
}
/* ===============================================
   KYC KUWAIT - Official Government Style Theme v2.0
   Simple, Accessible, and Formal UI
   =============================================== */

/* ============ ROOT VARIABLES ============ */
:root {
  /* Official Kuwait Government Color Palette */
  --gov-blue-dark: #003366; /* Deep blue for headers and primary elements */
  --gov-blue-medium: #005a9e; /* A slightly lighter blue for accents */
  --gov-blue-light: #e6f0f7; /* Light blue for backgrounds and highlights */
  --gov-gold: #fbbf24;      /* Gold for accents, reflecting prestige */
  --gov-white: #ffffff;
  --gov-black: #212529;     /* Standard black for text */
  --gov-gray-dark: #013967;  /* Dark gray for secondary text */
  --gov-gray-light: #f8f9fa; /* Light gray for backgrounds */
  --gov-border: #dee2e6;     /* Standard border color */
  --gov-red-error: #dc3545;   /* For error states */
  --gov-green-success: #198754; /* For success states */

  /* Text Colors */
  --text-primary: var(--gov-black);
  --text-secondary: var(--gov-gray-dark);
  --text-accent: var(--gov-blue-medium);
  --text-inverse: var(--gov-white);

  /* Background Colors */
  --bg-primary: var(--gov-white);
  --bg-secondary: var(--gov-gray-light);
  --bg-accent: var(--gov-blue-light);
  
  /* Typography System */
  --font-primary: 'Cairo', 'Noto Kufi Arabic', system-ui, -apple-system, sans-serif;
  
  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius System */
  --radius-sm: 4px;
  --radius-md: 6px;
  
  /* Shadow System - Simplified and Subtle */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);

  /* Animation System */
  --transition-base: 0.2s ease-in-out;
}

/* ============ BASE RESET & GLOBAL STYLES ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust if nav height changes */
}


body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ltr-body {
  direction: ltr !important;
}

.ltr-main, .main-hero.ltr, .main-footer.ltr, .main-nav.ltr {
  direction: ltr !important;
}

.ltr .container, .ltr-main .container, .main-hero.ltr .container, .main-footer.ltr .container, .main-nav.ltr .container {
  text-align: left !important;
}

.ltr .hero-container, .main-hero.ltr .hero-container {
  text-align: left !important;
}

.ltr .hero-stats, .main-hero.ltr .hero-stats, .ltr .hero-actions, .main-hero.ltr .hero-actions {
  justify-content: flex-start !important;
}

.ltr .section-header, .ltr-main .section-header {
  text-align: left !important;
}

.ltr .footer-content, .main-footer.ltr .footer-content {
  flex-direction: row !important;
  text-align: left !important;
}

.ltr .footer-bottom, .main-footer.ltr .footer-bottom {
  text-align: left !important;
}

.ltr .about-grid, .ltr-main .about-grid {
  flex-direction: row !important;
  text-align: left !important;
}

.ltr .services-layout, .ltr-main .services-layout {
  flex-direction: row !important;
  text-align: left !important;
}

.ltr .contact-grid, .ltr-main .contact-grid {
  flex-direction: row !important;
  text-align: left !important;
}

a {
    text-decoration: none;
    color: var(--text-accent);
    transition: color var(--transition-base);
}

a:hover {
    color: var(--gov-blue-dark);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--gov-blue-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}

/* ============ LOADER ============ */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#global-loader .loader-icon {
    font-size: 3rem;
    color: var(--gov-blue-dark);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* ============ NAVIGATION ============ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--gov-border);
  box-shadow: var(--shadow-sm);
  transition: padding var(--transition-base);
  padding: var(--space-sm) 0;
}

.main-nav.scrolled {
    padding: var(--space-xs) 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gov-blue-dark);
}

.brand-identity .logo-image {
    max-height: 40px; /* Control the logo size */
    width: auto;
    transition: max-height var(--transition-base);
}

.main-nav.scrolled .brand-identity .logo-image {
    max-height: 30px; /* Slightly smaller logo when scrolled */
}

.brand-identity .logo-mark {
    font-size: 1.8rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-country {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base), color var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--bg-accent);
  color: var(--gov-blue-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.lang-switch {
    font-weight: 600;
    color: var(--text-secondary);
}

.login-btn {
    background-color: var(--gov-blue-dark);
    color: var(--text-inverse);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: background-color var(--transition-base);
}

.login-btn:hover {
    background-color: var(--gov-blue-medium);
    color: var(--text-inverse);
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile navigation behavior */
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex !important; /* Show hamburger on mobile with !important */
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
  }

  .nav-actions {
    display: flex; /* Keep login/language visible but smaller */
    gap: 0.5rem;
  }
  
  .login-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  /* Collapse menu by default */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    border-radius: 0 0 12px 12px;
  }

  .nav-menu.active {
    display: block !important; /* Opened state with !important */
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    margin: 0;
    list-style: none;
  }

  .nav-link {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .nav-link:hover {
    background-color: #f8fafc;
    color: #003366;
  }
}
/* ============ HERO SECTION ============ */
.main-hero {
  padding: var(--space-2xl) 0;
  background-color: var(--gov-blue-light);
  border-bottom: 1px solid var(--gov-border);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: right; /* Changed from center to right */
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: #dfbb00 !important; /* لون ذهبي للعنوان */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* ظل للنص لتحسين الوضوح */
}

.hero-title .title-main {
   color: #dfbb00 !important; /* لون ذهبي للعنوان الرئيسي */
}

.hero-title .title-accent {
   color: #dfbb00 !important; /* لون ذهبي للعنوان المميز */
}

.hero-description {
    font-size: 1.15rem;
    max-width: 550px;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    /* Removed margin-left and margin-right auto */
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    justify-content: flex-start; /* Changed from center */
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #dfbb00 !important; /* لون ذهبي للأرقام */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* ظل خفيف للأرقام */
}

.stat-label {
    font-size: 0.9rem;
    color: #dfbb00 !important; /* لون ذهبي للتسميات */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* ظل خفيف للتسميات */
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-start; /* Changed from center */
}

.primary-cta,
.secondary-cta {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.primary-cta {
    background-color: var(--gov-blue-dark);
    color: var(--text-inverse);
}

.primary-cta:hover {
    background-color: var(--gov-blue-medium);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.secondary-cta {
    background-color: var(--bg-primary);
    color: var(--gov-blue-dark);
    border-color: var(--gov-border);
}

.secondary-cta:hover {
    background-color: var(--bg-accent);
    border-color: var(--bg-accent);
}

/* ============ GENERAL SECTION STYLES ============ */
section {
    padding: var(--space-2xl) 0;
}

section:nth-of-type(odd) {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Improve initial render: skip offscreen sections until scrolled into view */
.about-section,
.services-section,
.packages-section,
.testimonials-section,
footer {
    content-visibility: auto;
    contain-intrinsic-size: 1000px 2000px;
}

/* ============ ABOUT SECTION ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: var(--space-lg);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.feature-list i {
    color: var(--gov-green-success);
    margin-top: 5px;
}

.about-visual img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

/* Prevent overflow in About/Vision list on small screens */
@media (max-width: 700px) {
  .about-content .feature-list li {
    white-space: normal; /* Allow wrapping */
    text-overflow: clip;
  }
}
/* ============ SERVICES SECTION ============ */
.services-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.services-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-visual .dashboard-preview {
    perspective: 1000px;
}

.services-visual .dashboard-image {
    width: 100%;
    max-width: 300px; /* Quarter of 300px */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gov-border);
    transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
    cursor: pointer;
}

.services-visual .dashboard-image:hover {
    transform: scale(1.15) rotateY(5deg);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--bg-primary);
    padding: var(--space-lg);
    border: 1px solid var(--gov-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gov-blue-medium);
    margin-bottom: var(--space-md);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

/* ============ PACKAGES SECTION ============ */
.packages-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f0ff 100%);
    position: relative;
    overflow: hidden;
}

.packages-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.02) 0%, transparent 70%);
    animation: floating 20s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(2deg); }
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.package-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #003366 0%, #0066cc 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.package-card:hover::before {
    transform: scaleX(1);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.15);
}

.package-card.featured {
    border: none;
    transform: scale(1.05);
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    color: white;
    position: relative;
}

.package-card.featured::after {
    content: 'الأكثر شيوعاً';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #fbbf24;
    color: #000;
    padding: 8px 40px;
    font-size: 0.85rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 3;
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.package-header {
    padding: 2rem 1.5rem 1.2rem;
    text-align: center;
    position: relative;
}

.package-card.featured .package-header {
    color: white;
}

.package-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #003366;
}

.package-card.featured .package-header h3 {
    color: white;
}

.package-price {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1rem;
}

.package-card.featured .package-price {
    color: rgba(255, 255, 255, 0.9);
}

.package-price span {
    font-size: 2.5rem;
    font-weight: 800;
    color: #003366;
    display: block;
    line-height: 1;
}

.package-card.featured .package-price span {
    color: white;
}

.package-body {
    padding: 1.2rem 1.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-body p {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.package-card.featured .package-body p {
    color: rgba(255, 255, 255, 0.9);
}

.package-features {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    flex-grow: 1;
}

.package-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #374151;
}

.package-card.featured .package-features li {
    color: rgba(255, 255, 255, 0.95);
}

.package-features i {
    color: #10b981;
    font-size: 1rem;
    min-width: 14px;
}

.package-card.featured .package-features i {
    color: #34d399;
}

.package-card .btn {
    width: 100%;
    margin-top: auto;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.package-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.package-card .btn:hover::before {
    left: 100%;
}

.package-card.featured .btn {
    background: white;
    color: #003366 !important;
}

.package-card.featured .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.package-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
}

/* تحسينات الاستجابة للجوال */
@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 900px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .package-card.featured {
        transform: none;
        order: -1;
    }
    
    .package-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .package-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .package-body {
        padding: 1rem 1.5rem 2rem;
    }
}

/* ============ CONTACT SECTION ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--gov-border);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gov-border);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gov-blue-medium);
    box-shadow: 0 0 0 3px var(--gov-blue-light);
}

.contact-info h3 {
    margin-bottom: var(--space-md);
    color: var(--gov-blue-dark);
    font-size: 1.4rem;
}

.contact-info p {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}

.contact-info li:hover i {
    color: #fbbf24 !important;
    transform: scale(1.1);
}

.contact-info li a {
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-info li:hover a {
    color: #fbbf24;
    text-decoration: underline;
}

/* تأثيرات خاصة لروابط الهاتف والإيميل */
.contact-info li a[href^="tel:"],
.contact-info li a[href^="mailto:"] {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-info li:hover a[href^="tel:"],
.contact-info li:hover a[href^="mailto:"] {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    text-decoration: none;
}

.social-links {
    margin-top: var(--space-lg);
}

.social-links a {
    font-size: 1.5rem;
    margin-inline-end: var(--space-md);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 51, 102, 0.05);
}

.social-links a:hover {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.social-links a i {
    transition: all 0.3s ease;
}

.social-links a:hover i {
    color: #fbbf24 !important;
}

/* ============ FOOTER ============ */
.main-footer {
    background: var(--gov-blue-dark);
    color: var(--text-inverse);
    padding: var(--space-xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.main-footer h4 {
    color: var(--gov-white);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--gov-gold);
    padding-bottom: var(--space-sm);
    display: inline-block;
}

.footer-social h4 {
    margin-bottom: var(--space-md);
}

.social-links-footer {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.social-links-footer a {
    color: var(--text-inverse);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
}

.social-links-footer a:hover {
    color: var(--gov-gold);
    background: rgba(251, 191, 36, 0.15);
    transform: translateY(-4px) scale(1.15);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    border-color: rgba(251, 191, 36, 0.3);
}

.social-links-footer a i {
    transition: all 0.3s ease;
}

.social-links-footer a:hover i {
    color: var(--gov-gold) !important;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #e0e0e0;
}

.footer-links a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: var(--space-md) 0;
    font-size: 0.9rem;
}

/* ============ MODAL ============ */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 450px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* نافذة منبثقة للاشتراك في الباقة */
.subscription-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s;
}
.subscription-modal.hidden { display: none; }
.subscription-modal .modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 95vw;
  width: 400px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  text-align: right;
}
.subscription-modal .close-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
}
.subscription-modal h3 {
  margin-bottom: 1rem;
  color: var(--gov-blue-dark);
  font-size: 1.3rem;
}
.subscription-modal .form-group {
  margin-bottom: 1rem;
}
.subscription-modal label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.subscription-modal input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.subscription-modal .btn {
  width: 100%;
  margin-top: 1rem;
}
.subscription-modal .success-message {
  color: var(--gov-green-success);
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
}

/* ============ UTILITIES ============ */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--gov-blue-dark);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background-color: var(--gov-blue-medium);
    color: var(--text-inverse);
}

.whatsapp-fab {
    position: fixed;
    bottom: 25px;
    left: 25px; /* For RTL */
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* Back to top button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--gov-blue-dark);
    color: var(--gov-white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.back-to-top-btn:hover {
    background-color: var(--gov-blue-medium);
}

/* ============ PAYMENT ICONS ============ */
.pay-icons {
      display: flex;
      justify-content: center;
      gap: 1.2rem;
      margin-bottom: 2rem;
    }
    /* زر الدفع مع محاذاة الأيقونة والنص بشكل صحيح */
    .pay-icon-btn {
      background: #f3f3f3;
      border: 2px solid #eee;
      border-radius: 12px;
      width: 56px;
      height: 56px;
      padding: 0 !important;
      cursor: pointer;
      color: #888;
      transition: border 0.2s, color 0.2s, background 0.2s;
      outline: none;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
.pay-icon-btn.selected, .pay-icon-btn:focus {
  border: 2px solid var(--gov-blue-medium);
  color: var(--gov-blue-dark);
  background: #e6f0f7;
}

/* جميع الأيقونات والصور تملأ الزر بالكامل بدون قص أو فراغ داخلي */
/* الأيقونات والصور تملأ الزر بالكامل بدون فراغات أو قص */
/* الأيقونات والصور تملأ الزر بالكامل بدون فراغات أو قص */
.pay-icon-btn i,
.pay-icon-btn svg {
  width: 100% !important;
  height: 100% !important;
  font-size: 2.6rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}
.pay-icon-btn img.knet-logo,
.pay-icon-btn img.hesabe-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* لإبقاء الأيقونة أو الصورة في المنتصف دائماً */
.pay-icon-btn > * {
  position: absolute;
  inset: 0;
}
.pay-icon-btn .fa-apple-pay { color: #000; }
.pay-icon-btn .fa-google-pay { color: #4285f4; }
.pay-icon-btn .fa-building-columns { color: #009688; }
.pay-icon-btn .fa-cc-mastercard { color: #eb001b; }
.pay-icon-btn .fa-cc-amex { color: #2e77bb; }
.pay-icon-btn .fa-cc-knet { color: #005baa; }
/* إزالة أي تكرار أو تداخل */

/* إخفاء النص داخل زر الدفع وإظهاره كـ tooltip عند المرور */

/* إلغاء ظهور اسم الأيقونة عند مرور الماوس */

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 992px) {
    .hero-container, .about-grid, .contact-grid, .services-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text, .about-content {
        order: 2;
    }

    .hero-visual, .about-visual {
        order: 1;
        margin-bottom: var(--space-xl);
    }

    .hero-description, .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions, .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none !important; /* Hide menu by default with !important */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 0;
        border-radius: 0 0 12px 12px;
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex !important; /* Show menu when active with !important */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav-link {
        display: block;
        text-align: right;
        width: 100%;
        border-radius: 0;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f3f4f6;
        color: #374151;
        text-decoration: none;
        font-weight: 500;
    }
    
    .nav-link:hover {
        background-color: #f8fafc;
        color: #003366;
    }

    .mobile-menu-toggle {
        display: flex !important; /* Show hamburger with !important */
        flex-direction: column;
        gap: 3px;
        padding: 8px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
        position: relative;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: #003366;
        transition: all 0.3s ease;
        transform-origin: center;
        display: block;
    }
    
    /* تحسين المحتوى للجوال */
    .main-hero {
        padding: 2rem 0;
        min-height: 280px;
    }
    
    .hero-content {
        padding: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .stat-item {
        background: rgba(255, 255, 255, 0.1);
        padding: 1rem 0.5rem;
        border-radius: 8px;
        backdrop-filter: blur(10px);
    }
    
    .stat-number {
        font-size: 1.5rem;
        font-weight: 700;
        color: #dfbb00;
        display: block;
    }
    
    .stat-label {
        font-size: 0.8rem;
        color: white;
        display: block;
        margin-top: 0.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .primary-cta, .secondary-cta {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 8px;
    }
}

/* --- Global responsive safety nets --- */
img, video, svg {
  max-width: 100%;
  height: auto;
}

/* Prevent text overflow on small devices */
h1, h2, h3, h4, h5, h6, p, .nav-link, .btn, .section-subtitle {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Fix RTL mobile menu alignment */
@media (max-width: 768px) {
  [dir="rtl"] .nav-menu {
    left: auto;
    right: 0;
  }
}

.pay-form-container {
  max-width: 400px;
  margin: 60px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 2rem 1.5rem;
  text-align: right;
}

/* إظهار نموذج الدفع المحدد فقط */
.pay-form {
  display: none !important;
}
.pay-form.active {
  display: block !important;
}

/* =====================
   Enhanced Footer Styles
   ===================== */

.footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #003366 100%);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 2.2fr;
  gap: 5rem;
  margin-bottom: 2rem;
}

.footer-brand .brand-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-brand .logo-image {
  border-radius: 50%;
}

.footer-brand .brand-text {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand .brand-country {
  font-size: 1rem;
  color: #cbd5e1;
}

.footer-description {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.footer-section h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  white-space: nowrap;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  white-space: nowrap;
  display: block;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.footer-section a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1.3rem;
}

.social-links a:hover {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
  border-color: rgba(251, 191, 36, 0.3);
}

.social-links a i {
  transition: all 0.3s ease;
}

.social-links a:hover i {
  color: #fbbf24 !important;
}

.footer-copyright-section {
  background: #1e293b;
  padding: 1.5rem 0;
  text-align: center;
  width: 100%;
}

.footer-copyright {
  text-align: center;
  width: 100%;
}

.footer-copyright p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer-main {
    gap: 4rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-section a {
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    padding-top: 1.5rem;
  }
  
  .footer-copyright-section {
    padding: 1.2rem 0;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-section h4 {
    white-space: normal;
  }
  
  .footer-section a {
    white-space: normal;
  }
  
  .footer-bottom {
    padding-top: 1.5rem;
  }
  
  .footer-copyright-section {
    padding: 1rem 0;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
}

/* ============ COMPARE PAGE STYLES ============ */
/* تنسيقات خاصة بصفحة المقارنة */

.compare-hero h1 {
  color: #dfbb00 !important; /* لون ذهبي لعنوان مقارنة باقات الاشتراك */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* ظل للنص */
}

.table-header h2 {
  color: #dfbb00 !important; /* لون ذهبي لعنوان مقارنة تفصيلية بين الباقات */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* ظل للنص */
}
