/*
Theme Name: Freestyle Swim
Theme URI: https://freestyle-swim.com
Author: Freestyle Swim Team
Description: Professional · Efficient · Enjoyable Swimming Experience
Version: 1.0
Text Domain: freestyle-swim
*/
:root {
  --primary-color: #1e88e5;
  --secondary-color: #00bfff;
  --background-color: #eaf6ff;
  --heading-color: #0a2663;
  --text-color: #333;
  --gradient-color: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

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

a {
  text-decoration: none;
}

button {
  background: none;
  border: none;
}

img {
  max-width: 100%;
  height: auto;
}

iframe {
  border: none;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #4682b4 #fcfcfc;
}

body {
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  font-weight: 500;
  background: var(--background-color);
  color: var(--text-color);
}

.container-fluid,
.container-sm,
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

.container-fluid {
  max-width: 1600px;
}

.container-sm {
  max-width: 900px;
}

.container {
  max-width: 1260px;
}

.bg-white {
  background: #fff;
}

.py-120 {
  padding-top: 120px;
  padding-bottom: 120px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-25 {
  margin-top: 25px;
}

.mb-25 {
  margin-bottom: 25px;
}

.mb-60 {
  margin-bottom: 60px;
}

.ml-10 {
  margin-left: 10px;
}

.title {
  font-size: 36px;
  text-align: center;
  color: var(--heading-color);
  margin: -5px 0 60px;
  padding-bottom: 20px;
  position: relative;
}

.title:after,
.page-header h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'><path d='M0 6 Q 10 0, 20 6 T 40 6 T 60 6 T 80 6 T 100 6 T 120 6' fill='none' stroke='%2300bfff' stroke-width='3'/></svg>");
}

.btn {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  background: var(--gradient-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-sm {
  font-size: 14px;
  padding: 6px 16px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.link {
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.topbar {
  background: var(--gradient-color);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0 7px;
}

.topbar-list {
  display: flex;
  gap: 20px;
  flex: 1;
}

.topbar-list:not(:first-child):not(:last-child) {
  justify-content: center;
}

.topbar-list:last-child {
  justify-content: flex-end;
}

.topbar:has(.topbar-list:nth-child(n+4)) .topbar-list {
  flex-direction: column;
  gap: 0;
}

.topbar-list li {
  display: flex;
  align-items: center;
  font-size: 15px;
  gap: 5px;
}

.topbar-list li > span {
  filter: brightness(1.5);
}

.topbar-list li a {
  color: #fff;
}

.topbar-list li a span {
  color: #ffeb3b;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo img {
  width: 300px;
  position: relative;
  top: 2px;
}

.menu li a {
  color: var(--heading-color);
  font-weight: 700;
  padding: 16px 22px;
  display: block;
  border-radius: 8px;
  position: relative;
  transition: color 0.3s ease;
}

.menu li a:hover {
  color: var(--primary-color);
}

.menu li a.active {
  color: var(--primary-color);
  background: var(--background-color);
}

.menu-toggle {
  font-size: 32px;
  line-height: 1;
  color: var(--primary-color);
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: -1;
}

.hero iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.scroll-down {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 2;
}

.scroll-down svg {
  fill: #fff;
  width: 32px;
  height: 32px;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-down:hover svg {
  animation-play-state: paused;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

#news {
  scroll-margin-top: 80px;
}

.news-box {
  border-radius: 15px;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.news-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.news-box-head {
  color: #fff;
  background: var(--gradient-color);
  padding: 15px 30px;
  text-align: center;
}

.news-box-body {
  background: #fff;
  padding: 25px 30px 30px;
}

.news-box h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.news-box h3 a {
  color: inherit;
}

.news-box-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  font-size: 18px;
  margin: 25px 0;
}

.news-box-grid p a {
  color: inherit;
  font-weight: 500;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.video-item {
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.video-item:hover {
  transform: scale(1.02);
}

.video-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.video-title {
  color: #fff;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient-color);
}

.footer {
  background: #fff;
  margin-top: 90px;
}

.py-120 + .footer,
.error404 .footer {
  margin-top: 10px;
}

.footer .wave {
  width: 100%;
  height: 60px;
  fill: var(--background-color);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 60px 0;
}

.footer-list li {
  display: flex;
  align-items: center;
  margin-top: 5px;
  gap: 10px;
}

.footer-list li a {
  color: var(--text-color);
}

.footer h4 {
  color: var(--heading-color);
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-location:has(h4:nth-of-type(n+3)) h4 {
  display: none;
}

.footer .title {
  font-size: 22px;
  text-align: left;
  margin-bottom: 25px;
}

.footer .title:after {
  left: 0;
  transform: none;
  width: 112px;
}

.footer a {
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-left: 15px;
  list-style: disc;
  gap: 16px;
}

.footer-menu li::marker {
  color: var(--secondary-color);
}

.footer-menu li a {
  color: var(--heading-color);
  font-weight: 700;
}

.footer .video-item {
  max-width: 250px;
  margin-left: auto;
}

.footer .video-item img {
  aspect-ratio: 1.48;
  object-fit: cover;
}

.footer .video-title {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}

.footer .video-title span {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  color: var(--text-color);
  border-radius: 8px;
  padding: 4px 10px;
  margin-top: 5px;
  gap: 3px;
}

.footer .video-title svg {
  width: 28px;
  fill: #f00;
}

.copyright {
  color: #fff;
  background: var(--primary-color);
  text-align: center;
  padding: 15px 0;
}

.btn-top {
  font-size: 26px;
  font-weight: 500;
  padding: 5px 14px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-top.show {
  opacity: 0.7;
  pointer-events: auto;
}

.btn-top.show:hover {
  opacity: 1;
}

.page-header {
  color: #fff;
  padding: 45px 0;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  background-image: url('../img/banner.jpg');
  background-size: cover;
}

.page-header:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.page-header h1 {
  font-size: 48px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header h1:after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'><path d='M0 6 Q 10 0, 20 6 T 40 6 T 60 6 T 80 6 T 100 6 T 120 6' fill='none' stroke='%23ffffff' stroke-width='3'/></svg>");
}

.page-header p {
  font-size: 19px;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.card {
  padding: 40px;
  background: #fff;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.card img:only-child {
  width: 100%;
}

.card h2,
.card h2.card-title {
  color: var(--heading-color);
  font-size: 28px;
  margin-bottom: 20px;
}

.card h2:only-child {
  margin-bottom: 0;
}

.card h2.card-title {
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.card h2.news-title {
  font-size: 26px;
}

.card h3 {
  color: var(--secondary-color);
  font-size: 20px;
  margin-bottom: 15px;
}

.card p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-news {
  scroll-margin-top: 110px;
}

.card-news p.news-content {
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-bottom: 20px;
}

.card-news p.news-content:empty {
  display: none;
}

.card-news p.news-content.expanded {
  -webkit-line-clamp: unset;
}

.card-news .link {
  display: none;
}

.card-news .news-date {
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
}

.highlight-text {
  color: var(--primary-color);
  font-weight: 700;
}

.feature-list {
  background: var(--background-color);
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
}

.feature-list h3 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-list li {
  padding: 8px 0;
}

.feature-list li:before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
  margin-right: 8px;
}

.contact-list {
  margin: 25px 0;
}

.contact-list .label,
.booking-list .label {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-list .info {
  line-height: 1.8;
  margin-left: 26px;
}

.hours-list {
  display: inline-block;
}

.hours-list li,
.booking-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  padding: 5px 0;
}

.hours-list li:last-child,
.booking-list li:last-child {
  border-bottom: none;
}

.day {
  color: var(--primary-color);
  font-weight: 700;
  min-width: 120px;
}

.phone-number {
  display: block;
  padding: 5px 0;
}

.booking-list .info {
  line-height: 1.8;
}

.booking-list .info li {
  padding: 12px 0;
  align-items: center;
}

.booking-list .info p {
  margin-bottom: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 60px;
  gap: 8px;
}

.pagination .page-numbers {
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  min-width: 36px;
  padding: 8px 14px;
  text-align: center;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pagination .page-numbers:not(.current):hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.pagination .page-numbers.current {
  color: #fff;
  background: var(--primary-color);
}

.testimonials {
  padding-top: 50px;
  margin-bottom: -10px;
}

.testimonials .title {
  margin-bottom: 40px;
}

.testimonials .swiper {
  padding: 20px 0; 
}

.testimonials .swiper-slide {
  height: auto;
}

.testimonials .card {
  height: 100%;
  margin-bottom: 0;
}

.testimonials .stars {
  margin-bottom: 17px;
  display: flex;
  gap: 2px;
}

.testimonials .stars svg {
  width: 20px;
  fill: #ff9800;
}

.testimonials .card p {
  color: var(--heading-color);
  font-style: italic;
}

.swiper-buttons {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 60px;
  gap: 30px;
}

.swiper-buttons .swiper-button-prev,
.swiper-buttons .swiper-button-next {
  color: #fff;
  position: static;
  user-select: none;
  pointer-events: auto;
}

.swiper-buttons .swiper-button-prev svg,
.swiper-buttons .swiper-button-next svg {
  width: 10px;
}

.title404 {
  display: flex;
  justify-content: center;
}

.error404 main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 40px;
}

.error404 main h1 {
  color: var(--secondary-color);
  font-size: 140px;
  font-weight: 700;
  margin-bottom: 20px;
}

.error404 main h1 span {
  color: var(--primary-color);
}

.error404 main svg {
  width: 170px;
  fill: var(--secondary-color);
}

.error404 main p {
  color: var(--primary--color);
  font-size: 36px;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .hero {
    height: calc(100vh - 82px);
  }
}

@media (min-width: 1200px) {
  .header-inner {
    height: 82px;
  }

  .menu {
    display: flex;
  }

  .menu li:has(.nav-btn) {
    display: none;
  }

  .menu-toggle,
  .menu-backdrop {
    display: none;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .logo img {
    width: 250px;
  }

  .menu li a {
    font-size: 15px;
    padding: 16px;
  }
}

/*@media (min-width: 1400px) {
  .logo img {
    width: 250px;
  }
}*/

@media (max-width: 1199px) {
  .topbar:has(.topbar-list:nth-child(n+3)) {
    display: none;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    display: none;
    z-index: 99;
  }

  .menu.active {
    display: block;
  }

  .menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 34, 40, .7);
    display: none;
    z-index: 98;
  }

  .menu.active ~ .menu-backdrop {
    display: block;
  }

  .menu-backdrop svg {
    position: absolute;
    top: 16px;
    left: 330px;
    width: 26px;
    height: 26px;
    fill: #fff;
    cursor: pointer;
  }

  .menu li a {
    display: block;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    border-radius: 0;
  }

  .header .btn {
    display: none;
  }

  #news {
    scroll-margin-top: 60px;
  }

  .card-news {
    scroll-margin-top: 90px;
  }
}

@media (max-width: 991px) {
  .py-120 {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .title {
    font-size: 30px;
  }

  .hero {
    aspect-ratio: 1.5;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .scroll-down {
    bottom: 5px;
  }

  .scroll-down svg {
    width: 26px;
    height: 26px;
  }

  .news-box-head {
    padding: 15px 20px;
  }

  .news-box-body {
    padding: 25px 20px 30px;
  }

  .news-box-grid {
    grid-template-columns: 120px 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 25px 0;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .card {
    padding: 25px;
  }

  .card:has(img:only-child) {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .card h2 {
    font-size: 24px;
  }

  .booking-list .info li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px; 
  }

  .error404 main h1 {
    font-size: 100px;
  }

  .error404 main p {
    font-size: 26px;
  }

  .error404 main svg {
    width: 120px;
  }
}

@media (max-width: 767px) {
  .topbar {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
  }

  .footer-location {
    flex: 1;
  }

  .footer-links {
    order: 10;
    width: 100%;
    flex: none;
    margin-top: 30px;
  }
}

@media (max-width: 599px) {
  .logo img {
    width:250px;
  }

  .footer {
    margin-top: 70px;
  }
  .footer .wave {
    height: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 20px;
  }

  .footer .video-item {
    max-width: 100%;
    margin-top: 25px;
    margin-left: 0;
  }
}