/**
 * Overlay Two Column Section Styles
 * 
 * @package Ascend Health
 */

/* Overlay Two Column Section */
.ascend-overlay-two-column-section {
    position: relative;
    z-index: 10;
    padding: 40px 0;
}

/* Container */
.overlay-two-column-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    padding: 0px;
    margin: 0 auto;
}

/* Image styles */
.image-content-wrapper {
    position: relative;
    width: 100%;
}

.image-content-wrapper.image-position-left {
    float: left;
}

.image-content-wrapper.image-position-right {
    float: right;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

/* Content overlay */
.content-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 2;
}

/* Overlay height variations */
.content-overlay.overlay-partial-height {
    top: 50%;
    transform: translateY(-50%);
    max-height: 90%;
    overflow-y: auto;
    padding: 40px 30px;
}

.content-overlay.overlay-full-height {
    top: 0;
    bottom: 0;
    padding: 40px 30px;
}

/* For the nature program style where content is centered but not full height */
.content-overlay.overlay-centered {
    display: flex;
    align-items: center;
    top: 0;
    bottom: 0;
    padding: 40px 30px;
    height: 100%;
}

/* Overlay position */
.content-overlay.overlay-left {
    left: 0;
}

.content-overlay.overlay-right {
    right: 0;
}

/* Clear the container after floating elements */
.overlay-two-column-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Content inner */
.content-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

/* Background colors */
.bg-copper {
    background-color: var(--Color-Palette-Copper);
}

.bg-dark-chocolate {
    background-color: var(--Color-Palette-Dark-Chocolate);
}

.bg-cream {
    background-color: var(--Color-Palette-Cream);
}

.bg-olive {
    background-color: var(--Color-Palette-Olive);
}

.bg-khaki {
    background-color: var(--Color-Palette-Khaki);
}

.bg-random-color {
    background-color: var(--Color-Palette-Random-Color);
}

.bg-random-color-two {
    background-color: var(--Color-Palette-Random-Color-Two);
}

/* Text colors */
.bg-white {
    color: var(--Color-Palette-White) !important;
}

.text-white {
    color: var(--Color-Palette-White) !important;
}
.text-black {
    color: var(--Color-Palette-Black) !important;
}
.text-copper {
    color: var(--Color-Palette-Copper) !important;
}
.text-dark-chocolate {
    color: var(--Color-Palette-Dark-Chocolate) !important;
}
.text-cream {
    color: var(--Color-Palette-Cream) !important;
}
.text-olive {
    color: var(--Color-Palette-Olive) !important;
}

/* Typography */
.content-subtitle {
    font-family: var(--body-font);
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.content-overlay .content-title {
    font-family: var(--heading-font);
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 10px;
}

.content-description {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
}

/* Features section */
.content-features {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Mobile content toggle */
.mobile-content-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    border-bottom: 1px solid currentColor;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.mobile-content-toggle.expanded {
    border-bottom: none;
    margin-bottom: 0;
}

.toggle-chevron {
    transition: transform 0.3s ease;
}

.mobile-content-toggle.expanded .toggle-chevron {
    transform: rotate(180deg);
}

.content-features-collapsible {
    display: block;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.7s ease-in-out;
}

.content-features-wrapper {
    position: relative;
}

.features-heading,
.content-features h3 {
    font-family: var(--heading-font);
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.84px;
    color: inherit !important;
}

/* Footer text */
.content-footer-text {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
}

/* List styles */
.content-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-features ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-family: var(--body-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.content-features .accordion-header .accordion-title:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 0px;
    background-color: currentColor;
    mask: url('../images/icon-check.svg') no-repeat center / contain;
    -webkit-mask: url('../images/icon-check.svg') no-repeat center / contain;
  }
.content-overlay .content-features ul li:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 5px;
    background-color: currentColor;
    mask: url('../images/icon-check.svg') no-repeat center / contain;
    -webkit-mask: url('../images/icon-check.svg') no-repeat center / contain;
  }
  
  /* Then just use color for variations: */
  .content-overlay.icon-copper li:before,
  .content-overlay.icon-copper .accordion-header .accordion-title:before {
    color: var(--Color-Palette-Copper);
  }
  .content-overlay.icon-dark-chocolate li:before,
  .content-overlay.icon-dark-chocolate .accordion-header .accordion-title:before {
    color: var(--Color-Palette-Dark-Chocolate);
  }
.content-overlay.icon-cream li:before,
  .content-overlay.icon-cream .accordion-header .accordion-title:before {
    color: var(--Color-Palette-Cream);
  }
  .content-overlay.icon-olive li:before,
  .content-overlay.icon-olive .accordion-header .accordion-title:before {
    color: var(--Color-Palette-Olive);
  }
/* Button styles */
.content-button-container {
    margin-top: 30px;
    display: flex;
    width: max-content;
    flex-direction: column;
    gap: 10px;
}

/* Base button styles */
.content-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.content-button:has(.button-icon) {
    padding: 12px 24px 12px 5px;
}
.text-white .content-features {
    color: var(--Color-Palette-White) !important;
}
.text-black .content-features {
    color: var(--Color-Palette-Black) !important;
}
.text-copper .content-features {
    color: var(--Color-Palette-Copper) !important;
}
.text-dark-chocolate .content-features {
    color: var(--Color-Palette-Dark-Chocolate) !important;
}
.text-cream .content-features {
    color: var(--Color-Palette-Cream) !important;
}
.text-olive .content-features {
    color: var(--Color-Palette-Olive) !important;
}

  /* Button color and hover for overlays */
  /*
  .content-button:hover {
    border: 1px solid var(--Color-Palette-White);
  }
  .content-overlay.bg-copper .content-button {
    background: var(--Color-Palette-White);
    color: var(--Color-Palette-Copper);
}
.content-overlay.bg-copper .content-button:hover {
    background: var(--Color-Palette-Copper);
    color: var(--Color-Palette-White);
}
.content-overlay.bg-dark-chocolate .content-button {
    background: var(--Color-Palette-White);
    color: var(--Color-Palette-Dark-Chocolate);
}
.content-overlay.bg-dark-chocolate .content-button:hover {
    background: var(--Color-Palette-Dark-Chocolate);
    color: var(--Color-Palette-White);
}
.content-overlay.bg-cream .content-button {
    background: var(--Color-Palette-Copper);
    color: var(--Color-Palette-White);
}
.content-overlay.bg-cream .content-button:hover {
    background: var(--Color-Palette-White);
    color: var(--Color-Palette-Copper);
}
.content-overlay.bg-olive .content-button {
    background: var(--Color-Palette-White);
    color: var(--Color-Palette-Olive);
}
.content-overlay.bg-olive .content-button:hover {
    background: var(--Color-Palette-Olive);
    color: var(--Color-Palette-White);
}
.content-overlay.bg-white .content-button {
    background: var(--Color-Palette-Copper);
    color: var(--Color-Palette-White);
}
.content-overlay.bg-white .content-button:hover {
    background: var(--Color-Palette-White);
    color: var(--Color-Palette-Copper);
}*/
/* Button icon */
.content-button .button-icon {
    margin-right: 10px;
    display: inline-flex;
}

/* Responsive styles */
@media (max-width: 991px) {
    .content-overlay .content-title {
        font-size: 32px;
    }
    .content-features{
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .content-overlay .content-features ul li:before {
        top: 0;
    }
    .content-overlay.overlay-partial-height,
    .content-overlay.overlay-full-height {
        top: auto;
        bottom: auto;
        max-height: none;
        margin-top: -60px;
    }
    
    .content-title {
        font-size: 30px;
    }
    .overlay-two-column-container {
        padding: 0 8px;
        flex-direction: column;
        display: flex;
    }
    .image-content-wrapper {
        float: none !important;
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: -1;
    }
    .main-image {
        width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
        order: 2;
        position: relative;
        z-index: 1;
    }
    .content-overlay {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        padding: 20px 12px 24px 12px !important;
        box-sizing: border-box;
        order: 1;
        z-index: 2;
    }
    
    .content-inner {
        padding: 0;
    }
    .content-title {
        font-size: 28px;
    }
    .content-subtitle {
        font-size: 14px;
    }
    .content-description,
    .content-features ul li,
    .content-footer-text {
        font-size: 14px;
    }
    .features-heading {
        font-size: 20px;
    }
    
    /* Show mobile toggle only on mobile */
    .mobile-content-toggle {
        display: flex;
    }
    
    /* Initially hide first paragraph on mobile */
    .content-features-collapsible {
        max-height: 0;
        margin-bottom: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.7s ease-in-out;
    }
    
    /* Show first paragraph when expanded */
    .content-features-wrapper.expanded .content-features-collapsible {
        max-height: 1000px;
        margin-bottom: 15px;
        opacity: 1;
        transition: all 0.7s ease-in-out;
    }
  
}

/* Mobile accordion styles */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.content-features-accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid rgba(111, 58, 32, 0.2);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
}

.accordion-title {
    font-weight: 600;
    flex: 1;
    padding-left: 30px;
    position: relative;
}

.accordion-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.accordion-header.active .accordion-icon {
    transform: rotate(0deg);
}

.accordion-content {
    display: none;
    padding: 0 0 15px 30px;
}

@media screen and (max-width: 921px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .accordion-content {
        margin-top: 5px;
    }
}
