/* ==========================================================================
   مركز أطوار للتدريب - Main Stylesheet
   Matching https://atwaarr.com Design System & Colors
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --color-primary: #aed8e0;
  --color-primary-dark: #88b2ba;
  --color-primary-light: #eaf7f9;
  --color-primary-ultralight: #f4fafb;
  --color-primary-reverse: #2f5961;
  --color-dark: #1e3a40;
  --color-text-main: #2b3b42;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-bg-page: #f8fafc;
  --color-white: #ffffff;
  --tabby-color: #3ef2aa;
  --tamara-color: #ff914d;
  --s-radius: 0.875rem;
  --transition-normal: all 0.25s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: 4px;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Top Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #1e3a40 0%, #2f5961 100%);
  color: #ffffff;
  font-size: 0.825rem;
}

/* Header & Navbar */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.35);
}

.main-header nav {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
  font-weight: 700;
  color: #1f2937; /* darker gray */
  transition: var(--transition-normal);
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-reverse);
  background: transparent;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  right: 0.8rem;
  width: 0;
  height: 2.5px;
  background-color: var(--color-primary-reverse);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 1.6rem);
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(47, 89, 97, 0.12);
  background: #ffffff;
  color: var(--color-primary-reverse);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -12px rgba(47, 89, 97, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px -12px rgba(47, 89, 97, 0.7);
}

.qiyas-header-logo,
.tvtc-header-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.sama-header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.25s ease;
}

.etec-header-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* .qiyas-header-logo:hover,
.tvtc-header-logo:hover,
.sama-header-logo:hover,
.etec-header-logo:hover {
  transform: scale(1.04);
} */

@media (max-width: 640px) {
  .qiyas-header-logo,
  .tvtc-header-logo {
    height: 22px;
    max-width: 100px;
  }
  .sama-header-logo {
    height: 34px;
  }
  .etec-header-logo {
    height: 20px;
    max-width: 120px;
  }
}

body.theme-dark {
  --color-primary: #9ad7db;
  --color-primary-dark: #7fb7bf;
  --color-primary-light: #15353d;
  --color-primary-ultralight: #122329;
  --color-primary-reverse: #d7f4f8;
  --color-dark: #dfeef2;
  --color-text-main: #e2e8f0;
  --color-text-muted: #cbd5e1;
  --color-border: rgba(148, 163, 184, 0.22);
  --color-bg-page: #0f172a;
  --color-white: #111827;
  background: var(--color-bg-page);
  color: var(--color-text-main);
}

body.theme-dark .main-header,
body.theme-dark .main-header nav,
body.theme-dark #mobile-menu-drawer {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

body.theme-dark .nav-link {
  color: #e2e8f0;
}

body.theme-dark .nav-link:hover,
body.theme-dark .nav-link.active {
  color: #d7f4f8;
  background: transparent;
}

body.theme-dark .nav-link::after {
  background-color: #9ad7db;
}

body.theme-dark .tab-filter-btn,
body.theme-dark .subcat-btn {
  color: #dfeaf1;
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.08), 0 0 18px rgba(154, 215, 219, 0.12);
}

body.theme-dark .tab-filter-btn:hover,
body.theme-dark .subcat-btn:hover,
body.theme-dark .tab-filter-btn.active,
body.theme-dark .subcat-btn.active {
  color: #d7f4f8;
  border-color: rgba(154, 215, 219, 0.35);
  box-shadow: 0 0 0 1px rgba(154, 215, 219, 0.22), 0 0 20px rgba(154, 215, 219, 0.26), 0 10px 24px -16px rgba(154, 215, 219, 0.4);
}

body.theme-dark .tab-filter-btn.active,
body.theme-dark .subcat-btn.active {
  background: rgba(154, 215, 219, 0.08);
}

body.theme-dark .theme-toggle-btn {
  background: rgba(17, 24, 39, 0.9);
  color: #d7f4f8;
  border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .qiyas-header-logo,
body.theme-dark .etec-header-logo,
body.theme-dark .tvtc-header-logo {
  background: rgba(255, 255, 255, 0.92);
  padding: 3px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.theme-dark #mobile-menu-drawer {
  box-shadow: 0 25px 60px -25px rgba(2, 6, 23, 0.9);
}

body.theme-dark #mobile-menu-drawer a {
  color: #f8fafc !important;
}

body.theme-dark #mobile-menu-drawer a:hover {
  background: rgba(148, 163, 184, 0.08);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 18px 38px -30px rgba(15, 23, 42, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -32px rgba(15, 23, 42, 0.32);
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1e3a40;
}

.testimonial-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e3a40;
  margin: 0;
}

.testimonial-role {
  color: #64748b;
  font-size: 0.8rem;
  margin: 0;
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 0.9rem;
  letter-spacing: 0.08em;
}

.testimonial-text {
  color: #475569;
  line-height: 1.8;
  font-size: 0.96rem;
}

#mobile-menu-drawer {
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#mobile-menu-drawer.active {
  transform: translateX(0);
}

body.theme-dark .main-header,
body.theme-dark .bg-white,
body.theme-dark .about-center-card,
body.theme-dark .course-card,
body.theme-dark #mobile-menu-drawer,
body.theme-dark .modal-box,
body.theme-dark .bg-slate-50,
body.theme-dark .bg-slate-100,
body.theme-dark .store-footer,
body.theme-dark .category-card,
body.theme-dark .tab-filter-btn,
body.theme-dark .testimonial-card {
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body.theme-dark .text-slate-800,
body.theme-dark .text-slate-700,
body.theme-dark .text-slate-600,
body.theme-dark .text-slate-500,
body.theme-dark .text-slate-400,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark p,
body.theme-dark span,
body.theme-dark label,
body.theme-dark .nav-link,
body.theme-dark .about-center-content p,
body.theme-dark .about-center-badges span,
body.theme-dark #courses-count,
body.theme-dark .testimonial-name,
body.theme-dark .testimonial-role,
body.theme-dark .testimonial-text {
  color: #f8fafc !important;
}

body.theme-dark .theme-toggle-btn i,
body.theme-dark .fa-magnifying-glass,
body.theme-dark .fa-bars,
body.theme-dark .fa-xmark {
  color: #f8fafc !important;
}

.research-course-section {
  position: relative;
}

.research-course-shell {
  background: linear-gradient(180deg, rgba(234, 247, 249, 0.56) 0%, rgba(255, 255, 255, 1) 100%);
}

.research-badge {
  letter-spacing: 0.02em;
}

.research-course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
  padding: 1.4rem;
  box-shadow: 0 12px 30px -22px rgba(15, 23, 42, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.3);
}

.research-icon-box {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #dff7f8 0%, #aed8e0 100%);
  color: #1e3a40;
  font-size: 1.3rem;
}

.research-icon-box.alt {
  background: linear-gradient(135deg, #eef2ff 0%, #dfe8ff 100%);
}

.research-icon-box.accent {
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
}

.research-icon-box.success {
  background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
}

.research-course-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e3a40;
}

.research-course-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.research-course-card ul {
  list-style: none;
  margin-top: 0.25rem;
  display: grid;
  gap: 0.5rem;
}

.research-course-card li {
  position: relative;
  padding-right: 1.1rem;
  color: #2f5961;
  font-size: 0.82rem;
  font-weight: 700;
}

.research-course-card li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: #2f5961;
  font-size: 1.1rem;
}

body.theme-dark .research-course-shell,
body.theme-dark .research-course-card {
  background: linear-gradient(180deg, rgba(17,24,39,1) 0%, rgba(15,23,42,1) 100%) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body.theme-dark .research-course-card h3,
body.theme-dark .research-course-card p,
body.theme-dark .research-course-card li,
body.theme-dark .research-course-section h2 {
  color: #f8fafc !important;
}

body.theme-dark .about-center-card {
  box-shadow: 0 22px 55px -30px rgba(15, 23, 42, 0.8);
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
}

body.theme-dark .about-center-label,
body.theme-dark .about-center-badges span,
body.theme-dark .tab-filter-btn {
  background: rgba(157, 215, 219, 0.08);
  border-color: rgba(157, 215, 219, 0.2);
}

body.theme-dark .theme-toggle-btn {
  background: #1e293b;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .nav-link::after {
  background-color: #9ad7db;
}

body.theme-dark .rounded-xl,
body.theme-dark .rounded-2xl,
body.theme-dark .rounded-full,
body.theme-dark .border,
body.theme-dark .border-slate-100,
body.theme-dark .border-slate-200 {
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body.theme-dark .bg-slate-50,
body.theme-dark .bg-slate-100 {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

body.theme-dark .shadow-sm,
body.theme-dark .shadow-2xl {
  box-shadow: 0 16px 30px -20px rgba(15, 23, 42, 0.8) !important;
}

body.theme-dark input,
body.theme-dark select {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

body.theme-dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

body.theme-dark ::-webkit-scrollbar-thumb {
  background: #7fb7bf;
}

.about-center-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #edf9fb 100%);
  border: 1px solid rgba(47, 89, 97, 0.08);
  border-radius: 2rem;
  box-shadow: 0 22px 55px -30px rgba(24, 59, 67, 0.28);
  padding: 2.25rem;
}

.about-center-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
}

.about-center-logo {
  flex-shrink: 0;
  width: min(32vw, 240px);
  max-width: 240px;
}

.about-center-logo img {
  width: 100%;
  display: block;
}

.about-center-content {
  flex: 1;
  max-width: 800px;
}

.about-center-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(174, 216, 224, 0.2);
  color: var(--color-primary-reverse);
  font-size: 0.8rem;
  font-weight: 800;
}

.about-center-content h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 2.5vw, 3.2rem);
  line-height: 1.2;
  color: var(--color-dark);
  font-weight: 900;
}

.about-center-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #334155;
}

.about-center-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.about-center-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(47, 89, 97, 0.06);
  color: var(--color-primary-reverse);
  border: 1px solid rgba(47, 89, 97, 0.08);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.about-center-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 89, 97, 0.15), transparent);
}

/* Feature Boxes Grid: Vision, Mission, Goals, Fields */
.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.about-feature-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 89, 97, 0.1);
  border-radius: 1.25rem;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 6px 18px -10px rgba(47, 89, 97, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.about-feature-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(47, 89, 97, 0.18);
}

.about-feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.about-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.about-feature-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0;
}

.about-feature-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
  margin: 0;
}

.about-goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-goals-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

.goal-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(47, 89, 97, 0.12);
  color: var(--color-primary-reverse);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.field-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 89, 97, 0.06);
  border: 1px solid rgba(47, 89, 97, 0.1);
  color: var(--color-primary-reverse);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.field-tag:hover {
  background: rgba(47, 89, 97, 0.14);
  transform: translateY(-1px);
}

/* Dark mode for about-center features */
body.theme-dark .about-center-divider {
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.25), transparent);
}

body.theme-dark .about-feature-box {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.5);
}

body.theme-dark .about-feature-title {
  color: #f8fafc;
}

body.theme-dark .about-feature-text,
body.theme-dark .about-goals-list li {
  color: #cbd5e1;
}

body.theme-dark .goal-bullet {
  background: rgba(154, 215, 219, 0.2);
  color: #9ad7db;
}

body.theme-dark .field-tag {
  background: rgba(154, 215, 219, 0.08);
  border-color: rgba(154, 215, 219, 0.2);
  color: #d7f4f8;
}

body.theme-dark .field-tag:hover {
  background: rgba(154, 215, 219, 0.18);
}

/* About Center Contact & Headquarters Strip */
.about-center-contact {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(47, 89, 97, 0.2);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.25rem;
}

.about-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(47, 89, 97, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 4px 15px -5px rgba(24, 59, 67, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(24, 59, 67, 0.14);
}

.about-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.about-contact-icon.email {
  background: #fef2f2;
  color: #ea4335;
  border: 1px solid rgba(234, 67, 53, 0.2);
}

.about-contact-icon.location {
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.about-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.about-contact-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #374151; /* darker gray for better contrast */
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-contact-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
  word-break: break-word;
}

.about-contact-val a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-contact-val a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Dark mode for about-center-contact */
body.theme-dark .about-center-contact {
  border-top-color: rgba(148, 163, 184, 0.25);
}

body.theme-dark .about-contact-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.4);
}

body.theme-dark .about-contact-label {
  color: #94a3b8;
}

body.theme-dark .about-contact-val {
  color: #f1f5f9;
}

body.theme-dark .about-contact-val a {
  color: #60a5fa;
}

body.theme-dark .about-contact-icon.email {
  background: rgba(234, 67, 53, 0.15);
  border-color: rgba(234, 67, 53, 0.3);
}

body.theme-dark .about-contact-icon.location {
  background: rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.3);
}

@media (max-width: 768px) {
  .about-center-contact {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.registration-form-shell {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(234, 247, 249, 0.96) 100%);
  border: 1px solid rgba(47, 89, 97, 0.08);
  border-radius: 2rem;
  box-shadow: 0 18px 50px -30px rgba(24, 59, 67, 0.28);
  padding: 2rem;
}

.registration-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.registration-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(174, 216, 224, 0.2);
  color: var(--color-primary-reverse);
  font-size: 0.78rem;
  font-weight: 800;
}

.registration-header h2 {
  font-size: clamp(1.7rem, 2vw, 2.5rem);
  font-weight: 900;
  color: var(--color-dark);
}

.registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-reverse);
}

.form-field input,
.form-field select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-main);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(47, 89, 97, 0.7);
  box-shadow: 0 0 0 4px rgba(174, 216, 224, 0.18);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-actions button {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f5961 0%, #88b2ba 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 28px -18px rgba(47, 89, 97, 0.8);
}

.form-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -18px rgba(47, 89, 97, 0.9);
}

.form-message {
  display: none;
  margin-top: 0.2rem;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #166534;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

body.theme-dark .registration-form-shell {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
  border-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark .registration-header h2,
body.theme-dark .form-field label,
body.theme-dark .form-field input,
body.theme-dark .form-field select {
  color: #f8fafc;
}

body.theme-dark .form-field input,
body.theme-dark .form-field select {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.22);
}

@media (max-width: 768px) {
  .main-header {
    padding-bottom: 0.25rem;
  }

  .main-header > div > div {
    flex-wrap: wrap;
    height: auto;
    padding: 0.8rem 0;
  }

  .main-header .group {
    max-width: calc(100% - 70px);
  }

  .main-header .group img {
    height: 42px;
  }

  .about-center-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .about-center-top {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-center-logo {
    width: min(58vw, 220px);
  }

  .about-center-content p {
    font-size: 0.95rem;
  }

  .about-center-badges {
    justify-content: center;
  }

  #categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registration-form-shell {
    padding: 1.25rem;
  }

  .registration-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-header > div > div {
    gap: 0.75rem;
  }

  .main-header .group {
    max-width: 100%;
  }

  .main-header .group > div {
    display: none;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
  }

  #categories-grid {
    grid-template-columns: 1fr;
  }

  .about-center-badges {
    flex-direction: column;
  }

  .about-center-badges span {
    width: 100%;
    justify-content: center;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--color-primary-reverse);
  color: #ffffff;
  transition: var(--transition-normal);
}
.btn-primary:hover {
  background-color: #1e3a40;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 89, 97, 0.25);
}

.btn-secondary {
  background-color: var(--color-primary-light);
  color: var(--color-primary-reverse);
  border: 1px solid var(--color-primary);
  transition: var(--transition-normal);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #1e3a40;
}

/* Hero Carousel */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

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

.slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
  z-index: 10;
}

.slider-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  right: 1.5rem;
}

.slider-btn.next {
  left: 1.5rem;
}

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--color-primary-reverse);
  width: 28px;
}

/* Category Cards Grid */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -4px rgba(47, 89, 97, 0.18);
}

.category-card img {
  transition: transform 0.6s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

/* Course Card */
.dark-course-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(240, 248, 250, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

body.theme-dark .dark-course-shell {
  background: linear-gradient(180deg, rgba(5, 16, 28, 0.98) 0%, rgba(14, 27, 41, 0.94) 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.course-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.course-card h3,
.course-card p,
.course-card .text-slate-500,
.course-card .text-slate-600,
.course-card .text-slate-700,
.course-card .font-medium {
  color: #334155 !important;
}

.course-card .text-slate-800 {
  color: #1e293b !important;
}

body.theme-dark .course-card h3,
body.theme-dark .course-card p,
body.theme-dark .course-card .text-slate-500,
body.theme-dark .course-card .text-slate-600,
body.theme-dark .course-card .text-slate-700,
body.theme-dark .course-card .font-medium,
body.theme-dark .course-card .text-slate-800 {
  color: #e2e8f0 !important;
}

.course-card.research-course-card {
  background: rgba(240, 246, 245, 0.95);
  border-color: rgba(120, 147, 142, 0.22);
  box-shadow: inset 0 0 0 1px rgba(120, 147, 142, 0.08), 0 10px 24px -18px rgba(15, 23, 42, 0.12);
}

.course-card.research-course-card .course-card-img-wrap {
  background: rgba(206, 228, 224, 0.7);
}

.course-card.research-course-card .icon-card-inner {
  color: #ffffff;
  background: rgba(206, 228, 224, 0.72);
}

.course-card.research-course-card h3,
.course-card.research-course-card p,
.course-card.research-course-card .text-slate-500,
.course-card.research-course-card .text-slate-600,
.course-card.research-course-card .bg-slate-100,
.course-card.research-course-card .font-medium,
.course-card.research-course-card .text-slate-700 {
  color: #0f172a !important;
}

.course-card.research-course-card .bg-slate-100 {
  background: rgba(148, 163, 184, 0.12) !important;
}

body.theme-dark .course-card.research-course-card {
  background: linear-gradient(180deg, rgba(17, 28, 39, 0.96) 0%, rgba(18, 29, 41, 0.94) 100%);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 0 0 1px rgba(159, 175, 196, 0.08), 0 10px 24px -18px rgba(15, 23, 42, 0.8);
}

body.theme-dark .course-card.research-course-card .icon-card-inner {
  color: #ffffff;
  background: linear-gradient(145deg, rgba(47, 89, 97, 0.45) 0%, rgba(16, 25, 35, 0.9) 100%);
}

body.theme-dark .course-card.research-course-card h3,
body.theme-dark .course-card.research-course-card p,
body.theme-dark .course-card.research-course-card .text-slate-500,
body.theme-dark .course-card.research-course-card .text-slate-600,
body.theme-dark .course-card.research-course-card .bg-slate-100,
body.theme-dark .course-card.research-course-card .font-medium,
body.theme-dark .course-card.research-course-card .text-slate-700 {
  color: #e2e8f0 !important;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -6px rgba(47, 89, 97, 0.14);
  border-color: var(--color-primary);
}

.course-card-img-wrap {
  position: relative;
  overflow: hidden;
  background-color: #f8fafc;
  aspect-ratio: 16 / 11;
}

.course-card.research-course-card .course-card-img-wrap {
  background: linear-gradient(135deg, rgba(174, 216, 224, 0.22) 0%, rgba(47, 89, 97, 0.12) 100%);
}

.course-card.research-course-card .icon-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ffffff;
  background: linear-gradient(145deg, rgba(47, 89, 97, 0.55) 0%, rgba(23, 36, 46, 0.82) 100%);
}

.course-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-card-img-wrap img {
  transform: scale(1.07);
}

/* Installment Badges */
.installment-box {
  background: #fafaf9;
  border: 1px dashed #e2e8f0;
  border-radius: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: #475569;
}

.badge-tabby {
  color: #047857;
  font-weight: 700;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-tamara {
  color: #c2410c;
  font-weight: 700;
  background: #fff7ed;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Tab filter button */
.featured-filter-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e3a40;
  background: linear-gradient(135deg, rgba(174, 216, 224, 0.85) 0%, rgba(255, 255, 255, 0.9) 52%, rgba(214, 244, 248, 0.9) 100%);
  border: 1px solid rgba(47, 89, 97, 0.15);
  box-shadow: 0 10px 22px -16px rgba(47, 89, 97, 0.7), inset 0 1px 0 rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}

body.theme-dark .featured-filter-label {
  color: #e9fbff;
  background: linear-gradient(135deg, #1f3d42 0%, #2f5961 45%, #4b7d86 100%);
  border-color: rgba(154, 215, 219, 0.28);
  box-shadow: 0 12px 24px -18px rgba(154, 215, 219, 0.7), inset 0 1px 0 rgba(255,255,255,0.12);
}

#category-tabs,
#subcategory-tabs {
  justify-content: center;
}



@media (max-width: 640px) {
  #category-tabs,
  #subcategory-tabs {
    justify-content: flex-start;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

.tab-filter-btn,
.subcat-btn {
  padding: 0.7rem 1.1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #475569;
  background: rgba(174, 216, 224, 0.12);
  border: 1px solid rgba(47, 89, 97, 0.12);
  box-shadow: 0 0 0 1px rgba(47, 89, 97, 0.04), 0 8px 20px -16px rgba(47, 89, 97, 0.45);
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}

.tab-filter-btn:hover,
.subcat-btn:hover {
  color: var(--color-primary-reverse);
  background: rgba(174, 216, 224, 0.17);
  box-shadow: 0 0 0 1px rgba(47, 89, 97, 0.1), 0 10px 24px -16px rgba(47, 89, 97, 0.6);
  transform: translateY(-1px);
}

.tab-filter-btn.active,
.subcat-btn.active {
  background: rgba(174, 216, 224, 0.22);
  border-color: rgba(47, 89, 97, 0.18);
  color: var(--color-primary-reverse);
  box-shadow: 0 0 0 1px rgba(47, 89, 97, 0.08), 0 0 18px rgba(174, 216, 224, 0.5), 0 10px 24px -16px rgba(47, 89, 97, 0.6);
}

.subcat-btn {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.2);
}

.cart-drawer.active {
  transform: translateX(0);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  color: var(--color-text-main);
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-right: 4px solid var(--color-primary-reverse);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideInToast 0.3s ease forwards;
}

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

/* WhatsApp Floating Button & Widget */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulseGreen 2.5s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.12);
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-popup {
  position: absolute;
  bottom: 75px;
  left: 0;
  width: 310px;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom left;
}

.whatsapp-popup.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Modal General Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

/* Trust Badges Bar */
.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Footer Styling */
.store-footer {
  background: #ffffff;
  border-top: 1px solid #edf2f7;
  color: #1f2937; /* darker gray for better contrast */
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #edf2f7;
}

.footer-contact h2 {
  color: var(--color-dark);
  font-size: 1rem;
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  color: var(--color-primary-reverse);
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

body.theme-dark .footer-contact,
body.theme-dark .social-links a {
  border-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark .social-links a {
  color: #d7f4f8;
}

@media (max-width: 640px) {
  .footer-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-links {
    width: 100%;
  }

  .social-links a {
    flex: 1 1 0;
    justify-content: center;
  }
}
