/* Custom Styles for Homepage Redesign */

:root {
    --primary-color: #52b6b2;
    --primary-color-hover: #45a09d;
}

/* Brand Color Overrides */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-color-hover);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-color-hover) !important;
    border-color: var(--primary-color-hover) !important;
    color: #fff !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Slider Nav & Dots Overrides */
.owl-carousel .owl-nav button[class*=owl-] {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.owl-carousel .owl-nav button[class*=owl-]:hover {
    background-color: var(--primary-color-hover) !important;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: var(--primary-color) !important;
}

/* Hero Slider Adjustments */
.home-slider .banner-content h2.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Force Equal Height for Hero Slider */
.home-slider .home-slide {
    height: 350px !important;
    /* Fixed height for desktop */
}

.home-slider .slide-bg {
    height: 100% !important;
    width: 100% !important;
    object-fit: fill !important;
    /* This stops the zooming */
}

.home-slider {

    .owl-next,
    .owl-prev {
        color: #fafafa !important;
    }
}

/* FINAL MOBILE FIX: 3 Circles, No Overlap, No Zoom */
@media (max-width: 768px) {

    /* 1. Set Slider Height and add a gap below it */
    .home-slider,
    .home-slider .home-slide,
    .home-slider .owl-stage-outer,
    .home-slider .owl-stage,
    .home-slider .owl-item {
        height: 100px !important;
        min-height: 100px !important;
    }

    /* 2. Show the FULL image (complete) without zooming */
    .home-slider .slide-bg {
        height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    /* 3. Hide navigation arrows/dots */
    .home-slider .owl-nav,
    .home-slider .owl-dots {
        display: none !important;
    }

    /* 4. Make circle text smaller to fit 3 in a row */
    .product-category.category-circular h3 {
        font-size: 1.1rem !important;
    }

    /* 5. REDUCE THE GAP below the circle names (Removes extra padding) */
    .bg-gray.pb-5,
    .bg-gray .container-fluid.pb-5 {
        padding-bottom: 1rem !important;
        /* Tightens the space mark by red colour */
    }
}

/* Circular Categories */
.product-category.category-circular figure {
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 3px solid #fff;
    margin-top: 10px;
}

.product-category.category-circular:hover figure {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.product-category.category-circular .category-content {
    text-align: center;
}

/* Hides Navigation Arrows for Circle Categories (Desktop & Mobile) */
.categories-slider .owl-nav {
    display: none !important;
}

/* --- Interior Design Section Updated --- */
.interior-design-section {
    font-family: 'Poppins', 'Jost', sans-serif;
    /* Using Poppins/Jost as requested */
}

.comparison-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-slider-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 2px;
    background: #fff;
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #333;
    font-size: 1.2rem;
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
}

/* Right Content Styling - Updated as requested */
.design-label {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #888;
}

.design-heading {
    font-size: 3.2rem;
    /* Updated Size */
    font-weight: 700;
    /* Updated Weight */
    color: #000;
    /* Updated Color */
    line-height: 1.2;
    margin-bottom: 25px;
}

.design-description {
    font-size: 1.8rem;
    color: #666;
    width: 100% !important;
    /* forces text to fill the white space */
    max-width: none !important;
    line-height: 1.2;
    text-align: justify !important;
    text-justify: inter-word;
    /* ensures smooth justification */
    margin-bottom: 5px;
}

/* Button Styling - Black to Teal Hover */
.btn-book-now {
    padding: 15px 60px;
    font-size: 1.5rem;
    text-transform: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: #000 !important;
    /* Default Black */
    color: #fff !important;
    /* White Text */
    border: none;
    display: inline-block;
}

.btn-book-now:hover {
    background-color: var(--primary-color) !important;
    /* Teal Hover (#52b6b2) */
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 182, 178, 0.4);
}

@media (max-width: 991px) {
    .design-heading {
        font-size: 2.8rem;
    }

    .design-description {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .btn-book-now {
        width: 100%;
        text-align: center;
    }

    .comparison-slider-container {
        aspect-ratio: 16 / 10;
    }
}

/* "Dream Big. Pay Small." Cards */
.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.badge-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Fabric Samples Banner */
.fabric-banner {
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.fabric-banner h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Best Sellers section */
.best-sellers-section .section-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #000;
}

.product-default.inner-quickview figure img {
    width: 100%;
    height: 300px;
    /* Fixed height for product images */
    object-fit: cover;
}

.product-default.inner-quickview .product-details {
    padding-top: 15px;
    text-align: center;
}


/* =========================================
   TESTIMONIALS & TRUSTPILOT MASTER STYLES 
   ========================================= */
.testimonials-section {
    padding: 80px 0;
    background-color: #fff;
}

.testimonials-section .owl-stage {
    display: flex !important;
}

.testimonials-section .owl-item {
    display: flex !important;
    height: auto !important;
}

/* Adjust Section Title Size & Spacing */
.testimonials-section .section-title {
    font-size: 2.8rem !important;
    /* Managed size */
    margin-bottom: 15px !important;
    text-align: center !important;
    width: 100%;
}

/* Summary Bar Above Slider */
.tp-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    /* Reduced gap between bar and cards */
    width: 100%;
    text-align: center;
}

.tp-summary span {
    font-size: 1.3rem;
    /* Slightly smaller for cleaner look */
    color: #888;
    font-weight: 700;
    /* Bold */
}

.tp-stars-container {
    display: flex;
    gap: 4px;
}

.tp-star-outline {
    color: #4db7b3;
    font-size: 1.5rem;
    /* Smaller stars */
}

.tp-count {
    color: #4db7b3 !important;
    font-weight: 800 !important;
    /* Extra bold for visibility */
    font-size: 1.3rem;
    text-decoration: none !important;
}

.tp-brand {
    font-weight: 700;
    /* Bold */
    color: #888;
    font-size: 1.3rem;
}

/* Testimonial Card Styles (Matches your Attached Image) */
.testimonial-card {
    background-color: #f1f7f9;
    /* Light blue/gray bg */
    border-radius: 15px;
    padding: 35px 30px;
    height: calc(100% - 10px);
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin: 5px;
    flex: 1;
}

.testimonial-title {
    color: #4db7b3;
    /* Teal */
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-align: center;
    /* Centered */
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

.testimonial-card p {
    color: #444;
    font-size: 1.45rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    /* Centered */
    font-weight: 400;
    flex-grow: 1;
}

/* Source / Checkmark Icon (Top Right) */
.review-source-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.6rem;
}

.source-website {
    color: #4db7b3;
}

/* Teal checkmark circle */
.source-facebook {
    color: #1877F2;
}

.source-google {
    color: #EA4335;
}

/* Card Footer Layout */
.testimonial-footer {
    border-top: none;
    padding-top: 0;
    margin-top: auto;
    text-align: center;
}

.client-name {
    color: #4db7b3;
    /* Teal */
    font-weight: 700;
    font-size: 1.5rem;
    display: block;
    text-align: center;
}

.client-date {
    color: #888;
    font-size: 1.3rem;
    margin-top: 10px;
    display: block;
}

.gold-stars {
    color: #FFD100;
    /* Premium Gold */
    font-size: 1.3rem;
    letter-spacing: 1px;
}

/* --- Review Buttons Adjustments --- */
.testimonial-buttons-container {
    margin-top: 50px;
    /* Theme setting gap */
}

.gap-container {
    gap: 20px;
    /* Equal space between buttons */
}

.review-btn {
    border-width: 2px !important;
    border-radius: 4px !important;
    padding: 12px 30px !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    transition: all 0.3s ease;
}

.btn-facebook {
    border-color: #1877F2 !important;
    color: #1877F2 !important;
    background: transparent !important;
}

.btn-facebook:hover {
    background: #1877F2 !important;
    color: #fff !important;
}

.btn-google {
    border-color: #EA4335 !important;
    color: #EA4335 !important;
    background: transparent !important;
}

.btn-google:hover {
    background: #EA4335 !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .gap-container {
        flex-direction: column;
        align-items: center;
    }

    .review-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   CUSTOM DESIGN SECTION STYLES
   ========================================= */
.design-heading {
    font-size: 3.2rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-bottom: 25px;
}

.design-description {
    font-size: 1.8rem;
    color: #666;
    width: 100% !important;
    max-width: none !important;
    line-height: 1.2;
    text-align: justify !important;
}

/* Expert Inspiration & Guidance Section */
.expert-inspiration-section {
    padding-top: 10px;
    padding-bottom: 60px;
    background-color: #fff;
}

.expert-inspiration-section .section-title {
    display: inline-block;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-bottom: 40px;
    font-size: 3.2rem;
    font-weight: 700;
    color: #000;
}

.expert-banner {
    position: relative;
    margin-bottom: 60px;
    /* Space for the overlapping card */
}

.expert-banner img,
.expert-banner .expert-iframe-map {
    width: 100%;
    height: 450px;
    min-height: 450px;
    object-fit: cover;
    border-radius: 4px;
    position: relative;
    display: block;
}

.expert-card {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    width: 85%;
    min-height: 275px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 2;
}

.expert-card h3 {
    font-size: 2rem;
    color: #444;
    margin-bottom: 10px;
    font-weight: 600;
}

.expert-card .card-divider {
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 15px auto;
}

.expert-card p {
    font-size: 1.35rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.expert-card .btn-expert {
    background-color: #3b475c;
    /* Using a darker tone for contrast as per mockup, or use --primary-color */
    color: #fff !important;
    padding: 10px 30px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

@media (max-width: 991px) {

    .expert-banner img,
    .expert-banner .expert-iframe-map {
        height: 350px;
    }

    .expert-card {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .expert-banner {
        margin-bottom: 80px;
    }

    .expert-banner img,
    .expert-banner .expert-iframe-map {
        height: 300px;
    }

    .expert-card h3 {
        font-size: 1.8rem;
    }
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
    background: none;
    color: inherit;
    border: 0;
    padding: 0 !important;
    font: inherit;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* Fix: allow carousel items to overflow so hover effects aren't clipped */
.categories-section .product-category {
    overflow: visible;
    /* ensure individual item can overflow */
}

.categories-section .product-category:hover {
    z-index: 5;
    /* bring hovered item above neighbors */
}

.categories-section .product-category figure img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* FORCE hide side bleeding even with nav-outer */
.categories-section,
.categories-slider,
.categories-slider .owl-stage-outer,
.categories-slider .owl-stage {
    overflow: hidden !important;
}

/* Add this at the end of assets/css/home_custom.css */
.category-section .section-title {
    font-size: 3.2rem;
    /* Change this value to increase size */
    font-weight: 700;
    color: #000;

}

/* Section Category Card Description Styling */
.section-description {
    font-size: 1.8rem;
    color: #666;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-weight: 400;
}

/* Category Card Hover Effects - Zoom & Color Change */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card:hover h4 {
    color: var(--primary-color) !important;
}

/* Fabric Banner Icon Styling */
.fabric-icon {
    font-size: 5rem;
    /* Makes the icon large */
    color: rgba(255, 255, 255, 0.8);
    /* White with a bit of transparency */
    border-radius: 5px;
}

/* Ensure text and icon align perfectly on mobile */
@media (max-width: 768px) {
    .fabric-icon {
        font-size: 4rem;
        margin-bottom: 20px;
        margin-right: 0 !important;
    }

    .fabric-banner .text-left {
        flex-direction: column;
        /* Stacks icon on top of text for small screens */
        text-align: center;
    }
}

/* --- Modern Why Sleep Easy Section --- */
.value-props-modern {
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
    /* Light lavender gradient */
    position: relative;
    overflow: hidden;
    padding: 2rem 0 !important;
}

/* Background decorative blobs */
.value-props-modern::before,
.value-props-modern::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
    z-index: 0;
}

.value-props-modern::before {
    width: 400px;
    height: 400px;
    left: -150px;
    bottom: -100px;
    opacity: 0.6;
}

.value-props-modern::after {
    width: 300px;
    height: 300px;
    right: -100px;
    top: 10%;
    opacity: 0.4;
}

.value-props-modern .container-fluid {
    position: relative;
    z-index: 1;
}

.modern-section-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #000;
    /* Deep Navy/Purple */
    margin-bottom: 2rem !important;
}

.modern-info-box {
    padding: 10px;
    transition: transform 0.3s ease;
}

.modern-info-box .icon-circle {
    width: 90px;
    height: 90px;
    background-color: #000;
    /* Match heading color */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    font-size: 3.5rem;
    box-shadow: 0 10px 20px rgba(45, 42, 110, 0.2);
    transition: all 0.3s ease;
}

.modern-info-box:hover .icon-circle {
    transform: translateY(-10px) rotate(5deg);
    background-color: #52b6b2;
    /* Turns to your primary teal on hover */
}

.modern-info-box h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
}

.modern-info-box p {
    font-size: 1.8rem;
    color: #666;
    max-width: 250px;
    margin: 0 auto;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .modern-section-title {
        font-size: 2.8rem;
        margin: 0 auto;
    }

    .value-props-modern {
        padding: 4rem 0 !important;
    }
}

/* --- Upgrade Section - Custom Style --- */
.upgrade-section .section-title {
    font-size: 3.2rem !important;
    font-weight: 700 !important;
    color: #000 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upgrade-section .description {
    font-size: 1.8rem !important;
    /* Matches requested size */
    color: #666 !important;
    /* Matches requested color */
    max-width: 900px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Accordion Specifics */
.upgrade-accordion .accordion-item {
    border-bottom: 1px solid #eee;
}

.upgrade-accordion .accordion-header {
    display: flex;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
}

.upgrade-accordion .header-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    flex-grow: 1;
}

.upgrade-accordion .icon-wrap {
    font-size: 2.2rem;
    color: #52b6b2;
    margin-right: 12px;
}

.upgrade-accordion .arrow-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.upgrade-accordion .accordion-header:not(.collapsed) .arrow-icon {
    transform: rotate(180deg);
}

.text-teal {
    color: #52b6b2 !important;
    text-decoration: underline !important;
    font-weight: 500;
}

/* Image container */
/* --- Slim Zoom Effect for About & Upgrade Sections --- */

.upgrade-image-container {
    overflow: hidden;
    /* Clips the image so it doesn't leak out */
    border-radius: 12px;
    /* Keeps the corners rounded during zoom */
    display: block;
}

.upgrade-image-container img {
    transition: transform 0.6s ease;
    /* Smooth speed of the zoom */
    display: block;
    width: 100%;
}

.upgrade-image-container:hover img {
    transform: scale(1.08);
    /* Slight zoom (8% increase) */
}


/* Hover Image Effect */
.product-default figure {
    position: relative;
}

.product-default .last-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    /* Smooth fade effect */
}

.product-default:hover .last-image {
    opacity: 1;
    /* Shows on hover */
}

/* --- Accurate Icon Alignment & Color --- */
.facts-list {
    list-style: none;
    padding-left: 0;
}

.facts-list li {
    display: flex;
    /* Keeps icon and text on the same line */
    align-items: flex-start;
    /* Aligns icon with the top/first line of text */
    margin-bottom: 20px;
    gap: 15px;
    /* Space between the icon and the text */
}

.facts-list li i {
    color: #52b6b2;
    /* Your brand teal color from second image */
    font-size: 2.2rem;
    /* Matches the impact of the text */
    line-height: 1.2;
    /* Centers it vertically with the first line */
    flex-shrink: 0;
    /* Prevents the icon from squishing */
    margin-top: 2px;
    /* Slight nudge for perfect optical alignment */
}

/* Fix for the width issue */
.facts-list li .design-description {
    width: auto !important;
    /* Overrides 100% to stop it from hogging the row */
    flex: 1 !important;
    /* Forces text into the space next to icon */
    margin: 0 !important;
    /* Removes any default padding */
    text-align: justify !important;
    /* Keeps your requested justified text */
    line-height: 1.3 !important;
}