/* ===================================
   HOME HTML STYLES (HYBRID FIGMA + REFERENCE)
   =================================== */

:root {
    --logo-gray: #183D4A;
    --beige: #F0EFE7;
    --logo-blue: #13C2CF;
    --logo-mixed: #0E7580;
    --nav-bar-gold: #ECD8B6;
}

body {
    background: var(--beige);
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* 1. Marquee Container */
.marquee-container {
    background: var(--beige);
    height: 45px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--nav-bar-gold);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-content span {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--logo-gray);
    padding-right: 50px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 2. Hero Section */
.hero-section {
    display: flex;
    height: 832px;
    background: var(--logo-gray);
    overflow: hidden;
}

.hero-text-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    background: linear-gradient(rgba(24, 61, 74, 0), rgba(24, 61, 74, 0)),
        url('../assets/home/hero-bg.PNG') no-repeat center center / cover;
}

.hero-text {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-in-out;
}

.hero-text.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-text h1 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 60px;
    line-height: 1.2;
    color: var(--nav-bar-gold);
}

.hero-text h2 {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.hero-carousel {
    flex: 1;
}

.hero-carousel .splide__slide img {
    height: 832px;
    object-fit: cover;
}

/* 3. Hero Section 2 (Sparkle) */
.hero-section2 {
    background: var(--beige);
    padding: 100px 0;
    text-align: center;
}

.text-wrapper h2 {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 38px;
    color: var(--logo-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.tooth-icon {
    width: 60px;
}

/* 4. Highlight Carousel (Hero Section 3) */
.hero-section3 {
    position: relative;
    height: 639px;
}

.carousel-item2 {
    height: 639px;
    background: linear-gradient(270deg, var(--logo-gray) 15.87%, rgba(38, 77, 91, 0.95) 35.77%, transparent 90%),
        url('../assets/service/triangle_image.png') no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10%;
}

.carousel-content {
    max-width: 550px;
    text-align: center;
    color: #FFFFFF;
}

.carousel-content h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 45px;
    color: var(--beige);
    margin-bottom: 25px;
}

.carousel-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    padding: 12px 35px;
    background: rgba(240, 239, 231, 0.75);
    color: var(--logo-gray);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}

.experience-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 220px;
    height: 140px;
    background: var(--nav-bar-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.experience-box .years {
    font-family: 'Libre Baskerville', serif;
    font-size: 60px;
    font-weight: 700;
    color: var(--logo-gray);
    line-height: 1;
}

.experience-box .text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--logo-gray);
    text-transform: uppercase;
}

/* Pagination Bar Styling for Background Carousel */
#backgroundCarousel .splide__pagination {
    position: absolute;
    top: 615px;
    bottom: auto;
    left: 0;
    right: 0;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    width: 100%;
}

#backgroundCarousel .splide__pagination__page {
    width: 25px;
    height: 6px;
    background: linear-gradient(90deg, #13C2CF 0%, #A1ECF2 100%);
    border-radius: 25px;
    margin: 0;
    border: none;
    opacity: 1;
    transition: background 0.3s ease;
}

#backgroundCarousel .splide__pagination__page.is-active {
    background: #183D4A;
    transform: none;
    /* Disable default Splide scale effect */
}

/* 5. Kids and Family Dentistry */
.dentistry {
    background: var(--beige);
    padding: 120px 0;
}

.dentistry-header {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 75px;
    color: var(--logo-gray);
    margin-bottom: 60px;
}

.dentistry-subHeader {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 40px;
    color: var(--logo-gray);
    margin-top: 40px;
}

.dentistry-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--logo-gray);
    margin-bottom: 20px;
}

.read-more-btn2 {
    background: var(--logo-gray) !important;
    color: var(--beige) !important;
    padding: 12px 40px;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* 6. Kids Cool Section */
.kids-cool {
    background: var(--logo-gray);
    color: var(--beige);
    padding: 100px 0;
}

.kids-head {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 75px;
    line-height: 1.2;
}

.kids-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 25px;
    margin-top: 20px;
}

.kids-content h2 {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 40px;
    margin-bottom: 30px;
    color: var(--nav-bar-gold);
}

.kids-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
}

.kids-content li h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.read-more-btn3 {
    background: var(--beige) !important;
    color: var(--logo-gray) !important;
    padding: 12px 40px;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* 7. Exceptional Care labels */
.exceptional {
    background: var(--beige);
    padding: 100px 0;
}

.exceptional h1 {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 75px;
    text-align: center;
    color: var(--logo-gray);
}

.testimonial-card,
.testimonial-card2 {
    background: rgba(19, 194, 207, 0.2);
    border-radius: 0 50px;
    padding: 40px;
    height: 450px;
    /* Fixed height from Figma */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    color: #183D4A;
    /* Explicit color */
}

.testimonial-card2 {
    background: rgba(14, 117, 128, 0.2);
}

.quote-icon {
    font-family: 'Lora', serif;
    font-size: 70px;
    color: #183D4A;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.8;
    color: #183D4A;
    flex-grow: 1;
    /* allow text to take space */
}

.divider {
    border-top: 1px solid var(--logo-gray);
    margin: 20px 0;
}

.author {
    font-size: 16px;
    margin-bottom: 15px;
}

.feedback-dots img {
    width: 40px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        height: auto;
    }

    .hero-carousel,
    .hero-carousel .splide__slide img {
        height: 500px !important;
    }

    .hero-text-container {
        height: 400px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .kids-head,
    .dentistry-header,
    .exceptional h1 {
        font-size: 45px;
    }
}

/* Custom Arrows for Testimonials */
.testimonial-arrows {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    background: #13C2CF;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1 !important;
    /* Override Splide Default */
    position: static !important;
    /* Override Splide Absolute */
    transform: none !important;
}

.arrow-btn i {
    color: #183D4A;
    font-size: 16px;
}

.arrow-btn:hover {
    background: rgb(236, 216, 182);
}

.arrow-btn i {
    pointer-events: none;
}