/* Remove Olivero's dotted background globally */
body {
  background: #fcfcfc!important; /* solid white */
}


/* Base styles */
.lang-switcher {
  margin-bottom: 20px; /* space below the switcher */
}

.lang-switcher ul {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.lang-switcher a {
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: background 0.3s;
}

.lang-switcher a:hover {
  background: #f0f0f0;
}
.lang-switcher a.active {
  background: #c89530; /* gold */
  color: #fff;
  border-color: #c89530;
}


/* ==================== ABOUT-US DIRECTION ==================== */

/* Base */
.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 50px;
  padding-top: 30px;
}

.about-text, 
.about-image {
  flex: 1;

}

.about-text h2 .highlight {
  color: #c89530; /* gold */
}

.about-text {
  flex: 1;
  font-family: 'Cairo', sans-serif;
  color: #333;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;  /* bold */
  line-height: 2.1;
  margin-bottom: 20px;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

.about-text p {
  line-height: 1.8;
}

/* ---------- LTR (English) ---------- */
html[dir="ltr"] .about-content {
  flex-direction: row; /* image left, text right */
}

html[dir="ltr"] .about-image {
  order: 0;
}

html[dir="ltr"] .about-text {
  order: 1;
  text-align: left;
  direction: ltr;
  padding-left: 20px;
}

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] .about-content {
  flex-direction: row-reverse; /* flips so text left, image right */
}

html[dir="rtl"] .about-text {
  text-align: right;
  direction: rtl;
  padding-right: 20px;
}

html[dir="rtl"] .about-image {
  justify-content: flex-end;
}

/* ---------- Responsive (stacked on mobile) ---------- */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column !important;
    gap: 20px;
    text-align: center;
  }

  .about-text, 
  .about-image {
    order: initial !important;
    width: 100%;
    padding: 0;
  }
}

.about-image img {
  width: 100%;
  border-radius: 20px;
}

/* ==================== ABOUT-US ANIMATIONS ==================== */

/* Base animation styles */
.about-text, 
.about-image {
  opacity: 0;                /* hidden initially */
  transform: translateX(0);  /* reset for safety */
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

/* ---------- LTR (English) ---------- */
html[dir="ltr"] .about-image {
  animation-name: slideInLeft;
}

html[dir="ltr"] .about-text {
  animation-name: slideInRight;
}

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] .about-text {
  animation-name: slideInLeft;
}

html[dir="rtl"] .about-image {
  animation-name: slideInRight;
}

/* ---------- Keyframes ---------- */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ===== Real Estate Asset Management section ===== */
.asset-management-section {
  background: url("../images/about-pattern.png") no-repeat left top #2d4a4d;
  background-size: cover;
  padding: 80px 20px;
  text-align: center;
  font-family: 'Cairo', sans-serif;
  direction: rtl; /* Default Arabic direction */
}

[dir="ltr"] .asset-management-section {
  direction: ltr;
}

/* Title */
.asset-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}
.asset-title .gold {
  color: #c89d28;
}

/* Description */
.asset-description {
  font-size: 16px;
  color: #fff;
  max-width: 750px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

/* White overlay */
.asset-overlay {
  background: #fcfcfc;
  border-radius: 25px;
  padding: 60px 50px;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Grid */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px 25px;
}

/* Card */
.asset-item {
  position: relative;
  background: #fcfcfc;
  border-radius: 25px;
  border: 0.2px solid #445A5F;
  padding: 35px 45px;
  text-align: right;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  z-index: 0;
}

[dir="ltr"] .asset-item {
  text-align: left;
}

.asset-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Optional box style */
.box {
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  background: #fcfcfc;
}

/* Number watermark */
.asset-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 140px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.04);
  z-index: 1;
  pointer-events: none;
  left: -15px; /* default RTL */
}

[dir="ltr"] .asset-number {
  left: auto;
  right: -15px; /* mirror for LTR */
}

/* Text */
.asset-item p {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  font-weight: 400;
  color: #222;
  line-height: 1.8;
  margin: 0;
}

/* ============== MOBILE (default styles, up to 767px) ============== */
@media (max-width: 767px) {
  .asset-grid {
    grid-template-columns: 1fr; /* stacked */
  }

  .asset-item {
    padding: 15px;
    text-align: center;
  }

  .asset-number {
    position: absolute;
    bottom: 10px;
    font-size: 90px;
    left: 10px;font-size: 60px;
    color: rgba(0, 0, 0, 0.08);
  }

  .asset-description {
    font-size: 14px;
  }
}
/* ============== TABLET (768px → 991px) ============== */
@media (min-width: 768px) and (max-width: 991px) {
  .asset-item {
    position: relative;
    padding: 30px;
    text-align: left;
  }

.asset-grid {
    grid-template-columns: 1fr; /* still stacked, but different style */
  }

  .asset-number {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 70px;
    color: rgba(0, 0, 0, 0.05);
  }

  .asset-description {
    font-size: 15px;
  }

  
.asset-item p {
  position: absolute;
  right: 10px;             /* align to right */
  top: 50%;                /* middle vertically */
  transform: translateY(-50%); /* adjust for perfect centering */
  z-index: 1;
  font-size: 20px;
  color: #222;
  line-height: 1.6;
  margin: 0;               /* remove default p margin */
}
}



/* ==================== ABOUT US ==================== */
.about-us {
  background: #fcfcfc;
  padding: 30px 20px;  /* reduce padding for small screens */
}

.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

/* --- MOBILE VERSION --- */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;      /* stack text and image */
    align-items: center;         /* center everything */
    text-align: center;          /* center text */
    gap: 20px;                   /* smaller gap */
  }

  .about-text {
    width: 100%;                 /* full width */
  }

  .about-text h2 {
    font-size: 1.6rem;           /* smaller heading */
    line-height: 1.3;
  }

  .about-text p {
    font-size: 0.95rem;          /* slightly smaller text */
    line-height: 1.6;
  }

  .about-image {
    width: 90%;                  /* image narrower on mobile */
  }

  .about-image img {
    width: 100%;                 /* responsive */
    border-radius: 16px;         /* smaller radius */
  }
}

@media (max-width: 480px) {
  .about-text h2 {
    font-size: 1.4rem;
  }

  .about-text p {
    font-size: 0.9rem;
  }

  .about-image {
    width: 100%;                 /* take full width on very small screens */
  }
}
