

/* CSS Variables - Scoped to homepage */
#homepage {
    /* --lbfs-primary-color: #7A1F1F; */
    --lbfs-primary-color: linear-gradient(to bottom, #6b1c21 0%, #431918 100%);
    --lbfs-secondary-color: #1F1F1F;
    --lbfs-accent-color: #d20000;
    --lbfs-light-color: #f8f9fa;
    --lbfs-success-color: #2ecc71;
    --lbfs-border-color: #b5b2b5;
    
    /* Typography Variables - Consistent across all screen sizes */
    --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: "Noto Serif Georgian", serif;
    
    /* Font Sizes - Base (Mobile First) */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.75rem;     /* 28px */
    --font-size-4xl: 2rem;         /* 32px */
    --font-size-5xl: 2.5rem;       /* 40px */
    
    /* Font Sizes - Desktop (700px+) */
    --font-size-xs-desktop: 0.875rem;   /* 14px */
    --font-size-sm-desktop: 1rem;       /* 16px */
    --font-size-base-desktop: 1.125rem;  /* 18px */
    --font-size-lg-desktop: 1.25rem;     /* 20px */
    --font-size-xl-desktop: 1.5rem;     /* 24px */
    --font-size-2xl-desktop: 2rem;      /* 32px */
    --font-size-3xl-desktop: 2.25rem;   /* 36px */
    --font-size-4xl-desktop: 3rem;      /* 48px */
    --font-size-5xl-desktop: 3.5rem;     /* 56px */
    
    /* Spacing Variables - Consistent section spacing */
    --section-spacing-mobile: 0rem;      /* 32px */
    --section-spacing-tablet: 0rem;       /* 48px */
    --section-spacing-desktop: 0rem;      /* 64px */
    
    /* Heading Spacing */
    --heading-margin-bottom: 1.5rem;     /* 24px */
    --heading-margin-bottom-mobile: 1rem;  /* 16px */
    
    /* Line Height */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Font Weight - Professional Standardization */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Only apply to homepage content */
#homepage {
    box-sizing: border-box;
}

/* Font Family - Only for homepage */
#homepage {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--lbfs-secondary-color);
}

/* Unified Typography System - All Headings */
#homepage h1,
#homepage h2,
#homepage h3,
#homepage h4,
#homepage h5,
#homepage h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    color: var(--lbfs-secondary-color);
    line-height: var(--line-height-tight);
    margin-bottom: var(--heading-margin-bottom-mobile);
    letter-spacing: -0.02em;
}

/* H1 - Main Page Titles */
#homepage h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

/* H2 - Section Titles */
#homepage h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

/* H3 - Subsection Titles (Section Titles) */
#homepage h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

/* H4 - Card Titles */
#homepage h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

/* H5 - Small Headings */
#homepage h5 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

/* H6 - Smallest Headings */
#homepage h6 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

/* Paragraphs */
#homepage p {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
}

/* Desktop Typography (700px+) */
@media (min-width: 700px) {
    section.p-5.services{
        padding: 1rem !important;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    .desktop-broker-title-spacing{
        padding-top: 1rem;
    }
    .how-it-works-title-spacing{
        margin-top: 2rem;
    }
   .desktop-title-spacing-featured{
    margin-top: 0!important;
    margin-bottom: 1.5rem!important;
   }
    .desktop-text-listing{
        line-height: 0;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    #homepage {
        font-size: var(--font-size-base-desktop);
    }
    
    #homepage h1 {
        font-size: var(--font-size-4xl-desktop);
        margin-bottom: var(--heading-margin-bottom);
    }
    
    #homepage h2 {
        font-size: var(--font-size-3xl-desktop);
        margin-bottom: var(--heading-margin-bottom);
    }
    
    #homepage h3 {
        font-size: var(--font-size-2xl-desktop);
        margin-bottom: var(--heading-margin-bottom);
    }
    
    #homepage h4 {
        font-size: var(--font-size-xl-desktop);
        margin-bottom: 1rem;
        text-align: justify;
    }
    
    #homepage h5 {
        font-size: var(--font-size-lg-desktop);
        margin-bottom: 0.75rem;
    }
    
    #homepage h6 {
        font-size: var(--font-size-base-desktop);
        margin-bottom: 0.75rem;
    }
    
    #homepage p {
        font-size: var(--font-size-base-desktop);
    }
}

#homepage img {
    max-width: 100%;
    height: auto;
}

/* Button Styles with Animations - Scoped to homepage */
#homepage .btn {
    padding: .7rem 2rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

#homepage .btn-primary {
    background: var(--lbfs-primary-color);
    /* border-color: var(--lbfs-primary-color); */
    color: white;
}
.bg-broker-section {
    position: relative;
    overflow: hidden;
}

.bg-broker-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url('/img/Group299.png');
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.8;
}
.services{
    background: transparent url('/img/MaskGroup1.png') 0% 0%  padding-box;
    padding: 3rem 0 !important;
}
.bg-broker-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url('/img/Group298.png');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.8;
    transform: scaleX(-1);
}

.bg-broker-section > * {
    position: relative;
    z-index: 1;
}

.footer-line-last{
    width: 100%;
    border: 1px solid #333333;
    position: absolute;
    left: 0;
}
#homepage .btn-primary:hover {
    /* background-color: var(--lbfs-accent-color);
    border-color: var(--lbfs-accent-color); */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 31, 31, 0.3);
}

#homepage .btn-secondary {
    background-color: transparent;
    border-color: var(--lbfs-border-color);
    color: var(--lbfs-secondary-color);
}

#homepage .btn-secondary:hover {
    /* background-color: white; */
    border-color: var(--lbfs-primary-color);
    color: var(--lbfs-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Line Divider */
#homepage .line {
    width: 100%;
    display: flex;
    height: 1px;
    background: rgba(255, 255, 255, 0);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #aaa 40%, #aaa 60%, rgba(255, 255, 255, 0) 100%);
}

/* Hero Content Blur - Replaces inline style */
#homepage .hero-content-blur {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Hero Divider - Uniform spacing */
#homepage .hero-divider {
    margin: var(--heading-margin-bottom-mobile) 0;
}


/* Font Size Utility Classes - Uniform Typography */
#homepage .fs-2 {
    font-family: inherit;
    font-size: var(--font-size-xl);
    font-weight: inherit;
    line-height: inherit;
}

@media (min-width: 700px) {
    #homepage .fs-2 {
        font-size: var(--font-size-xl-desktop);
    }
}

#homepage .fs-7 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
}

@media (min-width: 700px) {
    #homepage .fs-7 {
        font-size: var(--font-size-sm-desktop);
    }
}

/* Hero Section with Animations */
#homepage .hero {
    position: relative;
    overflow: hidden;
        background: linear-gradient(to bottom, rgb(250, 231, 213) 55%, #FFFFFF) !important;
        background-color: transparent !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
}

#homepage .hero .content {
      z-index: 1;
    animation: lbfsFadeInUp 0.8s ease-out;
}
.hero h1{
    text-align: center;
}

#homepage .hero .content h1,
#homepage .hero .content h2,
#homepage .hero .content h3 {
    animation: lbfsFadeInUp 0.8s ease-out 0.2s both;
    color: var(--lbfs-secondary-color);
}

#homepage .hero .content p,
#homepage .hero .content li,
#homepage .hero .content span {
    animation: lbfsFadeInUp 0.8s ease-out 0.4s both;
    color: var(--lbfs-secondary-color);
}

#homepage .hero .content {
    color: var(--lbfs-secondary-color);
}

#homepage .hero .content .btn {
    animation: lbfsFadeInUp 0.8s ease-out 0.6s both;
}

#homepage .hero-img {
    height: 500px;
    position: relative;
}

#homepage .mainimg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#homepage .hero:hover .mainimg {
    transform: scale(1.05);
}

#homepage .hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: lbfsSlideUp 0.6s ease-out;
    overflow: hidden;
    z-index: 10;
}

/* Blurred background layer - positioned behind content */
#homepage .hero-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(10px);
    -webkit-filter: blur(10px);
    transform: scale(1.1);
    z-index: 0;
    pointer-events: none;
}

/* Overlay for better content readability */
#homepage .hero-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 1;
    pointer-events: none;
}

/* Ensure content is above the blurred background */
#homepage .hero-bottom .container {
    position: relative;
    z-index: 10;
}

/* Ensure all content inside hero-bottom is above blur */
#homepage .hero-bottom .container > *,
#homepage .hero-bottom .icon-list,
#homepage .hero-bottom .row,
#homepage .hero-bottom .hero-bottom-text,
#homepage .hero-bottom .icon-list .item,
#homepage .hero-bottom .icon-list .item h5,
#homepage .hero-bottom .icon-list .item .icon {
    position: relative;
    z-index: 11;
}


    #homepage .border-bottom .text-center ul li {
        font-family: var(--font-family-base);
        font-weight: var(--font-weight-medium);
        position: relative;
        padding-left: 1.5rem;
        line-height: var(--line-height-relaxed);
        transition: color 0.3s ease;
    }

    #homepage .border-bottom .text-center ul li:hover {
        color: #1F1F1F;
    }

    #homepage .border-bottom .text-center ul li:before {
        content: '✓';
        position: absolute;
        left: 0;
        color: #6b1c21;
        font-weight: 700;
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }

    #homepage .border-bottom .text-center ul li:hover:before {
        transform: scale(1.2);
    }


@media(min-width:992px) {
    #homepage .icon-list .item:nth-child(2) {
        border: 1px solid var(--lbfs-border-color);
        border-bottom: none;
        border-top: none;
        padding: 0 1rem;
    }
    
    #homepage .icon-list {
        justify-content: center;
    }
    
    #homepage .icon-list .item {
        flex: 0 0 auto;
    }
}

/* Enhanced UI for screens above 700px */
@media (min-width: 700px) {
    #homepage .hero.banner .content {
        position: absolute;
        height: 100%;
        left: 0;
    }
    /* Reorder sections: content first, then hero-bottom */
    .section-spacing-line{
        margin-top: 54px!important;   
        margin-bottom: 54px;
    }
    #homepage .hero {
        display: flex;
        flex-direction: column;
    }
.sm-service-screen{
    justify-content: space-between;
}
.service-card {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    padding: 0 !important;
    padding-right: 1rem !important;
}

/* Service Card H4 - Uniform Typography */
#homepage .service-card h4 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    margin: 0;
}

@media (min-width: 700px) {
    #homepage .service-card h4 {
        font-size: var(--font-size-lg-desktop);
    }
}
    /* Keep hero-img as background */
    #homepage .hero .hero-img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
    }

    #homepage .hero .container.position-relative {
        order: 1;
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 450px;
        padding: 3rem 2rem;
    }

    /* Enhanced content section design */
    #homepage .hero .content.top-first-content {
        max-width: 800px;
        width: 100%;
        text-align: center;
        padding: 2rem 0;
    }

  
    /* Hero Content - Unified Typography */
    #homepage .hero .content h1 {
        font-size: var(--font-size-4xl-desktop);
        line-height: var(--line-height-tight);
        font-weight: 700;
        color: #2c1f14;
        margin-bottom: 0.75rem;
        letter-spacing: -0.02em;
    }

    #homepage .hero .content h1 .fs-2 {
        display: block;
        font-size: var(--font-size-xl-desktop);
        font-weight: 500;
        color: #2c1f14;
        margin-top: 0.4rem;
        letter-spacing: -0.01em;
    }

    /* Enhanced paragraph styling - updated to match image */
    #homepage .hero .content p {
        margin-bottom: 2.25rem;
        font-weight: 400;
        color: #2c1f14;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Enhanced button container */
    #homepage .hero .content .d-flex.gap-3 {
        gap: 1rem !important;
        flex-wrap: wrap;
    }

    /* Enhanced button styling */
    #homepage .hero .content .btn {
        padding: 0.875rem 2.25rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-width: 180px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    #homepage .hero .content .btn-primary {
        background: #7A1F1F;
        background-color: #7A1F1F;
        color: white;
        border: none;
        box-shadow: 0 2px 6px rgba(122, 31, 31, 0.25);
    }

    #homepage .hero .content .btn-primary:hover {
        background: #6b1c21;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(122, 31, 31, 0.35);
    }

    #homepage .hero .content .btn-secondary {
        background: white;
        color: #2c1f14;
        border: 1.5px solid #2c1f14;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    #homepage .hero .content .btn-secondary:hover {
        background: #fefefe;
        border-color: #1f1510;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    /* Hero bottom section - main content area with gradient background */
    #homepage .hero.hero-bottom,
    #homepage section .hero-bottom,
    #homepage .hero-bottom {
        order: 2;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        min-height: auto !important;
        background: linear-gradient(to bottom, rgb(250, 231, 213)55%, #FFFFFF) !important;
        
        background-color: transparent !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        animation: none !important;
        overflow: visible !important;
        z-index: 1;
        padding-top: 38px;
    }

    /* Remove blur effects and overlay from hero-bottom */
    #homepage .hero-bottom::before {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    #homepage .hero-bottom::after {
        display: none !important;
        content: '' !important;
        opacity: 0 !important;
        visibility: hidden !important;
        background-color: transparent !important;
        background-image: none !important;
        pointer-events: none !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
    }

    #homepage .hero-bottom .row{
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #homepage .hero-bottom .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Content section in hero-bottom for desktop */
    #homepage .hero-bottom .content-section {
        text-align: center;
        /* margin-bottom: 54px; */
        padding-top: 0 !important;
    }

    /* Hero Bottom Content - Unified Typography */
    #homepage .hero-bottom .content-section h1,
    #homepage .hero .content.top-first-content h1 {
        font-size: var(--font-size-3xl-desktop);
        line-height: var(--line-height-tight);
        font-weight: 700;
        color: #1F1F1F;
        margin-bottom: 1rem;
        letter-spacing: -0.02em;
    }

    #homepage .hero-bottom .content-section h1 .fs-2,
    #homepage .hero .content.top-first-content h1 .fs-2 {
        display: block;
        font-size: var(--font-size-lg-desktop);
        font-weight: 600;
        color: #5B1B1E;
        margin-top: 0.875rem;
        margin-bottom: 0.875rem;
        letter-spacing: -0.01em;
    }

    /* Paragraph styling */
    #homepage .hero-bottom .content-section p,
    #homepage .hero .content.top-first-content p {
        line-height: var(--line-height-relaxed);
        margin-bottom: 1rem;
        font-weight: 500;
        color: #1F1F1F;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Button container */
    #homepage .hero-bottom .content-section .d-flex.gap-3,
    #homepage .hero .content.top-first-content .d-flex.gap-3 {
        gap: 1.25rem !important;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Button styling */
    #homepage .hero-bottom .content-section .btn,
    #homepage .hero .content.top-first-content .btn {
        padding: 0.9rem 2.25rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 6px;
        transition: all 0.25s ease;
        min-width: 210px;
    }

    /* Primary button - dark red/maroon */
    #homepage .hero-bottom .content-section .btn-primary,
    #homepage .hero .content.top-first-content .btn-primary {
        background: #7A1F1F;
        background-color: #7A1F1F;
        color: white;
        border: none;
        box-shadow: 0 2px 6px rgba(122, 31, 31, 0.25);
    }

    #homepage .hero-bottom .content-section .btn-primary:hover,
    #homepage .hero .content.top-first-content .btn-primary:hover {
        background: #6b1c21;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(122, 31, 31, 0.35);
    }

    /* Secondary button - white with dark border */
    #homepage .hero-bottom .content-section .btn-secondary,
    #homepage .hero .content.top-first-content .btn-secondary {
        background: white;
        color: #2c1f14;
        border: 1.5px solid #2c1f14;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    #homepage .hero-bottom .content-section .btn-secondary:hover,
    #homepage .hero .content.top-first-content .btn-secondary:hover {
        background: #fefefe;
        border-color: #1f1510;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    /* Icon list enhancements - frosted glass effect matching image */
    #homepage .hero-bottom .icon-list {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        flex-flow: wrap;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #homepage .hero-bottom .icon-list .item {
  
        transition: all 0.2s ease;
    }

   

    #homepage .hero-bottom .icon-list .item .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: transparent;
        border-radius: 0;
        flex-shrink: 0;
        padding: 0;
    }

    #homepage .hero-bottom .icon-list .item:hover .icon {
        transform: none;
    }

    #homepage .hero-bottom .icon-list .item .icon img {
        width: 28px;
        height: 28px;
        filter: brightness(0) saturate(100%) invert(12%) sepia(20%) saturate(1500%) hue-rotate(10deg) brightness(0.65) contrast(1.1);
        -webkit-filter: brightness(0) saturate(100%) invert(12%) sepia(20%) saturate(1500%) hue-rotate(10deg) brightness(0.65) contrast(1.1);
        transition: none;
    }

    #homepage .hero-bottom .icon-list .item:hover .icon img {
        transform: none;
    }

    #homepage .hero-bottom .icon-list .item h5 {
        font-size: var(--font-size-base-desktop);
        font-weight: var(--font-weight-semibold);
        color: #2c1f14;
        margin: 0;
        line-height: var(--line-height-normal);
        white-space: nowrap;
    }

    /* Divider line styling */
    #homepage .hero-bottom .w-100.my-3 {
        margin: 1.75rem 0;
    }

    #homepage .hero-bottom .w-100.my-3 .line {
        height: 1px;
        background: linear-gradient(90deg, rgba(44, 31, 20, 0) 0%, rgba(44, 31, 20, 0.25) 40%, rgba(44, 31, 20, 0.25) 60%, rgba(44, 31, 20, 0) 100%);
    }

    /* Bottom text section - ensure white background */
    #homepage .hero-bottom .row.align-items-center {
        margin-top: 1.25rem;
        position: relative;
    }

    #homepage .hero-bottom .row.align-items-center::before {
        content: '';
        position: absolute;
        top: -1.25rem;
        left: -15px;
        right: -15px;
        bottom: 0;
        z-index: 0;
    }

    #homepage .hero-bottom .row.align-items-center > * {
        position: relative;
        z-index: 1;
    }

    #homepage .hero-bottom-text {
        font-size: 0.9rem;
        font-weight: 400;
        color: #2c1f14;
        letter-spacing: 0.01em;
        line-height: 1.65;
        padding: 0 1.5rem;
        text-align: center;
    }

    #homepage .hero-bottom .row .col-3 .line {
        height: 1px;
        background: linear-gradient(90deg, rgba(44, 31, 20, 0) 0%, rgba(44, 31, 20, 0.25) 100%);
    }
}

/* Responsive adjustments for medium screens (720px to 1230px) */
@media (min-width: 720px) and (max-width: 1230px) {
    #homepage .hero-bottom .icon-list {
        gap: 1.25rem;
        padding: 1.25rem 0;
        flex-wrap: nowrap;
    }

    #homepage .hero-bottom .icon-list .item {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
        flex: 1 1 auto;
        min-width: 200px;
        max-width: calc(50% - 0.625rem);
    }

    #homepage .hero-bottom .icon-list .item h5 {
        font-size: 0.95rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
    }

    #homepage .hero-bottom .icon-list .item .icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    #homepage .hero-bottom .icon-list .item .icon img {
        width: 22px;
        height: 22px;
    }
}

/* Further adjustments for narrower screens in this range (720px to 992px) */
@media (min-width: 720px) and (max-width: 991.98px) {
    #homepage .hero-bottom .icon-list {
        gap: 1rem;
    }

    #homepage .hero-bottom .icon-list .item {
        padding: 0.75rem 0.875rem;
        min-width: 180px;
        max-width: calc(50% - 0.5rem);
    }

    #homepage .hero-bottom .icon-list .item h5 {
        font-size: 0.9rem;
    }

    #homepage .hero-bottom .icon-list .item .icon {
        width: 38px;
        height: 38px;
    }

    #homepage .hero-bottom .icon-list .item .icon img {
        width: 20px;
        height: 20px;
    }
}

/* Override for larger screens (992px+) */
@media (min-width: 992px) {

    /* Divider line styling */
    #homepage .hero-bottom .w-100.my-3 .line {
        margin: 1.5rem 0;
        height: 1px;
        background: white;
    }

    /* Bottom text section enhancements */
    #homepage .hero-bottom .row.align-items-center {
        margin-top: 1.25rem;
    }

    /* Hero Bottom Text - New Design for screens above 700px */
    .hero-bottom-text-wrapper {
        width: 100%;
        padding: 1rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-bottom-text-card {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .hero-bottom-text-icon {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-bottom-text-icon i {
        font-size: 1.5rem;
        color: #7A1F1F;
    }

    .hero-bottom-text-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-bottom-text-main {
        font-size: var(--font-size-lg-desktop);
        font-weight: var(--font-weight-semibold);
        color: #2c1f14;
        margin: 0;
        line-height: var(--line-height-normal);
        letter-spacing: -0.01em;
    }

    .hero-bottom-text-sub {
        font-size: var(--font-size-base-desktop);
        font-weight: var(--font-weight-medium);
        color: #7a1f1f;
        margin: 0;
        line-height: var(--line-height-normal);
        letter-spacing: 0.01em;
    }

    /* Mobile styles for hero-bottom-text */
    #homepage .hero-bottom-text {
        font-size: 0.95rem;
        font-weight: 500;
        color: #4a4a4a;
        letter-spacing: 0.01em;
        line-height: 1.6;
        padding: 0 2rem;
    }

    #homepage .hero-bottom .row .col-3 .line {
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(181, 178, 181, 0.4) 100%);
    }

    /* Broker section responsive design for screens above 700px */
    #homepage .border-bottom .text-center ul {
        list-style: none;
        padding: 0;
        margin: 2rem auto 0;
        max-width: 600px;
        display: flex;
        flex-flow: wrap;
        justify-content: center;
        gap: 1rem;
    }

    #homepage .border-bottom .text-center p.text-muted {
        font-size: var(--font-size-base-desktop);
        font-weight: var(--font-weight-medium);
        margin-top: 2rem;
        margin-bottom: 1.25rem;
        color: #6b1c21;
    }

    /* Professional section title styling for screens above 700px */
    #homepage .section-title {
        font-size: 2.25rem;
        font-weight: 700;
        color: #1F1F1F;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        position: relative;
        letter-spacing: -0.02em;
        line-height: 1.3;
        text-align: center;
    }
  
}

/* Responsive adjustments for medium screens (720px to 1230px) */
@media (min-width: 720px) and (max-width: 1230px) {
    #homepage .hero-bottom .icon-list {
        gap: 0;
        padding: 1rem 0;
    }

    #homepage .hero-bottom .icon-list .item {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        flex: 1 1 auto;
        min-width: 200px;
        max-width: calc(50% - 0.625rem);
    }

    #homepage .hero-bottom .icon-list .item h5 {
        font-size: 0.95rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
    }

    #homepage .hero-bottom .icon-list .item .icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    #homepage .hero-bottom .icon-list .item .icon img {
        width: 22px;
        height: 22px;
    }
}

/* Further adjustments for narrower screens in this range (720px to 992px) */
@media (min-width: 720px) and (max-width: 991.98px) {
    #homepage .hero-bottom .icon-list {
        gap: 1rem;
    }

    #homepage .hero-bottom .icon-list .item {
        padding: 0.75rem 0.875rem;
        min-width: 180px;
        max-width: calc(50% - 0.5rem);
    }

    #homepage .hero-bottom .icon-list .item h5 {
        font-size: 0.9rem;
    }

    #homepage .hero-bottom .icon-list .item .icon {
        width: 38px;
        height: 38px;
    }

    #homepage .hero-bottom .icon-list .item .icon img {
        width: 20px;
        height: 20px;
    }
}

/* Override for larger screens (992px+) */
@media (min-width: 992px) {
    /* Enhanced content section for larger screens */
    #homepage .hero .container.position-relative {
        min-height: 500px;
        padding: 4rem 2rem;
    }

    #homepage .hero .content.top-first-content {
        padding: 4rem 3.5rem;
        max-width: 900px;
    }

    #homepage .hero .content h1 {
        font-size: var(--font-size-4xl-desktop);
        margin-bottom: 1.5rem;
    }

    #homepage .hero .content h1 .fs-2 {
        font-size: var(--font-size-2xl-desktop);
        margin-top: 0.75rem;
    }

    #homepage .hero .content p {
        margin-bottom: 2.5rem;
    }

    #homepage .hero .content .btn {
        padding: 1rem 2.5rem;
        font-size: 1.05rem;
        min-width: 200px;
    }

    #homepage .hero-bottom .icon-list .item {
        flex: 0 0 auto;
    }

    #homepage .hero-bottom .icon-list .item h5 {
        font-size: var(--font-size-base-desktop);
        white-space: nowrap;
    }

    #homepage .hero-bottom-text {
        font-size: 1rem;
        padding: 0 3rem;
    }

    /* Override the original border styling for better card design */
    #homepage .hero-bottom .icon-list .item:nth-child(2) {
        border: none;
        border-radius: 10px;
    }


    #homepage .border-bottom .text-center p.text-muted {
        font-size: var(--font-size-base-desktop);
    }

    /* Enhanced section title for larger screens (992px+) */
    #homepage .section-title {
        font-size: var(--font-size-2xl-desktop);
        margin-bottom: var(--heading-margin-bottom);
        padding-bottom: 0;
    }
}

#homepage .icon-list .item {
    transition: all 0.3s ease;
}

#homepage .icon-list .item:hover {
    transform: translateY(-3px);
}

#homepage .icon-list .item .icon img {
    transition: transform 0.3s ease;
    width: 28px;
    height: 28px;
    filter: brightness(0) saturate(100%) invert(20%) sepia(52%) saturate(3000%) hue-rotate(345deg) brightness(90%) contrast(90%);
    -webkit-filter: brightness(0) saturate(100%) invert(20%) sepia(52%) saturate(3000%) hue-rotate(345deg) brightness(90%) contrast(90%);
}

#homepage .icon-list .item:hover .icon img {
    transform: scale(1.1);
}

#homepage .icon-list .item h5 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin: 0;
    line-height: var(--line-height-normal);
}

@media (min-width: 700px) {
    #homepage .icon-list .item h5 {
        font-size: var(--font-size-base-desktop);
    }
}

/* List Styles - Uniform Typography */
#homepage .list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#homepage .list li {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-relaxed);
    padding-left: 28px;
    position: relative;
    margin-bottom: 0.5rem;
}


#homepage .list li:before {
    content: '';
    position: absolute;
    left: 0;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    background-image: url('/img/check.svg');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Standard List Items (ul, ol) */
#homepage ul:not(.list),
#homepage ol:not(.list) {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    margin: 0;
    list-style-type: none;
    text-align: left;
}

@media (min-width: 700px) {
    #homepage ul:not(.list),
    #homepage ol:not(.list) {
        font-size: var(--font-size-base-desktop);
    }
}

#homepage ul:not(.list) li,
#homepage ol:not(.list) li {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
}


/* Section Title - Unified Styling */
#homepage .section-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--heading-margin-bottom-mobile);
    padding-bottom: 0;
    color: var(--lbfs-secondary-color);
    letter-spacing: -0.02em;
    text-align: left;
}

@media (min-width: 700px) {
    #homepage .section-title {
        font-size: var(--font-size-2xl-desktop);
        margin-bottom: var(--heading-margin-bottom);
    }
}

#homepage .section-subtitle {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    color: var(--lbfs-secondary-color);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
    text-align: center;
}


/* Feature Cards with Enhanced Animations */
#homepage .feature-card {
    background: white;
    padding: 1.75rem 1.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 3px solid #e1e1e1;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    animation: lbfsFadeInUp 0.6s ease-out;
}

#homepage .feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

#homepage .feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

#homepage .feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

#homepage .feature-card:hover {
    transform: translateY(-5px);
}

#homepage .feature-icon {
    font-size: 2rem;
    color: var(--lbfs-border-color);
    margin-bottom: 1rem;
}

#homepage .feature-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: 0.75rem;
    display: flex;
    gap: .5rem;
    justify-content: start;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}


.feature-card p {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    font-weight: 500 !important;
    line-height: var(--line-height-relaxed);
}

@media (min-width: 700px) {
    .feature-card p {
        font-size: var(--font-size-base-desktop);
    }
}

#homepage .feature-card:hover .feature-title {
    color: var(--lbfs-primary-color);
}

#homepage .feature-title .icon img {
    transition: transform 0.3s ease;
}

#homepage .feature-card:hover .feature-title .icon img {
    transform: scale(1.1) rotate(5deg);
}

/* Feature Card Action - Different background color for action cards */
#homepage .feature-card.feature-card-action {
    background: linear-gradient(135deg, #faf5f0 0%, #f8f3ee 50%, #f5f0ea 100%);
    border: 2px solid rgba(122, 31, 31, 0.15);
}

#homepage .feature-card.feature-card-action:hover {
    transform: translateY(-5px);
    border-color: rgba(122, 31, 31, 0.25);
    box-shadow:
        0 6px 12px rgba(122, 31, 31, 0.15),
        0 12px 28px rgba(122, 31, 31, 0.12);
}

#homepage .feature-card.feature-card-action .feature-title {
    color: #5B1B1E;
    border-bottom-color: rgba(122, 31, 31, 0.2);
}
#homepage .feature-card.feature-card-action .feature-title .icon i{
    color: #5B1B1E;
}

#homepage .feature-card.feature-card-action:hover .feature-title {
    color: var(--lbfs-primary-color);
}

#homepage .feature-card.feature-card-action p {
    color: #4a4a4a;
}

#homepage a .feature-card.feature-card-action {
    text-decoration: none;
    color: inherit;
    display: block;
}

#homepage a:hover .feature-card.feature-card-action {
    color: inherit;
}

#homepage .hero.banner .content p {
    color: #1F1F1F;
    font-weight: 500;
}

/* ===== Featured Business Cards (professional redesign) ===== */
#homepage .business-card-wrapper {
    height: 100%;
}

#homepage .business-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

#homepage .business-card {
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

#homepage .business-card-link:hover .business-card {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.1);
}

#homepage .business-card__header {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: 180px;
}

#homepage .business-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

#homepage .business-card-link:hover .business-card__img {
    transform: scale(1.03);
}

#homepage .business-card__overlay {
    position: relative;
    background: #fff;
    margin: 0 -12px;
    padding: 15px 13px 0;
    border-radius: .5rem .5rem 0 0;
    margin-top: -40px;
}

#homepage .business-card__location {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.95;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

#homepage .business-card__location i {
    font-size: .875rem;
    margin-top: -2px;
    color: #7a1f1f;
}

#homepage .business-card__title {
    font-family: var(--font-family-base);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Reserve space for 2 lines so all cards have same title height (short vs long titles) */
    min-height: 2.6em;
}

#homepage .business-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(122, 31, 31, 0.95);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#homepage .business-card__badge i {
    color: #f6d80f;
}

#homepage .business-card__body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

#homepage .business-card__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #4a7206;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

#homepage .business-card__metrics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

#homepage .business-card__metric {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

#homepage .business-card__metric-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7A1F1F;
}

#homepage .business-card__metric-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-black);
    margin-top: -5px;
}

#homepage .business-card__cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a1f1f;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

#homepage .business-card-link:hover .business-card__cta {
    gap: 0.6rem;
    color: #5a1515;
}

@media (min-width: 700px) {
    .search-button-group .btn-primary:hover{
        box-shadow: 5px 7px 20px 0 #0000004d !important;
    }
    .desktop-title-spacing-featured{
        margin-top: 0.5rem!important;
        margin-bottom: 2.5rem!important;
    }
}

#homepage .cta-button {
    background-color: var(--lbfs-accent-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

#homepage .cta-button:hover {
    background-color: var(--lbfs-primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 31, 31, 0.3);
}

#homepage .highlight-text {
    background-color: rgba(10, 61, 98, 0.08);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--lbfs-accent-color);
    margin-top: 2rem;
    font-style: italic;
}

#homepage .divider {
    /* height: 1px;
    background-color: var(--lbfs-border-color);
    margin: 3rem 0; */
    height: 0.5px;
    background-color: #e4e0e8;
    margin: 3rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);  
}


    /* Descriptive text - centered below with proper spacing */
    #homepage .hero-bottom-text {
        text-align: center !important;
        color: #1F1F1F !important;
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-normal);
        line-height: var(--line-height-relaxed);
        margin-top: 1rem !important;
        padding: 0 1rem !important;
        display: block;
        width: 100%;
    }

    /* Row containing the text - ensure it's centered */
    #homepage .hero-bottom .row {
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
    }

    #homepage .hero-bottom .row .col-auto {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        flex: 0 0 100% !important;
    }

    /* Ensure no horizontal lines show on mobile */
    #homepage .hero-bottom .row .col-3 {
        display: none !important;
    }


/* Animations - Scoped to avoid conflicts */
@keyframes lbfsFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lbfsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lbfsSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lbfsPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */

/* Screens above 320px */
@media (min-width: 321px) {
    #homepage .hero .top-first-content {
        top: 50px;
    }
}

/* Large Tablets and below (1200px) */
@media (max-width: 1199.98px) {
    
    #homepage .hero .content h1 {
        font-size: var(--font-size-3xl-desktop);
    }
    
    #homepage .hero .content h2 {
        font-size: var(--font-size-2xl-desktop);
    }
}

/* Tablets and below (992px) */
@media(max-width:991.98px) {
    #homepage .hero-img {
        height: 400px;
    }
    
    #homepage .hero .content {
        top: auto;
        bottom: 50px;
        width: 100%;
    }
    
    #homepage .hero .content h1 {
        font-size: var(--font-size-3xl);
    }
    
    #homepage .hero .content h2 {
        font-size: var(--font-size-2xl);
    }
    
    #homepage .hero-bottom {
        position: relative;
    }
    
    #homepage .icon-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem !important;
        width: 100%;
    }
    
    #homepage .hero.banner .hero-img {
        height: 400px;
        padding-top: 0rem;
    }
    
    #homepage .hero.banner .content {
        padding: 1.5rem;
    }
    
    #homepage .services {
        padding: 2.5rem 0;
    }
    
    #homepage .icon-list .item {
        width: 100%;
        justify-content: center;
        flex-direction: row;
        align-items: center;
    }
    
    #homepage .icon-list .item h5 {
        font-size: 1rem;
        color: #1F1F1F;
        font-weight: 700;
    }

    /* Style icons to be red on mobile */
    #homepage .icon-list .item .icon img {
        filter: brightness(0) saturate(100%) invert(20%) sepia(52%) saturate(3000%) hue-rotate(345deg) brightness(90%) contrast(90%);
        -webkit-filter: brightness(0) saturate(100%) invert(20%) sepia(52%) saturate(3000%) hue-rotate(345deg) brightness(90%) contrast(90%);
        width: 32px;
        height: 32px;
    }

    /* Hero bottom text styling on mobile */
    #homepage .hero-bottom-text {
        text-align: center;
        color: #1F1F1F;
        font-size: 14px;
        font-weight: var(--font-weight-medium);
        line-height: var(--line-height-normal);
        padding: 0 1rem;
    }
    
    #homepage .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--heading-margin-bottom-mobile);
        padding-bottom: 0;
    }
    
    #homepage .feature-card {
        padding: 1.5rem 1.25rem;
    }
    
    #homepage .business-header .card-img {
        height: 220px;
    }
    
    #homepage .business-card__body {
        padding: 1.1rem 1.25rem;
    }
    .search-button-group{
        width: 100% !important;
    }
    
}

/* Small Tablets and below (768px) */
@media (max-width: 767.98px) {
    .why-choose-us-spacing{
        margin-top: 1.5rem;
    }
    .service-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);}
    #homepage .btn {
        padding: .5rem 1rem;
        font-size: 0.9rem;
    }
    
    #homepage .hero-img {
        height: 350px;
    }
    
    #homepage .hero .content {
        width: 100%;
        padding-bottom: 1rem;
        text-align: left;
        padding-top: 1rem;
    }
    
    #homepage .hero .content h1 {
        font-size: var(--font-size-2xl);
        line-height: var(--line-height-tight);
    }
    
    #homepage .hero .content h1 .fs-2 {
        font-size: var(--font-size-lg) !important;
        display: block;
        margin-top: 0.5rem;
    }
    
    #homepage .hero .content h2 {
        font-size: var(--font-size-xl);
    }
    
    
    #homepage .hero .content .d-flex {
        width: 100%;
    }
    
    #homepage .hero .content .btn {
        text-align: center;
        padding: 0.75rem 1rem !important;
    }
    
    #homepage .feature-card {
        padding: 1.25rem;
        margin-bottom: 0.8rem;
    }
    
    #homepage .feature-title {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }
    
    #homepage .feature-title .icon img {
        width: 32px;
    }
    
    #homepage .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--heading-margin-bottom-mobile);
        padding-bottom: 0;
    }
    
    
    #homepage .business-card__body {
        padding: 1rem 1.1rem;
    }
 
    
    #homepage .business-card__title {
        font-size: 0.95rem;
    }
    
    #homepage .icon-list .item h5 {
        font-size: 0.9rem;
    }
    
    #homepage .icon-list .item .icon img {
        width: 24px;
        height: 24px;
    }
    
    #homepage .list li {
        font-size: 0.9rem;
        padding-left: 24px;
    }
    
    #homepage .list li:before {
        width: 18px;
        height: 18px;
        background-size: 16px;
    }
    
    #homepage .divider {
        margin: 2rem 0;
    }
    
    #homepage .fs-7 {
        font-size: 0.8rem;
        text-align: center !important;
    }
    
    #homepage .hero-bottom {
        padding: 1.5rem 0;
        margin-top: 1rem;
    }
    
    #homepage .hero-bottom .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #homepage .hero.banner .hero-img {
        height: 350px;
    }
    
    #homepage .hero.banner .content {
        padding: 1rem;
    }
    
    #homepage .hero.banner .content h2 {
        font-size: var(--font-size-xl);
        margin-bottom: 0.75rem;
    }
    
    #homepage .hero.banner .content p {
        font-size: var(--font-size-base);
        margin-bottom: 1rem;
    }
    
    #homepage .hero.banner .content .list {
        margin-bottom: 1rem;
    }
    
    #homepage .services {
        padding: 2rem 0;
    }
    
    #homepage .services .d-flex {
        flex-direction: column;
        gap: 0.8rem !important;
        margin-top: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
        
    #homepage .border-bottom h3 {
        font-size: 1.25rem;
        color: #461a19;
    }
    
    #homepage .border-bottom p {
        font-size: 0.9rem;
    }

    /* Broker section responsive list styling */
    #homepage .border-bottom .text-center ul {
        list-style: none;
        padding: 0;
        margin: 1.5rem auto 0;
        max-width: 600px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1.5rem;
        text-align: left;
    }

    #homepage .border-bottom .text-center ul li {
        font-family: var(--font-family-base);
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-medium);
        position: relative;
        padding-left: 1.75rem;
        color: #4a4a4a;
        line-height: var(--line-height-relaxed);
    }

    #homepage .border-bottom .text-center ul li:before {
        content: '✓';
        position: absolute;
        left: 0;
        color: #6b1c21;
        font-weight: 700;
        font-size: 1rem;
    }

    #homepage .border-bottom .text-center p.text-muted {
        font-size: var(--font-size-base);
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Mobile devices under 600px */
@media (max-width: 599.98px) {
    #homepage .hero.banner .content {
        position: absolute;
        padding: 2rem;
        left: 0;
        bottom: -2rem;
    }
}

/* Mobile devices (576px) */
@media (max-width: 575.98px) {
    #homepage p{
        font-size: var(--font-size-sm) !important;
    }
    #homepage .hero-img {
        height: 300px;
    }
    #homepage .hero .content h1 .fs-2 {
        color: #863a3a;
    }
    
    #homepage .hero .content h1 {
        font-size: var(--font-size-2xl);
        margin-top: 0;
        margin-bottom: 1rem;
    }
    
    #homepage .hero .content h1 .fs-2 {
        font-size: var(--font-size-lg) !important;
    }
    
    #homepage .hero .content h2 {
        font-size: var(--font-size-xl);
    }
    
    #homepage .hero .content p {
        font-size: var(--font-size-sm);
        line-height: var(--line-height-normal);
    }
    #homepage .business-title{
        min-height: 44px;
    }
    
    #homepage .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    #homepage .section-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--heading-margin-bottom-mobile);
        padding-bottom: 0;
    }
    
    #homepage .feature-card {
        padding: 1rem;
    }
    
    #homepage .feature-title {
        font-size: 1rem;
    }
    
    #homepage .feature-title .icon img {
        width: 28px;
    }
    
    #homepage .business-card {
        border-radius: 10px;
    }
    
    #homepage .business-card__body {
        padding: 0.85rem 1rem;
        min-height: auto;
    }

    
    #homepage .business-card__title {
        font-size: 0.9rem;
    }
    
    #homepage .business-card__price {
        font-size: 1.05rem;
    }
    
    #homepage .business-card__badge {
        font-size: 0.6rem;
        padding: 0.28rem 0.5rem;
        top: 8px;
        left: 8px;
    }
    
    #homepage .icon-list .item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    #homepage .icon-list .item h5 {
        font-size: 0.85rem;
    }
    
    /* #homepage .icon-list .item .icon img {
        width: 70px;
        height: 50px;
    } */
    
    #homepage .border-bottom .text-center ul li{
        font-size: var(--font-size-sm);
    }

    #homepage .list li {
        font-size: 0.85rem;
        padding-left: 22px;
    }
    
    #homepage .list li:before {
        width: 16px;
        height: 16px;
        background-size: 14px;
    }
    
    #homepage .fs-7 {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
    
    #homepage .divider {
        margin: 1.5rem 0;
    }
    
}

/* Extra Small devices (480px) */
@media (max-width: 479.98px) {
    #homepage .hero-img {
        height: 280px;
    }
    
    #homepage .hero .content h1 {
        font-size: var(--font-size-xl);
    }
    
    #homepage .hero .content h1 .fs-2 {
        font-size: var(--font-size-base) !important;
    }
    
    #homepage .hero .content h2 {
        font-size: var(--font-size-lg);
    }
    
    #homepage .hero .content p {
        font-size: var(--font-size-sm);
        font-weight: 400;
    }
    
    #homepage .btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
    }
    
    #homepage .section-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--heading-margin-bottom-mobile);
    }
    
    #homepage .feature-card {
        padding: 0.875rem;
    }
    
    #homepage .feature-title {
        font-size: 0.95rem;
    }
    
  

    
    #homepage .business-card__title {
        font-size: 0.85rem;
    }
    
    #homepage .business-card__price {
        font-size: 0.95rem;
    }
    
    #homepage .business-card__metric-value {
        font-size: 0.8rem;
    }

    /* Business cards - 1 per row on mobile (full width) */
    #homepage .row > [class*="col-"].mb-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    #homepage .hero.banner .hero-img {
        height: 300px;
    }
    
    #homepage .hero.banner .content {
        padding: 0.75rem;
    }
    
    #homepage .hero.banner .content h2 {
        font-size: var(--font-size-lg);
    }
    
    #homepage .hero.banner .content p {
        font-size: var(--font-size-sm);
    }
    
    #homepage .services {
        padding: 1.5rem 0;
    }
    
    
    #homepage .border-bottom h3 {
        font-size: 1.1rem;
    }
    
    #homepage .border-bottom p {
        font-size: 0.85rem;
    }

    /* Broker section mobile list styling */
    #homepage .border-bottom .text-center ul {
        list-style: none;
        padding: 0;
        margin: 1.25rem auto 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
        text-align: left;
        padding: 0 1rem;
    }

    #homepage .border-bottom .text-center ul li {
        font-family: var(--font-family-base);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-normal);
        position: relative;
        padding-left: 1.5rem;
        color: #4a4a4a;
        line-height: var(--line-height-relaxed);
    }

    #homepage .border-bottom .text-center ul li:before {
        content: '✓';
        position: absolute;
        left: 0;
        color: #6b1c21;
        font-weight: 700;
        font-size: 0.9rem;
    }

    #homepage .border-bottom .text-center p.text-muted {
        font-size: var(--font-size-sm);
        margin-top: 1.25rem;
        margin-bottom: 0.875rem;
        padding: 0 1rem;
    }
}

/* Small devices (375px and below) */
@media (max-width: 375px) {
    #homepage .hero-img {
        height: 330px;
    }
    #homepage .hero .content .btn{
        width: 100%;
    }
}

/* Very Small devices (322px and below) */
@media (max-width: 321.98px) {
    #homepage .hero.banner .content {
        position: relative;
        padding: 1rem!important;
        right: 0;
        top: 0;
    }
}

/* Override any conflicting styles from master layout - Only for homepage */
#homepage .main-container {
    padding: 0;
    margin: 0;
}

/* Unified Section Spacing */
#homepage section {
    margin-bottom: var(--section-spacing-mobile);
    padding-top: var(--section-spacing-mobile);
}

@media (min-width: 700px) {
    #homepage section {
        margin-bottom: var(--section-spacing-tablet);
        padding-top: var(--section-spacing-tablet);
    }
}

@media (min-width: 992px) {
    #homepage section {
        margin-bottom: var(--section-spacing-desktop);
        padding-top: var(--section-spacing-desktop);
    }
}

/* Override Bootstrap spacing classes for uniform spacing */
#homepage section.mb-3,
#homepage section.mb-4,
#homepage section.mt-3,
#homepage section.mt-4 {
    margin-bottom: var(--section-spacing-mobile) !important;
    margin-top: 0 !important;
}

@media (min-width: 700px) {
    #homepage section.mb-3,
    #homepage section.mb-4,
    #homepage section.mt-3,
    #homepage section.mt-4 {
        margin-bottom: var(--section-spacing-tablet) !important;
    }
}

@media (min-width: 992px) {
    #homepage section.mb-3,
    #homepage section.mb-4,
    #homepage section.mt-3,
    #homepage section.mt-4 {
        margin-bottom: var(--section-spacing-desktop) !important;
    }
}

/* Uniform spacing for section padding classes */
#homepage section.pt-4,
#homepage section.pt-5,
#homepage section.pb-4,
#homepage section.pb-5,
#homepage section.p-5 {
    padding-top: var(--section-spacing-mobile) !important;
    padding-bottom: var(--section-spacing-mobile) !important;
}

@media (min-width: 700px) {
    #homepage section.pt-4,
    #homepage section.pt-5,
    #homepage section.pb-4,
    #homepage section.pb-5,
    #homepage section.p-5 {
        padding-top: var(--section-spacing-tablet) !important;
        padding-bottom: var(--section-spacing-tablet) !important;
    }
}

@media (min-width: 992px) {
    #homepage section.pt-4,
    #homepage section.pt-5,
    #homepage section.pb-4,
    #homepage section.pb-5,
    #homepage section.p-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .testimonials-section-v3{
        padding-top: 0rem;
        padding-bottom: 1rem;
    }
}

/* Uniform heading spacing - override Bootstrap classes */
#homepage h1.mb-3,
#homepage h2.mb-3,
#homepage h3.mb-3,
#homepage h4.mb-3,
#homepage h5.mb-3,
#homepage h6.mb-3,
#homepage h1.mb-4,
#homepage h2.mb-4,
#homepage h3.mb-4,
#homepage h4.mb-4,
#homepage h5.mb-4,
#homepage h6.mb-4 {
    margin-bottom: var(--heading-margin-bottom-mobile) !important;
}

@media (min-width: 700px) {
    #homepage h1.mb-3,
    #homepage h2.mb-3,
    #homepage h3.mb-3,
    #homepage h4.mb-3,
    #homepage h5.mb-3,
    #homepage h6.mb-3,
    #homepage h1.mb-4,
    #homepage h2.mb-4,
    #homepage h3.mb-4,
    #homepage h4.mb-4,
    #homepage h5.mb-4,
    #homepage h6.mb-4 {
        margin-bottom: var(--heading-margin-bottom) !important;
    }
}

/* Section title spacing - uniform */
#homepage .section-title.mb-3,
#homepage .section-title.mb-4 {
    margin-bottom: var(--heading-margin-bottom-mobile) !important;
}

@media (min-width: 700px) {
    #homepage .section-title.mb-3,
    #homepage .section-title.mb-4 {
        margin-bottom: var(--heading-margin-bottom) !important;
    }
}

/* Remove inline margin styles from headings */
#homepage h1[style*="margin"],
#homepage h2[style*="margin"],
#homepage h3[style*="margin"],
#homepage h4[style*="margin"],
#homepage h5[style*="margin"],
#homepage h6[style*="margin"],
#homepage .section-title[style*="margin"] {
    margin-bottom: var(--heading-margin-bottom-mobile) !important;
}

@media (min-width: 700px) {
    #homepage h1[style*="margin"],
    #homepage h2[style*="margin"],
    #homepage h3[style*="margin"],
    #homepage h4[style*="margin"],
    #homepage h5[style*="margin"],
    #homepage h6[style*="margin"],
    #homepage .section-title[style*="margin"] {
        margin-bottom: var(--heading-margin-bottom) !important;
    }
}

/* Uniform spacing for spans within headings */
#homepage h1 span,
#homepage h2 span,
#homepage h3 span,
#homepage h4 span,
#homepage h5 span,
#homepage h6 span {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Specific spacing for fs-2 spans (subtitle spans) */
#homepage h1 span.fs-2,
#homepage h2 span.fs-2 {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

@media (min-width: 700px) {
    #homepage h1 span.fs-2,
    #homepage h2 span.fs-2 {
        margin-top: 0.75rem;
    }
}

/* Spans with top-line class */
#homepage h2 span.top-line,
#homepage h3 span.top-line {
    display: block;
    margin-bottom: 0.25rem;
}

/* Spans with d-md-block class */
#homepage h1 span.d-md-block,
#homepage h2 span.d-md-block,
#homepage h3 span.d-md-block {
    display: block;
    margin-top: 0.25rem;
}

/* Uniform spacing for divs within sections */
#homepage section > .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Uniform spacing for content divs */
#homepage section .content {
    margin-top: 0;
    margin-bottom: 0;
}

#homepage section .content-section {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Uniform spacing for hero-bottom div */
#homepage .hero-bottom {
    margin-top: 0;
    margin-bottom: 0;
}

/* Uniform spacing for icon-list div */
#homepage .icon-list {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Uniform spacing for row align-items-center */
#homepage section .row.align-items-center {
    margin-top: 0;
    margin-bottom: 0;
}

/* Uniform spacing for text-center divs with paragraphs */
#homepage section .text-center p {
    margin-top: 0;
    margin-bottom: 0;
}

#homepage section .text-center p + p {
    margin-top: 0.5rem;
}

/* Uniform spacing for rows within sections */
#homepage section .row {
    margin-top: 0;
    margin-bottom: 0;
}


@media (min-width: 700px) {
    #homepage section .row + .row {
        margin-top: 2rem;
    }
}

/* Uniform spacing for columns */
#homepage section .col-md-4.mb-4,
#homepage section .col-md-6.mb-4,
#homepage section .col-12.mb-4 {
    margin-bottom: 1.5rem !important;
}

@media (min-width: 700px) {
    #homepage section .col-md-4.mb-4,
    #homepage section .col-md-6.mb-4,
    #homepage section .col-12.mb-4 {
        margin-bottom: 2rem !important;
    }
}

/* Uniform spacing for text-center divs */
#homepage section .text-center {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Text Utility Classes - Uniform Typography */
#homepage .text-muted {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    color: #6b6b6b;
    line-height: var(--line-height-relaxed);
}

@media (min-width: 700px) {
    #homepage .text-muted {
        font-size: var(--font-size-base-desktop);
    }
}

#homepage .text-primary {
    color: var(--lbfs-primary-color);
    font-weight: inherit;
}

/* Ensure spans inherit proper typography */
#homepage span {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* Ensure all divs use base typography unless specified */
#homepage div {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
}

@media (min-width: 700px) {
    #homepage .hero.banner .hero-img {
        height: 550px!important;
    }
    .btn-spacing-desktop{
        margin-top: 1rem!important;
    }
    #homepage .why-choose-us-spacing .text-center {
        margin-bottom: 2rem !important;
        margin-top: 1.5rem!important;
    }
}

/* Paragraph margin utilities - uniform spacing */
#homepage p.mb-0 {
    margin-bottom: 0 !important;
}

#homepage p.mb-1 {
    margin-bottom: 0.25rem !important;
}

#homepage p.mb-2 {
    margin-bottom: 0.5rem !important;
}

#homepage p.mb-3 {
    margin-bottom: 1rem !important;
}

/* Ensure all paragraphs use uniform typography */
#homepage p {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0rem;
}


/* Ensure all labels use uniform typography */
#homepage label {
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
}

/* Ensure all buttons use uniform typography */
#homepage button {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
}

@media (min-width: 700px) {
    #homepage button {
        font-size: var(--font-size-base-desktop);
    }
}

/* Ensure all links use uniform typography */
#homepage a {
    font-family: var(--font-family-base);
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
}

/* Ensure all strong and b tags use uniform weight */
#homepage strong,
#homepage b {
    font-weight: var(--font-weight-bold);
}

/* Ensure all em and i tags maintain italic */
#homepage em,
#homepage i {
    font-weight: inherit;
}

#homepage section .text-center.mt-3 {
    margin-top: 1.5rem !important;
}

@media (min-width: 700px) {
    #homepage section .text-center.mt-3 {
        margin-top: 2rem !important;
    }
}

/* Uniform gap spacing - override Bootstrap gap classes */
#homepage .gap-3 {
    gap: 1rem !important;
}

@media (min-width: 700px) {
    #homepage .gap-3 {
        gap: 1.25rem !important;
    }
}

#homepage .gap-0 {
    gap: 0 !important;
}

/* Uniform spacing for flex containers */
#homepage .d-flex {
    margin: 0;
    padding: 0;
}

#homepage .d-flex.gap-3 {
    gap: 1rem !important;
}

@media (min-width: 700px) {
    #homepage .d-flex.gap-3 {
        gap: 1.25rem !important;
    }
}

/* Uniform spacing for flex-wrap */
#homepage .d-flex.flex-wrap {
    margin: 0;
    padding: 0;
}

/* Uniform spacing for justify-content-center */
#homepage .justify-content-center {
    margin: 0;
    padding: 0;
}

/* Services Section - Use unified spacing */
#homepage .services {
    padding: var(--section-spacing-mobile) 0;
}

@media (min-width: 700px) {
    #homepage .services {
        padding: var(--section-spacing-tablet) 0;
    }
}

@media (min-width: 992px) {
    #homepage .services {
        padding: var(--section-spacing-desktop) 0;
    }
}

#homepage .services .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Second Banner Section */
/* #homepage .hero.banner .hero-img {
    height: 500px;
} */

#homepage .hero.banner .content {
    position: absolute;
    padding: 3rem;
}

#homepage .hero.banner .content h2 {
    margin-bottom: 1rem;
}

#homepage .hero.banner .content p {
    margin-bottom: 1.5rem;
}

#homepage .hero.banner .content .list {
    margin-bottom: 1.5rem;
}

/* ============================================
   Mobile Navbar Menu Drawer Fixes (Global)
   ============================================ */

@media (max-width: 1199.98px) {
    /* Fix collapsed navbar menu styling */
    #mainNavbar .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        clear: both;
        width: 100%;
    }
    
    /* Ensure proper spacing for nav items in mobile */
    #mainNavbar .navbar-nav {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
    
    /* Fix nav items spacing */
    #mainNavbar .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    /* Fix nav links styling */
    #mainNavbar .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
        border-radius: 0.25rem;
        transition: background-color 0.2s ease;
        text-align: left;
    }
    
    #mainNavbar .navbar-nav .nav-link:hover,
    #mainNavbar .navbar-nav .nav-link:focus {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    /* Fix dropdown menus in mobile */
    #mainNavbar .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        margin-left: 0 !important;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        background-color: #fff;
        border-radius: 0.25rem;
    }
    
    /* Fix dropdown items */
    #mainNavbar .navbar-nav .dropdown-item {
        padding: 0.5rem 1.5rem;
        width: 100%;
        display: block;
    }
    
    /* Fix dropdown toggle alignment */
    #mainNavbar .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }
    
    /* Ensure proper container width */
    #mainNavbarContainer {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Fix navbar toggler positioning */
    #mainNavbar .navbar-toggler {
        margin-left: auto;
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0;
        order: 2;
    }
    
    /* Fix left nav alignment */
    #mainNavbar .navbar-nav.me-md-auto {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    /* Fix right nav alignment */
    #mainNavbar .navbar-nav.ms-auto {
        margin-left: 0 !important;
        width: 100%;
    }
    
    /* Ensure proper background for collapsed menu */
    #mainNavbar .navbar-collapse.show,
    #mainNavbar .navbar-collapse.collapsing {
        background-color: transparent;
        padding: 1rem 0;
        display: flex !important;
        flex-direction: column;
    }
    
    /* Fix dropdown show state */
    #mainNavbar .navbar-nav .dropdown.show .dropdown-menu {
        display: block;
    }
}

/* Dark theme support for mobile menu */
@media (max-width: 1199.98px) {
    [data-bs-theme="dark"] #mainNavbar .navbar-collapse {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    [data-bs-theme="dark"] #mainNavbar .navbar-nav .nav-link:hover,
    [data-bs-theme="dark"] #mainNavbar .navbar-nav .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    [data-bs-theme="dark"] #mainNavbar .navbar-nav .dropdown-menu {
        background-color: #212529;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    [data-bs-theme="dark"] #mainNavbar .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Mobile-specific styles for hero-bottom section (max-width: 767.98px) */
@media (max-width: 767.98px) {
    #homepage .hero.banner .hero-img {
        height: 495px!important;
    }
    #homepage .hero-bottom {
        padding: 2rem 0;
        overflow: hidden;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    /* Overlay for better content readability on mobile */
    #homepage .hero-bottom::after {
        background-color: rgba(255, 255, 255, 0.6);
    }

    #homepage .hero-bottom .container {
        padding-left: 1rem;
        padding-right: 1rem;
        position: relative;
        z-index: 10;
    }

    /* Ensure all content is above blur on mobile */
    #homepage .hero-bottom .container > *,
    #homepage .hero-bottom .icon-list,
    #homepage .hero-bottom .row,
    #homepage .hero-bottom .hero-bottom-text {
        position: relative;
        z-index: 11;
        font-weight: 600 !important;
        padding-top: 0.8rem;
    }

    /* Icon list - vertical stack, centered */
    #homepage .icon-list {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2rem !important;
        width: 100%;
        margin-bottom: 0;
        padding: 0;
    }

    /* Individual items - horizontal layout, centered */
    #homepage .icon-list .item {
        width: auto;
        max-width: 100%;
        justify-content: left !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0;
    }

    /* Icon styling - red color */
    #homepage .icon-list .item .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    #homepage .icon-list .item .icon img {
        width: 32px !important;
        height: 32px !important;
        filter: brightness(0) saturate(100%) invert(20%) sepia(52%) saturate(3000%) hue-rotate(345deg) brightness(90%) contrast(90%);
        -webkit-filter: brightness(0) saturate(100%) invert(20%) sepia(52%) saturate(3000%) hue-rotate(345deg) brightness(90%) contrast(90%);
        object-fit: contain;
    }

    /* Text styling - dark, bold */
    #homepage .icon-list .item h5 {
        font-size: 1rem !important;
        color: #1F1F1F !important;
        font-weight: 700 !important;
        margin: 0 !important;
        text-align: left;
        line-height: 1.4;
    }

    /* Hide horizontal lines on mobile */
    #homepage .hero-bottom .line {
        display: none !important;
    }
}
.carousel-indicators{
    display: none!important;
}

/* Base Search Card Styles (all screen sizes) */
.hero-search-card {
    padding: 1rem 0;
    background: linear-gradient(135deg, #fae7d5 0%, #fae7d5 100%);
    position: relative;
}

.search-card-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.search-card-header {
    margin-bottom: 1.5rem;
}

.search-card-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: #2c1f14;
    margin: 0 0 0.5rem 0;
    line-height: var(--line-height-tight);
}

.search-card-subtitle {
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    color: #6b6b6b;
    margin: 0;
    margin-bottom: 1rem;
    line-height: var(--line-height-normal);
}

.search-card {
    margin-top: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Advanced Search link/button (under the form) */
.advanced-search-row {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.advanced-search-link {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: #4a1b1b;
    font-size: var(--font-size-sm) !important;
    white-space: nowrap;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    display: flex;
    font-weight: 600 !important;
}

.advanced-search-link:hover,
.advanced-search-link:focus {
    color: #6b1c21;
    border-bottom-color: #6b1c21;
    background: transparent;
    text-decoration: none;
}

.search-form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-field-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.search-field-label {
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: #2c1f14;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-field-label i {
    color: #7A1F1F;
    font-size: 0.9rem;
}

.search-field-input {
    font-family: var(--font-family-base);
    width: 100%;
    border: 2px solid #e8e8e8;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    color: #2c1f14;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.search-field-input:focus {
    border-color: #7A1F1F;
    box-shadow: 0 0 0 4px rgba(122, 31, 31, 0.1);
    outline: none;
}

.search-field-input::placeholder {
    color: #9b9b9b;
}

.price-range-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    flex: 1;
}

.price-separator {
    color: #6b6b6b;
    font-weight: 500;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-button-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.search-submit-btn {
    font-family: var(--font-family-base);
    background: linear-gradient(135deg, #7A1F1F 0%, #9b2d35 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    box-shadow: 0 4px 12px rgba(122, 31, 31, 0.25);
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #9b2d35 0%, #7A1F1F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 31, 31, 0.35);
}

.search-submit-btn i {
    font-size: 0.9rem;
}

/* Select dropdown styling - no arrow animation on click */
select.search-field-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A1F1F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    padding-left: 1rem;
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: none !important;
    animation: none !important;
}
/* Ensure hero search card selects have no arrow/transition animation (overrides any later styles) */
.hero-search-card select.search-field-input,
.hero-search-card select.search-field-input:focus,
.hero-search-card select.search-field-input:hover {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

select.search-field-input option {
    padding: 0.5rem;
    white-space: normal;
}

@media(min-width:992px){
    .hero-search-card {
        background: transparent;
        position: absolute;
        top: 250px;
    }
}

/* Enhanced Search Card for screens above 700px */
@media (min-width: 992px) {
   
    .search-card{
        backdrop-filter: blur(5px);
    }

    .search-card-wrapper {
        max-width: 1200px;
        margin: 0 auto;
    }

    .search-card-header {
        margin-bottom: 2rem;
    }

    .search-card-title {
        font-size: var(--font-size-2xl-desktop);
        font-weight: 700;
        color: #2c1f14;
        margin: 0 0 0.5rem 0;
        letter-spacing: -0.02em;
    }

    .search-card-subtitle {
        font-size: var(--font-size-base-desktop);
        color: #6b6b6b;
        margin: 0;
    }
    .search-field-group .dirham-icon{
        margin-top: -4px;
    }

    .search-card {
        border-top-left-radius: 0 !important;
        /* background: rgb(255 255 255 / 60%); */
        border-radius: 16px;
        padding: 1rem 35px 2rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }

        
    .search-form-row {
        flex-direction: row;
        align-items: flex-end;
        gap: .75rem;
        flex-wrap: nowrap;
    }

    .search-field-group {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }

        .search-field-group.search-field-expanded {
            flex: 1.5 1 0;
            min-width: 0;
        }

        .search-button-group {
            flex-shrink: 0;
            width: auto;
            min-width: 130px;
        }

        .search-button-group .btn-primary {
            width: auto !important;
            min-width: 130px;
        }
    }

.search-field-label {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

.search-field-label i {
    color: #7A1F1F;
    font-size: 0.9rem;
}

.search-field-input {
    width: 100%;
    border: 2px solid #e8e8e8;
    border-radius: 5px;
    padding: 0 1.25rem;
    color: #2c1f14;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    height: 50px;
    min-height: 50px;
    line-height: 1.5;
}

.search-field-input[type="text"],
.search-field-input[type="number"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* padding: 0 1.25rem; */
}

.search-field-input select,
select.search-field-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A1F1F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2rem;
    padding-left: 1rem;
    cursor: pointer;
    height: 50px;
    min-height: 50px;
    width: 100%;
    box-sizing: border-box;
    transition: none !important;
    animation: none !important;
}

select.search-field-input option {
    padding: 0.5rem;
    white-space: normal;
    word-wrap: break-word;
}

.search-field-input:focus {
    border-color: #7A1F1F;
    box-shadow: 0 0 0 4px rgba(122, 31, 31, 0.1);
    outline: none;
    background-color: #ffffff;
}

.search-field-input:hover {
    border-color: #c8c8c8;
}

.search-field-input::placeholder {
    color: #9b9b9b;
}

/* Price Range Group */
.price-range-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-input {
    flex: 1;
    height: 50px;
    min-height: 50px;
    padding: 0 0.5rem;
    line-height: 1.5;
}

.price-separator {
    color: #6b6b6b;
    font-weight: 500;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Search Button Group */
.search-button-group {
    flex-shrink: 0;
    width: auto;
    margin-left: auto;
    min-width: 140px;
}

.search-form .btn-primary,
.search-button-group .btn-primary {
    height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 140px;
    white-space: nowrap;
}

.search-submit-btn {
    width: auto;
    white-space: nowrap;
    border-radius: 10px;
    padding: 1rem 2.5rem;
    font-size: var(--font-size-base-desktop);
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #9b2d35 0%, #7A1F1F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 31, 31, 0.35);
}

.search-submit-btn:active {
    transform: translateY(0);
}

.search-submit-btn i {
    font-size: 0.9rem;
}


@media(max-width: 991px){
    .search-field-group{
        margin-bottom: .75rem;
    }
}

/* Responsive adjustments for search card - Mobile (below 700px) */
@media (max-width: 699.98px) {
    .hero-search-card {
        padding: 2rem 0;
    }

    .search-card-wrapper {
        max-width: 100%;
    }

    .search-card-header {
        margin-bottom: 1.5rem;
    }

    .search-card-title {
        font-size: var(--font-size-2xl);
    }

    .search-card-subtitle {
        font-size: var(--font-size-sm);
    }

    .search-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .search-form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .search-field-group {
        width: 100%;
        min-width: 100%;
    }

    .search-field-group.search-field-expanded {
        min-width: 100%;
    }

        .search-field-label {
            font-size: var(--font-size-xs) !important;
            margin-bottom: 0.5rem;
        }
        .search-field-label i{
            font-size: var(--font-size-xs);
        }
        .search-field-label .dirham-icon{
            margin-top: -2px;
        }

        .search-field-input {
            padding: 0.75rem 1rem;
            font-size: var(--font-size-sm);
        }

    .price-range-group {
        gap: 0.5rem;
    }

    .price-input {
        font-size: var(--font-size-base);
    }

    .price-separator {
        font-size: 1rem;
    }

    .search-button-group {
        width: 100%;
    }

    .search-button-group .btn-primary {
        width: 100%;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-base);
    }

    .advanced-search-row {
        justify-content: flex-end;
    }

    .advanced-search-link {
        width: auto;
    }
}

@media (max-width: 575px) {
    .hero-search-card {
        padding: 1.5rem 0;
    }

    .search-card {
        padding: 1.25rem;
    }

    .search-card-title {
        font-size: var(--font-size-xl);
    }

    .search-card-subtitle {
        font-size: var(--font-size-sm);
    }

    .search-form-row {
        gap: 0.875rem;
    }

    .price-range-group {
        gap: 0.5rem;
    }

    .price-input {
        font-size: var(--font-size-sm);
        padding: 0.625rem 0.875rem;
    }

    .price-separator {
        font-size: 0.9rem;
    }
}

    /* Descriptive text - centered below with proper spacing */
    #homepage .hero-bottom-text {
        text-align: center !important;
        color: #1F1F1F !important;
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-medium);
        line-height: var(--line-height-relaxed);
        margin-top: 1rem !important;
        padding: 0 1rem !important;
        display: block;
        width: 100%;
    }

    /* Row containing the text - ensure it's centered */
    #homepage .hero-bottom .row {
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
    }

    #homepage .hero-bottom .row .col-auto {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        flex: 0 0 100% !important;
    }

    /* Ensure no horizontal lines show on mobile */
    #homepage .hero-bottom .row .col-3 {
        display: none !important;
    }

@media(max-width: 575px){
    .hero-bottom-text{
        font-size: var(--font-size-sm) !important;
    }
}

/* ============================================
   Testimonials Section - Alternative Design
   ============================================ */
.testimonials-section-v3 {
    background: #ffffff;
    position: relative;
}

.testimonials-subtitle {
    font-weight: 500 !important;
}

@media (min-width: 700px) {
    .testimonials-subtitle {
        font-size: var(--font-size-lg-desktop);
    }
}

/* Testimonials Carousel - Base Styles */
#testimonialsCarousel {
    position: relative;
    padding: 0 1rem;
}

#testimonialsCarousel .carousel-inner {
    padding: 1rem 0;
}

/* Testimonials Row - Container for multiple testimonials */
.testimonials-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    height: 420px; /* Fixed height to prevent layout shifts */
}

/* On screens below 700px, hide the second testimonial in each row */
@media (max-width: 699px) {
    .testimonials-row .testimonial-item-v3:nth-child(2) {
        display: none;
    }
}

.testimonial-item-v3 {
    background: #fff;
    border-radius: 8px;
    border: 3px solid #e1e1e1;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Include padding in height calculation */
    overflow: hidden; /* Prevent content overflow */
}

.testimonial-item-v3:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Testimonials Carousel - Original Design for screens above 700px */
@media (min-width: 700px) {
    #testimonialsCarousel {
        padding: 0 3rem;
    }

    /* Display 2 testimonials side by side on screens above 700px */
    .testimonials-row {
        flex-direction: row;
        gap: 2rem;
        height: 360px; /* Fixed height to prevent layout shifts */
        align-items: stretch; /* Ensure items stretch to full height */
    }

    /* Show the second testimonial on screens above 700px */
    .testimonials-row .testimonial-item-v3:nth-child(2) {
        display: block;
    }


    /* When there's only one testimonial in a row, limit its width */
    .testimonials-row .testimonial-item-v3:only-child {
        max-width: 600px;
        margin: 0 auto;
    }

    .testimonial-rating-stars {
        display: flex;
        gap: 0.25rem;
        color: #FFD700;
        font-size: 1rem;
    }

    .testimonial-author-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }


    /* Carousel Controls */
    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        width: 50px;
        height: 50px;
        background-color: #7A1F1F;
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    #testimonialsCarousel .carousel-control-prev {
        left: -25px;
    }

    #testimonialsCarousel .carousel-control-next {
        right: -25px;
    }

    #testimonialsCarousel .carousel-control-prev:hover,
    #testimonialsCarousel .carousel-control-next:hover {
        opacity: 1;
        background-color: #9b2d35;
    }

    #testimonialsCarousel .carousel-control-prev-icon,
    #testimonialsCarousel .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }

    /* Carousel Indicators */
    #testimonialsCarousel .carousel-indicators {
        margin-bottom: 0;
        bottom: -50px;
    }

    #testimonialsCarousel .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #7A1F1F;
        opacity: 0.3;
        border: none;
        margin: 0 5px;
        transition: all 0.3s ease;
    }

    #testimonialsCarousel .carousel-indicators button.active {
        opacity: 1;
        background-color: #7A1F1F;
        width: 30px;
        border-radius: 6px;
    }
}

/* Carousel Controls */
#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: #7A1F1F;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-control-prev {
    left: -25px;
}

#testimonialsCarousel .carousel-control-next {
    right: -25px;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: #9b2d35;
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}

/* Carousel Indicators */
#testimonialsCarousel .carousel-indicators {
    margin-bottom: 0;
    bottom: -50px;
}

#testimonialsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #7A1F1F;
    opacity: 0.3;
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-indicators button.active {
    opacity: 1;
    background-color: #7A1F1F;
    width: 30px;
    border-radius: 6px;
}

.testimonial-quote-icon {
    color: #7A1F1F;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-text-v3 {
    font-family: var(--font-family-base);
    color: #4a4a4a;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    margin: 0 0 1.5rem 0;
    font-style: italic;
    flex: 1 1 auto; /* Allow text to grow and fill available space */
    min-height: 0; /* Allow flex item to shrink below content size */
    overflow-y: auto; /* Allow scrolling if content is too long */
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-height: 220px; /* Limit maximum height for text area on mobile */
}

/* Custom scrollbar for testimonial text */
.testimonial-text-v3::-webkit-scrollbar {
    width: 4px;
}

.testimonial-text-v3::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.testimonial-text-v3::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.testimonial-text-v3::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (min-width: 700px) {
    .testimonial-text-v3 {
        font-size: var(--font-size-base-desktop);
    }
}

.testimonial-footer-v3 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto; /* Push footer to bottom of flex container */
}

.testimonial-rating-stars {
    display: flex;
    gap: 0.25rem;
    color: #FFD700;
    font-size: 1rem;
}

.testimonial-rating-stars i {
    color: #FFD700;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author-name {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: #1F1F1F;
    margin: 0;
    line-height: var(--line-height-tight);
    margin-bottom: 0 !important;
}

.testimonial-author-role {
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm) !important;
    font-weight: var(--font-weight-normal);
    color: #7A1F1F;
}


.search-card-title{
    margin: 0 !important;
    font-size: var(--font-size-lg) !important;
    background: #ffffff;
    /* background: rgb(255 255 255 / 80%); */
    border: 1px solid rgb(255 255 255 / 60%);
    border-bottom: none;
    padding: 14px 35px;
    border-radius: 10px 10px 0 0;
    display: inline-block;
    /* margin-left: 25px !important; */
}


/* Responsive Design */
@media (max-width: 991px) {
  
    
    .testimonials-title {
        font-size: var(--font-size-2xl-desktop);
        text-align: center;
    }
    
    .testimonials-subtitle {
        font-size: var(--font-size-base-desktop);
        text-align: center;
    }
    
    #testimonialsCarousel {
        padding: 0 2rem;
    }
    
    #testimonialsCarousel .carousel-control-prev {
        left: -15px;
    }
    
    #testimonialsCarousel .carousel-control-next {
        right: -15px;
    }
    
    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    .search-card-title{
        color: var(--lbfs-secondary-color) !important;
        text-align: center !important;
        padding: 0;
        margin-left: auto !important;
        margin-bottom: 1rem !important;
        background: none;
        width: 100%;
        border: none;
        font-size: var(--font-size-xl) !important;
    }
}

@media (max-width: 767px) {
   
    .search-card-title{
        margin-bottom: 0 !important;
    }
    .search-card{
        margin-top: 1rem;
    }
    
    .testimonials-subtitle {
        font-size: var(--font-size-base);
    }
    
    #testimonialsCarousel {
        padding: 0 1rem;
    }
    
    #testimonialsCarousel .carousel-item {
        flex-direction: column;
        gap: 1rem;
        height: 420px; /* Fixed height for tablets */
    }
    
    .testimonials-row {
        height: 420px; /* Fixed height for tablets */
    }
    
    .testimonial-item-v3 {
        width: 100% !important;
        padding: 1.75rem;
    }
    
    #testimonialsCarousel .carousel-control-prev {
        left: -10px;
    }
    
    #testimonialsCarousel .carousel-control-next {
        right: -10px;
    }
    
    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    #testimonialsCarousel .carousel-control-prev-icon,
    #testimonialsCarousel .carousel-control-next-icon {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
    }
    
    .testimonial-item-v3 {
        padding: 1.75rem;
    }
    
    .testimonial-text-v3 {
        font-size: var(--font-size-base);
    }
    
    #testimonialsCarousel .carousel-indicators {
        bottom: -40px;
    }
}

@media (max-width: 575px) {
    
    
    #testimonialsCarousel {
        padding: 0 0.5rem;
    }
    
    #testimonialsCarousel .carousel-control-prev {
        left: 0;
    }
    
    #testimonialsCarousel .carousel-control-next {
        right: 0;
    }
    
    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        width: 30px;
        height: 30px;
        opacity: 0.7;
    }
    
    #testimonialsCarousel .carousel-control-prev-icon,
    #testimonialsCarousel .carousel-control-next-icon {
        width: 14px;
        height: 14px;
        background-size: 14px 14px;
    }
    
    .testimonial-item-v3 {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-quote-icon {
        font-size: 1.5rem;
    }
    
    .testimonial-text-v3 {
        font-size: var(--font-size-sm);
        line-height: var(--line-height-relaxed);
        max-height: 200px; /* Limit maximum height for text area on small screens */
    }
    
    #testimonialsCarousel .carousel-item {
        height: 400px; /* Fixed height for small screens */
    }
    
    .testimonials-row {
        height: 400px; /* Fixed height for small screens */
    }
        
    .testimonial-author-name {
        font-size: var(--font-size-base);
    }
    
    .testimonial-author-role {
        font-size: var(--font-size-xs);
    }
    
    #testimonialsCarousel .carousel-indicators {
        bottom: -35px;
    }
    
    #testimonialsCarousel .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    #testimonialsCarousel .carousel-indicators button.active {
        width: 25px;
    }
}

/* ============================================
   Mobile App Footer Menu
   ============================================ */
.mobile-footer-menu {
    overflow: hidden;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #ffffff;
    border-top: 1px solid #a06060;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: 0.5rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.mobile-footer-menu-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.mobile-footer-menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #6b6b6b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Border right with gradient fade - all items except last */
.mobile-footer-menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0.5px;
    background: linear-gradient(
        to bottom,
        rgba(96, 27, 30, 0) 0%,
        rgba(96, 27, 30, 0.3) 20%,
        rgba(96, 27, 30, 1) 50%,
        rgba(96, 27, 30, 0.3) 80%,
        rgba(96, 27, 30, 0) 100%
    );
    pointer-events: none;
}

.mobile-footer-menu-item:active {
    background-color: rgba(96, 27, 30, 0.05);
}

.mobile-footer-menu-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.mobile-footer-menu-item .mobile-footer-menu-icon i {
    font-size: 1.25rem;
    color: #6b6b6b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-footer-menu-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* Active State */
.mobile-footer-menu-item.active {
    color: #601b1e;
}

.mobile-footer-menu-item.active .mobile-footer-menu-icon {
    transform: translateY(-2px);
}

.mobile-footer-menu-item.active .mobile-footer-menu-icon i {
    color: #ffffff;
    transform: scale(1.05);
}

.mobile-footer-menu-item.active .mobile-footer-menu-label {
    color: #601b1e;
    font-weight: 600;
}

/* Hover State (for devices with hover capability) */
@media (hover: hover) {
    .mobile-footer-menu-item:hover {
        color: #601b1e;
    }

    .mobile-footer-menu-item:hover .mobile-footer-menu-icon {
        transform: translateY(-2px);
    }

    .mobile-footer-menu-item:hover .mobile-footer-menu-icon i {
        color: #601b1e;
    }

    .mobile-footer-menu-item:hover .mobile-footer-menu-label {
        color: #601b1e;
    }
}

/* Add padding to body on mobile to prevent content from being hidden behind footer */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 80px;
    }

    /* Reduce padding if safe area is already applied */
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    .how-it-works-title-spacing{
        margin-bottom: 0!important;
    }
}

/* Ensure footer menu appears above other elements */
.mobile-footer-menu {
    z-index: 1030;
}

/* Hide on desktop */
@media (min-width: 768px) {
    .mobile-footer-menu {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}


.tns-ovh{
    padding: .5rem 0 !important;
}




/* Floating Button */
#advisor-fab {
    position: fixed;
    top: 40%;
    transform: rotate(-90deg) translateY(42px);
    right: 0;
    background: var(--lbfs-primary-color);
    color: #fff;
    padding: 5px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,.25);
    z-index: 10;
    font-size: var(--font-size-sm) !important;
    font-weight: 600 !important;
}

.fab-icon {
    font-size: 24px !important;
}

/* Slide Panel */
#advisor-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: -320px;
    width: 300px;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,.15);
    z-index: 9999;
    transition: right 0.4s ease;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
}

#advisor-panel.active {
    right: 0;
}

.panel-header {
    padding: 15px;
    background: #7a1f1f;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel-header h5{
    color: #fff !important;
}

.close-panel {
    font-size: 24px;
    cursor: pointer;
}

/* Form */
#advisor-form {
    padding: 20px;
}

#advisor-form input,
#advisor-form textarea {
    width: 100%;
    margin-bottom: 12px!important;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: var(--font-size-sm);
}
.iti__selected-country-primary {
    margin-top: -0.5rem!important;
}
#advisor-form button {
    width: 100%;
    padding: 12px;
    /* background: var(--lbfs-primary-color); */
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.advisor-form-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}
.advisor-form-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.advisor-form-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.whatsapp-chat{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2ecc71;
    color: #fff;
    position: fixed;
    z-index: 9;
    top: 50%;
    right: 1rem;
    font-size: 1.5rem !important;
    margin-top: 3rem;
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
}
.whatsapp-chat:hover{
    box-shadow: 0 0 0 2px #26b462;
    background-color: #17bc5c;
}

/* Mobile View */
@media (max-width: 768px) {
    .fab-text {
        display: none;
    }
    #advisor-fab{
        padding: 0;
        right: 0;
        width: 40px;
        height: 40px;
        justify-content: center;
        padding-left: 5px;
        transform: rotate(0);
        border-radius: 50px 0 0 50px;
        top: auto;
        bottom: 135px;
    }
    .fab-icon {
        font-size: 20px !important;
    }
    #advisor-panel {
        max-width: 100%;
    }
    .whatsapp-chat{
        right: 0;
        border-radius: 50% 0 0 50%;
        width: 40px;
        height: 40px;
        font-size: 1.25rem !important;
        padding-left: 5px;
        top: auto;
        bottom: 84px;
    }
    .whatsapp-chat:hover{
        box-shadow: none;
    }
}

/* ============================================
   Post Detail Page Styling - Match Homepage
   ============================================ */

/* CSS Variables - Scoped to post detail page */
.main-container {
    /* Typography Variables - Consistent across all screen sizes */
    --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: "Noto Serif Georgian", serif;
    
    /* Font Sizes - Base (Mobile First) */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.75rem;     /* 28px */
    --font-size-4xl: 2rem;         /* 32px */
    --font-size-5xl: 2.5rem;       /* 40px */
    
    /* Font Sizes - Desktop (700px+) */
    --font-size-xs-desktop: 0.875rem;   /* 14px */
    --font-size-sm-desktop: 1rem;       /* 16px */
    --font-size-base-desktop: 1.125rem;  /* 18px */
    --font-size-lg-desktop: 1.25rem;     /* 20px */
    --font-size-xl-desktop: 1.5rem;     /* 24px */
    --font-size-2xl-desktop: 2rem;      /* 32px */
    --font-size-3xl-desktop: 2.25rem;   /* 36px */
    --font-size-4xl-desktop: 3rem;      /* 48px */
    --font-size-5xl-desktop: 3.5rem;     /* 56px */
    
    /* Spacing Variables */
    --section-spacing-mobile: 0rem;
    --section-spacing-tablet: 0rem;
    --section-spacing-desktop: 0rem;
    --heading-margin-bottom: 1.5rem;
    --heading-margin-bottom-mobile: 1rem;
    
    /* Line Height */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Font Weight */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Colors */
    --lbfs-primary-color: #7A1F1F;
    --lbfs-secondary-color: #1F1F1F;
    --lbfs-border-color: #b5b2b5;
}

/* Apply font family to main container */
.main-container {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--lbfs-secondary-color);
}

/* Typography System - All Headings */
.main-container h1,
.main-container h2,
.main-container h3,
.main-container h4,
.main-container h5,
.main-container h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    color: var(--lbfs-secondary-color);
    line-height: var(--line-height-tight);
    margin-bottom: var(--heading-margin-bottom-mobile);
    letter-spacing: -0.02em;
}

.main-container h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

.main-container h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

.main-container h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.main-container h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.main-container h5 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

.main-container h6 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

/* Paragraphs */
.main-container p {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
}

/* Desktop Typography (700px+) */
@media (min-width: 700px) {
    .main-container {
        font-size: var(--font-size-base-desktop);
    }
    
    .main-container h1 {
        font-size: var(--font-size-4xl-desktop);
        margin-bottom: var(--heading-margin-bottom);
    }
    
    .main-container h2 {
        font-size: var(--font-size-3xl-desktop);
        margin-bottom: var(--heading-margin-bottom);
    }
    
    .main-container h3 {
        font-size: var(--font-size-2xl-desktop);
        margin-bottom: var(--heading-margin-bottom);
    }
    
    .main-container h4 {
        font-size: var(--font-size-xl-desktop);
        margin-bottom: 1rem;
    }
    
    .main-container h5 {
        font-size: var(--font-size-lg-desktop);
        margin-bottom: 0.75rem;
    }
    
    .main-container h6 {
        font-size: var(--font-size-base-desktop);
        margin-bottom: 0.75rem;
    }
    
    .main-container p {
        font-size: var(--font-size-base-desktop);
    }
}

/* Card Design - Match Homepage */
.main-container .bg-white.rounded-xl {
    border-radius: 16px !important;
    border: 3px solid #e1e1e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-container .bg-white.rounded-xl:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

/* Spacing - Match Homepage */
.main-container .space-y-5>*+* {
    margin-top: 1.5rem !important;
}

@media (min-width: 700px) {
    .main-container .space-y-5>*+* {
        margin-top: 2rem !important;
    }
}

.main-container .gap-6 {
    gap: 1.5rem !important;
}

@media (min-width: 700px) {
    .main-container .gap-6 {
        gap: 2rem !important;
    }
}

.main-container .py-6 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

@media (min-width: 700px) {
    .main-container .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

.main-container .p-5 {
    padding: 1.75rem !important;
}

@media (min-width: 700px) {
    .main-container .p-5 {
        padding: 2rem !important;
    }
}

.main-container .p-3 {
    padding: 1rem !important;
}

@media (min-width: 700px) {
    .main-container .p-3 {
        padding: 1.25rem !important;
    }
}

.main-container .mb-4 {
    margin-bottom: 1rem !important;
}

@media (min-width: 700px) {
    .main-container .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

.main-container .mb-3 {
    margin-bottom: 0.75rem !important;
}

@media (min-width: 700px) {
    .main-container .mb-3 {
        margin-bottom: 1rem !important;
    }
}

.main-container .mb-5 {
    margin-bottom: 1.5rem !important;
}

@media (min-width: 700px) {
    .main-container .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* Button Styles - Match Homepage */
.main-container button,
.main-container .btn,
.main-container a[class*="btn"],
.main-container .sidebar-cta-btn {
    font-family: var(--font-family-base) !important;
    font-weight: var(--font-weight-semibold) !important;
    border-radius: 5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: var(--font-size-base) !important;
}

@media (min-width: 700px) {
    .main-container button,
    .main-container .btn,
    .main-container a[class*="btn"],
    .main-container .sidebar-cta-btn {
        font-size: var(--font-size-base-desktop) !important;
        border-radius: 8px !important;
    }
}

/* Text colors */
.main-container .text-dark {
    color: var(--lbfs-secondary-color) !important;
}

.main-container .text-gray-600 {
    color: #6b6b6b !important;
    font-family: var(--font-family-base) !important;
    font-size: var(--font-size-base) !important;
}

@media (min-width: 700px) {
    .main-container .text-gray-600 {
        font-size: var(--font-size-base-desktop) !important;
    }
}

.main-container .text-gray-500 {
    color: #6b6b6b !important;
    font-family: var(--font-family-base) !important;
    font-size: var(--font-size-sm) !important;
}

@media (min-width: 700px) {
    .main-container .text-gray-500 {
        font-size: var(--font-size-sm-desktop) !important;
    }
}

/* Primary color text */
.main-container .text-\[#7A1F1F\] {
    color: var(--lbfs-primary-color) !important;
}

/* Hero Section Typography */
.main-container section.relative h1 {
    font-family: var(--font-family-heading) !important;
    font-weight: var(--font-weight-bold) !important;
}

/* Navigation Tabs */
.main-container nav.sticky {
    font-family: var(--font-family-base) !important;
}

.main-container nav.sticky button {
    font-family: var(--font-family-base) !important;
    font-weight: var(--font-weight-medium) !important;
    font-size: var(--font-size-sm) !important;
}

@media (min-width: 700px) {
    .main-container nav.sticky button {
        font-size: var(--font-size-base-desktop) !important;
    }
}

/* Section Headings */
.main-container section h2 {
    font-family: var(--font-family-heading) !important;
    font-weight: var(--font-weight-semibold) !important;
    font-size: var(--font-size-lg) !important;
}

@media (min-width: 700px) {
    .main-container section h2 {
        font-size: var(--font-size-xl-desktop) !important;
    }
}

/* List Items */
.main-container ul li,
.main-container ol li {
    font-family: var(--font-family-base) !important;
    font-size: var(--font-size-base) !important;
    line-height: var(--line-height-relaxed) !important;
}

@media (min-width: 700px) {
    .main-container ul li,
    .main-container ol li {
        font-size: var(--font-size-base-desktop) !important;
    }
}

/* Price Display */
.main-container .text-xl,
.main-container .text-2xl {
    font-family: var(--font-family-heading) !important;
    font-weight: var(--font-weight-bold) !important;
}

/* Similar Listings Cards */
.main-container .group h3 {
    font-family: var(--font-family-heading) !important;
    font-weight: var(--font-weight-semibold) !important;
    font-size: var(--font-size-base) !important;
}

@media (min-width: 700px) {
    .main-container .group h3 {
        font-size: var(--font-size-base-desktop) !important;
    }
}

/* Sidebar Styling - Fix spacing and card display */
.main-container .sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .main-container .sidebar-wrapper {
        gap: 2rem;
    }
}

/* Sidebar Cards - Ensure proper display and spacing */
.main-container .sidebar-wrapper > div {
    margin-bottom: 0 !important;
    width: 100%;
}

.main-container .sidebar-wrapper > div:not(:last-child) {
    margin-bottom: 0 !important;
}

/* Ensure cards don't collapse */
.main-container .sidebar-wrapper .bg-white.rounded-xl {
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Fix sticky positioning for sidebar - Desktop only */
.main-container .sidebar-wrapper .sticky {
    position: static; /* Default: not sticky on mobile */
}

@media (min-width: 992px) {
    .main-container .sidebar-wrapper .sticky {
        position: sticky;
        top: 80px;
        z-index: 10;
        align-self: flex-start;
    }
}

/* Sidebar card content spacing */
.main-container .sidebar-wrapper .p-3 {
    padding: 1rem !important;
}

@media (min-width: 700px) {
    .main-container .sidebar-wrapper .p-3 {
        padding: 1.25rem !important;
    }
}

/* Sidebar text styling */
.main-container .sidebar-wrapper .text-xs {
    font-size: var(--font-size-xs) !important;
    font-family: var(--font-family-base) !important;
}

@media (min-width: 700px) {
    .main-container .sidebar-wrapper .text-xs {
        font-size: var(--font-size-xs-desktop) !important;
    }
}

.main-container .sidebar-wrapper .text-sm {
    font-size: var(--font-size-sm) !important;
    font-family: var(--font-family-base) !important;
}

@media (min-width: 700px) {
    .main-container .sidebar-wrapper .text-sm {
        font-size: var(--font-size-sm-desktop) !important;
    }
}

/* Sidebar list items */
.main-container .sidebar-wrapper ul li {
    font-family: var(--font-family-base) !important;
    font-size: var(--font-size-xs) !important;
    line-height: var(--line-height-relaxed) !important;
}

@media (min-width: 700px) {
    .main-container .sidebar-wrapper ul li {
        font-size: var(--font-size-xs-desktop) !important;
    }
}

/* Social share sidebar buttons */
.main-container .social-share-sidebar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.main-container .social-share-sidebar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.main-container .social-share-sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.main-container .social-share-facebook {
    background-color: #1877F2;
    color: white;
}

.main-container .social-share-twitter {
    background-color: #000000;
    color: white;
}

.main-container .social-share-linkedin {
    background-color: #0077B5;
    color: white;
}

.main-container .social-share-whatsapp {
    background-color: #25D366;
    color: white;
}

.main-container .social-share-telegram {
    background-color: #0088cc;
    color: white;
}

/* Post sidebar share buttons (sidebar-v2) - hover ensured via static CSS */
.main-container .post-sidebar-share-buttons a:hover {
    background-color: #812424 !important;
    color: rgb(255 255 255) !important;
    border-color: #812424 !important;
}
.main-container .post-sidebar-share-buttons a{
    border: 1px solid #812424!important;
    border-radius: 50% !important;
    transition: all 0.2s ease;
}
/* ============================================
   PNotify Notification - Mobile Responsive
   ============================================ */

/* PNotify Container - Base Styles */
.pnotify-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Mobile adjustments - Override inline styles */
@media (max-width: 767.98px) {
    /* Override inline positioning and width */
    .pnotify {
        right: 1rem !important;
        left: 1rem !important;
        top: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
        position: fixed !important;
    }

    /* Override container width */
    .pnotify-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .pnotify-content {
        padding: 1rem !important;
    }

    .pnotify-text {
        font-size: var(--font-size-sm) !important;
        line-height: var(--line-height-normal) !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Ensure text doesn't overflow */
    .pnotify-text-with-max-height {
        max-height: 150px !important;
        overflow-y: auto !important;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .pnotify {
        right: 0.75rem !important;
        left: 0.75rem !important;
        top: 0.75rem !important;
        max-width: calc(100vw - 1.5rem) !important;
        width: calc(100vw - 1.5rem) !important;
    }

    .pnotify-text {
        font-size: var(--font-size-xs) !important;
    }

    .pnotify-text-with-max-height {
        max-height: 120px !important;
    }
}

/* Ensure PNotify uses homepage fonts */
.pnotify-text {
    font-family: var(--font-family-base) !important;
    color: var(--lbfs-secondary-color) !important;
}

    /* Modern PNotify Notification Enhancements - Force Override */
[data-pnotify].custom-elem {
    border-radius: 12px !important;
    overflow: hidden !important;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-pnotify].custom-elem.pnotify-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

[data-pnotify] .custom-container {
    position: relative !important;
    padding: 1.25rem 1.5rem !important;
    border-left: 4px solid var(--custom-border-color) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[data-pnotify] .custom-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--custom-border-color);
    border-radius: 12px 0 0 12px;
    z-index: 0;
}

[data-pnotify] .custom-content {
    position: relative;
    z-index: 1;
}

[data-pnotify] .custom-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    line-height: 1.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.01em !important;
}

[data-pnotify] .custom-text {
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
    line-height: 1.5rem !important;
    margin-top: 0 !important;
    letter-spacing: 0.01em !important;
}

[data-pnotify] .custom-closer,
[data-pnotify] .custom-sticker {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

[data-pnotify] .custom-closer:hover,
[data-pnotify] .custom-sticker:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    opacity: 0.7 !important;
    transform: scale(1.1) !important;
}

[data-pnotify] .custom-closer span,
[data-pnotify] .custom-sticker span {
    font-size: 0.875rem !important;
}

[data-pnotify] .custom-btn {
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 1.25rem !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

[data-pnotify] .custom-btn:hover {
    opacity: 0.8 !important;
    transform: translateY(-1px) !important;
}

[data-pnotify] .custom-btn-primary {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

[data-pnotify] .custom-btn-primary:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
}

/* PNotify close button - mobile friendly */
@media (max-width: 767.98px) {
    .pnotify-closer {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
}

/* ============================================
   Post Detail Hero Image - Mobile Display
   ============================================ */

/* Hero section image - Mobile responsive */
.main-container section.relative .flex img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Mobile view - Show image above text */
@media (max-width: 767.98px) {
    .main-container section.relative .flex {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .main-container section.relative .flex img {
        max-height: 200px !important;
        width: auto !important;
        max-width: 90% !important;
        margin-bottom: 0.5rem !important;
    }

    /* Ensure image container doesn't take full height on mobile */
    .main-container section.relative .flex > div:first-child {
        height: auto !important;
        max-height: 220px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Tablet view */
@media (min-width: 768px) and (max-width: 991.98px) {
    .main-container section.relative .flex img {
        max-height: 280px !important;
        max-width: 350px !important;
    }
}

/* Dropdown menu position override */
.dropdown-menu[data-bs-popper] {
    left: -4rem!important;
    margin-top: var(--bs-dropdown-spacer);
    top: 100%;
}


.bgoverlay{
    height: 350px;
    width: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgb(250, 231, 213) 25%, #FFFFFF) !important;
    background-color: transparent !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}


@media(max-width:991px){
    .advanced-search-row{
        margin-top: 0;
        justify-content: center;
    }
}

@media(max-width:767px){
    .advanced-search-row{
        margin-top: 0;
        justify-content: center;
    }
}