:root {
  direction: rtl;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

body {
  direction: inherit;
  writing-mode: inherit;
  text-orientation: inherit;
}


body, h1, h2, h3, h4, h5, h6, p, span, a, li, button, input, textarea {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-weight: 400 !important;
}

html, body {
  height: 100%;
  margin: 0;
}

.page-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.content-wrap {
  flex: 1;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #dadada;
}


/* إجبار القائمة المنسدلة تطلع من اليمين */
#mobileMenu {
  position: absolute;
  top: 60px;              /* حسب مكان زر المينيو */
  right: 10px;            /* تظهر من اليمين */
  left: auto !important;  /* إلغاء اليسار */
  width: 250px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  direction: rtl;
  text-align: right;
  z-index: 9999;
}


/* ✅ زر القائمة للجوال */
.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #cc3366;
}

/* ✅ عند تفعيل القائمة */
#mobileMenu.show {
    display: flex !important;
}

/* ✅ على الجوال */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }

    /* نترك القائمة مخفية حتى يتم تفعيلها */
    #mobileMenu {
        display: none;
    }

    #mobileMenu.show {
        display: flex !important;
    }

    .responsive-grid,
    .featured-grid,
    .member-grid {
        grid-template-columns: 1fr !important;
    }

    .desktop-menu {
        display: none !important;
    }

    nav a {
        text-decoration: none !important;
        border: none !important;
    }

    .important-page {
        padding: 0 15px;
    }

    .home-wrapper {
        flex-direction: column !important;
    }
}

/* ✅ على الكمبيوتر: نخفي القائمة وزرها */
@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-toggle,
    #mobileMenu {
        display: none !important;
    }
}

/* ✅ خصائص #mobileMenu مباشرة */
#mobileMenu {
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 10px;
}


.desktop-menu a {
    font-size: 15px;
    font-family: Tahoma, sans-serif;
    color: #333;
    font-weight: normal;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 0 0 transparent;
}

.desktop-menu a:hover {
    background-color: #ffffff;
    color: #cc3366 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}


a {
  text-decoration: none;
}
/* خلفية الموقع وخط عام */
body {
    font-family: 'Inter', sans-serif;
    background-color: #fcfcfc;
    margin: 0;
    padding: 0;
}

/* تنسيق العناوين الرئيسية */
h2 {
    text-align: center;
    color: #cc3366;
    margin: 30px 0 15px;
}

/* تنسيق أزرار "راسلني" */
.btn-primary {
    background-color: #333333;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.btn-primary:hover {
    background-color: #254a99;
}


/* الترقيم */
.page-link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.page-link:hover {
    background-color: #f8f8f8;
}

.page-item.active .page-link {
    background-color: #cc3366;
    color: #fff;
    border-color: #cc3366;
}

.page-item.disabled .page-link {
    color: #aaa;
    pointer-events: none;
    background-color: #eee;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-top: 30px;
}
a.raselni-btn {
    background-color: #37474f;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    text-align: center;
    min-width: 80px;
}

a.raselni-btn:hover {
    background-color: #222;
    color: #fff;
}

  .home-sidebar {
    width: 100% !important;
    margin-bottom: 20px;
  }

  .home-content {
    width: 100% !important;
  }

  .grid-users {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
.faq-section {
  margin-top: 20px;
  padding: 10px 5px;
}
.intro-section p:last-of-type {
    margin-bottom: 10px !important;
  }
.faq-title {
  color: #cc3366;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: right;
}

.faq-line {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.faq-question {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}


body {
  overflow-x: hidden;
}

.advanced-search-button {
    font-size: 16px;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #1d4ed8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
  font-weight: bold;
}

.advanced-search-button:hover {
    background-color: #e8f0ff;
    color: #00378a;
}

.desktop-menu a,
#mobileMenu a,
header nav a {
    text-decoration: none !important;
    border: none !important;
}


.cards-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    justify-content: center;
}




.white-page-wrapper {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    max-width: 1100px;
    margin-top: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.featured-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px; /* ✅ هذا اللي يبعد المميز عن العادي */
}

@media (max-width: 768px) {
  .members-grid {
    grid-template-columns: 1fr !important;
  }
}
.pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 20px;
}
ul.pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin-top: 40px !important;
}

ul.pagination li {
    display: inline-block !important;
}

ul.pagination .page-link {
    display: inline-block !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
}

ul.pagination .page-link:hover {
    background-color: #f3f3f3 !important;
}

ul.pagination .page-item.active .page-link {
    background-color: #cc3366 !important;
    color: #fff !important;
    border-color: #cc3366 !important;
}

ul.pagination .page-item.disabled .page-link {
    background-color: #eee !important;
    color: #aaa !important;
    pointer-events: none !important;
}
header nav a,
.desktop-menu a {
    margin: 0 6px; /* مسافة بسيطة يمين ويسار */
    display: inline-block;
}
.rasel-btn-fix {
  color: #cc3366;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  font-weight: bold;
}

.rasel-btn-fix:hover {
  color: #991f4d; /* أغمق شوي من الأساسي */
  transform: scale(1.05); /* تكبير بسيط */
}

.photo-box:hover .delete-btn {
    display: block !important;
}

.photo-box img {
    transition: transform 0.2s ease;
}

.photo-box:hover img {
    transform: scale(1.02); /* تأثير بسيط فقط */
}
.photo-box img {
    image-rendering: auto;
    display: block;
}
.flash-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    direction: rtl;
    text-align: right;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.flash-success {
    background-color: #e0f8e9;
    color: #256029;
    border: 1px solid #b2e2c5;
}

.flash-error {
    background-color: #fdecea;
    color: #611a15;
    border: 1px solid #f5c2c0;
}

.logout-form {
    display: inline; /* يخلي الفورم في نفس السطر */
    margin: 0;
    padding: 0;
}
.form-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.form-section {
    flex: 1;
    min-width: 300px;
}

.form-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-section input,
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.nav-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600; /* بدل bold */
}

.nav-link {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease; /* بدل all */
}

.nav-link:hover {
  background-color: #f0f9ff;
  color: #d96b92;
}

.nav-link.active {
  background-color: #f0f9ff;
  color: #000000;
}

.logout-button {
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold; /* ✅ قوة الخط */
    transition: color 0.2s ease;
}


.logout-button:hover {
    color: #a80043;
}

.member-card {
    background-color: #fff;
    border: none;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
}

/* ✅ صورة العضو */
.member-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 14px;
}

/* ✅ اسم العضو */
.member-card h3 {
    font-size: 15px;
    color: #111;
    margin: 0 0 6px 0;
    font-weight: 600;
}

/* ✅ العمر والدولة */
.member-card p {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px 0;
}

/* ✅ زر راسلني */
.member-card a {
    font-size: 13px;
    color: #cc3366;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}
@media (min-width: 1024px) {
    .responsive-layout {
        flex-direction: row !important;
        align-items: flex-start;
    }
}
/* ✅ تنسيق البلقن مع البنات - خاص بصفحة العضوات */

@media (min-width: 768px) {
  .responsive-wrapper {
    flex-wrap: nowrap !important;
  }

  .latest-member-wrapper {
    max-width: 260px !important;
    flex: 0 0 260px !important;
    flex-shrink: 0;
    align-self: flex-start;
    display: block;
  }

  .latest-member-wrapper * {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .member-grid-wrapper {
    flex: 1 !important;
  }
}

@media (max-width: 767px) {
  .responsive-wrapper {
    flex-direction: column !important;
  }

  .latest-member-wrapper,
  .member-grid-wrapper {
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
}

.intro-section h3 {
  font-size: 20px;
  color: #cc3366;
  margin-bottom: 15px;
}

.intro-section h4 {
  margin-top: 15px;
  color: #cc3366;
}
.intro-section {
  min-height: 500px; /* على الأقل */
  padding: 5px 10px;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter.woff2') format('woff2');
  font-display: swap;
}
.main-section {
  min-height: auto;              /* ما نثبت الطول */
  padding: 30px 15px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


.lcp-paragraph {
  min-height: 120px;
  font-size: 16px;
  line-height: 1.7;
}

