
/* ==========================================
   Global Reset & Base Styles
   ========================================== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background: url('/images/wood-bg3.jpg') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
}




/* 1) استقرار عام */
html {
  box-sizing: border-box;
  scrollbar-gutter: stable both-edges; /* يمنع اختلاف العرض بسبب شريط التمرير */
}


@media (max-width: 768px) {
  /* حماية من التمايل الأفقي بسبب 100vw أو سكروول */
  html, body { max-width: 100%; overflow-x: hidden; }


  /* 4) منع تكبير النص التلقائي على iOS */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

}








/* ==========================================
   Main Navbar – Global Style (Relative Units)
   ========================================== */
/* ===== Desktop (≥768px) ===== */
@media (min-width: 48em) {

 .main-nav {
  display: flex;
  justify-content: space-between;  /* Pastura يسار / USA يمين */
  align-items: center;             /* محاذاة عمودية وسط */
  padding: 1vh 2vw;
  background-color: rgba(34, 68, 40, 0.85);
  height: 10vh;                    /* شريط مرن */
  box-shadow: 0 .2vh .8vh rgba(64, 105, 66, 0.1);
  position: fixed;
  top: 0;
   left: 0;
  width: 100%;
  z-index: 3000;
  box-sizing: border-box;
}

  .nav-links ul {
    display: flex;
    gap: 2vw;
    list-style: none;
    margin: 0;
    padding: 0;
  }

 .main-nav a {
  flex: 0 1 auto;                     /* يسمح لها بالتقلص */
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #fff;
  padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
  background: #7d807d;
  border-radius: 0.5rem;
  white-space: nowrap;                /* ما يتكسر النص */
  max-width: 45%;                     /* نصف عرض الشريط تقريبًا */
  overflow: hidden;                   /* يخفي النص الزايد */
  text-overflow: ellipsis;            /* يضيف … إذا صار النص طويل */
}


  .main-nav a:hover { color: #ffd5d5; }
}

/* ===== Mobile (≤767px) ===== */
@media (max-width: 47.9em) {
 .main-nav {
  display: flex;
  justify-content: space-between;  /* Pastura يسار / USA يمين */
  align-items: center;             /* محاذاة عمودية وسط */
  padding: 1vh 2vw;
  background-color: rgba(128, 139, 130, 0.8);
  height: 10vh;                    /* شريط مرن */
  box-shadow: 0 .2vh .8vh rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
   left: 0;
  width: 100%;
  z-index: 3000;
  box-sizing: border-box;
}






  .nav-links ul {
    display: flex;
    gap: 4vw; /* فراغ أكبر للموبايل */
    list-style: none;
    margin: 0;
    padding: 0;
  }

 .main-nav a {
  flex: 0 1 auto;                     /* يسمح لها بالتقلص */
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #fff;
  padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
  background: #233f3a;
  border-radius: 0.5rem;
  white-space: nowrap;                /* ما يتكسر النص */
  max-width: 45%;                     /* نصف عرض الشريط تقريبًا */
  overflow: hidden;                   /* يخفي النص الزايد */
  text-overflow: ellipsis;            /* يضيف … إذا صار النص طويل */
}


  .main-nav a:hover { color: #ffd5d5; }
}


.auth-section {
  max-width: 700px; margin-top: 18vh auto; padding: 2rem; background-color: #ebe8e8 !important;
  border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
}