:root {
  --main-color: #4B0000;
  --accent-color: #FF4D4D;
  --text-color: #FFFFFF;
  --gold-color: #FFD700;
}

#Prophet_Muhammad {
  margin: 0;
  background: linear-gradient(135deg, #1a0000, #4b0000);
  min-height: 100vh;
  font-family: 'Tajawal', Arial, sans-serif;
  color: var(--text-color);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
}

/* تحسينات تأثير المطر الدموي للأداء */
.blood-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.drop {
  position: absolute;
  top: -20px;
  width: 3px;
  height: 15px;
  background: radial-gradient(circle, #ff4d4d, #990000);
  border-radius: 50% 50% 20% 20%;
  opacity: 0.6;
  animation: fall linear infinite;
  filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.5));
}

@keyframes fall {
  to {
    transform: translateY(150vh);
    opacity: 0;
  }
}

/* تقليل عدد القطرات على الجوال */
@media (max-width: 768px) {
  .drop {
    width: 2px;
    height: 12px;
    opacity: 0.4;
  }
  .drop:nth-child(n+11) {
    display: none;
  }
}

@media (max-width: 480px) {
  .drop:nth-child(n+6) {
    display: none;
  }
}

/* تحسينات البطاقات الرئيسية */
.card-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.glow-card {
  background: linear-gradient(145deg, rgba(75, 0, 0, 0.9), rgba(40, 0, 0, 0.95));
  color: var(--text-color);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 77, 77, 0.6);
  box-shadow: 0 5px 20px rgba(255, 77, 77, 0.4);
  width: 100%;
  max-width: 850px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.glow-card:hover {
  box-shadow: 0 8px 25px rgba(255, 77, 77, 0.6);
  transform: translateY(-3px);
}

/* تحسينات البطاقات الداخلية */
.glow-card_2 {
  background: rgba(40, 0, 0, 0.7);
  padding: 18px;
  border-radius: 15px;
  border: 1px solid rgba(255, 77, 77, 0.4);
  box-shadow: 0 3px 15px rgba(255, 77, 77, 0.3);
  margin-top: 20px;
}

/* تحسينات النصوص والعناوين */
.m1 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--gold-color);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.m1 {
  font-size: 28px;
  color: var(--gold-color);
  margin: 25px 0 15px;
}

h2 {
  font-size: 24px;
  color: var(--gold-color);
  margin: 20px 0 12px;
}

p, li {
  font-size: 18px;
  margin: 12px 0;
  text-align: right;
}

ul {
  padding-right: 25px;
}

li {
  margin-bottom: 10px;
}

.white-line {
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(255,255,255,0.3), transparent);
  margin: 20px 0;
  width: 100%;
  border: none;
}

/* تحسينات الروابط */
a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* تحسينات الجداول */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 77, 77, 0.3);
}

th {
  background-color: rgba(75, 0, 0, 0.7);
  color: var(--gold-color);
  font-weight: bold;
}

/* زر العودة للأعلى */
#topBtn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 99;
  font-size: 20px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

#topBtn:hover {
  background-color: var(--gold-color);
  transform: scale(1.1);
}

/* شاشة التحميل */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-size: 24px;
  color: var(--gold-color);
}

/* تحسينات للجوال */
@media (max-width: 768px) {
  .card-grid {
    padding: 15px;
    gap: 20px;
  }
  
  .glow-card {
    padding: 20px;
    border-radius: 18px;
  }
  
  .glow-card_2 {
    padding: 15px;
    margin-top: 15px;
  }
  
  h1 {
    font-size: 24px;
    margin: 20px 0 12px;
  }
  
  h2 {
    font-size: 22px;
    margin: 18px 0 10px;
  }
  
  p, li {
    font-size: 17px;
  }
  
  th, td {
    padding: 10px 12px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .card-grid {
    padding: 12px;
    gap: 15px;
  }
  
  .glow-card {
    padding: 18px;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 22px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  p, li {
    font-size: 16px;
  }
  
  ul {
    padding-right: 20px;
  }
  
  th, td {
    padding: 8px 10px;
    font-size: 15px;
    display: block;
    width: 100%;
  }
  
  tr {
    margin-bottom: 15px;
    display: block;
  }
  
  th {
    border-bottom: none;
    padding-bottom: 5px;
  }
  
  #topBtn {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 20px;
    left: 20px;
  }
}

/* تحسينات للوضع الأفقي */
@media (max-width: 768px) and (orientation: landscape) {
  .card-grid {
    padding: 10px;
  }
  
  .glow-card {
    padding: 15px;
  }
  
  #topBtn {
    bottom: 15px;
    left: 15px;
  }
}

/*----------------------------------------------------------------------*/
/*Prophet Muhammad*/
/*-----------------------------------------------------------------------*/

.m1{
    text-align: center;
     margin-bottom: 20px;
}

.glow-card_2 h2 {
  margin-bottom: 5px; /* يقلل المسافة بين العنوان والفقرة */
  font-size: 26px;
}

.glow-card_2 p {
  margin-top: 0;       /* يمنع وجود فراغ زائد فوق الفقرة */
  font-size: 20px;
}

.glow-card_2 li {
  margin-top: 0;       /* يمنع وجود فراغ زائد فوق الفقرة */
  font-size: 20px;
}

a {
  text-decoration: none;
  color: wheat;
}

#topBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #FF4D4D;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
}

#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #4B0000;
  color: white;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


/* تأثير المطر الدموي - مخفف للجوال */
.blood-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.drop {
  position: absolute;
  top: -20px;
  width: 2px;
  height: 15px;
  background: radial-gradient(circle, #ff4d4d, #990000);
  border-radius: 50% 50% 20% 20%;
  opacity: 0.5;
  animation: fall linear infinite;
  filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.5));
}

@keyframes fall {
  to {
    transform: translateY(120vh);
    opacity: 0;
  }
}

/* تحسينات القائمة العلوية */
nav {
  padding: 15px 20px;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

nav ul li button {
  all: unset;
  color: var(--text-color);
  font-family: 'Lateef', cursive;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.active .sais {
  font-size: 20px;
  color: var(--gold-color);
}

.active-line {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
  border-radius: 10px;
  box-shadow: 0 0 10px var(--accent-color);
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  box-shadow: 0 0 5px var(--accent-color);
  margin: 0 20px;
}

/* تحسينات بطاقات الأئمة */
.card-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.glow-card {
  background: linear-gradient(145deg, rgba(75, 0, 0, 0.8), rgba(40, 0, 0, 0.9));
  color: var(--text-color);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 77, 77, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: right;
  width: 100%;
  max-width: 850px;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.glow-card h1, 
.glow-card h2 {
  color: var(--gold-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.glow-card p, 
.glow-card li {
  font-size: 18px;
  line-height: 1.7;
  margin: 10px 0;
}

.glow-card ul {
  padding-right: 20px;
}

.white-line {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 15px 0;
  width: 100%;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
  /* تقليل عدد قطرات الدم */
  .drop:nth-child(n+6) {
    display: none;
  }
  
  /* تحسين البطاقات */
  .card-grid {
    padding: 15px;
  }
  
  .glow-card {
    padding: 20px;
  }
  
  .glow-card h1 {
    font-size: 24px;
  }
  
  .glow-card h2 {
    font-size: 22px;
  }
  
  .glow-card p, 
  .glow-card li {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* تحسينات إضافية للشاشات الصغيرة */
  .card-grid {
    padding: 10px;
  }
  
  .glow-card {
    padding: 15px;
  }
  
  .glow-card h1 {
    font-size: 22px;
  }
  
  .glow-card h2 {
    font-size: 20px;
  }
  
  .glow-card p, 
  .glow-card li {
    font-size: 15px;
  }
  
  /* إخفاء المزيد من قطرات الدم */
  .drop:nth-child(n+4) {
    display: none;
  }
}

/* تحسينات للوضع الأفقي */
@media (max-width: 768px) and (orientation: landscape) {
  .card-grid {
    padding: 5px;
  }
  
  .glow-card {
    padding: 10px;
  }
}

/*-------------------------------------------------------------------*/
/*Fatima al-Zahra*/
/*-------------------------------------------------------------------*/

  /* الحاوية الرئيسية */
  .card-grid {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* الكرت الكبير */
  .glow-card {
    background-color: #4B0000;
    color: white;
    padding: 25px;
    margin: 10px;
    border-radius: 20px;
    border: 2px solid #FF4D4D;
    box-shadow: 0 0 15px #FF4D4D, 0 0 30px #FF4D4D;
    width: 100%;
    max-width: 850px;
    box-sizing: border-box;
  }

  /* الكرت الداخلي */
  .glow-card_2 {
    background-color: #4B0000;
    color: white;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #FF4D4D;
    box-shadow: 0 0 15px #FF4D4D;
    margin-top: 15px;
  }

  /* العناوين والفقرات */
  h1, h2 {
    text-align: center;
    font-size: 24px;
    margin-top: 15px;
  }

  p {
    font-size: 18px;
    line-height: 1.7;
    margin: 10px 0;
  }

  /* الجداول */
  .table-container {
    max-width: 100%;
    overflow-x: auto;
    margin: auto;
    background-color: #4B0000;
    border: 2px solid #FF4D4D;
    box-shadow: 0 0 15px #FF4D4D;
    border-radius: 15px;
    padding: 15px;
  }

  .table-container table {
    width: 100%;
    border-collapse: collapse;
  }

  .table-container th, td {
    text-align: right;
    padding: 12px;
    border-bottom: 1px solid #FF4D4D;
    font-size: 18px;
  }

  .table-container th {
    color: #FFAAAA;
    font-weight: bold;
    width: 35%;
  }

  .table-container td {
    color: white;
  }

  /* استجابة لجميع الهواتف */
  /* تحسينات عامة للجوال */
  @media (max-width: 768px) {
    #Fatima_al-Zahra {
      font-size: 16px;
      line-height: 1.6;
    }

    /* تحسين القطرات لتكون أقل كثافة على الجوال */
    .drop {
      width: 2px;
      height: 10px;
      opacity: 0.4;
    }

    /* تحسين الحاوية الرئيسية */
    .card-grid {
      padding: 10px;
    }

    /* تحسين الكرت الكبير */
    .glow-card {
      padding: 15px;
      margin: 5px;
      border-radius: 15px;
      box-shadow: 0 0 10px #FF4D4D, 0 0 20px #FF4D4D;
    }

    /* تحسين الكرت الداخلي */
    .glow-card_2 {
      padding: 12px;
      border-radius: 12px;
      margin-top: 12px;
    }

    /* تحسين العناوين */
    h1, h2 {
      font-size: 20px;
      margin-top: 12px;
      text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
    }

    h1.m1 {
      font-size: 22px;
      margin-bottom: 15px;
    }

    /* تحسين الفقرات */
    p {
      font-size: 16px;
      margin: 8px 0;
      text-align: justify;
    }

    /* تحسين الجداول */
    .table-container {
      padding: 8px;
      border-radius: 12px;
    }

    .table-container th, td {
      padding: 8px 10px;
      font-size: 15px;
    }

    .table-container th {
      width: 30%;
    }

    /* تحسين القوائم */
    ul {
      padding-right: 15px;
    }

    li {
      margin-bottom: 8px;
    }

    /* تحسين الاقتباسات والنصوص المميزة */
    p:has(> strong) {
      background-color: rgba(255, 77, 77, 0.1);
      padding: 8px;
      border-right: 3px solid #FF4D4D;
      border-radius: 5px;
    }
  }

  /* تحسينات إضافية للشاشات الصغيرة جدًا */
  @media (max-width: 480px) {
    #Fatima_al-Zahra {
      font-size: 15px;
    }

    .glow-card {
      padding: 10px;
    }

    .glow-card_2 {
      padding: 10px;
    }

    h1, h2 {
      font-size: 18px;
    }

    h1.m1 {
      font-size: 20px;
    }

    p {
      font-size: 14px;
    }

    .table-container th, td {
      font-size: 14px;
      padding: 6px 8px;
      display: block;
      width: 100%;
      box-sizing: border-box;
    }

    .table-container tr {
      display: block;
      margin-bottom: 10px;
      border-bottom: 1px solid #FF4D4D;
    }

    .table-container th {
      color: #FFAAAA;
      font-weight: bold;
      border-bottom: none;
    }

    /* إخفاء بعض القطرات على الشاشات الصغيرة */
    .drop:nth-child(n+10) {
      display: none;
    }
  }

  /* تحسينات خاصة للوضع الأفقي */
  @media (max-width: 768px) and (orientation: landscape) {
    .card-grid {
      padding: 5px;
    }

    .glow-card {
      margin: 5px 0;
    }

    h1, h2 {
      font-size: 18px;
    }

    p {
      font-size: 14px;
    }
  }

  /* تحسينات للقراءة الليلية */
  @media (prefers-color-scheme: dark) {
    .glow-card, .glow-card_2, .table-container {
      box-shadow: 0 0 10px rgba(255, 77, 77, 0.7);
    }
  }

  #topBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #FF4D4D;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    display: none;
  }


  #loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #4B0000;
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

/*--------------------------------------------------------------------------*/
/*Imam Hussein*/
/*--------------------------------------------------------------------------*/
  /* زر أصحاب الإمام الحسين */
  .companions-btn-container {
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
  }

  .companions-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(145deg, #5a0000, #3a0000);
    color: #FFD700;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Lateef', cursive;
    font-size: 24px;
    border: 2px solid #FF4D4D;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .companions-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.6);
    color: white;
  }

  .companions-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: 0.5s;
  }

  .companions-btn:hover::before {
    left: 100%;
  }

  .companions-btn .icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-right: 10px;
    transition: transform 0.3s;
  }

  .companions-btn:hover .icon {
    transform: translateX(5px);
  }

  /* تحسينات للجوال */
  @media (max-width: 768px) {
    .companions-btn {
      font-size: 20px;
      padding: 12px 25px;
    }
    
    .companions-btn .icon {
      width: 20px;
      height: 20px;
    }
  }

  @media (max-width: 480px) {
    .companions-btn {
      font-size: 18px;
      padding: 10px 20px;
    }
  }

        .imam-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: rgba(75, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.6);
    border: 1px solid #ff4d4d;
  }

  .imam-table th {
    background: linear-gradient(to right, #3a0000, #5a0000);
    color: #ffcccc;
    padding: 16px;
    text-align: center;
    font-size: 19px;
    border-bottom: 3px solid #ff4d4d;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.7);
  }

  .imam-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 77, 77, 0.4);
    font-size: 18px;
    line-height: 1.7;
    position: relative;
  }

  .imam-table tr:last-child td {
    border-bottom: none;
  }

  .imam-table tr:hover td {
    background: rgba(255, 77, 77, 0.15);
    transition: all 0.4s ease;
  }

  .imam-table td:first-child {
    color: #ff9999;
    font-weight: bold;
    width: 30%;
  }

  .imam-table td:last-child {
    color: #ffffff;
  }

  .virtues-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: rgba(75, 0, 0, 0.85);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
    border: 2px solid #ff6666;
  }

  .glow-header {
    background: linear-gradient(135deg, #5a0000, #3a0000);
    color: #ffcccc;
    padding: 18px;
    text-align: center;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(255, 100, 100, 0.8);
    position: relative;
    letter-spacing: 1px;
  }

  .glow-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
  }

  .virtues-table td {
    padding: 16px 20px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 77, 77, 0.3);
    font-size: 18px;
    line-height: 1.8;
    transition: all 0.3s ease;
  }

  .virtues-table tr:last-child td {
    border-bottom: none;
  }

  .virtues-table tr:hover td {
    background: rgba(255, 77, 77, 0.2);
    transform: translateX(-5px);
  }

  .trait-icon {
    margin-left: 10px;
    font-size: 22px;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px rgba(255, 77, 77, 0.7));
  }

  .virtues-table td:first-child {
    color: #ffaaaa;
    font-weight: bold;
    width: 25%;
    position: relative;
  }

  .virtues-table td:first-child::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #ff4d4d, transparent);
  }



/* زر العودة للأعلى */

#topBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: var(--accent-color);
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
}

/* شاشة التحميل */
#loader {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: var(--main-color);
  color: white;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/*----------------------------------------------------------------------------------------------*/
/*الامام الرضا*/
/*----------------------------------------------------------------------------------------------*/

        /* أضف هذا في رأس HTML لاستخدام أيقونات Font Awesome */
  .imam-profile {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(75, 0, 0, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.8);
    position: relative;
  }

  .imam-profile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
  }

  .glow-header {
    background: linear-gradient(to right, #3a0000, #5a0000);
    color: #ffcccc;
    padding: 20px;
    text-align: center;
    font-size: 22px;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.9);
    letter-spacing: 1px;
  }

  .imam-profile td {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 77, 77, 0.4);
    font-size: 19px;
    line-height: 1.8;
    transition: all 0.4s ease;
    position: relative;
  }

  .imam-profile td:first-child {
    color: #ffaaaa;
    font-weight: bold;
    width: 28%;
    padding-right: 30px;
  }

  .imam-profile td:first-child i {
    margin-left: 10px;
    width: 25px;
    text-align: center;
    color: #ff6666;
  }

  .imam-profile tr:hover td {
    background: rgba(255, 77, 77, 0.25);
    transform: translateX(-8px);
  }

  .imam-profile tr:last-child td {
    border-bottom: none;
  }

  /* تصميم متجاوب للجوال */
  @media (max-width: 768px) {
    .imam-profile td {
      display: block;
      width: 100%;
      padding: 15px;
      text-align: left;
    }
    
    .imam-profile td:first-child {
      width: 100%;
      background: rgba(58, 0, 0, 0.7);
      border-bottom: 1px solid #ff4d4d;
    }
    
    .imam-profile td::before {
      content: attr(data-label);
      font-weight: bold;
      display: inline-block;
      width: 120px;
      color: #ff9999;
    }
    
    .imam-profile tr:hover td {
      transform: none;
    }
  }

  /* أضف في head */

  .ethics-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: rgba(75, 0, 0, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
    position: relative;
  }

  .glow-row {
    background: linear-gradient(135deg, #5a0000, #3a0000);
  }

  .th-icon {
    color: #ffcccc;
    padding: 20px;
    font-size: 20px;
    text-align: center;
    text-shadow: 0 0 8px rgba(255, 100, 100, 0.8);
  }

  .th-icon i {
    margin-left: 10px;
    color: #ff6666;
  }

  .ethics-table td {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 77, 77, 0.3);
    font-size: 18px;
    line-height: 1.8;
    transition: all 0.4s ease;
  }

  .ethics-table td:first-child {
    color: #ffaaaa;
    font-weight: bold;
    width: 25%;
    position: relative;
  }

  .emoji {
    font-size: 22px;
    margin-left: 10px;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px rgba(255, 77, 77, 0.7));
  }

  .ethics-table tr:hover td {
    background: rgba(255, 77, 77, 0.2);
    transform: translateX(-5px);
  }

  .ethics-table tr:last-child td {
    border-bottom: none;
  }

  /* تصميم الجوال */
  @media (max-width: 768px) {
    .ethics-table {
      display: block;
    }
    
    .ethics-table tbody,
    .ethics-table tr,
    .ethics-table td {
      display: block;
      width: 100%;
    }
    
    .ethics-table td {
      padding: 15px;
      text-align: right;
    }
    
    .ethics-table td:first-child {
      background: rgba(58, 0, 0, 0.7);
      border-bottom: 1px solid #ff4d4d;
    }
    
    .ethics-table td::before {
      content: attr(data-label);
      font-weight: bold;
      display: inline-block;
      width: 100px;
      color: #ff9999;
      margin-left: 10px;
    }
    
    .ethics-table tr:hover td {
      transform: none;
    }
  }

  /*----------------------------------------------------------------------------------------*/
  /*الامام الباقر*/
  /*----------------------------------------------------------------------------------------*/

/* أضف في head */
.imam-card {
  background: rgba(75, 0, 0, 0.9);
  border: 2px solid #ff4d4d;
  border-radius: 15px;
  padding: 25px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 0 30px rgba(255, 77, 77, 0.6);
  position: relative;
  overflow: hidden;
}

.imam-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
}

.imam-title {
  color: #ffaaaa;
  text-align: center;
  font-size: 26px;
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(255, 100, 100, 0.8);
  position: relative;
  padding-bottom: 15px;
}

.imam-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
}

.info-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  background: rgba(58, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-row:hover {
  transform: translateX(-5px);
  background: rgba(255, 77, 77, 0.2);
}

.info-label, .info-value {
  padding: 15px 20px;
}

.info-label {
  color: #ff9999;
  font-weight: bold;
  width: 35%;
  border-right: 2px solid rgba(255, 77, 77, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-label i {
  color: #ff6666;
  width: 25px;
  text-align: center;
}

.info-value {
  color: #ffffff;
  width: 65%;
  line-height: 1.7;
}

/* تصميم الجوال */
@media (max-width: 768px) {
  .imam-card {
    padding: 15px;
    margin: 20px 15px;
  }
  
  .info-row {
    flex-direction: column;
  }
  
  .info-label, .info-value {
    width: 100%;
    padding: 12px 15px;
  border-right: none;
  }
  
  .info-label {
    border-bottom: 1px solid rgba(255, 77, 77, 0.3);
  }
  
  .info-row:hover {
    transform: none;
  }
}

.virtues-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

.virtues-title {
  color: #ffaaaa;
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  text-shadow: 0 0 15px rgba(255, 100, 100, 0.8);
  position: relative;
}

.virtues-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 35%;
  width: 30%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
}

.virtues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 15px;
}

.virtue-card {
  background: rgba(75, 0, 0, 0.8);
  border: 1px solid #ff4d4d;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
  position: relative;
  overflow: hidden;
}

.virtue-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,77,77,0.1) 0%, rgba(255,77,77,0) 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.virtue-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 77, 77, 0.5);
  border-color: #ff6666;
}

.virtue-card:hover::before {
  transform: scale(1);
}

.virtue-icon {
  font-size: 50px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.7));
}

.virtue-name {
  color: #ff9999;
  font-size: 22px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.virtue-name::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
}

.virtue-desc {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.7;
  margin-top: 15px;
}

/* تصميم الجوال */
@media (max-width: 768px) {
  .virtues-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .virtue-card {
    padding: 20px;
  }
  
  .virtue-icon {
    font-size: 40px;
  }
  
  .virtue-name {
    font-size: 20px;
  }
  
  .virtue-desc {
    font-size: 16px;
  }
}

/*-----------------------------------------------------------------------------------*/
/*الامام الهادي*/
/*-----------------------------------------------------------------------------------*/

/* أضف في head */
.imam-profile-card {
  background: linear-gradient(135deg, rgba(75,0,0,0.9), rgba(50,0,0,0.9));
  border: 2px solid #ff4d4d;
  border-radius: 20px;
  max-width: 800px;
  margin: 40px auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 77, 77, 0.4);
  position: relative;
}

.imam-profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff4d4d, #ff9999, #ff4d4d);
}

.imam-header {
  padding: 25px;
  text-align: center;
  background: rgba(58, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 77, 77, 0.4);
}

.imam-name {
  color: #ffcccc;
  font-size: 28px;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 100, 100, 0.8);
}

.imam-titles {
  color: #ff9999;
  font-size: 18px;
  margin-top: 10px;
  font-style: italic;
}

.imam-details {
  padding: 20px;
}

.detail-row {
  display: flex;
  margin-bottom: 15px;
  background: rgba(58, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.detail-row:hover {
  transform: translateX(10px);
  background: rgba(255, 77, 77, 0.2);
}

.detail-label {
  color: #ffaaaa;
  font-weight: bold;
  padding: 18px;
  width: 35%;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 2px solid rgba(255, 77, 77, 0.3);
}

.detail-label i {
  color: #ff6666;
  width: 25px;
  text-align: center;
}

.detail-value {
  color: #ffffff;
  padding: 18px;
  width: 65%;
  line-height: 1.7;
}

/* تصميم الجوال */
@media (max-width: 768px) {
  .imam-profile-card {
    margin: 20px 15px;
    border-radius: 15px;
  }
  
  .detail-row {
    flex-direction: column;
  }
  
  .detail-label, .detail-value {
    width: 100%;
    padding: 15px;
  }
  
  .detail-label {
    border-right: none;
    border-bottom: 1px solid rgba(255, 77, 77, 0.3);
  }
  
  .detail-row:hover {
    transform: none;
  }
  
  .imam-name {
    font-size: 24px;
  }
  
  .imam-titles {
    font-size: 16px;
  }
}

.virtues-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
}

.section-title {
  color: #ffaaaa;
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  position: relative;
  text-shadow: 0 0 15px rgba(255, 100, 100, 0.8);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 40%;
  width: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
}

.virtues-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
}

.virtue-card {
  background: rgba(75, 0, 0, 0.8);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--hue), 100%, 50%);
  box-shadow: 0 5px 15px hsla(var(--hue), 100%, 50%, 0.3);
}

.virtue-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, 
    hsl(var(--hue), 100%, 50%), 
    hsl(calc(var(--hue) + 30), 100%, 50%));
}

.virtue-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px hsla(var(--hue), 100%, 50%, 0.5);
}

.virtue-icon {
  font-size: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px hsla(var(--hue), 100%, 50%, 0.7));
  transition: transform 0.3s ease;
}

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

.virtue-title {
  color: hsl(var(--hue), 100%, 80%);
  font-size: 24px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.virtue-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    hsl(var(--hue), 100%, 50%), 
    transparent);
}

.virtue-desc {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.7;
  margin-top: 15px;
}

/* تصميم الجوال */
@media (max-width: 768px) {
  .virtues-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .virtue-card {
    padding: 25px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .virtue-icon {
    font-size: 50px;
  }
  
  .virtue-title {
    font-size: 22px;
  }
}

/*----------------------------------------------------------------------------------*/
/*الامام العسكري*/
/*----------------------------------------------------------------------------------------*/

.imam-profile-container {
  max-width: 1000px;
  margin: 40px auto;
  background: rgba(75, 0, 0, 0.85);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(255, 77, 77, 0.5);
  border: 2px solid #ff4d4d;
  position: relative;
}

.imam-profile-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff4d4d, #ff9999, #ff4d4d);
}

.imam-header {
  padding: 30px;
  text-align: center;
  background: rgba(58, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 77, 77, 0.4);
}

.imam-main-title {
  color: #ffcccc;
  font-size: 32px;
  margin: 0;
  text-shadow: 0 0 15px rgba(255, 100, 100, 0.9);
}

.imam-subtitle {
  color: #ff9999;
  font-size: 20px;
  margin-top: 10px;
  font-style: italic;
}

.imam-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 30px;
}

.detail-card {
  background: rgba(58, 0, 0, 0.5);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.detail-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 77, 77, 0.15);
  box-shadow: 0 8px 25px rgba(255, 77, 77, 0.3);
}

.detail-icon {
  font-size: 50px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 77, 77, 0.7));
}

.detail-content {
  text-align: right;
}

.detail-title {
  color: #ffaaaa;
  font-size: 20px;
  margin: 0 0 10px 0;
}

.detail-text {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* تصميم الجوال */
@media (max-width: 768px) {
  .imam-profile-container {
    margin: 20px 15px;
    border-radius: 15px;
  }
  
  .imam-header {
    padding: 20px;
  }
  
  .imam-main-title {
    font-size: 26px;
  }
  
  .imam-subtitle {
    font-size: 18px;
  }
  
  .imam-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .detail-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .detail-content {
    text-align: center;
  }
  
  .detail-icon {
    font-size: 40px;
  }
}

/* Additional table styling */
.table-container {
  margin: 20px 0;
  background: rgba(58, 0, 0, 0.5);
}

table {
  width: 100%;
  border: none;
}

th {
  background: rgba(255, 77, 77, 0.2);
  font-size: 18px;
  padding: 12px 15px;
}

td {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 77, 77, 0.2);
}

tr:hover td {
  background: rgba(255, 77, 77, 0.1);
}

/* Responsive table */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  tr {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 8px;
  }
  
  td {
    border: none;
    position: relative;
    padding-right: 50%;
  }
  
  td:before {
    position: absolute;
    right: 10px;
    content: attr(data-label);
    font-weight: bold;
    color: #ffaaaa;
  }
}

/* تحسين القوائم */
ul {
  list-style-type: none;
  padding-right: 0;
}

li {
  position: relative;
  padding-right: 25px;
  margin-bottom: 15px;
  font-size: 18px;
}

li:before {
  content: "•";
  color: #ff4d4d;
  font-size: 24px;
  position: absolute;
  right: 0;
  top: -2px;
}

ul ul li:before {
  content: "◦";
  color: #ff9999;
}

/* تحسين الجدول */
.table-container {
  background: rgba(40, 0, 0, 0.7);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

th {
  background: linear-gradient(to right, rgba(255, 77, 77, 0.3), rgba(255, 120, 120, 0.1));
  font-size: 20px;
  letter-spacing: 1px;
}

td {
  transition: all 0.3s ease;
}
/* تحسينات عامة */
body {
  background: linear-gradient(135deg, #1a0000, #4b0000);
  font-family: 'Tajawal', sans-serif;
}

/* تحسين القطرات */
.drop {
  background: radial-gradient(circle, #ff4d4d, #990000);
  width: 5px;
  height: 25px;
  border-radius: 50% 50% 20% 20%;
  animation: fall 2s ease-in infinite;
}

/* تحسين الكروت */
.glow-card {
  background: linear-gradient(to bottom, rgba(75, 0, 0, 0.9), rgba(40, 0, 0, 0.9));
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 77, 77, 0.5);
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.3),
              0 0 40px rgba(255, 77, 77, 0.2),
              0 0 80px rgba(255, 77, 77, 0.1);
}

/* تحسين العناوين */
h1, h2, h3 {
  font-family: 'Lateef', cursive;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* إضافة زخارف إسلامية */
.islamic-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('islamic-pattern.png');
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

/*------------------------------------------------------------------------------------------------*/
/*الامام المهدي*/
/*---------------------------------------------------------------------------------------------------*/

.table-container {
  margin: 30px 0;
  overflow-x: auto;
  background: rgba(40, 0, 0, 0.7);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
  border: 1px solid rgba(255, 77, 77, 0.5);
}

.imam-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Tajawal', sans-serif;
  text-align: right;
}

.imam-table th {
  background-color: rgba(75, 0, 0, 0.8);
  color: #FFD700;
  font-size: 20px;
  padding: 15px;
  border-bottom: 2px solid #FF4D4D;
}

.imam-table td {
  padding: 15px;
  color: white;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 77, 77, 0.3);
  line-height: 1.6;
}

.imam-table tr:last-child td {
  border-bottom: none;
}

/* تأثيرات عند التحويم */
.imam-table tr:hover td {
  background-color: rgba(255, 77, 77, 0.1);
}

/* تصميم متجاوب للجوال */
@media (max-width: 768px) {
  .imam-table th, 
  .imam-table td {
    padding: 12px 10px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .imam-table {
    display: block;
  }
  
  .imam-table thead, 
  .imam-table tbody, 
  .imam-table th, 
  .imam-table td, 
  .imam-table tr {
    display: block;
  }
  
  .imam-table th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .imam-table tr {
    margin-bottom: 15px;
    border-bottom: 2px solid #FF4D4D;
  }
  
  .imam-table td {
    border: none;
    position: relative;
    padding-right: 50%;
  }
  
  .imam-table td:before {
    content: attr(data-label);
    position: absolute;
    right: 0;
    top: 0;
    font-weight: bold;
    color: #FFD700;
  }
  
  .imam-table td {
    padding: 10px 8px 10px 50%;
  }
}

.section-title {
  color: #FFD700;
  font-family: 'Lateef', cursive;
  font-size: 28px;
  margin: 25px 0 15px;
  text-align: right;
}

.icon-hide {
  display: inline-block;
  width: 25px;
  height: 25px;
  background-image: url('hide-icon.png');
  background-size: contain;
  margin-left: 10px;
}

/* تخصيص جدول السفراء */
.agents-table {
  counter-reset: rowNumber;
}

.agents-table tbody tr {
  position: relative;
}

.agents-table tbody tr td:first-child::before {
  content: counter(rowNumber);
  counter-increment: rowNumber;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 215, 0, 0.3);
  font-size: 40px;
  font-weight: bold;
  z-index: 0;
}

.agents-table td:first-child {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 60px;
}

.agents-table td:nth-child(2) {
  font-weight: bold;
  color: #FFD700;
}

.agents-table td:nth-child(3) {
  font-style: italic;
  opacity: 0.9;
}

.table-title {
  color: #FFD700;
  font-family: 'Lateef', cursive;
  font-size: 24px;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* تأثيرات خاصة للجدول */
.agents-table tbody tr:hover {
  background-color: rgba(255, 77, 77, 0.1);
}

.agents-table tbody tr:hover td:first-child::before {
  color: rgba(255, 215, 0, 0.5);
}

/* تحسينات للجوال */
@media (max-width: 768px) {
  .agents-table td:nth-child(3) {
    display: none;
  }
  
  .agents-table td:first-child::before {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .table-title {
    font-size: 20px;
  }
  
  .agents-table td:nth-child(2) {
    font-size: 16px;
  }
}

/* تخصيص جدول الأعمال */
.duties-table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

.duties-table thead th {
  background-color: rgba(75, 0, 0, 0.9);
  color: #FFD700;
  padding: 15px;
  font-size: 20px;
  text-align: right;
  border: none;
}

.duties-table tbody tr {
  background-color: rgba(40, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.duties-table tbody td {
  padding: 20px;
  border: none;
  border-top: 1px solid rgba(255, 77, 77, 0.3);
  border-bottom: 1px solid rgba(255, 77, 77, 0.3);
}

.duties-table tbody tr:first-child td {
  border-top: none;
}

.duties-table tbody tr:last-child td {
  border-bottom: none;
}

.duties-table tbody tr:hover {
  transform: translateX(-10px);
  box-shadow: 5px 0 15px rgba(255, 77, 77, 0.3);
}

.gold-text {
  color: #FFD700;
  font-weight: bold;
  font-family: 'Lateef', cursive;
  font-size: 22px;
}

/* تأثيرات خاصة للشرح */
.duties-table tbody td:nth-child(2) {
  border-right: 3px solid rgba(255, 77, 77, 0.5);
  position: relative;
}

.duties-table tbody td:nth-child(2)::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(to bottom, #FF4D4D, #FFD700);
  opacity: 0;
  transition: opacity 0.3s;
}

.duties-table tbody tr:hover td:nth-child(2)::before {
  opacity: 1;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
  .duties-table thead th {
    font-size: 18px;
    padding: 12px;
  }
  
  .duties-table tbody td {
    padding: 15px;
  }
  
  .gold-text {
    font-size: 19px;
  }
}

@media (max-width: 480px) {
  .duties-table {
    display: block;
  }
  
  .duties-table thead {
    display: none;
  }
  
  .duties-table tbody tr {
    display: block;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .duties-table tbody td {
    display: block;
    width: 100% !important;
    border: none !important;
    padding: 15px !important;
  }
  
  .duties-table tbody td:nth-child(2) {
    border-top: 1px solid rgba(255, 77, 77, 0.3) !important;
  }
  
  .duties-table tbody td::before {
    content: attr(data-label);
    display: block;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Lateef', cursive;
  }
}

#topBtn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 99;
  font-size: 20px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

function scrollToTop() {
  window.scrollTo({top: 0, behavior: 'smooth'});
}