/* ============================================================
   ebci4 — Contact Section
   Namespace  : ebci4
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

/* 1. Variables & Colors */
.ebci4 {
  --ebci4-bg:              #ffffff;
  --ebci4-text:            #333333;
  --ebci4-title:           #1a1a2e;
  --ebci4-border:          #e8e8e8;

  --ebci4-card-bg:         #ffffff;
  --ebci4-card-title:      #1a1a2e;
  --ebci4-card-text:       #555555;
  --ebci4-card-btn:        #1b3055;

  --ebci4-icon-bg:         #1b3055;
  --ebci4-icon-color:      #ffffff;

  --ebci4-map-height-mob:  45vh;
  --ebci4-map-height-desk: 55vh;

  --ebci4-cards-offset:    -5rem;
  --ebci4-card-shadow:     0 0.25rem 1.5rem rgba(0,0,0,0.1);
  --ebci4-card-radius:     0.5rem;

  --ebci4-padding-top:     0;
  --ebci4-padding-bottom:  0;
}

/* 2. Reset داخل الـ namespace */
.ebci4 *,
.ebci4 *::before,
.ebci4 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 3. Base Styles — Mobile */
.ebci4 {
  font-family: "El Messiri", sans-serif;
  background-color: transparent;
  padding-top: var(--ebci4-padding-top);
  padding-bottom: 3rem;
  position: relative;
  width: 100%;
  direction: ltr;
}

/* Map Wrapper */
.ebci4__map-wrapper {
  width: 100%;
  height: var(--ebci4-map-height-mob);
  position: relative;
  overflow: visible;
}

.ebci4__map-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.ebci4__iframe {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Transparent overlay to make whole map a link */
.ebci4__map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}

/* Cards Wrapper — floating layer on mobile */
.ebci4__cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 20;
  margin: -3rem 1rem 0;
  border: 0.0625rem solid var(--ebci4-border);
  border-radius: 0.5rem;
  box-shadow:
    0 -0.25rem 1.5rem rgba(0,0,0,0.1),
    0 0.5rem 2rem rgba(0,0,0,0.12),
    0 0 0 0.0625rem rgba(0,0,0,0.04);
  background: var(--ebci4-card-bg);
  overflow: hidden;
}

/* Individual Card */
.ebci4__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: var(--ebci4-card-bg);
  /* border-bottom: 0.0625rem solid var(--ebci4-border); */
  box-shadow: 0 -0.25rem 1.5rem rgba(0, 0, 0, 0.1), 0 0.5rem 2rem rgba(0, 0, 0, 0.12), 0 0 0 0.0625rem rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.ebci4__card:last-child {
  border-bottom: none;
}

.ebci4__card:hover {
  background: #f7f9fc;
}

/* Icon Circle */
.ebci4__icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ebci4-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ebci4__icon {
  color: var(--ebci4-icon-color);
  font-size: 1.25rem;
}

.ebci4__card-title {
  font-size: clamp(1rem, 4vw, 1.1rem);
  font-weight: 700;
  color: var(--ebci4-card-title);
  font-family: "El Messiri", sans-serif;
}

.ebci4__card-text {
  font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  color: var(--ebci4-card-text);
  font-family: "El Messiri", sans-serif;
  line-height: 1.5;
}

/* 4. Breakpoints */
@media (min-width: 769px) {
  .ebci4__map-wrapper {
    height: var(--ebci4-map-height-desk);
    position: relative;
  }

  /* Cards float over the bottom of the map */
  .ebci4__cards-wrapper {
    flex-direction: row;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 60rem;
    background: transparent;
    gap: 0;
    z-index: 10;
  }

  .ebci4__card {
    flex: 1;
    border-bottom: none;
    border-right: 0.0625rem solid var(--ebci4-border);
    box-shadow: var(--ebci4-card-shadow);
    border-radius: 0;
    padding: 2rem 1.75rem 2.5rem;
    background: var(--ebci4-card-bg);
  }

  .ebci4__card:first-child {
    border-radius: var(--ebci4-card-radius) 0 0 0;
  }

  .ebci4__card:last-child {
    border-right: none;
    border-radius: 0 var(--ebci4-card-radius) 0 0;
  }

  /* Make section relative so cards can position absolutely */
  .ebci4 {
    position: relative;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1025px) {
  .ebci4__cards-wrapper {
    width: 75%;
  }

  .ebci4__card {
    padding: 2.25rem 2rem 3rem;
  }

  .ebci4__icon-circle {
    width: 4rem;
    height: 4rem;
  }

  .ebci4__icon {
    font-size: 1.4rem;
  }
}

@media (min-width: 1281px) {
  .ebci4__cards-wrapper {
    width: 70%;
    max-width: 65rem;
  }

  .ebci4 {
    padding-bottom: 5rem;
  }
}

@media (min-width: 1441px) {
  .ebci4__map-wrapper {
    height: 60vh;
  }

  .ebci4 {
    padding-bottom: 6rem;
  }
}