/* --------- HOME PAGE SETTINGS--------------- */

.header {
    /* Fill */
    min-height: 100vh;
    width: 100%;
    position: relative;
    margin-bottom: 100px;
    
    /* Background image */
    background-image: linear-gradient(rgba(4, 9, 30, 0.3), rgba(4, 9, 30, 0.3)), url(../Pictures/LaPosadaWebsite.jpg);
    background-size: cover;
    background-position: center;

}


.text-box {
    color: #FAF3E0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    text-align: center;
}

.text-box h1 {
    font-size: 72px;
}

.sub-header{
    font-size: 36px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 20px;
    color: #FAF3E0;
}

.home-btn {
    display: inline-block;
    backdrop-filter: blur(5px);
    color: #FAF3E0;
    font-size: 20px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 15px;
    transition: 0.6s;
    border: 2px solid #FAF3E0;
}

.home-btn:hover {
    /* border-color: #5C4B51; */
    background-color: #FAF3E0;
    color: #5C4B51;
    transition: 1s;
}

/* Deal Pointer - Bottom Right of Hero */
.deal-pointer {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: linear-gradient(to bottom, #ffa500, #ff8c00);
    color: #FAF3E0;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    animation: pointer-bounce 3s ease-in-out infinite;
    cursor: pointer;
    /* border: 2px solid #3f522b; */
    z-index: 10;
    text-decoration: none;
}

.deal-pointer::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #ffa500;
}

@keyframes pointer-bounce {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(255, 165, 0, 0.1);
    }

    50% {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-demo {
        height: 300px;
        font-size: 18px;
    }

    .deal-pointer {
        bottom: 10px;
        right: 15px;
        padding: 10px 15px;
        font-size: 12px;
    }

}

/* --------- INTRO SETTINGS */
.introSection {
    /* color: #3f522b; */
    color: #333;
    margin: auto;
    padding: 50px 15px;
    /* background: linear-gradient(to bottom, #FAF3E0, #3f522b54); */
    /* Light green gradient */
}

.introInfo {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.introPic-wrapper {
    position: relative;
    align-items: center;
    width: 550px;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
    margin: auto;
    overflow: hidden;
    /* Ensures overlay stays within rounded corners */
}

.introPic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.introPic-wrapper::after {
    margin: 100px auto;
    content: "";
    /* position: absolute; */
    /* top: 0;
    left: 0; */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Adjust transparency as needed */
    border-radius: 10px;
    /* Matches the image container */
}

.intro-text-container {
    margin: 50px;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Allows text container to take up remaining space */
}

.intro-text-container h1 {
    color: #5C4B51;
    text-align: left;
    font-size: 40px;
    margin-bottom: 10px;
}

.intro-text {
    color: #5C4B51;
    text-align: left;
    font-size: 20px;
    line-height: 1.5;
}

/* ----- SERVICES SETTINGS */

.services {
    background-color: #3f522b54;
    /* color: #3f522b; */
    color: #333;
    /* width: 80%; */
    margin: auto;
    padding: 50px 15px;
    text-align: center;
}

.services h1 {
    /* color:#FAF3E0; */
    font-size: 40px;
    margin-bottom: 10px;
}

.service-box {

    /* text-align: center; */

    margin-top: 50px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.service-col {
    flex: 1;
    padding: 80px 20px;
    margin: 50px 20px;

    border-radius: 20px;
    background-color: #FAF3E0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
}

.service-col h2 {
    font-size: 30px;
    margin-bottom: 50px;
}

.service-col:hover {
    transform: translateY(-15px);
    cursor: pointer;
}

/* ------------- INSTRUCTOR ----------- */
.instructor {
    /* background: linear-gradient(to bottom, #3f522b54, #FAF3E0); */
    width: 100%;
    /* color: #3f522b; */
    color: #333;
    margin: auto;
    padding: 100px 0px;
    text-align: center;
}

.instructor h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.coach-section {

    /* text-align: center; */
    align-items: center;
    display: flex;

    gap: 20px;
    width: 80%;
    /* max-width: 600px; */
    margin: 0 auto;
    /* padding: 100px 0px; */
    padding-bottom: 0px;
    /* color: #3f522b; */
}

.coach-info {
    flex: 1;
    text-align: left;
    padding-top: 50px;
    padding-bottom: 0px;
}

.coach-image {
    margin-right: 30px;
    justify-content: left;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
}

.coach-name {
    font-size: 40px;
    font-weight: bolder;
    margin-bottom: 10px;
}

.coach-title {
    font-size: 30px;
    font-weight: bold;

}

.coach-bio {
    font-size: 24px;
    line-height: 1.5;
}




/* ----------- TESTIMONIALS --------- */
.testimonials {
    background-color: #3f522b54;
    color: #333;
    height: 300px;
    margin: auto;
    padding: 50px 15px;
    text-align: center;
}

.testimonial-container {
    width: 80%;
    margin: auto;
    position: relative;
    padding: 40px;
    overflow: hidden;
    /* Ensure content doesn't overflow */
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: transform 0.6s ease-in, opacity 0.2s;
    transform: translateX(100%);
    /* Start off-screen to the right */
    box-sizing: border-box;
    padding: 20px;
    /* Add padding to prevent text from touching edges */
    text-align: center;
    /* Center text */
    top: 0;
    /* Position at the top of the container */
    left: 0;
    /* Position at the left of the container */
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
    /* Slide into view */
}

.testimonials h1 {
    color: #222;
    text-transform: uppercase;
    margin-bottom: 20px;
    align-items: top;
}

.testimonial-container h2 {
    color: #222;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.testimonial-text {
    padding: 50px;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 20px;
}

.testimonial.slide-out-left {
    transform: translateX(-100%) !important;
}

.testimonial.slide-out-right {
    transform: translateX(100%);
}

.testimonial.slide-in-right {
    transform: translateX(100%);
}

.testimonial.slide-in-left {
    transform: translateX(-100%);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* --------------- CALL TO ACTION -------- */

.cta {
    margin: 50px auto;
    width: 70%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.4), rgba(4, 9, 30, 0.7)), url(../Pictures/CTAPic.jpg);
    background-size: cover;
    background-position: center;
    padding: 100px;
    border-radius: 10px;
    color: #FAF3E0;
    text-align: center;
}

.cta h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    backdrop-filter: blur(5px);
    color: #FAF3E0;
    font-size: 20px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 15px;
    transition: 0.6s;
    border: 2px solid #FAF3E0;
}

.cta-btn:hover {
    background-color: #FAF3E0;
    color: #5C4B51;
    transition: 1s;
}

/* --------- AD SECTION CSS */ 
.special-offer {
    position: relative;
    background: linear-gradient(135deg, #71924e 0%, #3f522b 100%);
    margin: 50px auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    100% {
        box-shadow: 0 15px 40px rgba(92, 75, 81, 0.4), 0 0 20px rgba(63, 82, 43, 0.3);
    }
}

.offer-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    text-align: center;
    color: #FAF3E0;
}

.offer-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.offer-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

.offer-price {
    font-size: 72px;
    font-weight: 700;
    color: #ffa500;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    margin: 20px 0;
    position: relative;
    animation: slideInUp 1s ease-out 0.2s both;
}

.offer-price::before {
    content: "Regular $75";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #FAF3E0;
    text-decoration: line-through;
    opacity: 0.8;
}

.offer-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.4s both;
    color: #FAF3E0;
}

.offer-details {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.6s both;
    color: #FAF3E0;
}

.offer-btn {
    display: inline-block;
    background: linear-gradient(45deg, #ffa500,
        #ff8c00);
    color: #FAF3E0;
    font-size: 22px;
    font-weight: 700;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out 0.8s both;
}

.offer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.offer-btn:hover::before {
    left: 100%;
}

.offer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}



/* Background decoration */
.offer-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 20% 20%, #FAF3E0 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, #FAF3E0 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, #FAF3E0 1px, transparent 1px);
    background-size: 50px 50px, 60px 60px, 30px 30px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .offer-content {
        padding: 40px 20px;
    }

    .offer-title {
        font-size: 32px;
    }

    .offer-price {
        font-size: 48px;
    }

    .offer-price::before {
        font-size: 16px;
        top: -25px;
    }

    .offer-subtitle {
        font-size: 18px;
    }

    .offer-details {
        font-size: 16px;
    }

    .offer-btn {
        font-size: 18px;
        padding: 15px 30px;
    }
}

/* --------- MEDIA QUERIES */
@media(max-width: 700px) {
    .text-box h1 {
	width: 300px;
        font-size: 30px;
    }
    .sub-header {
        font-size: 20px;
    }

    .text-box p {
	margin-bottom: 20px;
        font-size: 14px;
    }

    .home-btn {
        font-size: 14px;
    }

    /* ------------ INTRO SETTINGS */
    .introInfo {
        margin: auto;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
    }

    .intro-text-container {
        margin: 0px auto;
        text-align: center;
        justify-content: center;
    }

    .introInfo h1 {
        text-align: center;
        margin: 10px;
        font-size: 30px;
    }

    .introInfo p {
        text-align: center;
        margin: 10px;
        font-size: 16px;
    }
/* 
    .introPic {
        margin: 10px;
        width: 250px;
        height: 300px;
    } */

    .introPic-wrapper{
        margin: 0px auto;
        width: 250px;
        height: 175px;
    }




    /* ----- SERVICES MEDIA SETTINGS */
    .service-box {
        flex-direction: column;
    }

    .services h1 {
        font-size: 30px;
    }

    .service-col {
        margin: 20px 30px;
    }

    .service-col h2 {
        margin-bottom: 20px;
        font-size: 20px;
    }

    .service-col p {
        font-size: 16px;
    }

    /* ----- INSTRUCTOR MEDIA SETTINGS */
    .coach-section {
        flex-direction: column;
        justify-content: center;
        padding: 0px;
    }

    .instructor h1 {
        font-size: 30px;
    }

    .coach-info {
        text-align: center;
        padding: 0px;
    }

    .coach-image {
        padding: 0px;
        margin: 0px;
        width: 200px;
        height: 200px;
    }

    .coach-name {
        font-size: 28px;
    }

    .coach-title {
        font-size: 20px;
    }

    .coach-bio {
        font-size: 16px;
    }

    /* ----- TESTIMONIALS MEDIA SETTINGS */
    .testimonial-container {
        width: 80%;
    }

    /* ----- CTA MEDIA SETTINGS */
    .cta {
        text-align: center;
        margin: 50px auto;
        width: 60%;
        justify-content: center;
        padding: 50px;
    }

    .cta h1 {
        font-size: 24px;
    }

    .cta-btn {
        font-size: 16px;
    }

}
