/* Respsonsive Fixes */
@media only screen and (max-width: 767px) {

    /* Fix Hero Title overlapping and sizing on mobile */
    .hero__area-3 .sec-title {
        font-size: 50px !important;
        line-height: 1.1 !important;
        height: auto !important;
    }

    .hero__area-3 .title-right {
        position: static !important;
        display: block !important;
        text-align: left !important;
        padding-top: 10px !important;
    }

    .hero__area-3 .title-left {
        display: block !important;
    }

    /* Ensure the text below doesn't get overlapped */
    .hero__text-3 {
        margin-top: 20px !important;
        position: relative;
        z-index: 5;
    }

    .hero__area-3 .sec-sub-title {
        font-size: 18px !important;
        padding-bottom: 10px !important;
    }

    /* Additional Hero spacing fix */
    .hero__area-3 {
        padding-bottom: 60px !important;
    }
}

.carousel-hero-banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    color: var(--text-color);
    margin-top: 5px;
    /* Added small gap for header */
}

@media only screen and (max-width: 1024px) {
    .carousel-hero-banner {
        height: auto !important;
        aspect-ratio: 16 / 9;
        margin-top: 0 !important;
        width: 100% !important;
    }

    .nav-button {
        padding: 0.5rem 0.8rem !important;
        font-size: 1.2rem !important;
        background-color: rgba(0, 0, 0, 0.2) !important;
    }

    .carousel-indicators {
        bottom: 10px !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .dot {
        width: 25px !important;
        height: 3px !important;
    }

    .dot.active {
        width: 40px !important;
    }
}

.carousel-images {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding-top: 20px;
    /* Changed from blue to white */
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    z-index: 1;
}

@media only screen and (max-width: 600px) {
    .carousel-hero-banner {
        aspect-ratio: 19 / 8;
        /* Slightly taller for mobile */
    }

    .carousel-slide img {
        object-fit: contain !important;
        /* Ensure whole image content is visible on mobile */
        background: #fff !important;
    }

    .nav-button {
        display: none !important;
        /* Hide arrows on mobile to save space, rely on dots/auto-play */
    }
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    border-radius: 5px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.nav-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-color);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    transition: background-color 0.3s ease;
    z-index: 3;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 0px;
}

.next {
    right: 0px;
}

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    cursor: pointer;
    height: 4px;
    width: 40px;
    background-color: rgba(13, 110, 253, 0.3);
    border-radius: 2px;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #0d6efd;
    width: 60px;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-color);
}