/* SISC 2026 - Design System (matching React app) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ── Brand Tokens ── */
:root {
  --sisc-navy: #002D62;
  --sisc-navy-dark: #001a3a;
  --sisc-gold: #FFB60F;
  --sisc-gold-hover: #e5a30e;
  --sisc-bg: #F8FAFC;
  --sisc-text: #1E293B;
  --sisc-muted: #64748b;
  --sisc-card: #ffffff;
  --sisc-border: #e2e8f0;
}

/* ── Skip Link (CRITICAL a11y) ── */
.sisc-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--sisc-navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.sisc-skip-link:focus {
  top: 0;
  outline: 3px solid var(--sisc-gold);
  outline-offset: 2px;
}

/* ── Focus Visible (CRITICAL a11y) ── */
:focus-visible {
  outline: 3px solid var(--sisc-gold);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, .sppb-btn:focus-visible {
  outline: 3px solid var(--sisc-gold);
  outline-offset: 2px;
}

/* ── RTL Arabic ── */
html[dir='rtl'] body, html[lang='ar'] body {
  font-family: 'Noto Sans Arabic', 'Open Sans', sans-serif;
}
html[dir='rtl'] h1, html[dir='rtl'] h2, html[dir='rtl'] h3,
html[dir='rtl'] h4, html[dir='rtl'] h5, html[dir='rtl'] h6 {
  font-family: 'Noto Sans Arabic', 'Poppins', sans-serif;
}

/* ── Glass Card ── */
.glass-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.glass-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

/* ── Speaker Images (B&W → Color on hover) ── */
img.sisc-speaker-img {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
  border-radius: 50%;
}
img.sisc-speaker-img:hover {
  filter: grayscale(0%);
}

/* ── Smooth Transitions ── */
a, button, .sppb-btn {
  transition: all 0.2s ease;
}

/* ── Navigation: Register pill button (gold) ── */
.sp-megamenu-parent > li.item-119 > a {
  background: #FFB60F !important;
  color: #002D62 !important;
  border-radius: 100px !important;
  padding: 8px 24px !important;
  font-weight: 700 !important;
  margin-left: 8px;
  transition: all 0.2s ease !important;
}
.sp-megamenu-parent > li.item-119 > a:hover {
  background: #ffffff !important;
  color: #002D62 !important;
  transform: scale(1.05);
}

/* ── Offcanvas Register pill ── */
.offcanvas-menu li.item-119 > a {
  background: #FFB60F;
  color: #002D62;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  text-align: center;
  display: block;
  margin-top: 8px;
}

/* ── Menu hover + active state (HIGH: nav-state-active) ── */
.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li.active > a {
  color: #002D62 !important;
}
.sp-megamenu-parent > li.active > a {
  position: relative;
}
.sp-megamenu-parent > li.active > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--sisc-gold);
  border-radius: 2px;
}

/* ── SP PB Button overrides for gold ── */
.sppb-btn-custom {
  transition: all 0.2s ease !important;
}
.sppb-btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ── Section heading color consistency ── */
.sppb-addon-title {
  font-family: 'Poppins', sans-serif;
}

/* ── Card hover effects ── */
.sppb-addon-raw-html div[style*='border-radius:16px'],
.sppb-addon-raw-html div[style*='border-radius:20px'] {
  transition: all 0.3s ease;
}
.sppb-addon-raw-html div[style*='border-radius:16px']:hover,
.sppb-addon-raw-html div[style*='border-radius:20px']:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ── Stats section: override H2 visual for stat numbers ── */
.sisc-stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}
.sisc-stat-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ── Footer ── */
#sp-footer {
  background: #001a3a;
}
.sp-copyright {
  color: rgba(255,255,255,0.7);
}

/* ── Language switcher ── */
.mod-languages a {
  color: inherit;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
}
.mod-languages a:hover,
.mod-languages .lang-active a {
  background: rgba(0,45,98,0.1);
  color: #002D62;
}

/* ── Reduced Motion (MEDIUM a11y) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .glass-card:hover,
  .sppb-addon-raw-html div:hover,
  .sppb-btn-custom:hover,
  .sp-megamenu-parent > li.item-119 > a:hover {
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sppb-addon-title { font-size: 24px !important; }

  /* Ensure body text >= 16px on mobile (MEDIUM: readable-font-size) */
  body, p, .sppb-addon-text-block, input, textarea, select {
    font-size: 16px;
  }

  /* Stats number size on mobile */
  .sisc-stat-number {
    font-size: 36px;
  }
}

/* ── Tablet: 2x2 grid for audience cards (MEDIUM: mobile-first) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .sisc-audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* ── Hide language switcher until Arabic translations are ready (LOW) ── */
.mod-languages {
  display: none !important;
}

/* ── Fix Nav Active Color ── */
:root {
  --sppb-menu-text-hover-color: #FFB60F;
  --sppb-menu-text-active-color: #002D62;
}

/* ── Mobile Spacing ── */
@media (max-width: 991px) {
  .sp-page-builder .page-content .sppb-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .sppb-btn-custom {
    padding: 14px 32px !important;
    font-size: 14px !important;
  }
}
@media (max-width: 576px) {
  .sp-page-builder .page-content .sppb-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}

/* ── Shadow System ── */
.sppb-addon-raw-html div[style*="border-radius:16px"],
.sppb-addon-raw-html div[style*="border-radius:20px"] {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
.sppb-addon-raw-html div[style*="border-radius:16px"]:hover,
.sppb-addon-raw-html div[style*="border-radius:20px"]:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* ── Button Hover Polish ── */
.sppb-btn-custom {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sppb-btn-custom:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

/* ── Text Contrast Enhancement ── */
.sisc-stat-label {
  color: rgba(255,255,255,0.85) !important;
}
