:root {
  --primary-orange: #f36e33;
  --primary-blue: #182c47;

  --light-bg: #ffffff;
  --light-text: #182c47;
  --light-card: #f9f9f9;
  --light-hero-bg: linear-gradient(to right, #ffffff, #f5f5f5);
  --container-bg: #232335;
  --dark-bg: #1c1c1c;
  --dark-text: #f1f1f1;
  --dark-card: #1e1e1e;
  --dark-nav: #1e1e2f;
  --container-dark-bg: #23232c;
  --dark-hero-bg: linear-gradient(to right, #0d0d0d, #1b1b1b);
  --hero-heading-color: var(--light-text);
  --hero-paragraph-color: var(--light-text);

  --primary-color: var(--primary-orange);
  --light-color: var(--dark-text);
  --dark-color: var(--dark-bg);
  --accent-color: var(--primary-orange);
}

html {
  scroll-behavior: smooth;
}

/* اللغة والاتجاه */
/* 
:lang(ar) {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
}

:lang(en) {
  font-family: 'Inter', sans-serif;
  direction: ltr;
  text-align: left;
}
*/
html[lang="ar"] body {
  font-family: "Tajawal", sans-serif;
  direction: rtl;
  text-align: right;
}

html[lang="en"] body {
  font-family: "Inter", sans-serif;
  direction: ltr;
  text-align: left;
}

body {
  margin: 0;
  background-color: var(--light-bg);
  color: var(--light-text);
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  --hero-heading-color: #ffcba4;
  /* مثال: لون فاتح مائل للبرتقالي */
  --hero-paragraph-color: #e0e0e0;
  /* مثال: رمادي فاتح مريح للعين */
}

body.dark a {
  color: var(--dark-text);
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1rem 2rem;
  background: rgba(255, 240, 220, 0.8);

  backdrop-filter: blur(10px);
}

body.dark header {
  background: rgba(15, 15, 15, 0.7);
}

select option {
  font-family: "Tajawal", sans-serif;
}

.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  direction: ltr !important;
  /* الترتيب ثابت */
}

.header-left {
  flex: 1;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-blue);
  text-align: left;
}

body.dark .header-left {
  color: var(--dark-text);
}

.header-center {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

html[lang="ar"] .header-center {
  direction: rtl;
}

html[lang="en"] .header-center {
  direction: ltr;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

#menu-icon {
  font-size: 1.6rem;
  color: var(--primary-blue);
  display: none;
}

body.dark #menu-icon {
  color: var(--dark-text);
}

/* NAVIGATION */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

/* الروابط داخل الـ nav */
nav a {
  position: relative;
  color: var(--light-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* عند المرور: تكبير خفيف + توهج */
nav a:hover {
  transform: scale(1.05);
}

/* حد سفلي فقط (من 0% إلى 90%) */
nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0;
  background-color: var(--primary-orange);
  bottom: 0;
  left: 5%;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 90%;
}

/* دعم RTL */
html[dir="rtl"] nav a::after {
  left: auto;
  right: 5%;
}

/* ألوان الوضع الليلي */
body.dark nav a {
  color: var(--dark-text);
}

/* LANG + THEME */

.lang-btn {
  background-color: transparent;
  color: var(--primary-blue);
  border: 1px solid transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  transition: color 0.3s, border-color 0.3s;
}

body.dark .lang-btn {
  color: var(--primary-orange);
}

.lang-btn:hover {
  color: var(--primary-orange);
  border-color: var(--primary-orange);
}

body.dark .lang-btn:hover {
  color: var(--dark-text);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--primary-orange);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* DROPDOWN */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  background-color: white;
  min-width: 300px;
  max-width: 90vw;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  border-radius: 8px;
  padding: 0.5rem 0;
  text-align: center;
  direction: ltr;
  /* تمنع انعكاس الاتجاه */
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 2.25rem;
  color: var(--light-text);
  text-decoration: none;
  transition: background 0.3s;
  font-size: 0.95rem;

  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
}

.dropdown-content a:hover {
  background-color: var(--primary-orange);
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

body.dark .dropdown-content {
  background-color: var(--dark-bg);
}

body.dark .dropdown-content a {
  color: var(--dark-text);
  background-color: var(--dark-bg);
}

body.dark .dropdown-content a:hover {
  background-color: var(--primary-orange);
  color: white;
}

html[dir="rtl"] .dropdown-content {
  right: 0;
  left: auto;
}

html[dir="ltr"] .dropdown-content {
  left: 0;
  right: auto;
}

/* HERO SECTION */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: start;
  padding: 4rem 2rem;
  gap: 2rem;
  background: linear-gradient(rgba(255, 240, 220, 0.8),
      rgba(243, 110, 51, 0.8)
      /* أزرق كحلي أكاديمي */
      /* بيج فاتح مريح */
    );
  transition: background 0.4s ease, color 0.4s ease;
}

.hero-content {
  flex: 1;
  max-width: 500px;
  margin: 0.75rem;
}

.logo-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo-img img {
  max-width: 90%;
  height: auto;
  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.4rem);
  }

  100% {
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--hero-heading-color);
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.95;
  color: var(--hero-paragraph-color);
}

body.dark .hero {
  background: linear-gradient(rgba(15, 15, 15, 0.9), rgba(90, 40, 20, 0.6));
  color: var(--dark-text);
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #f36e33, #ff6b6b);
  border: none;
  border-radius: 30px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.3s ease;
  margin: 0.75rem auto;
}

.cta-button:hover {
  transform: scale(1.05);
}

.primary-cta {
  background: linear-gradient(to right, #f36e33, #ff6b6b);
  font-weight: bold;
  margin: 1rem;
}

.secondary-cta {
  background: #ffffff20;
  border: 1px solid #fff;
  color: white;
  margin-top: 1rem;
  font-weight: normal;
}

.secondary-cta:hover {
  background: linear-gradient(to right, #f36e33, #ff6b6b);
  color: white !important;
  border: 0;
}

/* TIMELINE */

.timeline {
  position: relative;
  margin: 4rem auto;
  max-width: 700px;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 10%;
  left: 50%;
  width: 3px;
  background-color: var(--primary-orange);
  transform: translateX(-50%);
}

.timeline-event {
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
  padding: 1rem 3rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
}

.timeline-event::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--primary-orange);
  border-radius: 50%;
  border: 3px solid white;
  z-index: 2;
}

.timeline-event h4 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  width: 48%;
  text-wrap: auto;
}

.timeline-event p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--light-text);
}

body.dark .timeline-event p {
  color: var(--dark-text);
}

h2 {
  font-size: 2.1rem;
  text-align: center;
}

/* TOPICS GRID */
.topics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 2rem;
  margin: 3rem;
}

.topics-container .topic-card {
  position: relative;
  background: var(--light-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--light-text);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* توزيع السطر الأول داخل البطاقة */
.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* الأيقونة تمثل المجال */
.topic-icon {
  font-size: 2.4rem;
  color: var(--primary-orange);
}

/* النص */
.topic-text {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.6;
  margin: 0 1rem;
  flex: 1;
  text-align: start;
}

/* أيقونة الانتقال */
.topic-link-icon {
  font-size: 1.2rem;
  color: var(--primary-orange);
  position: absolute;
  bottom: 1.2rem;
  left: 1.5rem;
  transition: transform 0.3s;
}

.topic-card:hover .topic-link-icon {
  transform: scale(1.2);
}

body.dark .topic-card {
  background-color: var(--dark-card);
  color: var(--dark-text);
}

/* FOOTER */

/* Footer Container */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  padding: 3em 2em 1em;
  font-size: 0.95em;
}

.site-footer h4 {
  color: var(--primary-orange);
  font-size: 1.2em;
  margin-bottom: 0.8em;
}

.footer-heading-icon {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.2em;
  color: var(--primary-orange);
  margin-bottom: 0.8em;
}

.footer-heading-icon i {
  font-size: 1.2em;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 2.5em;
  border-bottom: 1px solid var(--dark-text);
  padding-bottom: 2em;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 240px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0 1em;
}

.footer-col ul li {
  line-height: 1.7;
  /* ✅ لتحسين القراءة */

  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.5em;
}

.footer-col ul li a {
  color: var(--dark-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-orange);
}

.sitemap-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Side Organizer Info */
.footer-side {
  text-align: center;
  margin-top: 2em;
}

.footer-logo {
  width: 90px;
  margin-bottom: 0.5em;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 1.5em;
  font-size: 0.9em;
  color: var(--dark-text);
}

.footer-bottom span {
  display: inline-block;
  margin: 0 0.3em;
}

.footer-bottom p {
  margin: 0.4em 0;
}

.social-icons a {
  margin-right: 0.5em;
  font-size: 1.2em;
  color: var(--light-color);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
}

/*  about page */
.about-container {
  max-width: 900px;
  margin: 5rem auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem 3rem;
  backdrop-filter: blur(4px);
}

body.dark .about-container {
  background-color: var(--dark-card);
}

.about-container h2 {
  text-align: center;
  color: var(--primary-orange);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-section {
  margin-bottom: 2.5rem;
}

.about-section h3 {
  color: var(--primary-blue);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

body.dark .about-section h3 {
  color: var(--primary-orange);
}

.about-section p {
  text-align: justify;
}

/* Topics page */

.topic-section {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

body.dark .topic-section {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.6);
}

.topic-section h3 {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-orange);
}

body.dark .topic-section h3 {
  color: var(--dark-text);
}

.topic-section ul {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  padding-inline-start: 0;
  margin: 0;
}

.topic-section ul li {
  background-color: rgba(243, 110, 51, 0.03);
  padding: 0.5rem 1rem;
  margin-bottom: 0.8rem;
  border-radius: 0.4rem;
  position: relative;
  transition: background-color 0.3s, transform 0.2s;
}

/* الوضع الافتراضي للغة الإنجليزية */
html[dir="ltr"] .topic-section ul li {
  border-left: 4px solid var(--primary-orange);
  border-right: none;
}

/* الوضع للغة العربية */
html[dir="rtl"] .topic-section ul li {
  border-right: 4px solid var(--primary-orange);
  border-left: none;
}

.topic-section ul li:hover {
  background-color: rgba(243, 110, 51, 0.18);
  transform: translateX(4px);
}

body.dark .topic-section ul li {
  background-color: var(--dark-card);
  border-left-color: var(--primary-orange);
  color: var(--dark-text);
}

/*cmt note*/
.cmt-note {
  background-color: rgba(243, 110, 51, 0.1);
  /* برتقالي شفاف */
  border-left: 4px solid var(--primary-orange);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-color, #333);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  transition: background-color 0.3s, color 0.3s;
}

/* الوضع الداكن */
body.dark .cmt-note {
  background-color: rgba(243, 110, 51, 0.15);
  /* برتقالي أغمق */
  color: #f0f0f0;
  border-left-color: var(--primary-orange);
}

/* REGISTRATION FORM STYLES */
.section {
  padding: 3rem 2rem;
  min-height: 60vh;
}

.card {
  background: var(--light-card);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s, background-color 0.3s;
}

body.dark .card {
  background-color: var(--dark-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form {
  width: 100%;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--light-text);
  font-size: 0.95rem;
}

body.dark .form-group label {
  color: var(--dark-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: white;
  color: var(--light-text);
  transition: border-color 0.3s, box-shadow 0.3s;
}

body.dark .form-group input[type="text"],
body.dark .form-group input[type="email"],
body.dark .form-group input[type="tel"],
body.dark .form-group select {
  background-color: var(--container-dark-bg);
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(243, 110, 51, 0.1);
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-orange);
}

.radio-option label {
  cursor: pointer;
  font-weight: normal !important;
}

.btn {
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-orange), #ff6b6b);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #e05a22, #ff5252);
}

/* ALERT MESSAGES */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-left: 4px solid;
}

html[dir="rtl"] .alert {
  border-left: none;
  border-right: 4px solid;
}

.alert-error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border-color: #dc3545;
}

body.dark .alert-error {
  background-color: rgba(220, 53, 69, 0.2);
  color: #f8d7da;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #155724;
  border-color: #28a745;
}

body.dark .alert-success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #d4edda;
}

/* REGISTRATION MODAL */
.registration-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  display: none;
  animation: fadeIn 0.3s ease;
}

#qrCodeCanvas {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

#qrCodeGenerated {
  display: flex;
  justify-content: center;
  align-items: center;
}

#qrCodeGenerated canvas {
  border: 10px solid white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.registration-modal[style*="display: flex"] {
  display: flex !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--light-card);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

body.dark .modal-content {
  background: var(--dark-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--light-text);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s;
  z-index: 10002;
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 16px;
}

body.dark .modal-close {
  color: var(--dark-text);
}

.modal-close:hover {
  background-color: rgba(243, 110, 51, 0.1);
  color: var(--primary-orange);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.success-icon {
  font-size: 64px;
  color: #28a745;
  margin-bottom: 1rem;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn2 {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.modal-header h2 {
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin: 0;
  font-weight: 700;
}

body.dark .modal-header h2 {
  color: var(--dark-text);
}

.modal-body {
  padding: 1.5rem 2rem;
  flex: 1;
  overflow-y: auto;
}

.thank-you-message {
  font-size: 1.25rem;
  color: var(--light-text);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

body.dark .thank-you-message {
  color: var(--dark-text);
}

.warning-message {
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

body.dark .warning-message {
  background: rgba(255, 193, 7, 0.15);
  border-color: #ffc107;
}

.warning-message i {
  color: #ffc107;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-message p {
  margin: 0;
  color: var(--light-text);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

body.dark .warning-message p {
  color: var(--dark-text);
}

.qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

body.dark .qr-code-container {
  background: var(--container-dark-bg);
  border-color: rgba(255, 255, 255, 0.2);
}

.qr-code-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
}

body.dark .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.modal-ok-btn {
  min-width: 150px;
  font-size: 1rem;
}

/* RESPONSIVE - MODAL */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .success-icon {
    font-size: 48px;
  }

  .modal-body {
    padding: 1.25rem 1.5rem;
  }

  .warning-message {
    padding: 0.875rem 1rem;
    flex-direction: column;
    text-align: center;
  }

  .warning-message i {
    margin-top: 0;
  }

  .qr-code-container {
    padding: 1rem;
  }

  .modal-footer {
    padding: 1.25rem 1.5rem;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-end;
  }

  #menu-icon {
    display: block;
  }

  .nav-controls {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }

  .logo-img img {
    width: 100vw;
    margin-top: 4rem;
  }

  .header-center {
    display: none;
    flex-direction: column;
    position: absolute;
    align-items: center;
    /* ✅ يجعل الروابط في المنتصف */
    text-align: center;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: rgba(255, 240, 220, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  }

  body.dark .header-center {
    background: rgba(15, 15, 15, 0.7);
  }

  .header-center.active {
    display: flex;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 1rem;
  }

  .hero .cta-button {
    margin: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .topic-card {
    font-size: 0.95rem;
  }

  .about-container {
    padding: 1.5rem;
    margin: 1rem 2rem;
  }

  .topic-section ul {
    columns: 1;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .sitemap-columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-side {
    margin-top: 1.5em;
  }

  /* Committee and Sponsors - Mobile */
  .committee-members-grid {
    grid-template-columns: 1fr !important;
  }

  .sponsors-grid {
    grid-template-columns: 1fr !important;
  }

  .carousel-btn {
    display: none !important;
  }
}

/* ========================================
   COMMITTEE MEMBERS STYLES
   ======================================== */

.committee-members-container {
  margin-top: 2rem;
}

.committee-section {
  margin-bottom: 4rem;
}

.committee-title {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

body.dark .committee-title {
  color: var(--primary-orange);
}

.committee-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary-orange);
  border-radius: 2px;
}

.committee-carousel {
  position: relative;
  padding: 0 3rem;
}

.committee-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-orange) transparent;
}

.committee-members-grid::-webkit-scrollbar {
  height: 8px;
}

.committee-members-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.committee-members-grid::-webkit-scrollbar-thumb {
  background: var(--primary-orange);
  border-radius: 10px;
}

.member-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(243, 110, 51, 0.2);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

body.dark .member-card {
  bac-btn {
    right: 0;
  }
}

/* ========================================
   SPONSORS STYLES
   ======================================== */

.sponsors-intro {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 2rem auto;
  max-width: 800px;
  color: var(--light-text);
}

body.dark .sponsors-intro {
  color: var(--dark-text);
}

.sponsors-section {
  margin: 3rem 0;
}

.sponsor-tier-title {
  font-size: 1.6rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: bold;
  position: relative;
  padding-bottom: 0.5rem;
}

body.dark .sponsor-tier-title {
  color: var(--primary-orange);
}

.sponsor-tier-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-orange);
  border-radius: 2px;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

.sponsor-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(243, 110, 51, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 250px;
}

body.dark .sponsor-card {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(243, 110, 51, 0.3);
}

.sponsor-card:hover {
  gap: 1rem;
}

body.dark .member-card {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(243, 110, 51, 0.3);
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(243, 110, 51, 0.3);
}

.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 11px;
  overflow: hidden;
  border: 2px solid #f56e3366;
  padding: 3rem;
}

.member-card:hover .member-photo {
  transform: scale(1.05);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin: 0;
}

body.dark .member-name {
  color: var(--dark-text);
}

.member-role {
  font-size: 1rem;
  color: var(--primary-orange);
  font-weight: 600;
  margin: 0;
}

.member-topics {
  font-size: 0.9rem;
  color: var(--light-text);
  font-style: italic;
  margin: 0.5rem 0 0 0;
  line-height: 1.5;
}

body.dark .member-topics {
  color: var(--dark-text);
  opacity: 0.8;
}

.member-notes {
  font-size: 0.85rem;
  color: var(--light-text);
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
}

body.dark .member-notes {
  color: var(--dark-text);
  opacity: 0.7;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(243, 110, 51, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(24, 44, 71, 0.4);
}

.carousel-btn.prev-btn {
  left: 0;
}

.carousel-btn.next-btn {
  right: 0;
}

/* ========================================
   SPONSORS STYLES
   ======================================== */

.sponsors-intro {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 2rem auto;
  max-width: 800px;
  color: var(--light-text);
}

body.dark .sponsors-intro {
  color: var(--dark-text);
}

.sponsors-section {
  margin: 3rem 0;
}

.sponsor-tier-title {
  font-size: 1.6rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: bold;
  position: relative;
  padding-bottom: 0.5rem;
}

body.dark .sponsor-tier-title {
  color: var(--primary-orange);
}

.sponsor-tier-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-orange);
  border-radius: 2px;
}


.sponsor-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(243, 110, 51, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 250px;
}

body.dark .sponsor-card {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(243, 110, 51, 0.3);
}

.sponsor-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.sponsor-logo {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sponsor-card:hover .sponsor-logo img {
  transform: scale(1.05);
}

.sponsor-name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.4;
}

body.dark .sponsor-name {
  color: var(--dark-text);
}

/* Grid Layout Variations */
.sponsors-grid-single {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 2rem auto;
}

.sponsors-grid-double {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 2rem auto;
}

.sponsor-tier-official::after,
.sponsor-tier-platinum::after,
.sponsor-tier-bronze::after,
.sponsor-tier-gold::after {
  background: linear-gradient(90deg, #ffd700, #ffaa00);
}


.sponsor-tier-technical,
.sponsor-tier-platinum,
.sponsor-tier-gold,
.sponsor-tier-bronze {
  color: var(--primary-blue);
}

body.dark .sponsor-tier-technical,
body.dark .sponsor-tier-platinum,
body.dark .sponsor-tier-gold,
body.dark .sponsor-tier-bronze {
  color: var(--primary-orange);
}

/* Tier-Specific Card Styling */
.sponsor-card-official {
  border: 2px solid #d4af37;
  min-height: 300px;
}

.sponsor-card-official:hover {
  border-color: #f4d03f;
}

.sponsor-card-platinum {
  border: 2px solid #e5e4e2;
  min-height: 300px;
}

.sponsor-card-platinum:hover {
  border-color: #c0c0c0;
  border-color: #c0c0c0;
}

.sponsor-card-gold {
  border: 2px solid #ffd700;
  min-height: 300px;
}

.sponsor-card-gold:hover {
  border-color: #ffaa00;
  border-color: #ffaa00;
}

.sponsor-card-bronze {
  border: 2px solid #cd7f32;
  min-height: 280px;
}

.sponsor-card-bronze:hover {
  border-color: #e89a65;
}

.sponsor-card-technical {
  border: 2px solid var(--primary-blue);
  min-height: 280px;
}

.sponsor-card-technical:hover {
  border-color: var(--primary-orange);
}

body.dark .sponsor-card-technical:hover {
  border-color: var(--primary-orange);
}

/* Sponsors Call to Action */
.cta {
  background: linear-gradient(135deg, rgba(243, 110, 51, 0.1), rgba(24, 44, 71, 0.1));
  border: 2px solid var(--primary-orange);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem 0 2rem 0;
}

body.dark .cta {
  background: linear-gradient(135deg, rgba(243, 110, 51, 0.15), rgba(24, 44, 71, 0.15));
}

.cta h3 {
  font-size: 1.8rem;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 2rem;
  line-height: 1.7;
}

body.dark .cta p {
  color: var(--dark-text);
}

/* Error Message Styling */
.error-message {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.error-message p {
  color: #dc3545;
  margin: 0;
  font-weight: 500;
}





/* Sponsors Call to Action */
.cta {
  background: linear-gradient(135deg, rgba(243, 110, 51, 0.1), rgba(24, 44, 71, 0.1));
  border: 2px solid var(--primary-orange);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem 0 2rem 0;
}

body.dark .cta {
  background: linear-gradient(135deg, rgba(243, 110, 51, 0.15), rgba(24, 44, 71, 0.15));
}

.cta h3 {
  font-size: 1.8rem;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 2rem;
  line-height: 1.7;
}

body.dark .cta-card {
  background: rgba(30, 30, 30, 0.6);
  border-color: rgba(243, 110, 51, 0.4);
}

/* Minimal hover effect - only shadow change, no movement */
.cta-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
}

.cta-icon {
  font-size: 4rem;
  /* Keep icon text clear and visible */
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
  animation: scaleIn2 0.5s ease-out;
}

@keyframes scaleIn2 {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cta-content-wrapper {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 40px;
  flex-basis: 1/2;
}

html[lang="en"] .cta-content-wrapper {
  flex-direction: row;
  /* Logo | Text */
}

html[lang="ar"] .cta-content-wrapper {
  flex-direction: row-reverse;
  /* Text | Logo */
}

.cta-card h1 {
  font-size: 2.2rem;
  /* Ensure text is clear and readable */
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

body.dark .cta-card h1 {
  color: var(--primary-orange);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-content {
  margin: 2rem 0;
}

.cta-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  /* Clear, readable text */
  color: var(--light-text);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

body.dark .cta-content p {
  color: var(--dark-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


.cta-logo img {
  width: 100%;
  height: auto;
}

.cta-text-section {
  width: 50%;
  text-wrap: wrap;
}

.cta-logo-section img {
  width: 500px;
  height: auto;
}

/* Responsive CTA Page */
@media (max-width: 768px) {
  .cta-page::before {
    width: 300px;
    height: 300px;
    top: 50px;
    right: -50px;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-card h1 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-icon {
    font-size: 3rem;
  }

  .sponsor-tier-technical,
  .sponsor-tier-platinum,
  .sponsor-tier-gold,
  .sponsor-tier-bronze {
    color: var(--primary-blue);
  }

  body.dark .sponsor-tier-technical,
  body.dark .sponsor-tier-platinum,
  body.dark .sponsor-tier-gold,
  body.dark .sponsor-tier-bronze {
    color: var(--primary-orange);
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .cta-button {
    width: 100%;
  }
}

/* ========================================
   CTA PAGE - SIDE-BY-SIDE LAYOUT
   ======================================== */

.cta-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}


.cta-text-section {
  flex: 1;
  min-width: 0;
  /* Important for flex text wrapping */
}

.cta-text-section h1 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-weight: bold;
}

body.dark .cta-text-section h1 {
  color: var(--primary-orange);
}

.cta-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

body.dark .cta-content p {
  color: var(--dark-text);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta-logo-section {
  flex: 0 0 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-logo-section img {
  width: 100%;
  max-width: 400px;
  height: auto;
  opacity: 0.9;
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 968px) {
  .cta-content-wrapper {
    flex-direction: column !important;
    gap: 2rem;
  }

  .cta-logo-section {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }

  .cta-text-section h1 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-card h1 {
    font-size: 2.2rem;
    /* Ensure text is clear and readable */
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  }

  body.dark .cta-card h1 {
    color: var(--primary-orange);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }

  .cta-content {
    margin: 2rem 0;
  }

  .cta-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    /* Clear, readable text */
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  }

  body.dark .cta-content p {
    color: var(--dark-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }


  .cta-logo img {
    width: 100%;
    height: auto;
  }

  .cta-text-section {
    width: 50%;
    text-wrap: wrap;
  }

  .cta-logo-section img {
    width: 500px;
    height: auto;
  }

  /* Responsive CTA Page */
  @media (max-width: 768px) {
    .cta-page::before {
      width: 300px;
      height: 300px;
      top: 50px;
      right: -50px;
    }

    .cta-card {
      padding: 2rem 1.5rem;
    }

    .cta-card h1 {
      font-size: 1.8rem;
    }

    .cta-content p {
      font-size: 1rem;
    }

    .cta-icon {
      font-size: 3rem;
    }

    .sponsor-tier-technical,
    .sponsor-tier-platinum,
    .sponsor-tier-gold,
    .sponsor-tier-bronze {
      color: var(--primary-blue);
    }

    body.dark .sponsor-tier-technical,
    body.dark .sponsor-tier-platinum,
    body.dark .sponsor-tier-gold,
    body.dark .sponsor-tier-bronze {
      color: var(--primary-orange);
    }

    .cta-actions {
      flex-direction: column;
    }

    .cta-actions .cta-button {
      width: 100%;
    }
  }

  /* ========================================
   CTA PAGE - SIDE-BY-SIDE LAYOUT
   ======================================== */

  .cta-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
  }

  .cta-content-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
  }

  .cta-text-section {
    flex: 1;
    min-width: 0;
    /* Important for flex text wrapping */
  }

  .cta-text-section h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: bold;
  }

  body.dark .cta-text-section h1 {
    color: var(--primary-orange);
  }

  .cta-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 1.5rem;
  }

  body.dark .cta-content p {
    color: var(--dark-text);
  }

  .cta-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
  }

  .cta-logo-section {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cta-logo-section img {
    width: 100%;
    max-width: 400px;
    height: auto;
    opacity: 0.9;
  }

  /* Responsive: Stack vertically on mobile */
  @media (max-width: 968px) {
    .cta-content-wrapper {
      flex-direction: column !important;
      gap: 2rem;
    }

    .cta-logo-section {
      flex: 0 0 auto;
      width: 100%;
      max-width: 300px;
    }

    .cta-text-section h1 {
      font-size: 2rem;
    }

    .cta-content p {
      font-size: 1rem;
    }

    .cta-card h1 {
      font-size: 2.2rem;
      /* Ensure text is clear and readable */
      color: var(--primary-blue);
      margin-bottom: 1.5rem;
      font-weight: bold;
      text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    }

    body.dark .cta-card h1 {
      color: var(--primary-orange);
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .cta-content {
      margin: 2rem 0;
    }

    .cta-content p {
      font-size: 1.1rem;
      line-height: 1.8;
      /* Clear, readable text */
      color: var(--light-text);
      margin-bottom: 1.5rem;
      text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    }

    body.dark .cta-content p {
      color: var(--dark-text);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }


    .cta-logo img {
      width: 100%;
      height: auto;
    }

    .cta-text-section {
      width: 50%;
      text-wrap: wrap;
    }

    .cta-logo-section img {
      width: 500px;
      height: auto;
    }

    /* Responsive CTA Page */
    @media (max-width: 768px) {
      .cta-page::before {
        width: 300px;
        height: 300px;
        top: 50px;
        right: -50px;
      }

      .cta-card {
        padding: 2rem 1.5rem;
      }

      .cta-card h1 {
        font-size: 1.8rem;
      }

      .cta-content p {
        font-size: 1rem;
      }

      .cta-icon {
        font-size: 3rem;
      }

      .sponsor-tier-technical,
      .sponsor-tier-platinum,
      .sponsor-tier-gold,
      .sponsor-tier-bronze {
        color: var(--primary-blue);
      }

      body.dark .sponsor-tier-technical,
      body.dark .sponsor-tier-platinum,
      body.dark .sponsor-tier-gold,
      body.dark .sponsor-tier-bronze {
        color: var(--primary-orange);
      }

      .cta-actions {
        flex-direction: column;
      }

      .cta-actions .cta-button {
        width: 100%;
      }
    }

    /* ========================================
   CTA PAGE - SIDE-BY-SIDE LAYOUT
   ======================================== */

    .cta-page {
      min-height: 70vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 3rem 2rem;
    }

    .cta-content-wrapper {
      display: flex;
      align-items: center;
      gap: 4rem;
      max-width: 1200px;
      width: 100%;
    }

    /* For English (LTR): Logo on left, text on right */
    html[lang="en"] .cta-content-wrapper {
      flex-direction: row;
    }

    /* For Arabic (RTL): Text on left, logo on right */
    html[lang="ar"] .cta-content-wrapper {
      flex-direction: row-reverse;
    }

    .cta-text-section {
      flex: 1;
      min-width: 0;
      /* Important for flex text wrapping */
    }

    .cta-text-section h1 {
      font-size: 2.5rem;
      color: var(--primary-blue);
      margin-bottom: 1.5rem;
      font-weight: bold;
    }

    body.dark .cta-text-section h1 {
      color: var(--primary-orange);
    }

    .cta-content p {
      font-size: 1.1rem;
      line-height: 1.8;
      color: var(--light-text);
      margin-bottom: 1.5rem;
    }

    body.dark .cta-content p {
      color: var(--dark-text);
    }

    .cta-actions {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
      flex-wrap: wrap;
    }

    .cta-logo-section {
      flex: 0 0 400px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cta-logo-section img {
      width: 100%;
      max-width: 400px;
      height: auto;
      opacity: 0.9;
    }

    /* Responsive: Stack vertically on mobile */
    @media (max-width: 968px) {
      .cta-content-wrapper {
        flex-direction: column !important;
        gap: 2rem;
      }

      .cta-logo-section {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
      }

      .cta-text-section h1 {
        font-size: 2rem;
      }

      .cta-content p {
        font-size: 1rem;
      }

      .cta-actions {
        flex-direction: column;
      }

      .cta-actions a {
        width: 100%;
        text-align: center;
      }
    }

    /* ========================================
   INFORMATION PAGE - PLATFORM CARDS
   ======================================== */

    .info-description {
      text-align: center;
      font-size: 1.1rem;
      color: var(--light-text);
      margin-bottom: 3rem;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    body.dark .info-description {
      color: var(--dark-text);
    }

    .info-cards-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .info-card {
      display: flex;
      flex-direction: row;
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid rgba(243, 110, 51, 0.2);
      border-radius: 1rem;
      padding: 2rem;
      text-decoration: none;
      color: inherit;
      transition: all 0.3s ease;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      aspect-ratio: 3 / 1;
      overflow: hidden;
    }

    body.dark .info-card {
      background: rgba(30, 30, 30, 0.95);
      border-color: rgba(243, 110, 51, 0.3);
    }

    .info-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 35px rgba(243, 110, 51, 0.25);
      border-color: var(--primary-orange);
    }

    .info-card-logo {
      flex: 0 0 120px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 1.5rem;
    }

    html[dir="rtl"] .info-card-logo {
      margin-right: 0;
      margin-left: 1.5rem;
    }

    .info-card-logo img {
      width: 100%;
      height: auto;
      max-width: 120px;
      max-height: 120px;
      object-fit: contain;
    }

    .info-card-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 0;
    }

    .info-card-content h3 {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--primary-blue);
      margin: 0 0 0.5rem 0;
      line-height: 1.3;
    }

    body.dark .info-card-content h3 {
      color: var(--primary-orange);
    }

    .info-card-content p {
      font-size: 0.95rem;
      color: var(--light-text);
      margin: 0 0 0.75rem 0;
      opacity: 0.85;
    }

    body.dark .info-card-content p {
      color: var(--dark-text);
    }

    .info-card-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9rem;
      color: var(--primary-orange);
      font-weight: 600;
      margin-top: auto;
    }

    .info-card-link i {
      font-size: 0.8rem;
      transition: transform 0.3s ease;
    }

    .info-card:hover .info-card-link i {
      transform: translateX(4px);
    }

    html[dir="rtl"] .info-card:hover .info-card-link i {
      transform: translateX(-4px);
    }

    /* Responsive Design */
    @media (max-width: 1024px) {
      .info-cards-grid {
        gap: 1.5rem;
      }

      .info-card {
        padding: 1.5rem;
      }

      .info-card-logo {
        flex: 0 0 100px;
        margin-right: 1.25rem;
      }

      html[dir="rtl"] .info-card-logo {
        margin-right: 0;
        margin-left: 1.25rem;
      }

      .info-card-logo img {
        max-width: 100px;
        max-height: 100px;
      }

      .info-card-content h3 {
        font-size: 1.1rem;
      }

      .info-card-content p {
        font-size: 0.9rem;
      }
    }

    @media (max-width: 768px) {
      .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .info-card {
        aspect-ratio: auto;
        min-height: 140px;
      }

      .info-description {
        font-size: 1rem;
        margin-bottom: 2rem;
      }
    }

    @media (max-width: 480px) {
      .info-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
      }

      .info-card-logo {
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 1rem;
        flex: 0 0 auto;
      }

      html[dir="rtl"] .info-card-logo {
        margin-left: 0;
        margin-bottom: 1rem;
      }

      .info-card-logo img {
        max-width: 80px;
        max-height: 80px;
      }

      .info-card-content h3 {
        font-size: 1rem;
      }

      .info-card-content p {
        font-size: 0.85rem;
      }

      .info-card-link {
        justify-content: center;
      }
    }
  }
}