/**
 * Text Section Styles
 * 
 * @package Ascend Health
 */

/* Text Section */
.ascend-text-section {
    position: relative;
    z-index: 10;
    height: var(--section-height);
    display: flex;
    align-items: center;
}

/* Padding variations */
.ascend-text-section.padding-default {
    padding: 40px 0;
}

.ascend-text-section.padding-small {
    padding: 20px 0;
}

.ascend-text-section.padding-medium {
    padding: 60px 0;
}

.ascend-text-section.padding-large {
    padding: 80px 0;
}

.ascend-text-section.padding-none {
    padding: 0;
}

/* Container */
.text-section-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1600px;
}

/* Alignment */
.text-section-container.text-left {
    text-align: left;
}

.text-section-container.text-center {
    text-align: center;
}

.text-section-container.text-right {
    text-align: right;
}

/* Typography */
.text-section-subtitle {
    margin-bottom: 10px;
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.48px;
}

.text-section-title {
    margin-bottom: 20px;
    font-family: var(--heading-font);
    font-size: 42px;
    line-height: 1.2;
}

.text-section-content {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.32px;
}
.text-section-content a {
    color: inherit;
    text-decoration: none;
}
/* Color variations */
.color-default {
    /* Default colors are already set in the theme */
}

.color-copper {
    color: var(--Color-Palette-Copper);
}

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

.color-white {
    color: var(--Color-Palette-White);
}

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

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

/* Background color variations */
.bg-white {
    background-color: var(--Color-Palette-White);
}

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

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

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

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

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

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

/* Text color adjustments for dark backgrounds */
.bg-copper .text-section-subtitle,
.bg-copper .text-section-title,
.bg-copper .text-section-content,
.bg-dark-chocolate .text-section-subtitle,
.bg-dark-chocolate .text-section-title,
.bg-dark-chocolate .text-section-content,
.bg-olive .text-section-subtitle,
.bg-olive .text-section-title,
.bg-olive .text-section-content {
    color: var(--Color-Palette-White);
}

/* Preserve custom colors even on dark backgrounds */
.bg-copper .color-white,
.bg-dark-chocolate .color-white,
.bg-olive .color-white {
    color: var(--Color-Palette-White);
}

.bg-copper .color-cream,
.bg-dark-chocolate .color-cream,
.bg-olive .color-cream {
    color: var(--Color-Palette-Cream);
}

/* Button Styles */
.text-section-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.text-section-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    height: 46px;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.48px;
    line-height: 1;
}

.text-section-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.text-section-button.copper {
    background-color: var(--Color-Palette-Copper);
    color: var(--Color-Palette-White);
    border-color: var(--Color-Palette-Copper);
}
.text-section-button.copper:hover {
    background-color: var(--Color-Palette-White);
    color: var(--Color-Palette-Copper);
    border-color: var(--Color-Palette-Copper);
    border: 1px solid var(--Color-Palette-Copper);
}


.text-section-button.olive {
    background-color: var(--Color-Palette-Olive);
    color: var(--Color-Palette-White);
    border-color: var(--Color-Palette-Olive);
}

.text-section-button.olive:hover {
    background-color: var(--Color-Palette-Copper);
    border-color: var(--Color-Palette-Copper);
    color: var(--Color-Palette-White);
}

.text-section-button.white {
    background-color: var(--Color-Palette-White);
    color: var(--Color-Palette-Olive);
    border-color: var(--Color-Palette-White);
}

.text-section-button.white:hover {
    background-color: var(--Color-Palette-Olive);
    color: var(--Color-Palette-White);
    border-color: var(--Color-Palette-Olive);
}

.text-section-button.white-border {
    background-color: var(--Color-Palette-White);
    color: var(--Color-Palette-Copper);
    border-color: var(--Color-Palette-Copper);
}

.text-section-button.white-border:hover {
    background-color: var(--Color-Palette-Copper);
    color: var(--Color-Palette-White);
}

/* Button Icon Styles */
.text-section-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.text-section-button-icon svg {
    width: auto;
    height: 20px;
    transition: all 0.3s ease;
}

/* Icon color adjustments for different button styles */
.text-section-button.olive .text-section-button-icon svg path,
.text-section-button.olive .text-section-button-icon svg {
    fill: var(--Color-Palette-White);
    stroke: var(--Color-Palette-White);
}

.text-section-button.white .text-section-button-icon svg path,
.text-section-button.white .text-section-button-icon svg {
    fill: var(--Color-Palette-Olive);
    stroke: var(--Color-Palette-Olive);
}
.text-section-button.white:hover .text-section-button-icon svg path,
.text-section-button.white:hover .text-section-button-icon svg {
    fill: var(--Color-Palette-White);
    stroke: var(--Color-Palette-White);
}
.text-section-button.white-border .text-section-button-icon svg path,
.text-section-button.white-border .text-section-button-icon svg {
    fill: var(--Color-Palette-Copper);
    stroke: var(--Color-Palette-Copper);
}

.text-section-button.white-border:hover .text-section-button-icon svg path,
.text-section-button.white-border:hover .text-section-button-icon svg {
    fill: var(--Color-Palette-White);
    stroke: var(--Color-Palette-White);
}

.text-section-button.copper .text-section-button-icon svg path,
.text-section-button.copper .text-section-button-icon svg {
    fill: var(--Color-Palette-White);
    stroke: var(--Color-Palette-White);
}

.text-section-button.copper:hover .text-section-button-icon svg path,
.text-section-button.copper:hover .text-section-button-icon svg {
    fill: var(--Color-Palette-Copper);
    stroke: var(--Color-Palette-Copper);
}

.button-text {
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .text-section-title {
        font-size: 36px !important;
    }
}

@media (max-width: 920px) {
    
    .text-section-title {
        font-size: 32px !important;
    }
    
    .text-section-buttons {
        gap: 12px;
        margin-top: 20px;
        margin-bottom: 20px;
        flex-direction: column;
        justify-self: center;
        align-items: center;
        width: 100%;
    }
    
    .text-section-button {
        padding: 10px 20px;
        height: 42px;
        font-size: 14px;
        gap: 8px;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .text-section-button-icon svg {
        height: 18px;
    }
    
    .text-section-subtitle {
        font-size: 14px;
    }
}
