/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {min-width: 412px; margin: 0; font-family: var(--font-stack, 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif); font-size: 16px; line-height: 1.6; color: var(--text-primary); background: var(--bg-primary); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

/* 🌗 Theme Toggle (Light / Dark Mode) */
.theme-toggle {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.theme-toggle:hover {
  background: color-mix(in srgb, var(--primary-color) 85%, black 15%);
  transform: rotate(20deg);
}
a{ text-decoration: none; }
.price-wra{
  display: flex;
  flex-direction: column;
  align-items: center;
  
}
.con{
  margin-bottom: 50px;
}
.section-title{
  font-size: 1.5rem;
  font-weight: 800;
  text-align: right;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* 🌞 الوضع النهاري */
body.light {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #000000;
  --text-secondary: #000000;
  --accent-color: #f59e0b;
  --primary-color: #2563eb;
  --secondary-color: #7c3aed;
  --bg-dark: #ffffff;
  --rev: #f8fafc;
  --body: #2563eb;
  --img: rgb(0, 0, 0);
  --acccent-color: #0b70f5;
}

/* 🌙 الوضع الليلي */
body.dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #f1f5f9;
  --accent-color: #facc15;
  --primary-color: #38bdf8;
  --secondary-color: #818cf8;
  --bg-dark: #020617;
  --rev: #0f172a;
  --body:#38bdf8;
  --img :rgba(255,255,255,0.5);
  --acccent-color: #facc15;
}

/* CSS variables */
:root{
  --primary-color: #2563eb;
  --secondary-color: #7c3aed;
  --accent-color: #f59e0b;
  --text-primary: #ffffff;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-dark: #0b1220;
  --success: #16a34a;
  --error: #ef4444;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 48px;

  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 28px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 6px rgba(12, 18, 31, 0.06);
  --shadow-md: 0 6px 18px rgba(12, 18, 31, 0.12);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.12);

  --transition-speed: 0.28s;
}

/* Utilities */
.container { 
  max-width: 1100px; 
  margin-inline: auto; 
  padding-inline: 16px; 
  width: auto;
  min-width: 412px;
 
}


.containr { 
  max-width: 1100px; 
  margin-inline: auto; 
  padding-inline: 16px; 
  width: 100%;
  
}
.مجانا{ 

  font-size: 25px;
  font-weight: 800;
  color: var(--acccent-color);
}
.m{
  border: 4px solid var(--primary-color);
  width: 250px;
  border-radius: 20px;
  height: auto;
  
}
.ms{
  border: 4px solid var(--primary-color);
  width: 250px;
  border-radius: 20px;
  height: auto;
  margin-top: 28px;
  
}
.b{
  margin-top: 20px;
}


.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.mb-0{ margin-bottom: 0; }
.section.live { text-align: center;align-items: center; padding: 2.5rem 0; }
.live-actions { display: inline-block; margin-top: 1rem; }
.btn-zoom.disabled { opacity: 0.45; pointer-events: none; cursor: default; }
.zoom-note { display: block; margin-top: 0.5rem; color: #666; font-size: 0.95rem; }
.zoom-schedule { display: block; margin-top: 0.25rem; color: var(--text-secondary); font-size: 0.95rem; }

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 16px); 
  border-radius: var(--radius-md); 
  cursor: pointer; 
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease; 
  font-size: clamp(0.9rem, 2vw, 1rem);
  white-space: nowrap;
}
.btn:focus { 
  outline: 3px solid rgba(37,99,235,0.12); 
  outline-offset: 2px; 
}
.btn-primary { 
  background: var(--accent-color); 
  color: #111827; 
  box-shadow: var(--shadow-sm); 
  font-weight: 700; 
}
.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-md); 
  background: color-mix(in srgb, var(--accent-color) 85%, black 15%); 
}
.btn-secondary{ background: transparent; border: 1px solid rgba(15,23,42,0.06); color: var(--text-primary); }
.btn-secondary:hover{ transform: translateY(-2px); }
.pic{
 columns: 3;

 margin: 30px;
 gap: 20px;
}
.pic img{
 border-radius: 8px;
 padding: 3px;
 margin-bottom: 22px;
 border: 3px solid var(--img);
 transition: .3s ease;
}
.pic img:hover{
  transform: scale(1.05);
  
}


/* Header (Glass / Blur effect) */
.site-header {
  position: sticky; 
  top: 0; 
  z-index: 10000000000; 
  background: rgba(255,255,255,0.15); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px; 
  padding: 14px 16px; 
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.hero { 
  padding-block: 48px 36px; 
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(124,58,237,0.03)); 
  width: 100%;
}

.hero-inner { 
  display: grid; 
  grid-template-columns: 0.8fr 1fr; 
  gap: 24px; 
  align-items: center; 
}

.hero-content { 
  text-align: right; 
}

.hero-title { 
  font-size: clamp(1.5rem, 5vw, 2.8rem); 
  margin: 0 0 12px; 
  color: var(--text-primary); 
  font-weight: 800; 
}

.hero-sub { 
  margin: 0 0 5px; 
  color: var(--text-secondary); 
  font-size: clamp(0.95rem, 2vw, 1rem);
  padding: 12px 16px; 
  background: rgba(37, 99, 235, 0.05); 
  border-radius: 8px; 
  line-height: 1.8;
}

.hero-ctas { 
  display: flex; 
  gap: 12px; 
  justify-content: flex-start; 
  flex-wrap: wrap;
}

.hero-placeholder { 
  background: transparent; 
  border-radius: 50%; 
  height: auto; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--text-light); 
  box-shadow: none; 
  width: 100%;
  max-width: 200px;
}

.hero-placeholder img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
}

/* Mobile responsive for hero section */
@media (max-width: 767px) {
  .hero-inner {
    grid-template-columns: 1fr 0.8fr;
  }
  
  .hero-media {
    order: 1;
  }
  
  .hero-ctas {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

/* About */
.about .about-grid { 
  display: grid; 
  gap: 20px; 
  grid-template-columns: 1fr; 
  align-items: start; 
}

.about-text p { 
  margin: 0 0 12px; 
  color: var(--text-secondary); 
  font-size: clamp(0.95rem, 2vw, 1rem);
}

.about-details ul{ list-style:none; padding: 0; margin:0; }
.about-details li{ padding: 4px 0; color: var(--text-secondary); }
.pp{font-size: 15px;}

/* Light mode override for About section */
body.light .about-text p { color: #333333; }
body.light .about-details li { color: #333333; }

/* Instructor Section */
.instructor .instructor-grid { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: 800px; margin: 0 auto; }
.instructor-card { 
  background: var(--bg-secondary); 
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  box-shadow: var(--shadow-md); 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 24px; 
  padding: clamp(16px, 5vw, 28px); 
  align-items: center; 
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; 
}
.instructor-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-lg); 
}
.instructor-image { 
  text-align: center; 
}
.instructor-image img { 
  width: 100%; 
  max-width: 200px; 
  height: auto; 
  aspect-ratio: 1; 
  border-radius: 12px; 
  object-fit: cover; 
  box-shadow: var(--shadow-md); 
}
.instructor-content { 
  text-align: right; 
  
}
.instructor-name { 
  font-size: clamp(1.25rem, 4vw, 1.5rem); 
  font-weight: 800; 
  color: var(--text-primary); 
  margin: 0 0 6px; 
}
.instructor-title { 
  font-size: clamp(0.95rem, 3vw, 1.1rem); 
  color: var(--primary-color); 
  margin: 0 0 12px; 
  font-weight: 600; 
}
.instructor-bio { color: var(--text-secondary); line-height: 1.8; margin: 0 0 16px; }
.instructor-socials { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* Mobile responsive for instructor card */
@media (max-width: 767px) {
  .instructor-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .instructor-image {
    order: -1;
  }
}
.social-link { display: inline-flex; align-items: center; gap: 6px;margin-right: 25px; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; }
.social-link span { display: none; }
.social-link::before { 
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.social-link.facebook { background: rgba(24, 119, 242, 0.1); color: #1877f2; }
.social-link.facebook::before { 
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/b/b9/2023_Facebook_icon.svg');
}

.social-link.instagram { background: rgba(217, 48, 128, 0.1); color: #d930a0; }
.social-link.instagram::before { 
background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/e7/Instagram_logo_2016.svg');
}

.social-link.tiktok { background: rgba(17, 26, 160, 0.1); color: #000; }
.social-link.tiktok::before { 
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/3/34/Ionicons_logo-tiktok.svg');
}

.social-link.behance { background: rgba(0, 87, 255, 0.1); color: #0057ff; }
.social-link.behance::before { 
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/d/dd/Ionicons_logo-behance.svg');
}

.social-link:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* Features grid */
.features-grid { 
  display: grid; 
  gap: 18px; 
  grid-template-columns: 1fr; 
  padding: 0 8px;
}

.feature-card {
  background: var(--bg-secondary);
  padding: clamp(16px, 4vw, 18px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: right;
  color: var(--text-primary);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.feature-icon { 
  font-size: clamp(28px, 6vw, 36px); 
  margin-bottom: 10px; 
}
.feature-card h3 { 
  margin: 0 0 8px; 
  font-size: clamp(1rem, 3vw, 1.1rem);
}
.feature-card p { 
  margin: 0; 
  color: var(--text-secondary); 
  font-size: clamp(0.9rem, 2.5vw, 0.95rem);
}


/* Pricing wrapper */
.pricing-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 0 16px;
}


.pricing-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  padding: clamp(20px, 5vw, 28px);
  width: 100%;
  max-width: 350px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 400px;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.pricing-card .package { 
  font-size: clamp(1rem, 3vw, 1.25rem); 
  font-weight: 700; 
  margin-bottom: 12px; 
  color: var(--primary-color); 
}
.pricing-card .price { 
  font-size: clamp(1.5rem, 4vw, 1.75rem); 
  font-weight: 700; 
  color: var(--text-primary); 
}
.pricing-card .price-note { font-size: 14px; color: #999; margin-bottom: 0; }
.pricing-card .included { list-style: none; padding: 0; margin: 0 0 20px 0; }
.pricing-card .included li { margin-bottom: 10px; font-size: 14px; color: var(--text-secondary); }
.pricing-card .buy-now {
  display: inline-block;
  padding: 12px 22px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}
.pricing-card .buy-now:hover {
  background: color-mix(in srgb, var(--primary-color) 85%, black 15%);
  transform: scale(1.05);
}

/* Dark Mode for pricing cards */
body.dark .pricing-card {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
body.dark .pricing-card .price { color: var(--accent-color); }
body.dark .pricing-card .price-note { color: #ccc; }
body.dark .pricing-card .included li { color: var(--text-secondary); }
body.dark .pricing-card .buy-now { background: var(--primary-color); color: #fff; }
body.dark .pricing-card .buy-now:hover { background: color-mix(in srgb, var(--primary-color) 85%, black 15%); }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--bg-dark));
  color: #ffffff;
  padding-block: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.site-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: -150px;
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  opacity: 0.05;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: #000 0 0 60px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
  position: relative;
  z-index: 1;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  margin-bottom: 2rem;
}

.footer-section {
  text-align: right;
}

.footer-section h3 {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  transition: color var(--transition-speed) ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

.footer-socials {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1rem);
  align-items: center;
 
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 8vw, 40px);
  height: clamp(36px, 8vw, 40px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.footer-social-link:hover {
  background: var(--accent-color);
  color: #111827;
  transform: translateY(-3px);
}

.footer-links-bottom {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  transition: color var(--transition-speed) ease;
}

.footer-links-bottom a:hover {
  color: var(--accent-color);
}

/* Footer helper classes */
.d-footer {
  display: flex;
  padding-right: 150px;
  padding-bottom: 10px;
}

.dev-credit {
  color: var(--text-primary);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.body {
  color: var(--body);
  font-size: clamp(1rem, 3vw, 1.2rem);
}

/* Dark mode for footer */
body.dark .site-footer {
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(2, 6, 23, 0.95) 100%);
}

body.dark .footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

body.dark .footer-copyright {
  color: rgba(255, 255, 255, 0.7);
}

/* Navigation Bar */
.branding .logo{ 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  text-decoration: none; 
  color: var(--text-primary); 
}

.logo-mark{ 
  font-weight: 800; 
  font-size: 1.25rem; 
  background: var(--primary-color); 
  color: #fff; 
  padding: 6px 10px; 
  border-radius: 6px; 
}

.logo-text{ 
  font-weight: 700; 
  font-size: 1.05rem; 
}

.nav-list{ 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  gap: 14px; 
  align-items: center; 
}

.nav-list a{ 
  color: var(--text-primary); 
  text-decoration: none; 
  padding: 8px 10px; 
  border-radius: 8px; 
  transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease; 
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-list a:hover, 
.nav-list a:focus{ 
  background: rgba(37, 99, 235, 0.06); 
  color: var(--primary-color); 
}

.nav-toggle { 
  display: none; 
  background: transparent; 
  border: none; 
  font-size: 20px; 
  cursor: pointer;
  color: var(--text-primary);
  padding: 8px;
}

/* Restore navbar to always show (desktop-like) and hide toggle */
.nav-toggle {
  display: none !important;
}

/* Ensure nav-list remains horizontal and visible on all sizes */
.nav-list {
  position: static !important;
  display: flex !important;
  flex-direction: row !important;
  gap: clamp(8px, 2vw, 14px);
  padding: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  flex-wrap: wrap;
  justify-content: center;
}

/* Prevent header collapsing to column to keep nav inline */
.header-inner {
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
}

/* Mobile touch-friendly spacing for nav links */
@media (max-width: 767px) {
  .nav-list a {
    padding: 8px 10px;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    white-space: nowrap;
  }
  
  .header-inner {
    padding: 12px 8px !important;
  }
  
  .branding .logo {
    gap: 6px;
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }
  
  .logo-mark {
    font-size: 1rem;
    padding: 4px 8px;
  }
  
  .logo-text {
    font-size: 0.9rem;
  }
  
  .nav-list {
    width: 100%;
    justify-content: center;
    gap: clamp(6px, 1.5vw, 10px);
  }
  
  .theme-toggle {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }
}

/* Update Picture Grid */
.pic {
  columns: 3;
  margin: clamp(15px, 5vw, 30px);
  gap: 20px;
  width: calc(100% - 32px);
}

.pic img {
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 22px;
  border: 3px solid var(--img);
  transition: 0.3s ease;
  width: 100%;
}

.pic img:hover {
  transform: scale(1.05);
}

/* Responsive adjustments for videos section */
.videos-section { padding-block: 40px; }
.videos-section .section-title { text-align: right; font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }

.videos-grid { 
  display: grid; 
  gap: 18px; 
  grid-template-columns: repeat(3, 1fr); 
  align-items: center;
  width: 100%;
  padding: 0 8px;
}
.video-card { 
  background: var(--bg-secondary); 
  border-radius: var(--radius-md); 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; 
  text-align: right; 
  display: flex; 
  flex-direction: column; 
  width: 100%;
}
.video-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-md); 
}

.video-thumb { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 16/9; 
  display: block; 
  background: #000; 
}

.video-meta { 
  padding: 12px 14px; 
  color: var(--text-secondary); 
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.video-title { 
  font-weight: 700; 
  color: var(--text-primary); 
  margin-bottom: 6px; 
  font-size: clamp(0.95rem, 2.5vw, 1rem);
}

/* Placeholder when empty */
.videos-empty {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.02);
  color: var(--text-secondary);
  text-align: right;
}

/* Responsive: 2 cols on medium, 1 col on small */
@media (max-width: 1023px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .videos-grid { grid-template-columns: 1fr; } }

/* Dark mode tweaks */
body.dark .video-card { background: var(--bg-secondary); box-shadow: 0 8px 25px rgba(0,0,0,0.45); }
body.dark .video-title { color: var(--text-primary); }
body.light .video-title { color: var(--text-primary); }

/* Responsive */
@media (max-width: 900px) {
  .pricing-wrapper { flex-direction: column; align-items: center; }
  .pricing-card { width: 90%; margin-bottom: 20px; }
}

@media (min-width: 768px){
  .hero-inner{ grid-template-columns: 1fr 420px; align-items:center; }
  .hero-title{ font-size: 2.25rem; }
  .hero-placeholder{ height:320px; max-width: none; }
  .about .about-grid{ grid-template-columns: 1fr 320px; }
  .features-grid{ grid-template-columns: repeat(2, 1fr); }
  .nav-toggle{ display:none; }
}

@media (min-width: 1024px){
  .container{ max-width: 1200px; }
  .hero{ padding-block: 80px; }
  .hero-title{ font-size: 2.8rem; }
  .features-grid{ grid-template-columns: repeat(3, 1fr); }
  .nav-toggle{ display:none; }
  .nav-list{ gap: 20px; }
  .footer-inner{ padding-inline: 8px; }
}

/* زرار الماسنجر للكروت */
.messenger-style {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0084ff, #00c6ff);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 35px rgba(0,132,255,0.6);
}

.messenger-style img {
  width: 24px;
  height: 24px;
}

.messenger-style:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 55px rgba(0,132,255,0.9);
}

a.btn,
a.btn-primary,
a.buy-now {
  position: relative;
  z-index: 99999;
  pointer-events: auto;
}

/* Video uploader */
.video-uploader {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.uploader-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(37,99,235,0.15);
}
.uploader-btn input[type="file"] { display: none; }
.uploader-hint {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(15,23,42,0.06);
  background: rgba(15,23,42,0.02);
}

/* Drop zone visual */
.videos-section.dragover .uploader-hint {
  border-color: rgba(37,99,235,0.4);
  background: rgba(37,99,235,0.03);
  transform: translateY(-2px);
}

/* Thumbnail + play tweak */
.video-thumb { cursor: pointer; }
.video-thumb img { transition: transform 0.45s ease; }

/* Modal video player */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.6);
  z-index: 10000;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal .modal-inner {
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(2,6,23,0.7);
  position: relative;
}
.video-modal video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}
.video-modal .modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 767px){
  .video-modal .modal-inner { max-width: 92%; }
}

/* قواعد الفيديو (منقولة من home.html) */
.video-card { overflow:hidden; border-radius:8px; background:#000; }
.video-thumb {
	position:relative;
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	padding:0;
	margin:0;
	border:0;
	background:#111;
	cursor:pointer;
	line-height:0;                       /* يمنع تحرك المحتوى عند الضغط */
	-webkit-appearance:none;
	appearance:none;
	vertical-align:middle;
	-webkit-tap-highlight-color: transparent;
	user-select:none;
	overflow:hidden;
}
.video-thumb::-moz-focus-inner { border:0; padding:0; } /* منع المسافة الداخلية في Firefox */
.video-thumb:focus { outline:2px solid #fff; outline-offset:-2px; }

/* تغطية داكنة خفيفة فوق الفيديو لإبراز زر التشغيل */
.video-thumb::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.35);
	/* إزالة الانتقال ليصبح التغيير فوري */
	transition: none;
	pointer-events: none;
}
.video-thumb:hover::before { background: rgba(0,0,0,0.45); } /* تبقى فورية */

/* زر التشغيل - إلغاء أي انتقال أو تحجيم */
.video-play {
	position:absolute;
	left:50%;
	top:50%;
	transform:translate(-50%,-50%);
	font-size:1.4rem;
	color:#111;
	background:#fff;
	padding:.5rem .55rem;
	border-radius:50%;
	pointer-events:none;
	text-shadow:none;
	box-shadow:0 6px 18px rgba(0,0,0,.35);
	/* إلغاء التحويلات/الانتقالات */
	transition: none;
}

/* إزالة تأثير التحجيم عند النقر/التركيز */
.video-thumb:active .video-play,
.video-thumb:focus .video-play { 
	/* لا تحجيم، فقط إبقاء الظل أو خصائص ثابتة */
	box-shadow:0 3px 8px rgba(0,0,0,.2); 
	transform: translate(-50%,-50%); 
}

/* في الجزء الآخر المكرّر: تأكد من إلغاء التحولات وال-scale أيضاً */
.video-play { opacity: 0; transition: none; } /* يصبح الظهور فوري */
.video-card:hover .video-play { opacity: 1; transform: none; }




/* 🔹 حاوية السلايدر المركزية */
.videos-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1000px;
  padding: 10px 0;
}

.videos-grid.carousel-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1000px;
}

.video-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  background: #222;
  color: #fff;
  position: relative;
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.video-card:nth-child(1),
.video-card:nth-child(2),
.video-card:nth-child(3) {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.video-thumb .video-preview {
  width: 100%;
  height: auto;
  display: block;
}

.video-play {
  position: absolute;
  top: 60%;
  left: 50%;
  right: 30%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.9);
  color: #111;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255,255,255,1);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}




.video-meta { padding: 10px; }
.video-title { font-weight: 700; }

.video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 8px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  opacity: 0.7;
}

.video-nav.left { left: 0; }
.video-nav.right { right: 0; }

.video-nav:hover { 
  background: rgba(0,0,0,0.85); 
  transform: translateY(-50%) scale(1.15);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.video-nav:active {
  transform: translateY(-50%) scale(1.05);
}

.video-nav:disabled { 
  opacity: 0.3; 
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-preview {
  background: var(--rev);
  
}

.testimonials-link {
  transition: all var(--transition-speed) ease;
}

.testimonials-link:hover .testimonials-card-box {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.testimonials-card-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 600px;
  margin: 2rem auto 0;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  animation: slideUpTestimonials 0.8s ease-out forwards;
}

@keyframes slideUpTestimonials {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonials-card-box:hover {
  transform: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.testimonials-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 2rem 0;
}

body.light .testimonials-description {
  color: #333333;
}

.testimonials-card-box .btn {
  pointer-events: auto;
  background: #facc15;
  color: #111827;
  font-weight: 700;
  border: none;
}

.testimonials-card-box .btn:hover {
  background: color-mix(in srgb, #facc15 85%, black 15%);
  transform: translateY(-3px);
}

/* Dark mode for testimonials */
body.dark .testimonials-card-box {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

body.dark .testimonials-description {
  color: var(--text-secondary);
}

/* Dark mode */
body.dark .site-footer {
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(2, 6, 23, 0.95) 100%);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-block: 2rem 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-section {
    text-align: right;
  }
  
  .footer-section h3 {
    justify-content: flex-end;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  
  .footer-bottom-left {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .footer-copyright {
    text-align: center;
    width: 100%;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  .footer-links-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .footer-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .footer-social-link {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .footer-links-bottom {
    gap: 0.25rem;
  }
  
  .footer-links-bottom a {
    font-size: 0.85rem;
  }
}

/* Floating Messenger Button */
.messenger-cta {
  position: sticky;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #0084ff, #00c6ff);
  border-radius: 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 35px rgba(0,132,255,0.6);
  z-index: 99999999999;
  animation: pulseStrong 2s infinite;
  width: fit-content;
  margin: 0 auto;
}
.messenger-cta img { width: 28px; height: 28px; }
@keyframes pulseStrong {
  0% { transform: translateX(-50%) scale(1); box-shadow: 0 10px 35px rgba(0,132,255,0.6); }
  50% { transform: translateX(-50%) scale(1.08); box-shadow: 0 20px 55px rgba(0,132,255,0.9); }
  100% { transform: translateX(-50%) scale(1); box-shadow: 0 10px 35px rgba(0,132,255,0.6); }
}
.messenger-cta:hover {  transform: translateX(-50%) scale(1.1); }

/* remove underline for hero CTA anchors (force override) */
.hero-ctas a,
.hero-ctas a:visited,
.hero-ctas a:hover,
.hero-ctas a:focus,
.hero-ctas a:active,
.hero-ctas .cta-button {
	text-decoration: none !important;
	text-decoration-skip-ink: none;
	border-bottom: none !important;
	box-shadow: none !important;
}

/* Videos section (cards) */
.videos-section { padding-block: 40px; }
.videos-section .section-title { text-align: right; font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }

.videos-grid { 
  display: grid; 
  gap: 18px; 
  grid-template-columns: repeat(3, 1fr); 
  align-items: start;
  width: 100%;
  padding: 0 8px;
}
.video-card { 
  background: var(--bg-secondary); 
  border-radius: var(--radius-md); 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; 
  text-align: right; 
  display: flex; 
  flex-direction: column; 
  width: 100%;
}
.video-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-md); 
}

.video-thumb { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 16/9; 
  display: block; 
  background: #000; 
}

.video-meta { 
  padding: 12px 14px; 
  color: var(--text-secondary); 
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.video-title { 
  font-weight: 700; 
  color: var(--text-primary); 
  margin-bottom: 6px; 
  font-size: clamp(0.95rem, 2.5vw, 1rem);
}

/* Placeholder when empty */
.videos-empty {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.02);
  color: var(--text-secondary);
  text-align: right;
}

/* Responsive: 2 cols on medium, 1 col on small */
@media (max-width: 1023px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .videos-grid { grid-template-columns: 1fr; } }

/* Dark mode tweaks */
body.dark .video-card { background: var(--bg-secondary); box-shadow: 0 8px 25px rgba(0,0,0,0.45); }
body.dark .video-title { color: var(--text-primary); }
body.light .video-title { color: var(--text-primary); }

/* Responsive */
@media (max-width: 900px) {
  .pricing-wrapper { flex-direction: column; align-items: center; }
  .pricing-card { width: 90%; margin-bottom: 20px; }
}

@media (min-width: 768px){
  .hero-inner{ grid-template-columns: 1fr 420px; align-items:center; }
  .hero-title{ font-size: 2.25rem; }
  .hero-placeholder{ height:320px; max-width: none; }
  .about .about-grid{ grid-template-columns: 1fr 320px; }
  .features-grid{ grid-template-columns: repeat(2, 1fr); }
  .nav-toggle{ display:none; }
}

@media (min-width: 1024px){
  .container{ max-width: 1200px; }
  .hero{ padding-block: 80px; }
  .hero-title{ font-size: 2.8rem; }
  .features-grid{ grid-template-columns: repeat(3, 1fr); }
  .nav-toggle{ display:none; }
  .nav-list{ gap: 20px; }
  .footer-inner{ padding-inline: 8px; }
}

/* ===== Navbar responsive improvements ===== */

/* اجعل الحاوية نسبية لتموضع القائمة المنسدلة */
.header-inner { position: relative; }

/* زر الــ toggle يظهر لأحجام التابلت والموبايل */
@media (max-width: 1023px) {
  .nav-toggle {
    display: block;
    font-size: 22px;
    padding: 10px;
    background: transparent;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
  }

  /* افتراضيًا اجعل القائمة مخفية (منسدلة) */
  .nav-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    right: 8px;
    z-index: 100;
    background: color-mix(in srgb, var(--bg-secondary) 92%, transparent 8%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(2,6,23,0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease, padding 220ms ease;
  }

  /* عند فتح القائمة عبر JS (مثال: add .open) تظهر القائمة */
  .nav-list.open {
    padding: 8px 6px;
    max-height: 520px; /* كافٍ لعدة عناصر؛ يمكن تعديله */
  }

  /* عناصر القائمة على الموبايل */
  .nav-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 2px 4px;
    text-align: right;
  }

  /* تحسين لمسية الزر */
  .nav-toggle:focus,
  .nav-toggle:active {
    outline: none;
    box-shadow: 0 6px 18px rgba(37,99,235,0.12);
  }
}

/* استعادة السلوك الأفقي على الشاشات الكبيرة */
@media (min-width: 1024px) {
  .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-height: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-toggle { display: none; }
}

/* تحسين ظهور القائمة عند وجود تراكب المحتوى */
@media (max-width: 767px) {
  .nav-list {
    left: 6px;
    right: 6px;
    top: calc(100% + 6px);
  }
}

/* ...existing code... */