/*
Style Guide - E-Furniture - V10 (Vibrant Forest)
Aligned with the latest IA and Style Guide
*/

/* 2.0 Color Palette & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Baloo+Da+2:wght@400;500;700&display=swap');

:root {
    --primary-color: #228B22; /* Forest Green */
    --primary-dark: #1A2B1A; /* Very dark green */
    --background-light: #F0FFF0; /* Honeydew */
    --accent-color: #FFBF00; /* Amber */
    --white-color: #FFFFFF;
    --success-color: #28A745;
    --error-color: #DC3545;
    --border-color: #D1DCD1;
    --text-primary: #1A2B1A;
    --text-secondary: #4A4A4A;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Baloo Da 2', cursive;
}

/* 3.0 Base & Typography */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, .h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
}

h2, .h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

h3, .h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

p, .p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: #1A691A; /* Darker Forest Green */
    }

/* 7.0 Layout and Grid */
.section {
    padding: 64px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    color: var(--text-primary);
}

.contact-info-block {
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 40px; /* Add some space below the block */
}

/* 4.1 Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #1A691A; /* Darker Forest Green */
        border-color: #1A691A;
        transform: translateY(-2px);
    }

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

    .btn-secondary:hover {
        background-color: #E6A700;
        border-color: #E6A700;
        transform: translateY(-2px);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: var(--white-color);
    }


/* Header */
.navbar-brand {
    font-weight: 700;
    color: var(--text-primary);
}

.navbar .nav-link {
    position: relative; /* Required for the underline pseudo-element */
    transition: color 0.3s ease;
    padding-bottom: 8px; /* Add some space for the underline */
    color: var(--text-secondary);
}

    /* The animated underline */
    .navbar .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease-in-out;
    }

    /* On hover or for the active page, expand the underline */
    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        width: 80%; /* A little shorter than 100% for a cleaner look */
    }

    .navbar .nav-link.active {
        font-weight: 700; /* Make the active link text slightly bolder */
        color: var(--text-primary);
    }

/* Hero Section */
.hero-carousel .carousel-item {
    height: 550px;
}

    .hero-carousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-carousel .carousel-caption {
    background: rgba(26, 43, 26, 0.7); /* Dark green overlay for better contrast */
    border-radius: 8px;
    padding: 2rem;
    bottom: 15%;
}

    .hero-carousel .carousel-caption h1 {
        font-size: 48px;
        font-weight: 700;
        color: var(--white-color);
    }

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(26, 43, 26, 0.1);
    }

.card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* 4.3 Product Cards */
.product-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card .card-text {
    font-size: 16px;
    color: var(--primary-color);
}

/* 4.4 Category & Room Cards */
.category-card-alt, .room-card-alt {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(26, 43, 26, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    color: var(--white-color);
}

    .category-card-alt:hover, .room-card-alt:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(26, 43, 26, 0.2);
    }

    .category-card-alt img, .room-card-alt img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .category-card-alt:hover img, .room-card-alt:hover img {
        transform: scale(1.05);
    }

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 43, 26, 0.8), rgba(26, 43, 26, 0));
    padding: 20px;
    text-align: center;
}

    .card-overlay h5 {
        margin-bottom: 0;
        font-weight: 700;
        color: var(--white-color);
    }

/* Value Propositions */
.value-prop-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.value-prop:hover .value-prop-icon {
    transform: scale(1.1);
}

/* Interior Design Showcase */
.interior-showcase {
    background-color: #ffffff;
}

/* 4.5 Testimonial Cards */
.testimonial-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(26, 43, 26, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
    align-self: flex-end;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white-color);
    padding: 48px 0;
}

    .footer a {
        color: var(--white-color);
        opacity: 0.8;
    }

        .footer a:hover {
            opacity: 1;
        }

/* Language Specific Content */
.lang-en {
    display: inline;
}

.lang-bn {
    display: none;
}

body[data-lang="bn"] .lang-en {
    display: none;
}

body[data-lang="bn"] .lang-bn {
    display: inline;
}

body[data-lang="bn"] {
    font-family: var(--font-secondary);
}

/* Blog Page Specific Styles */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(26, 43, 26, 0.1);
    }

    .blog-card .card-img-top {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .blog-card .card-body .card-title {
        font-size: 20px; /* Slightly larger for blog titles */
        font-weight: 700;
        line-height: 1.3;
    }

    .blog-card .card-body .card-text.text-muted {
        font-size: 14px;
        line-height: 20px;
        color: var(--text-secondary) !important; /* Ensure readability */
    }

    .blog-card .card-body .card-text {
        font-size: 16px;
        line-height: 24px;
    }

/* Blog Post Page Specific Styles */
.blog-article {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.blog-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: var(--text-primary);
}

.blog-post-meta {
    font-size: 14px;
    line-height: 20px;
    color: var(--text-secondary) !important; /* Ensure readability */
}

.blog-post-image-container {
    max-width: 800px; /* Constrain image width */
    margin: 0 auto 40px auto; /* Center and add bottom margin */
    box-shadow: 0 8px 24px rgba(26, 43, 26, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

    .blog-post-image-container img {
        border-radius: 8px;
    }

.blog-content {
    max-width: 750px; /* Optimal line length for readability */
    margin: 0 auto;
}

    .blog-content p {
        font-size: 16px;
        line-height: 26px; /* Slightly increased line height for better readability */
        margin-bottom: 24px; /* Consistent spacing */
    }

.blog-related-posts li a {
    font-weight: 500; /* Medium font weight for links */
    color: var(--primary-color);
}

    .blog-related-posts li a:hover {
        text-decoration: underline;
    }

/* --- Interior Services Page --- */

.page-hero {
    padding: 80px 0;
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
}

    .page-hero h1 {
        font-size: 48px;
        font-weight: 700;
    }

.consultation-hero {
    background-image: url('https://via.placeholder.com/1500x500/1A2B1A/FFFFFF?text=Interior+Design+Consultation'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

    .consultation-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(26, 43, 26, 0.5); /* Dark overlay for text readability */
        z-index: -1;
    }

.service-card {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(26, 43, 26, 0.08);
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 32px rgba(26, 43, 26, 0.12);
    }

    .service-card .service-icon {
        color: var(--primary-color);
        margin-bottom: 1.5rem;
    }

.process-step {
    text-align: center;
    padding: 2rem;
}

    .process-step .step-number {
        display: inline-block;
        width: 60px;
        height: 60px;
        line-height: 60px;
        border-radius: 50%;
        background-color: var(--primary-color);
        color: var(--white-color);
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

.cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--background-light);
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.team-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .team-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(26, 43, 26, 0.1);
    }

.team-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--primary-color);
    flex-shrink: 0; /* Prevents the container from shrinking */
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.team-card .team-social-links {
    margin-top: 1rem;
}

    .team-card .team-social-links a {
        color: var(--text-secondary);
        margin: 0 0.5rem;
        opacity: 0.7;
        transition: opacity 0.3s ease, color 0.3s ease;
    }

        .team-card .team-social-links a:hover {
            opacity: 1;
            color: var(--primary-color);
        }

.gallery-preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

    .gallery-preview-item img {
        transition: transform 0.3s ease;
    }

    .gallery-preview-item:hover img {
        transform: scale(1.1);
    }

/* Move to top button */
#moveToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(26, 43, 26, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    #moveToTop:hover {
        background-color: #1A691A; /* Darker Forest Green */
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(26, 43, 26, 0.3);
    }

    #moveToTop i {
        color: var(--white-color);
    }

/* Featured Projects Carousel */
#featuredProjectsCarousel .carousel-item {
    height: 450px; /* Adjust height as needed */
}

    #featuredProjectsCarousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

#featuredProjectsCarousel .carousel-caption {
    background: rgba(26, 43, 26, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    bottom: 0; /* Adjusted to be at the very bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
}

#featuredProjectsCarousel .carousel-item {
    height: 450px; /* Adjust height as needed */
    padding-bottom: 100px; /* Added space for the caption */
}

#featuredProjectsCarousel .carousel-control-prev,
#featuredProjectsCarousel .carousel-control-next {
    z-index: 100; /* Increased z-index to ensure controls are on top */
}

#featuredProjectsCarousel .carousel-item {
    position: relative; /* Ensure z-index works for children */
    z-index: 1; /* Ensure carousel items are part of the stacking context */
}

#featuredProjectsCarousel .carousel-caption h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white-color);
}

.carousel-item .col-md-6.order-md-1 {
    position: relative;
    z-index: 2; /* Ensure content column is above other elements if any */
}

.carousel-item .btn-outline-primary {
    position: relative;
    z-index: 3; /* Ensure the button is on top of its siblings */
}


/* PDP Page */
.main-image-container {
    border: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(26, 43, 26, 0.05);
    overflow: hidden; /* For zoom effect */
}

    .main-image-container img {
        transition: transform 0.3s ease;
    }

    .main-image-container:hover img {
        transform: scale(1.1);
    }

.product-thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    height: auto;
}

    .product-thumbnail:hover, .product-thumbnail.active {
        border-color: var(--primary-color);
        transform: scale(1.05);
    }

.pdp-price {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
}

#productTabs .nav-link.active {
    border-color: var(--border-color) var(--border-color) #fff;
    border-bottom: 3px solid var(--primary-color);
}

.btn-wishlist:hover {
    background-color: var(--background-light);
    color: var(--text-primary) !important; /* Fix for invisible text */
}

/* Top Bar */
.top-bar {
    background-color: var(--background-light);
    padding: 8px 0;
    font-size: 14px;
}

    .top-bar a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .top-bar a:hover {
            color: var(--primary-color);
        }

    .top-bar .social-icons a {
        color: var(--text-secondary);
    }

        .top-bar .social-icons a:hover {
            color: var(--primary-color);
        }

.logo {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-sub-text {
    color: #afa5a5;
}

.cart-badge.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.original-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-sku {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stock-dot {
    display: inline-block;
    width: 8px !important;
    height: 8px !important;
    background: #2d5016;
    border-radius: 50%;
}

.qty-input {
    width: 60px;
    height: 34px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 2px;
    width: fit-content;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-section {
    display: flex;
    flex-direction: column;
}

.qty-btn {
    width: 34px;
    height: 34px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qty-btn:hover {
        background: #2d5016;
        color: #fff;
    }

.quantity-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.qty-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.btn-cart {
    flex: 2;
    padding: 16px 36px;
    background: #2d5016;
    color: #fff;
    border: none;
    border-radius: 8px !important;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
    min-width: 200px;
}

.btn-wishlist {
    flex: 1;
    padding: 18px 28px;
    background: transparent;
    color: #555;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

    .btn-wishlist:hover {
        border-color: #2d5016;
        color: #2d5016;
        background: #f8faf7;
    }

.tab-btn {
    /* background: none;
    border: none;
    padding: 12px 4px;*/
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.product-meta {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .product-meta span {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 14px;
        line-height: 1.6;
    }

.meta-label {
    color: #888;
    font-weight: 600;
    min-width: 90px;
}

.sku {
    color: #333;
    font-weight: 500;
}

.posted_in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

    .posted_in a {
        color: #2d5016;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .posted_in a:hover {
            color: #234010;
            text-decoration: underline;
        }

.meta-sep {
    margin: 0 4px;
    color: #ccc;
}

.responsive-height{
    height:100vh auto !important;
}

/*
    .tab-btn:hover {
        color: #333;
    }

    .tab-btn.active {
        color: #2d5016;
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: #2d5016;
        }*/
