:root {
    --main-color: #005A9C;
    --blue-color: #007BFF;
    --white-color: #ffffff;
    --black-color: #2E2E2E;
    --gray-Color: #B0B3B8;
    --footer-color: #E6F8FF;
}

:root{
    --green:#7ac10a;
    --text:#111;
    --shadow:0 18px 40px rgba(0,0,0,.18);
  }
  
  *{ box-sizing:border-box; }
  html, body{ margin:0; padding:0; overflow-x:hidden; }
  img{ max-width:100%; display:block; }
  body.no-scroll{ overflow:hidden; }
  
  /* container */
  .agro-container{ max-width:1200px; margin:0 auto; padding:0 18px; }
  
  /* ===== HEADER ===== */
  .agro-header{
    background:#fff;
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    z-index:1000;
  }
  
  .agro-header__inner{
    max-width:1200px;
    margin:0 auto;
    padding:10px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
  }
  
  .agro-logo{ display:flex; align-items:center; }
  .agro-logo img{ height:100px; width:auto; }
  
  .agro-header__right{
    display:flex;
    align-items:center;
    gap:12px;
  }
  
  /* desktop nav */
  .agro-nav--desktop{ display:flex; justify-content:center; }
  .agro-nav__list{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    gap:22px;
    align-items:center;
  }
  .agro-nav__link{
    text-decoration:none;
    color:var(--text);
    font-weight:600;
    letter-spacing:1px;
    font-size:14px;
    white-space:nowrap;
  }
  .agro-nav__link:hover{ opacity:.75; }
  
  /* icons */
  .agro-icon, .agro-search{
    border:0;
    background:transparent;
    cursor:pointer;
    text-decoration:none;
    font-size:16px;
    color:var(--green);
  }
  .agro-search{ padding:0; }
  
  /* hamburger */
  .agro-burger{
    display:none;              /* يظهر فقط بالموبايل */
    width:44px;
    height:44px;
    border:1px solid #eee;
    background:#fff;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    border-radius:2px;
  }
  .agro-burger span{
    display:block;
    width:20px;
    height:2px;
    background:#111;
    margin:3px 0;
  }
  
  /* backdrop */
  .agro-backdrop{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:1090;
  }
  
  /* mobile drawer */
  .agro-drawer{
    position:fixed;
    top:0;
    right:-320px;              /* مخفي */
    width:300px;
    height:100dvh;
    background:#fff;
    z-index:1100;
    padding:80px 18px 18px;
    box-shadow:-20px 0 50px rgba(0,0,0,.12);
    transition:right .25s ease;
    overflow:auto;
  }
  
  .agro-header.is-open .agro-drawer{ right:0; }
  .agro-header.is-open .agro-backdrop{ display:block; }
  
  /* drawer list style */
  .agro-drawer .agro-nav__list{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }
  .agro-drawer .agro-nav__link{
    display:block;
    width:100%;
    padding:12px 10px;
    border-radius:6px;
    letter-spacing:.5px;
  }
  .agro-drawer .agro-nav__link:hover{
    background:#f4f4f4;
    opacity:1;
  }
  
  /* ===== Desktop ABOUT dropdown ===== */
.agro-dropdown{ position:relative; }

.agro-dropdown__menu{
  position:absolute;
  top: calc(100% + 14px);
  left: -18px;
  width: 260px;
  background:#fff;
  padding: 18px 0;
  margin:0;
  list-style:none;

  border:1px solid #f0f0f0;
  border-bottom: 4px solid #000;      /* زي الصورة */
  box-shadow: 0 14px 35px rgba(0,0,0,.14);

  opacity:0;
  visibility:hidden;
  transform: translateY(-6px);
  transition: .18s ease;
  z-index: 1000;
}

.agro-dropdown__menu li a{
  display:block;
  padding: 12px 26px;
  color:#111;
  text-decoration:none;
  font-size:16px;
  font-weight:700;
}

.agro-dropdown__menu li a:hover{
  background:#fafafa;
}

/* hover open */
.agro-dropdown:hover .agro-dropdown__menu{
  opacity:1;
  visibility:visible;
  transform: translateY(0);
}

/* ===== Mobile drawer dropdown (accordion) ===== */
.agro-drawerDrop__toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  background:transparent;
  border:0;
  padding: 12px 0;
  cursor:pointer;

  font-size:14px;
  font-weight:600;
  letter-spacing:1px;
  color:#111;
  text-align:left;
}

.agro-drawerDrop__chev{
  font-size:12px;
  transition: .2s ease;
}

.agro-drawerDrop__menu{
  list-style:none;
  margin:0;
  padding: 0 0 0 14px;

  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
}

.agro-drawerDrop__menu a{
  display:block;
  padding: 10px 0;
  font-size:14px;
  color:#111;
  text-decoration:none;
}

.agro-drawerDrop.is-open .agro-drawerDrop__menu{
  max-height: 500px; /* يكفي */
}

.agro-drawerDrop.is-open .agro-drawerDrop__chev{
  transform: rotate(180deg);
}

/* مهم: خلي الديسكتوب nav يختفي بالموبايل */
@media (max-width: 992px){
  .agro-nav--desktop{ display:none !important; }
}

/* ===== Work Packages Accordion (WP1..WP5) ===== */
.agro-wps{
    padding: 30px 0 60px;
    background: #fff;
  }
  
  .agro-wps__accordion{
    max-width: 980px;         /* نفس تمركز الصورة */
    margin: 0 auto;
  }
  
  .agro-wps__item{
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 18px;
  }
  
  .agro-wps__summary{
    background: #efefef;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
  }
  
  .agro-wps__item summary::-webkit-details-marker{ display:none; }
  
  /* علامة + / - */
  .agro-wps__summary::before{
    content: "+";
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    width: 18px;
    display: inline-block;
    color: #333;
  }
  
  .agro-wps__item[open] .agro-wps__summary::before{
    content: "–";
  }
  
  .agro-wps__body{
    padding: 22px 24px 26px;
    border-top: 1px solid #e6e6e6;
  }
  
  .agro-wps__meta{
    margin-bottom: 14px;
  }
  
  .agro-wps__metaRow{
    margin: 14px 0;
    color: #333;
    font-size: 18px;
  }
  
  .agro-wps__metaRow--block{
    margin-top: 22px;
  }
  
  .agro-wps__label{
    font-weight: 700;
    color: #333;
  }
  
  .agro-wps__text{
    margin: 0 0 18px;
    color: #444;
    font-size: 17px;
    line-height: 1.9;
    max-width: 100%;
  }
  
  .agro-wps__list{
    margin: 10px 0 0;
    padding-left: 20px;
  }
  
  .agro-wps__list li{
    margin: 10px 0;
    color: #444;
    font-size: 17px;
    line-height: 1.6;
  }
  
  @media (max-width: 768px){
    .agro-wps{ padding: 22px 0 44px; }
    .agro-wps__summary{ font-size: 18px; padding: 14px 14px; }
    .agro-wps__body{ padding: 16px 14px 18px; }
    .agro-wps__metaRow{ font-size: 16px; margin: 10px 0; }
    .agro-wps__text, .agro-wps__list li{ font-size: 15px; }
  }
  
  /* ===== HERO ===== */
  .agro-hero{
    position:relative;
    width:100%;
    min-height:clamp(240px, 45vh, 420px);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .agro-hero__overlay{ position:absolute; inset:0; background:rgba(0,0,0,.25); }
  .agro-hero__content{ position:relative; z-index:2; padding:20px; text-align:center; }
  .agro-hero__title{
    margin:0;
    color:#fff;
    font-weight:700;
    font-size:clamp(34px, 6vw, 70px);
    text-shadow:0 10px 30px rgba(0,0,0,.35);
  }
  
  /* ===== Objective ===== */
  .agro-objective{ background:#f5f5f5; padding:70px 0; }
  .agro-objective__card{
    background:#fff;
    box-shadow:var(--shadow);
    display:grid;
    grid-template-columns:1fr 1fr;
    min-height:520px;
  }
  .agro-objective__content{ padding:70px 60px; }
  .agro-objective__title{
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight:300;
    font-size:64px;
    line-height:1.05;
    color:#111;
  }
  .agro-objective__title span{ font-weight:700; }
  .agro-objective__line{ width:78%; height:2px; background:var(--green); margin:22px 0 40px; }
  .agro-objective__text{
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
    font-size:18px;
    line-height:1.9;
    color:#6d6d6d;
  }
  .agro-btn{
    margin-top:55px;
    display:inline-flex;
    align-items:center;
    gap:14px;
    background:#3b3b3b;
    color:#fff;
    text-decoration:none;
    padding:14px 26px;
    font-size:14px;
    font-weight:700;
    letter-spacing:.8px;
    font-family: Arial, Helvetica, sans-serif;
  }
  .agro-btn span{ font-size:20px; line-height:1; }
  
  .agro-objective__mediaWrap{ padding:30px; }
  .agro-objective__media{
    width:100%;
    height:100%;
    min-height:460px;
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 992px){
    .agro-nav--desktop{ display:none; }
    .agro-burger{ display:inline-flex; }
    .agro-logo img{ height:50px; }
  
    .agro-objective{ padding:40px 0; }
    .agro-objective__card{ grid-template-columns:1fr; min-height:0; }
    .agro-objective__content{ padding:34px 22px; }
    .agro-objective__title{ font-size:42px; }
    .agro-objective__line{ width:70%; margin:14px 0 20px; }
    .agro-objective__text{ font-size:15px; line-height:26px; }
    .agro-btn{ margin-top:22px; }
    .agro-objective__mediaWrap{ padding:18px; }
    .agro-objective__media{ min-height:240px; }
  }
  
  @media (max-width: 480px){
    .agro-objective__title{ font-size:34px; }
    .agro-logo img{ height:46px; }
  }

  /* نفس ستايل الصورة الثانية */
.agro-footer2{
    position: relative;
    background: linear-gradient(90deg,#1f1f1f 0%, #2a2a2a 50%, #1f1f1f 100%);
    padding: 26px 0 24px;
    color:#fff;
    overflow:hidden;
  }
  
  /* عرض قريب من القالب بالصورة */
  .agro-footer2__container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: flex-start;
    gap: 90px;
  }
  
  /* توزيع الأعمدة مثل الصورة */
  .agro-footer2__col--about{ flex: 0 0 280px; }
  .agro-footer2__col--disc{  flex: 0 0 520px; }
  .agro-footer2__col--contact{ flex: 1; min-width: 320px; }
  
  /* العناوين (مش كبيرة مثل الصورة الأولى) */
  .agro-footer2__title{
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: .5px;
  }
  
  /* الخط الأخضر تحت العنوان */
  .agro-footer2__underline{
    width: 160px;
    height: 3px;
    background: #7ac10a;
    margin: 14px 0 18px;
  }
  
  /* النص */
  .agro-footer2__text{
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 26px;
    color: #f2f2f2;
  }
  
  /* نص الديسكليمر رمادي شوي */
  .agro-footer2__text--muted{
    color:#d8d8d8;
  }
  
  /* Labels بالـ Contact */
  .agro-footer2__label{
    font-weight: 700;
    color:#ffffff;
  }
  
  /* صندوق صورة EU */
  .agro-footer2__eu-box{
    display: inline-flex;
    background:#ffffff;
    padding: 12px 16px;
    margin: 4px 0 12px;
  }
  .agro-footer2__eu-box img{
    height: 58px;
    width: auto;
    display:block;
  }
  
  /* Copyright */
  .agro-footer2__copy{
    margin-top: 18px;
    font-size: 14px;
    line-height: 24px;
    color:#8e8e8e;
    max-width: 520px;
  }
  
  /* زر ↑ مثل الصورة (داخل الفوتر يمين تحت) */
  .agro-footer2__top{
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    background:#7ac10a;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    font-size: 22px;
  }
  .agro-footer2__top:hover{ opacity:.9; }
  
  /* Responsive سريع */
  @media (max-width: 992px){
    .agro-footer2__container{ flex-direction: column; gap: 28px; }
    .agro-footer2__col--about,
    .agro-footer2__col--disc{ flex: 1; }
  }
  



  /* ===== ANNOUNCEMENTS (MATCH IMAGE #2) ===== */
.agro-announce2{
    background:#fff;
    padding: 90px 0 130px;
  }
  
  .agro-announce2__title{
    margin:0;
    text-align:center;
    font-size: 72px;
    font-weight: 500;
    letter-spacing: 3px;
    color:#111;
  }
  
  .agro-announce2__line{
    width: 260px;
    height: 3px;
    background: var(--green, #7ac10a);
    margin: 18px auto 0;
  }
  
  /* المسافة الكبيرة بين العنوان والاقتباس مثل الصورة */
  .agro-announce2__box{
    max-width: 520px;
    margin: 140px auto 0;
    text-align:center;
  }
  
  .agro-announce2__quote{
    font-size: 64px;
    line-height: 1;
    color: var(--green, #7ac10a);
    font-weight: 700;
    margin-bottom: 14px;
  }
  
  /* نفس شكل النص بالصورة: رمادي + عرض صغير + justified */
  .agro-announce2__text{
    margin: 0;
    color:#7a7a7a;
    font-size: 14px;
    line-height: 28px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: center;
  }
  
  .agro-announce2__logo{
    margin-top: 55px;
    display:flex;
    justify-content:center;
  }
  .agro-announce2__logo img{
    height: 64px;  /* صغير مثل الصورة */
    width: auto;
  }
  
  /* Responsive */
  @media (max-width: 992px){
    .agro-announce2{ padding: 70px 0 100px; }
    .agro-announce2__title{ font-size: 48px; }
    .agro-announce2__line{ width: 200px; }
    .agro-announce2__box{ margin-top: 90px; padding: 0 14px; }
  }
  
  @media (max-width: 480px){
    .agro-announce2__title{ font-size: 36px; }
    .agro-announce2__line{ width: 160px; }
    .agro-announce2__box{ margin-top: 70px; }
    .agro-announce2__logo img{ height: 56px; }
  }

  /* ===== Activities Section ===== */
.agro-activities{
    background:#fff;
    padding:80px 0 90px;
  }
  
  .agro-activities__title{
    margin:0;
    text-align:center;
    font-size:56px;
    font-weight:500;
    color:#555;
  }
  
  .agro-activities__line{
    width:70px;
    height:3px;
    background:var(--green, #7ac10a);
    margin:14px auto 0;
  }
  
  .agro-activities__grid{
    margin-top:55px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:start;
  }
  
  .agro-activities__imgLink{
    display:block;
  }
  
  .agro-activities__card img{
    width:100%;
    height:420px;              /* مثل الصورة */
    object-fit:cover;
    display:block;
  }
  
  .agro-activities__cardTitle{
    margin:20px 0 10px;
    font-size:18px;
    font-weight:500;
    color:#333;
    line-height:1.35;
    text-align:center;
  }
  
  .agro-activities__cardText{
    margin:0;
    font-size:12px;
    color:#8a8a8a;
    line-height:20px;
    text-align:center;
    max-width:520px;
    margin-left:auto;
    margin-right:auto;
  }
  
  .agro-activities__cta{
    margin-top:50px;
    display:flex;
    justify-content:center;
  }
  
  .agro-activities__btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 28px;
    border:1px solid #cfcfcf;
    color:#333;
    text-decoration:none;
    font-size:12px;
    letter-spacing:.8px;
    background:#fff;
  }
  
  .agro-activities__btn:hover{
    background:#f7f7f7;
  }
  
  /* Responsive */
  @media (max-width: 992px){
    .agro-activities__title{ font-size:42px; }
    .agro-activities__grid{ grid-template-columns:1fr; gap:28px; }
    .agro-activities__card img{ height:320px; }
  }
  
  @media (max-width: 480px){
    .agro-activities{ padding:60px 0 70px; }
    .agro-activities__title{ font-size:34px; }
    .agro-activities__card img{ height:240px; }
    .agro-activities__cardTitle{ font-size:16px; }
  }
  
  /* shared container (اذا موجود عندك اتركه) */
.agro-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

/* ===== Post Sections (1 + 2) ===== */
.agro-post{
  background:#fff;
  padding:70px 0 90px;
  text-align:center;
}

.agro-post--tightTop{
  padding-top:30px; /* عشان السشن الثاني يكون قريب شوي مثل الصورة */
}

.agro-post__icon{
  font-size:18px;
  color:#8c8c8c;
  margin-bottom:14px;
}

.agro-post__title{
  margin:0 auto 26px;
  max-width:980px;
  font-size:22px;
  font-weight:500;
  line-height:1.45;
  color:#111;
}

.agro-post__media{
  width:100%;
  max-width:760px;
  margin:0 auto;
}

.agro-post__img{
  width:100%;
  height:auto;
  display:block;
}

.agro-post__excerpt{
  margin:14px auto 0;
  max-width:760px;
  font-size:11px;
  line-height:1.8;
  color:#9a9a9a;
}

.agro-post__more{
  margin-top:18px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#111;
  font-size:11px;
}

.agro-post__more span{
  font-size:16px;
  line-height:1;
}

/* ===== Dissemination (Section 3) ===== */
.agro-dissemination{
  background:#fff;
  padding:60px 0 110px;
  text-align:center;
}

.agro-dissemination__line{
  width:100%;
  max-width:980px;
  height:1px;
  margin:0 auto 18px;
  background:#e9e9e9;
}

.agro-dissemination__title{
  margin:0 0 24px;
  color:#7ac10a;
  font-size:20px;
  font-weight:500;
}

.agro-dissemination__logoWrap{
  margin:20px 0 24px;
}

.agro-dissemination__logo{
  width:min(420px, 72vw);
  height:auto;
  display:block;
  margin:0 auto;
}

.agro-dissemination__text{
  margin:0 auto;
  max-width:760px;
  font-size:11px;
  line-height:1.8;
  color:#9a9a9a;
}

/* ===== Responsive ===== */
@media (max-width: 768px){
  .agro-post{ padding:48px 0 65px; }
  .agro-post__title{ font-size:18px; margin-bottom:18px; }
  .agro-post__media, .agro-post__excerpt, .agro-dissemination__text{ max-width:100%; }
}

  
/* 
================================
            Admin
================================

*/

/* ✅ الهيدر */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.header .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .hamburger {
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
}

.header .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* ✅ السايدبار */
#sidebar {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 240px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar .logo {
    text-align: center;
}

.sidebar .logo img {
    max-width: 100px;
    display: block;
    margin: 0 auto 10px;
}

.sidebar nav a {
    display: block;
    padding: 10px;
    color: #005A9C;
    text-decoration: none;
    border-radius: 5px;
}

.sidebar nav a:hover {
    background: #f1f1f1;
}

/* ✅ المحتوى */
.main-content {
    margin-top: 70px;
    margin-left: 240px;
    padding: 30px;
    transition: margin-left 0.3s ease;
}

/* ✅ عند إغلاق السايدبار */
body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* ✅ موبايل */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed .sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }
}