/* ============================================================
   Home / Index - Care Nursing Agency
   Consistent section spacing and layout
   ============================================================ */

:root {
    --royal-blue: #002366;
    --royal-blue-light: #003d99;
    --royal-blue-dark: #001a4d;
    --royal-blue-accent: #4169E1;
    --white: #ffffff;
    --light-blue: #E6F2FF;
    --soft-blue: #B3D9FF;
    --section-padding: 5rem 0;
    --section-padding-lg: 6.25rem 0;
}

/* Wrapper for home page sections - consistent pull-up */
#home-page-sections {
    overflow: hidden;
}

#home-page-sections section {
    position: relative;
    width: 100%;
}

/* Hero slider: full viewport height so background image shows full screen */
#home-page-sections .main-slider,
#home-page-sections .main-slider .swiper-container,
#home-page-sections .main-slider .swiper,
#home-page-sections .main-slider .swiper-wrapper,
#home-page-sections .main-slider .swiper-slide {
    min-height: 100vh;
    height: 100vh;
}
#home-page-sections .main-slider .swiper-slide .image-layer {
    min-height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    opacity: 1 !important;
    z-index: 0;
}
/* Dark overlay so text is readable over any image */
#home-page-sections .main-slider .swiper-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 35, 102, 0.45);
    z-index: 1;
}
/* Content (text + button) above image and overlay, centered in slide */
#home-page-sections .main-slider .swiper-slide .hero-content-wrap {
    position: relative;
    z-index: 2;
}
/* Hero row: full height, content centered in middle of slide */
#home-page-sections .main-slider .swiper-slide .hero-row-center {
    min-height: 100vh;
    width: 100%;
}
#home-page-sections .main-slider .swiper-slide .hero-content-col {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
/* Button: never squash, centered, comfortable size */
#home-page-sections .main-slider .hero-cta-wrap {
    margin-top: 1.5rem;
    text-align: center;
}
#home-page-sections .main-slider .hero-cta-btn {
    display: inline-block;
    min-width: 12rem;
    padding: 0.875rem 2rem;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
}
/* Ensure text and button are visible on active slide (override theme animations) */
#home-page-sections .main-slider .swiper-slide-active .hero-tagline,
#home-page-sections .main-slider .swiper-slide-active .hero-title,
#home-page-sections .main-slider .swiper-slide-active .hero-desc,
#home-page-sections .main-slider .swiper-slide-active .hero-cta-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Row gutters fallback (Bootstrap 4 doesn't have g-4) */
#home-page-sections .row.g-4 > [class*="col-"],
#home-page-sections .row.g-3 > [class*="col-"] {
    margin-bottom: 1.5rem;
}

#home-page-sections .row.g-4 .row.g-3 > [class*="col-"] {
    margin-bottom: 0.75rem;
}

/* Hero: content centered; container full height for centering */
#home-page-sections .main-slider .swiper-slide .hero-content-wrap.container {
    padding-top: 0;
    padding-bottom: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

#home-page-sections .main-slider .hero-tagline {
    color: #E6F2FF;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#home-page-sections .main-slider .hero-title {
    margin-bottom: 1rem;
    line-height: 1.2;
}

#home-page-sections .main-slider .hero-desc {
    color: #E6F2FF;
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

@media (min-width: 992px) {
    #home-page-sections .main-slider .swiper-slide .container {
        padding-top: 10rem;
        padding-bottom: 11rem;
    }
}

/* Feature strip under hero - snug below hero, clear separation */
.home-hero-features {
    margin-top: 0;
    padding: 2.5rem 0;
    background: var(--white);
    box-shadow: 0 -4px 24px rgba(0, 35, 102, 0.08);
}

.home-hero-features .feature-two__box {
    padding: 1.5rem 1.25rem;
    text-align: center;
    min-height: 100%;
}

.home-hero-features .feature-two__box i {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Features section - Our Nursing Services */
#home-page-sections .feature-one {
    padding: var(--section-padding-lg);
    background: linear-gradient(180deg, var(--light-blue) 0%, #f0f7ff 100%);
}

#home-page-sections .feature-one .block-title {
    margin-bottom: 1.5rem;
}

#home-page-sections .feature-one .block-text {
    margin-bottom: 2rem;
    padding-right: 1rem;
}

#home-page-sections .feature-one .feature-one__box {
    padding: 2rem 1.5rem;
    height: 100%;
    border-radius: 12px;
    text-align: center;
}

#home-page-sections .feature-one .feature-one__box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Services section */
#home-page-sections .service-1-section {
    padding: var(--section-padding-lg);
    background: var(--white);
}

#home-page-sections .service-1-section .section_heading {
    margin-bottom: 3.5rem;
}

#home-page-sections .service-1-section .section_heading_title_big {
    line-height: 1.25;
}

#home-page-sections .service-1-section .service-2-block-wrap {
    border-radius: 12px;
    overflow: hidden;
}

#home-page-sections .service-1-section .service-2-block {
    padding: 2rem 1.75rem;
}

#home-page-sections .service-1-section .service-2-image {
    height: 260px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--soft-blue) 100%);
}

#home-page-sections .service-1-section .service-2-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home Our Services: 2x2 grid on larger screens, each card unique and consistent */
#home-page-sections .service-1-section .home-services-grid {
    display: flex;
    flex-wrap: wrap;
}

#home-page-sections .service-1-section .home-service-card {
    display: flex;
}

@media (min-width: 992px) {
    #home-page-sections .service-1-section .home-services-grid {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    #home-page-sections .service-1-section .home-service-card {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-bottom: 1.5rem;
    }
}

#home-page-sections .service-1-section .service-2-block-wrap {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 35, 102, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#home-page-sections .service-1-section .service-2-block-wrap:hover {
    box-shadow: 0 8px 24px rgba(0, 35, 102, 0.12);
    transform: translateY(-4px);
}

#home-page-sections .service-1-section .service-2-image {
    flex-shrink: 0;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--soft-blue) 100%);
}

#home-page-sections .service-1-section .service-2-image img,
#home-page-sections .service-1-section .service-2-image .service-2-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#home-page-sections .service-1-section .service-2-block {
    flex: 1 1 auto;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
}

#home-page-sections .service-1-section .service-2-title {
    color: var(--royal-blue) !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

#home-page-sections .service-1-section .service-2-text {
    color: #444 !important;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Rich Bootstrap content in service descriptions */
#home-page-sections .service-1-section .service-2-text--rich {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}
#home-page-sections .service-1-section .service-2-text--rich p {
    margin-bottom: 0.75rem;
}
#home-page-sections .service-1-section .service-2-text--rich p:last-child {
    margin-bottom: 0;
}
#home-page-sections .service-1-section .service-2-text--rich ul,
#home-page-sections .service-1-section .service-2-text--rich ol {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}
#home-page-sections .service-1-section .service-2-text--rich li {
    margin-bottom: 0.25rem;
}
#home-page-sections .service-1-section .service-2-text--rich a {
    color: var(--royal-blue);
    text-decoration: underline;
}
#home-page-sections .service-1-section .service-2-text--rich a:hover {
    color: var(--royal-blue);
    text-decoration: none;
}
#home-page-sections .service-1-section .service-2-text--rich strong {
    font-weight: 700;
}
#home-page-sections .service-1-section .service-2-text--rich .btn {
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}

/* How It Works */
#home-page-sections .trusted-company {
    padding: var(--section-padding-lg);
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-light) 100%);
}

#home-page-sections .trusted-company .trusted-company__bg {
    opacity: 0.06;
    background-image: none;
    background-color: var(--white);
}

#home-page-sections .trusted-company .trusted-company__content {
    padding-right: 1rem;
}

#home-page-sections .trusted-company .trusted-company__image > img {
    display: none;
}

#home-page-sections .trusted-company .trusted-company__image p {
    margin-left: 0;
    margin-top: 0;
}

#home-page-sections .trusted-company .trusted-company__box-wrap {
    margin-top: 0;
}

@media (max-width: 991px) {
    #home-page-sections .trusted-company .trusted-company__box-wrap {
        margin-top: 2.5rem;
    }
}

#home-page-sections .trusted-company .trusted-company__box-wrap::before {
    background-color: rgba(255, 255, 255, 0.12);
}

#home-page-sections .trusted-company .trusted-company__box {
    border-left: 4px solid var(--royal-blue-accent);
}

/* Call to Action */
#home-page-sections .call-to-action {
    padding: 4rem 0;
}

#home-page-sections .call-to-action .left-content h3 {
    margin-bottom: 0.5rem;
}

#home-page-sections .call-to-action .left-content p {
    margin-bottom: 0.5rem;
}

#home-page-sections .call-to-action .right-content .thm-btn {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    border-radius: 8px;
}

#home-page-sections .call-to-action .left-content p.mb-0 {
    font-weight: 400;
}

@media (max-width: 991px) {
    #home-page-sections .call-to-action {
        padding: 3rem 1rem;
        text-align: center;
    }

    #home-page-sections .call-to-action .left-content h3 {
        font-size: 1.75rem;
    }
}

/* Responsive section padding */
@media (max-width: 991px) {
    #home-page-sections .feature-one,
    #home-page-sections .service-1-section,
    #home-page-sections .trusted-company {
        padding: 3.5rem 0;
    }
}

@media (max-width: 768px) {
    #home-page-sections .main-slider .swiper-slide .container {
        padding-top: 6rem;
        padding-bottom: 7rem;
    }

    .home-hero-features {
        padding: 2rem 0;
    }

    #section-cta .left-content h3 {
        font-size: 1.5rem;
    }
}
