/* div {
  border: 1px solid red;
} */

.hero {
  position: relative;
  background-image: var(--zaliasLinear1);
  height: 670px;
  margin-top: 86px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  content: "";
  background-image: url("/wp-content/themes/zalgirioakademija/assets/img/hero_stings.svg");
  background-size: cover;
  width: 500px;
  height: 800px;
  z-index: 2;
}

.hero_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.hero_texts {
  display: flex;
  flex-direction: column;
  color: var(--white1);
  width: 100%;
  max-width: 580px;
  height: fit-content;
}

.hero_texts h1 {
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero_image {
  display: flex;
  align-items: end;
  height: 100%;
}
.hero_image img {
  /* Centered vertically */
  /* margin-top: auto;
  margin-bottom: auto; */

  width: 100%;
  max-width: 660px;
}

.home-banner {
  display: flex;
  justify-content: space-between;
  padding-top: 80px;
  padding-bottom: 80px;

  gap: 20px;
}

.banner-background {
  background: var(--headerLinear1);
}

.banner-container {
  position: relative;
  width: 100%;
  max-width: 595px;
  height: 279px;
  background-size: cover;
  background-position: center;
}

.banner-container.one-post {
  margin-left: auto;
  margin-right: auto;
}

.banner-head {
  position: absolute;
  bottom: 30px; /* Adjust the distance from the bottom */
  left: 20px; /* Adjust the distance from the left */
  color: white;
}
.banner-text {
  position: absolute;
  bottom: 20px; /* Adjust the distance from the bottom */
  left: 20px; /* Adjust the distance from the left */
  color: white;
}

.banner-head {
  font-size: 24px;
  margin-bottom: 10px;
}

.banner-text {
  font-size: 18px;
}

.news-box {
  height: 509px;
  width: 100%;
  max-width: 393px;
  background-color: var(--grey3);
  transition: 0.3s ease;
  text-decoration: none;
  margin-right: 40px;
  margin-top: 41px;
}
.news-box:hover {
  background-color: var(--green2);
}

.news-box:hover p {
  color: var(--white1);
}

.news-box .caption1 {
  color: var(--grey1);
  text-decoration: none;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
}
.news-box .body1 {
  color: var(--white1);
  text-decoration: none;
  margin-top: 10px;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
}

.news-img-container {
  height: 393px; /* Fixed height */
  width: 100%;
  max-width: 393px;
  overflow: hidden; /* Hide overflow content */
  display: flex; /* Enables flexbox */
  justify-content: center; /* Centers content horizontally in the container */
  align-items: center; /* Centers content vertically */
}

.news-img-container img {
  width: auto; /* Adjust width automatically */
  min-width: 100%; /* At minimum, the image should cover the width */
  height: 100%; /* Ensures the image spans the full height of the container */
  object-fit: cover; /* Cover the container while preserving aspect ratio */
}



.news-box img {
  width: auto;
  height: 100%;
  max-width: none;
}

.arrow-left,
.arrow-right {
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid var(--green2);
  height: 40px;
  width: 40px;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center; /* Overriding previous justify-content */
  position: absolute; /* Use absolute positioning */
  transition: border-color 0.3s ease;
}

.news-slick .slick-dots {
  position: absolute;
  top: -64px;
  left: 0;
  margin-left: -4px;

  width: fit-content !important;
  z-index: -1 !important;
}

.news-slick .slick-dots li {
  width: 30px !important;
  height: 3px !important;
  background-color: var(--grey2);
  transition: width 0.3s ease; /* Add transition for width */
}

.news-slick .slick-dots li.slick-active {
  width: 60px !important;
  height: 3px !important;
  background-color: var(--green2);
}

.news-slick .slick-dots li button {
  display: none !important;
}

.arrow-left {
  top: -41px; /* Align to the top */
  right: 60px; /* Align to the right */
}
.arrow-right {
  top: -41px; /* Align to the top */
  right: 0; /* Align to the right */
}

.arrow-left img,
.arrow-right img,
.arrow-left-player img,
.arrow-right-player img {
  height: 16px;
  width: 10px;
}

.arrow-left:hover,
.arrow-right:hover,
.arrow-left-player:hover,
.arrow-right-player:hover {
  border: 2px solid var(--green5);
}

.news-slick {
  margin-top: 120px;
}

.news-home h2 {
  color: var(--white1);
  margin-top: -30px;
  position: absolute;
}

.lower-background {
  /* TODO: make color variable */
  background-color: #383737;
}

.news-btn {
  display: none;
}
.social-img-container {
  width: 224px;
  height: 224px;
  overflow: hidden;
  margin-right: 40px;
}

.social-img-container img {
  width: 100%;
  height: 224px;
  object-fit: cover;
}

.social-slick {
  margin-top: 122px;
  padding-top: 41px;
}

.social-slick .slick-dots {
  position: absolute;
  top: -64px;
  left: 0;
  margin-left: -4px;
  width: fit-content !important;
  z-index: -1 !important;
}

.social-slick .slick-dots li {
  width: 3cqh !important;
  height: 3px !important;
  background-color: var(--grey2);
  transition: width 0.3s ease; /* Add transition for width */
}

.social-slick .slick-dots li.slick-active {
  width: 60px !important;
  height: 3px !important;
  background-color: var(--green2);
}

.social-slick .slick-dots li button {
  display: none !important;
}

.social h2 {
  color: var(--white1);
  margin-top: -30px;
  position: absolute;
}

.social {
  margin-bottom: 100px;
}

.players-section {
  background: var(--headerLinear1);
}

.arrow-left-player,
.arrow-right-player {
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid var(--green2);
  height: 40px;
  width: 40px;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center; /* Overriding previous justify-content */
  position: absolute; /* Use absolute positioning */
  transition: border-color 0.3s ease;
  z-index: 1;
}

.arrow-left-player {
  top: 171px;
  left: 0;
}
.arrow-right-player {
  top: 171px;
  right: 0; /* Align to the right */
}

.players-slick {
  text-align: center;
  justify-content: center;
}

.players-slick .slick-list {
  width: 100%;
  max-width: 846px;
  margin-left: auto;
  margin-right: auto;
}

.player-container {
  height: 383px;
  display: flex !important;
  justify-content: space-between;
  flex-direction: row;
}

.player-photo {
  width: 351px;
  height: 383px;
  overflow: hidden;
}

.player-photo img {
  height: 100%;
  width: auto;
  display: block;
}

.player-data {
  width: 395px;
  height: fit-content;
  margin-top: auto;
  margin-bottom: auto;
}
.player-stats {
  width: 395px;
}

.player-stats {
  display: flex;
  justify-content: space-between;
  color: var(--white1);
}

.player-stats .stats-cont {
  border-left: 1px solid var(--green2);
  padding-left: 15px;
}

.player-data .caption3 {
  color: var(--green2);
}
.player-data .h2 {
  color: var(--white1);
  margin-top: 5px;
  margin-bottom: 25px;
}

.player-head,
.player-name {
  text-align: left;
}

.hero_texts .btn1 {
  text-decoration: none;
  color: var(--white1);
  padding: 15px 25px;
  border: 1px solid var(--white1);
  width: fit-content;
  margin-top: 35px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}

.hero_texts .btn1:hover {
  background-color: var(--white1);
  color: var(--green3);
}

@media screen and (max-width: 1200px) {
  .hero_image img {
    /* Centered vertically */
    margin-top: auto;
    margin-bottom: auto;

    width: 100%;
    max-width: 660px;
  }
}

@media screen and (max-width: 900px) {
  .hero_content {
    margin-top: 100px;
    flex-direction: column;
    gap: 0px;
  }

  .hero_texts {
    width: 100%;
    max-width: 100%;
  }

  .hero_content {
    height: fit-content;
  }

  .hero {
    height: fit-content;
  }

  .hero_texts .h1,
  .hero_texts .body2,
  .hero_texts a {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero_texts a {
    margin-bottom: 50px;
  }
}

@media screen and (max-width: 1150px) {
  .hero_image img {
    /* Centered vertically */
    margin-top: auto;
    margin-bottom: auto;

    width: 100%;
    max-width: 660px;
  }

  .hero_content {
    margin-top: 30px;
  }
  .hero {
    margin-top: 60px;
  }

  .player-container {
    display: flex !important;
    gap: 25px;
    flex-direction: column-reverse;
    align-items: center;
  }

  .player-head,
  .player-name {
    text-align: center;
  }

  .arrow-left-player {
    top: 235px;
    left: 0;
  }
  .arrow-right-player {
    top: 235px;
    right: 0; /* Align to the right */
  }

  .player-data .player-head {
    font-size: 14px;
    line-height: 17px;
    font-family: "Barlow";
    font-weight: 400;
  }

  .player-data .player-name {
    font-size: 24px;
    line-height: 27px;
    font-family: "Barlow";
    font-weight: 600;
  }

  .player-stats .stats-cont .stats-cont-head {
    font-size: 12px;
    line-height: 15px;
    font-family: "Barlow";
    font-weight: 400;
  }
  .player-stats .stats-cont .stats-cont-value {
    font-size: 14px;
    line-height: 20px;
    font-family: "Axiforma";
    font-weight: 600;
  }

  .player-data .h2 {
    margin-bottom: 20px;
  }

  .player-stats .stats-cont {
    padding-left: 10px;
  }

  .player-stats {
    width: 100%;
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
  }
  .players-slick .slick-list {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .player-photo {
    width: 229px;
    height: 250px;
    overflow: hidden;
  }

  .arrow-left-player,
  .arrow-right-player {
    height: 32px;
    width: 32px;
  }

  .arrow-left-player img,
  .arrow-right-player img {
    height: 12px;
    width: 7px;
  }
}

@media screen and (max-width: 945px) {
  .hero_texts a {
    margin-bottom: 0;
  }

  .hero_content {
    margin-top: 0px;
  }

  .home-banner {
    display: flex;
    flex-direction: column;
  }

  .banner-container {
    position: relative;
    height: 150px;
    max-width: unset;
  }

  .news-box {
    height: 347px;
    width: 100%;
    max-width: 290px;
    background-color: var(--grey3);
    transition: 0.3s ease;
    text-decoration: none;
    margin-right: 20px;
    margin-top: 41px;
  }

  .news-box .caption1 {
    color: var(--grey1);
    text-decoration: none;
    margin-top: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }
  .news-box .body1 {
    color: var(--white1);
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 15px;
    margin-right: 15px;

    font-size: 16px;
    line-height: 23px;
    font-family: "Axiforma";
    font-weight: 600;
  }

  .news-img-container {
    height: 240px; /* Fixed height */
    width: 100%;
    max-width: 290px;
    overflow: hidden; /* Hide overflow content */
  }

  .arrow-left,
  .arrow-right {
    display: none !important;
  }

  .news-home h2 {
    color: var(--white1);

    position: absolute;

    margin-top: 15px;
    margin-bottom: 30px;

    font-size: 24px;
    line-height: 27px;
    font-family: "Barlow";
    font-weight: 600;
  }

  .news-slick .slick-dots {
    position: absolute;
    margin-top: 50px;
    left: 0;

    width: fit-content !important;
    z-index: -1 !important;
  }

  .news-slick {
    margin-top: 50px;
    margin-bottom: 30px;
  }

  .news-box {
    margin-top: 70px !important;
  }

  .home-banner {
    display: flex;
    justify-content: space-between;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: var(--zaliasLinear1);
    gap: 20px;
  }

  .news-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 50px;
  }

  .news-btn a {
    padding: 14px 20px;

    font-size: 14px;
    line-height: 17px;
    font-family: "Barlow";
    font-weight: 600;
  }

  .social h2 {
    color: var(--white1);

    position: absolute;

    margin-bottom: 30px;

    font-size: 24px;
    line-height: 27px;
    font-family: "Barlow";
    font-weight: 600;
  }

  .social-slick {
    padding-top: 30px;
  }

  .social {
    margin-bottom: 50px;
  }

  .hero_texts h1 {
    /* h2 */
    font-size: 36px;
    line-height: 44px;
    font-family: "Barlow";
    font-weight: 700;
  }

  .hero_texts p {
    /* Body3 */
    font-size: 14px;
    line-height: 20px;
    font-family: "Axiforma";
    font-weight: 400;
  }

  .hero_texts .btn1 {
    /* Btn2 */
    font-size: 13px;
    line-height: 16px;
    font-family: "Barlow";
    font-weight: 600;
    padding: 14px 20px;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero_texts {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 50px;
  }
  .hero_image {
    display: flex;
  }

  .hero {
    height: fit-content;
  }
}
