    :root {
      --primary-bg: #FAF9F6;
      --navbar-bg: #A9A17A;
      --text-color: #333333;
      --accent: #2E8B57;
      --card-bg: rgba(254, 253, 248, 0.9);

      /* dark mode */
      --dark-bg: #1E1E1E;
      --dark-card: #2C2C2C;
      --dark-text: #F1F1F1;
      --dark-navbar: #29271d;
    }

    html, body {
      height: 100%;
      margin: 0;
    }

    body {
      margin: 0;
      font-family: "Rubik", sans-serif;
      font-optical-sizing: auto;
      font-weight: 500;
      font-style: normal;
      background: var(--primary-bg) url('imgs/bg.jpg') repeat;
      color: var(--text-color);
      line-height: 1.8;
      display: flex;
      flex-direction: column;
    }

    html.dark-mode body {
      background: var(--dark-bg) url('imgs/bg-pattern.png') repeat;
      color: var(--dark-text);
    }

    html.dark-mode header,
    html.dark-mode footer {
        background: var(--dark-navbar);
    }

    header {
      background: var(--navbar-bg);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 20px;
    }

    header img {
      height: 40px;
    }

    nav a {
      color: white;
      margin: 0 10px;
      text-decoration: none;
      font-weight: bold;
    }

    nav a:hover {
      color: var(--accent);
    }

    .dark-toggle {
      cursor: pointer;
      background: none;
      border: none;
      font-size: 18px;
      color: white;
    }

    .container {
      max-width: 900px;
      margin: 30px auto;
      padding: 20px;
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
      flex: 1; /* يخلي المحتوى يتمدد ويدفع الفوتر لأسفل */
    }

    html.dark-mode .container {
      background: var(--dark-card);
    }

    h1, h2 {
      text-align: center;
      color: var(--accent);
    }

    footer {
      text-align: center;
      padding: 15px;
      margin-top: 40px;
      background: var(--navbar-bg);
      color: white;
    }



    /* -------------------------------------------- */
/* Intro Video */

.intro-video {
  margin-top: 35px;
  margin-bottom: 35px;
  text-align: center;
}

.intro-video h2 {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .intro-video {
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .intro-video h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .video-wrapper {
    border-radius: 10px;
  }
}

html.dark-mode .video-wrapper {
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
    




    .faq {
  margin-top: 50px; /* more breathing space after main text */
  padding-top: 20px;
  border-top: 2px solid rgba(0,0,0,0.05);
}

.faq h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff; /* clean bg */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
}

.faq-question,
.faq-answer {
  font-family: "Rubik", sans-serif; /* same as body */
}

.faq-question {
  width: 100%;
  text-align: right;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: var(--text-color);
}

.faq-question::after {
  content: '+';
  position: absolute;
  left: 20px;
  font-weight: bold;
  font-size: 20px;
  color: var(--accent);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-color); /* use theme color instead of #555 */
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 15px 20px 20px;
  color: inherit;
}

/* Dark mode */
html.dark-mode .faq-item {
  background: var(--dark-card);
}

html.dark-mode .faq-answer {
  background: #2a2a2a;   /* slightly lighter than full dark bg */
  color: var(--dark-text);
}

html.dark-mode .faq-question {
  color: var(--dark-text);
}

html.dark-mode .faq-question::after {
  color: var(--dark-text);
}

    .form-control {
      display: flex;
      justify-content: center;
      margin: 15px 0;
    }

    input[type="number"], input[type="text"] {
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 6px;
      width: 200px;
      text-align: center;
    }

    button {
      background: var(--accent);
      color: white;
      border: none;
      border-radius: 6px;
      padding: 8px 15px;
      margin: 5px;
      cursor: pointer;
    }

    button:hover {
      opacity: 0.9;
    }

    .zikr-card {
      margin: 20px 0;
      padding: 20px;
      border-radius: 12px;
      background: var(--card-bg);
      position: relative;
    }

    .zikr-title {
  font-family: "Amiri", serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #2c7a7b;
}

html.dark-mode .zikr-title {
  color: #90cdf4;
}

.zikr-text {
  font-family: "Noto Naskh Arabic", serif;
  line-height: 1.9;
}

.zikr-text p {
  margin: 16px 0;
}



    .zikr-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.zikr-options button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.1);
}

.zikr-options button:hover {
  background: #246b43;
  transform: translateY(-3px);
}

.zikr-options button.active {
  background: #1e5633;
  transform: scale(1.05);
}

.zikr-fadhl {
  font-size: 13px;
  color: #666;
  margin: 8px 0 0;
  padding: 8px 12px;
  border-right: 3px solid var(--accent);
  background: rgba(46, 139, 87, 0.05);
  border-radius: 6px;
  line-height: 1.6;
}

/* Dark mode */
html.dark-mode .zikr-fadhl {
  color: var(--dark-text);
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--accent);
}

    html.dark-mode .zikr-card {
      background: var(--dark-card);
    }

    .zikr-actions {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
    }

    .counter {
      font-weight: bold;
      color: var(--accent);
    }

    .count-form {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.count-form input[type="range"] {
  width: 80%;
}

.show-btn {
  background: var(--accent);
  font-weight: bold;
}

.count {
  font-weight: bold;
  color: var(--accent);
  min-width: 60px;
  text-align: center;
}
.zikr-card.done {
  opacity: 0.4;
}

.plus, .minus {
  color: white;
  font-size: 20px;
  font-weight: bold;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}



/* -------------------------------------------- */
/* About */

.team {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap; /* makes them wrap on small screens */
}

.profile-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  width: 280px; /* fixed width */
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  flex: 1 1 250px; /* responsive behavior */
  max-width: 300px;
}

html.dark-mode .profile-card {
  background: var(--dark-card);
}

.profile-card img {
  width: 120px;       /* control size */
  height: 120px;      /* consistent */
  border-radius: 50%; /* circle */
  object-fit: cover;  /* prevents stretching */
  margin-bottom: 15px;
  border: 3px solid var(--accent); /* stylish border */
}

.profile-card h2 {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .team {
    flex-direction: column;
    align-items: center;
  }
}




.contact-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: right;
}

html.dark-mode .contact-info {
  border-top-color: rgba(255,255,255,0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  transition: color 0.2s;
}

html.dark-mode .contact-item {
  color: var(--dark-text);
}

.contact-item:hover {
  color: var(--accent);
}

.contact-item .icon {
  font-size: 1.1rem;
}

/* 2. تحسين مظهر النصوص في صفحة "عنا" */
.sub-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 1.1rem;
}

html.dark-mode .sub-title {
  color: var(--dark-text);
}

.profile-card p {
  font-size: 0.95rem;
  min-height: 60px; /* لتوحيد ارتفاع الكروت */
}

/* 3. تعديل بسيط للهيدر لضمان التناسق مع الجوال */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  nav a {
    margin: 0 5px;
    font-size: 14px;
  }
  
  .container {
    margin: 15px;
    padding: 15px;
  }
}

/* 4. تحسين شكل الأزرار في الوضع الليلي */
html.dark-mode button {
  background: var(--accent);
  color: white;
}

/* 5. إضافة تأثير عند تمرير الماوس على كروت الفريق */
.profile-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 15px rgba(0,0,0,0.15);
}






/* -------------------------------------------- */
/* Project Social Links */

.project-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 25px 0 35px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
  opacity: 0.95;
}

.social-btn .icon {
  font-size: 1.1rem;
}

/* تلميح خفيف للمنصة بدل اللون الفاقع */

.whatsapp-btn {
  border: 2px solid rgba(37, 211, 102, 0.25);
}

.telegram-btn {
  border: 2px solid rgba(34, 158, 217, 0.25);
}

/* Dark mode */

html.dark-mode .social-btn {
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}



/* -------------------------------------------- */
/* Refs */

.refs-list {
  list-style: none; 
  padding: 0;
  max-width: 500px;
  margin: 0 auto;
}

.refs-list li {
  background: var(--card-bg);
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 16px;
}

html.dark-mode .refs-list li {
  background: var(--dark-card);
}
