@import "./common-var.css";

/* ============================================================
   Organization Section
   ============================================================ */

.organization-card {
  display: flex;
  overflow: hidden;
  gap: 24px;
}

.joint-global {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.items-outer {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  .item {
    padding: 20px;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 calc(25% - 18px);
    min-width: calc(25% - 18px);
    /* white-space: nowrap; */
    span {
      min-width: 6px;
      height: 6px;
      background-color: var(--secondary-color);
      border-radius: 50%;
    }
  }
}

/* LEFT CONTENT */
.organization-content {
  width: 50%;
  background: var(--primary-color);
  padding: 40px 30px;
  color: var(--white);
  position: relative;
  border-radius: 20px;

  .org-social {
    .cms-text4 {
      margin-bottom: 15px;
    }
  }

  .card-img {
    position: absolute;
    bottom: 25px;
    right: 25px;
    left: auto;
    width: auto;
    svg {
      height: 100%;
      width: 100%;
    }
    @media (max-width: 576px) {
      width: 120px;
      height: 120px;
      bottom: 50px;
      right: 15px;
    }
  }
}

.cms-text4 {
  color: #fff;
  display: block;
}

/* Title */
.org-title {
  color: var(--secondary-color);
  margin-block: 15px 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 5px;
}

/* Address */
.org-address {
  color: var(--white);
  margin: 0;
}

/* Contact */
.org-contact {
  margin-block: 50px 50px;
}

.org-item {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;

  &:last-child {
    margin-bottom: 0;
  }
}

/* Icon */
.org-icon {
  background: var(--secondary-color);
  color: #000;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 18px;
}

/* small text */
.org-small {
  display: block;
}

.org-item a {
  color: var(--secondary-color);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  text-decoration: none;
  display: block;
}

/* Social */
.org-social span {
  display: block;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  transition:
    border-color 0.25s ease,
    background 0.25s ease;

  svg {
    flex-shrink: 0;
  }

  &:hover {
    border-color: var(--secondary-color);
    background: rgba(152, 178, 16, 0.1);

    svg path {
      fill-opacity: 1;
    }
  }

  @media (max-width: 576px) {
    width: 44px;
    height: 44px;
  }
}

.social-icons span {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RIGHT IMAGE */
.organization-image {
  width: 50%;
  border-radius: 20px;
  overflow: hidden;

  /* @media (max-width: 576px) {
    min-height: 515px;
  } */
}

.organization-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .organization-card {
    flex-direction: column-reverse;
  }

  .organization-content,
  .organization-image {
    width: 100%;
  }

  .organization-content {
    padding: 25px;
  }
}

/* ============================================================
   RTL Support
   ============================================================ */
[dir="rtl"] .card-img {
    right: auto;
    left: 25px;
    @media (max-width: 576px) {
      right: auto;
      left: 15px;
    }
    svg{
      transform: rotate(-90deg);
    }
  }
