/**
 * =====================================================================
 * ESTILOS GENERALES Y FLECHAS 
 * =====================================================================
 */

.st-custom-arrow {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

a:hover .st-custom-arrow,
button:hover .st-custom-arrow,
.st-news-read-more:hover .st-custom-arrow,
.st-news-cta-button:hover .st-custom-arrow,
.st-card-arrow-btn:hover .st-custom-arrow {
    transform: none; 
}

.st-news-navigation a:first-child:hover .st-custom-arrow {
    transform: scaleX(-1);
}


/**
 * =====================================================================
 * ESTILOS SECCIÓN DE ÚLTIMAS NOTICIAS
 * =====================================================================
 */

.st-news-page-wrap,
.single-post .site-main,
.post-template-default .site-main {
    margin-top: 160px !important;
}

.st-news-container-box {
    max-width: var(--container);
    margin: 0px auto;
}

/* SECCIÓN HERO */
.st-news-hero-section {
    margin-bottom: 30px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid #e0e0e0;
}

.st-news-title-area {
    padding-left: 30px;
    border-left: 4px solid var(--color-primary);
}

.st-news-title-area h1 {
    font-family: var(--font-family);
    font-size: var(--font-h1);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.st-news-title-area p {
    font-family: var(--font-family);
    font-size: var(--font-body);
    font-weight: var(--weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* GRILLA PRINCIPAL */
.st-news-grid-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 160px;
}

@media (max-width: 992px) {
    .st-news-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* TARJETA PRINCIPAL DE NOTICIA */
.st-news-card-main {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.st-news-card-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(32, 178, 170, 0.08);
    border-color: #23928B;
}

.st-news-card-img-wrap {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.st-news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.st-news-card-img-wrap::after {
    content: 'Destacado';
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(8px);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: var(--font-badge-min);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.st-news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.st-news-meta-date {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.st-news-card-content h2 {
    font-family: var(--font-family);
    font-size: var(--font-h2);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 15px 0;
}

.st-news-card-content p {
    font-family: var(--font-family);
    font-size: var(--font-body);
    font-weight: 400;
    line-height: 24px;
    color: var(--color-text-light);
    margin: 0 0 20px 0;
}

.st-news-read-more {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* SIDEBAR */
.st-news-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.st-news-sidebar-widget {
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #EAEAEA;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.st-news-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.st-news-sidebar-widget h3 {
    font-family: var(--font-family);
    font-size: var(--font-h3);
    font-weight: 700;
    color: var(--color-text);
    margin-top: 20px;
    border-bottom: 2px solid var(--color-primary);
}

img.attachment-thumbnail,
.wp-post-image {
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 5px;
}

span.st-featured-date {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: var(--weight-medium);
}

.st-news-sidebar-widget h4 {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* TARJETA CTA DE ASESORÍA */
.st-news-cta-widget {
    background: var(--color-white);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s ease;
}

.st-news-cta-widget:hover {
    box-shadow: 0 15px 35px rgba(32, 178, 170, 0.06);
    transform: translateY(-3px);
    border-color: rgba(32, 178, 170, 0.3);
}

.st-news-cta-widget h3 {
    font-family: var(--font-family);
    font-size: var(--font-h3);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px 0;
    border: none;
    padding: 0;
}

.st-news-cta-widget p {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-text-light);
    margin: 0 0 22px 0;
}

.st-news-cta-widget a.st-news-cta-button {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.25);
}

.st-news-cta-widget a.st-news-cta-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(32, 178, 170, 0.35);
}