@font-face {
  font-family: 'Scheherazade New';
  src: url('../assets/fonts/ScheherazadeNew-Regular.woff2') format('woff2'),
       url('../assets/fonts/ScheherazadeNew-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Scheherazade New';
  src: url('../assets/fonts/ScheherazadeNew-SemiBold.woff2') format('woff2'),
       url('../assets/fonts/ScheherazadeNew-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Scheherazade New';
  src: url('../assets/fonts/ScheherazadeNew-Bold.woff2') format('woff2'),
       url('../assets/fonts/ScheherazadeNew-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* العرض العام */
body {
  font-family: 'Scheherazade New', serif;
  background-color: #f9f9f9;
  direction: rtl;
  text-align: center;
  padding: 40px;
  font-size: 20px;
  font-weight: 400; /* Regular للنصوص العامة */
  line-height: 1.8;
  color: #222;
}

/* القواعد الخاصة بالعناوين والنصوص */
h1, h2, h3, .na3wa-text {
  font-family: 'Scheherazade New', serif;
  font-weight: 700; /* Bold للعناوين */
  margin-bottom: 20px;
}






h1 {
  font-family: 'Scheherazade New', serif;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* ظل واضح */
}




.hero-text {
  font-family: "Scheherazade New", serif; /* خط عربي أنيق */
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin: 20px 0;
}

.hero-subtext {
  font-family: "Scheherazade New", serif;
  font-size: 20px;
  color: #555;
  text-align: center;
  margin-bottom: 30px;
}

.hero-text {
  font-family: 'Scheherazade New', serif;
  font-weight: 700; /* غامق */
  font-size: 28px;
  color: #222;
  text-align: center;
}

/* نصوص التعزية */
.na3wa-text {
  font-family: 'Scheherazade New', serif;
  font-weight: 600;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.25); /* ظل أخف */
}


/* الأزرار */
.buttons button {
  font-family: 'Scheherazade New', serif;
  font-size: 18px;
  padding: 12px 24px;
  margin: 10px;
  cursor: pointer;
  border: none;
  background-color: #e0e0e0;
  border-radius: 6px;
  font-weight: 600;
  color: #222;

  /* إضافة خيال للأزرار */
  box-shadow: 2px 2px 6px rgba(0,0,0,0.25);

  /* تأثير عند المرور */
  transition: all 0.3s ease;
}

.buttons button:hover {
  background-color: #d5d5d5;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.35);
}

/*زر المزيد من التفاصيل */
button, .btn {
  background-color: #007BFF;   /* أزرق أنيق */
  color: #fff;                 /* نص أبيض */
  padding: 12px 20px;          /* مساحة داخلية مريحة */
  border: none;                /* بدون حدود */
  border-radius: 6px;          /* زوايا مستديرة */
  font-size: 16px;             /* حجم خط مناسب */
  cursor: pointer;             /* مؤشر اليد */
  transition: all 0.3s ease;   /* حركة سلسة عند التفاعل */
}

button:hover, .btn:hover {
  background-color: #0056b3;   /* لون أغمق عند المرور */
  transform: scale(1.05);      /* تكبير بسيط */
}

button:active, .btn:active {
  background-color: #004080;   /* لون أغمق عند الضغط */
}


/* الصفحة الرئيسية */

/* رأس الصفحة */
header {
  background-color: ##f9f9f9;
  padding: 20px;
  margin-bottom: 20px;
}

@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&display=swap');

.quran-verse {
  font-family: 'Amiri Quran', serif;
  font-size: 34px;
  font-weight: normal;
  margin: 25px 0;
  color: #000;
  line-height: 1.8;
  text-align: center;
    font-size: 40px; /* أكبر من المعتاد */
	  font-weight: 700; /* أو bold */
	    text-shadow: 1px 1px 2px #555;
}


header h1 {
  font-size: 28px;
  margin: 10px 0;
}

header .subtitle {
  font-size: 18px;
  color: #555;
}

.main-condolence {
  font-size: 40px;       /* خط واسع */
  font-weight: bold;
  margin: 20px 0;
  color: #000;           /* يمكن تغييره لاحقًا */
}

/* قسم التعزية والشرح */
.intro {
  margin: 20px 0;
}

.intro .condolence {
  font-size: 22px;
  font-weight: bold;
  color: #444;
}

.intro .description {
  font-size: 18px;
  color: #333;
}

/* اختيار ذكر/أنثى */
.gender-choice {
  margin: 20px 0;
}

.gender-choice label {
  margin: 0 10px;
  cursor: pointer;
  font-size: 18px;
}

/* قسم التواصل */
.contact {
  margin: 20px 0;
}

.contact a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.contact .icon {
  width: 24px;
  vertical-align: middle;
}

/* زر الاستفسارات */
.services {
  margin: 30px 0;
}

.services .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #444;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.services .btn:hover {
  background-color: #666;
}

/* تذييل */
footer {
  background-color: #eee;
  padding: 10px;
  margin-top: 30px;
}

footer p {
  font-size: 14px;
  color: #555;
}

/* تجاوب مع الموبايل */
@media (max-width: 600px) {
  header h1 {
    font-size: 22px;
  }
  .intro .condolence {
    font-size: 20px;
  }
  .intro .description {
    font-size: 16px;
  }
  .gender-choice label {
    font-size: 16px;
  }
  .services .btn {
    padding: 8px 16px;
    font-size: 16px;
  }
}
.success-message {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    color: #2e7d32;
}

.success-message h2 {
    font-size: 1.6rem;       /* تكبير العنوان */
    font-weight: bold;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.2rem;       /* تكبير النص */
    margin: 8px 0;
}

/* تحسين العرض على الموبايل */
@media (max-width: 600px) {
    .success-message h2 {
        font-size: 1.8rem;   /* أكبر على الهواتف */
    }
    .success-message p {
        font-size: 1.4rem;
    }
}


.indented-line {
  text-align: right;
  direction: rtl;
  display: block;
  padding-right: 140px;
  text-indent: -20px;
  line-height: 1.8;
}

/*
.na3wa-container {
  background-color: #fff;
  border: 2px solid #000;
  padding: 30px;
  max-width: 800px;
  margin: auto;
}

*/
  .na3wa-container {
    padding: 0 !important;
    margin: 0 auto !important;
	border: none !important; /* اختياري لتقليل المساحة */
    max-width: 100% !important;

  } 




.buttons-container {
  display: grid;
  gap: 15px;
  justify-content: center;
}

.buttons-container button {
  min-width: 220px;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  text-align: center;
}

/* للجوال */
@media (max-width: 600px) {
  .buttons-container button {
    width: 80%;
    max-width: 300px;
  }
}





  
.title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.separator {
  border: none;
  border-top: 2px solid #000;
  margin: 10px 0 20px;
}

.family-info p,
.extended-family p,
.announcement p,
.details p,
.condolences p,

.closing p {
  text-align: right;
  margin: 5px 0;
}

.header-image,
.footer-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1px 0;
}

.header-image img,
.footer-image img {
  max-width: 100%;
  height: auto;
}


.relative-line {
  margin: 0.2em 0;
  line-height: 1.2;
  page-break-inside: avoid;
  display: flex;
  flex-direction: row-reverse;
}

.label {
  font-weight: bold;
  min-width: 140px;
  text-align: right;
}

.names {
  flex: 1;
  text-align: right;
}



.highlight {
  font-weight: 900;
  font-size: 22px;
  margin-top: 20px;
  color: #000;
}

.family-line {
  font-weight: bold;
  text-align: center;
  font-size: 20px;
  margin: 30px 0;
  line-height: 1.6;
}

.na3wa-wrapper {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0.5cm;
}

/* الطباعة */
@media print {
	

  
    body {
    margin: 0 !important;
    padding: 0 !important;
  }




  
  
  

  @page {
    margin: 0;
  }

  .na3wa-wrapper {
    padding: 0;
    margin: 0;
  }

  .na3wa-top,
  .na3wa-bottom {
    padding: 0.2cm 0.5cm;
    page-break-inside: auto; /* بدل avoid */
  }

  .relative-item {
    font-size: 10px;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .highlight {
    font-size: 16px;
    font-weight: bold;
  }

  p {
    margin: 3px 0;
  }

  img[alt="رأس النعوة"] {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0;
    display: block;
  }

  img[alt="ذيل النعوة"] {
    max-height: 2cm;
    width: 100%;
    object-fit: contain;
    margin: 0;
  }
}  

.btn-instructions {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a90e2;   /* خلفية الزر */
  color: #fff;                 /* لون النص */
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;          /* زوايا مستديرة */
  border: 2px solid #357ABD;   /* إطار واضح */
  text-decoration: none;       /* إزالة الخط تحت النص */
  box-shadow: 0 3px 6px rgba(0,0,0,0.2); /* ظل خفيف */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-instructions:hover {
  background-color: #357ABD;   /* لون مختلف عند المرور */
  transform: scale(1.05);      /* تكبير بسيط */
}


.btn-na3wa {
  display: inline-block;
  margin: 10px;
  padding: 12px 20px;
  background-color: #6c63ff; /* بنفسجي مميز */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-na3wa:hover {
  background-color: #574bdb;
  transform: scale(1.05);
}
 
.main-button {
  display: inline-block;
  margin: 10px;
  padding: 12px 20px;
  background-color: #6c63ff; /* بنفسجي مميز */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.main-button:hover {
  background-color: #574bdb;
  transform: scale(1.05);
}



 
.btn-back {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f44336; /* أحمر */
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}
.btn-back:hover {
  background-color: #d32f2f;
}

.btn-whatsapp {
  display: inline-block;
  padding: 10px 20px;
  background-color: #25D366; /* اللون الأخضر الخاص بواتس آب */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}

/* تنسيق النافذة */
.popup {
  display: none; /* مخفية افتراضيًا */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.popup-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  text-align: center;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}




.quote-box {
  border: 1px solid #ccc;       /* إطار رفيع */
  border-radius: 8px;           /* زوايا ناعمة */
  padding: 20px;
  margin: 20px auto;            /* توسيط الصندوق */
  width: 60%;                   /* عرض محدد (يمكن تغييره مثلاً 400px) */
  max-width: 600px;             /* أقصى عرض */
  background-color: #cccccc;    /* خلفية فاتحة */
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}




