@charset "UTF-8";

/*
		2024-01
 */

:root,
[data-bs-theme="light"] {
  --containerWidth: 1470px;

  --bs-primary: hsl(179 90% 16%);
  --bs-primary-rgb: 4, 78, 76;
  --bs-primary-light: hsl(179 90% 26%);
  --bs-primary-dark: hsl(179 90% 9%);
  --bs-light: hsl(180 15% 89%);
  --bs-light-rgb: 224, 232, 232;
  --bs-border-color: hsl(0 0% 0% / 0.12);

  --bs-secondary: hsl(179 44% 67%);

  --bs-body-font-family: "Switzer", sans-serif;
  --bs-serif-font-family: "Cormorant Garamond", serif;

  --h1: clamp(4rem, 7vw, 7.065625rem);
  --h2: clamp(3rem, 5vw, 4.996875rem);
  --h3: clamp(2rem, 3.5vw, 3.53375rem);
  --h4: clamp(1.25rem, 2.5vw, 2.499375rem);
  --h5: clamp(1.1rem, 1.5rem, 1.7675rem);
  --h6: clamp(1rem, 1.2vw, 1.25rem);
  --lead: clamp(1.1rem, 1.5vw, 1.66875rem);

  --xxl: 7.5rem;
}

html {
	scroll-padding-top: 100px;
	scroll-behaviour: smooth;
}

[x-cloak] {
  display: none !important;
}

@media (min-width: 1536px) {
  .container {
    max-width: var(--containerWidth);
  }
}

.container-fluid {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(1rem, 7vw, var(--xxl));
}

body {
  font-family: var(--bs-body-font-family);
  font-size: 1.125rem;
  line-height: 1.65;
}

main p a:not(.btn),
main li a:not(.btn),
main td a:not(.btn) {
  color: var(--bs-primary-light);
  text-decoration: none;
  transition: color 200ms;

  &:hover {
    color: var(--bs-primary);
    text-decoration: underline;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: bold;
  margin-bottom: 1rem;
}

h1,
.h1 {
  font-size: var(--h1);
}

h2,
.h2 {
  font-size: var(--h2);
}

h3,
.h3 {
  font-size: var(--h3);
}

h4,
.h4 {
  font-size: var(--h4);
}

h5,
.h5 {
  font-size: var(--h5);
}

h6,
.h6 {
  font-size: var(--h6);
}

.lead {
  font-size: var(--lead);
  line-height: 1.5;
}

.btn {
  font-size: var(--h6);
  font-weight: bold;
  padding: 1.25rem 2.5rem;
  border-radius: 0;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary-light);
  --bs-btn-hover-border-color: var(--bs-primary-light);
  --bs-btn-active-bg: var(--bs-primary-dark);
  --bs-btn-active-border-color: var(--bs-primary-dark);
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-light);
  --bs-btn-hover-bg: var(--bs-light);
  --bs-btn-hover-border-color: var(--bs-light);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-hover-color: var(--bs-primary);
  --bs-btn-active-color: var(--bs-primary);

  padding: 1.35rem 2.5rem 1.15rem;
  border-width: 2px;
}

.serif {
  font-family: var(--bs-serif-font-family);
}

.sans-serif {
  font-family: var(--bs-body-font-family);
}

.inset-0 {
  inset: 0;
}

/* NAVBAR */

.navbar {
  padding: 0;
  --bs-navbar-nav-link-padding-x: 1.875rem;
  --bs-navbar-nav-link-padding-y: 1rem;

  background-image: linear-gradient(to bottom, hsl(0 0% 0% / 0.9), hsl(0 0% 0% / 0));
  background-color: transparent;
  transition: background-color 200ms, top 200ms;
}

.affix {
  background-color: hsl(0 0% 0% / 0.85);
  top: -151px;
}

.navbar-brand {
  padding: 1.875rem 0;
  margin: 0;
}

.navbar-brand .serif {
  width: 30vw;
  white-space: normal;
  display: block;
  padding: 0.75rem 0 0.75rem 2rem;
  margin-inline-start: 2rem;
  border-left: 1px solid hsl(0 0% 100% / 0.24);
  transition: font-size 200ms;
}

.navbar-brand .badge {
  font-weight: normal;
  margin-inline-start: 0.25em;
}

.navbar-brand-image {
  transition: height 200ms;
  height: 64px;
}

.navbar .social-media a {
  transition: transform 200ms;

  &:hover {
    transform: rotate(15deg) translateY(-2px);
  }
}

.social-media img {
  height: 32px;
  width: auto;
}

.atp-logo img {
  height: 32px;
}

.navbar-nav {
  width: 100%;
  display: flex;
  align-items: center;
  border-top: 1px solid hsl(0 0% 100% / 0.24);
  border-bottom: 1px solid hsl(0 0% 100% / 0.24);
}

.nav-link {
  color: white;
  font-size: 1.125rem;
  font-weight: bold;
  padding-top: var(--bs-navbar-nav-link-padding-y);
  padding-bottom: calc(var(--bs-navbar-nav-link-padding-y) + 1px);
  overflow: hidden;
  position: relative;
  margin-bottom: -1px;

  &::before {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background-color: var(--bs-primary-light);

    position: absolute;
    bottom: 0;
    left: 0;

    transition: width 200ms cubic-bezier(0, 0.31, 0, 0.63);
  }

  &:hover,
  &:focus,
  &.active {
    &::before {
      width: 100%;
    }
  }
}

.nav-link.d-inline-flex {
  background-color: var(--bs-primary);
  padding: 0.875rem 3rem !important;
  margin-bottom: 0;

  &:hover,
  &:focus {
    background-color: var(--bs-primary-light);
  }
}

.dropdown-menu {
  border-radius: 0;
  border: 0;
  min-width: 270px;
  /* width: 600px; */
  /* max-width: 100vw; */
  padding: 1rem;

  box-shadow: 0 0.875rem 2rem -0.5rem hsl(0 0% 0% / 0.2);

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  li:not(:first-child)>.dropdown-item {
    border-top: 1px solid hsl(0 0% 0% / 0.12);
  }
}

.dropdown-item {
  transition: color 200ms linear;
  background-color: transparent;
  position: relative;
  overflow: hidden;
  padding: 0.5rem 3rem 0.5rem 1rem;
  white-space: normal;
  line-height: 1.3;

  &::before {
    content: "";
    display: block;
    background-image: url(/assets/img/arrow-right.svg);
    background-repeat: no-repeat;
    background-size: contain;

    width: 24px;
    height: 24px;

    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    transition: opacity 200ms, transform 200ms;
  }

  &:hover,
  &:focus,
  &.active {
    color: var(--bs-primary);
    background-color: transparent;

    &::before {
      transform: translate(5px, -50%);
    }
  }
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
}

/* HEADER */

header .swiper-slide img {
  height: 100vh;
}

header .h4,
header .h3,
header h1 {
  color: white;
  display: inline;
  background-color: hsl(179 90% 16% / 0.6);
  line-height: 1.5;
  margin-left: ;
}

header {

  .swiper-button-prev,
  .swiper-button-next {
    z-index: 100;
    color: white;
    text-decoration: none;
    transition: transform 200ms cubic-bezier(0, 0.31, 0.93, 1.28);
  }

  .swiper-button-prev {
    left: clamp(1rem, 7vw, var(--xxl));

    &:hover {
      transform: translateX(-3px);
    }
  }

  .swiper-button-next {
    right: clamp(1rem, 7vw, var(--xxl));

    &:hover {
      transform: translateX(3px);
    }
  }
}

/* MAIN CONTENT */

.pt-xxl {
  padding-top: var(--xxl);
}

.pb-xxl {
  padding-bottom: var(--xxl);
}

.py-xxl {
  padding-top: var(--xxl);
  padding-bottom: var(--xxl);
}

.pt-xl {
  padding-top: calc(var(--xxl) / 2);
}

.pb-xl {
  padding-bottom: calc(var(--xxl) / 2);
}

.py-xl {
  padding-top: calc(var(--xxl) / 2);
  padding-bottom: calc(var(--xxl) / 2);
}

.mt-xxl {
  margin-top: var(--xxl);
}

.mb-xxl {
  margin-bottom: var(--xxl);
}

.my-xxl {
  margin-top: var(--xxl);
  margin-top: var(--xxl);
}

.mt-xl {
  margin-top: calc(var(--xxl) / 2);
}

.mb-xl {
  margin-bottom: calc(var(--xxl) / 2);
}

.my-xl {
  margin-top: calc(var(--xxl) / 2);
  margin-bottom: calc(var(--xxl) / 2);
}

#first-serve-in {
  h4 {
    flex-grow: 1;
  }

  .flex-column {
    border-left: 1px solid var(--bs-border-color);
    padding-inline: 3.75rem;
    flex-grow: 1;
  }

  .flex-grow-1 {
    border-left: 1px solid var(--bs-border-color);
    padding-inline: 3.75rem;
  }
}

.tab-link {
  text-decoration: none;
  color: var(--bs-body-color);
  position: relative;
  padding-inline: 0.5rem;
  transition: color 200ms, opacity 200ms;

  svg path {
    transition: fill 200ms, opacity 200ms;
  }

  &::after {
    content: "";
    display: block;
    width: 100%;
    height: 0.75rem;
    background-color: var(--bs-light);

    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
  }

  &:hover {
    opacity: 0.7;
  }

  &.active-tab {
    color: var(--bs-primary);

    svg path {
      fill: var(--bs-primary);
    }
  }
}

.card-img-top,
.card-img-start {
  position: relative;
  overflow: hidden;

  .w-100 {
    transition: transform 1000ms cubic-bezier(0, 0.46, 0, 1);
  }
}

.card .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  color: black;
  gap: 0.35rem;

  img {
    width: 20px;
  }
}

.card-img-start {
  flex-shrink: 0;

  .badge {
    padding: 0.5rem;
    top: 0.5rem;
    left: 0.5rem;
  }
}

.card:hover {
  cursor: pointer;

  .w-100 {
    transform: scale(1.1);
  }
}

.card-title-link {
  color: black;
  text-decoration: none;
  transition: color 200ms;
}

.card:hover .card-title-link,
.card-title-link:hover {
  color: var(--bs-primary);
}

#boxes {
  .position-absolute {
    background-color: hsl(179 90% 16% / 0.5);
    padding: 1rem;

    .d-flex {
      height: 100%;
      border: 1px solid hsl(0 0% 100% / 0.2);
    }
  }

  a {
    flex: 1;
    color: white;
    text-decoration: none;

    &:hover img.object-fit-cover {
      transform: scale(1.1);
    }
  }

  img.object-fit-cover {
    max-height: 80vh;
    transition: transform 1000ms cubic-bezier(0, 0.46, 0, 1);
  }
}

.more {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  width: 4rem;
  height: 4rem;
  transition: transform 300ms ease;
}

*:hover>.more {
  transform: translateX(5px);
}

#featured-players {
  .player-thumbnail {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;

    &::before {
      content: "";
      display: block;
      position: absolute;
      inset: 50% 0 0;

      background-image: linear-gradient(to top, var(--bs-light), transparent);
    }

    &::after {
      content: "";
      display: block;
      position: absolute;
      z-index: -1;
      width: 80%;
      aspect-ratio: 1/1;
      border-radius: 50%;
      background-color: white;
    }

    img {
      max-height: 465px;
      max-width: 100%;
      object-fit: contain;
    }
  }

  a {
    text-decoration: none;
    color: var(--bs-body-color);
  }
}

#featured-players .player-thumbnail.thumbnail-small {
  height: 120px;
  width: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bs-light);
}

#featured-players .player-thumbnail.thumbnail-small::before,
#featured-players .player-thumbnail.thumbnail-small::after {
  display: none;
}

.player-name {
  font-weight: normal;
  margin-bottom: 0.25rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 1rem;

  .swiper-button-prev,
  .swiper-button-next {
    background-color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: 1.5rem;
    background-position: center;

    position: relative;
    margin: 0;
    inset: auto;
    transition: transform 200ms;

    &::after {
      display: none;
    }

    &:active {
      transform: scale(0.9);
    }
  }

  .swiper-button-prev {
    background-image: url(/assets/img/arrow-left.svg);
  }

  .swiper-button-next {
    background-image: url(/assets/img/arrow-right.svg);
  }
}

#newsletter input {
  border-color: white;
  color: white;

  &::placeholder {
    color: white;
    opacity: 1;
    transition: opacity 200ms;
  }

  &:hover::placeholder {
    opacity: 0.6;
  }

  &:focus::placeholder {
    opacity: 0.2;
  }
}

.list-unstyled li+li {
  margin-top: 0.5rem;
}

footer a {
  text-decoration: none;
  color: white;
  transition: color 200ms;

  &:hover {
    color: var(--bs-primary-light);
    text-decoration: underline;
  }
}

footer .col-lg-6 .list-unstyled {
  display: flex;
  flex-wrap: wrap;

  li {
    flex-basis: 50%;
  }
}

footer .text-muted {
  color: white !important;
  opacity: 0.48;
}

/* SUB PAGES CONTENT */

.sub header img {
  height: 600px;
  width: 100%;
  object-fit: cover;
}

.sub header .position-absolute {
  /* top: calc(50% + 150px); */
  /* left: clamp(1rem, 7vw, var(--xxl)); */

  inset: 0 clamp(1rem, 7vw, var(--xxl));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
}

.sub header h1 {
  padding-inline: 0.35em;
  backdrop-filter: blur(3px);
  color: white;
}

.breadcrumb-item a {
  color: var(--bs-body-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 200ms;

  &:hover {
    color: var(--bs-primary);
  }
}

.logo-over-thumb {
  padding: 0.5rem 1rem;
  background-color: white;
  top: 0;
  right: 0;

  &::after {
    content: "";
    display: block;
    background-color: white;
    position: absolute;
    inset: 0 -1rem;
    z-index: -1;
    transform: skewX(15deg);
  }
}

.flex-lg-row-reverse .logo-over-thumb {
  top: 0;
  left: 0;
  right: auto;

  &::after {
    transform: skewX(-15deg);
  }
}

#data {
  border: 0.75rem solid var(--bs-light);

  .d-flex+.d-flex {
    border-top: 1px solid var(--bs-light);
  }

  .d-flex {
    transition: background-color 200ms, color 200ms;

    &:hover {
      color: var(--bs-primary);
      background-color: hsl(179 90% 16% / 0.05);
    }
  }
}

aside a {
  text-decoration: none;
  color: var(--bs-body-color);
  min-height: 100px;

  .overflow-hidden {
    margin-top: -1.5rem;
    margin-bottom: -1.5rem;
    margin-right: -1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    .z-2 {
      bottom: 0.25rem;
      right: 1rem;
      background-color: white;
      width: 2.1875rem;
      height: 2.1875rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      mix-blend-mode: none;
    }
  }
}

aside span {
  line-height: 1.15;
}

aside .darken img {
  mix-blend-mode: darken;
}

.latest-news {
  position: sticky;
  top: 120px;
  bottom: 0;
}

.latest-news a {
  min-height: 5px;
}

.latest-news a strong {
  transition: color 200ms;
}

.latest-news a:hover strong {
  color: var(--bs-primary);
}

.latest-news a:last-of-type {
  border-bottom: 0 !important;
}

/* DRAWS GRID */

#draws .player {
  height: 45px;
}

.tabs #draws .container>.d-flex {
  gap: 2.45rem;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;

  .col {
    display: flex;
    scroll-snap-type: x mandatory;
    scroll-snap-align: start;
    flex-direction: column;
    gap: 1.25rem;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 260px;
    flex-basis: 260px;
  }
}


#draws .pair {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;

  position: relative;

  &::after {
    content: "";
    display: block;
    width: 1.26rem;
    height: 0;
    border-bottom: 2px solid var(--bs-secondary);
    position: absolute;
    top: 50%;
    right: -2.4rem;
    transform: translateY(-50%);
  }
}

#draws .player {
  text-decoration: none;
  color: var(--bs-body-color);
  line-height: 1.2;
  font-size: 0.875rem;
  position: relative;

  .text-muted {
	  font-size: 0.75rem;
  }

  &::after {
    content: "";
    display: block;
    width: 1.25rem;
    height: 30px;
    border-top: 2px solid var(--bs-light);
    border-right: 2px solid var(--bs-light);

    position: absolute;
    right: -1.25rem;
    top: 50%;
  }

  &:only-child {
    justify-self: center;
  }


  .rounded-circle {
    border: 3px solid var(--bs-light);
  }

  &.winner {
    .rounded-circle {
      border-color: var(--bs-secondary);
    }

    &::after {
      border-color: var(--bs-secondary);
    }
  }
}

#draws .player + .player,
#draws .champion + .player {
    &::after {
      border-top: none;
      border-bottom: 2px solid var(--bs-light);
      top: auto;
      bottom: 50%;
    }

	.winner::after {
		border-color: var(--bs-secondary) !important;
	}

}

#draws .player.winner::after {
	border-color: var(--bs-secondary) !important;
}

#draws .col+.col {
  gap: 2rem;
}

#draws .col:nth-child(2) .pair {
  padding-top: 29px;
  padding-bottom: 29px;
  height: 230px;
  flex-shrink: 0;

  .player::after {
    height: 63px;
  }
}

#draws .col:nth-child(3) {
  gap: 24px !important;
}

#draws .col:nth-child(3) .pair {
  padding-top: 91px;
  padding-bottom: 91px;
  height: 476px;
  flex-shrink: 0;

  .player::after {
    height: 125px;
  }
}

#draws .col:nth-child(4) {
  gap: 32px !important;
}

#draws .col:nth-child(4) .pair {
  padding-top: 212px;
  padding-bottom: 212px;
  height: 970px;
  flex-shrink: 0;

  .player::after {
    height: 400px;
  }
}


#draws .col:nth-child(5) {
  gap: 32px !important;
}

#draws .col:last-child {
	gap: 0 !important;
}

#draws .col:nth-child(5) .pair {
  padding-top: 462px;
  padding-bottom: 462px;
  height: 1972px;
  flex-shrink: 0;

  .player::after {
    height: 485px;
    border-top: 0;
    border-bottom: 0;
    left: 50%;
    width: 0;
    top: 100%;
  }

  .player:last-child::after {
    top: auto;
    bottom: 100%;
  }

  &::after {
	  width: 64%;
  }
}

/* #draws .col:last-child { */
/*   justify-content: center; */
/* } */
/**/
/* #draws .col:last-child .pair { */
/*     padding-top: 0; */
/*     padding-bottom: 0; */
/*     height: 1040px; */
/*     flex-shrink: 0; */
/* } */

.champion {
  text-decoration: none;
  color: var(--bs-body-color);
  position: absolute !important;
  left: calc(100% + 40px);
  top: 50%;
  transform: translateY(-50%);

  .country {
    margin-top: 1rem;
  }
}

.country {
  text-transform: uppercase;
}

.country img {
  height: 24px;
  width: auto;
}

.draws .country img {
  width: 24px;
  height: auto;
}

#featured-players a {
  text-decoration: none;
  color: var(--bs-body-color);
}
.drab-popup {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(0.1rem);
  /* isolation: isolate; */
}

.drab-popup.show {
  display: flex;
  opacity: 0;

  animation: showPopup 400ms linear 1 forwards;
}

@keyframes showPopup {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.drab-popup-wrapper {
  position: relative;
}

.drab-popup-close {
  position: absolute;
  top: -1rem;
  right: -1rem;

  text-decoration: none;
  width: 2rem;
  height: 2rem;
  line-height: 1;
  font-size: 1.6rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  color: red;
  box-shadow: 0 0.25rem 0.5rem -0.15rem hsl(0 0% 0% / 0.2);

  transition: transform 200ms;

  &:hover {
    transform: scale(1.1);
  }
}

.drab-popup-content {
  padding: 1.5rem;
  background-color: white;
  box-shadow: 0 1rem 2.5rem -0.5rem hsl(0 0% 0% / 0.2);

  width: 80vw;
  max-width: 500px;
}

.drab-popup-backdrop {
  background-color: hsl(0 0% 100% / 0.6);
  position: fixed;
  inset: 0;
  z-index: -1;
}

.draws-player-photo {
  width: 2rem;
  aspect-ratio: 1;
  overflow: hidden;
}

.news-content-row {
  --bs-gutter-x: 3.75rem;
  --bs-gutter-y: 3.75rem;

  margin-bottom: var(--bs-gutter-y);
}

#sub-sections>.row:first-child {
  margin-top: 0 !important;
}

#sub-sections .row.g-5 {
  --bs-gutter-y: 0;
}

iframe[src*="youtube"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.kontaktowa p a {
  text-decoration: none;
  color: var(--bs-primary);

  transition: color 200ms;

  &:hover {
    color: var(--bs-primary-dark);
    text-decoration: underline;
  }
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

table td span {
  padding: 0.25rem 0.5rem;
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: 0.375rem;
}

.schedule {
  font-size: 0.825rem;
  line-height: 1.25;
}

.schedule strong {
  display: inline-block;
  margin-top: 1em;
}

.schedule.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.schedule.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.schedule em {
  font-size: 2em;
  font-style: normal;
}

.schedule em small {
  font-size: 0.5em;
}

.schedule.calendar .date {
  border-top: 2px solid black;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 0rem;
  padding-right: 2rem;
  transition: 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.schedule .disabled {
  opacity: 0.24;
}

.schedule .date:hover {
  border-top: 2px solid var(--bs-primary);
  background: var(--bs-light);
  padding-left: 1rem;
  padding-right: 1rem;
}

.schedule .date.disabled:hover {
  border-top: 2px solid black;
  background: none;
  padding-left: 0rem;
  padding-right: 0rem;
}

.tickets ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  list-style: none;
  margin-bottom: 1rem;
}

.tickets ul li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.tickets ul li::before {
  content: '';
  display: inline-block;
  margin-right: 10px;
  width: 24px;
  height: 24px;
  background: url(../img/tick.svg);
  background-size: cover;
  flex-shrink: 0;
}



.accordion-button:not(.collapsed) {
  color: var(--bs-primary);
  background-color: var(--bs-light);
  box-shadow: none;
}


#ad_form .border-bottom {
  transition: border-color 200ms;
}

#ad_form .border-bottom:has(:checked),
#ad_form .border-bottom:hover,
#ad_form .border-bottom:focus {
  --bs-border-color: var(--bs-primary) !important;
}

#ad_form .border-bottom:has(:checked) label {
  font-weight: bold;
}

.price.badge {
  font-size: 1rem;
  padding: 0.25em 0.5em;
  font-weight: normal;
}

.form-control.error {
  border-color: red;
}

.error-msg {
  color: red;
  font-size: .75rem;
}

.total.form-control {
  width: 15ch;
  font-size: var(--h5);
}

#ad_form a.badge {
  font-size: inherit !important;
}



.gallery a {
  overflow: hidden;

  img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/11;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.215, 0.610, 0.355, 1);
  }

  &:hover img {
    transform: scale(1.1);
  }
}

.sub #featured-players .player-thumbnail::before {
  z-index: 10;
  background-image: linear-gradient(to top, white, transparent);
}

.sub #featured-players .player-thumbnail::after {
  background-color: var(--bs-light);
  transition: transform 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.sub .player-thumbnail img {
  z-index: 3;
  transform-origin: bottom;
  transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sub .player a:hover {
  .player-thumbnail img {
    transform: scale(1.05);
  }

  .player-thumbnail::after {
    transform: scale(.9);
  }
}


#partners a,
.sponsors a {
  display: flex;
  align-items: center;
  justify-content: center;
}

#partners a img {
  display: block;
  max-width: 100%;
}

#partners .col-lg-6 a {
  flex: 0 0 20%;
}


.sponsors a img {
  max-width: 180px;
}

.sponsors .d-flex a:only-child img {
  max-width: 350px;
}



/* draws tabs */

.tabs .nav-pills .nav-link {
  border-radius: 5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1.15rem;
  color: var(--bs-primary-dark);
  transition: color 200ms, background-color 200ms;
  text-decoration: none;

  &::after,
  &::before {
    display: none;
  }

  &:hover {
    background-color: var(--bs-light);
  }
}

.tabs .nav-pills .nav-link.active {
  color: white;
  background-color: var(--bs-primary);
}


main {overflow: hidden;}
.sub #main img {
  max-width: 100%;
  height: auto;
  display: block;
}



/* QUALIFYING DRAWS  */

.draws__qualifying .col:last-child .pair a::after,
.draws__qualifying .col:last-child .pair::after {display: none !important;}



/* DOUBLES DRAWS */

#draws.draws__doubles .player {
	height: 120px;
	border-radius: .5rem !important;
}

#draws.draws__doubles .player::after {height: 67px;}

#draws.draws__doubles .col:nth-child(2) .pair {
    padding-top: 66px;
    padding-bottom: 66px;
    height: 528px;
    flex-shrink: 0;
}

#draws.draws__doubles .col:nth-child(2) .pair .player::after {height: 137px;}

#draws.draws__doubles .col:nth-child(3) .pair {
    padding-top: 203px;
    padding-bottom: 203px;
    height: 1075px;
    flex-shrink: 0;
}

#draws.draws__doubles .col:nth-child(3) .pair .player::after {height: 275px;}

#draws.draws__doubles .col:nth-child(4) .pair {
    padding-top: 475px;
    padding-bottom: 475px;
    height: 2169px;
    flex-shrink: 0;
}

#draws.draws__doubles .col:nth-child(4) .pair .player::after {height: 550px;}

#draws.draws__doubles .col:nth-child(5) .pair {
    padding-top: 1023px;
    padding-bottom: 1023px;
    height: 4370px;
    flex-shrink: 0;
}

#draws.draws__doubles .col:nth-child(5) .pair .player::after {height: 1042px;}

#draws.draws__doubles .champion .rounded-circle {
	width: 120px;
}

.player .name,
.champion__player .name {
	display: block;
	line-height: 1.1;
}

#draws.draws__qualifying .col:last-child {
  gap: 24px !important;
}

.summary {
  th, td {
    background-color: transparent;
  }
}



/*
		MEDIA QUERIES
*/

@media (max-width: 1381px) {
  .nav-link.d-inline-flex {
    padding: 0.875rem 2rem !important;
  }

  .navbar {
    --bs-navbar-nav-link-padding-x: 1.25rem;
  }

  .nav-link {
    font-size: 1rem;
  }
}


@media (max-width: 1199px) {
  .navbar-brand-image {
    height: 35px;
  }

  .navbar-brand .serif {
    font-size: .875rem;
    margin-inline-start: 1rem;
    padding: .5rem 0 .5rem 1rem;
  }

  .nav-link:not(.d-inline-flex) {
    color: black;

    &.active {
      color: var(--bs-primary);
    }
  }

  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link.show {
    color: var(--bs-primary);
    justify-content: center;
    text-align: center;
  }

  .dropdown-menu {
    width: 100%;
    max-width: 100%;
  }


  .affix {
    top: 0;

    .navbar-brand {
      padding: .75rem 0;

      .serif {display: none;}
    }
  }

}


@media (max-width: 992px) {
  .navbar-toggler {border-color: white}

  #first-serve-in .flex-grow-1 {
    padding-inline: 0;
  }

  #first-serve-in .flex-column {
    padding-inline: 1.5rem;
  }

  #featured-players .player-thumbnail::after {
    width: 60%;
  }

  #partners .border-end {
    border: 0 !important
  }

  footer .justify-content-lg-between {
    flex-direction: column;
  }

  #sub-sections {
    margin-top: 4rem;

    .row .col-lg-6:last-child {
      margin-top: 2rem;
    }
  }

  /* schelude */
  .schedule {
    font-size: 1rem;
  }

  .schedule.days {
    display: none;
  }

  .schedule .disabled {
    display: none;
  }

  .schedule.calendar {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  }

  .schedule.calendar .date {
    border-top: 2px solid black;
    padding-top: 1rem;
    padding-bottom: 0rem;
    padding-left: 0rem;
    padding-right: 0rem;
    transition: 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
  }

  .schedule .date:hover {
    border-top: 2px solid black;
    background: none;
    padding-left: 0rem;
    padding-right: 0rem;
  }
/*
  .schedule .date:nth-of-type(1n)::before {
    content: "MONDAY";
    display: block;
  }

  .schedule .date:nth-of-type(2n)::before {
    content: "TUESDAY";
  }

  .schedule .date:nth-of-type(3n)::before {
    content: "WEDNESDAY";
  }

  .schedule .date:nth-of-type(4n)::before {
    content: "THURSDAY";
  }

  .schedule .date:nth-of-type(5n)::before {
    content: "FRIDAY";
  }

  .schedule .date:nth-of-type(6n)::before {
    content: "SATURDAY";
  }

  .schedule .date:nth-of-type(7n)::before {
    content: "SUNDAY";
  } */

  .schedule .weekday {
    display: block;
    text-transform: uppercase;
    color: hsl(0 0% 50%);
  }

  .atp-logo img {height: 20px;}
}


@media (max-width: 767px) {
  :root {
    --xxl: 4rem;
    --xl: 2rem;
  }

  header .h2 {font-size: var(--h3);}

  #first-serve-in .container>.d-flex {
    display: grid !important;
    row-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);

    h4 {
      grid-column: span 4;
      text-align: center;
    }
  }

  .home #news h3.pe-md-4 {
    display: none;
  }

  #boxes .d-flex {
    flex-direction: column;
  }

  #boxes .w-100 {
    height: auto;
    aspect-ratio: 16/6;
  }

  #partners .border-end {
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  footer .col-lg-6 .list-unstyled li {
    flex-basis: 100%;
  }

  footer {text-align: center;}

  .sub header img {
    height: 400px;
  }

  .breadcrumb {font-size: .75rem;}

  article p a {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 55vw;
    display: inline-block;
  }
}


@media (max-width: 600px) {
  .navbar-brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar-brand .serif {
    width: 40ch;
    font-size: .75rem;
    margin: .5rem 0 0 0;
    padding: .5rem 0 0 0;
    border-left:0;
    border-top: 1px solid hsl(0 0% 100% / .2);
  }

  .affix .atp-logo {display: none !important;}

  .btn {
    padding: 1rem 1.5rem;
  }

  #first-serve-in .flex-column {
    padding-inline: .5rem;
  }

  header .swiper-button-prev,
  header .swiper-button-next {
    display: none;
  }

  #partners .col-lg-6 a {
    flex: 0 0 33%;
  }
}

@media (max-width: 490px) {
  #boxes .w-100 {
    aspect-ratio: 16/9;
  }

  #featured-players .container > .d-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .swiper-slide .p-5 {
    padding: 1.5rem !important;
  }

  #first-serve-in .btn {
    font-size: .75rem;
  }

  .home #news .d-flex.gap-4 {
    gap: 1rem !important
  }

  .tab-link strong {
    display: block;
    line-height: 1.1;
  }

  .card-img-start .w-100 {
    width: 100px !important;
  }

  #partners .col-lg-6 .gap-5 {
    gap: 1.5rem !important;
  }

  aside a.ps-5 {
    padding-left: 1.5rem !important;
  }

  .navbar-brand {
    width: 160px;
    white-space: normal;
    align-items: flex-start !important;

    .serif {
      width: 100%;
      font-size: 0.7rem;
    }
  }
}

blockquote {
  background-image: url(../img/quote.svg);
  background-repeat: no-repeat;
  background-position: 0 0;
  padding: 2rem;
  font-family: 'Bluu Next', serif;
  font-size: 1.5rem;
  color: var(--bs-primary-dark);
  line-height: 1.4;
  display: block;

  span {
    color: var(--bs-primary-dark) !important;
  }
}

.lead strong, .lead b {
  font-weight: bold;
}
