/* Add custom CSS styles below */ 
/* ===========================================================
   ✅ WhatsApp Button (Protected CSS — High Specificity)
   لن يتأثر بأي ستايل موجود في الموقع مهما كان
=========================================================== */

/* ✅ الزر الأساسي */
body .whatsapp-btn {
  position: fixed !important;
  right: 20px !important;
  bottom: 30px !important;
  display: flex !important;
  align-items: center !important;
  z-index: 999999 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  direction: ltr !important;
}

/* ✅ أيقونة الواتساب */
body .whatsapp-btn .wa-icon {
  width: 50px !important;
  height: 50px !important;
  background: #2ac766 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  animation: whatsapp-bounce 2s infinite !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  transition: transform 0.2s !important;
}

body .whatsapp-btn .wa-icon:hover {
  transform: scale(1.1) !important;
}

/* ✅ أنيميشن */
@keyframes whatsapp-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ✅ مربع الإدخال + زر الإرسال */
body .whatsapp-btn .wa-input-wrapper {
  display: none !important;
  align-items: center !important;
  gap: 12px !important;
  margin-right: 15px !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

body .whatsapp-btn .wa-input-wrapper.show {
  display: flex !important;
  opacity: 1 !important;
}

/* ✅ مربع الكتابة */
body .whatsapp-btn .wa-input-wrapper .wa-textarea {
  max-width: 260px !important;
  background: #2A3942 !important;
  color: white !important;
  font-size: 12px !important;
  padding: 2px 5px !important;
  border: none !important;
  border-radius: 8px !important;
  outline: none !important;
  resize: none !important;
  max-height: 32px !important;
  width: 220px !important;
  direction: rtl !important;
  box-shadow: 0 0 0 8px #202C33 !important;
  transition: all 0.3s !important;
}

body .whatsapp-btn .wa-input-wrapper .wa-textarea::placeholder {
  color: #7E8F98 !important;
}

/* ✅ زر الإرسال */
body .whatsapp-btn .wa-input-wrapper .wa-send {
  width: 40px !important;
  height: 40px !important;
  background: #202C33 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: background 0.3s !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

body .whatsapp-btn .wa-input-wrapper .wa-send:hover {
  background: #2A3942 !important;
}

/* ✅ موبايل */
@media (max-width: 640px) {
  body .whatsapp-btn {
    right: 15px !important;
    bottom: 20px !important;
  }
}




/****************************************************
 ✅ Modern Minimal Q&A Styles (Accordion)
****************************************************/

.qna-wrapper-js {
  margin: 40px auto;
  padding: 25px 20px;
  max-width: 800px;
  background: #ffffff;
}

.qna-item-js {
  border-bottom: 1px solid #e9e9e9;
  padding: 18px 0;
}

.qna-q-js {
  width: 100%;
  text-align: right;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  color: #222;
  transition: color .25s ease;
}

.qna-q-js::after {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 24px;
  line-height: 1;
  color: #666;
  transition: transform .25s ease, color .25s ease;
}

.qna-q-js.open::after {
  content: "-";
  transform: rotate(180deg);
  color: #111;
}

.qna-a-js {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin-top: 10px;

  /* Accordion animation */
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease;
  opacity: 0;
}

.qna-a-js.open {
  max-height: 300px;
  opacity: 1;
}

/* ✅ تعديل شكل صفحة الصور */
body.gallery-page .content-entry p {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0 12px;
  margin: 0 !important;
  padding: 0 !important;
}

/* ✅ الصور */
body.gallery-page .content-entry p img {
  width: 100% !important;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  background: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* ✅ hover effect */
body.gallery-page .content-entry p img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}