/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
    background-color: var(--primary-color); /* Fallback color */
    overflow: hidden; /* Prevent content from spilling out */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/static/images/hero.209d5708dc2e.webp");
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    z-index: 0;
    transition: transform 0.5s ease-out;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--background-color);
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    color: #fff ;
    letter-spacing: 1px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 800px; /* Limit the width of the text for better readability */
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn-primary {
    padding: 10px 28px;
    font-size: 1.1rem;
    text-shadow: none;
    font-weight: 600; /* Make the button text slightly bolder */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow to the button */
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Featured Treatments Styles */
.featured-treatments {
    background-color: var(--background-color);
    padding: 80px 0;
}

.treatments-carousel-container {
    position: relative;
    padding: 0 60px;
    margin-top: 40px;
}

.treatments-carousel .item {
    padding: 10px;
}

.treatment-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 400px;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.treatment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.treatment-card:hover img {
    transform: scale(1.1);
}

.treatment-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(139, 181, 177, 0.9) 0%,
        rgba(139, 181, 177, 0.85) 50%,
        rgba(139, 181, 177, 0) 100%
    );
    color: var(--background-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.treatment-card:hover .treatment-info {
    transform: translateY(0);
}

.treatment-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.treatment-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.treatment-card .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    align-self: center;
    position: relative;
    z-index: 2;
}

.treatment-card:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

.treatment-card .btn-learn-more {
    transition: all 0.3s ease;
}

.treatment-card .btn-learn-more:hover {
    transform: translateY(-3px);
}

/* Treatments Carousel Navigation */
.treatments-nav {
    display: flex;
    justify-content: center;
}

.treatments-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(139, 181, 177, 0.7);
    color: var(--background-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.treatments-nav button:hover {
    background-color: rgba(128, 163, 159, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.treatments-nav button:focus {
    outline: none;
}

.treatments-nav .treatments-prev {
    left: 0;
}

.treatments-nav .treatments-next {
    right: 0;
}

.treatments-nav button i {
    font-size: 1.2rem;
}

/* Owl Carousel customization for treatments */
.treatments-carousel .owl-dots {
    display: none;
}

/* Treatments Carousel Responsive Adjustments */
@media (max-width: 991px) {
    /* Always show overlay on mobile/tablet */
    .treatment-card .treatment-info {
        transform: translateY(0);
    }
    
    .treatment-card .btn {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .treatments-carousel-container {
        padding: 0 50px;
        overflow: hidden;
    }
    
    .treatments-carousel {
        overflow: hidden;
    }
    
    .treatments-carousel .item {
        padding: 5px;
    }
    
    .treatment-card {
        height: 380px;
    }
    
    .treatment-title {
        font-size: 1.3rem;
    }
    
    .treatment-text {
        font-size: 0.85rem;
    }
    
    .treatments-nav button {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .treatments-carousel-container {
        padding: 0 45px;
        overflow: hidden;
    }
    
    .treatments-carousel .item {
        padding: 3px;
    }
    
    .treatment-card {
        height: 350px;
    }
    
    .treatment-title {
        font-size: 1.2rem;
    }
    
    .treatment-text {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .treatment-card .btn-learn-more {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Locations Carousel Styles */
.locations-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.locations-carousel-container {
    position: relative;
    padding: 0 60px;
    margin-top: 40px;
}

.locations-carousel .item {
    padding: 10px;
}

.location-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 350px;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.location-card:hover .location-image {
    transform: scale(1.1);
}

.location-overlay {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    height: calc(100% - 50px);
    background: linear-gradient(to top, 
        rgba(139, 181, 177, 0.9) 0%,
        rgba(139, 181, 177, 0.85) 50%,
        rgba(139, 181, 177, 0) 100%
    );
    color: var(--background-color);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.location-card:hover .location-overlay {
    transform: translateY(0);
}

.location-description {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
    line-height: 1.5;
}

.location-name-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--background-color);
    text-align: center;
    padding: 10px;
    margin: 0;
    font-size: 1.5rem;
    line-height: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-visit-location {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 2px solid var(--background-color);
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
}

.location-card:hover .btn-visit-location {
    opacity: 1;
    transform: translateY(0);
}

.btn-visit-location:hover {
    background-color: transparent;
    color: var(--background-color);
    border-color: var(--background-color);
    transform: translateY(-3px);
}

/* Locations Carousel Navigation */
.locations-nav {
    display: flex;
    justify-content: center;
}

.locations-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(139, 181, 177, 0.7);
    color: var(--background-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.locations-nav button:hover {
    background-color: rgba(128, 163, 159, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.locations-nav button:focus {
    outline: none;
}

.locations-nav .locations-prev {
    left: 0;
}

.locations-nav .locations-next {
    right: 0;
}

.locations-nav button i {
    font-size: 1.2rem;
}

/* Owl Carousel customization for locations */
.locations-carousel .owl-dots {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .locations-carousel-container {
        padding: 0 50px;
        overflow: hidden;
    }
    
    .locations-carousel {
        overflow: hidden;
    }
    
    .locations-carousel .item {
        padding: 5px;
    }
    
    .location-card {
        height: 320px;
    }
    
    .location-name-banner {
        font-size: 1.3rem;
        height: 50px;
    }
    
    .location-description {
        font-size: 0.95rem;
    }
    
    .locations-nav button {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .locations-carousel-container {
        padding: 0 45px;
        overflow: hidden;
    }
    
    .locations-carousel .item {
        padding: 3px;
    }
    
    .location-card {
        height: 280px;
    }
    
    .location-name-banner {
        font-size: 1.2rem;
        height: 45px;
        padding: 8px;
    }
    
    .location-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .btn-visit-location {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Vouchers Section */
#vouchers {
    background-color: var(--background-color);
    padding: 80px 0;
}

.voucher-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.voucher-card {
    background-color: var(--very-light-grey);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(50% - 10px); /* Two cards per row on mobile */
}

.voucher-card:last-child {
    width: 100%; /* Full width for the last card on mobile */
}

/* New Hover Styles */
.voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.voucher-card:hover .voucher-decoration {
    transform: scale(1.1);
}

.voucher-content {
    padding: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(
        to right,
        var(--very-light-grey) 0%,
        var(--very-light-grey) 30%,
        rgba(226, 235, 234, 0) 80%
    );
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.voucher-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.voucher-description {
    color: var(--dark-grey);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.purchase-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 15px;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-size: 0.9rem;
}

/* Hover Effects for Purchase Button */
.purchase-btn:hover {
    background-color: var(--primary-color); /* Fill background with primary brand color */
    color: var(--background-color); /* Change text color to contrast with background */
    transform: translateY(-3px); /* Slight upward movement for depth */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow for elevation effect */
}

.voucher-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("/static/images/giftcard.c653f49b453c.webp");
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: transform 0.3s ease;
}

/* Responsive Adjustments */
@media (min-width: 769px) {
    .voucher-card,
    .voucher-card:last-child {
        width: calc(33.333% - 14px); /* Three cards per row on larger screens */
    }

    .voucher-price {
        font-size: 2rem;
    }

    .voucher-description,
    .purchase-btn {
        font-size: 1rem;
    }

    .voucher-content {
        padding: 25px;
    }
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

.testimonial-container {
    position: relative;
    padding: 0 50px;
}

.testimonials .card {
    background-color: rgba(226, 235, 234, 0.7);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    height: auto; /* Changed from fixed height to auto */
    min-height: 200px; /* Set a minimum height */
}

.testimonials .card-body {
    padding: 20px; /* Reduce padding if needed */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonials .card-text {
    font-style: italic;
    color: var(--dark-grey);
    font-size: 1rem;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Adjust the number of lines to show */
    -webkit-box-orient: vertical;
    margin-bottom: 10px; /* Reduce margin if needed */
}

.testimonials .blockquote-footer {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-align: right;
    margin-top: auto;
    background-color: transparent;
}

.testimonials .blockquote-footer::before {
    content: "\2014\00A0";
}

.custom-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.custom-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(139, 181, 177, 0.7);
    color: var(--background-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-nav button:hover {
    background-color: rgba(128, 163, 159, 0.9);
}

.custom-nav button:focus {
    outline: none;
}

.custom-nav .custom-prev {
    left: 0;
}

.custom-nav .custom-next {
    right: 0;
}

.custom-nav button i {
    font-size: 1.2rem;
}

.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.owl-dot span {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.5;
    display: block;
    transition: opacity 200ms ease;
    border-radius: 30px;
}

.owl-dot.active span,
.owl-dot:hover span {
    opacity: 1;
}

.owl-dots::before,
.owl-dots::after {
    content: '...';
    color: var(--primary-color);
    font-size: 20px;
    letter-spacing: 2px;
    padding: 0 10px;
    vertical-align: middle;
}

.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 181, 177, 0.5) !important;
    color: var(--background-color) !important;
    font-size: 24px !important;
    padding: 10px 15px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.owl-nav button:hover {
    background: rgba(128, 163, 159, 0.8) !important;
}

.owl-prev {
    left: -40px;
}

.owl-next {
    right: -40px;
}


/* Custom Section Title */
.section-title {
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: none;
}

.special-events {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(
        180deg,
        var(--background-color) 0%,
        var(--primary-color) 10%,
        var(--primary-color) 90%,
        var(--background-color) 100%
    );
    overflow: hidden;
}

.special-events::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -50%;  /* Start from outside the viewport */
    width: 200%; /* Make it twice as wide */
    height: 200%; /* Make it twice as tall */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 8%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.2) 0%, transparent 8%);
    background-size: 25% 25%; /* Halve the size since we doubled the container */
    animation: particleFloat 30s infinite linear;
    will-change: transform;
}

@keyframes particleFloat {
    0% { 
        transform: translate(0, 0) rotate(0deg);
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.special-events .container {
    position: relative;
    z-index: 1;
}

.special-events .section-title,
.special-events .section-description {
    color: white;
}

.special-events .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.special-events .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Offers Section */
.offers-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(
        180deg,
        var(--background-color) 0%,
        var(--very-light-grey) 10%,
        var(--very-light-grey) 90%,
        var(--background-color) 100%
    );
}

.offer-card {
    background: var(--background-color);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-content {
    padding: 30px;
    position: relative;
}

.offer-content h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
}

.offer-content p {
    color: var(--dark-grey);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.offer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.validity {
    color: var(--dark-grey);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.offer-card .btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.offer-card .btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}


@media (max-width: 768px) {
    .offer-details {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .offer-card {
        margin-bottom: 20px;
    }
}

/* Special Offers Section */
.special-offers {
    background-color: var(--background-color);
    padding: 80px 0;
}

.special-offer-container {
    display: flex;
    flex-direction: column; /* Stack cards vertically by default */
    gap: 20px;
    padding: 0 15px; /* Add consistent padding */
}

.special-offer-card {
    background-color: var(--very-light-grey);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Full width by default */
    min-height: 250px;
}

.special-offer-content {
    padding: 30px;
    position: relative;
    z-index: 1;
    height: 100%;
    background: linear-gradient(
        to right,
        var(--very-light-grey) 0%,
        var(--very-light-grey) 30%,
        rgba(226, 235, 234, 0) 80%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.special-offer-title {
    font-size: 2rem; /* Aligned with .section-title */
    color: var(--primary-color);
    margin-bottom: 10px;
}

.special-offer-description {
    font-size: 1.1rem; /* Aligned with .section-description */
    color: var(--dark-grey);
    margin-bottom: 15px;
}

/* Purchase Button Styles (Reusing existing classes) */
/* .purchase-btn is already styled in vouchers section */

/* Hover Effects */
.special-offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.special-offer-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("/static/images/special-offers.ef685b38c0cf.webp"); /* Use an appropriate image */
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: transform 0.3s ease;
}

.special-offer-card:hover .special-offer-decoration {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .special-offer-container {
        gap: 15px;
    }

    .special-offer-card {
        width: 100%;
        min-height: 200px;
    }

    .special-offer-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .special-offer-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .special-offer-content {
        padding: 20px;
    }
}

/* Desktop view */
@media (min-width: 769px) {
    .special-offer-container {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
    }

    .special-offer-card {
        width: calc(50% - 10px);
    }
}

/* Add this to your existing Featured Treatments styles */
.featured-treatments .view-all-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0px;
}

.featured-treatments .view-all-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(139, 181, 177, 0.3);
}


/* Mobile styles */
@media (max-width: 768px) {
    .hero-section {
        height: 45vh;
    }

    .hero-section h1 {
        font-size: 2rem; /* Smaller font size for mobile */
        margin-bottom: 12px;
    }

    .hero-section .lead {
        font-size: 1.1rem; /* Also adjust the subtitle size */
        margin-bottom: 15px;
    }

    .hero-section .btn-cta {
        padding: 10px 25px; /* Slightly smaller padding for the button */
        font-size: 1rem;
    }

    /* Reduce section spacing on mobile */
    .locations-section,
    .featured-treatments,
    #vouchers,
    .testimonials,
    .special-offers {
        padding: 40px 0; /* Reduced from 80px */
    }

    .special-events {
        padding: 50px 0; /* Reduced from 100px */
    }
}

@media (max-width: 480px) {
    /* Even tighter spacing on very small screens */
    .locations-section,
    .featured-treatments,
    #vouchers,
    .testimonials,
    .special-offers {
        padding: 30px 0; /* Further reduced */
    }

    .special-events {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
}
