/* style for everything */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-color: transparent transparent; /* thumb and track color */
    scrollbar-width: 0px;
}

*::-webkit-scrollbar {
    width: 0;
  }
  
  *::-webkit-scrollbar-track {
    background: transparent;
  }
  
  *::-webkit-scrollbar-thumb {
    background: transparent;
    border: none;
  }
  
* {
    -ms-overflow-style: none;
}

/* Body styling: brand background, font */
body {
    font-family: 'Ubuntu', sans-serif;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    overflow-x: hidden !important;
    color: #333;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden !important;
}

#siteHeader {
  }


/* Navbar */
header {
    width: 100%;
    max-width: 100vw !important;
    position: fixed;
    top: -15px;
    left: 0;
    z-index: 999;
    background-color: transparent !important;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

@media screen and (max-width: 1202px) {
  .closed{
    display: none !important;
    opacity: 0;
  }
  
}


@media screen and (min-width: 1202px) {
  header.scrolled {
    top: 0px;
    background-color: rgba(43, 103, 119, 0.9);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  }
}


.shadow{
  box-shadow: none;
  -webkit-box-shadow: none !important;
}

/* ─── DESKTOP (unchanged) ─── */
.same-back {
  background-image: url('https://competentswimming.co.uk/wp-content/themes/twentytwentyfour-child/assets/images/background/homepage/Competent-Swimming-home-design-part-1-part-2-no42-premium-license-sea-waves.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  height: clamp(1500px, 220vh, 1650px);
}

/* ─── MOBILE OVERRIDE (crop via cover) ─── */
@media screen and (max-width: 768px) {
  .same-back {
    /* swap in your mobile‑optimized JPG */
    background-image: url('https://competentswimming.co.uk/wp-content/themes/twentytwentyfour-child/assets/images/background/homepage/Competent-Swimming-home-design-part-1-part-2-no42-premium-license-sea-waves-mobile2.jpg');
    background-repeat: no-repeat;
    background-position: center center;  /* adjust focal point as needed */
    background-size: cover;              /* <-- this will crop to fill */ 
    height: calc(1860px + 5rem - 80px);
  }

  .shadow {
    height: 1250px !important;
  }

  #car-cta {
    display: none !important;
  }
}




nav {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #fff;
}

/* Logo link */
.logo-link {
    display: inline-block;
}

@media screen and (min-width: 1202px) {
  header.scrolled .logo-img {
      height: 60px;
  }
}

.logo-img {
    transition: all 0.4s ease;
    height: 160px;
    width: auto;
    object-fit: contain;
}

/* before scroll */
header .logo-img {
  margin-top: 15px;
  transition: margin-top 0.4s ease;
}

/* after scroll */
header.scrolled .logo-img {
  margin-top: 0;
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: 0.3s;
    z-index: 9999;
}

.bar {
    width: 26px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

.hamburger.change .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.change .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.change .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin-right: 50px;
}

.nav-item {
    position: relative;
    margin: 0 15px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 12px 0;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    color: #F76C6C; /* CTA 1 */
}
.custom-cta{
  background: linear-gradient(to right, #2c3e50, #06d6d6) !important;
  color: #fff8f0 !important;
}

.cta-btn {
    background-color: #F76C6C;
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s ease;
    margin-left: 20px;
    display: inline-block;
}

.cta-btn:hover {
    background-color: #C1A35D;
    transform: scale(1.05);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2C3E50;
    border-radius: 6px;
    min-width: 170px;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.dropdown li {
    width: 100%;
}

.dropdown li a {
    display: block;
    padding: 10px 14px;
    color: #FFFFFF;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.dropdown li a:hover {
    background-color: #52BCC3; 
}

@media (hover: hover) {
    .nav-item:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    }
}


/* Part 6 */
.fade-mask {
    -webkit-mask-image:
    linear-gradient(to top, transparent, black 30%),
    linear-gradient(to bottom, transparent, black 30%),
    linear-gradient(to left, transparent, black 30%),
    linear-gradient(to right, transparent, black 30%);
    -webkit-mask-composite: intersect;
    mask-composite: intersect;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: cover;
    -webkit-mask-size: cover;
}




/* Part 1 */
.main-container-v2 {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    margin: 0 auto;
    padding-top: 120px; /* enough gap from the fixed header */
    padding-bottom: 20px;
    overflow-x: hidden;
    margin-top: 80px;
}

@media screen and (max-width: 768px) {
  .main-container-v2 {
    background-attachment: scroll;
  }
}

@media screen and (max-width: 1202px) {
    .main-container-v2 {
        padding-bottom: 0px; /* Adjusted for smaller screens */
    }
  
}

/* Base flex for all sizes ≥1202px */
@media screen and (min-width: 1202px) {
  .left-column {
    flex: 0 0 50%;
  }
}

/* 1202px–1500px: 2.5vw padding */
@media screen and (min-width: 1202px) and (max-width: 1500px) {
  .left-column {
    padding-left: 2.5vw;
    padding-right: 2.5vw;
  }
}

/* 1501px–1579px: 4vw padding */
@media screen and (min-width: 1501px) and (max-width: 1579px) {
  .left-column {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

/* 1580px and up: 5vw padding */
@media screen and (min-width: 1580px) {
  .left-column {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}


.content-wrapper-v2 {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px auto 0px auto;
}


.left-column-inner {
    width: 100%;
    max-width: 650px;
    margin: 0 50px;
}

.right-column{
    flex: 0 0 auto;
    display: flex;
}

.intro-text h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    line-height: 80px;
    font-family: Ubuntu;
    font-weight: 700;
}

.intro-text .sub-heading {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 35px;
    color: #F5F5F5;
}

.join-cta {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(to right, rgba(247,108,108,0.95), rgba(193,163,93,0.95));
  padding: 14px 30px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 0;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 6px;
}

/* This pseudo-element creates the zoom-from-centre effect */
.join-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%; /* large enough to cover the button when scaled */
  aspect-ratio: 1 / 1;
  background-color: rgba(255, 255, 255, 0.21);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease-out;
  z-index: -1; /* place it behind the button content */
}

.join-cta:hover {
  backdrop-filter: blur(205px);
  -webkit-backdrop-filter: blur(205px) saturate(200%);
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.join-cta:hover::before {
  transform: translate(-50%, -50%) scale(1);
}



.intro-text .additional-info {
    font-size: 1rem;
    margin-top: 15px;
    padding-bottom: 10px;
    color: #F5F5F5;
    font-weight: 400;
    text-align: start;
}

.feature-boxes {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;  /* Space between individual feature boxes */
    align-items: center;
    perspective: 1000px; 
}

  .feature-box {
    display: inline-flex;
    flex: 0 1 auto;
    width: fit-content;
    height: fit-content;
    box-sizing: border-box;
    background-color: #0c4a6e;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid; 
    border-image: linear-gradient(to right, white, silver) 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  
    /* 3D transform settings */
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    cursor: pointer;
  }
  @media screen and (max-width: 1202px) {
    #black-container{
      transform: scale(1) !important;
    }
    header{
      position: absolute;
    }
    .feature-box {
      width: 70%;
      padding: 20px;
    }
    .laptop-break{
      display: none;
    }
    .feature-heading{
      font-size: 1.54rem !important;
    }
    .feature-paragraph{
      font-size: 0.9rem !important;
    }
    .feature-text{
      line-height: 1.4rem !important;
    }
  }
  
  .feature-content {
    display: flex;
    align-items: center;
    gap: 10px;  /* Space between the icon and the text */
    max-width: 100%; /* Ensures it does not take extra space */
  }
  
  .feature-icon {
    width: 40px;       /* Adjust width as needed */
    height: 40px;      /* Maintains aspect ratio */
    flex-shrink: 0;    /* Prevent the icon from shrinking */
  }

  .feature-text {
    flex: 1;           /* Allows the text to fill the remaining space */
  }
  .feature-heading {
    font-size: 1.37rem;
    color: #ffffff;  /* Changed from #333 to white */
    font-family: Ubuntu;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px; /* Slightly tighter text for denser look */  
  }
  
  .feature-paragraph {
    font-size: 0.7rem;
    background: linear-gradient(to right, rgb(243, 37, 37) 10%, rgb(166, 135, 64) 100%);
      -webkit-background-clip: text; /* Clipping background to text */
      -webkit-text-fill-color: transparent; /* Makes text transparent to show gradient */
    font-family: Ubuntu;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px; /* Slightly tighter text for denser look */  
  }

.video-wrapper {
    display: flex;
    justify-content: flex-end; /* Pushes video to the right */
    align-items: flex-start; /* Adjusts vertical alignment */
    width: 100%;
}

.video-section {
    margin-top: 40px;
}

.video-embed, .video-container {
  width: 100%;
  width: 45vw;
  aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio */
  background-color: black;     /* Background for letterbox bars */
  overflow: hidden;            /* Hide overflow to enforce letterboxing */
  margin-left: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);

  /* Gradient border on all sides */
  border: 0.1px solid;
  border-image: linear-gradient(to right, white, silver) 1;

  /* Remove the right border */
  border-right: none;

}

.carousel-section{
  opacity: 0;
  transition: opacity 5s ease-in-out;
}

.carousel-section.visible {
  opacity: 1;
}

.right-column,
.video-wrapper,
.video-container,
.video-embed {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.video-isolation {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}


.video-container {
  position: relative; /* <-- add this */
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  /* Make it a perfect circle: */
  width: 4vw;              /* or a fixed px value: 60px */
  aspect-ratio: 1 / 1;     /* ensures height == width */
  padding: 0;              /* no extra padding */
  border-radius: 50%;

  /* styling */
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;

  /* icon sizing */
  font-size: 2vw;          /* adjust so the ▶︎ fits nicely */
  color: white;

  cursor: pointer;
  transition: opacity 0.3s ease;
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: block;
  transform: translate(2px, 1.5px);
}

/* existing .play-overlay, .play-icon rules here… */

/* ==== add this at the bottom of your stylesheet ==== */
@media (max-width: 600px) {
  .play-overlay {
    /* switch from 4vw to a solid 60px circle on phones */
    width: 60px;
    aspect-ratio: 1;
    font-size: 24px;      /* bump the icon up to 24px */
  }

  .play-icon {
    /* you can tweak the centering nudge here if needed */
    transform: translate(1px, 1px);
  }
}



@media (max-width: 1202px) {
  .custom-cta{
    width: 252.41px
  }
  .begin_to_understand{
    display: none;
  }
  .content-wrapper-v2 {
    flex-direction: column;
  }
  .intro-text{
    padding: 0 20px;
  }
  .intro-text h1 {
    line-height: 4rem;
    text-align: center;
    font-size: 3rem;
  }
  .intro-text .sub-heading {
    text-align: center;
    font-size: 1.1rem;
  }
  .for-back-cta{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .additional-info-back{
    text-align: center !important;
  }
  .join-cta {
      margin: 0 auto;
      font-size: 1.15rem;
      padding: 15px 16px;
      width: 300px;

  }

  .feature-heading {
      font-size: 1.45rem !important;
  }

  .feature-paragraph {
      font-size: 0.6rem;
  }
  .content-wrapper-v2{
    flex-direction: column;
  }
  .left-column{
    width: 100% !important;
    max-width: 100% !important;
  }
  .left-column-inner{
    max-width: 100% !important;
    margin: 0;
  }
  .feature-boxes {
    justify-content: center;
    flex-direction: column;
  }
  .feature-box{
    margin-top: -25px;
    transform: scale(0.8);
    /* transform: scale(1.2); */
  }
  .feature-box:first-child{
    margin-top: 50px;
  }
  .right-column{
    width: 90% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    
  }
  .video-embed, .video-container{
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio */
    margin-left: auto;
  }
}

@media screen and (max-width: 400px) {
  .intro-text h1{
    font-size: 2.5rem;
  }
  .feature-heading{
    font-size: 1.2rem !important;
  }
  .feature-paragraph{
    font-size: 0.84rem !important;
  }
  .see-full-review{
    padding: 12px 5px !important;
    width: 110px !important;
    font-size: 0.7rem !important;
  }
  .testimonial-actual{
    padding: 20px !important;
  }
  .btn-stroke{
    font-size: 0.8rem !important;
  }
  #swim-heading{
    font-size: 2rem !important;
  }
  .essential-simple{
    font-size: 2rem !important;
  }
  #swim-heading-2{
    font-size: 1.6rem !important;
  }
}

@media screen and (min-width: 1202px) {
  .transformative-container{
    transform: scale(0.8); 
    width: 100%;
  }

}
@media (max-width: 768px) {
  /* Ensure the slider container doesn't allow horizontal overflow */
  #testimonial-slider-1 {
    overflow-x: hidden;
    width: 100%;
  }
  /* Stack testimonials vertically and force full width */
  #testimonial-slider-1 .slider-track {
    flex-direction: column;
    width: 100%;
  }
  /* Override testimonial card widths and allow shrinking */
  #testimonial-slider-1 .slider-track > div {
    width: 100%;
    max-width: 100%;
    flex-shrink: 1; /* Allow cards to shrink */
    height: auto !important;
  }
  /* Remove bottom margin from the last card */
  #testimonial-slider-1 .slider-track > div:last-child {
    margin-bottom: 0;
  }
  /* Adjust button margin for mobile */
  #testimonial-slider-1 .slider-track > div button {
    margin-left: 35px !important;
  }
}

@media (max-width: 768px) {
  .slider-track{
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .logo-link {
    margin-top: 15px;
  }
}

@media (max-width: 1202px) {
  .img-de-la{
    display: none;
  }
  #testimonial-slider-2{
    display: none;
    opacity: 0;
  }
  .bubble{
    bottom: -2500px;
  }
  .hamburger {
    display: flex;
    z-index: 999;
    cursor: pointer;
    padding: 20px;
  }

  nav {
    position: relative;
    height: auto;
    z-index: 998;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    width: 80%;
    max-width: 300px;
    background-color: rgba(43, 103, 119, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
    margin-right: 0px; !important;
  }

  .nav-item {
    width: 100%;
    margin-bottom: 16px;
  }

  .nav-link {
    width: 100%;
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:hover {
    opacity: 0.8;
  }

  .dropdown {
    position: static;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    width: 100%;
  }

  .nav-item.open .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 500px; /* allow enough room for dropdown links */
    padding: 10px;
  }

  .dropdown li a {
    padding-left: 20px;
    display: block;
    padding: 10px 0;
    color: #f0f0f0;
    font-size: 1rem;
  }

  .close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
  }

  body.nav-open {
    overflow: hidden;
  }
}





/* Part 2 */
.carousel {
  position: relative;
  margin: 0px auto;
  overflow: hidden;
  padding: 20px 20px 0 20px;
  scale: 1;
  transform: scale(1.4);
  overflow-x: hidden;
  position: fixed;
}
.car-back{
  position: absolute; /* Ensure it's positioned relative to its container */
  bottom: calc(var(--vh, 1vh) * 3);
  bottom: 3dvh;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.carousel-section {
  text-align: center;
  padding: 20px 20px 0 20px;
  overflow-x: hidden;
  transform: translateY(-80px);
  height: 800px;
}

.carousel-heading {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

/* Track Container */
.carousel-track-container {
  overflow: hidden;
  transition: opacity 0.6s ease;
}

/* Carousel Track */
.carousel-track {
  display: flex;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Each Slide occupies 33.33% of carousel width by default */
.slide {
  flex: 0 0 33.33%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  transition: opacity 0.6s ease;
}

/* Video element styling with transition */
.slide video {
  transition: all 0.6s ease;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(63, 63, 63, 0.5);
}

/* For non-active (side) slides, video is slightly smaller and dimmer */
.slide:not(.active) video {
  width: 80%;
  opacity: 0.6;
  margin-left: 10%;
}

/* For active (center) slide, video is larger and fully opaque */
.slide.active video {
  width: 100%;
  height: auto;
  opacity: 1;
  margin-left: 0%;
  z-index: 2;
  margin: 0 auto;
  padding: 0;
}
.slide.active {
  /* padding-top: 20px; */
  /* font-size: 20px; */
  margin-top: 110px !important;
}
.slide.active h2{
  font-size: 2rem;
  margin-top: 20px;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700; 
}

.slide:not(.active) h2, .slide:not(.active) p {
  transition: all 0.6s ease;
  opacity: 0;
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  background: rgba(0, 0, 0, 0);
  border: 1px solid #fff;
  border-radius:25%;
  width: 50px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 3;
}

.text-content{
  padding: 0px 20px 20px 20px;
  text-align: start;
}
.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slide:not(.active) .text-content {
  height: 243.82px;
}

.carousel-arrow svg {
  fill: #fff;
  width: 20px;
  height: 20px;
}

/* Adjusted positions for larger screens */
.carousel-arrow.prev {
  left: 30.5%;
}
.carousel-arrow.next {
  right: 30.5%;
}

/* Remove default focus outline */
.carousel-arrow:focus {
  outline: none;
}
.carousel-arrow:focus-visible {
  outline: 2px solid #fff;
}


@media screen and (max-width: 1202px) {

  .car-back{
    position: relative; /* Ensure it's positioned relative to its container */
    left: 50% !important;
    transform: translateX(-54%) !important;
  }
  
  .carousel {
    margin: 0px;
    padding: 0;
    transform: scale(1);
    overflow-x: hidden;
    position: relative;
    margin-top: 110px;
  }

  .carousel-section {
    padding: 0;
    height: auto;
  }
  .slide:not(.active) {
    display: none;
  }
  .slide.active video {
    width: 100%;
    height: auto;
    opacity: 1;
    margin-left: 0%;
    z-index: 2;
    margin: 0 auto;
    padding: 0;
  }
  .carousel-arrow.prev {
    left: 10%;
  }
  .carousel-arrow.next {
    right: 10%;
  }
  .carousel-track{
    display: block;
  }
  .carousel-arrow{
    top: 47%;
  }
}  

  .bubble {
    position: absolute;
    bottom: -1500px;  /* start slightly below the viewport */
    background: rgba(255, 255, 255, 0.3); /* semi-transparent fill */
    border: 1px solid rgba(255, 255, 255, 0.7); /* subtle border */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); /* soft glow effect */
    animation: rise linear forwards;
    z-index: 0 !important;
  }
  .bubble::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 20%;
    height: 20%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
  }
  
  @keyframes rise {
    0% {
      transform: translateY(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    100% {
      transform: translateY(calc(var(--vh, 1vh) * -200));
      transform: translateY(-200dvh);
      opacity: 0;
    }
  }
  @keyframes explode {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    100% {
      transform: scale(3);
      opacity: 0;
    }
  }





  





/* Part 3 */
.swim-section {
  position: relative;
  z-index: 0;
  background: linear-gradient(to bottom, #000000 0%, #2c3e50 20%, #0c4a6e 90%, #0c4a6e 100%) !important;
  padding: 20px;
  max-width: 100vw;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


@media (min-width: 1000px) {
  /* SVG overlay pseudo-element for screens above 1000px */
  .swim-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.competentswimming.co.uk/wp-content/themes/twentytwentyfour-child/assets/images/background/homepage/SVGOverlays/svgoverlay-7.svg') no-repeat center center;
    background-size: cover; /* Adjust as needed */
    opacity: 0.2;
    z-index: -1;  /* This layers it between the parent's background and its content */
  }
}



/* Heading */
.swim-heading {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Ubuntu', sans-serif;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* softened shadow */
  margin-bottom: -25px;
  letter-spacing: 3px;
  border: none !important;
}

.swim-subheading {
  text-align: center;             /* Replaces text-center */
  font-size: 1.4rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;               /* Sets desired font weight */
  color: #F0F0F0;                    /* Replaces text-white */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: -10px;
  letter-spacing: 3px;
}

/* Columns Container */
.columns {
  position: relative;
  display: flex;
  flex-wrap: wrap; /* Allows stacking on mobile */
  width: 100%;
  margin-top: 20px;
}

/* Left & Right Columns */
.left-col,
.right-col {
  width: 100%; /* Full width on mobile */
}

@media (min-width: 992px) {
  .left-col,
  .right-col {
    width: 50%; /* Side-by-side on tablets & above */
  }
}

/* Section Styles */
.left-section,
.right-section {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  padding: 10px;
}

.sec1, .sec2, .sec3 {
}

/* Responsive Images */
.responsive-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}

/* Benefits Section */
.benefits ul {
  list-style: none;
  padding: 0;
}

.benefits h2 {
  display: inline-block;  /* Constrains the background to the text */
  width: fit-content;
  padding: 0;
  font-size: 2.1rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 100% 100%;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


.benefits li {
  font-size: 1.1rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  width: 600px;
  margin: 10px 0;
  color: #D3D3D3;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  border: 1px solid #fff;
  background-color: #2C3E50;
  padding: 12px 15px;
  border-radius: 25px;
  transition: 0.3s ease all;
  margin-top: 30px;
}


#benefit-item-1-1 b,
#benefit-item-1-2 b,
#benefit-item-1-3 b,
#benefit-item-2-1 b,
#benefit-item-2-2 b,
#benefit-item-2-3 b,
#benefit-item-3-1 b,
#benefit-item-3-2 b,
#benefit-item-3-3 b {
  font-weight: 700; /* Increase the boldness as needed */
  color: #FFFFFF !important;
}



.benefits li:hover {
  background-color: #435e7a;
  border: 1px solid #fff;
}
.benefits li::before {
  content: '✔';
  margin-right: 10px;
}

/* Arrow Elements */
.arrow-scroll {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 1) 100%);
  transform-origin: top center;
  z-index: 4;
  margin-top: 15px;
}
.arrow-path {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 1px;
  height: 95%;
  /* background: rgba(224, 224, 224, 0.4); */
  z-index: 3;
}
.arrow-scroll::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid white;
}
.texts-swim{
  line-height: 50px;
  max-width: 100vw;
}
/* Arrow Tip */

/* Additional Info */
.additional-info {
  margin-top: 10px;
  text-align: center;
}
.swim-section img{
  max-width: 500px;
  width: 100%;
  height: auto;
}
/* Adjustments for smaller screens */
@media (max-width: 992px) {
  .testimonial-actual{
    transform: scale(0.82);
  }
  .arrow-path, .arrow-scroll{
    left: 0%
  }

  .swim-heading,
  .swim-heading1,
  .swim-heading2,
  .swim-heading3,
  .swim-heading4,
  .swim-heading5,
  .swim-heading6 {
    font-size: 2.4rem !important;
  }

  .swim-subheading,
  .swim-subheading2,
  .swim-subheading3,
  .swim-subheading5,
  .swim-subheading6 {
    font-size: 1.1rem !important;
  }

  .swim-subheading {
    margin-bottom: -10px !important;
  }

  .swim-subheading2 {
    margin-bottom: -10px !important;
  }

  .swim-subheading3 {
    margin-bottom: 10px !important;
    line-height: 2 !important;
  }

  .swim-subheading4 {
    margin-bottom: 10px !important;
    line-height: 2 !important;
  }

  .swim-subheading5 {
    margin-bottom: 10px !important;
    line-height: 2 !important;
  }

  .swim-subheading6 {
    margin-bottom: 10px !important;
    line-height: 2 !important;
  }

  .swim-heading4 {
    font-size: 2.2rem !important;
  }

  .px-4 {
    padding-left: 1.625rem !important;
    padding-right: 1.625rem !important;
  }

  #texts-testimonial {
    padding: 0 1.625rem !important;
  }

  #btn-strokes,
  #btn-skills,
  #btn-safety {
    font-size: 13px;
  }

  #black-container {
    max-width: 100% !important;
  }


  #text-learn {
    padding: 0 2.875rem;
  }

  #texts-learn {
    margin-bottom: 0px;
  }
  
  .benefits h2 {
    font-size: 1.2rem;
  }
  .benefits li {
    font-size: 1rem;
    padding: 10px;
  }
  .left-section,
  .right-section {
    height: 250px;
    /* height: 30vh; */
  }
  .benefits{
    margin-left: 40px;
  }
  .benefits li {
    font-size: 1.25rem;
    font-weight: 100;
    max-width: 350px;
    width: 330px;
    margin: 10px 0;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    border: 1px solid #fff;
    background-color: #2C3E50;

    padding: 12px 15px;
    border-radius: 25px;
    transition: 0.3s ease all;
  }
  .swim-section img{
    max-width: 300px;
  }

  #left-right-card-text-p1,
  #left-right-card-text-p2,
  #left-right-card-text-p3 {
    font-size: 20px;
  }

  #part6-sectionid {
    max-height: 1150px;
  }


  #left-right-card-text-h3 {
    display: none !important;
  }

  .left-section.sec1 {
    margin-top: 125px !important;   
    margin-bottom: 125px !important;

  }

  .left-section.sec2 {
    margin-top: 100px !important;   
    margin-bottom: 125px !important;
  }

  .left-section.sec3 {
    margin-top: 100px !important;   
    margin-bottom: 150px !important;
  }

  .right-section.sec1 {
    margin-top: 0px !important;   
    margin-bottom: 150px !important;
  }

  .right-section.sec2 {
    margin-top: 0px !important;   
    margin-bottom: 100px !important;
  }

  .right-section.sec3 {
    margin-top: 0px !important;   
    margin-bottom: 50px !important;
  }
}

.left-section.sec1 {
}
  

.left-section.sec2 {
}

.left-section.sec3 {
}

.right-section.sec1 {
}

.right-section.sec2 {
}

.right-section.sec3 {
}

.sec1 {
  margin-bottom: 125px;
  margin-top: 200px;
}

.sec2 {
  margin-bottom: 125px;
  margin-top: 200px;
}

.sec3 {
  margin-bottom: 125px;
  margin-top: 200px;
}








/* part 4 */
  .testimonial-slider {
    position: relative;
    background: linear-gradient(to bottom, #0c4a6e 0%, #126ca1 50%, #0c4a6e 90%);;
    overflow: hidden;
    
  }

  .slider-wrapper {
    overflow: hidden;
    width: 100%;
  }
  .testimonial-slider-mini{
    overflow: hidden;
  }
  /* Flex container for testimonials with consistent modern spacing */
  .slider-track, .slider-track-2 {
    display: flex;
    gap: 30px;
    will-change: transform;
  }
  @media screen and (max-width: 1202px) {
    .slider-track, .slider-track-2 {
      gap: 0px !important;
    }
    
  }

/* Unfortuately tailwind.css was used therefore this below code will all need to be set to !important to override any tailwind css, this section will be used for "testimonial-big" as part 4 */

.text-xl.font-medium.mb-1 {
  color: white !important;
}

.text-paragraph1 {
  font-family: 'Ubuntu', sans-serif;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: left;
}

.text-paragraph2 {
  border-bottom: 2px solid #FFFFFF; /* Adjust thickness and color as needed */
  padding-bottom: 0.3rem;         /* Adds some spacing between text and border */
  font-family: 'Ubuntu', sans-serif;
  color: #FFFFFF;
  font-weight: 300;
  font-size: 0.95rem;
  text-align: left;
}

.text-paragraph3 {
  font-family: 'Ubuntu', sans-serif;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 1.3rem;
  text-align: left;
}

.text-paragraph4 {
  font-family: 'Ubuntu', sans-serif;
  color: #FFFFFF;
  font-weight: 400;
  font-size: 1rem;
  text-align: left;
}

.text-paragraph5 {
  font-family: 'Ubuntu', sans-serif;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
}

.text-paragraph6 {
  font-family: 'Ubuntu', sans-serif;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
}

.text-paragraph7 {
  font-family: 'Ubuntu', sans-serif;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: left;
  margin-top: -15px;
}

#left-right-card-text-p1 {
  font-family: 'Ubuntu', sans-serif;
  color: #D3D3D3;
  font-weight: 400;
}

#left-right-card-text-p2 {
  font-family: 'Ubuntu', sans-serif;
  color: #D3D3D3;
  font-weight: 400;
}

#left-right-card-text-p3 {
  font-family: 'Ubuntu', sans-serif;
  color: #D3D3D3;
  font-weight: 400;
}

#left-right-card-text-p1 b,
#left-right-card-text-p2 b,
#left-right-card-text-p3 b {
  font-weight: 700; /* Increase the boldness as needed */
  color: #FFFFFF !important;
}

#left-right-card-text-h3 {
  font-family: 'Ubuntu', sans-serif;
  color: #FFFFFF;
  font-weight: 700;
  text-align: left;
}

.text-heading1 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 3.5rem;
  text-align: left;
}

.text-heading2 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 3rem;
  text-align: left;
  margin-top: 15px;
}

.text-heading3 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 3rem;
  text-align: left;
  margin-top: 15px;
}

.text-heading4 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 3rem;
  text-align: left;
  margin-top: 15px;
}

.text-heading5 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 3rem;
  text-align: left;
  margin-top: 15px;
}

.space-y-1 {
  margin-top: 15px;
}


/* Part 5 */
.image_2_p{
  max-height: 0;
  z-index: 10;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: max-height 1.8s ease-in-out, opacity 0.4s ease-in-out;
}

@media screen and (min-width: 1202px) {
  .image2:hover .image_2_p{
    max-height: 200px; 
    opacity: 1;
  }
}


.image2.active .image_2_p {
  max-height: 200px; 
  opacity: 1;
}


.swim-heading2 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Ubuntu', sans-serif;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* softened shadow */
  margin-bottom: 25px;
  letter-spacing: 3px;
}

.swim-subheading2 {
  text-align: center;             /* Replaces text-center */
  font-size: 1.4rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;               /* Sets desired font weight */
  color: #F0F0F0;                    /* Replaces text-white */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: -10px;
  letter-spacing: 3px;
}

.swim-heading3 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Ubuntu', sans-serif;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* softened shadow */
  margin-bottom: 25px;
  letter-spacing: 3px;
}

.swim-subheading3 {
  text-align: center;             /* Replaces text-center */
  font-size: 1.4rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;               /* Sets desired font weight */
  color: #F0F0F0;                    /* Replaces text-white */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 5px;
  letter-spacing: 3px;
}

.swim-heading4 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Ubuntu', sans-serif;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* softened shadow */
  margin-bottom: 25px;
  letter-spacing: 3px;
}

.swim-subheading4 {
  text-align: center;             /* Replaces text-center */
  font-size: 1.4rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;               /* Sets desired font weight */
  color: #F0F0F0;                    /* Replaces text-white */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: -10px;
  letter-spacing: 3px;
}

.swim-heading5 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Ubuntu', sans-serif;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* softened shadow */
  margin-bottom: 25px;
  letter-spacing: 3px;
}

.swim-subheading5 {
  text-align: center;             /* Replaces text-center */
  font-size: 1.4rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;               /* Sets desired font weight */
  color: #F0F0F0;                    /* Replaces text-white */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: -10px;
  letter-spacing: 3px;
}

.swim-heading6 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Ubuntu', sans-serif;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* softened shadow */
  margin-bottom: 25px;
  letter-spacing: 3px;
}

.swim-subheading6 {
  text-align: center;             /* Replaces text-center */
  font-size: 1.4rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;               /* Sets desired font weight */
  color: #F0F0F0;                    /* Replaces text-white */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: -10px;
  letter-spacing: 3px;
}

.backdrop-blur-sm {
  margin-bottom: 25px !important;
}

#left-right-card-text-h3 {
  padding: 0 20px !important;
  text-align: left !important;
}

/* Part 6 */
#btn-strokes, #btn-skills, #btn-safety{
  background: #C1A35D;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

#btn-strokes:hover, #btn-skills:hover, #btn-safety:hover{
  background: #826930;
  scale: 1.05;
}

.btn-stroke {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;                                  
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.stroke-cont{
  transition: all 0.4s ease-in-out;
  transform: scale(0.9);
}

@media screen and (min-width: 1202px) {
  .stroke-cont:hover{
    scale: 1.15;
  }
}



@media screen and (min-width: 768px) {
  #visit-reviews-cta {
    margin-top: 80px;
    margin-bottom: 80px;
  }
}

.strokes-section {
  /* hide any overflowing content */
  overflow: hidden;

.stroke-name-heading {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;               /* Sets desired font weight */
  color: #F0F0F0;                    /* Replaces text-white */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.stroke-name-subheading {
  font-size: 1.25rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;               /* Sets desired font weight */
  font-style: italic;
  color: #F0F0F0;                    /* Replaces text-white */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}


.stroke-content-heading {
  font-family: 'Ubuntu', sans-serif;
  font-size: 2.25rem;   
  line-height: 2.5rem;  
  font-weight: 700;   
  margin-bottom: 1rem;  
  color: #ffffff;        
}


.star-list {
  color: #F0F0F0;
  font-size: 1rem;
  line-height: 40px;
  margin-left: 1rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;               
}

@media (min-width: 768px) {
  .star-list {
    margin-top: 0;
  }
}

.go-back-button {
  color: #ffffff;                   /* text-white */
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  transform: translateX(-1rem);     /* -translate-x-4 */
  transition: transform 200ms ease; /* transition duration-200 */
}

.go-back-button:hover {
  transform: translateX(-1rem)      /* keep your X-offset */
             scale(1.05);           /* hover:scale-105 */
}

@media (min-width: 768px) {
  .go-back-button {
    margin-top: 0.75rem;            /* md:mt-3 (0.75rem) */
  }
}




  /* vertical blue gradient: darkest → lightest */
  background-image: linear-gradient(
    to bottom,
    #0c4a6e,  /* deep navy‑teal base */
    #2a6385,  /* mid‑tone steel blue */
    #699cc1,  /* soft sky‑blue highlight */
    #0c4a6e   /* deep navy‑teal base */
  );

  /* white text */
  color: #ffffff;

  /* flex container, centered */
  display: flex;
  align-items: center;
  justify-content: center;

  /* never wider than the viewport */
  max-width: 100vw;
}



.flip-card-front-heading {
  font-size: 1.5rem;
  font-family: 'Ubuntu', sans-serif;
  color: #F0F0F0; 
  line-height: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem; 
}

.flip-card-front-paragraph {
  font-size: 1.25rem;   
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  line-height: 1.75rem; 
  font-style: italic;
  color: #DBEAFE; 
}

.flip-card-list {
  font-size: 0.9rem;    
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  color: #F0F0F0; 
  margin-top: 30px;
}

.flip-card-back b {
  font-weight: 700;
}

.part-5-container {
}


#black-container {
  padding: 1rem;                 /* p-4 */
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Small screens and up (768px+) */
@media (max-width: 768px) {
  .part-5-container {
    padding: 2rem;               /* sm:p-8 */
  }
}

.part-5-wrapper {
  background-color: #0c4a6e;       
}


.container-replacement1 {
  display: flex;                   /* flex */
  justify-content: center;         /* justify-center */
  align-items: center;             /* items-center */
  flex-direction: column;          /* flex-col */
  padding: 6rem;                 /* p-10 (default Tailwind scale: 10 → 2.5rem) */
  background-color: #0c4a6e;
}

#learn-cta {
}


/* Overlay for Popup */
.popup-overlay-2 {
  display: none; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark background */
  z-index: 9999; /* Ensure it's on top */
  align-items: center;
  justify-content: center;
  overflow: auto; /* Allows scrolling if needed */
}


.faq-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.4s ease, opacity 0.4s ease;
}

#faq-image {
  width: 50% !important;
  justify-content: center !important;
}

.testimonial-cta {
  display: hidden;
}

