/* ==========================================================================
   مكونات منصة ذكاء التعليمية - المظهر والتصميم التفاعلي
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Slider Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0d47a1;
  color: var(--text-white);
  padding: 3.5rem 0 5rem;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text-block {
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 111, 0, 0.2);
  border: 1px solid rgba(255, 111, 0, 0.4);
  color: #ffb74d;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-title span {
  color: #ff9800;
  position: relative;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Slider Wrapper */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.15);
  aspect-ratio: 16 / 10;
  background: #041d38;
}

.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.slider-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--secondary-orange);
}

.slider-controls-standalone {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 1.75rem auto 0 !important;
  width: fit-content !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(13, 71, 161, 0.12);
  border: 1px solid rgba(13, 71, 161, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  z-index: 5;
}

.slider-controls-standalone .slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(13, 71, 161, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-controls-standalone .slider-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--secondary-orange);
  box-shadow: 0 2px 6px rgba(255, 111, 0, 0.4);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background: var(--secondary-orange);
}

.slider-btn.prev { right: 12px; }
.slider-btn.next { left: 12px; }

/* --------------------------------------------------------------------------
   2. Educational Stages Selector & Filters
   -------------------------------------------------------------------------- */
.stages-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stage-tab-btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-tab-btn i {
  font-size: 1.2rem;
}

.stage-tab-btn:hover, .stage-tab-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.grades-subtabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.grade-subtab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.grade-subtab-btn:hover, .grade-subtab-btn.active {
  background: var(--secondary-orange);
  color: white;
}

/* --------------------------------------------------------------------------
   3. Textbook Subject Cards (الهوية الرسمية السعودية لكتب الوزارة)
   -------------------------------------------------------------------------- */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.subject-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 71, 161, 0.3);
}

/* Header Banner Arc matching Ministry Textbook Design (000.jpeg) */
.textbook-card-header {
  position: relative;
  padding: 2.2rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
  border-bottom: 1px dashed var(--border-color);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-ministry-arc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  background: var(--card-theme-color, #0d47a1);
}

.card-logo-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 35% 30%, #ffffff 55%, #f1f5f9 100%);
  border-radius: 50%;
  padding: 3px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 5px 14px rgba(0, 0, 0, 0.22),
    0 2px 5px rgba(0, 0, 0, 0.1),
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(13, 71, 161, 0.2);
  z-index: 3;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: perspective(400px) translateZ(0);
}

.subject-card:hover .card-logo-badge {
  transform: perspective(400px) translateY(-2px) rotateY(-10deg) scale(1.1);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(255, 111, 0, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

.card-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.subject-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(13, 71, 161, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--card-theme-color, var(--primary-blue));
  margin-bottom: 10px;
  margin-top: 10px;
}

.subject-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.subject-grade-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.subject-term {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--bg-alt);
  color: var(--secondary-orange);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.subject-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}

.subject-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}

.btn-card-quiz {
  flex: 1;
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  color: #ffffff;
  padding: 10px 8px;
  border-radius: 10px;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: -0.2px;
  box-shadow: 0 3px 10px rgba(13, 71, 161, 0.2);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-card-quiz i {
  font-size: 0.86rem;
  opacity: 0.95;
}

.btn-card-quiz:hover {
  background: linear-gradient(135deg, #083478 0%, #1565c0 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(13, 71, 161, 0.32);
}

.btn-card-book {
  flex: 1;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  padding: 10px 8px;
  border-radius: 10px;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: -0.2px;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.28);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-card-book i {
  font-size: 0.95rem;
  opacity: 0.98;
}

.btn-card-book:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #0d7366 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(37, 211, 102, 0.45);
}

/* --------------------------------------------------------------------------
   3.1. Academy Showcase Banner (بانر منصة ذكاء المميز)
   -------------------------------------------------------------------------- */
.banner-showcase-section {
  padding: 0 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.academy-banner-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(13, 71, 161, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(212, 175, 55, 0.35);
  background: #ffffff;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.academy-banner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(13, 71, 161, 0.2), 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #d4af37;
}

.academy-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  transition: transform 0.4s ease;
}

.academy-banner-card:hover .academy-banner-img {
  transform: scale(1.015);
}

.banner-zoom-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(13, 71, 161, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 3;
}

.academy-banner-card:hover .banner-zoom-badge {
  background: var(--secondary-orange);
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   4. Parent Portal Forms
   -------------------------------------------------------------------------- */
.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.parent-info-card {
  background-color: #0d47a1;
  color: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.parent-info-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.parent-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.parent-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.parent-feature-item i {
  background: rgba(255, 111, 0, 0.25);
  color: #ffb74d;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.form-box {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  gap: 10px;
}

.form-tab-btn {
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-fast);
}

.form-tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;
}

.form-control:hover {
  border-color: #94a3b8;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.12);
}

/* تنسيق القوائم المنسدلة (Dropdown Selects) بهوية عصرية ومتجاوبة */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
  text-align-last: right;
  cursor: pointer;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230d47a1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 16px 16px;
  padding: 12px 16px 12px 44px;
  font-size: 16px; /* يمنع التكبير التلقائي وقص القائمة في شاشات الموبايل */
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 700;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

select.form-control:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

select.form-control:focus {
  background-color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.14);
  outline: none;
}

/* تنسيق المجموعات والعناصر داخل القائمة المنسدلة */
select.form-control optgroup {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 800;
  color: var(--primary-blue);
  background-color: #edf2f7;
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: -0.2px;
}

select.form-control option {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
}

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

/* --------------------------------------------------------------------------
   5. Modals (Quiz, Booking, Certificate)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.96);
  transition: var(--transition-normal);
  position: relative;
}

.modal-backdrop.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue), #1565c0);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close-btn {
  color: white;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 1.75rem;
}

/* Quiz UI Components */
.quiz-progress-bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
  width: 0%;
  transition: width 0.3s ease;
}

.quiz-question-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.quiz-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(13, 71, 161, 0.1);
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.quiz-question-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-item {
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
}

.quiz-option-item:hover {
  border-color: var(--primary-blue);
  background: rgba(13, 71, 161, 0.03);
}

.quiz-option-item.selected {
  border-color: var(--primary-blue);
  background: rgba(13, 71, 161, 0.08);
  color: var(--primary-blue);
}

.quiz-option-item.correct {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
}

.quiz-option-item.wrong {
  border-color: #c62828;
  background: #ffebee;
  color: #b71c1c;
}

.quiz-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.5rem;
  width: 100%;
}

.quiz-actions-footer .btn-primary,
.quiz-actions-footer .btn-secondary {
  flex: 1;
  justify-content: center;
  text-align: center;
  padding: 10px 18px;
  font-size: 0.92rem;
  min-height: 44px;
}

/* Certificate Canvas Container */
.certificate-preview-box {
  width: 100%;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  text-align: center;
}

#certificateCanvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--primary-blue);
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

.toast.success { background: #2e7d32; }
.toast.info { background: var(--primary-blue); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer Section */
.footer {
  background: #041d38;
  color: white;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--secondary-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary-orange);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  transition: var(--transition-fast);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--secondary-orange);
  padding-right: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   6. Parents Testimonials & Reviews Slider
   -------------------------------------------------------------------------- */
.reviews-section {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  overflow: hidden;
}

.reviews-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 35px;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.review-card-item {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 12px;
  box-sizing: border-box;
}

.review-card-inner {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.07);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.review-card-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(13, 71, 161, 0.15);
  border-color: rgba(255, 111, 0, 0.4);
}

.review-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}

.review-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.review-card-inner:hover .review-img-wrap img {
  transform: scale(1.05);
}

.review-badge-header {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: #d4af37;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.review-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.btn-zoom-review {
  background: rgba(13, 71, 161, 0.08);
  color: var(--primary-blue);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-zoom-review:hover {
  background: var(--primary-blue);
  color: white;
}

/* --------------------------------------------------------------------------
   7. Honor Roll & Student Certificates Slider
   -------------------------------------------------------------------------- */
.certificates-section {
  position: relative;
  background: linear-gradient(180deg, #edf2f7 0%, #f8fafc 100%);
  overflow: hidden;
}

.certificates-slider-container {
  position: relative;
  width: 100%;
}

.certificates-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 12px 0 20px;
}

.certificates-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.cert-card-item {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 12px;
  box-sizing: border-box;
}

.cert-card-inner {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(13, 71, 161, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.cert-card-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(13, 71, 161, 0.16);
  border-color: #d4af37;
}

.cert-badge-header {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  color: #ffd700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.cert-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #041d38;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.cert-card-inner:hover .cert-img-wrap img {
  transform: scale(1.04);
}

.cert-card-footer {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.cert-student-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-zoom-cert {
  background: rgba(13, 71, 161, 0.08);
  color: var(--primary-blue);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-zoom-cert:hover {
  background: var(--primary-blue);
  color: white;
}

.certificates-slider-container .slider-btn {
  background: rgba(13, 71, 161, 0.9);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  z-index: 10;
}

.certificates-slider-container .slider-btn.prev {
  right: -20px;
}

.certificates-slider-container .slider-btn.next {
  left: -20px;
}

.certificates-slider-container .slider-btn:hover {
  background: var(--secondary-orange);
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {
  .certificates-slider-container .slider-btn.prev {
    right: 4px;
  }
  .certificates-slider-container .slider-btn.next {
    left: 4px;
  }
}

/* ==========================================================================
   إعدادات الطباعة للشهادات (Print & PDF Landscape Engine)
   ========================================================================== */
@page {
  size: A4 landscape;
  margin: 0;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  html, body {
    width: 297mm !important;
    height: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* إخفاء كل عناصر الموقع الخارجية */
  .main-header,
  .hero-section,
  .py-section,
  .footer,
  .toast-container,
  .nav-backdrop,
  #quizModal,
  #bookingModal,
  #imgModal {
    display: none !important;
    visibility: hidden !important;
  }

  /* إظهار نافذة الشهادة فقط ملء الصفحة بدون أزرار أو حواف */
  #certModal {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 297mm !important;
    height: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #certModal .modal-container {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 297mm !important;
    max-height: 210mm !important;
    width: 297mm !important;
    height: 210mm !important;
    background: transparent !important;
    transform: none !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #certModal .modal-header,
  #certModal .modal-close-btn,
  #certModal .modal-body > div:last-child {
    display: none !important;
    visibility: hidden !important;
  }

  #certModal .modal-body {
    padding: 0 !important;
    margin: 0 !important;
    width: 297mm !important;
    height: 210mm !important;
    overflow: hidden !important;
  }

  #certModal .certificate-preview-box {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    width: 297mm !important;
    height: 210mm !important;
    max-height: 210mm !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #certificateCanvas {
    width: 297mm !important;
    height: 210mm !important;
    max-width: 297mm !important;
    max-height: 210mm !important;
    object-fit: fill !important;
    display: block !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

/* ==========================================================================
   8. Global Site Preloader (لودر الموقع التفاعلي الشامل)
   ========================================================================== */
.site-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #0d47a1;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  overflow: hidden;
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 90vw;
  animation: preloaderPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes preloaderPopIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.preloader-logo-wrapper {
  position: relative;
  width: 115px;
  height: 115px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring-spinner {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3.5px solid transparent;
  border-top-color: #ffd700;
  border-right-color: #ff6f00;
  border-bottom-color: #25d366;
  border-left-color: #00bcd4;
  animation: preloaderSpin 1.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes preloaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.preloader-ring-pulse {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.45);
  animation: preloaderSpinReverse 7s linear infinite;
}

@keyframes preloaderSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.preloader-logo-img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  background: radial-gradient(circle at 35% 30%, #ffffff 50%, #e2e8f0 100%);
  border-radius: 50%;
  padding: 6px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(13, 71, 161, 0.5),
    0 0 16px rgba(255, 111, 0, 0.4),
    inset 0 3px 6px rgba(255, 255, 255, 0.95),
    inset 0 -4px 8px rgba(13, 71, 161, 0.25);
  animation: preloader3dFloat 2.8s ease-in-out infinite alternate;
}

@keyframes preloader3dFloat {
  0% {
    transform: perspective(600px) translateY(0px) rotateY(-8deg) rotateX(4deg) scale(0.98);
    box-shadow: 
      0 10px 25px rgba(0, 0, 0, 0.35),
      0 0 20px rgba(13, 71, 161, 0.45),
      inset 0 3px 6px rgba(255, 255, 255, 0.95);
  }
  100% {
    transform: perspective(600px) translateY(-8px) rotateY(8deg) rotateX(-4deg) scale(1.05);
    box-shadow: 
      0 22px 45px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(255, 111, 0, 0.65),
      0 0 25px rgba(13, 71, 161, 0.6),
      inset 0 3px 6px rgba(255, 255, 255, 0.95);
  }
}

.preloader-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.preloader-tagline {
  font-size: 0.95rem;
  color: #ffd700;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.preloader-progress-track {
  width: 220px;
  max-width: 80vw;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.preloader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #25d366, #ffd700, #ff6f00);
  border-radius: 10px;
  animation: preloaderProgressMove 1.6s ease-in-out infinite;
}

@keyframes preloaderProgressMove {
  0% { left: -50%; width: 40%; }
  50% { left: 30%; width: 60%; }
  100% { left: 100%; width: 40%; }
}

.preloader-status {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

@media (max-width: 480px) {
  .preloader-logo-wrapper {
    width: 95px;
    height: 95px;
    margin-bottom: 1.25rem;
  }
  .preloader-logo-img {
    width: 78px;
    height: 78px;
    padding: 6px;
  }
  .preloader-title {
    font-size: 1.35rem;
  }
  .preloader-tagline {
    font-size: 0.86rem;
    margin-bottom: 1.25rem;
  }
  .preloader-progress-track {
    width: 180px;
  }
  .preloader-status {
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   9. Live Zoom Classes Feature Banner (سكشن الحصص المباشرة عبر زوم)
   ========================================================================== */
.zoom-live-section {
  padding: 1.25rem 0 2.25rem;
  position: relative;
  z-index: 5;
}

.zoom-live-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 60%, #e1effe 100%);
  border: 2px solid #2D8CFF;
  border-radius: 24px;
  padding: 1.75rem 2.25rem;
  box-shadow: 0 14px 35px rgba(45, 140, 255, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zoom-live-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(45, 140, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.zoom-live-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(45, 140, 255, 0.24);
}

.zoom-card-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.zoom-3d-badge {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2D8CFF 0%, #0B5CFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(45, 140, 255, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.zoom-live-card:hover .zoom-3d-badge {
  transform: scale(1.06) rotate(3deg);
}

.zoom-live-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #25d366;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.8);
  animation: liveBeacon 1.6s infinite ease-in-out;
}

@keyframes liveBeacon {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.zoom-text-wrap {
  flex: 1;
}

.zoom-header-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.zoom-brand-tag {
  background: rgba(45, 140, 255, 0.12);
  color: #0d47a1;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.zoom-live-pill {
  background: #ff3b30;
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.zoom-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.4;
}

.zoom-main-title span {
  color: #0d47a1;
}

.zoom-main-title strong {
  color: #2D8CFF;
  font-weight: 900;
}

.zoom-subtext {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
}

.zoom-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zoom-pill {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.zoom-pill i {
  color: #2D8CFF;
}

.btn-zoom-cta {
  background: linear-gradient(135deg, #2D8CFF 0%, #0056cc 100%);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(45, 140, 255, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-zoom-cta:hover {
  background: linear-gradient(135deg, #1b7cf2 0%, #0045a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(45, 140, 255, 0.55);
}

/* ==========================================================================
   10. Celebration Video Section (فيديو حفل ختام العام الدراسي)
   ========================================================================== */
.celebration-video-section {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 50%, #f1f5f9 100%);
  overflow: hidden;
}

.celebration-player-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.celebration-video-card {
  position: relative;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.7) 0%, rgba(13, 71, 161, 0.5) 50%, rgba(255, 111, 0, 0.6) 100%);
  box-shadow: 0 20px 50px rgba(13, 71, 161, 0.2), 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.celebration-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(13, 71, 161, 0.28);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #020f1e;
}

.celebration-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020f1e;
  display: block;
  border-radius: 18px;
  cursor: pointer;
}

.celebration-video-element:fullscreen,
.celebration-video-element:-webkit-full-screen,
.celebration-video-element:-moz-full-screen,
.celebration-video-element:-ms-fullscreen {
  object-fit: contain !important;
  background: #000000 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
}

.video-custom-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  transition: opacity 0.3s ease;
}

.video-action-btn {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.video-action-btn:hover {
  background: var(--primary-blue);
  border-color: #ffd700;
  transform: scale(1.05);
  color: #ffffff;
}

.btn-play-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
}

.btn-sound-toggle {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-sound-toggle:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #0d7366 100%);
}

.btn-sound-toggle.active {
  background: linear-gradient(135deg, #ff6f00 0%, #e65100 100%);
  box-shadow: 0 4px 16px rgba(255, 111, 0, 0.4);
}

.btn-fullscreen {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.video-live-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(13, 71, 161, 0.9);
  backdrop-filter: blur(6px);
  color: #ffd700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
  pointer-events: none;
}

.video-pulse-dot {
  width: 8px;
  height: 8px;
  background: #ff6f00;
  border-radius: 50%;
  animation: pulseVideoDot 1.4s infinite alternate;
}

@keyframes pulseVideoDot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 8px #ff6f00; }
}

/* ==========================================================================
   11. Special Programs Section (برامج الآيلتس والقدرات)
   ========================================================================== */
.special-programs-section {
  position: relative;
  background: #f8fafc;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.program-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 35px rgba(13, 71, 161, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(13, 71, 161, 0.16), 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(13, 71, 161, 0.25);
}

.program-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--secondary-orange) 0%, #e65100 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 3;
}

.program-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 420px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
}

.program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.program-card:hover .program-img {
  transform: scale(1.03);
}

.program-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.program-img-wrapper:hover .program-zoom-hint {
  background: var(--primary-blue);
  border-color: #ffd700;
  transform: scale(1.04);
}

.program-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-header-info {
  margin-bottom: 0.75rem;
}

.program-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 111, 0, 0.1);
  color: var(--secondary-orange);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.program-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
}

.program-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.program-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.75rem;
  flex: 1;
}

.program-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
}

.program-features-list li i {
  color: #25D366;
  font-size: 1.05rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.btn-program-action {
  margin-top: auto;
}

