html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;

}

body {
    font-family: var(--secondaryFont);
    padding-top: 40px;
}

.contact-btn {
    background-color: var(--text-color-dark);
    color: var(--text-color-light);
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
    background-color: var(--btn-hover2);
}

.icon-bag {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}


.icon-bag:hover {
    filter: brightness(1.2) sepia(0.5) hue-rotate(30deg);
    transform: scale(1.1);
    transition: all 0.3s ease;
}


.bg-footer {
    background-color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
}

.footerSaisyd {
    color: var(--text-color-dark);
}

.footer-link:hover {
    font-weight: 600;
    transition: color 0.3s ease;
}

footer .fab:not(.fa-tiktok):hover {
    color: var(--primary-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.accordion-body {
    background-color: var(--secondary-color);
}

.coffee-banner {
    width: 100%;
    height: 820px;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;

}

.coffee-text {
    position: relative;
    z-index: 2;

}

.coffee-text h1 {
    color: var(--text-color-dark);

}

.coffee-text p {
    margin: 15px 0;
    font-family: var(--secondaryFont);
}

.coffee-buttons .btn {
    border-radius: 25px;
    height: 50px;
    width: 150px;
    font-weight: 500;
    font-family: var(--primaryFont);
    font-size: var(--lead);
}

.btn-fill {
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    border: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-fill:hover {
    background-color: var(--btn-hover1);
    color: var(--text-color-light);
    border: none;
    font-weight: 600;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-color-light);
    color: var(--text-color-dark);
    backdrop-filter: blur(4px);
}

.coffee-img {
    position: relative;
    z-index: 2;
}

.coffee-img img {
    max-width: clamp(250px, 50vw, 550px);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}


@media (max-width: 768px) {
    .coffee-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .coffee-img {
        margin-top: 30px;
    }
}

.circle-icon {
    width: 40px;
    height: 40px;
    background-color: var(--text-color-dark);
    border-radius: 50%;
    margin: 0 auto 10px;
}

.subheading2 {
    font-family: var(--primaryFont);
    font-weight: 900;
    font-size: 2rem;
}

.title2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: bolder;
    font-family: var(--primaryFont);
}

.circle-text {
    font-family: var(--secondaryFont);
    font-size: clamp(0.75rem, 1.5vw, 0.88rem);
    font-weight: 200;

}


.custom-img {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: clamp(300px, 50vw, 500px);
    height: clamp(400px, 60vh, 600px);

    object-fit: cover;
}

.custom-card {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    background-color: #fef8ef;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.menu-container {
    background-color: var(--card-bg-color);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.menu-title {
    font-family: var(--primaryFont);
    font-weight: 800;
    text-align: center;
    color: var(--text-color-dark);
    margin-bottom: 2rem;
}

.menu-item {
    text-align: center;
    padding: 1rem;
}

.menu-item img {
    max-width: 100%;
    height: auto;
}

/* Clean Item Cards */
.popular-item {
    text-align: center;
    padding: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.popular-item:hover {
    transform: translateY(-8px);
}

/* Beautiful Image Container */
.image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(46, 26, 0, 0.12);
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f4f0);
    border: 1px solid rgba(196, 162, 119, 0.2);
    margin-bottom: 1.2rem;
}

.popular-item:hover .image-container {
    box-shadow: 0 12px 30px rgba(46, 26, 0, 0.18);
    transform: scale(1.02);
}

/* Natural Image Styling */
.popular-item img {
    width: 100%;
    height: clamp(160px, 25vw, 190px);
    object-fit: contain;
    transition: all 0.3s ease;
    padding: 1.2rem;
}

.popular-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05) saturate(1.1);
}

@media (max-width: 768px) {
    .scroll-container {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

    .scroll-container .popular-item {
        flex: 0 0 auto;
        width: clamp(250px, 80vw, 400px);
        scroll-snap-align: center;
    }

    .scroll-container .popular-item img {
        height: clamp(140px, 30vh, 180px);
    }
}

/* Natural See More Button */
.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--primaryFont);
    font-weight: 600;
    font-size: var(--lead);
    color: var(--text-color-light);
    background-color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(196, 162, 119, 0.3);
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    background-color: var(--btn-hover1);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 26, 0, 0.25);
}

.see-more-btn i {
    transition: transform 0.3s ease;
}

.see-more-btn:hover i {
    transform: translateX(4px);
}

/* Clean Menu Names */
.menu-name1 {
    font-family: var(--primaryFont);
    font-weight: 800;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-color-dark);
    margin-top: 0.8rem;
    transition: all 0.3s ease;
}

.popular-item:hover .menu-name1 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Simple decorative line */
.menu-name1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    position: relative;
    display: block;
    margin: 0.5rem auto 0;
}

.popular-item:hover .menu-name1::after {
    width: 30px;
}

/* ABOUT */
.about-us-section {
    background: url('assets/img/bgAbout.png') no-repeat center center;
    background-size: cover;
    color: var(--text-color-light);
    font-family: var(--primaryFont);
    position: relative;
}

.about-us-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(46, 26, 0, 0.6);
    z-index: 0;
}

.about-us-section .container {
    position: relative;
    z-index: 1;
}

/* CAROUSEL */
.heading2 {
    text-align: center;
    font-family: var(--primaryFont);
    font-weight: 700;
    margin-top: 1rem;
}

.lead2 {
    font-size: clamp(0.95rem, 2vw, 1rem);
    font-family: var(--secondaryFont);
    text-align: center;
    margin-top: 2rem;
    padding: 0 2rem;
    max-width: 1000px;
}

.carousel__container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    background: var(--card-bg-color);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    max-width: 1200px;
    flex-direction: column;
}

.card__container {
    width: 100%;
}

.card__content {
    padding: 2rem 0;

}

.swiper-wrapper {
    display: flex;
}

.card__article {
    background: var(--bg-color);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card__article:hover {
    transform: translateY(-8px);
}

.card__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.swiper-button-prev,
.swiper-button-next {
    font-size: 2.5rem;
    color: var(--text-color-dark);
    border-radius: 50%;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.1);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    display: none;
}

.swiper-pagination-bullet {
    background-color: hsl(212, 32%, 40%);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* LOCATION */

.branch-nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    font-family: var(--primaryFont);
}

.branch-nav a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-color-dark);
    padding: clamp(6px, 1vw, 10px) clamp(10px, 2vw, 16px);
    font-size: clamp(0.875rem, 2vw, 1rem);
    position: relative;
    display: inline-block;
    font-weight: normal;
    transition: color 0.3s ease;
}

.branch-nav a.active {
    font-weight: bold;
    color: var(--text-color-dark);
}

.branch-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--text-color-dark);
    border-radius: 2px;
}

.location-section {
    padding: 2rem 2rem;
}

.location-img {
    border-radius: 20px;
    width: 100%;
    height: 50%;
    max-height: 100%;
    object-fit: cover;
}

.branch-title {
    font-family: var(--primaryFont);
    font-weight: bold;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.subheading3 {
    font-family: var(--primaryFont);
    font-weight: 900;
    font-size: var(--subheading);

}

.info-text {
    max-width: 800px;
}

.location-text {
    font-family: var(--primaryFont);
}

.time-text {
    font-size: var(--h6);
    margin-bottom: 10px;
}

.map-card {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn-location {
    max-width: 150px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-family: var(--primaryFont);
    font-size: var(--lead);
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.btn-location:hover {
    background-color: var(--btn-hover1);
}

.hours {
    border-top: 2px solid #ccc;
    padding-top: 1rem;
}

.hours-box {
    font-family: var(--primaryFont);
    color: var(--text-color-dark);
}

.hours-line-box {
    border-top: 1px solid var(--text-color-dark);
    border-bottom: 1px solid var(--text-color-dark);
    display: inline-block;
    padding: 8px 0;
    margin: 10px auto;
}

.payment-h2 {
    color: var(--text-color-dark);
    font-family: var(--primaryFont);
    font-weight: bolder;
}

.payment-p {
    max-width: 600px;
    margin-inline: auto;
    color: var(--text-color-dark);
}

.moreCircle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
}

.more-p {
    color: var(--text-color-dark);
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.instagram {
    background: linear-gradient(135deg, #feda75, #d62976, #962fbf, #4f5bd5);
}

.facebook {
    background-color: #1877f2;
}

.tiktok {
    background-color: #000;
}

.social-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}


.feedback-card {
    background-color: var(--gray);
    color: var(--text-color-light);
    font-family: var(--secondaryFont);
    min-height: 200px;
    margin-bottom: clamp(1rem, 5vw, 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

/* CART */
.rounded-square {
    background-color: var(--primary-color);
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-to-top-btn:hover {
    background-color: var(--btn-hover1);
}

.coffee-banner video {
    object-fit: cover;
}

   /* Loading Screen Styles - Using CSS Variables */
        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--secondary-color);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 1;
            transition: opacity 0.8s ease-out;
        }

        #loading-screen.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        .loading-logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 40px;
        }

        .coffee-cup-container {
            position: relative;
            margin-bottom: 30px;
        }

        .coffee-cup {
            width: 120px;
            height: 120px;
            position: relative;
        }

        .cup {
            width: 80px;
            height: 60px;
            background: var(--text-color-dark);
            border-radius: 0 0 40px 40px;
            position: relative;
            margin: 20px auto;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .cup::before {
            content: '';
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 10px;
            background: var(--text-color-dark);
            border-radius: 50px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .cup-handle {
            position: absolute;
            right: -25px;
            top: 15px;
            width: 20px;
            height: 30px;
            border: 5px solid var(--text-color-dark);
            border-left: none;
            border-radius: 0 15px 15px 0;
        }

        .saucer {
            width: 100px;
            height: 8px;
            background: var(--text-color-dark);
            border-radius: 50px;
            margin: 0 auto;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .steam {
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
        }

        .steam-line {
            width: 3px;
            height: 20px;
            background: var(--text-color-dark);
            border-radius: 2px;
            display: inline-block;
            margin: 0 3px;
            animation: steam-rise 2s ease-in-out infinite;
            opacity: 0.8;
        }

        .steam-line:nth-child(1) {
            animation-delay: 0s;
        }

        .steam-line:nth-child(2) {
            animation-delay: 0.3s;
        }

        .steam-line:nth-child(3) {
            animation-delay: 0.6s;
        }

        @keyframes steam-rise {

            0%,
            100% {
                opacity: 0;
                transform: translateY(0) scale(1);
            }

            50% {
                opacity: 0.9;
                transform: translateY(-10px) scale(1.1);
            }
        }

        .loading-text {
            text-align: center;
            color: var(--text-color-light);
        }

        .cafe-name {
            font-family: var(--primaryFont);
            font-size: clamp(2.5rem, 8vw, 4rem);
            font-weight: 900;
            letter-spacing: clamp(4px, 2vw, 8px);
            margin-bottom: 10px;
            color: var(--text-color-dark);
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            animation: pulse-glow 2s ease-in-out infinite alternate;
        }

        .tagline {
            font-family: var(--secondaryFont);
            font-size: var(--subheading);
            font-weight: 400;
            letter-spacing: clamp(2px, 1vw, 3px);
            margin-bottom: 50px;
            color: var(--text-color-dark);
            opacity: 0.9;
        }

        @keyframes pulse-glow {
            from {
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            }

            to {
                text-shadow: 2px 2px 20px rgba(196, 162, 119, 0.4);
            }
        }

        .loading-progress {
            width: clamp(250px, 80vw, 350px);
            margin-bottom: 20px;
        }

        .progress-bar-container {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 3px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--text-color-dark));
            background-size: 200% 100%;
            border-radius: 3px;
            width: 0%;
            transition: width 0.1s ease-out;
            animation: shine 2s linear infinite;
            box-shadow: 0 2px 8px rgba(196, 162, 119, 0.3);
        }

        @keyframes shine {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        .loading-percentage {
            text-align: center;
            margin-top: 15px;
            font-family: var(--primaryFont);
            font-size: var(--subheading);
            font-weight: 700;
            color: var(--text-color-dark);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .loading-dots {
            margin-top: 20px;
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .dot {
            width: 10px;
            height: 10px;
            background: var(--text-color-dark);
            border-radius: 50%;
            animation: loading-bounce 1.4s ease-in-out infinite both;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .dot:nth-child(1) {
            animation-delay: -0.32s;
        }

        .dot:nth-child(2) {
            animation-delay: -0.16s;
        }

        .dot:nth-child(3) {
            animation-delay: 0s;
        }

        @keyframes loading-bounce {

            0%,
            80%,
            100% {
                transform: scale(0.8);
                opacity: 0.6;
            }

            40% {
                transform: scale(1.3);
                opacity: 1;
            }
        }

        /* Loading message */
        .loading-message {
            margin-top: 25px;
            font-family: var(--secondaryFont);
            font-size: var(--lead);
            color: var(--text-color-dark);
            opacity: 0.8;
            text-align: center;
            animation: fade-pulse 3s ease-in-out infinite;
        }

        @keyframes fade-pulse {

            0%,
            100% {
                opacity: 0.6;
            }

            50% {
                opacity: 1;
            }
        }

        /* Hide main content during loading */
        body.loading .main-content {
            visibility: hidden;
        }

        .main-content {
            visibility: visible;
            transition: visibility 0s;
        }

        /* Enhanced responsive adjustments */
        @media (max-width: 768px) {
            .loading-logo {
                margin-bottom: 30px;
            }

            .coffee-cup {
                width: 100px;
                height: 100px;
            }

            .cup {
                width: 70px;
                height: 50px;
            }

            .saucer {
                width: 85px;
            }

            .steam {
                top: -25px;
            }

            .steam-line {
                height: 15px;
            }
        }

        @media (max-width: 480px) {
            .loading-logo {
                margin-bottom: 25px;
            }

            .coffee-cup {
                width: 80px;
                height: 80px;
            }

            .cup {
                width: 60px;
                height: 45px;
            }

            .saucer {
                width: 75px;
            }
        }

        /* Pre-animate landing elements for smooth reveal - ONLY FOR LANDING */
        .landing-element {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        /* Ready state for animated elements */
        .main-content.ready .landing-element {
            opacity: 1;
            transform: translateY(0);
        }

        /* Centered Carousel Styles for Inside of Cafe Section */
        .centered-carousel-container {
            position: relative;
            width: 100%;
            max-width: 1200px;
            height: 400px;
            margin: 2rem auto;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .centered-carousel-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            perspective: 1200px;
        }

        .centered-carousel-slide {
            position: absolute;
            width: 350px;
            height: 450px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: pointer;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(46, 26, 0, 0.3);
        }

        .carousel-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.6s ease;
        }

        .slide-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(46, 26, 0, 0.85));
            color: var(--text-color-light);
            padding: 2rem 1.5rem 1.5rem;
            text-align: center;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .slide-overlay h3 {
            font-family: var(--primaryFont);
            font-size: var(--subheading);
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--secondary-color);
        }

        .slide-overlay p {
            font-family: var(--secondaryFont);
            font-size: var(--lead);
            margin: 0;
            opacity: 0.9;
        }

        /* Slide positions and states */
        .centered-carousel-slide.active {
            transform: translateX(0) scale(1) rotateY(0deg);
            z-index: 3;
            filter: blur(0px);
            opacity: 1;
        }

        .centered-carousel-slide.active .slide-overlay {
            transform: translateY(0);
        }

        .centered-carousel-slide.active:hover .slide-overlay {
            transform: translateY(0);
        }

        .centered-carousel-slide.prev {
            transform: translateX(-220px) scale(0.75) rotateY(25deg);
            z-index: 2;
            filter: blur(4px);
            opacity: 0.6;
        }

        .centered-carousel-slide.next {
            transform: translateX(220px) scale(0.75) rotateY(-25deg);
            z-index: 2;
            filter: blur(4px);
            opacity: 0.6;
        }

        .centered-carousel-slide.hidden {
            transform: translateX(0) scale(0.5);
            z-index: 1;
            filter: blur(6px);
            opacity: 0;
        }

        /* Navigation buttons */
        .carousel-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background: var(--card-bg-color);
            border: 2px solid var(--text-color-dark);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s ease;
            color: var(--text-color-dark);
            font-size: 1.5rem;
        }

        .carousel-nav-btn:hover {
            background: var(--text-color-dark);
            color: var(--secondary-color);
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 5px 15px rgba(46, 26, 0, 0.3);
        }

        .carousel-nav-prev {
            left: 20px;
        }

        .carousel-nav-next {
            right: 20px;
        }

        .carousel-pagination {
            position: absolute;
            bottom: -60px;
            /* Keep same vertical position as before */
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            /* Centered bullets */
            z-index: 10;
            width: auto;
            height: 20px;
            pointer-events: none;
            /* Allows click only on the bullets */
        }

        .carousel-pagination-track {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: none;
            transform: translateX(0);
            pointer-events: auto;
        }

        .carousel-pagination-bullet {
            width: clamp(6px, 1.5vw, 10px);
            height: clamp(6px, 1.5vw, 10px);
            border-radius: 50%;
            background: #2E1A00;
            opacity: 0.2;
            cursor: pointer;
            transition: none;
            transform: scale(0.33);
            border: none;
            flex-shrink: 0;
            visibility: visible;
            margin: 0 4px;
        }

        .carousel-pagination-bullet.hidden {
            visibility: hidden;
            opacity: 0;
            transform: scale(0);
        }

        .carousel-pagination-bullet.active {
            transform: scale(1);
            opacity: 1;
            background: #2E1A00;
        }

        .carousel-pagination-bullet.active-prev,
        .carousel-pagination-bullet.active-next {
            transform: scale(0.66);
            opacity: 0.4;
        }

        .carousel-pagination-bullet.active-prev-prev,
        .carousel-pagination-bullet.active-next-next {
            transform: scale(0.33);
            opacity: 0.2;
        }

        .carousel-pagination-bullet:hover:not(.hidden) {
            opacity: 0.5;
        }

        /* Remove fixed widths so it auto-sizes based on bullet count */
        .carousel-pagination.max-3,
        .carousel-pagination.max-4,
        .carousel-pagination.max-5 {
            width: auto;
        }

        /* Responsive tweaks for small screens */
        @media (max-width: 576px) {
            .carousel-pagination {
                bottom: -50px;
                /* Slightly higher on small screens if needed */
            }

            .carousel-pagination-track {
                gap: 4px;
            }

            .carousel-pagination-bullet {
                margin: 0 2px;
            }
        }



        /* Responsive design */
        @media (max-width: 768px) {
            .centered-carousel-container {
                height: 300px;
            }

            .centered-carousel-slide {
                width: 250px;
                height: 280px;
            }

            .centered-carousel-slide.prev {
                transform: translateX(-150px) scale(0.7) rotateY(25deg);
            }

            .centered-carousel-slide.next {
                transform: translateX(150px) scale(0.7) rotateY(-25deg);
            }

            .slide-overlay h3 {
                font-size: var(--subheading);
            }

            .slide-overlay p {
                font-size: var(--lead);
            }

            .carousel-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }

            .carousel-nav-prev {
                left: 10px;
            }

            .carousel-nav-next {
                right: 10px;
            }
        }

        @media (max-width: 480px) {
            .centered-carousel-slide {
                width: 200px;
                height: 250px;
            }

            .centered-carousel-slide.prev {
                transform: translateX(-120px) scale(0.6) rotateY(30deg);
            }

            .centered-carousel-slide.next {
                transform: translateX(120px) scale(0.6) rotateY(-30deg);
            }

            .slide-overlay {
                padding: 1.5rem 1rem 1rem;
            }

            .slide-overlay h3 {
                font-size: var(--lead);
            }

            .slide-overlay p {
                font-size: var(--h6);
            }
        }