/* CSS Variables */
:root {
    --primary-color: #79288C;
    --secondary-color: #FF8000;
    --dark-text: #303536;
    --light-bg: #EEE8FF;
}

.container {
    padding: 0 !important;
    max-width: 1360px !important;
}

/* Typography */
.heading-primary {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 60px;
    line-height: 70px;
    letter-spacing: 0%;
}

.text-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0%;
}

.hero-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    width: 552px;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-dark-custom {
    color: var(--dark-text) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

/* Navigation */
.navbar {
    min-height: 85px;
    display: flex;
    align-items: center;
    background-color: #EEE8FF !important;
    height: 85px;
}

.navbar-brand img {
    height: 81px;
    max-height: 100px; 
    width: auto;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 16.39px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-phone {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 9px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-family: 'Poltawski Nowy', serif;
    line-height: 16.39px;
} 
.mt-top{
    margin-top: 4rem;
}

.btn-phone-desktop:hover {
    background-color: #e6720a;
    color: white;
}

#home-care-section,
#cbh-services-section,
#faq-section {
    scroll-margin-top: 100px; 
    padding-top: 30px; 
}

#package-section {
    scroll-margin-top: 120px; 
    padding-top: 30px; 
}

/* Alternatively, you can use this approach for all section anchors */
section[id] {
    scroll-margin-top: 100px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 860px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    /* background: url(images/hero-bg_1.jpg) right 70% bottom 53% / 196% no-repeat; */
    background: url(images/hero-bg_3.webp) right 85% bottom 44%;

}

.hero-mobile-button{
    display: none;
}

.hero-content .col-lg-6.col-xl-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Gradient overlay */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
90deg, rgba(25, 11, 11, 0.5) 5.21%, rgba(25, 11, 11, 0) 62.48%);
    z-index: 1;
}

.hero-bottom-right-image {
    position: absolute;
    bottom: 8rem;
    right: 30px;
    z-index: 3;
    max-width: 170px;
    transition: transform 0.3s ease;
}

.hero-bottom-right-image:hover {
    transform: scale(1.05);
}

.hero-bottom-right-image img {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-bottom-right-image {
        bottom: 80px;
        right: 20px;
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .hero-bottom-right-image {
        bottom: 70px;
        right: 15px;
        max-width: 80px;
    }
}

@media (max-width: 576px) {
    .hero-bottom-right-image {
        bottom: 60px;
        right: 10px;
        max-width: 60px;
    }
    .hero-section .hero-content {
        text-align: left !important;
        padding: 0 !important;
        margin-top: 0 !important;
        top: 43px;
        position: absolute;
    }
    
}

.hero-bottom-image {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    z-index: 2;
}

.hero-bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Make sure content stays on top of gradient */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: white;
    margin-bottom: 2rem;
}

.hero-description {
    color: white;
    margin-bottom: 2.5rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 16px 32px;
    font-weight: 400;
    font-size: 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.btn-primary-custom:hover {
    background-color: #5f1f6b;
    color: white;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

/* What is Home Care Section */
.home-care-section {
    padding: 80px 0;
}

.home-care-sections {
    margin-top: 10rem;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title-left {
    text-align: left;
    margin-bottom: 2rem;
}

.section-description {
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 4rem;
}

/* Steps Cards */
.step-card {
    text-align: center;
    padding: 60px 30px;  
    min-height: 500px;    
    border: none;
    background: transparent;
    border-radius: 20px;
    padding-left: 15%;  
    padding-right: 15%;  
}

.step-card-primary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 54px;
    position: relative;
    margin: 20px 0;
    padding: 60px 30px; 
    text-align: center;
    padding-left: 15%;  
    padding-right: 15%;  
    min-height: 500px;
}

/* Add backward shadow/box */
.step-card-primary::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: var(--light-bg);
    border-radius: 54px;
    transform: rotate(352deg);
    z-index: -1;
}

.step-icon {
    margin-bottom: 30px;
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-card-primary .step-title {
    color: white;
}

.step-text {
    color: var(--dark-text);
    /* margin-bottom: 1.5rem; */
}

.step-card-primary .step-text {
    color: white;
}

.primary-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.secondary-link{
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.primary-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.btn-white-custom {
    font-family: 'Playfair Display', serif;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid white;
    padding: 12px 24px;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-white-custom:hover {
    border-color: #f8f9fa;
}

.step-bottom-icon {
    margin-top: 1.5rem;
}

.step-bottom-icon img {
    width: 40px;
    height: 40px;
}

.step-card,
.step-card-primary {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step-bottom-icon,
.step-card-primary .btn-white-custom {
    margin-top: auto;
}

.why-cbh-section {
    padding: 80px 0;
    position: relative;
}

.image-box-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-box {
    position: relative;
    z-index: 2;
    border-radius: 20px;
}

.package-image-box {
    position: relative;
    z-index: 3;
    border-radius: 20px;
    max-width: 130%;
    transform: translate(-60px, 0px);
}

/* Rotated background box like Step 2 */
.rotated-box {
    position: absolute;
    top: 0px;
    right: 15px;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    border-radius: 54px;
    transform: rotate(353deg);
    z-index: 1;
}

.color-box {
    position: absolute;
    top: 0px;
    right: 15px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 54px;
    z-index: 1;
}

.cbh-services-section {
    padding: 80px 0;
}

.cbh-services-section .heading-primary {
    text-align: center;
    margin-bottom: 50px;
}

.service-card {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: #f1f1f1;
}

.service-title {
    font-family: 'Roboto', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: #303536;
    margin: 0;
    line-height: 28.5px;
}

.home-care-sections .image-box-wrapper {
    width: 90% !important;
    max-width: none;
}

.reviews-section {
    min-height: 500px;
    background-color: #F2EDFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem !important;
}

.review-text {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    line-height: 52px;
    color: #303536;
    font-weight: 300;
}

.reviewer-name {
    font-family: 'Playfair Display', serif;
    margin-top: 3rem;
    font-weight: 600;
    font-size: 20px;
    color: #303536;
}

.reviewer-role {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #555;
}

.reviews-section .carousel-indicators {
    position: relative;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px; 
}

.reviews-section .carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.reviews-section .carousel-indicators .active {
    background-color: var(--primary-color);
}

/* Service icon + text row */
.funding-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.service-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
}

/* Text block next to icon */
.funding-text {
    flex: 1;
}

.funding-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #303536;
}

.funding-description {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    margin: 0;
    color: #555;
}

.call-section{
    padding-left: 5rem;
    padding-right: 5rem;
}

.col-lg-6.call-section {
    width: 478px;
}

.col-lg-6.package-section {
    width: 477px;
}

.package-section .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
    justify-content: space-evenly;
}

.faq-section {
  padding: 80px 0;
  background-color: #F2EDFF80;
}

/* Remove default white background */
.accordion-item,
.accordion-button {
  background-color: transparent !important;
}

.accordion-button {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-text);
  box-shadow: none;
  padding-right: 50px;
  padding-left: 0 !important;
}

.accordion-button:focus {
  box-shadow: none;
}

/* Answer text */
.accordion-body {
  font-size: 18px;
  color: #555;
  line-height: 1.7;
  background: transparent;
  padding-left: 0 !important;
}

/* Custom circle + icon */
.accordion-button::after {
  content: "+";
  font-size: 18px;
  font-weight: bold;
  color: #79288C;
  background-color: transparent;
  border: 2px solid #79288C;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.3s ease;
}

/* When open, change to minus */
.accordion-button:not(.collapsed)::after {
  content: "−";
  color: #79288C;
  border-color: #79288C;
}

.accordion-button::after {
  background-image: none !important;
}

.accordion-item {
  border: none !important;
}

.accordion-button {
  border: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-collapse {
  border: none !important;
}

.help-section{
    background-color: #F5F9F9;
}

.help-links a {
  color: #303536;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.help-links a:hover {
  text-decoration: underline;
}

.footer-section {
  background-color: transparent;
  color: #303536;
  font-family: 'Roboto', sans-serif;
}

.footer-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 20px;
  color: #303536;
  line-height: 19px;
}

.footer-links{
    padding-top: 10px;
    padding-bottom: 10px;
}

.footer-links li a,
.footer-contact li span {
  font-size: 18px;
  font-family: 'Roboto', sans-serif;
  color: #30353699;
  text-decoration: none;
}

.footer-links li a:hover {
  color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-contact img {
  display: inline-block;
}

.footer-bottom {
  background-color: #F5F9F9;
  font-size: 14px;
}

.footer-bottom a {
  color: #303536;
  text-decoration: none;
}

.footer-bottom .copyright{
    color: #303536;
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

.home-care-sections .text-description {
    padding-right: 2rem;
}

/* ===== ENHANCED MOBILE RESPONSIVE STYLES ===== */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Navigation */
    .navbar {
        min-height: 70px;
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 60px;
        max-height: 60px;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
        font-size: 16px;
        text-align: center;
    }
    
    .btn-phone {
        padding: 8px 16px;
        font-size: 14px;
        width: 100%;
        margin-top: 10px;
    }

    /* Typography */
    .heading-primary {
        font-size: 28px;
        line-height: 34px;
    }

    .text-description {
        font-size: 16px;
        line-height: 24px;
    }

    /* Hero Section */
    .hero-section {
        min-height: 600px;
        background-size: cover;
        background-position: center;
        text-align: center;
        padding: 80px 0 40px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .btn-primary-custom {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
    }

    /* Sections */
    .home-care-section,
    .why-cbh-section,
    .cbh-services-section,
    .faq-section {
        padding: 40px 0;
    }

    .section-description {
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    /* Step Cards */
    .step-card,
    .step-card-primary {
        padding: 30px 20px;
        min-height: auto;
        margin-bottom: 20px;
        padding-left: 10%;
        padding-right: 10%;
    }

    .step-card-primary {
        margin: 10px 0;
        transform: rotate(0deg);
    }

    .step-card-primary::before {
        transform: rotate(0deg);
    }

    /* Image boxes */
    .image-box-wrapper {
        margin-bottom: 30px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .rotated-box {
        right: 5px;
    }

    /* Services */
    .service-card {
        padding: 12px 15px;
        margin-bottom: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
    }

    .service-title {
        font-size: 16px;
    }

    /* Reviews */
    .reviews-section {
        min-height: 400px;
        padding: 2rem 0;
    }

    .review-text {
        font-size: 20px;
        line-height: 28px;
        padding: 0 15px;
    }

    /* Funding features */
    .funding-feature {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .funding-text {
        margin-top: 10px;
    }

    .call-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* FAQ */
    .accordion-button {
        font-size: 16px;
        padding: 15px 10px;
        padding-right: 60px;
    }

    /* Help section */
    .help-links {
        padding: 0 15px;
    }
    
    .help-links .d-flex {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .help-links span {
        display: none;
    }

    /* Footer */
    .footer-section {
        text-align: center;
    }
    
    .footer-bottom {
        height: auto;
        padding: 20px 0;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom ul {
        justify-content: center !important;
        flex-wrap: wrap;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Navigation */
    .navbar {
        min-height: 80px;
    }
    
    .navbar-brand img {
        height: 70px;
        max-height: 70px;
    }
    
    .btn-phone {
        padding: 10px 20px;
        font-size: 15px;
    }

    /* Typography */
    .heading-primary {
        font-size: 36px;
        line-height: 42px;
    }

    .text-description {
        font-size: 18px;
        line-height: 28px;
    }

    /* Hero Section */
    .hero-section {
        min-height: 650px;
        text-align: center;
        background-size: cover;
    }

    .btn-primary-custom {
        padding: 15px 30px;
        font-size: 17px;
    }

    /* Sections */
    .home-care-section,
    .why-cbh-section,
    .cbh-services-section,
    .faq-section {
        padding: 60px 0;
    }

    /* Step Cards */
    .step-card,
    .step-card-primary {
        padding: 40px 25px;
        min-height: 380px;
        padding-left: 12%;
        padding-right: 12%;
    }

    .step-card-primary {
        transform: rotate(0deg);
        margin: 15px 0;
    }

    .step-card-primary::before {
        transform: rotate(0deg);
    }

    /* Services */
    .service-card {
        padding: 13px 18px;
        margin-bottom: 12px;
    }

    .service-title {
        font-size: 17px;
    }

    /* Reviews */
    .review-text {
        font-size: 24px;
        line-height: 34px;
    }

    .call-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 10px;
    }

    /* Typography */
    .heading-primary {
        font-size: 45px;
        line-height: 55px;
    }

    .text-description {
        font-size: 19px;
        line-height: 30px;
    }

    /* Hero Section */
    .hero-section {
        min-height: 700px;
        text-align: center;
    }

    /* Sections */
    .home-care-section,
    .why-cbh-section,
    .cbh-services-section,
    .faq-section {
        padding: 70px 0;
    }

    /* Step Cards */
    .step-card,
    .step-card-primary {
        padding: 50px 25px;
        min-height: 400px;
    }

    .step-card-primary {
        transform: rotate(0deg);
    }

    .step-card-primary::before {
        transform: rotate(0deg);
    }

    /* Why CBH Section */
    .why-cbh-section .row {
        flex-direction: column-reverse;
        text-align: center;
    }

    .image-box-wrapper {
        margin-bottom: 40px;
    }

    .section-title-left {
        text-align: center;
    }

    /* Services */
    .service-card {
        justify-content: flex-start;
    }

    /* Reviews */
    .review-text {
        font-size: 26px;
        line-height: 40px;
    }

    .call-section {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .call-section{
        padding-left: 0rem;
        padding-right: 0rem;
    }
}

/* Additional mobile-specific improvements */
@media (max-width: 991.98px) {
    /* Ensure all sections have proper mobile padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Make sure buttons are touch-friendly */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Improve tap targets */
    .navbar-nav .nav-link,
    .footer-links a,
    .help-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Fix navbar collapse on mobile */
    .navbar-collapse {
        text-align: center;
    }

    /* Improve accordion on mobile */
    .accordion-button {
        word-break: break-word;
    }

    /* Fix social icons alignment */
    .footer-section .d-flex {
        justify-content: left;
        flex-wrap: wrap;
    }
}

.package-section .image-box-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px; /* Reduced from 600px */
    margin: 0 auto;
    overflow: visible; /* Allow image to overflow */
}

.package-section .rotated-box {
    position: absolute;
    top: 0px;
    right: 15px;
    width: 95%; /* Reduced width */
    height: 95%; /* Reduced height */
    background-color: var(--light-bg);
    border-radius: 54px;
    transform: rotate(353deg);
    z-index: 1;
}

.package-section .color-box {
    position: absolute;
    top: 0px;
    right: 15px;
    width: 95%; /* Reduced width */
    height: 95%; /* Reduced height */
    background-color: var(--primary-color);
    border-radius: 54px;
    z-index: 2;
}

.package-section .package-image-box {
    position: relative;
    z-index: 3;
    border-radius: 20px;
    width: 135%;
    max-width: none;
    height: auto;
    transform: translate(-55px, -32px);
}

section#package-section {
    margin-top: 10rem;
}

@media (max-width: 1200px) {
    .package-section .package-image-box {
        width: 115%;
        transform: translate(-50px, 0px);
    }
}

@media (max-width: 992px) {
    .package-section .package-image-box {
        width: 110%;
        transform: translate(-40px, 0px);
    }
    
    .package-section .rotated-box,
    .package-section .color-box {
        width: 85%;
        height: 85%;
    }
}

@media (max-width: 768px) {
    .package-section .package-image-box {
        width: 105%;
        transform: translate(-30px, 0px);
    }
    
    .package-section .rotated-box,
    .package-section .color-box {
        width: 90%;
        height: 90%;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .package-section .image-box-wrapper {
        max-width: 400px;
    }
    
    .package-section .package-image-box {
        width: 100%;
        transform: translate(-20px, 0px);
    }
    
    .package-section .rotated-box,
    .package-section .color-box {
        width: 95%;
        height: 95%;
        right: 5px;
        border-radius: 40px;
    }
}



/* ENHANCED MOBILE RESPONSIVE STYLES*/

@media (max-width: 991.98px) {
    .hero-section {
        background-position: center center;
        background-size: cover;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar {
        overflow-x: hidden;
    }
    
    .navbar-brand {
        padding: 0;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }

    .hero-section {
        min-height: 500px;
        padding: 120px 0 60px;
        background-position: center;
        background-size: cover;
        overflow-x: hidden;
    }

    .hero-content {
        text-align: center;
        padding: 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: 41px;
        line-height: 49px;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        font-weight: 600;
    }

    .hero-description {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 2rem;
        word-wrap: break-word;
    }

    .hero-bottom-right-image {
        right: 5px;
        max-width: 80px;
        overflow: hidden;
    }

    .home-care-section,
    .why-cbh-section,
    .cbh-services-section,
    .package-section,
    .faq-section {
        padding: 50px 0;
        overflow-x: hidden;
    }

    .step-card,
    .step-card-primary {
        padding: 40px 15px;
        min-height: auto;
        margin-bottom: 30px;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
    }

    .step-card-primary {
        border-radius: 30px;
        margin: 20px 0;
    }

    .step-card-primary::before {
        border-radius: 30px;
        transform: rotate(0deg);
        top: 5px;
        left: 5px;
        max-width: calc(100% - 10px);
        display: none;
    }

    .step-icon img {
        max-width: 60px;
        height: auto;
    }

    .step-title {
        font-size: 22px;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }

    .step-text {
        font-size: 20px !important;
        line-height: 24px;
        margin-bottom: 2rem;
        word-wrap: break-word;
    }

    .image-box-wrapper {
        margin-bottom: 40px;
        padding: 0;
        max-width: 90%;
        overflow: hidden;
        margin-left: auto;
        margin-right: auto;
    }

    .rotated-box,
    .color-box {
        right: 0;
        border-radius: 30px;
        width: 95%;
        height: 95%;
        max-width: calc(100% - 10px);
    }

    .image-box {
        border-radius: 15px;
        max-width: 100%;
        height: auto;
    }

    .package-section {
        overflow-x: hidden;
    }

    .package-section .image-box-wrapper {
        max-width: 90%;
        margin: 2rem auto;
        overflow: hidden;
    }

    .package-section .package-image-box {
        width: 100%;
        max-width: 100%;
        transform: none; 
        bottom: 34px;

    }

    .package-section .rotated-box,
    .package-section .color-box {
        width: 90%;
        height: 90%;
        border-radius: 30px;
        right: 5%;
        max-width: 90%;
    }

    .service-card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 10px;
        text-align: left;
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        margin-right: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .service-title {
        font-size: 16px;
        margin: 0;
        line-height: 1.3;
        word-wrap: break-word;
        overflow: hidden;
    }

    .reviews-section {
        padding: 60px 0;
        min-height: auto;
        overflow-x: hidden;
    }

    .review-text {
        font-size: 18px;
        line-height: 26px;
        padding: 0 20px;
        margin-bottom: 2rem;
        word-wrap: break-word;
    }

    .reviewer-name {
        font-size: 18px;
        margin-top: 1.5rem;
        word-wrap: break-word;
    }

    .reviewer-role {
        font-size: 14px;
        word-wrap: break-word;
    }

    .funding-feature {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        max-width: 100%;
        overflow: hidden;
    }

    .funding-feature .service-icon {
        margin-right: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .funding-text {
        margin-top: 0;
        overflow: hidden;
    }

    .funding-title {
        font-size: 16px;
        word-wrap: break-word;
    }

    .funding-description {
        font-size: 14px;
        word-wrap: break-word;
    }

    .accordion-button {
        font-size: 16px;
        padding: 20px 15px;
        padding-right: 70px;
        line-height: 1.4;
        word-break: break-word;
        max-width: 100%;
    }

    .accordion-button::after {
        width: 24px;
        height: 24px;
        font-size: 16px;
        right: 15px;
        position: absolute;
    }

    .accordion-body {
        padding: 15px;
        font-size: 15px;
        line-height: 1.6;
        word-wrap: break-word;
    }

    .help-section {
        padding: 60px 0;
        min-height: auto;
        overflow-x: hidden;
    }

    .help-links {
        padding: 0 10px;
        max-width: 100%;
    }

    .help-links .d-flex {
        flex-direction: column;
        gap: 15px !important;
        align-items: center;
    }

    .help-links span {
        display: none;
    }

    .help-links a {
        font-size: 16px;
        padding: 8px 0;
        text-align: center;
        word-wrap: break-word;
        max-width: 100%;
        font-weight: 400;
    }

    .footer-section {
        padding-top: 40px;
        text-align: left;
        overflow-x: hidden;
    }

    .footer-section .col-lg-3 {
        margin-bottom: 30px;
        max-width: 100%;
    }

    .footer-heading {
        font-size: 18px;
        margin-bottom: 20px;
        word-wrap: break-word;
    }

    .footer-links li a {
        font-size: 16px;
        line-height: 1.6;
        word-wrap: break-word;
    }

    .footer-contact li {
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .footer-contact li span {
        font-size: 16px;
        word-wrap: break-word;
    }

    .footer-bottom {
        padding: 30px 0;
        text-align: center;
        overflow-x: hidden;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }

    .footer-bottom ul {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 15px !important;
        max-width: 100%;
    }

    .footer-bottom ul li a {
        font-size: 14px;
        word-wrap: break-word;
    }

    .btn-primary-custom,
    .btn-white-custom,
    .btn-phone {
        font-size: 16px;
        padding: 14px 28px;
        border-radius: 8px;
        white-space: nowrap;
        min-height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-phone img {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .text-description {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }

    .section-title,
    .section-title-left {
        text-align: center;
        margin-bottom: 2rem;
        word-wrap: break-word;
    }

    .section-description {
        text-align: center;
        padding: 0;
        margin-bottom: 3rem;
        word-wrap: break-word;
    }

    .call-section {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-section {
        min-height: 600px;
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 40px;
        line-height: 46px;
    }

    .hero-description {
        font-size: 18px;
        line-height: 28px;
    }

    .step-card,
    .step-card-primary {
        padding: 50px 30px;
        min-height: 400px;
        padding-left: 8%;
        padding-right: 8%;
    }

    .image-box-wrapper {
        max-width: 85%;
    }

    .service-card {
        padding: 16px 20px;
    }

    .service-title {
        font-size: 17px;
    }

    .review-text {
        font-size: 22px;
        line-height: 32px;
        padding: 0 30px;
    }

    .call-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 650px;
        padding: 150px 0 100px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 54px;
    }

    .step-card,
    .step-card-primary {
        padding: 60px 40px;
        min-height: 420px;
    }

    .why-cbh-section .row,
    .package-section .row {
        flex-direction: column-reverse;
    }

    .why-cbh-section .col-lg-6:first-child,
    .package-section .col-lg-6:first-child {
        text-align: center;
        margin-bottom: 30px;
    }

    .section-title-left {
        text-align: center;
    }

    .image-box-wrapper {
        max-width: 70%;
    }

    .call-section {
        padding-left: 2rem;
        padding-right: 2rem;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .call-section {
        padding-left: 0;
        padding-right: 0;
    }

    .section-title-left {
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    .nav-link,
    .accordion-button,
    .footer-links a,
    .help-links a,
    .primary-link,
    .secondary-link {
        min-height: 10px;
        display: inline-flex;
        justify-content: left;
        padding: 0px;
        transition: all 0.2s ease;
    }

    .nav-link:active,
    .accordion-button:active,
    .btn:active {
        transform: scale(0.98);
    }

    .btn,
    .accordion-button,
    .carousel-indicators button {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
    }

    .carousel-indicators button {
        width: 18px;
        height: 18px;
        margin: 0 8px;
    }

    section + section {
        margin-top: 0;
    }

    .navbar {
        z-index: 1050;
    }

    .hero-section {
        z-index: 1;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .btn:focus,
    .nav-link:focus,
    .accordion-button:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

.terms-box {
  max-width: 600px;
  background-color: #79288C08;
  border-radius: 13px;
  padding: 15px 20px;
}

/* link style */
.terms-link {
  color: #79288C;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  line-height: 21.85px;
}

/* hidden by default (collapsed) */
.terms-box {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

/* expand when hovering link OR the box itself */
.terms-wrapper:hover .terms-box {
  max-height: 1550px; 
  opacity: 1;
  margin-top: 10px;
  margin-bottom: 5rem;
  width: 600px;
}

.terms-heading{
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.terms-description{
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 15px;
}

.terms-heading-primary{
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--primary-color);
}

.terms-box table {
  width: 82%;
  border-collapse: collapse;
  table-layout: fixed; 
  background-color: #79288C0D;
  /* border: 1px solid #79288C33;  */
  border-radius: 8px;
  overflow: hidden; 
}

/* table header */
.terms-box th {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 15px;
  background-color: #79288C0D;
  border-bottom: 1px solid #79288C33;
  border-right: none;
  border-left: none;
  padding: 3px 12px;
  text-align: left;
}

/* table body cells */
.terms-box td {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 15px;
  padding: 3px 12px;
  border: none;
  background-color: #79288C0D;
  border-bottom: none;
}

.btn-white-custom {
    font-family: 'Playfair Display', serif;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid white;
    padding: 12px 24px;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 215px;      
    display: flex;           
    align-items: center;
    justify-content: center;  
    gap: 8px;                  
    margin: 0 auto;           
}
/* Hover effect for Step 1 & Step 3 */
.step-card:hover {
    background-color: var(--primary-color);
    color: white;
    border-radius: 54px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

/* Rotated background box like Step 2 */
.step-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-bg);
    border-radius: 54px;
    transform: rotate(352deg);
    z-index: -1;
}

/* Step title & text color */
.step-card:hover .step-title,
.step-card:hover .step-text {
    color: white;
}

.step-card:hover .step-text a {
    color: var(--primary-color);
}

.step-card:hover .step-bottom-icon {
    display: none; 
}

.step-card:hover .btn-white-custom {
    display: inline-flex;
    margin-top: auto;
}

.step-card.step-1:hover .step-icon img {
    content: url('images/icons/step-1_white.png');
}

.step-card.step-2:hover .step-icon img {
    content: url('images/icons/step-2.png');
}

.step-card.step-3:hover .step-icon img {
    content: url('images/icons/step-3_white.png');
}

.step-card,
.step-card .step-title,
.step-card .step-text,
.step-card .step-icon img,
.step-card .btn-white-custom {
    transition: all 0.3s ease;
}

.home-care-sections .text-description {
    width: 667px;
    padding-right: 2rem;
}

.contact-form-container {
    background: linear-gradient(180deg, #F5F2FD 2.4%, rgba(245, 242, 253, 0) 60.63%);
    max-width: 610px;
    padding: 40px;
    border-radius: 20px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    border: 1px solid #00000033;
    border-radius: 40px;
    padding: 15px 25px;
    font-size: 16px;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(121, 40, 140, 0.25);
}

.form-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.radio-option label {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--dark-text);
    margin: 0;
    cursor: pointer;
}

.btn-submit {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 40px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.btn-submit:hover {
    background-color: #5f1f6b;
    color: white;
}

.btn-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.form-message {
    background-color: #79288C0D;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.form-message.success {
    border-left: 4px solid #28a745;
}

.form-message.error {
    border-left: 4px solid #dc3545;
}

.form-message p {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

.success-text {
    color: #28a745;
}

.error-text {
    color: #dc3545;
}

.disclaimer {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #303536B2;
    text-align: left;
    line-height: 1.5;
    margin-top: 20px;
}

.disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* Contact section styling */
.contact-section {
    padding: 22px 0;
}

.contact-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-description {
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero section for contact page */
.contact-hero {
    padding-top: 150px;
    padding-bottom: 0px;
    margin-top: 0rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-form-container {
        max-width: 100%;
        padding: 30px 12px;
        margin: 0 0px;
    }
    
    .contact-hero {
        padding-top: 0px;
        padding-bottom: 40px;
        margin-top: 8rem !important;
    }
    
    .contact-section {
        padding: 0px 0;
    }

    .step-card.step-1:hover .step-icon img {
    content: url('images/icons/step-1.png');
}

    .step-card.step-2:hover .step-icon img {
        content: url('images/icons/step-2_dark.png');
    }

    .step-card.step-3:hover .step-icon img {
        content: url('images/icons/step-3.png');
    }
}

.footer-logo{
    width: 75%;
}

@media (max-width: 991.98px) {

    .container {
        padding-left: 35px !important;
        padding-right: 35px !important;
    }
    
    /* 1. Home Care Section Mobile Updates */
    .home-care-section .section-title {
        text-align: left !important;
        font-size: 36px !important;
        line-height: 42px !important;
        width: 214px;
    }
    
    .home-care-section .section-description {
        text-align: left !important;
        font-size: 20px !important;
        line-height: 30px !important;
        padding: 0 !important;
    }
    
    /* Steps Row - New Layout */
    .home-care-section .step-card,
    .home-care-section .step-card-primary {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0px 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: left !important;
        min-height: auto !important;
        margin-bottom: 0px !important;
    }
    
    .home-care-section .step-card::before,
    .home-care-section .step-card-primary::before {
        display: none !important;
    }
    
    .home-care-section .step-icon {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        margin-right: 20px;
        margin-bottom: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .home-care-section .step-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .home-care-section .step-title {
        color: #303536 !important;
        margin-bottom: 2px !important;
        font-size: 24px !important;
    }
    
    .home-care-section .step-text {
        color: var(--dark-text) !important;
        margin-bottom: 0 !important;
        font-size: 15px !important;
        line-height: 26px !important;
    }

    .terms-wrapper:hover .terms-box {
        max-height: 1550px;
        opacity: 1;
        margin-top: 10px;
        margin-bottom: 5rem;
        width: 360px;
    }
    
    .home-care-section .btn-white-custom,
    .home-care-section .step-bottom-icon {
        display: none !important;
    }
    
    /* 2. Why CBH Section Mobile Updates */
    .why-cbh-section .image-box-wrapper {
        width: 75% !important;
        max-width: 75% !important;
        margin: 0 auto 40px auto !important;
    }
    
    .why-cbh-section .section-title-left {
        text-align: left !important;
        font-size: 36px !important;
        line-height: 42px !important;
    }
    
    .why-cbh-section .text-description {
        text-align: left !important;
        font-size: 20px !important;
        line-height: 30px !important;
    }
    
    .why-cbh-section .btn-primary-custom {
        width: 240px !important;
        border-radius: 100px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    section#cbh-services-section {
        margin-top: 0 !important;
    }

    section#home-care-section {
        margin-top: 4rem;
    }

    section.why-cbh-section.mt-top {
        margin-top: 0 !important;
    }

    section#package-section {
        margin-top: 0 !important;
    }

    section#faq-section {
        margin-top: 0 !important;
    }
    
    /* 3. CBH Services Section Mobile Updates */
    .cbh-services-section .heading-primary {
        text-align: left !important;
        font-size: 36px !important;
        line-height: 42px !important;
        margin-bottom: 0 !important;
    }
    
    .cbh-services-section .service-card {
        margin-bottom: 8px !important;
    }
    
    /* 4. Home Care Sections (Funding) Mobile Updates */
    .home-care-sections .row {
        flex-direction: column-reverse !important;
    }
    
    .home-care-sections .image-box-wrapper {
        width: 75% !important;
        max-width: 75% !important;
        margin: 0 auto 40px auto !important;
    }
    
    .home-care-sections .section-title-left {
        text-align: left !important;
        font-size: 36px !important;
        line-height: 42px !important;
    }
    
    .home-care-sections .text-description {
        text-align: left !important;
        font-size: 20px !important;
        line-height: 30px !important;
        padding-right: 0 !important;
    }
    
    .home-care-sections .btn-primary-custom {
        width: 240px !important;
        border-radius: 100px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* 5. Call Section Mobile Updates */
    .why-cbh-section .call-section .image-box-wrapper {
        width: 75% !important;
        max-width: 75% !important;
        margin: 0 auto 40px auto !important;
    }
    
    .call-section .section-title-left {
        text-align: left !important;
        font-size: 36px !important;
        line-height: 42px !important;
    }
    
    .call-section .text-description {
        text-align: left !important;
        font-size: 20px !important;
        line-height: 30px !important;
    }
    
    .call-section .btn-primary-custom {
        width: 240px !important;
        border-radius: 100px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* 6. Package Section Mobile Updates */
    .package-section .section-title-left {
        text-align: left !important;
        font-size: 36px !important;
        line-height: 42px !important;
        width: 337px;
    }
    
    .package-section .text-description {
        text-align: left !important;
        font-size: 20px !important;
        line-height: 30px !important;
    }
    
    .package-section .image-box-wrapper {
        width: 90% !important;
        max-width: 75% !important;
        margin: 0 auto !important;
    }
    
    /* 7. FAQ Section Mobile Updates */
    .faq-section .heading-primary {
        text-align: left !important;
        font-size: 36px !important;
        line-height: 42px !important;
    }
    
    .faq-section .accordion-button {
        padding-right: 80px !important;
    }
    
    .faq-section .accordion-body {
        padding-right: 60px !important;
    }
    
    .faq-section .btn-primary-custom {
        width: 240px !important;
        border-radius: 100px !important;
        margin: 0 auto !important;
        display: block !important;
        margin-top: 3rem !important;
    }
    
    /* 8. Help Section Mobile Updates */
    .help-section .help-links .d-flex {
        gap: 0px !important;
    }
    
    .help-section .help-links a {
        text-decoration: underline !important;
        margin-bottom: 0.8rem;
    }
    
    .help-section .btn-primary-custom {
        width: 240px !important;
        border-radius: 100px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* 9. Footer Mobile Updates */
    .footer-section {
        text-align: left !important;
    }
    
    .footer-section .col-lg-3 {
        text-align: left !important;
    }
    
    .footer-bottom {
        text-align: left !important;
    }
    
    .footer-bottom .container {
        align-items: flex-start !important;
    }
    
    .footer-bottom ul {
        justify-content: flex-start !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-top: 15px !important;
    }

    .footer-logo {
        width: 45%;
    }
    
    /* 10. Navigation Mobile Updates */
    .navbar-toggler {
        order: -1 !important;
        margin-right: 15px !important;
        margin-left: 0 !important;
    }
    
    .navbar-brand {
        order: 0 !important;
        margin: 0 !important;
        margin-right: auto !important;
    }

    button.navbar-toggler {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Show circular call icon in navbar */
    .navbar::after {
        content: "" !important;
        background-image: url(images/icons/call-mobile.png) !important;
        background-size: 20px 20px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-color: transparent;
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        cursor: pointer !important;
        border: #79288C0D 1px solid;
    }
    
    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background-color: white !important;
        z-index: 9999 !important;
        padding: 20px !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
        transition: left 0.3s ease !important;
    }
    
    .navbar-collapse.show {
        left: 0 !important;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-top: 60px !important;
    }
    
    .navbar-nav .nav-item {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 15px 0 !important;
        border-bottom: 1px solid #eee !important;
        width: 100% !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
    
    /* Close button for mobile menu */
    .navbar-collapse .close-menu {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        font-size: 30px !important;
        cursor: pointer !important;
        color: var(--dark-text) !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Overlay for mobile menu */
    .navbar-collapse.show::after {
        content: "" !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: calc(100vw - 280px) !important;
        height: 100vh !important;
        background-color: rgba(0,0,0,0.5) !important;
        z-index: -1 !important;
    }
}

.close-menu {
    display: none;
}

/* Show close button only on mobile */
@media (max-width: 991.98px) {
    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
        color: var(--dark-text);
        background: none;
        border: none;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }
    .hero-section .btn-primary-custom {
        display: none !important;
    }
}

.hero-section .hero-content {
        text-align: left !important;
        padding: 0 !important;
    }
    
    .hero-section .hero-title {
        text-align: left !important;
    }
    
    .hero-section .hero-description {
        text-align: left !important;
    }
    
    /* Add button below hero section */
    .hero-section::after {
        content: "Free Consultation" !important;
        position: absolute !important;
        bottom: -80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background-color: var(--primary-color) !important;
        color: white !important;
        padding: 16px 32px !important;
        font-weight: 400 !important;
        font-size: 18px !important;
        border-radius: 100px !important;
        font-family: 'Playfair Display', serif !important;
        text-decoration: none !important;
        width: 240px !important;
        text-align: center !important;
        z-index: 10 !important;
        cursor: pointer !important;
        border: none !important;
        display: inline-block !important;
    }

.package-section .image-box-wrapper {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 4;
}

.package-section .row {
    align-items: flex-start !important;
}

.terms-box {
    position: relative;
    z-index: 5;
}

/* Ensure the image container maintains proper dimensions */
.package-section .col-lg-6:nth-child(2) {
    position: relative;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .package-section .image-box-wrapper {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
    .hero-description {
        font-family: 'Roboto', sans-serif;
        font-weight: 400;
        font-size: 17px;
        line-height: 24px;
        width: 353px;
    }
    .hero-mobile-button {
        display: inherit;
    }
}

/* Fixed position image styles */
.fixed-right-image {
    position: fixed;
    right: 30px;
    bottom: 20px;
    z-index: 1000;
    width: 170px;
    transition: transform 0.3s ease;
}

.fixed-right-image:hover {
    transform: scale(1.05);
}

.fixed-right-image img {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .fixed-right-image {
        right: 20px;
        bottom: 20px;
        width: 140px;
    }
}

@media (max-width: 768px) {
    .fixed-right-image {
        right: 15px;
        bottom: 15px;
        width: 120px;
    }
}

@media (max-width: 576px) {
    .fixed-right-image {
        right: 10px;
        bottom: 10px;
        width: 100px;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        z-index: 1;
        background: url(images/hero-bg_3.png) right 70% bottom 86% / 200% no-repeat;
        height: 567px;
    }
}

/* Fix terms heading layout */
.terms-heading {
  display: flex;
  align-items: baseline;
  margin: 12px 0 8px 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.terms-heading-label {
  min-width: 130px;
  flex-shrink: 0;
}

.terms-description {
  display: inline;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 15px;
  margin: 0;
  padding-left: 5px;
}

/* For the specific structure you provided */
.terms-heading > .terms-description {
  margin-left: 0;
  flex-grow: 1;
}

@media (max-width: 991.98px) {
    .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(181deg, rgb(0 0 0 / 50%) -0.2%, rgb(0 0 0 / 17%) 64.95%);

}

    .hero-section {
        align-items: flex-start !important;
        padding-top: 120px;
    }
    
    
    .hero-content {
        text-align: left;
        padding-top: 20px;
    }
    
    .hero-title {
        text-align: left;
        margin-bottom: 1rem;
        width: 300px;
    }
    
    .hero-description {
        text-align: left;
        margin-bottom: 2rem;
    }
    
    .btn-primary-custom {
        align-self: flex-start;
    }
}

.funding-feature.expandable {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex; 
  align-items: flex-start;
}

.funding-feature.expandable .funding-text {
  position: relative;
}

.funding-feature.expandable .expand-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.funding-feature.expandable:hover .expand-content {
  max-height: 730px;
  opacity: 1;
  margin-top: 10px;
}

.service-icon {
  flex-shrink: 0; /* Prevent icon from shrinking */
  position: sticky;
  top: 0; /* Keep icon at top during expansion */
  align-self: flex-start; /* Keep aligned to top */
}

/* Fix for home-care-sections image positioning */
.home-care-sections .image-box-wrapper {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 4;
}

.home-care-sections .row {
    align-items: flex-start !important;
}

/* Ensure the image container maintains proper dimensions */
.home-care-sections .col-lg-6:nth-child(2) {
    position: relative;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .home-care-sections .image-box-wrapper {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
    .home-care-sections .text-description {
        width: auto;
        padding-right: 2rem;
    }
}
.radio-group.d-flex {
    flex-wrap: nowrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 767.98px) {
    .radio-group.d-flex {
        flex-direction: column;
        gap: 12px !important;
    }
    
    .radio-option {
        margin-bottom: 8px;
    }
}

@media (max-width: 991.98px) {
    .package-section .row {
        flex-direction: column-reverse !important;
    }
}

/* Fix rotated boxes visibility on mobile */
@media (max-width: 991.98px) {
    /* Ensure rotated boxes are visible on mobile */
    .rotated-box {
        display: block !important;
        position: absolute;
        top: 0px;
        right: 0px; /* Changed from 15px to 0px for better mobile positioning */
        width: 90% !important; /* Reduced from 95% for better proportion */
        height: 90% !important;
        background-color: var(--light-bg);
        border-radius: 40px !important; /* Reduced from 54px for mobile */
        transform: rotate(353deg);
        z-index: 1;
    }

    .color-box {
        display: block !important;
        position: absolute;
        top: 0px;
        right: 0px;
        width: 90% !important;
        height: 90% !important;
        background-color: var(--primary-color);
        border-radius: 40px !important;
        z-index: 2;
    }

    /* Fix image box wrapper positioning */
    .image-box-wrapper {
        position: relative !important;
        overflow: visible !important;
        margin: 0 auto 40px auto !important;
        padding: 20px !important; /* Add padding to accommodate rotated box */
    }

    .image-box {
        position: relative;
        z-index: 3 !important;
        border-radius: 20px;
        max-width: 100%;
        height: auto;
    }

    /* Package section specific fixes */
    .package-section .image-box-wrapper {
        max-width: 85% !important;
        margin: 2rem auto !important;
        padding: 30px 20px !important;
    }

    .package-section .package-image-box {
        width: 120% !important;
        max-width: 120% !important;
        transform: translate(0px, -20px) !important; /* Better positioning for mobile */
        position: relative;
        z-index: 3;
        border-radius: 20px;
        height: auto;
    }

    .package-section .rotated-box {
        width: 85% !important;
        height: 85% !important;
        right: 5% !important;
        top: 8% !important;
    }

    .package-section .color-box {
        width: 85% !important;
        height: 85% !important;
        right: 5% !important;
        top: 5% !important;
    }

    /* Why CBH Section */
    .why-cbh-section .image-box-wrapper {
        width: 95% !important;
        max-width: 95% !important;
        padding: 25px !important;
    }

    .why-cbh-section .rotated-box {
        width: 88% !important;
        height: 88% !important;
        right: 5% !important;
        top: 8% !important;
    }

    /* Home Care Sections (Funding) */
    .home-care-sections .image-box-wrapper {
        width: 95% !important;
        max-width: 95% !important;
        padding: 25px !important;
    }

    .home-care-sections .rotated-box {
        width: 88% !important;
        height: 88% !important;
        right: 5% !important;
        top: 8% !important;
    }

    /* Call Section */
    .call-section .image-box-wrapper {
        width: 95% !important;
        max-width: 95% !important;
        padding: 25px !important;
    }

    .call-section .rotated-box {
        width: 88% !important;
        height: 88% !important;
        right: 5% !important;
        top: 8% !important;
    }
}

/* Additional fixes for smaller screens */
@media (max-width: 575.98px) {
    .rotated-box {
        border-radius: 30px !important;
        width: 85% !important;
        height: 85% !important;
    }

    .hero-section {
        z-index: 1;
        background: url(images/hero-bg_3.png) right 55% bottom 102% / 345% no-repeat;
        height: 567px;
    }

    .color-box {
        border-radius: 30px !important;
        width: 85% !important;
        height: 85% !important;
    }

    .image-box-wrapper {
        padding: 15px !important;
    }

    /* Package section for very small screens */
    .package-section .image-box-wrapper {
        max-width: 90% !important;
        padding: 20px 15px !important;
    }

    .package-section .package-image-box {
                transform: translate(0px, 10px) !important;
    }

    .package-section .rotated-box,
    .package-section .color-box {
        width: 80% !important;
        height: 80% !important;
        right: 8% !important;
        top: 8% !important;
        border-radius: 25px !important;
    }
}

@media (max-width: 991.98px) {
    .footer-bottom ul {
        display: none !important;
    }
    
}

/* Mobile-only footer menu */
.footer-mobile-menu {
    display: none;
    background-color: #f8f9fa;
    padding: 0px 0;
    border-top: 1px solid #e9ecef;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #e9ecef;
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-list li a {
    display: block;
    padding: 15px 0;
    color: #303536;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.mobile-menu-list li a:hover {
    color: var(--primary-color);
}

/* Show only on mobile */
@media (max-width: 991.98px) {
    .footer-mobile-menu {
        display: block;
    }
}

/* Hide completely on desktop and tablet */
@media (min-width: 992px) {
    .footer-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .contact-section .row {
        flex-direction: column-reverse !important;
    }
}

@media (max-width: 991.98px) {
    .why-cbh-section .image-box {
        content: url('images/why-cbh_mobile.png') !important;
        position: relative;
        z-index: 2;
        border-radius: 20px;
        max-width: 100%;
        height: auto;
    }

    .home-care-sections .image-box {
        content: url('images/funding-cost_mobile.png') !important;
        position: relative;
        z-index: 2;
        border-radius: 20px;
        max-width: 100%;
        height: auto;
    }

    .call-section .image-box {
        content: url('images/call-section_mobile.png') !important;
        position: relative;
        z-index: 2;
        border-radius: 20px;
        max-width: 100%;
        height: auto;
    }

    .contact-section .image-box {
        content: url('images/funding-cost_mobile.png') !important;
        position: relative;
        z-index: 2;
        border-radius: 20px;
        max-width: 100%;
        height: auto;
    }

    .package-section .image-box {
        content: url('images/package_mobile.png') !important;
        position: relative;
        z-index: 2;
        border-radius: 20px;
        max-width: 100%;
        height: auto;
    }
}
@media (max-width: 575.98px) {
    .step-1 .step-icon img {
        max-width: 50px;
        height: auto;
    }
}

#app.kNWyqX {
    max-width: 100%;
    transition: 400ms;
    color: rgb(31, 31, 31);
    background-color: transparent;
    border-color: purple;
    padding: 0px;
    border-radius: 20px;
}

/* Base phone button styles (shared between both versions) */
.btn-phone {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 9px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-family: 'Poltawski Nowy', serif;
    line-height: 16.39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
} 

/* Desktop phone button */
.btn-phone-desktop {
    padding: 12px 22px;
    font-size: 14px;
}

/* Mobile phone button - circular icon */
.btn-phone-mobile {
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 35%;
    transform: translateY(-50%);
    z-index: 1000;
}

.btn-phone-mobile img {
    width: 20px;
    height: 20px;
    margin: 0 !important;
}

/* Desktop - show desktop button, hide mobile button */
@media (min-width: 992px) {
    .btn-phone-desktop {
        display: inline-flex;
    }
    
    .btn-phone-mobile {
        display: none !important;
    }
}

/* Mobile and Tablet - hide desktop button, show mobile button */
@media (max-width: 991.98px) {
    .btn-phone-desktop {
        display: none !important;
    }
    
    .btn-phone-mobile {
        display: inline-flex !important;
    }
    
    /* Remove the CSS ::after pseudo-element since we now have a real button */
    .navbar::after {
        display: none !important;
    }
    
    /* Adjust navbar layout for mobile button */
    .navbar .container {
        position: relative;
    }
    
    /* Make sure mobile button is clickable */
    .btn-phone-mobile {
        cursor: pointer;
        pointer-events: auto;
        z-index: 1001;
    }
}

/* Extra small mobile screens */
@media (max-width: 575.98px) {
    .btn-phone-mobile {
        width: 40px;
        height: 40px;
        right: 10px;
        background: #79288C0D;
    }
    
    .btn-phone-mobile img {
        width: 18px;
        height: 18px;
    }
}

/* Ensure mobile button works on touch devices */
@media (pointer: coarse) {
    .btn-phone-mobile {
        min-height: 44px;
        min-width: 44px;
    }
}
@media (max-width: 400px) {
.hero-description {
        font-family: 'Roboto', sans-serif;
        font-weight: 400;
        font-size: 17px;
        line-height: 24px;
        width: 320px;
        
    }
}