/* Brand Colors */
:root {
  --brand-primary: #0066CC; /* الأزرق المعتمد للصورة */
  --brand-secondary: #0066CC; /* توحيد للأزرار والشارة */
  --brand-accent: #00B8A3;   /* الفيروزي الهندسي */
  --brand-blue-dark: #023E8A;
  --brand-red-dark: #E63946;
  --brand-red-light: #FF6B6B;
  --brand-dark: #1a1a1a;
}

/* RTL/LTR helpers */
body.rtl { direction: rtl; text-align: right; }
body.ltr { direction: ltr; text-align: left; }

/* Arabic font */
@font-face {
  font-family: 'NotoKufiArabic';
  src: url('../fonts/NotoKufiArabic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
body.rtl, body[dir="rtl"] { font-family: 'NotoKufiArabic', 'Tahoma', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }

/* Ensure header/nav use Arabic font in RTL overriding template nav font */
body.rtl .header, body[dir="rtl"] .header,
body.rtl .navmenu, body[dir="rtl"] .navmenu,
body.rtl .navmenu a, body[dir="rtl"] .navmenu a,
body.rtl .header .logo h1, body[dir="rtl"] .header .logo h1 {
  font-family: 'NotoKufiArabic', 'Tahoma', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}

/* Swap margins/paddings for RTL where needed */
body.rtl .ms-4 { margin-left: 0 !important; margin-right: 1.5rem !important; }
body.rtl .me-2 { margin-right: 0 !important; margin-left: .5rem !important; }
body.rtl .ms-2 { margin-left: 0 !important; margin-right: .5rem !important; }
body.rtl .ps-3 { padding-left: 0 !important; padding-right: 1rem !important; }
body.rtl .pe-3 { padding-right: 0 !important; padding-left: 1rem !important; }

/* Header alignment in RTL */
body.rtl .header .topbar .language { margin-left: 0; margin-right: 10px; }
body.rtl .navmenu ul { padding-right: 0; }
body.rtl .navmenu a.active::after { margin-left: 0; }
body.rtl .track-item .track-caret { transform-origin: center; }


/* Header & Buttons */
.header .sitename { color: var(--brand-primary); }
.btn-primary,
.btn.btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); }
.btn-primary:hover,
.btn.btn-primary:hover { background: var(--brand-secondary); border-color: var(--brand-secondary); }

/* Slider overlay */
.slider-section .position-relative::after {
  content: "";
  position: absolute;
  inset: 0;
  /* تخفيف التعتيم ليبدو السلايدر أكثر إشراقاً */
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}
.slider-section .position-absolute { z-index: 2; }
.slider-section .swiper { height: 60vh; min-height: 420px; max-height: 720px; }
.slider-section .swiper-slide { height: 100%; }
.slider-section .swiper img { width: 100%; height: 100%; display: block; object-fit: cover; filter: brightness(1.06) contrast(0.98) saturate(1.03); }
.slider-section { padding-left: 0; padding-right: 0; }
.hero-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.7); opacity: 1; }
.hero-swiper .swiper-pagination-bullet-active { background: var(--brand-primary); }
.hero-swiper .swiper-button-next, .hero-swiper .swiper-button-prev { color: #fff; text-shadow: 0 4px 10px rgba(0,0,0,.35); }

/* Slide presentation */
.slide-cover { position: relative; height: 60vh; min-height: 420px; }
.slide-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.55)); }
/* تركيز التدرج على الجهة اليسرى كما في التصميم */
.slide-cover .slide-gradient.left-heavy { background:
  /* تعتيم أفقي لقراءة النص على يسار الشاشة في LTR */
  linear-gradient(90deg, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.50) 25%, rgba(0,0,0,0.32) 55%, rgba(0,0,0,0.16) 72%, rgba(0,0,0,0.02) 100%),
  /* توزيع عمودي: أكثر قتامة بالأعلى، أفتح بالأسفل لرفع الإضاءة */
  linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.26) 48%, rgba(0,0,0,0.10) 78%, rgba(0,0,0,0.00) 100%),
  /* وهج أبيض أقوى قرب الأسفل لزيادة الوضوح */
  radial-gradient(70% 46% at 50% 96%, rgba(255,255,255,0.28), rgba(255,255,255,0.00) 62%),
  /* طبقة فيروزية ناعمة لعمق بصري */
  radial-gradient(60% 40% at 50% 100%, rgba(0,184,163,0.14), rgba(0,184,163,0.00) 64%);
}

/* عكس اتجاه التعتيم الجانبي عندما تكون اللغة RTL (النص على اليمين) */
body.rtl .slide-cover .slide-gradient.left-heavy { background:
  linear-gradient(270deg, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.50) 25%, rgba(0,0,0,0.32) 55%, rgba(0,0,0,0.16) 72%, rgba(0,0,0,0.02) 100%),
  linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.26) 48%, rgba(0,0,0,0.10) 78%, rgba(0,0,0,0.00) 100%),
  radial-gradient(70% 46% at 50% 96%, rgba(255,255,255,0.28), rgba(255,255,255,0.00) 62%),
  radial-gradient(60% 40% at 50% 100%, rgba(0,184,163,0.14), rgba(0,184,163,0.00) 64%);
}
.slide-content { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; max-width: 820px; padding: 0 16px; }
/* محاذاة النص يسارًا */
.slide-content.align-left { left: 0; right: auto; top: 46%; transform: translate(0, -50%); text-align: left; max-width: 1100px; padding-left: 7vw; padding-right: 16px; }
body.rtl .slide-content.align-left { right: 0; left: auto; top: 46%; text-align: right; padding-right: 7vw; padding-left: 16px; }
.slide-panel { display: inline-block; background: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.6); border-radius: 18px; padding: 18px 22px; box-shadow: 0 10px 28px rgba(0,0,0,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.slide-panel .slide-title { color: #102a49; text-shadow: none; }
.slide-panel .slide-text { color: #163a66; }
.slide-kicker { display: inline-block; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); padding: 6px 10px; border-radius: 999px; margin-bottom: 10px; font-weight: 600; letter-spacing: .5px; }
.slide-title { 
  font-size: clamp(28px, 5vw, 56px); 
  font-weight: 800; 
  margin: 0 0 12px; 
  text-shadow: 0 8px 24px rgba(0,0,0,.6);
  line-height: 1.2;
  letter-spacing: 0.5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.slide-text { 
  font-size: clamp(16px, 1.8vw, 22px); 
  opacity: .95; 
  margin-bottom: 16px; 
  line-height: 1.4;
  text-shadow: 0 4px 12px rgba(0,0,0,.4);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.btn-cta { padding: 10px 18px; border-radius: 10px; box-shadow: 0 10px 24px rgba(114,9,183,.25); }

/* عنوان كبير وشارة التاريخ كما في الصورة */
.hero-title { 
  font-size: clamp(24px, 4.5vw, 64px); 
  line-height: 1.1; 
  font-weight: 900; 
  letter-spacing: .5px; 
  margin-bottom: 12px; 
  text-transform: uppercase; 
  text-shadow: 0 10px 30px rgba(0,0,0,.7); 
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.hero-title .hero-accent { 
  color: var(--brand-primary); 
  display: inline-block; 
  margin-right: 8px; 
  font-size: 1.1em;
}
body.rtl .hero-title .hero-accent { margin-right: 0; margin-left: 8px; }
.hero-sub { 
  font-size: clamp(18px, 2vw, 26px); 
  opacity: .98; 
  color: #e8eef6; 
  margin-bottom: 0; 
  line-height: 1.3;
  text-shadow: 0 6px 18px rgba(0,0,0,.5);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.hero-badge { position: absolute; left: 7vw; bottom: 32px; background: var(--brand-primary); color: #fff; border-radius: 8px; padding: 12px 18px; font-weight: 700; letter-spacing: .6px; box-shadow: 0 10px 28px rgba(0,102,204,.35); text-transform: uppercase; display: inline-block; }
body.rtl .hero-badge { left: auto; right: 7vw; }

/* طبقة زخرفية فيروزية بأشكال هندسية رقيقة */
.slide-geo { position: absolute; inset: 0; pointer-events: none; }
.slide-geo::before,
.slide-geo::after { content: ""; position: absolute; border-radius: 24px; filter: blur(2px); opacity: .35; }
.slide-geo::before { width: 42%; height: 38%; left: 8%; top: 16%; background: linear-gradient(135deg, rgba(0,184,163,.22), rgba(0,184,163,0)); border: 1px solid rgba(0,184,163,.25); }
.slide-geo::after { width: 28%; height: 22%; left: 22%; bottom: 18%; background: linear-gradient(135deg, rgba(0,184,163,.18), rgba(0,184,163,0)); border: 1px solid rgba(0,184,163,.22); }
body.rtl .slide-geo::before { left: auto; right: 8%; }
body.rtl .slide-geo::after { left: auto; right: 22%; }

@media (max-width: 767.98px) {
  .slide-cover { min-height: 360px; }
  .slide-content.align-left { top: 42%; padding-left: 24px; padding-right: 24px; }
  body.rtl .slide-content.align-left { top: 42%; padding-right: 24px; padding-left: 24px; }
  .hero-badge { left: 24px; right: 24px; bottom: 18px; font-size: 12px; padding: 10px 14px; text-transform: none; }
  body.rtl .hero-badge { right: 24px; left: 24px; }
  
  /* تحسين الخطوط للشاشات الصغيرة */
  .slide-title {
    font-size: clamp(20px, 6vw, 32px) !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }
  
  .slide-text {
    font-size: clamp(14px, 2.5vw, 18px) !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }
  
  .hero-title {
    font-size: clamp(18px, 5vw, 28px) !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
  }
  
  .hero-sub {
    font-size: clamp(14px, 2.5vw, 18px) !important;
    line-height: 1.3 !important;
  }
}

/* Hero tweaks */
.hero .subtitle { color: var(--brand-accent); font-weight: 600; }
.hero .btn-primary { padding: 10px 22px; border-radius: 8px; }
.hero .btn-secondary { color: var(--brand-primary); border: 1px solid var(--brand-primary); padding: 10px 22px; border-radius: 8px; }
.hero .btn-secondary:hover { background: var(--brand-primary); color: #fff; }

/* Header underline for active link */
.navmenu a { position: relative; z-index: 1; }
.navmenu a.active { color: #fff; }
.navmenu a.active::after { display: none; }
.navmenu a.active::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 8px; bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  box-shadow: 0 10px 22px rgba(67,97,238,0.25), 0 2px 6px rgba(0,0,0,0.06);
  z-index: -1;
}

/* Active for dropdown items */
.navmenu .dropdown ul a.active { color: #fff; position: relative; }
.navmenu .dropdown ul a.active::before {
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: 6px; bottom: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  box-shadow: 0 8px 18px rgba(67,97,238,0.25);
  z-index: -1;
}

@media (max-width: 1199px) {
  .navmenu a.active::before { left: 14px; right: 14px; top: 6px; bottom: 6px; }
}

/* Conference hero styling */
.conf-hero {
  position: relative;
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-radius: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.conf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 320px at 85% 20%, rgba(105, 144, 255, 0.10), rgba(255,255,255,0) 60%),
    radial-gradient(520px 280px at 15% 80%, rgba(199, 125, 255, 0.10), rgba(255,255,255,0) 60%);
  border-radius: inherit;
}
.conf-hero .conf-hero-box { background: rgba(255,255,255,0.08); border-radius: 16px; padding: 24px; }
.conf-card { background: #ffffff; border-radius: 16px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); height: 100%; min-height: 420px; }
.conf-card img { border-radius: 12px; display: block; width: 100%; height: 100%; object-fit: cover; }

/* Enhanced image styling for dual images */
.image-container {
  position: relative;
  height: 100%;
  min-height: 200px;
  border-radius: 16px;
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.12),
    0 4px 10px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: visible;
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.05) 50%, 
    rgba(0,0,0,0.05) 100%);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.image-container:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.15),
    0 8px 16px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1.02) contrast(1.05) saturate(1.1);
  border-radius: inherit;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.image-container:hover .hero-image {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.08) saturate(1.15);
}

/* Add subtle animation on load */
@keyframes imageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.image-container {
  animation: imageFadeIn 0.6s ease-out;
}

.image-container:nth-child(2) {
  animation-delay: 0.2s;
}

/* Add gradient overlay for better text readability if needed */
.image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(0,0,0,0.1));
  border-radius: 0 0 16px 16px;
  z-index: 2;
  pointer-events: none;
}

/* Responsive adjustments for dual images */
@media (max-width: 767.98px) {
  .image-container {
    min-height: 150px;
    border-radius: 12px;
  }
  
  .image-container:hover {
    transform: translateY(-2px) scale(1.01);
  }
  
  .image-container:hover .hero-image {
    transform: scale(1.05);
  }
}

@media (min-width: 1200px) {
  .image-container {
    min-height: 250px;
  }
}

/* Add subtle pulse effect for attention */
@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 
      0 8px 25px rgba(0,0,0,0.12),
      0 4px 10px rgba(0,0,0,0.08),
      inset 0 1px 0 rgba(255,255,255,0.1);
  }
  50% {
    box-shadow: 
      0 12px 30px rgba(0,0,0,0.15),
      0 6px 15px rgba(0,0,0,0.1),
      inset 0 1px 0 rgba(255,255,255,0.15);
  }
}

.image-container:hover {
  animation: none;
}

/* Ensure consistent spacing and alignment */
.conf-card .row.g-4 {
  margin: 0 -12px;
  height: 100%;
}

.conf-card .row.g-4 > [class*="col-"] {
  padding: 0 12px;
  display: flex;
  align-items: stretch;
}

/* Perfect alignment for dual images */
.conf-card .row.g-4 .col-6 {
  height: 100%;
  min-height: 200px;
}

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add subtle border and shadow consistency */
.image-container {
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.1),
    0 4px 12px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Enhanced hover state with better visual feedback */
.image-container:hover {
  border-color: rgba(0,102,204,0.3);
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.15),
    0 10px 20px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 0 0 1px rgba(0,102,204,0.1);
}

/* Add loading state animation */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.image-container::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  background-size: 200px 100%;
  animation: shimmer 2s infinite;
}

.image-container:hover::before {
  animation: none;
}

/* Best fit for images - optimized responsive display */
.hero-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* Responsive image sizing */
@media (max-width: 575.98px) {
  .hero-image {
    max-width: 180px;
    max-height: 100px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-image {
    max-width: 200px;
    max-height: 120px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-image {
    max-width: 220px;
    max-height: 130px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-image {
    max-width: 240px;
    max-height: 140px;
  }
}

@media (min-width: 1200px) {
  .hero-image {
    max-width: 260px;
    max-height: 150px;
  }
}

/* Force smaller image sizes for vertical layout - UPDATED */
.vertical-stack-layout .image-container {
  padding: 4px !important;
  min-height: 80px !important;
  max-height: 100px !important;
  width: 150px !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
}

.vertical-stack-layout .hero-image {
  max-width: 140px !important;
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 6px !important;
}

/* Responsive overrides for vertical layout - UPDATED */
@media (max-width: 575.98px) {
  .vertical-stack-layout .image-container {
    width: 120px !important;
    max-height: 80px !important;
    min-height: 60px !important;
  }
  
  .vertical-stack-layout .hero-image {
    max-width: 110px !important;
    max-height: 60px !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .vertical-stack-layout .image-container {
    width: 140px !important;
    max-height: 90px !important;
    min-height: 70px !important;
  }
  
  .vertical-stack-layout .hero-image {
    max-width: 130px !important;
    max-height: 70px !important;
  }
}

@media (min-width: 768px) {
  .vertical-stack-layout .image-container {
    width: 150px !important;
    max-height: 100px !important;
    min-height: 80px !important;
  }
  
  .vertical-stack-layout .hero-image {
    max-width: 140px !important;
    max-height: 80px !important;
  }
}

/* Special handling for different image orientations */
.image-container[data-orientation="portrait"] .hero-image {
  max-height: 90%;
  width: auto;
}

.image-container[data-orientation="landscape"] .hero-image {
  max-width: 90%;
  height: auto;
}

.image-container[data-orientation="square"] .hero-image {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
}

/* Layout Options CSS */

/* Option 1: Vertical Stack Layout - Optimized for container fit */
.vertical-stack-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.vertical-stack-layout .image-container {
  width: 100%;
  max-width: 200px;
  height: auto;
  min-height: 80px;
  max-height: 45%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive adjustments for vertical layout */
@media (max-width: 575.98px) {
  .vertical-stack-layout {
    gap: 8px;
    padding: 8px;
  }
  
  .vertical-stack-layout .image-container {
    max-width: 200px;
    min-height: 100px;
    max-height: 120px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .vertical-stack-layout {
    gap: 10px;
    padding: 10px;
  }
  
  .vertical-stack-layout .image-container {
    max-width: 220px;
    min-height: 110px;
    max-height: 130px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .vertical-stack-layout .image-container {
    max-width: 240px;
    min-height: 120px;
    max-height: 140px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .vertical-stack-layout .image-container {
    max-width: 260px;
    min-height: 130px;
    max-height: 150px;
  }
}

@media (min-width: 1200px) {
  .vertical-stack-layout .image-container {
    max-width: 280px;
    min-height: 140px;
    max-height: 160px;
  }
}

/* Option 2: Horizontal Side-by-Side - Optimized */
.horizontal-layout {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 16px;
  align-items: center;
  justify-content: center;
}

.horizontal-layout .image-container {
  flex: 1;
  height: 100%;
  min-height: 120px;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.horizontal-layout .image-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Option 3: Overlapping Cards */
.overlapping-layout {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlapping-layout .image-container:first-child {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 70%;
  height: 70%;
  z-index: 2;
  transform: rotate(-2deg);
}

.overlapping-layout .image-container:last-child {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 70%;
  height: 70%;
  z-index: 1;
  transform: rotate(2deg);
}

/* Option 4: Grid Layout */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.grid-layout .image-container {
  width: 100%;
  height: 100%;
  min-height: 150px;
}

/* Option 5: Carousel/Slider Layout */
.carousel-layout {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-layout .image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-layout .image-container.active {
  opacity: 1;
}

.carousel-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--brand-primary);
}

/* Optimized image display for container fit */
.conf-card .vertical-stack-layout .image-container {
  width: 100% !important;
  max-width: 200px !important;
  height: auto !important;
  min-height: 80px !important;
  max-height: 45% !important;
  padding: 8px !important;
  margin: 0 auto !important;
  flex: 1 !important;
}

.conf-card .vertical-stack-layout .hero-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  transition: transform 0.3s ease !important;
}

.conf-card .vertical-stack-layout .hero-image:hover {
  transform: scale(1.05) !important;
}

/* Horizontal layout image optimization */
.horizontal-layout .hero-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  transition: transform 0.3s ease !important;
}

.horizontal-layout .hero-image:hover {
  transform: scale(1.05) !important;
}

/* Enhanced responsive design for proper container fit */
@media (max-width: 575.98px) {
  .vertical-stack-layout {
    gap: 8px;
    padding: 12px;
  }
  
  .vertical-stack-layout .image-container {
    max-width: 150px;
    min-height: 60px;
    max-height: 40%;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .vertical-stack-layout .image-container {
    max-width: 170px;
    min-height: 70px;
    max-height: 42%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .vertical-stack-layout .image-container {
    max-width: 180px;
    min-height: 80px;
    max-height: 44%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .vertical-stack-layout .image-container {
    max-width: 190px;
    min-height: 90px;
    max-height: 45%;
  }
}

@media (min-width: 1200px) {
  .vertical-stack-layout .image-container {
    max-width: 200px;
    min-height: 100px;
    max-height: 45%;
  }
}

/* Responsive design for horizontal layout */
@media (max-width: 575.98px) {
  .horizontal-layout {
    gap: 8px;
    padding: 12px;
  }
  
  .horizontal-layout .image-container {
    min-height: 80px;
    padding: 6px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .horizontal-layout .image-container {
    min-height: 100px;
    padding: 7px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .horizontal-layout .image-container {
    min-height: 120px;
    padding: 8px;
  }
}

@media (min-width: 992px) {
  .horizontal-layout .image-container {
    min-height: 140px;
    padding: 10px;
  }
}

/* Helper classes for height control */
.height-small { height: 200px !important; }
.height-medium { height: 300px !important; }
.height-large { height: 400px !important; }
.height-auto { height: auto !important; }

.image-small { height: 80px !important; }
.image-medium { height: 120px !important; }
.image-large { height: 160px !important; }

/* Responsive height adjustments */
@media (max-width: 767.98px) {
  .height-small { height: 150px !important; }
  .height-medium { height: 200px !important; }
  .height-large { height: 250px !important; }
  
  .image-small { height: 60px !important; }
  .image-medium { height: 80px !important; }
  .image-large { height: 100px !important; }
}
.conf-copy { 
  position: relative;
  color: #163a66;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.86));
  border: 1px solid #e6edf7;
  border-radius: 16px;
  padding: 22px; height: 100%; min-height: 420px;
  box-shadow: 0 12px 28px rgba(13,38,76,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 767.98px) {
  .conf-card { min-height: 300px; }
  .conf-copy { min-height: 300px; }
}

/* Desktop hero target height */
@media (min-width: 1200px) {
  .conf-card { min-height: 520px; }
  .conf-copy { min-height: 520px; }
}
.conf-copy::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background:
    radial-gradient(420px 240px at 15% 0%, rgba(105, 144, 255, 0.10), rgba(255,255,255,0) 60%),
    radial-gradient(360px 220px at 85% 100%, rgba(199, 125, 255, 0.10), rgba(255,255,255,0) 62%); pointer-events: none; }
.conf-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; margin-bottom: 8px; }
.conf-title { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.25; margin: 0 0 12px; font-weight: 800; text-shadow: 0 6px 18px rgba(13,38,76,0.10); }
.conf-accent { color: var(--brand-accent); }
.conf-mode { font-weight: 600; opacity: 0.9; margin-bottom: 8px; }
.conf-date span { color: var(--brand-red-dark); font-weight: 800; font-size: clamp(18px, 2.2vw, 24px); }

/* Enhanced conference identity */
.identity-logo { width: 54px; height: 54px; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.15); object-fit: cover; }
.conf-badge { background: linear-gradient(90deg, #7400b8, #6930c3); color: #ffffff; border: 0; padding: 8px 12px; border-radius: 999px; font-weight: 800; letter-spacing: .4px; box-shadow: 0 6px 14px rgba(116,0,184,.25); }
.conf-subtitle { color: #3e566e; margin: 6px 0 14px; opacity: .95; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.conf-chip { background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.18); color: #eaf3ff; padding: 8px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.conf-cta { display: flex; gap: 12px; margin-bottom: 14px; }
.btn-cta { padding: 10px 18px; border-radius: 10px; box-shadow: 0 10px 24px rgba(116,0,184,.25); }
.btn-cta-alt { padding: 10px 18px; border-radius: 10px; }
.conf-highlights { display: flex; gap: 16px; color: #3e566e; opacity: .95; }
.conf-highlights i { color: #76c9ff; margin-right: 6px; }

/* Illustration block used instead of image in hero */
.hero-gradient-illustration {
  height: 360px;
  border-radius: 16px;
  background:
    radial-gradient(220px 160px at 25% 30%, rgba(105, 144, 255, 0.18), rgba(255,255,255,0) 60%),
    radial-gradient(280px 200px at 70% 70%, rgba(199, 125, 255, 0.16), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #ffffff, #eef4ff);
  border: 1px solid #e8eef6;
  box-shadow: 0 12px 28px rgba(13, 38, 76, 0.08);
}

/* Partners Section */
.partners-section { background: #f7f9fc; border-radius: 20px; padding: 32px 0; }
.partners-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 10px 24px rgba(13, 38, 76, 0.08); border: 1px solid #e8eef6; }
.partners-title { color: #1b3355; font-weight: 800; margin: 0; }
.partners-underline { display: inline-block; width: 64px; height: 4px; background: var(--brand-secondary); border-radius: 4px; margin-top: 8px; }
.partners-body { padding-top: 14px; }
.logo-tile { background: #f4f7fb; border-radius: 14px; padding: 0; display: flex; align-items: center; justify-content: center; height: 120px; border: 1px solid #e6ecf3; overflow: hidden; }
.logo-tile.small { height: 90px; }
.logo-banner { background: #f4f7fb; border-radius: 14px; padding: 0; display: flex; align-items: center; justify-content: center; height: 180px; border: 1px solid #e6ecf3; overflow: hidden; }
.logo-tile img, .logo-banner img { width: 90%; height: 90%; object-fit: contain; padding: 0; }

/* Partner tile hover reveal */
.logo-tile { position: relative; }
.partner-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(2,62,138,0.85); color: #fff; opacity: 0; transition: opacity .25s ease; padding: 8px; text-align: center; }
.logo-tile:hover .partner-overlay { opacity: 1; }
.partner-overlay .name { font-weight: 800; line-height: 1.3; }

/* Tracks Section */
.tracks-section { padding: 36px 0 20px; }
.tracks-title { color: #1b3355; font-weight: 800; margin: 0; }
.tracks-underline { display: inline-block; width: 72px; height: 4px; background: var(--brand-secondary); border-radius: 4px; margin-top: 8px; }

.tracks-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #6c757d;
}

.tracks-description h1,
.tracks-description h2,
.tracks-description h3,
.tracks-description h4,
.tracks-description h5,
.tracks-description h6 {
  color: #495057;
  margin-bottom: 1rem;
}

.tracks-description p {
  margin-bottom: 1rem;
}

.tracks-description ul,
.tracks-description ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.tracks-description li {
  margin-bottom: 0.5rem;
}

.tracks-description strong {
  color: #495057;
  font-weight: 600;
}

.tracks-description em {
  font-style: italic;
  color: #6c757d;
}

/* CKEditor 5 Custom Styles */
.ck-editor__editable {
  min-height: 200px !important;
  border-radius: 8px !important;
  border: 1px solid #e1e5e9 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.ck-editor__editable:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {
  border-color: #e1e5e9 !important;
}

.ck.ck-toolbar {
  border-radius: 8px 8px 0 0 !important;
  border: 1px solid #e1e5e9 !important;
  border-bottom: none !important;
  background: #f8f9fa !important;
}

.ck.ck-editor__main > .ck-editor__editable {
  border-radius: 0 0 8px 8px !important;
}

.ck.ck-button {
  border-radius: 4px !important;
}

.ck.ck-button:hover:not(.ck-disabled) {
  background: #e9ecef !important;
}

.ck.ck-button.ck-on {
  background: #007bff !important;
  color: white !important;
}

.ck.ck-dropdown__panel {
  border-radius: 8px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* RTL Support for Arabic */
[dir="rtl"] .ck.ck-editor__editable {
  text-align: right !important;
}

[dir="rtl"] .ck.ck-toolbar {
  direction: rtl !important;
}

/* Arabic Text Spacing Improvements */
.tracks-section[dir="rtl"] .tracks-title {
  line-height: 1.4 !important;
  letter-spacing: 0.5px !important;
  word-spacing: 2px !important;
  margin-bottom: 1rem !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: #1b3355 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.tracks-section[dir="rtl"] .tracks-description {
  line-height: 1.8 !important;
  letter-spacing: 0.3px !important;
  word-spacing: 1.5px !important;
  margin-bottom: 0.5rem !important;
  text-align: justify !important;
  font-size: 1.1rem !important;
  color: #495057 !important;
}

.tracks-section[dir="rtl"] .tracks-description p {
  margin-bottom: 1.2rem !important;
  line-height: 1.8 !important;
}

.tracks-section[dir="rtl"] .tracks-description h1,
.tracks-section[dir="rtl"] .tracks-description h2,
.tracks-section[dir="rtl"] .tracks-description h3,
.tracks-section[dir="rtl"] .tracks-description h4,
.tracks-section[dir="rtl"] .tracks-description h5,
.tracks-section[dir="rtl"] .tracks-description h6 {
  line-height: 1.5 !important;
  margin-bottom: 1.5rem !important;
  margin-top: 2rem !important;
  letter-spacing: 0.8px !important;
}

.tracks-section[dir="rtl"] .tracks-description ul,
.tracks-section[dir="rtl"] .tracks-description ol {
  line-height: 1.7 !important;
  margin-bottom: 1.5rem !important;
  padding-right: 2rem !important;
  padding-left: 0 !important;
}

.tracks-section[dir="rtl"] .tracks-description li {
  margin-bottom: 0.8rem !important;
  line-height: 1.7 !important;
  letter-spacing: 0.2px !important;
}

.tracks-section[dir="rtl"] .tracks-underline {
  margin-top: 0.5rem !important;
  margin-bottom: 1.5rem !important;
}

.tracks-underline {
  margin-top: 0.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Track Items Arabic Spacing */
.tracks-section[dir="rtl"] .track-text {
  line-height: 1.4 !important;
  letter-spacing: 0.3px !important;
  word-spacing: 1px !important;
}

/* Partners Horizontal Layout */
.partners-horizontal-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 100%;
}

.partners-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.logo-item {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.partner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 0.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-item:hover .partner-overlay {
  opacity: 1;
}

.partner-overlay .name {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .partners-horizontal-layout {
    gap: 1.5rem;
  }
  
  .partners-section {
    padding: 1.5rem;
  }
  
  .partners-logos {
    gap: 1rem;
  }
  
  .logo-item {
    width: 100px;
    height: 70px;
  }
}

@media (max-width: 576px) {
  .partners-logos {
    flex-direction: column;
    align-items: center;
  }
  
  .logo-item {
    width: 150px;
    height: 100px;
  }
}

/* Contact Section Styles */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-icon i {
  font-size: 2rem;
  color: white;
}

.contact-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info {
  font-size: 1.1rem;
  color: #495057;
  margin: 0;
  font-weight: 500;
}

.contact-additional {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.2);
}

.contact-detail h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-detail p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* RTL Support for Contact */
[dir="rtl"] .contact-card {
  text-align: center;
}

[dir="rtl"] .contact-title {
  text-align: center;
}

[dir="rtl"] .contact-info {
  text-align: center;
}

/* Contact Responsive Design */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-icon {
    width: 70px;
    height: 70px;
  }
  
  .contact-icon i {
    font-size: 1.8rem;
  }
  
  .contact-title {
    font-size: 1.1rem;
  }
  
  .contact-info {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .contact-card {
    padding: 1.5rem 1rem;
  }
  
  .contact-additional {
    padding: 2rem 1.5rem;
  }
}

.tracks-section[dir="rtl"] .track-children li {
  line-height: 1.6 !important;
  letter-spacing: 0.2px !important;
  word-spacing: 0.8px !important;
  margin-bottom: 0.6rem !important;
}

.tracks-section[dir="rtl"] .track-children li span {
  padding-right: 0.5rem !important;
}

.tracks-list { 
  display: grid; 
  gap: 20px; 
  margin-top: 2rem;
}

.track-block { 
  display: grid; 
  gap: 12px; 
}

/* Enhanced Arabic Spacing */
.tracks-section[dir="rtl"] .tracks-list {
  gap: 24px !important;
  margin-top: 2.5rem !important;
}

.tracks-section[dir="rtl"] .track-block {
  gap: 15px !important;
}

.tracks-section[dir="rtl"] .track-item {
  padding: 20px 24px !important;
  line-height: 1.5 !important;
}

.tracks-section[dir="rtl"] .track-children {
  padding: 15px 20px !important;
  line-height: 1.6 !important;
}
.track-item { background: linear-gradient(180deg, #ffffff, #f7fafc); border: 1px solid #e6ecf3; border-radius: 16px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 8px 20px rgba(13,38,76,0.06); width: 100%; text-align: left; }
.track-item:hover { box-shadow: 0 10px 24px rgba(13,38,76,0.1); }
.track-item .track-caret { transition: transform .25s ease; color: #163a66; }
.track-item[aria-expanded="true"] .track-caret { transform: rotate(180deg); }
.track-icon { color: #163a66; font-size: 18px; }
.track-text { color: #163a66; font-weight: 700; font-size: clamp(16px, 2.2vw, 22px); }
ul.track-children { list-style: none; margin: 0; padding: 0 8px 0 14px; display: grid; gap: 8px; grid-template-columns: 1fr; }
ul.track-children li { background: #ffffff; border: 1px solid #eef3f8; border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(13,38,76,0.04); }
ul.track-children i { color: var(--brand-secondary); }

@media (min-width: 768px) {
  ul.track-children { grid-template-columns: 1fr 1fr; }
}

/* Publication Section */
.publication-section { padding: 36px 0; }
.pub-title { color: #1b3355; font-weight: 800; margin: 0; }
.pub-underline { display: inline-block; width: 72px; height: 4px; background: var(--brand-secondary); border-radius: 4px; margin-top: 8px; }
.pub-wrapper { background: #ffffff; border: 1px solid #e6ecf3; border-radius: 20px; padding: 22px; box-shadow: 0 12px 28px rgba(13,38,76,0.08); }
.pub-badges { display: flex; gap: 18px; }
.pub-badge { background: #fff; border: 2px solid #f0f0f0; border-radius: 16px; padding: 16px 22px; box-shadow: 0 10px 24px rgba(13,38,76,0.06); }
.pub-badge.scopus { border-color: var(--brand-red-light); box-shadow: 0 10px 24px rgba(255,107,107,0.25); }
.pub-badge.scopus span { color: var(--brand-red-light); font-weight: 800; font-size: 28px; }
.pub-badge.xplore { border-color: var(--brand-secondary); }
.pub-badge.xplore span { color: var(--brand-blue-dark); font-weight: 800; font-size: 24px; }
.pub-text p { color: #3e566e; margin: 0; line-height: 1.8; }

/* Registration Section */
.registration-section { padding: 36px 0 60px; }
.reg-title { color: #1b3355; font-weight: 800; margin: 0; }
.reg-underline { display: inline-block; width: 72px; height: 4px; background: var(--brand-secondary); border-radius: 4px; margin-top: 8px; }
.reg-card { background: #fff; border: 1px solid #e6ecf3; border-radius: 16px; box-shadow: 0 12px 28px rgba(13,38,76,0.08); padding: 12px; }
.reg-fee-table thead th { background: var(--brand-blue-dark); color: #fff; border-color: transparent; vertical-align: middle; }
.reg-fee-table thead .sub-head th { background: var(--brand-secondary); }
.reg-fee-table tbody td { background: #f9fbfd; border-color: #edf2f7; }
.reg-notes { background: #fff; border: 1px solid #e6ecf3; border-radius: 16px; box-shadow: 0 10px 24px rgba(13,38,76,0.06); padding: 18px; }
.notes-title { color: #1b3355; font-weight: 800; margin: 0 0 8px; }
.notes-list { margin: 0; padding-left: 18px; color: #3e566e; line-height: 1.8; }

/* Dates Section */
.dates-section { padding: 36px 0; }
.dates-title { color: #1b3355; font-weight: 800; margin: 0; }
.dates-underline { display: inline-block; width: 72px; height: 4px; background: var(--brand-secondary); border-radius: 4px; margin-top: 8px; }
.date-card { background: #fff; border: 1px solid #e6ecf3; border-radius: 16px; box-shadow: 0 12px 28px rgba(13,38,76,0.08); padding: 18px; text-align: center; }
.date-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-blue-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 12px; box-shadow: 0 6px 14px rgba(2,62,138,0.35); }
.date-title { color: #163a66; font-weight: 700; line-height: 1.3; min-height: 44px; margin-bottom: 12px; }
.date-badge { background: linear-gradient(180deg, var(--brand-blue-dark), var(--brand-secondary)); color: #fff; border-radius: 14px; padding: 10px 12px; display: inline-block; min-width: 140px; box-shadow: inset 0 -2px 0 rgba(255,255,255,0.18); }
.date-badge.accent-primary { background: linear-gradient(180deg, var(--brand-blue-dark), var(--brand-secondary)); }
.date-badge.accent-success { background: linear-gradient(180deg, var(--brand-red-dark), var(--brand-red-light)); }
.date-badge strong { font-size: 18px; }
.old-date { color: #c24b4b; text-decoration: line-through; font-size: 12px; margin-bottom: 6px; }

/* Proceedings Section */
.proceedings-section { padding: 36px 0 60px; }
.proc-title { color: #1b3355; font-weight: 800; margin: 0; }
.proc-underline { display: inline-block; width: 72px; height: 4px; background: var(--brand-secondary); border-radius: 4px; margin-top: 8px; }
.proc-card { background: #fff; border: 1px solid #e6ecf3; border-radius: 16px; box-shadow: 0 12px 28px rgba(13,38,76,0.08); overflow: hidden; }
.proc-body { flex: 1 1 auto; padding: 18px; }
.proc-year { width: 260px; background: linear-gradient(180deg, var(--brand-blue-dark), var(--brand-secondary)); color: #fff; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.proc-badge { font-weight: 800; letter-spacing: 1px; opacity: 0.95; margin-bottom: 12px; }
.proc-year-num { font-size: 44px; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.proc-foot { font-size: 11px; text-align: center; opacity: 0.85; }
.proc-heading { font-weight: 800; color: #1b3355; font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.proc-desc { color: #3e566e; font-size: 14px; margin-bottom: 10px; }
.proc-doi { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color: #6a7b8c; font-size: 12px; }
.proc-link { color: #1f5ba0; margin-bottom: 8px; }

/* Header small tweak: pull nav slightly left on desktop */
@media (min-width: 992px) {
  .header .navmenu { margin-left: -12px; }
}

/* Emphasize language switcher */
.header .topbar .language {
  background: var(--brand-secondary);
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 10px rgba(105, 48, 195, 0.25);
  margin-left: 10px;
  line-height: 1;
}
.header .topbar .language i { font-size: 18px; }
.header .topbar .language:hover { background: #5d74f1; box-shadow: 0 6px 14px rgba(67,97,238,0.35); }

/* Speakers page */
.speakers-section .section-title { color: #1b3355; font-weight: 800; text-align: left; }
.speaker-card { display: grid; grid-template-columns: 220px 1fr; align-items: start; gap: 18px; padding: 18px; background: #fff; border: 1px solid #e6ecf3; border-radius: 16px; box-shadow: 0 10px 24px rgba(13,38,76,0.08); margin-bottom: 28px; }
.speaker-photo img { width: 220px; height: 220px; object-fit: cover; }
.speaker-content { text-align: left; }
.speaker-name { font-weight: 800; color: #1b3355; }
.speaker-affiliation { color: #1f5ba0; font-weight: 700; }
.speaker-bio { color: #3e566e; line-height: 1.8; }

/* RTL fixes for speakers */
body.rtl .speakers-section .section-title { text-align: right; }
body.rtl .speaker-card { grid-template-columns: 220px 1fr; }
body.rtl .speaker-content { text-align: right; }

/* Stack speaker card on small screens: text below image */
@media (max-width: 767.98px) {
  .speaker-card { grid-template-columns: 1fr; }
  .speaker-photo img { width: 100%; height: 240px; }
  .speaker-content { text-align: left; margin-top: 10px; }
  body.rtl .speaker-content { text-align: right; }
}

/* Submission section */
.submission-section { padding: 36px 0 60px; }
.submission-section .sub-title { color: #1b3355; font-weight: 800; }
.submission-section .sub-text { color: #3e566e; line-height: 1.8; }
body.rtl .submission-section .sub-title, body.rtl .submission-section .sub-text { text-align: right; }

/* Submission guidelines page */
.submission-guidelines-section .section-title { color: #1b3355; font-weight: 800; }
.submission-guidelines-section .section-subtitle { color: #163a66; font-weight: 800; }
.submission-guidelines-section .lead-text { color: #3e566e; line-height: 1.9; }
.submission-guidelines-section .guidelines-list { color: #3e566e; line-height: 1.9; padding-left: 18px; }
body.rtl .submission-guidelines-section .guidelines-list { padding-left: 0; padding-right: 18px; }

/* Committee page */
.committee-section .section-title { 
  color: #1b3355; 
  font-weight: 800; 
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}
.committee-section .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--brand-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}
.committee-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 20px; 
  margin-bottom: 3rem;
}
.committee-cell { 
  background: #fff; 
  border: 1px solid #e6ecf3; 
  border-radius: 16px; 
  box-shadow: 0 10px 24px rgba(13,38,76,0.08); 
  padding: 20px; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.committee-cell:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(13,38,76,0.15);
}
.committee-item { 
  display: grid; 
  grid-template-columns: 8px 1fr; 
  gap: 16px; 
  align-items: start; 
}
.committee-item .v-line { 
  width: 4px; 
  background: var(--brand-secondary); 
  border-radius: 4px; 
  height: 100%;
}
.committee-item .member-name { 
  color: #1b3355; 
  font-weight: 800; 
  margin: 0 0 8px 0; 
  font-size: 1.1rem;
  line-height: 1.4;
}
.committee-item .member-role { 
  font-size: 0.9rem; 
  margin-bottom: 8px;
  font-weight: 600;
}
.committee-item .member-affil { 
  color: #3e566e; 
  font-size: 0.95rem;
  line-height: 1.5;
}
body.rtl .committee-block { text-align: right; }

/* Special styling for different committee types */
.committee-section .section-title:first-of-type {
  margin-top: 0;
}

/* Technical committee special layout */
.committee-grid.technical-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 768px) {
  .committee-grid { 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  }
}

@media (min-width: 1200px) {
  .committee-grid { 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
  }
}

/* Program page */
.program-section .section-title { color: #1b3355; font-weight: 800; }