@import "./common-var.css";

.bylaws-section {
  .bylaws-list {
    display: flex;
    flex-direction: column;
    gap: 42px;

    @media (max-width: 991px) {
      gap: 32px;
    }

    @media (max-width: 576px) {
      gap: 24px;
    }
  }

  .bylaws-item {
    display: flex;
    align-items: center;
    gap: 34px;

    @media (max-width: 991px) {
      gap: 24px;
    }

    @media (max-width: 767px) {
      flex-direction: column;
      align-items: stretch;
      gap: 20px;
    }
  }

  .bylaws-logo {
    display: flex;
    width: 360px;
    height: 170px;
    justify-content: center;
    align-items: center;
    background: #003E75;
    flex-shrink: 0;

    @media (max-width: 1200px) {
      width: 300px;
      height: 140px;
    }

    @media (max-width: 991px) {
      width: 250px;
      height: 120px;
    }

    @media (max-width: 767px) {
      width: 100%;
      height: 100px;
    }

    .logo-img {
      width: 141px;
      height: 58px;
      flex-shrink: 0;

      @media (max-width: 991px) {
        width: 110px;
        height: 45px;
      }

      @media (max-width: 767px) {
        width: 90px;
        height: 37px;
      }
    }
  }

  .bylaws-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;

    @media (max-width: 767px) {
      gap: 4px;
    }
  }

  .bylaws-title {
    color: var(--secondary-color);
    font-size: 23px;
    font-weight: 500;
    line-height: 32px;
    margin: 0;

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

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

  .bylaws-date {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 35px;
    margin: 0;

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

  .bylaws-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 16px;
    border-radius: 46px;
    border: 1px solid var(--secondary-color);
    background: transparent;
    color: var(--primary-color);
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;

    @media (max-width: 767px) {
      align-self: flex-start;
    }

    span {
      color: var(--primary-color);
      transition: all 0.3s ease;
    }

    .download-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      width: 15.413px;
      height: 18px;

      svg {
        width: 14px;
        height: 13px;
        position: absolute;
        top: 0;
        left: 0;

        path {
          fill: var(--primary-color);
          transition: all 0.3s ease;
        }
      }

      .download-base {
        width: 15px;
        height: 2px;
        background: var(--primary-color);
        position: absolute;
        bottom: 0;
        left: 0;
        transition: all 0.3s ease;
      }
    }

    &:hover {
      background: var(--secondary-color);
      border-color: var(--secondary-color);
      transform: translateY(-2px);

      span {
        color: var(--white);
      }

      .download-icon svg path {
        fill: var(--white);
      }

      .download-icon .download-base {
        background: var(--white);
      }
    }

    &:focus {
      outline: 2px solid var(--secondary-color);
      outline-offset: 2px;
    }
  }

  .bylaws-divider {
    width: 100%;
    height: 1px;
    background: #BCBEC0;
  }
}

/* RTL support */
[dir="rtl"] .bylaws-section {
  .bylaws-item {
    @media (max-width: 767px) {
      flex-direction: column;
    }
  }

  .bylaws-download-btn {
  
    @media (max-width: 767px) {
      align-self: flex-start;
    }
  }
}
