

@font-face {
  font-family: 'Qahwa Arabic';
  src: url('fonts/Qahwa-Arabic.otf') format('opentype');
}

@font-face {
  font-family: 'STC Regular';
  src: url('fonts/STC-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'IBMPlexArabic';
  src: url('fonts/IBMPlexArabic.ttf') format('truetype');
}




:root {

  --green: #38726c;
  --orange: #fca311;
  --teal: #4ecdc4;
  --red: #e94f37;
  --navy: #001f3f;
  --bej:#f6efe4;
  --brik:#b96414;
  --blue:#0a719e;
  --blue-gray:#66859f;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  margin: 0;
  display:flex;
  flex-direction:column;
  background-image: url("images/help.jpeg");
  background-size:cover;  
  background-repeat: no-repeat;
  background-position: top ; 
  background-attachment: scroll; 
    font-family: 'IBMPlexArabic';
}

h1, h2, h3 {
  font-family: 'Qahwa Arabic', serif;
}

.navbar {
  background: var(--green);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px;
  z-index: 10;
  display: flex;
  justify-content: center;   /*  logo in the middle */
  align-items: flex-end;     /* lahata ykun llogo bi nus lnav wl extension */
  position:absolute;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navbar li {
  cursor: pointer;
}


.nav-extension {
  position: absolute;
  top: -26px;                 /*    la telze2 bl navbar wtbyn ut3a wehde */
  left: 50%;
  transform: translateX(-50%);/* lahata ykun llogo bi nus lnav wl extension */
  width: 11%;              
  max-width: 1000px;
  height: 95px;
  background: var(--green);
  border-radius: 0 0 14px 14px;
  z-index: 9; /* behaded men ykun fo2 tene */
  display: flex; /* byaamlu mtl container wbe khalene ethakam bl anaaser el mwjude aalayha ka position w tertib */
  justify-content: center;
  align-items: flex-start;   
}

.logo {
  font-size: 45px;
  color: white;
  margin: 0;
  font-family: 'Qahwa Arabic', serif;
  position: relative;
  top: 25px;
  z-index: 10;
}

/* يسار: البروفايل + طلباتي الحالية */
.nav-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}
/* البروفايل (دائرة قابلة للنقر + قائمة منسدلة مثل باقي الصفحات) */
.profile { position: relative; z-index: 1000; }
.circle-icon {
  width: 35px;
  height: 35px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.circle-icon:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.4); transform: scale(1.05); }
.circle-icon svg { width: 22px; height: 22px; fill: var(--green); }

.profile-dropdown {
  position: absolute; top: 46px; left: 0; min-width: 230px;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  padding: 16px; text-align: right; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 1001;
}
.profile-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown::before {
  content: ""; position: absolute; top: -7px; left: 12px; width: 14px; height: 14px;
  background: #fff; transform: rotate(45deg); box-shadow: -2px -2px 4px rgba(0,0,0,.06);
}
.profile-info { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 12px; }
.profile-name { font-family: 'Qahwa Arabic', serif; font-weight: bold; font-size: 19px; color: var(--green); }
.profile-row { font-size: 13px; color: #001f3f; margin-top: 6px; word-break: break-all; }
.profile-label { font-family: 'Qahwa Arabic', serif; color: var(--green); font-weight: bold; }
.profile-link {
  display: block; text-align: center; padding: 9px 10px; background: var(--green);
  color: #fff; border-radius: 8px; text-decoration: none; font-family: 'Qahwa Arabic', serif;
  font-weight: bold; font-size: 16px; transition: opacity .25s ease;
}
.profile-link:hover { opacity: .88; }
.profile-link + .profile-link { margin-top: 8px; }
.profile-edit { background: #fff; color: var(--green); border: 2px solid var(--green); }
.profile-edit:hover { background: var(--green); color: #fff; opacity: 1; }
.my-requests {
  color: #fff;
  text-decoration: none;
  font-family: 'Qahwa Arabic', serif;
  font-size: 18px;
}
.my-requests:hover { opacity: 0.85; }

/* يمين: القائمة + الهامبرغر */
.nav-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.menu-label {
  color: #fff;
  font-family: 'Qahwa Arabic', serif;
  font-size: 20px;
}
.menu-icon { /*parameter lal 3 ma3 ba3d*/
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-icon span { /* kl khat mn l3*/
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}
.menu {
  position: fixed;   
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: var(--green);
  padding: 20px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 9999;
}

.menu.open {
  transform: translateX(0);
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 20px 0;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-family: 'IBMPlexArabic';
}

.menu a:hover {
  text-decoration:none;
  color: var(--brik);
}
.close-btn {
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  text-align: right;
  margin-bottom: 20px;
}
.close-btn:hover {
  color:var(--brik);}


.container{
  padding-top:180px;
   display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  
}

.subtitle{ position: relative;
  top: -90px;
  color:var(--green);
  font-size:40px;
}

/* cards */
.cards{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:0;
  flex-wrap:nowrap;     /* الأيقونات الأربعة دائماً بصف واحد */
  margin-top:-70px;     /* رفع القسم تحت العنوان للأعلى */
  width:100%;
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
}
.card-wrapper{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  border-left:1px solid rgba(56,114,108,0.35);
  padding:10px 24px;
}
/* لا خط فاصل على الطرف الأيسر (آخر عمود) */
.card-wrapper:last-child{ border-left:none; }
.card{
  width:160px;
  height:160px;
  background:#eef3f1;
  border:1.5px solid rgba(56,114,108,0.45);
  border-radius:16px;
  display:flex;

  justify-content:center;
  align-items:center;
  cursor:pointer;
  transition:0.3s;
  gap: 10px;
}

.title{
  font-family: 'IBMPlexArabic', sans-serif;
   margin-top:8px;
  font-size:28px;
  font-weight:bold;
  color:var(--green);
  margin-bottom:4px;
}

.card:hover{
  transform:translateY(-5px);
}

.card img{
  width:90px;
  margin-bottom:10px;
}


.card p{
  color:var(--green);
  font-weight:bold;
}

.details{
  margin-top:8px;
  color:var(--green);
  font-size:15px;
  text-align:right;
  font-weight: bold;
  padding:0;
  font-family: 'IBMPlexArabic', sans-serif;
}

.details p{
  margin-bottom:4px;
}

/* ===== تجاوب الموبايل ===== */
/* النافبار على الهاتف: نفس أسلوب صفحتي السكن والرئيسية
   (شريط ممتلئ، إخفاء اللسان، الشعار بالوسط، البروفايل يسار، الهامبرغر يمين) */
@media (max-width: 768px){
  .navbar{ height: 52px; align-items: center; }
  .nav-extension{ display: none; }
  .logo{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
  }
  /* الحاويتان static + إلغاء الـtransform حتى لا تصبحا مرجعاً للبروفايل،
     فيتموضع البروفايل نسبةً للنافبار (أقصى الشمال) لا نسبةً للحاوية المتمركزة */
  .nav-left, .nav-right{ position: static; transform: none; }
  .my-requests{ display: none; }   /* منقولة إلى القائمة المنزلقة */
  .menu-label{ display: none; }    /* نكتفي بأيقونة الهامبرغر مثل السكن */
  .profile{
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-right{
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* المحتوى */
  .container{ padding-top: 90px; }
  .subtitle{ top: -20px; font-size: 28px; }

  /* البطاقات: عمود واحد، وحدة تحت وحدة (مثل صفحة التبرعات) */
  .cards{
    flex-direction: column;
    flex-wrap: nowrap;
    margin-top: 0;
    gap: 0;
  }
  .card-wrapper{
    flex: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-left: none;
    border-bottom: 1px solid rgba(56,114,108,0.25);
    padding: 22px 12px;
  }
  .card-wrapper:last-child{ border-bottom: none; }
  .card{ width: 120px; height: 120px; padding: 12px; }
  /* الأيقونة لا تكبر أكثر من البطاقة */
  .card img{ width: auto; height: auto; max-width: 70px; max-height: 70px; object-fit: contain; margin-bottom: 0; }
  /* العنوان أكبر بوضوح من التفاصيل */
  .title{ font-size: 25px; margin-top: 10px; margin-bottom: 2px; }
  .details{ font-size: 13px; margin-top: 2px; }
  .details p{ margin: 0 0 3px; }   /* إزالة الهامش العلوي الافتراضي لأول سطر */
}

@media (max-width: 400px){
  .logo{ font-size: 26px; }
  .card{ width: 110px; height: 110px; }
  .card img{ max-width: 62px; max-height: 62px; }
  .title{ font-size: 22px; }
  .details{ font-size: 12.5px; }
}

html,body{ max-width:100%; overflow-x:hidden; }
