/* Header navigation offsets */
.acf-flexible-content,
.default-content.no-acf-content {
    margin-top: 11rem;
}

/* SLIDER STYLES */
.product-page-wrapper #heroMain {
    margin-top: 0;
}

.product-page-wrapper #heroMain .slide .text .subheading {
    font-size: 1.75rem;
    color: #009B7B;
}

/* CTA Button Styles */
.product-page-wrapper #heroMain .slide .cta,
.product-page-wrapper #heroMain .slide .cta-2 {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    border: none;
}

.product-page-wrapper #heroMain .slide .cta {
    margin-right: 0.75rem;
}

.product-page-wrapper #heroMain .slide .cta:last-child,
.product-page-wrapper #heroMain .slide .cta-2:last-child {
    margin-right: 0;
}

.product-page-wrapper #heroMain .slide .cta a,
.product-page-wrapper #heroMain .slide .cta-2 a {
    display: inline-block;
}

/* CTA Button (white with green border) */
.btn-secondary-outline,
.product-page-wrapper #heroMain .slide .cta a.btn--white,
.btn-success {
    background-color: #009B7B !important;
    border: 2px solid #009B7B !important;
    color: white !important;
    transition: all 0.3s ease;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    padding: 1.2rem 2rem;
    white-space: normal;
}

.product-page-wrapper #heroMain .slide .cta a.btn--white:hover,
.btn-secondary-outline:hover,
.btn-success:hover {
    background-color: white !important;
    border: 2px solid #009B7B !important;
    color: #009B7B !important;
    transform: translateY(-1px);
}

/* Secondary Button (white with green border) */
.btn-secondary-outline,
.product-page-wrapper #heroMain .slide .cta-2 a.btn--white {
    background-color: white !important;
    border: 2px solid #009B7B !important;
    color: #009B7B !important;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    padding: 1.2rem 2rem;
    white-space: normal;
}

.product-page-wrapper #heroMain .slide .cta-2 a.btn--white:hover,
.btn-secondary-outline:hover {
    background-color: #009B7B !important;
    border: 2px solid #009B7B !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Custom Slide Layout with Image */
.product-page-wrapper #heroMain .custom-slide-layout {
    min-height: 600px;
}

.product-page-wrapper #heroMain .custom-slide-layout .row {
    margin: 0 !important;
    height: 100%;
}

.product-page-wrapper #heroMain .custom-content-column {
    display: flex !important;
    align-items: center !important;
    padding: 3rem 5% !important;
}

.product-page-wrapper #heroMain .custom-content-wrapper {
    width: 100%;
}

/* Button container for custom slide */
.product-page-wrapper #heroMain .custom-slide-layout .cta-buttons {
    display: flex !important;
    gap: 0.75rem;
    margin-top: 2rem;
}

.product-page-wrapper #heroMain .custom-slide-layout .cta-buttons .cta,
.product-page-wrapper #heroMain .custom-slide-layout .cta-buttons .cta-2 {
    margin: 0 !important;
}

/* Custom slide image column */
.product-page-wrapper #heroMain .custom-image-column {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    min-height: 600px;
}

.product-page-wrapper #heroMain .custom-slide-image {
    width: auto !important;
    max-height: 600px !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    padding: 2rem;
}

/* Mobile - stack image below content */
@media (max-width: 991.98px) {
    .product-page-wrapper #heroMain .custom-image-column {
        min-height: 400px;
        order: 2 !important;
    }

    .product-page-wrapper #heroMain .custom-content-column {
        order: 1 !important;
        padding: 2rem 5% !important;
    }

    .product-page-wrapper #heroMain .custom-slide-layout {
        min-height: 800px; /* Increase for stacked content */
    }

    .product-page-wrapper #heroMain .custom-slide-layout .bkg-img {
        display: block !important;
        opacity: 1 !important;
    }
}

/* Custom slide typography */
.product-page-wrapper #heroMain .custom-slide-layout .cs-heading {
    font-family: "rift-soft", sans-serif !important;
    font-size: 8rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.product-page-wrapper #heroMain .custom-slide-layout .cs-heading span {
    color: #009B7B;
}

.product-page-wrapper #heroMain .custom-slide-layout .cs-text {
    font-size: 1.75rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #009B7B;
}

.product-page-wrapper #heroMain .custom-slide-layout .cs-subtitle {
    font-family: "rift-soft", sans-serif !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .product-page-wrapper #heroMain .custom-slide-layout .custom-slide-heading {
        font-size: 3rem;
    }

    .product-page-wrapper #heroMain .custom-slide-layout .custom-slide-text {
        font-size: 1.25rem;
    }

    .product-page-wrapper #heroMain .custom-slide-layout .custom-slide-subtitle {
        font-size: 1.2rem;
    }
}

/* Tiles Section Styles */
.tiles-section {
    background-color: #f8f9fa;
    padding: 10rem !important;
}

.tiles-section .display-4, .stack-section .display-3, .accordion-section .display-3, .text-image-section .display-4 {
    font-family: "rift-soft", sans-serif !important;
    font-size: 5rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.tiles-section .display-4 .highlight {
    color: #009B7B;
}

.tile-card {
    background-color: #d4edda;
    border: 1px solid #b8dacc;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    position: relative;
    padding:30px !important;
}

.tile-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.tile-card h3, .accordion-question-title {
    font-family: "rift-soft", sans-serif !important;
    font-size: 2.5rem;
    font-weight: bold;
}

.tile-icon img {
    max-height: 60px;
    width: auto;
}

.tile-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.tile-content p:last-child {
    margin-bottom: 0;
}


@media (max-width: 768px) {
    .tiles-section .display-4 {
        font-size: 2.2rem;
    }

    .tile-card {
        margin-bottom: 1rem;
        min-height: 250px;
    }

    .tile-card h3 {
        font-family: "rift-soft", sans-serif !important;
        font-size: 1.25rem;
    }

    .acf-flexible-content,
    .default-content.no-acf-content {
        margin-top: 8rem;
    }
}

/*------------STACK LAYOUT---------------*/
/* Stack Section Background Colors */
.stack-section.bg-blue {
    background-color: #00609C;
    position: relative;
    overflow: hidden;
}

.stack-section.bg-green {
    background-color: #28a745;
    position: relative;
    overflow: hidden;
}

.stack-section.bg-gray, .accordion-section.bg-gray {
    background-color: #F0F0F0;
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.background-decoration {
    position: absolute;
    bottom: -20%;
    left: -5%;
    z-index: 1;
    opacity: 0.2;
}

.decoration-svg {
    width: 400px;
    height: auto;
}

/* Ensure content is above background decoration */
.stack-section .container {
    position: relative;
    z-index: 2;
}

/* Highlight Text Styling */
.stack-section .highlight {
    font-family: "rift-soft", sans-serif !important;
    color: #DAFDB8;
}

/* Cards Stack Container */
.cards-stack {
    position: relative;
}

/* Card Container */
.card-container {
    position: relative;
    margin-bottom: 16px;
}

.card-container:last-child {
    margin-bottom: 0;
}

/* Individual Stack Card */
.stack-card {
    position: relative;
    margin-bottom: 1rem;
}

.stack-card:last-child {
    margin-bottom: 0;
}

/* Card Icon Image (inside the card) */
.card-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* CSS Circle on left border */
.card-container .card::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #ffd700;
    border-radius: 50%;
    border: 3px solid rgba(255, 229, 114, 0.8);
    z-index: 15;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Connector Line with Image */
.connector-line {
    position: absolute;
    left: 0px;
    bottom: -16px; /* Position in the 16px margin space */
    width: 100%;
    height: 16px; /* Fill the 16px margin space */
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.connector-svg {
    width: 60px;
    height: 140px; /* Increased height to span the gap better */
    transform: translateX(-50%);
    margin-top: -64px; /* Adjust vertical positioning */
}

/* Card Styling */
.card-container .card, .accordion-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0 !important; /* No rounded corners */
    border: 4px solid rgba(70, 198, 174, 0.4) !important; /* #46C6AE at 40% opacity */
    padding: 30px !important; /* 30px padding */
    position: relative;
    margin-left: 15px; /* Space for the CSS circle */
}

.card-container .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Card Content */
.card-container h3 {
    font-family: "rift-soft", sans-serif !important;
    font-size: 2.5rem;
}
.card-content {
    font-size: 1.75rem;
    line-height: 2rem;
}

/* Button Styling */
.stack-section .btn {
    background-color: white;
    border-color: white;
    color: black !important;
    transition: all 0.3s ease;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    padding: 1.2rem 2rem;
    white-space: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stack-section .btn:hover {
    background-color: #009B7B;
    border-color: #009B7B;
    color: white !important;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .stack-section .display-3 {
        font-size: 2.5rem;
    }

    .decoration-svg {
        width: 200px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon .icon-img {
        width: 30px;
        height: 30px;
    }

    .card-container {
        margin-bottom: 12px; /* Smaller gap on mobile */
    }

    .card-icon-img {
        width: 50px;
        height: 50px;
    }

    .card-container .card::before {
        width: 25px;
        height: 25px;
        left: -12px;
    }

    .card-container .card {
        margin-left: 12px;
    }

    .connector-line {
        bottom: -12px;
        height: 12px;
    }

    .connector-svg {
        width: 40px;
        height: 100px; /* Proportionally smaller on mobile */
        margin-top: -60px;
    }
}

@media (max-width: 575.98px) {
    .stack-section .display-3 {
        font-size: 2rem;
    }

    .decoration-svg {
        width: 150px;
    }

    .stack-card .card {
        padding: 1rem !important;
    }
}

/* Additional styling for different background colors */
.stack-section.bg-green .highlight {
    color: #fff3cd;
}

.stack-section.bg-gray .highlight {
    color: #fff;
}

/* Ensure text contrast on colored backgrounds */
.stack-section.bg-blue .text-white,
.stack-section.bg-green .text-white,
.stack-section.bg-gray .text-white {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* FAQ ACCORDION */

/* Accordion Section Styling */
.accordion-section {
    position: relative;
    overflow: hidden;
    background-image: url('/wp-content/uploads/2025/09/white_logo.svg');
    background-position: -10% 40%;
    background-repeat: no-repeat;
    background-size: 400px;
}

.eyebrow-text {
    margin-top: 4rem;
    font-size: 1.5rem !important;
    color: #009B7B !important;
}

/* Background Decoration */
.accordion-section .background-decoration {
    position: absolute;
    bottom: 10%;
    left: -5%;
    z-index: 0;
    opacity: 1;
}

.decoration-svg {
    width: 400px;
    height: auto;
}

/* Category Headers */
.accordion-category-title {
    margin-top: 6rem !important;
}

.category-header {
    margin-left: 15px !important;
}

/* Additional accordion-specific styling for question titles */
.accordion-question-title {
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    padding: 20px 0 !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    box-shadow: none !important;
    width: 100% !important;
    display: block !important;
}

.accordion-question-title:hover,
.accordion-question-title:focus {
    font-family: "rift-soft", sans-serif !important;
    color: #46C6AE !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-question-title:not(.collapsed) {
    color: #333 !important;
    background: transparent !important;
}

/* Additional accordion-specific styling for items */
.accordion-item {
    background: white !important;
    margin-bottom: 1rem !important;
    border: 1px solid rgba(70, 198, 174, 0.4) !important;
    border-radius: 0 !important;
}

.accordion-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.accordion-item:first-of-type {
    border-top: 1px solid rgba(70, 198, 174, 0.4) !important;
    border-radius: 0 !important;
}

.accordion-item:last-of-type {
    border-bottom: 1px solid rgba(70, 198, 174, 0.4) !important;
    border-radius: 0 !important;
}

.accordion-item:has(.accordion-button:not(.collapsed)) {
    border: 4px solid rgba(70, 198, 174, 0.4) !important;
}

/* Accordion Body */
.accordion-body {
    padding: 20px 0 10px 0 !important;
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    color: #555 !important;
}

.accordion-body p {
    margin-bottom: 2rem !important;
}

.accordion-body p:last-child {
    margin-bottom: 0 !important;
}

.accordion-body strong {
    color: #333 !important;
}

.accordion-body a {
    color: #46C6AE !important;
    text-decoration: none !important;
}

.accordion-body a:hover {
    text-decoration: underline !important;
}

/* Remove default Bootstrap accordion styling */
.accordion-button::after {
    content: '' !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23009B7B'%3e%3cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-size: 30px 30px !important;
    background-position: center !important;
    width: 30px !important;
    height: 30px !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    flex-shrink: 0 !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23009B7B'%3e%3cpath d='M19 13H5v-2h14v2z'/%3e%3c/svg%3e") !important;
}

.accordion-button {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .accordion-question-title {
        font-size: 1.8rem !important;
    }

    .accordion-category-title {
        font-size: 1.4rem !important;
    }

    .accordion-item {
        margin-left: 0 !important;
        padding: 20px !important;
    }
}

@media (max-width: 576px) {
    .accordion-question-title {
        font-size: 1.4rem !important;
    }
}

/*------------TEXT AND IMAGE SECTION---------------*/
/* Text and Image Section Specific Styles */
.text-image-section {
    background-color: white;
    padding: 0 !important;
}

.text-image-section .row {
    margin-left: 0;
    margin-right: 0;
}

/* Text Content Wrapper - adds padding back to text side */
.text-image-section .text-content-wrapper {
    padding: 3rem 15%;
    width: 100%;
}

.text-image-section .content-text {
    font-family: "rift-soft", sans-serif !important;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.text-image-section .content-text p {
    margin-bottom: 1rem;
}

.text-image-section .content-text p:last-child {
    margin-bottom: 0;
}

/* Buttons Container */
.text-image-section .buttons-container {
    align-items: center;
}

.text-image-section .buttons-container .btn {
    flex-shrink: 0;
}

/* Image Column Background - Full bleed */
.text-image-section .image-column-bg {
    background-color: rgba(218, 253, 184, 1);
    padding: 0 !important;
}

/* Image Container with logo positioned top right */
.text-image-section .image-container {
    position: relative;
    height: 100%;
    min-height: 500px;
    background-size: 700px auto;
    background-position: bottom -150% right -20%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0 !important;
}

.text-image-section .centered-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .text-image-section .text-content-wrapper {
        padding: 3rem 5%;
    }

    .text-image-section .buttons-container {
        flex-direction: column;
        align-items: stretch;
    }

    .text-image-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .text-image-section .btn:last-child {
        margin-bottom: 0;
    }

    .text-image-section .image-container {
        min-height: 400px;
        background-size: 200px auto;
    }
}

@media (max-width: 768px) {
    .text-image-section .text-content-wrapper {
        padding: 2rem 5%;
    }

    .text-image-section .display-4 {
        margin-bottom: 2rem;
    }

    .text-image-section .content-text {
        margin-bottom: 2rem;
    }

    .text-image-section .row {
        margin-bottom: 3rem;
    }

    .text-image-section .image-container {
        min-height: 350px;
    }
}

@media (max-width: 575.98px) {
    .text-image-section .btn {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
    }

    .text-image-section .image-container {
        background-size: 150px auto;
        padding: 3rem 1rem;
    }
}