/**************
Chairman Section Styles
**************/
.chairman-section {
  .chairman-wrapper {

  }

  .chairman-image-wrapper {
    position: relative;
    max-width: 542px;

    @media (max-width: 991px) {
      max-width: 100%;
      margin: 0 auto 30px;
    }

    .chairman-photo {
      width: 100%;
      height: auto;
      aspect-ratio: 542/500;
      object-fit: cover;
      display: block;

      @media (max-width: 576px) {
        aspect-ratio: 1/1;
      }
    }


    .chairman-info {
      margin-top: 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;

      .chairman-name {
        color: var(--primary-color);
        font-size: 20px;
        font-weight: 500;
        line-height: 28px;
        margin: 0 0 4px 0;

        @media (max-width: 1440px) {
          font-size: 18px;
          line-height: 26px;
        }
      }

      .chairman-title {
        color: var(--text-default-color);
        font-size: 20px;
        font-weight: 400;
        line-height: 28px;
        margin: 0;

        @media (max-width: 1440px) {
          font-size: 18px;
          line-height: 26px;
        }
      }
      .btn-type1{
          padding-left: 25px;
          padding-right: 25px;
      }
      .icon-arrow-circle {
        flex-shrink: 0;
        margin-inline-start: 12px;
        border: none;
        background: transparent;
        padding: 0;
        cursor: pointer;
        &:hover{
          svg{
            fill: var(--primary-color);
            path{
              fill: var(--white);
            }
          }
        }
      }
    }

    .chairman-status {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-top: 3px;

      .status-indicators {
        display: flex;
        align-items: center;
        gap: 10px;

        .status-dot {
          width: 18px;
          height: 18px;
          border-radius: 2px;
          background-color: #d9d9d9;

          &.active {
            background-color: var(--secondary-color);
          }
        }
      }

      .status-label {
        color: var(--text-default-color);
        font-size: 16px;
        font-weight: 400;
        line-height: 28px;

        @media (max-width: 576px) {
          font-size: 14px;
          line-height: 24px;
        }
      }
    }
  }

  .chairman-content {
    padding-inline-start: 40px;

    @media (max-width: 991px) {
      padding-inline-start: 0;
    }

    .cms-text4 {
      margin-bottom: 51px;

      @media (max-width: 991px) {
        margin-bottom: 35px;
      }

      @media (max-width: 576px) {
        margin-bottom: 25px;
      }
    }
  }
}

/**************
Chairman Section RTL Support
**************/
[dir="rtl"] .chairman-section {
  .chairman-image-wrapper {
    .chairman-logo {
      left: auto;
      right: 55px;

      @media (max-width: 991px) {
        right: 40px;
      }

      @media (max-width: 576px) {
        right: 30px;
      }
    }

    .chairman-info {
      text-align: right;

      .icon-arrow-circle {
        margin-inline-start: 0;
        margin-inline-end: 12px;
        transform: scaleX(-1);
      }
    }
  }

  .chairman-content {
    padding-inline-start: 0;
    padding-inline-end: 40px;

    @media (max-width: 991px) {
      padding-inline-end: 0;
    }
  }
}

/**************
Board Members Section Styles
**************/
.board-members-section {

  .board-member-card {
    margin-bottom: 30px;

    @media (max-width: 576px) {
      margin-bottom: 0;
    }
  }

  .board-member-image-wrapper {
    position: relative;
    .board-member-box{
      position: relative;
      &::after{
        content: '';
        position: absolute;
        left: 0; right: 0; top: 55px; bottom: 0;
        background-color: var(--light-gray);       
      }
    }
    .board-member-photo {
      width: 100%;
      height: auto;
      aspect-ratio: 493/408;
      object-fit: cover;
      display: block;
      position: relative;
      z-index: 2;
      @media (max-width: 576px) {
        aspect-ratio: 1/1;
      }
    }

    .board-member-logo {
      position: absolute;
      left: 30px;
      top: 100px;
      width: 121px;
      height: 165px;
      z-index: 1;

      @media (max-width: 991px) {
        left: 10px;
        top: 50px;
        width: 100px;
        height: 137px;
      }

      @media (max-width: 576px) {
        left: 20px;
        top: 80px;
        width: 80px;
        height: 110px;
      }
    }

    .board-member-info {
      margin-top: 24px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;

      .board-member-name {
        color: var(--primary-color);
        font-size: 20px;
        font-weight: 500;
        line-height: 28px;
        margin: 0 0 4px 0;

        @media (max-width: 1440px) {
          font-size: 18px;
          line-height: 26px;
        }
      }

      .board-member-title {
        color: var(--text-default-color);
        font-size: 20px;
        font-weight: 400;
        line-height: 28px;
        margin: 0;

        @media (max-width: 1440px) {
          font-size: 18px;
          line-height: 26px;
        }
      }
      .btn-type1{
          padding-left: 25px;
          padding-right: 25px;
      }
      .icon-arrow-circle {
        flex-shrink: 0;
        margin-inline-start: 12px;
        border: none;
        background: transparent;
        padding: 0;
        cursor: pointer;
        &:hover{
          svg{
            fill: var(--primary-color);
            path{
              fill: var(--white);
            }
          }
        }
      }
    }

    .board-member-status {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-top: 3px;

      .status-indicators {
        display: flex;
        align-items: center;
        gap: 10px;

        .status-dot {
          width: 18px;
          height: 18px;
          border-radius: 2px;
          background-color: #d9d9d9;

          &.active {
            background-color: var(--secondary-color);
          }

          &.info {
            background-color: var(--info-color);
          }
        }
      }

      .status-label {
        color: var(--text-default-color);
        font-size: 16px;
        font-weight: 400;
        line-height: 28px;

        @media (max-width: 576px) {
          font-size: 14px;
          line-height: 24px;
        }
      }
    }
  }
}



/**************
Board Members Section RTL Support
**************/
[dir="rtl"] .board-members-section {
  .board-member-image-wrapper {
    .board-member-logo {
      left: auto;
      right: 12px;

      @media (max-width: 991px) {
        right: 10px;
      }

      @media (max-width: 576px) {
        right: 20px;
      }
    }

    .board-member-info {

      .icon-arrow-circle {
        margin-inline-start: 0;
        margin-inline-end: 12px;
        transform: scaleX(-1);
      }
    }

  }
}

[dir="rtl"] .board-member-modal {
  .modal-header {
    right: auto;
    left: 0;
  }

  .modal-text-content {
    padding-right: 0;
    padding-left: 10px;
  }
}

/**************
Committee Legend Section Styles
**************/
.committee-legend-section {
  display: flex;
  flex-direction: column;
  
  @media (max-width: 991px) {
    max-width: 100%;
  }

  .legend-header {
    padding: 5px 8px 10px;
    span {
       color: var(--primary-color);
      font-size: 16px;
      font-weight: 500;
      line-height: 28px;
    }
  }

  .legend-items {
    display: flex;
    @media (max-width: 991px) {
      flex-direction: column;
    }
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
  }

  .legend-indicator {
    width: 20px;
    height: 20px;
    flex-shrink: 0;

    &.audit-committee {
      background-color: var(--info-color);
    }

    &.nomination-committee {
      background-color: var(--secondary-color);
    }

    &.executive-committee {
      background-color: #d9d9d9;
    }
  }

  .legend-label {
    color: var(--text-default-color);  
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;

    @media (max-width: 991px) {
      font-size: 14px;
      line-height: 24px;
    }
  }
}

/**************
Committee Legend Section RTL Support
**************/
[dir="rtl"] .committee-legend-section{
  @media(max-width: 991px){
    margin: 0px 0 0 0;
  }
}