@use "../../mixins" as *;
@use "../../variables" as *;

.speakers {
  margin-bottom: 50px;

  @include responsive(lg) {
    margin: 100px 0;
  }

  &__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;

    @include responsive(lg) {
      grid-template-columns: 1fr 3fr;
      gap: 3rem;
    }
  }

  &__header {
    display: flex;
    @include responsive(lg) {
      flex-direction: column;
      margin-bottom: 2rem;
    }
    align-items: left;
    justify-content: space-between;
    height: 100%;
  }

  &__title {
    margin-bottom: 0;
  }

  &__nav {
    display: flex;
    gap: 0.5rem;
  }

  &__nav-btn {
    width: 35px;
    height: 35px;
    @include responsive(lg) {
      width: 40px;
      height: 40px;
    }
    border-radius: 50%;
    border: 1px solid $primary-color;
    background: $primary-color;

    cursor: pointer;
    transition: background 0.2s ease;

    img {
      width: 15px;
      height: 15px;
      object-fit: contain;
    }

    &--prev,
    &--next {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0;

      @include responsive(lg) {
        margin-bottom: 4rem;
      }
    }

    &:hover {
      background: $secondary-color;
    }

    &--prev {
      transform: rotate(180deg);
    }
  }

  &__swiper {
    width: 100%;
  }
}

.speaker-card {
  text-align: left;

  &__image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
      height: auto;
    @include responsive(lg){
      height: 290px;

    }

    img {
      width: 100%;
      height: 100%;
      object-position: top;
      object-fit: cover;
    }
  }

  &__info{
    @include responsive(sm){
         display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: space-between;
min-height: 118.8px;
    }
 
  }

  &__name {
    font-size: 14px;
    font-weight: 700;
    color: $primary-color;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
  }

  &__role {
    text-transform: capitalize;
    font-weight: 400;

    font-size: 14px;

    color: #444;
  }

&__bio-btn{
  background-color: $primary-color;
  color: $white-color;
  border: none;
  width: 100%;
  padding: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: $transition;
  &:hover{
    background-color: $secondary-color;
  }
}



}
