

/* تطبيق خط Cairo على كامل الموقع */
body {
  font-family: 'Cairo', sans-serif;
}

/* يمكنك تخصيصه للعناوين */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700; /* يمكن تعديله حسب السماكة المطلوبة */
}

/* وأيضاً للفقرات */
p, li, a, button, .btn {
  font-family: 'Cairo', sans-serif;
}


html {
  scroll-behavior: smooth;
}


/* إعدادات عامة */
body {
  margin: 0;
  font-family: 'Tahoma', sans-serif;
  background-color: #eaf6ff;
  direction: rtl;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}


.logo-container {
  display: flex;
  align-items: center;
  gap: 10px; /* مسافة بين الصورة والنص */
}

.logo-container img {
  width: 150px; /* حجم الشعار */
  height: auto;
}

.logo-text {
  font-family: 'Cairo', sans-serif; /* أو أي خط تستخدمه */
  font-size: 20px;
  font-weight: bold;
  color: white;
}



.logo {
  font-family: 'Cairo', sans-serif;
}



/* صورة البطاقات */
.icon-image {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
}

.iconn-image {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 10px;
  object-fit:cover;
}



.iconnn-image {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 10px;
  -o-object-fit: calc(cover);
  object-fit: cover;
}

/* الشريط العلوي */
.topbar {
  background: linear-gradient(to left, #1e88e5, #42a5f5);
  padding: 15px 0;
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar .logo {
  font-size: 20px;
  font-weight: bold;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li a {
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

.menu li a:hover {
  text-decoration: underline;
}

/* الترحيب */
.hero {
  background: linear-gradient(to left, #e0f2f1, #e1f5fe);
  padding: 40px 0;
  border-radius: 10px;
  margin-top: 20px;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  max-width: 600px;
}

.hero-text h2 {
  color: #2e7d32;
  font-size: 28px;
}

.hero-text p {
  color: #333;
  font-size: 16px;
  margin: 15px 0;
}

.hero-buttons {
  margin-top: 20px;
}

.btn {
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 8px;
  margin-left: 10px;
  display: inline-block;
}

.btn-green {
  background-color: #2e7d32;
  color: white;
}

.btn-yellow {
  background-color: #fbc02d;
  color: white;
}

.hero-image img {
  width: 200px;
}

/* العناوين */
.sections h3 {
  text-align: center;
  margin: 50px 0 20px;
  color: #1a237e;
  font-size: 24px;
}

/* البطاقات */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.card {
  background-color: white;
  border-radius: 15px;
  padding: 25px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.card .icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.card h4 {
  font-size: 20px;
  color: #333;
}

.card p {
  font-size: 14px;
  color: #555;
  margin: 10px 0 20px;
}

.card.teal {
  border-top: 6px solid #009688;
}

.card.pink {
  border-top: 6px solid #ec407a;
}

.card.orange {
  border-top: 6px solid #fb8c00;
}

.card.orangered {
  border-top: 6px solid orangered;
}

.card.black {
  border-top: 6px solid #333;
}

.btn-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: #1e88e5;
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.btnn-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: orange;
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.btnnn-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: rgb(12, 115, 94);
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.btnnnn-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: #595C8D;
  color: rgb(255, 255, 255);
  font-weight: bold;
}


.btnpurple-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: #9c27b0;
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.btngreen-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: green;
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.btnorange-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: orange;
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.btnorangered-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: orangered;
  color: rgb(255, 255, 255);
  font-weight: bold;
}
.btnteal-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: teal;
  color: rgb(255, 255, 255);
  font-weight: bold;
}
.btnpurple-card {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 8px;
  background-color: #9c27b0;
  color: rgb(255, 255, 255);
  font-weight: bold;
}



.card.purple {
  border-top: 6px solid #9c27b0;
}

.card.green {
  border-top: 6px solid #4caf50;
}

.card.greenn {
  border-top: 6px solid rgb(12, 115, 94);
}

.card.blue {
  border-top: 6px solid #1e88e5;
}

.card.kham {
  border-top: 6px solid #6e120c;
}

.card.dblue {
  border-top: 6px solid #595C8D;
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, #3b82f6, #2563eb); /* تدرج أزرق جذاب */
  color: #ffffff;
  padding: 50px 20px;
  font-family: 'Cairo', sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-column h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-column p,
.footer-column li,
.footer-column a {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.7;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  color: #ccc;
  font-size: 14px;
}

.footer-bottom hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}


.button {
  position: fixed;            /* ✅ التثبيت */
  bottom: 20px;               /* المسافة من الأسفل */
  left: 20px;                 /* غير إلى right: 20px; إذا أردته يمينًا */
  z-index: 9999;              /* للتأكد أنه فوق كل العناصر */
  width: 50px;
  height: 50px;
  border-radius: 20%;
  background-color: #1e88e5;
  border: none;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px double #e9e9e9;
  border-radius: 15px;
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: fixed;
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: #e9e9e9;
}

.button:hover {
  width: 140px;
  border-radius: 15px;
  transition-duration: 0.3s;
  background-color: #1e88e5;
  align-items: center;
}

.button:hover .svgIcon {
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.button::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: #e9e9e9;
  font-size: 0px;
}

.button:hover::before {
  font-family: Garet, sans-serif;
  font-size: 15px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}


/* From Uiverse.io by jamik-dev */ 
ul {
  list-style: none;
}

li::after {
  content: "";
  display: block;
  height: 0px;
  transition: height 0.3s ease-in-out;
  pointer-events: none;
}

li:hover::after {
  height: 10px;
}

.example-2 {
  display: flex;
  justify-content: center;
  align-items: center;
}
.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}
.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -40px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}
.example-2 .icon-content a[data-social="spotify"] .filled,
.example-2 .icon-content a[data-social="spotify"] ~ .tooltip {
  background-color: #1db954;
}
.example-2 .icon-content a[data-social="pinterest"] .filled,
.example-2 .icon-content a[data-social="pinterest"] ~ .tooltip {
  background-color: #bd081c;
}
.example-2 .icon-content a[data-social="dribbble"] .filled,
.example-2 .icon-content a[data-social="dribbble"] ~ .tooltip {
  background-color: #ea4c89;
}
.example-2 .icon-content a[data-social="telegram"] .filled,
.example-2 .icon-content a[data-social="telegram"] ~ .tooltip {
  background-color: #0088cc;
}







.audio-card {
  background-color: #1c1c1c;
  color: white;
  width: 300px;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin: 20px auto;
}

.audio-header {
  text-align: left;
  font-size: 24px;
  margin-bottom: 10px;
}

.audio-cover img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  margin-bottom: 20px;
}

.audio-title {
  font-size: 20px;
  font-weight: bold;
}

.audio-subtitle {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 20px;
}

.audio-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 15px;
}

.audio-progress input[type="range"] {
  flex-grow: 1;
  margin: 0 10px;
  accent-color: white;
}

.audio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.audio-controls button {
  background: #fff;
  border: none;
  border-radius: 50%;
  padding: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.audio-controls button:hover {
  background: #e0e0e0;
}

.audio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.audio-card {
  flex: 0 0 300px; /* أو يمكنك استخدام نسبة مثل: 30% */
}










/* games */
.quiz-card {
  background: #333; color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 2px solid #1e88e5;
  border-radius: 10px; padding: 20px;
  text-align: center; margin: 20px auto;
  width: 300px;
}
.quiz-card button {
  background: #1e88e5; color: #fff;
  padding: 10px 20px; border: none;
  border-radius: 5px; cursor: pointer;
}
.quiz-container {
  max-width: 400px; margin: 20px auto;
  background: #333; padding: 20px;
  color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 2px solid #1e88e5;
  border-radius: 10px;
}

.quiz-header {
  text-align: center; margin-bottom: 20px;
  font-size: 24px; color: #1e88e5;
}
#answersList {
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
  list-style: none;
  max-height: 300px; overflow-y: auto;
}
.hidden { display: none; }
#answersList li {
  list-style: none;
  margin: 8px 0;
}
.answer-btn {
  width: 100%; padding: 10px;
  border: 2px solid #ffffff;
  background: #fff; cursor: pointer;
  border-radius: 5px;
  text-align: left;
  transition: background 0.3s, border-color 0.3s;
}
.answer-btn.correct { border-color: green; background: #c8e6c9; }
.answer-btn.wrong { border-color: red; background: #ffcdd2; }
#nextBtn, #restartBtn {
  margin-top: 20px; padding: 10px 20px;
  background: #1e88e5; color: #fff;
  border: none; border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
