/**
 * Text Content Section Styles
 * Aligned with post-content styles for consistency
 * @package TubaraoCente
 */

.text-content.text-center {
    text-align: center;
}

.text-content.text-left {
    text-align: left;
}

.text-content .section-title {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Content Text - Same styles as post-content for consistency
   ========================================================================== */

.text-content .content-text {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-light);
    line-height: 1.6;
    color: var(--color-dark-gray);
    font-size: 1.125rem;
}

/* Headings */
.text-content .content-text h2,
.text-content .content-text h3,
.text-content .content-text h4,
.text-content .content-text h5,
.text-content .content-text h6 {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    color: var(--color-black);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.text-content .content-text h2 { font-size: 2rem; }
.text-content .content-text h3 { font-size: 1.75rem; }
.text-content .content-text h4 { font-size: 1.5rem; }
.text-content .content-text h5 { font-size: 1.25rem; }
.text-content .content-text h6 { font-size: 1rem; }

/* Paragraphs */
.text-content .content-text p {
    margin-bottom: 1.5rem;
}

/* Links */
.text-content .content-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.text-content .content-text a:hover {
    color: var(--color-primary-dark);
}

/* Lists */
.text-content .content-text ul,
.text-content .content-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.text-content .content-text li {
    margin-bottom: 0.5rem;
}

/* Blockquote */
.text-content .content-text blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    padding-left: 2rem;
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-light-gray);
    font-style: italic;
    color: var(--color-dark-gray);
}

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

/* Images */
.text-content .content-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    margin: 1.5rem 0;
}

.text-content .content-text figure {
    margin: 2rem 0;
}

.text-content .content-text figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray);
    text-align: center;
}

/* Code */
.text-content .content-text pre,
.text-content .content-text code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
}

.text-content .content-text pre {
    padding: 1.5rem;
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.text-content .content-text code {
    padding: 0.2rem 0.4rem;
    background-color: var(--color-light-gray);
    color: var(--color-primary-dark);
    border-radius: 0.25rem;
}

.text-content .content-text pre code {
    padding: 0;
    background: none;
    color: inherit;
}

/* Tables */
.text-content .content-text table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.text-content .content-text th,
.text-content .content-text td {
    padding: 0.75rem;
    border: 1px solid rgba(155, 155, 155, 0.3);
    text-align: left;
}

.text-content .content-text th {
    background-color: var(--color-light-gray);
    font-weight: var(--font-weight-medium);
}

.text-content .content-text tr:hover {
    background-color: rgba(245, 245, 245, 0.5);
}

/* Strong/Bold */
.text-content .content-text strong {
    font-weight: var(--font-weight-medium);
    color: var(--color-black);
}

/* CTA Button area */
.text-content .text-content-cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.text-content.text-center .text-content-cta {
    justify-content: center;
}
