@import "./common-var.css";

:root {
  --light-teal-25: rgba(76, 167, 171, 0.25);
}

.ceo-message-section {
  background: var(--primary-color);
  position: relative;
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    width: 765px;
    height: 765px;
    border-radius: 50%;
    background: var(--light-teal-25);
    top: -220px;
    right: -200px;
    pointer-events: none;
    z-index: 0;

    @media (max-width: 1200px) {
      width: 500px;
      height: 500px;
      top: -140px;
      right: -130px;
    }

    @media (max-width: 767px) {
      width: 300px;
      height: 300px;
      top: -80px;
      right: -80px;
    }

    @media (max-width: 576px) {
      width: 200px;
      height: 200px;
      top: -50px;
      right: -50px;
    }
  }

  .container {
    position: relative;
    z-index: 1;
  }

  .ceo-section-inner {
    display: flex;
    flex-direction: column;
  }

  .ceo-message-content {
    display: flex;
    gap: 24px;
    align-items: center;
    
    @media (max-width: 1200px) {
      align-items: stretch;
    }
    @media (max-width: 992px) {
      flex-direction: column;
    }
  }

  .ceo-photo-card {
    flex: 1;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(246, 248, 247, 0.15);
    position: relative;
    img{
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .ceo-identity {
      padding: 0 26px 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(180deg, rgba(15, 63, 71, 0.00) 49.9%, rgba(15, 63, 71, 0.55) 64.93%, rgba(15, 63, 71, 0.84) 78.27%, var(--Teal-Primary, #0F3F47) 100%);
      @media (max-width: 992px) {
        padding: 0 26px 20px;
      }
      @media (max-width: 767px) {
        padding: 0 26px 20px;
      }
    }

    .ceo-name {
      color: var(--grey);
      font-size: 20px;
      font-weight: 700;
      line-height: 28px;

      @media (max-width: 767px) { font-size: 18px; line-height: 24px; }
    }
  }

  .ceo-message-body {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: var(--primary-subtext-color);

    @media (min-width: 1025px) and (max-width: 1400px) { gap: 10px; letter-spacing: 0; line-height: 24px; font-size: 16px; }
    @media (max-width: 992px) { flex: 0 0 100%; }
    @media (max-width: 576px) { gap: 20px; }

    p { margin: 0; }
  }

  /* RTL Support */
  [dir="rtl"] & {

    .ceo-message-content {

      @media (max-width: 992px) { flex-direction: column; }
    }

    .ceo-message-body { text-align: right; }
  }
}
