/* Hero Carousel Styles */

.hero-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 700px;
    
}

.hero-carousel-wrapper .hero-carousel-swiper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.hero-carousel-swiper-wrapper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
}

.hero-carousel-wrapper .hero-carousel-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 700px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 0 0 0 133px;
    cursor: default;
}

/* Fade mode stacks all slides on top of each other; only the active slide
   may receive clicks, otherwise the last slide intercepts them */
.hero-carousel-swiper .hero-carousel-slide {
    pointer-events: none;
}

.hero-carousel-swiper .hero-carousel-slide.swiper-slide-active {
    pointer-events: auto;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0 0 0 133px;
}

.hero-carousel-slide:nth-child(1) .hero-slide-overlay,
.hero-carousel-slide:nth-child(3) .hero-slide-overlay,
.hero-carousel-slide:nth-child(6) .hero-slide-overlay  {
    background: linear-gradient(90deg, #99C1DC 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-carousel-slide:nth-child(2) .hero-slide-overlay {
    background: linear-gradient(90deg,#4FBEBE 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-carousel-slide:nth-child(4) .hero-slide-overlay,
.hero-carousel-slide:nth-child(5) .hero-slide-overlay{
    background: linear-gradient(90deg,#031230 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-slide-title {
    margin: 0 0 12px 0;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 80px var(--site-px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 100%;
    justify-content: space-between;
    max-width: 1440px;
    width: 100%;
}

.hero-slide-logo {
    position: absolute;
    z-index: 2;
    top: 200px;
    right: var(--site-px);
    width: 250px;
    height: 250px;
    background: transparent;
}

.hero-slide-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 16px;
    overflow: hidden;
}

.hero-slide-text {
    display: flex;
    flex-direction: column;
    width: 60%;
    z-index: 3;
}

.hero-slide-overline {
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
    letter-spacing: 0.64px;
    max-width: 600px;
}


.hero-slide-title {
color: #1E153D;
font-family: "Playfair Display";
font-size: 65px;
font-style: normal;
font-weight: 600;
line-height: 116%; /* 75.4px */
letter-spacing: 1.3px;
}

.hero-slide-title:not(:first-child) {
    max-width: 600px;
}

.hero-slide-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-slide-button {
    display: inline-flex;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-size: var(--fs-action);
    font-weight: var(--fw-action);
    line-height: 100% !important;
    transition: all .3s ease;
    border: 0;
    background: #071D49;
    letter-spacing: -0.16px !important;
    text-decoration: none;
}

.hero-slide-button {
    color: #fff !important;
}

.hero-slide-button:hover,
.hero-slide-button:focus {
    background: #103683;
    color: #fff;

}

/* Some buttons trigger Ask William via JS instead of linking (see
   acf-swiper-carousel.php) and render as <button>, not <a> — reset
   default button chrome so they match the anchor-based ones exactly,
   same pattern as button.ask-william-btn in style.css. */
button.hero-slide-button {
    font-family: inherit;
    cursor: pointer;
}

.hero-slide-underline {
  color: #1E153D;
  font-family: Rubik;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: 0.18px;
}

.hero-carousel-pagination {
    display: none;
    position: absolute;

    left: 50% !important;
    transform: translateX(-50%);
    z-index: 10;
    gap: 16px;
    width: fit-content !important;
    bottom: 230px !important;
}

.hero-carousel-pagination .swiper-pagination-bullet {
    width: 18px;
    height: 8px;
    background: #E8EDF6;
    opacity: 1;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel-pagination .swiper-pagination-bullet-active {
    background: #4FBEBE;
    width: 85px;
    border-radius: 999px;
}

/* Title in 4th, 5th & 6th slides */
.hero-carousel-slide:nth-child(4) .hero-slide-title,
.hero-carousel-slide:nth-child(5) .hero-slide-title{
    color: #fff;
}

/* Underline in 4th, 5th & 6th slides */
.hero-carousel-slide:nth-child(4) .hero-slide-underline,
.hero-carousel-slide:nth-child(5) .hero-slide-underline {
    color: #fff;
}

/* Buttons in 4th slide */
.hero-carousel-slide:nth-child(4) .hero-slide-button, .hero-carousel-slide:nth-child(5) .hero-slide-button, .hero-carousel-slide:nth-child(6) .hero-slide-button {
    color: #1E153D !important;
    background: #4FBEBE;
}

.hero-carousel-slide:nth-child(4) .hero-slide-button:hover,
.hero-carousel-slide:nth-child(4) .hero-slide-button:focus,
.hero-carousel-slide:nth-child(5) .hero-slide-button:hover,
.hero-carousel-slide:nth-child(5) .hero-slide-button:focus,
.hero-carousel-slide:nth-child(6) .hero-slide-button:hover,
.hero-carousel-slide:nth-child(6) .hero-slide-button:focus
 {
   background: #3aa8a8; 
  
}

.hero-carousel-slide:nth-child(4) .hero-slide-button path,
.hero-carousel-slide:nth-child(5) .hero-slide-button path,
.hero-carousel-slide:nth-child(6) .hero-slide-button path {
    stroke: #1e153d !important;
}


/* All text content in 4th, 5th & 6th slides */
.hero-carousel-slide:nth-child(4) .hero-slide-text,
.hero-carousel-slide:nth-child(5) .hero-slide-text,
.hero-carousel-slide:nth-child(6) .hero-slide-text {
    color: #fff;
}

@media (max-width: 1300px) {
   .hero-carousel-slide:nth-child(5) .hero-slide-text {
        width: 85%;
    }
}
/* Tablet Styles */
@media (max-width: 1024px) {

    .hero-slide-text {
       width: 90%;

    }

    .hero-carousel-wrapper .hero-carousel-slide {
        background-position: 40%;
        border-radius: 0px;
        height: 650px;
    }

    .hero-carousel-wrapper .hero-carousel-slide:nth-child(6) {
        background-position: right;
    }

    .hero-slide-logo {
      display: none;
    }

    .hero-slide-overlay {
        border-radius: 0px;
    }

    .hero-carousel-pagination {
        gap: 8px;
        bottom: unset !important;
        top: 72% !important;
    }

    .hero-carousel-pagination .swiper-pagination-bullet-active {
        width: 55px;
    }
    
   .hero-slide-content {
        padding: 64px 40px;
        text-align: center;
        justify-content: center;
       
    }

    .hero-slide-buttons{
        justify-content: center;
    }

    .hero-carousel-slide:nth-child(1) .hero-slide-overlay {
        background: linear-gradient(90deg, #99C1DC 100%, rgba(255, 255, 255, 0) 100%);
        opacity: 0.5;
    }

    .hero-carousel-slide:nth-child(2) .hero-slide-overlay {
        background: linear-gradient(90deg, #4FBEBE 100%, rgba(255, 255, 255, 0) 100%);
        opacity: 0.5;
    }

    .hero-carousel-slide:nth-child(3) .hero-slide-overlay {
        background: linear-gradient(90deg, #99C1DC 100%, rgba(255, 255, 255, 0) 100%);
        opacity: 0.7;
    }

    .hero-carousel-slide:nth-child(4) .hero-slide-overlay {
    background: linear-gradient(90deg, #031230 100%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.7;
}

}



/* Mobile Styles */
@media (max-width: 767px) {

    .hero-slide-underline{
        font-size: 14px;
    }

    .hero-carousel-wrapper {
       height: 500px;
    }

    .hero-slide-logo {
        display: none;
    }

    .hero-slide-text {
    margin-top: 0;
    width: 100%;
}

    .hero-slide-content {
        padding: 48px 20px;
    }

    .hero-carousel-wrapper .hero-carousel-slide {
        height: 500px;
        background-size: cover;
        background-position: center;
    }

    .hero-carousel-pagination{
        top: 80% !important;
    }

    .hero-carousel-pagination .swiper-pagination-bullet {
    width: 8px;
    }

    .hero-carousel-pagination .swiper-pagination-bullet-active {
        width: 25px;
    }
   .hero-slide-overline {
    font-size: 18px;
    margin-bottom: 10px;
}

.hero-slide-title {
    font-size: 40px !important;
}

.hero-carousel-slide:nth-child(5) .hero-slide-title {
    font-size: 32px !important;
}

/* Hero Carousel Transition Animations */
.hero-carousel-slide {
    opacity: 1;
}

.hero-carousel-slide .hero-slide-overline,
.hero-carousel-slide .hero-slide-title,
.hero-carousel-slide .hero-slide-buttons,
.hero-carousel-slide .hero-slide-underline,
.hero-carousel-slide .hero-slide-logo {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-carousel-slide.swiper-slide-active .hero-slide-overline,
.hero-carousel-slide.swiper-slide-active .hero-slide-title,
.hero-carousel-slide.swiper-slide-active .hero-slide-buttons,
.hero-carousel-slide.swiper-slide-active .hero-slide-underline,
.hero-carousel-slide.swiper-slide-active .hero-slide-logo {
    opacity: 1;
    transform: translateY(0);
}

.hero-carousel-slide.swiper-slide-active .hero-slide-overline {
    transition-delay: 0.1s;
}

.hero-carousel-slide.swiper-slide-active .hero-slide-logo {
    transition-delay: 0.2s;
}

.hero-carousel-slide.swiper-slide-active .hero-slide-title {
    transition-delay: 0.3s;
}

.hero-carousel-slide.swiper-slide-active .hero-slide-buttons {
    transition-delay: 0.4s;
}

.hero-carousel-slide.swiper-slide-active .hero-slide-underline {
    transition-delay: 0.5s;
}
}