/* ============= 🅰️ الخطوط ============= */
body {
  font-family: 'Cairo-Regular', sans-serif;
  margin: 0;
  padding: 0;
background: #7f7169 url("assets/images/warp-bg.png");
  line-height: 1.7;
  color: #333;
  direction: rtl;
}

.main-blocks-wrapper {
    padding: 5px;
    border-radius: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}
/* ✅ هوامش إضافية للجوال فقط */
@media (max-width: 768px) {
  .main-blocks-wrapper {
    margin-left: 5px;
    margin-right: 5px;
  }
}
/* ============= 🅱️ الشعار والتجاوب ============= */
.site-header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* شعار الحواسيب */
.logo-desktop {
  display: block;
  max-width: 100%;
  height: auto;
    margin-bottom: 0px;
  border-bottom: 2px #000;

}

/* شعار الجوال */
.logo-mobile {
  display: none;
  max-width: 100%;
  height: auto;
}

/* استجابة الشاشة الصغيرة */
@media (max-width: 768px) {
  .logo-desktop {
    display: none;
  }
  .logo-mobile {
    display: block;
  }
}
.nav-logo {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-logo {
    display: block !important;
  }
}

/* ============= 🅴 الشريط المتحرك ============= */
.ticker-new {
  display: flex;
  background-color: #ffffff;
  font-family: 'Cairo-Regular', sans-serif;
  overflow: hidden;
  border-radius: 0px;
  height: 50px;
     margin-top: 15px;
}

.ticker-label {
  background-color: #675443;
  color: #ffffff;
  font-size: 18px;
  padding: 12px 20px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0px 0 0 0px;
  z-index: 2;
  position: relative;
}

.ticker-scroll-wrapper {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.ticker-items {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;

  animation: scroll-ticker 30s linear infinite;
  animation-play-state: running;
}

.ticker-scroll-wrapper:hover .ticker-items {
  animation-play-state: paused;
}

/* ✅ الحركة الحقيقية من اليسار إلى اليمين */
@keyframes scroll-ticker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.ticker-box {
  padding: 3px 5px;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: transparent;
  margin-left: 0px;
}

.section-name {
    font-size: 18px;
  color: #000;
  margin-left: 6px;
}

.item-title a {
    font-size: 18px;
  color: #0000ff;
  text-decoration: none;
}

.item-title a:hover {
  color: #ff0000;
}

.divider {
  display: inline-block;
  margin: 0 10px;
  color: #000;
  font-weight: bold;
}

/* ✅ استجابة الجوال */
@media (max-width: 768px) {
  .ticker-new {
    flex-direction: column;
    height: auto;
    align-items: stretch;
  }

  .ticker-label {
    width: 100%;
    border-radius: 0px 0px 0 0;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    padding: 10px;
  }

  .ticker-scroll-wrapper {
    width: 100%;
    height: auto;
  }

 .ticker-items {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;

  animation: scroll-ticker 30s linear infinite;
  animation-play-state: running;

  /* ✅ الحل الحقيقي: نُجبر الطول ليُرغم التحريك */
  min-width: 200%;
}


  .ticker-box {
    margin-left: 16px;
  }
}

/* ============= 🅵 الفوتر ============= */
.footer {
    background: #28170e;
    padding: 20px 10px;
  border-bottom: 3px solid #dbba4f;
    color: white;
    margin-top: 0px;
}

.all-footer {
    max-width: 1200px;
    margin: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    padding: 7px;
    text-align: center;
        background-color: #e4dbce;
  border-bottom: 2px solid #dbba4f;
    margin: 20px 10px 0px 10px;
    border-radius: 0px;
}

.footer-column ul li:hover {
    padding: 7px;
    text-align: center;
    background: #d5d5c6;
    border-radius: 0px;
}

.footer-column ul li a {
    color: #000;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease-in-out; 
}
.footer-column ul li a:hover {
    color: #0000ff;
    text-decoration: none;
}
.copyright {
    background: #675443;
    padding: 4px 10px; /* تقليل البادينغ العلوي والسفلي */
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 1.2; /* تقليل المسافة بين الأسطر */
    margin: 0; /* تأكد أنه لا يوجد هامش خارجي */
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* زرين في كل سطر */
    gap: 0px;
  }

  .footer-column ul li {
    margin: 10px 5px;
    padding: 5px;
    font-size: 10px;
  }

  .footer-column ul li a {
    font-size: 10px;
  }
}

/* ==================================================================== */
/* 🌐 تنسيق أزرار مواقع التواصل في الفوتر */
.social-buttons-group {
  background-color: #ffffff;
    font-family: 'Cairo-Regular', sans-serif;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto;
  padding: 20px;
}

.social-buttons-group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  min-width: 110px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
 .social-title {
  background-color: #ffffff;
  font-family: 'Cairo-Regular', sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

/* 🌟 تأثير تفاعلي */
.social-buttons-group a:hover,
.social-buttons-group a:focus {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* 🎨 الألوان حسب كل منصة */
.facebook-bg   { background-color: #3b5998; }
.twitter-bg    { background-color: #1d9bf0; }
.youtube-bg    { background-color: #ff0000; }
.telegram-bg   { background-color: #1a8ad5; }
.tiktok-bg     { background-color: #000000; }
.instagram-bg  { background-color: #e4405f; }
.whatsapp-bg   { background-color: #1daa61; }
.Apply-bg      { background-color: #337d76; }

/* 📱 تنسيق الجوال */
@media (max-width: 768px) {
  .social-buttons-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* 👈 زدنا الفجوة بين الأزرار */
    padding: 10px; /* 👈 حواف داخلية للحاوية */
  }

  .social-buttons-group a {
    width: 100%;
    font-size: 14px;
    margin: 0; /* 👈 لا حاجة له الآن */
    padding: 12px 18px; /* 👈 حواف داخلية أكبر للزر نفسه */
    box-sizing: border-box; /* 👈 يضمن عدم تجاوز العرض */
  }
}

/* 🖥️ إظهار فقط على سطح المكتب */
.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

/* ✅ أزرار المشاركة */
.share-buttons {
   background-color: #faecdf;
   text-align: center;
   margin-top: 10px;
   padding: 10px 16px;
   border-radius: 5px;


}

.share-title {
  font-family: 'Cairo-Regular', sans-serif;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.share-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.share-grid a {
  font-family: 'Cairo-Regular', sans-serif;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 15px;
  font-size: 12px;
  display: inline-block;
  width: 140px;
  text-align: center;
  color: #fff;
  transition: 0.2s ease;
}

/* ألوان مخصصة لكل زر */
.share-grid .facebook {
  background-color: #3b5998;
}

.share-grid .whatsapp {
  background-color: #25d366;
}

.share-grid .twitter {
  background-color: #1da1f2;
}

.share-grid .instagram {
  background-color: #c13584;
}

@media (max-width: 768px) {
  .share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 👈 أربعة أعمدة */
    gap: 10px;
    justify-items: center;
    padding: 10px;
  }

  .share-grid a {
    width: 100%;
    font-size: 8px;
    padding: 5px;
    box-sizing: border-box;
  }

  .share-title {
    font-size: 12px;
    margin-bottom: 10px;
  }
}

/* ==================================================================== */
/* 📌 تنسيق شريط التنقل (breadcrumb)*/
.breadcrumb-container {
  background-color: #675443;     
  padding: 10px 25px;
  margin: 15px 0;
  font-family: 'Cairo-Regular', sans-serif;  
  font-size: 12px;                
  color: #ffffff;
  border-radius: 0px;
}

.breadcrumb-container a {
  color: #ffffff;
  text-decoration: none;          /* 🚫 بدون خط تحت الروابط */
  font-weight: normal;
  margin: 0 5px;
}

.breadcrumb-container a:hover {
  color: #e2e6ea;                 /* لون عند المرور */
}

.breadcrumb-container span {
  color: #ffffff;
  font-weight: normal;
  margin: 0 5px;
}

/* 🎨 تنسيق واجهة دفتر الزوار - الطريقة القادرية */

.guestbook-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    max-width: 1200px;
    margin: 20px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

/* العنوان الرئيسي */
.guestbook-title {
     background: #675443;
    padding: 10px;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;

}

/* نموذج التوقيع */
.guestbook-form label {
    font-weight: bold;
    margin-top: 15px;
    display: block;
    text-align: right;
    font-size: 1rem;
}

.guestbook-form input,
.guestbook-form textarea {
    margin-top: 5px;
    font-size: 1rem;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    direction: rtl;
    text-align: right;
}

.guestbook-form textarea {
    resize: vertical;
    min-height: 120px;
}

.guestbook-form .btn {
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 20px;
}

/* عرض التواقيع */
.guest-entry {
    background: #c9c9b547;
    padding: 5px 5px;
    border: 1px solid #000;
    border-radius: 12px;
    margin-bottom: 4px;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.entry-message {
    color: #000;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.entry-signer {
    color: #0000ff;
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: right;
}

.admin-reply {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #000;
    color: #675443;
    font-size: 0.95rem;
}

.reply-text {
    margin-top: 5px;
    color: #0000FF;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}
/* 🔘 زر إضافة توقيع مميز */

.guestbook-btn {
    display: inline-block;
    background-color: #e5e4d8;
    color: #000;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid #000;
    transition: 0.3s ease;
}

.guestbook-btn:hover {
    background-color: #c7ecd1;
    color: #0f3f20;
    text-decoration: none;
}
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}
/* 🌟 نموذج المراسلة */
.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Tajawal', sans-serif;
}

.contact-title {
    font-size: 24px;
    font-weight: bold;
    color: #675443;
    text-align: center;
    margin-bottom: 24px;
}

.contact-group {
    margin-bottom: 20px;
}

.contact-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.contact-group input,
.contact-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fdfdfd;
    font-family: 'Tajawal', sans-serif;
}

.contact-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit button {
    background-color: #675443;
    color: white;
     font-family: 'Cairo-Regular', sans-serif;
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-submit button:hover {
    background-color: #157347;
}

.contact-alert {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
  .mobile-only {
    display: none !important;
  }

  /* إظهاره فقط على الشاشات الصغيرة */
  @media (max-width: 768px) {
    .mobile-only {
      display: inline-block !important;
    }
  }
/* ============================================================
   ✅ تنسيقات إحصائيات الزوار - تظهر في الصفحة الرئيسية فقط
   ============================================================ */

/* ✅ قسم إحصائيات الزوار */
.visitor-stats {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  background-color: #f8fcff;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.visitor-stats > div {
  flex: 1 1 300px;
}

.visitor-stats h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #157347;
  border-bottom: 2px solid #157347;
  padding-bottom: 0.4rem;
}

.visitor-stats ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
  font-size: 15px;
}

.visitor-stats li {
  margin-bottom: 6px;
}

/* ✅ تخصيص عنوان عمود المواد */
.visitor-stats > div:nth-child(2) h4 {
  color: #157347;
  border-color: #157347;
}

/* ✅ روابط المواد: أزرق بدون خط + حجم خط */
.top-content-link {
  color: #0000ff;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

/* ✅ عند الإشارة: أحمر بدون خط */
.top-content-link:hover {
  color: #ff0000;
  text-decoration: none;
}


/* ✅ نموذج البحث في الهيدر */
.main-search-form {
  display: flex;
  align-items: center;
  margin-top: 2px;

  gap: 6px;
  margin-right: auto; /* يدفعه إلى اليسار في RTL */
}

.main-search-form input[type="text"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 0px;
  font-size: 0.9rem;
  min-width: 150px;
  margin-top: 0px;
}

.main-search-form button {
  padding: 6px 12px;
  background-color: #ffffff;
  color: white;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0px;
}

.main-search-form button:hover {
  background-color: #e4e4d7;
}
.main-search-button {
  font-size: 1.6rem;
  margin-left: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, color 0.3s;
}

.main-search-button:hover {
  color: #FFEB3B;
}


/* ✅ استجابة في الشاشات الصغيرة */
@media (max-width: 768px) {
  .main-search-form {
    margin-top: 0px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .main-search-form input[type="text"] {
    flex: 1 1 60%;
    min-width: 140px;
      margin-top: 5px;
  }

  .main-search-form button {
    flex: 1 1 10%;
    margin-top: 5px;
  }
}
/* ✅ نموذج البحث */
.search-form-container {
  margin: 10px auto;
  max-width: 940px;
  padding: 1rem;
  background: #f0f0f0;
  border-radius: 8px;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  background-color: #f5f5f5;
  flex-grow: 1;
  padding: 0.7rem;
  border: 1px solid #000;
  border-radius: 5px;
  font-family: 'Cairo-Regular', sans-serif;
}

.search-button {
  padding: 0.7rem 1rem;
  background-color: #675443;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Cairo-Regular', sans-serif;
}

/* ✅ حاوية نتائج البحث */
.search-wrapper {
  background-color: #ffffff;
  max-width: 1200px;
  margin: 20px;
  padding: 15px;
}

/* ✅ شريط عنوان البحث */
.search-header {
   background-color: #ffffff;
 border-bottom: 3px solid #675443;
  color: #675443;
  text-align: center;
  padding: 10px 10px;
  border-radius: 0px;
  margin-bottom: 15px;
}

.search-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

/* ✅ عنوان كل قسم */
.search-section-title {
  font-size: 1.1rem;
  color: #fff;
  background-color: #675443;
   border-bottom: 3px solid #ffc107;
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* ✅ نتيجة فردية */
.search-result-box {
  background-color: #f0f0f0;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 12px;
  border-bottom: 3px solid #675443;
}

.search-result-box a {
  font-size: 1.0rem;
  font-weight: bold;
  color: #0000ff;
  text-decoration: none;
}

.search-result-box small {
  color: #000;
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

/* ✅ تنسيق الرسائل عند عدم وجود نتائج */
.search-no-result {
  color: red;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.search-warning {
  color: orange;
  text-align: center;
  font-weight: bold;
}
