:root {
    --primary: #5c3d4a;
    --primary-dark: #522B3A;
    --secondary: #E8E6DF;
    --beige: #d4c9b8;
    --white: #ffffff;
    --text-muted: #6f6f6f;
    --text-on-primary: #E8E5DF;
    --text-on-primary-alt: #D6D6D6;
    --indicator-active: #D49D3A;
    --indicator-inactive: #968F83;
    --indicator-hover: #a99f92;
    --shadow-sm: 0 4px 24px rgba(89, 74, 63, 0.12);
    --companies-bg: #887755;
    --companies-logo-border: #0000000A;
    --banner-bg: #D3CEBB;
    --yallow: #BA622A;
    --radius-main: 40px;
    --radius-cutout: 30px;
    --cutout-size: 60px;
    --light-brown: #D5D0C3;
    --radius-lg: 50px; 
    --gold: #71733A;
  }
  body{
    background-color: var(--secondary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .main {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--secondary);
    min-height: 60vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  /* ========== Hero section ========== */
  .hero-wrapper {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .hero-section {
    background-color: var(--primary-dark);
    width: 100%;
    max-width: 1430px;
    min-height: 520px;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
    padding: 2.5rem 1.5rem 8.75rem;
  }
  
  .circular-text-box {
    position: absolute;
    right: 0;
    top: 10%;
    width: 280px;
    height: 280px;
    z-index: 2;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    animation: hero-rotate-text 25s linear infinite;
  }
  .circular-text-box svg { width: 100%; height: 100%; }
  .circular-text-box text {
    fill: white;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
  }
  @keyframes hero-rotate-text {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.1;
  }
  .hero-desc { max-width: 32rem; }
  
  /* Hero image */
  .hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 70%;
    max-height: 420px;
    z-index: 5;
    overflow: hidden;
    border-top-left-radius: 120px;
    border-bottom-right-radius: var(--radius-lg);
  }
  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .stats-wrapper {
    position: absolute;
    bottom: 0;
    left: -2px;
    width: 100%;
    background-color: var(--secondary);
    height: 100px;
    border-top-right-radius: var(--radius-lg);
    justify-content: center;
    padding: 0 1rem;
    z-index: 15;
  }
  .stats-wrapper::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 1px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-bottom-left-radius: 50px;
    box-shadow: 0 25px 0 0 var(--secondary);
    z-index: 6;
  }
  .stats-bar {
    background-color: var(--banner-bg);
    width: 100%;
    max-width: 600px;
    height: 70px;
    padding: 0 0.5rem;
    z-index: 10;
  }
  .stat-item { min-width: 0; }
  .stat-number {
    color: var(--gold);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1;
  }
  .stat-label {
    color: #666;
    font-weight: 500;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

  html[dir="rtl"] .stats-bar {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  html[dir="rtl"] .hero-section {
    border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
  }

  html[dir="rtl"] .circular-text-box {
    right: auto;
    left: 0;
    z-index: 1; 
    direction: ltr;
  }

  html[dir="rtl"] .hero-image {
    right: auto;
    left: -6px;
    border-top-left-radius: 0;
    border-top-right-radius: 120px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: var(--radius-lg);
  }

  html[dir="rtl"] .stats-wrapper {
    left: auto;
    right: -2px;
    border-top-right-radius: 0;
    border-top-left-radius: var(--radius-lg);
  }

  html[dir="rtl"] .stats-wrapper::before {
    left: auto;
    right: 1px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 50px;
  }
  
  .btn-gold { background-color: var(--companies-bg); border-color: var(--companies-bg); }
  .btn-gold:hover { background-color: #7a6b4a; border-color: #7a6b4a; color: #fff; }
  .btn-icon { flex-shrink: 0; object-fit: contain; }
  
  @media (min-width: 768px) {
    .hero-wrapper { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero-section { min-height: 580px; padding: 4rem 2.5rem 9.5rem; }
    .circular-text-box { width: 340px; height: 340px; }
    .circular-text-box text { font-size: 12px; letter-spacing: 3px; }
    .hero-content { max-width: 480px; }
    .hero-image { width: 48%; height: 75%; max-height: 450px; border-top-left-radius: 160px; }
    .stats-wrapper { width: 75%; height: 110px; padding-left: 2.5rem; justify-content: flex-start; }
    .stats-wrapper::before { top: -60px; width: 60px; height: 60px; box-shadow: 0 30px 0 0 var(--secondary); }
    .stats-bar { width: 92%; max-width: none; height: 80px; }
  }
  
  /* Hero: Desktop (992px+) */
  @media (min-width: 992px) {
    .hero-wrapper { padding-left: 1.5rem; padding-right: 1.5rem; }
    .hero-section { min-height: 650px; padding: 5rem 4.5rem 11rem; }
    .circular-text-box { width: 420px; height: 420px; top: 8%; }
    .circular-text-box text { font-size: 14px; letter-spacing: 4px; }
    .hero-content { max-width: 550px; }
    .hero-image { width: 45%; height: 80%; max-height: none; border-top-left-radius: 200px; }
    .stats-wrapper { width: 60%; height: 130px; padding-left: 2.5rem; }
    .stats-wrapper::before {
       top: -80px;
        /* left: -1px;  */
       width: 80px; height: 80px; box-shadow: 0 40px 0 0 var(--secondary);
       }
    .stats-bar { width: 100%; height: 85px; }
    .stat-label { font-size: 0.7rem; }
  }

  /* RTL tweaks for larger breakpoints */
  @media (min-width: 768px) {
    html[dir="rtl"] .hero-image {
      border-top-left-radius: 0;
      border-top-right-radius: 160px;
    }

    html[dir="rtl"] .stats-wrapper {
      padding-left: 0;
      padding-right: 2.5rem;
      justify-content: flex-end;
    }
  }

  @media (min-width: 992px) {
    html[dir="rtl"] .hero-image {
      border-top-right-radius: 200px;
    }
  }
  
  /* Hero: Medium screens (tablet, 768px–991.98px) */
  @media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
      min-height: auto;
      padding: 3.25rem 1.75rem 3.5rem;
    }
    .hero-content {
      max-width: 540px;
      margin: 0 auto;
      text-align: center;
    }
    .hero-cta {
      justify-content: center;
    }
    .hero-image {
      display: none !important;
    }
    .circular-text-box {
      display: none !important;
    }
    .stats-wrapper {
      position: static;
      width: 100%;
      height: auto;
      padding: 1.5rem 1.5rem 0;
      margin-top: 0.75rem;
      background-color: transparent;
      border-top-right-radius: 0;
      border-top-left-radius: 0;
      justify-content: center;
    }
    .stats-wrapper::before {
      display: none;
    }
    .stats-bar {
      width: 100%;
      max-width: 540px;
      height: auto;
      padding-top: 0.9rem;
      padding-bottom: 0.9rem;
    }
  }
  
  @media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content {
      max-width: 540px;
      margin: 0 auto;
      text-align: center;
    }
    .hero-cta {
      justify-content: center;
    }
  }
  
  /* Hero: Small (< 576px) */
  @media (max-width: 575.98px) {
    .hero-wrapper { padding-left: 0.75rem; padding-right: 0.75rem; }
    .hero-section { min-height: 480px; padding: 1.75rem 1rem 7.5rem; border-radius: 30px 30px 30px 0; }
    .hero-content {
      text-align: center;
    }
    .hero-title { margin-bottom: 0.75rem; }
    .hero-desc { font-size: 0.95rem !important; }
    .hero-cta {
      justify-content: center;
    }
    .hero-cta .btn { padding: 0.5rem 1rem !important; font-size: 0.875rem; }
    .hero-cta .btn-icon { width: 18px; height: 18px; }
    .stats-wrapper {
      position: static;
      width: 100%;
      height: auto;
      padding: 1rem 0.75rem 0;
      margin-top: 1.25rem;
      background-color: transparent;
      border-top-right-radius: 0;
      justify-content: center;
    }
    .stats-wrapper::before {
      display: none;
    }
    .stats-bar {
      width: 100%;
      max-width: 100%;
      height: auto;
      border-radius: 20px !important;
      padding: 0.75rem 0.75rem;
      display: flex;
      flex-wrap: wrap;
      row-gap: 0.35rem;
    }
    .stat-item {
      flex: 0 0 50%;
      padding: 0.1rem 0;
    }
    .stat-number { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }
  }
  
  /* ========== About / Who section ========== */
  
  .who-section {
    background-color: var(--secondary);
    overflow: hidden;
    min-height: 280px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  @media (min-width: 768px) {
    .who-section {
      min-height: 360px;
    }
  }
  
  @media (min-width: 992px) {
    .who-section {
      min-height: 420px;
    }
  }
  
  
  
  .pill--soft {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
  
  .est-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    color: var(--primary-dark);
  }
  
  .text-muted-custom {
    color: var(--text-muted);
    line-height: 1.8;
  }
  
  @media (max-width: 575.98px) {
    .text-muted-custom {
      max-width: 100%;
      padding: 0;
    }
    
    .who-section .container {
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .container {
      padding-left: 15px;
      padding-right: 15px;
    }
  }
  
.card-mv {
  background-color: var(--primary-dark);
  max-width: 350px;
  width: 100%;
  border-radius: 50px;
  color: var(--text-color);
  position: relative;
  overflow: visible; 
  border: none;
  margin: 0;
}

@media (min-width: 992px) {
  .card-mv { margin-left: 5%; max-width: 380px; }
}

@media (max-width: 767.98px) {
  .card-mv { max-width: 100%; }
}

.title {
  margin-bottom: 20px;
}

.description {
  color:#E8E6DF;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  min-height: 150px;
  margin-bottom: 30px;
}
.mission-subtitle{
  color:var(--companies-bg);
}

.indicators {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  bottom: 0;
  left: 0;
}

html[dir="rtl"] .card-mv .indicators {
  justify-content: flex-end;
  left: auto;
  right: 0;
}

.indicators span {
  height: 8px !important;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  transition: all 0.3s ease !important;
  width: 15px !important;
  opacity: 1 !important;
  cursor: pointer;
  display: inline-block;
}

.indicators .active {
  width: 45px !important;
  background-color: var(--yallow) !important;
}

.action-button {
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 85px;
  height: 85px;
  background-color: #E8E6DF;
  border-top-left-radius: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.arrow {
  width: 50px;
  height: 50px;
  background-color: var(--companies-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.arrow:hover { transform: scale(1.1); }

.action-button::before {
  content: "";
  position: absolute;
  top: -30px;
  right: 0;
  width: 30px;
  height: 30px;
  background-color: transparent;
  box-shadow: 15px 15px 0 5px #E8E6DF;
  border-bottom-right-radius: 22px;
}

.action-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -30px;
  width: 30px;
  height: 30px;
  background-color: transparent;
  box-shadow: 15px 15px 0 5px #E8E6DF;
  border-bottom-right-radius: 21px;
}
  
  .decor-image-wrap {
    position: absolute;
    /* right: 0; */
    right :-45px;
    top: 3rem;
    bottom: 0;
    width: min(38%, 320px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 0;
  }
  
  @media (max-width: 991.98px) {
    .decor-image-wrap {
      display: none;
    }
  }
  
  .decor-image {
    width: 100%;
    /* height: 100%; */
    /* max-height: 520px; */
    max-height: 500px;
    object-fit: contain;
    object-position: right center;
    display: block;
  }

  /* RTL adjustments for who-section */
  html[dir="rtl"] .who-section .decor-image-wrap {
    right: auto;
    left: -28px;
    justify-content: flex-start;
  }

  html[dir="rtl"] .who-section .decor-image {
    object-position: left center;
  }

  @media (min-width: 992px) {
    html[dir="rtl"] .who-section .card-mv {
      margin-left: 0;
      margin-right: -7%;
    }
  }
  
  
  @media (max-width: 991.98px) {
    .mission-card {
      margin-right: 0;
    }
  }
  
  @media (max-width: 575.98px) {
    .mission-card {
      padding: 1.25rem 1.5rem;
      min-height: 280px;
    }
    .mission-card-title {
      font-size: 1.25rem;
    }
    .mission-card-text {
      font-size: 0.9rem;
    }
    
    .card-mv {
      padding: 1.5rem !important;
      border-radius: 30px;
      text-align: center;
    }
    
    .title {
      font-size: 1.25rem;
      margin-bottom: 15px;
    }
    
    .description {
      font-size: 0.95rem;
      min-height: 100px;
      margin-bottom: 20px;
      color: var(--primary-dark);
    }
  }

  @media (min-width: 576px) and (max-width: 991.98px) {
    .who-section .card-mv {
      text-align: center;
    }
  }
  
  /* companies */
  
  .companies-section {
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  
  @media (max-width: 575.98px) {
    .companies-section {
      padding-left: 10px;
      padding-right: 10px;
    }
  }
  
  .pill {
    display: inline-flex;
    background-color: transparent;
    border: 1.5px solid var(--primary-dark);
    color: var(--primary);
  
  }
  
  .section-title {
    color: var(--primary-dark);
    font-weight: bold;
  }
  
  /* الحاوية الرئيسية (Shell) */
  .companies-shell {
    margin: 0 auto;
    background-color: var(--companies-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* الدوائر المركزية الشفافة (Rings) */
  .companies-shell::before, 
  .companies-shell::after,
  .ring-extra {
    content: "";
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    
  }
  
  /* الدائرة الكبرى */
  .companies-shell::before {
    width: 600px;
    height: 600px;
    border:0;
    background: rgba(93, 93, 93, 0.06);}
  
  /* الدائرة الوسطى */
  .companies-shell::after {
    width: 350px;
    height: 360px;
    background:rgba(44, 43, 43, 0.06);}
  
  /* نص الوصف */
  .description-text {
    color: rgb(234, 234, 234);
    max-width: 680px;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .logos-container {
    position: relative;
    width: 100%;
    height: 270px; 
    z-index: 10;
    margin: 10px 0;
  }
  
  .company-logo {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border: 1px solid var(--companies-logo-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 12px;
    z-index: 2;
    box-shadow: 0 0 0 25px rgba(93, 93, 93, 0.12);
    animation: floatSoft 6s ease-in-out infinite alternate;
    cursor: pointer;
  }
  
  .company-logo::before {
    content: "";
    position: absolute;
    inset: -40px; 
    border-radius: 50%;
    background: rgba(93, 93, 93, 0.05);
    z-index: -1;
    pointer-events: none;
    animation: floatSoft 1s ease-in-out infinite alternate;
  }
  
  @keyframes floatSoft {
    0% {
      transform: translate3d(-4px, -2px, 0) scale(1);
    }
    50% {
      transform: translate3d(3px, 2px, 0) scale(1.02);
    }
    100% {
      transform: translate3d(-2px, 0, 0) scale(1);
    }
  }
  
  .company-logo img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
  }
  
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
  }
  .pos-2, .pos-5, .pos-8 { animation-delay: 1s; }
  .pos-3, .pos-6 { animation-delay: 2s; }
  .pos-1 {
    top: 67%;
    left: -42%;
  }
  .pos-2 {
    top: 21%;
    right: -15%;
  }
  .pos-3 {
    top: 20%;
    left: -9%;
  }.pos-4 {
    top: -17%;
    left: -43%;
  }.pos-5 {
    top: -16%;
    right: -41%;
  }.pos-6 { bottom: -11%; left: 12%; }
  .pos-7 {
    bottom: -11%;
    right: -38%;
  }.pos-8 {
    bottom: 29%;
    right: 43%;
  }.pos-9 { bottom: 15%; right: 12%; } 
  .pos-10 {
    top: -1%;
    right: 67%;
  }.pos-11 { bottom: 15%; right: 42%; }
  
  .cta-button {
    background-color: var(--primary-dark);
    color: var(--text-on-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    z-index: 15;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  
  
  .icon-circle {
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--white); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background-color: transparent; 
    color: var(--white);
  }
  
  @media (max-width: 992px) {
    .logos-container {
      height: 280px;
      max-width: 100%;
      margin: 10px auto;
    }
    .company-logo {
      width: 72px;
      height: 72px;
      box-shadow: 0 0 0 18px rgba(93, 93, 93, 0.1);
    }
    .pos-1 { top: 68%; left: -28%; }
    .pos-2 { top: 22%; right: -8%; }
    .pos-3 { top: 22%; left: -2%; }
    .pos-4 { top: -12%; left: -28%; }
    .pos-5 { top: -12%; right: -28%; }
    .pos-6 { bottom: -8%; left: 18%; }
    .pos-7 { bottom: -8%; right: -25%; }
    .pos-8 { bottom: 30%; right: 38%; }
    .pos-9 { bottom: 18%; right: 18%; }
    .pos-10 { top: 2%; right: 58%; }
    .pos-11 { bottom: 18%; right: 38%; }
  }
  
  /* Mobile: switch to flex grid so all logos are visible and responsive */
  @media (max-width: 768px) {
    .logos-container {
      height: auto;
      min-height: 280px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 40px;
      padding: 28px 12px;
      width: 100%;
      max-width: 100%;
    }
  
    .company-logo {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      bottom: auto !important;
      width: 72px;
      height: 72px;
      box-shadow: 0 0 0 15px rgba(93, 93, 93, 0.08);
      margin: 0;
      flex-shrink: 0;
    }
  
    .company-logo:nth-child(1),
    .company-logo:nth-child(3) {
      transform: translateY(12px);
    }
  
    .company-logo:nth-child(2) {
      transform: translateY(-4px);
    }
  
    .companies-shell {
      padding: 30px 15px;
      overflow: hidden;
      width: 100%;
      max-width: 100%;
    }
  
    .description-text {
      font-size: 1rem;
      margin-bottom: 0;
      padding: 0 10px;
    }
  }
  
  /* Small phones: smaller logos and gap */
  @media (max-width: 480px) {
    .logos-container {
      gap: 20px;
      padding: 22px 8px;
      min-height: 240px;
    }
  
    .company-logo {
      width: 58px;
      height: 58px;
      padding: 8px;
      box-shadow: 0 0 0 10px rgba(93, 93, 93, 0.06);
    }
  
    .company-logo img {
      width: 70%;
      height: 70%;
    }
  
    .company-logo:nth-child(1),
    .company-logo:nth-child(3) {
      transform: translateY(8px);
    }
  
    .company-logo:nth-child(2) {
      transform: translateY(-2px);
    }
  }
  
  .custom-tooltip {
    visibility: hidden;
    width: 220px;
    background-color: var(--secondary);
    color: var(--primary-dark);
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 100;
    bottom: 110%; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none; 
    line-height: 1.4;
    border: 1px solid #ddd;
  }
  
  .custom-tooltip .tooltip-ar {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  .custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #E8E6DF transparent transparent transparent;
  }
  
  .company-logo:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }
  
  @media (max-width: 768px) {
    .custom-tooltip {
      width: 160px;
      font-size: 0.75rem;
      padding: 6px 8px;
    }
  }
  
  @media (max-width: 480px) {
    .custom-tooltip {
      width: 140px;
      max-width: 85vw;
      font-size: 0.7rem;
      padding: 5px 6px;
      bottom: 115%;
    }
  }
  
  /* news */
  
  .media-cards-row {
    align-items: start;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .media-card-col {
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  
  .media-cards-row.filter-news .media-card-col[data-media-type="blog"],
  .media-cards-row.filter-blog .media-card-col[data-media-type="news"] {
    position: absolute;
    width: 0;
    min-width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    left: 0;
    top: 0;
    z-index: -1;
  }
  
  .media-cards-row.filter-news .media-card-col[data-media-type="news"],
  .media-cards-row.filter-blog .media-card-col[data-media-type="blog"] {
    opacity: 1;
    visibility: visible;
    position: relative;
  }
  
  .media-filter-btn--active {
    background-color: var(--companies-bg) !important;
    color: var(--white) !important;
  }
  
  .media-filter-btn:hover {
    background-color: var(--light-brown) !important;
    color: var(--white) !important;
  }
  
  .media-filter-btn--active:hover {
    background-color: var(--light-brown) !important;
    color: var(--white) !important;
  }
  
  .media-filter-icon {
    width: 1.25em;
    height: 1.25em;
    object-fit: contain;
  }
  
  .media-read-more-btn {
    background-color: var(--primary-dark) !important;
    color: var(--text-on-primary) !important;
    border: none;
    text-decoration: none;
    transition: background-color 0.2s;
  }
  
  
  .read-more-arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 1.5px solid var(--text-on-primary);
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .read-more-arrow-circle i {
    font-size: 0.7rem;
    color: inherit;
  }
  
  .custom-card-wrapper {
    max-width: 450px;
    width: 100%;
  }
  
  @media (max-width: 575.98px) {
    .custom-card-wrapper {
      max-width: 100%;
    }
  }
  
  .main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* حجم ثابت للصورة مهما تغيرت الصورة */
    border-radius: var(--radius-main);
    overflow: hidden;
    background-color: var(--secondary);
    line-height: 0;
  }
  
  .card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-main);
  
    mask: radial-gradient(circle at bottom right,
          transparent var(--cutout-size),
          black calc(var(--cutout-size) + 1px));
    -webkit-mask: radial-gradient(circle at bottom right,
          transparent var(--cutout-size),
          black calc(var(--cutout-size) + 1px));
  }
  
  
  .corner-cutout {
    position: absolute;
    bottom: 0;
    right: 0;
    width: var(--cutout-size);
    height: var(--cutout-size);
    background-color: var(--secondary);
    border-top-left-radius: var(--radius-cutout);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3; 
  }
  
  .corner-cutout::before,
  .corner-cutout::after {
    content: "";
    position: absolute;
    width: calc(var(--cutout-size) * 0.5);
    height: calc(var(--cutout-size) * 0.5);
    background: transparent;
  }
  .corner-cutout::before {
    top: calc(var(--cutout-size) * -0.5);
    right: 0;
    border-bottom-right-radius: 20px;
    box-shadow: 
      calc(var(--cutout-size) * 0.35)
      calc(var(--cutout-size) * 0.35)
      0
      calc(var(--cutout-size) * 0.35)
      var(--secondary);
  }
  
  .corner-cutout::after {
    left: calc(var(--cutout-size) * -0.5);
    bottom: 0;
    border-bottom-right-radius: 20px;
    box-shadow: 
      calc(var(--cutout-size) * 0.35)
      calc(var(--cutout-size) * 0.35)
      0
      calc(var(--cutout-size) * 0.35)
      var(--secondary);
  }
  .yallow-circle {
    width: calc(var(--cutout-size) * 0.65);
    height: calc(var(--cutout-size) * 0.65);
    background-color: var(--yallow);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    z-index: 5;
  }
  
  
  .yallow-circle:hover {
    transform: scale(1.05);
  }
  
  .arrow-icon {
    color: white;
    font-size: calc(var(--cutout-size) * 0.35);
    line-height: 1;
  }
  
  .card-title-text mt-2 mx-3 {
    color: var(--primary-dark);
  }
  .card-title-primary{
    color: var(--primary-dark);
  }
  
  
  .carousel .carousel-indicators button {
    background-color: var(--light-brown) !important;
    opacity: 1 !important;
    width: 12px;
    height: 6px;
    border: none;
    border-radius: 50px;
    transition: background-color 0.25s ease, width 0.25s ease;
  }
  
  .carousel .carousel-indicators button.active {
    background-color: var(--yallow) !important;
    opacity: 1 !important;
    width: 24px;
  }
  
  /* .careers-section  */
  .footer-banner {
    background-color: var(--banner-bg);
    border-radius: 52px;
    position: relative;
    margin-top: 30px;
    overflow: visible;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  html[dir="rtl"] .footer-banner .leaf-pattern {
    right: auto;
    left: 0;
  }
  
  @media (max-width: 575.98px) {
    .footer-banner {
      border-radius: 30px;
      margin-top: 20px;
    }
  }
  
  .content-side h5 {
    color: var(--primary);
    max-width: 95%;
    line-height: 1.3;
    font-size: 1.1rem;
  }
  
  @media (max-width: 575.98px) {
    .content-side {
      margin-left: 0 !important;
      margin-right: 0 !important;
    }
    
    .content-side h5 {
      max-width: 100%;
      font-size: 1rem;
    }
  }
  
  
  
  .leaf-pattern {
  position: absolute;
  top: 55%;
  right: 0;
  transform: translateY(-50%);
  height: 90%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  }
  .leaf-pattern img {
    height: 100%;
    width: auto;
    object-fit: contain;
  }
  
  .image-wrapper {
    position: relative;
    z-index: 2; 
    display: flex;
    justify-content: flex-end;
  }
  
  .footer-image-container {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1.2 / 1;
  border-radius: var(--radius-main);
  overflow: visible;
  transform: translate(-74px, 30px);
  }

html[dir="rtl"] .footer-banner .footer-image-container {
  transform: translate(-196px, 41px);
}

html[dir="rtl"] .footer-banner .image-wrapper {
  justify-content: flex-start;
}

/* @media (max-width: 575.98px) {
  html[dir="rtl"] .footer-banner .footer-image-container {
    transform: translate(10px, 40px);
  }
} */
  
  @media (max-width: 991px) {
    .footer-image-container {
      transform: translate(0, 15px);
      margin: 20px auto 0;
      max-width: 100%;
    }
  }
  
  @media (min-width: 768px) and (max-width: 991px) {
    .footer-image-container {
      max-width: 200px;
      transform: translate(-39px, -14px);
    }

    html[dir="rtl"] .footer-banner .image-wrapper {
      justify-content: center;
    }

    html[dir="rtl"] .footer-banner .footer-image-container {
      transform: translate(0, 0);
      margin: 20px auto 0;
    }
  }
  
  @media (max-width: 575.98px) {
    .footer-image-container {
      transform: translate(0, 0);
      margin: 20px auto 0;
    }

    html[dir="rtl"] .footer-banner .image-wrapper {
      justify-content: center;
    }

    html[dir="rtl"] .footer-banner .footer-image-container {
      transform: translate(0, 0);
      margin: 20px auto 0;
    }
  }
  
  .footer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .footer-shape-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  
  .corner-footer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: var(--cutout-size);
    height: var(--cutout-size);
    background-color: var(--banner-bg);
    border-top-left-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }
  
  /* Inverted Curves */
  .corner-footer::before,
  .corner-footer::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: transparent;
  }
  
  .corner-footer::before {
    top: -15px;
    right: 0;
    border-bottom-right-radius: 15px;
    box-shadow: 4px 4px 0 4px var(--banner-bg);
  }
  
  .corner-footer::after {
    bottom: 0;
    left: -15px;
    border-bottom-right-radius: 15px;
    box-shadow: 4px 4px 0 4px var(--banner-bg);
  }
  
  @media (max-width: 991px) {
    .leaf-pattern { display: none; } 
    .footer-banner { padding-bottom: 30px; }
  }
  
  
  /* Footer  */
  .social-icon {
    width: 30px;
    height:30px;
    border-radius: 50%;
    background-color: var(--companies-bg);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
  }
  
  .social-icon:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
  }
  
  
  
  
  
  
  /* search page */
  
  .btn-search-input {
    border: 1px solid var(--primary-dark);
  
  }
  .results-btn {
    border: 1.5px solid var(--primary-dark);
  }
  
  .no-results-text {
    text-align: center;
    margin-top: 120px;
    font-size: 1.2rem;
  }
  
    .bg-leaf-decoration {
    position: fixed; 
    right: 0;
    top: 20%;
    z-index: -1;
    opacity: 0.4;
    height: 70vh;
    pointer-events: none;
  }

  html[dir="rtl"] .bg-leaf-decoration {
    right: auto;
    left: 0;
  }
  input[placeholder="write what you are searching for"]::placeholder {
  color: #ccc;             
  text-transform: lowercase;  
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  opacity: 1;                
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); 
  font-size: 0.9rem;
  }
  
  
  
  
  
  
  
  
  
  