@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

* {
    font-family: 'Cairo', sans-serif;
}
:root {
    --orange: #F99D27;
    --green: #25652C;
    --bg: #F2FBF3;
    --textColor: #25652C;
}

body {
    background: var(--bg);
}

.main-header {
    color: var(--textColor);
    font-weight: 800;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
    font-size:48px;
}
.custom-bg-green {
    background: #3FA84A;
    color: #fff;
}

.custom-bg-orange {
    background: var(--orange);
    color: #fff;
}

.rounded-20 {
    border-radius: 20px;
}


.search-btn {
    background: var(--orange);
    color: #fff;
    border-radius: 24px;
    padding: 0.5rem 2rem;
    border: none;
    font-size: 1.1rem;
}

.search-btn:hover {
background: var(--orange);
}


.search-container {
    width:443px;
    background-color: white;
    border: solid #6D6D6D 0.4px;
}

.rtl {
    direction: rtl;
    text-align: right;
}



.box-border-fix {
    box-sizing: content-box;
}

.outer-border {
    border-radius: 24px;
    border: 10px solid var(--bg);
    padding: 0;
}

.leaf {
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: var(--orange);
    width: 99px;
    height: 99px;
}

/* Floating Shapes Container */
.floating-shapes {
    position: absolute;
    top: -46px;
    left: 0;
    width: 100%;
    height: calc(100% + 96px);
    z-index: 0;
    pointer-events: none;
}



/* Circle Style */
.shape.circle {
    position: absolute;
    border-radius: 50%;
    background-color: #F99D27;
    opacity: 0.5;
    animation: floatAround 5s ease-in-out infinite;
}

.shape.small {
    width: 12px;
    height: 12px;
    background-color: #25652C;
}



/* Animation */
@keyframes floatAround {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    25% {
        transform: translate(10px, -15px) rotate(10deg);
    }

    50% {
        transform: translate(-10px, 10px) rotate(-10deg);
    }

    75% {
        transform: translate(15px, 5px) rotate(5deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}




@media (max-width: 1224px) {
    .flex-lg-nowrap {
        flex-wrap:wrap !important;
    }
    .custom-col-full {
        width: 100% !important;
        max-width: 100% !important;
        text-align:center;

    }
    .responsive-text{
                margin: 5px auto;

    }
    .search-container {
        margin-top: 5px !important;
        margin: 5px auto;
        width: 80%
    }
}


/*About us page style*/


/* ===== HERO ===== */
.about-hero {
    height: 260px;
    background: url('/images/about_us_bg.jpg') center/cover no-repeat;
    position: relative;
    border-radius: 12px;
    margin: 40px 0 40px 0;
}

.about-overlay {
    background: rgba(0,0,0,0.7);
    color: #fff;
    height: 100%;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

    .about-overlay h1 {
        font-family: Cairo;
        font-weight: 700;
        font-style: Bold;
        font-size: 48px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
        margin-bottom: 15px;
    }

    .about-overlay p {
        max-width: 800px;
        margin: auto;
        line-height: 1.8;
    }

/* ===== VISION & GOALS ===== */
.vision-goals {
    display: flex;
    justify-content: space-between;
    gap: 70px;
    padding: 50px 60px;
}

/* عربي: الرؤية يمين، الأهداف يسار */
.vision-goals[dir="rtl"] {
    flex-direction: row-reverse;
}

/* إنجليزي/فرنسي: الرؤية يسار، الأهداف يمين */
.vision-goals[dir="ltr"] {
    flex-direction: row;
}

.vg-box {
    width: 50%;
}

.vision-goals[dir="rtl"] .vg-box {
    direction: rtl;
    text-align: right;
}

.vision-goals[dir="ltr"] .vg-box {
    direction: ltr;
    text-align: left;
}

.vg-box.vision {
    order: 1;
}

.vg-box.goals {
    order: 2;
}



.vg-box .vg-title {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 15px;
}


.vg-box h3 {
    color: rgba(37, 101, 44, 1);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

    .vg-box h3 img {
        margin: 12px;
        width: 54px;
        height: 54px;
    }

.vg-box p {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    text-justify: inter-word;
}

.vision-goals[dir="rtl"] .vg-box p {
    text-align: right;
}

.vision-goals[dir="ltr"] .vg-box p {
    text-align: left;
}

/* ===== TEAMS ===== */
.teams-section {
    padding: 30px 60px 80px;
}

.team-block {
    margin-bottom: 70px;
}

.team-title {
    color: #1F4824;
    font-size: 1.6rem;
    margin-bottom: 30px;
}

/* ===== GRID =====
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
} */

/*=======GROUP CARD=========*/
.group-card {
    background-color: #C6ECC9;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 378px;
}

/* ===== CARD ===== */
.team-card {
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s;
}

    .team-card:hover {
        transform: translateY(-5px);
    }

    /* .team-card .member-img {
        width: 100%;
        height: 312px;
        object-fit: cover;
    } */

/* ===== CARD FOOTER ===== */
.team-card-footer {
    background: #2f8f4e;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 12px 12px;
    margin-bottom: 9px;
}

.footer-title {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

/* .footer-leaf {
    width: 56px !important;
    height: 66px !important;
    border-bottom-right-radius: 12px;
} */

.role {
    font-weight: 400;
    font-size: 14px;
    margin-left: 9px;
    cursor: pointer;
    padding-right: 10px;
}

.footer-title h4 {
    cursor: pointer;
    font-size: 20px;
    margin: 6px 0 0;
}

/* ===== BIO ===== */
.bio-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    color: #fff;
    border-radius: 12px;
}

.bio {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.6s ease, opacity 0.4s ease, transform 0.4s ease;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.9;
    background-position: center;
    background-size: cover;
    text-align: center;
    border-radius: 12px;
}

    /* الحالة المفتوحة */
    .bio.open {
        max-height: 500px; /* رقم كبير يكفي للنص */
        opacity: 1;
        transform: translateY(0);
    }
    /* قلب أيقونات الورقة بالإنجليزي/الفرنسي فقط (LTR) */
html[dir="ltr"] .vision-goals img[src*="about_us_leaf"],
html[dir="ltr"] .teams-section .footer-leaf {
  transform: scaleX(-1);
  transform-origin: center;
}



/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .vision-goals {
        flex-direction: column;
        padding: 30px;
    }

    .vg-box {
        width: 100%;
    }
}

/* ===== About teams: column + slider next to it ===== */
.teams-section, .team-block { width: 100%; }

.team-grid{
  display: flex;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

/* الكولوم (الهيئة الإدارية) */
.group-card{
  flex: 0 0 340px;
  max-width: 380px;
  height: 378px; /* عندك نفس ارتفاعك */
}

/* السلايدر ياخذ باقي المساحة */
.team-swiper{
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 10px 52px 36px; /* مساحة للأسهم + pagination */
  display: flex;
  align-items: center;      /* توسيط عمودي */
}

.team-swiper .swiper-wrapper{ align-items: center; }
.team-swiper .swiper-slide{ height: auto; display:flex; justify-content:center; }

/* الأسهم بالنص عموديًا */
.team-swiper .swiper-button-next,
.team-swiper .swiper-button-prev{
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
}

.team-swiper .swiper-pagination{ bottom: 0px !important; }

/* ===== Make cards more "مناسبات" (مرتبة) داخل السلايدر ===== */
.team-card{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

/* خلي الكرت Compact: صورة/أيقونة ثابتة + نص مرتب */
.team-card .member-img{
  width: 92px;          /* بدل 100% */
  height: 92px;         /* بدل 312px */
  object-fit: cover;
  flex: 0 0 92px;
}

/* الفوتر يصير كرت أفقي مرتب */
.team-card-footer{
  margin-bottom: 0;
  border-radius: 18px;
  padding: 12px 14px;
  gap: 10px;
}

/* ورقة صغيرة بدل العملاقة */
.footer-leaf{
  width: 22px !important;
  height: 22px !important;
  border-radius: 0 !important;
}

/* اسم العضو: سطرين max */
.footer-title h4{
  font-size: 18px;
  margin: 0;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* المسمى: قص ... لو طويل */
.role{
  font-size: 13px;
  margin-left: 0;
  padding-right: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .95;
}

/* موبايل: تحت بعض */
@media (max-width: 900px){
  .team-grid{ flex-direction: column; }
  .group-card{ max-width: 100%; flex: none; }
  .team-swiper{ padding: 10px 0 36px; }
}
/* ✅ ثبّت ارتفاع فوتر الكارد */
.team-card-footer{
  height: 86px;                 /* عدّل الرقم حسب اللي بناسبك */
  padding: 12px 16px !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px;
  overflow: hidden;             /* يمنع أي زيادة */
}

/* ✅ ثبّت مساحة الاسم (سطرين max داخل الفوتر) */
.team-card-footer .member-name{
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* سطرين فقط */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ✅ الرول ثابت كمان */
.team-card-footer .role{
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;          /* ما يلف */
  overflow: hidden;
  text-overflow: ellipsis;
}





