/* Text Columns Component */
.text-columns {
    position: relative;
}

/* Background Variants */
.text-columns--white {
    background: #fff;
}

.text-columns--light {
    background: var(--secondary-color-700);
}

.text-columns--dark {
    background: var(--primary-color-100);
}

/* Container Variants */
.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1400px;
}

.container-fluid {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* Wrapper */
.text-columns__wrapper {
    display: grid;
    gap: 2rem;
}

.text-columns__wrapper--one {
    grid-template-columns: 1fr;
}

.text-columns__wrapper--two {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .text-columns__wrapper--two {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .text-columns__wrapper--two {
        gap: 4rem;
    }
}

/* Column */
.text-columns__column {
    position: relative;
}

/* Content Styling */
.text-columns__content {
    font-size: 1rem;
    line-height: 1.8;
}

.text-columns__content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--primary-color-100);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.text-columns__content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--primary-color-100);
    margin-bottom: 1rem;
    margin-top: 2rem;
    line-height: 1.4;
}

.text-columns__content h3:first-child {
    margin-top: 0;
}

.text-columns__content h4 {
    font-size: 1.125rem;
    color: var(--primary-color-100);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    line-height: 1.4;
}

.text-columns__content h4:first-child {
    margin-top: 0;
}

.text-columns__content p {
    color: var(--ternary-color-100);
    margin-bottom: 1rem;
}

.text-columns__content p:last-child {
    margin-bottom: 0;
}

.text-columns__content ul,
.text-columns__content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--ternary-color-100);
}

.text-columns__content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.text-columns__content a {
    color: var(--secondary-color-100);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.text-columns__content a:hover {
    border-bottom-color: var(--secondary-color-100);
}

.text-columns__content strong {
    color: var(--primary-color-100);
    font-weight: 600;
}

.text-columns__content blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--secondary-color-100);
    background: var(--secondary-color-700);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--primary-color-200);
}

.text-columns__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Dark Background Variant Styles */
.text-columns--dark .text-columns__content h2,
.text-columns--dark .text-columns__content h3,
.text-columns--dark .text-columns__content h4 {
    color: #fff;
}

.text-columns--dark .text-columns__content p,
.text-columns--dark .text-columns__content ul,
.text-columns--dark .text-columns__content ol,
.text-columns--dark .text-columns__content li {
    color: rgba(255, 255, 255, 0.8);
}

.text-columns--dark .text-columns__content strong {
    color: #fff;
}

.text-columns--dark .text-columns__content a {
    color: var(--secondary-color-100);
}

.text-columns--dark .text-columns__content blockquote {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--secondary-color-100);
    color: rgba(255, 255, 255, 0.9);
}

/* Divider between columns (optional) */
@media (min-width: 768px) {
    .text-columns__wrapper--two.text-columns__wrapper--divider {
        position: relative;
    }
    
    .text-columns__wrapper--two.text-columns__wrapper--divider::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 100%;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(64, 50, 38, 0.1) 20%,
            rgba(64, 50, 38, 0.1) 80%,
            transparent 100%
        );
    }
    
    .text-columns--dark .text-columns__wrapper--two.text-columns__wrapper--divider::before {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%
        );
    }
}

/* Drop Cap (First letter styling) */
.text-columns__content.text-columns__content--dropcap > p:first-of-type::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 1;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    color: var(--secondary-color-100);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-columns__content {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    
    .text-columns__content h3 {
        margin-top: 1.5rem;
    }
    
    .text-columns__content blockquote {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .text-columns__content a {
        transition: none;
    }
}

