/* =============================================================================
   TRENDING POSTS SECTION — Figma Node 112:3487 Specs
   ============================================================================= */

.elementor-widget-profic_trending_posts {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.profic-trending-section {
    position: relative;
    width: 100%;
    padding: 80px 120px 240px !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F8F8F8 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    z-index: 1;
    overflow: hidden;
}

/* Vector Decorativo de Fondo — Figma Node 112:3497 (1453px x 243px, right -207px, bottom -67px) */
.profic-trending-bg-stroke {
    position: absolute;
    right: -207px;
    bottom: -67px;
    width: 1453px;
    height: 243px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.profic-trending-bg-stroke svg {
    width: 1453px;
    height: 243px;
    display: block;
}

/* Cabecera del Título (Figma: H2 AmsiPro-Light 45px #090511) */
.profic-trending-header {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin-bottom: 40px;
}

.profic-trending-title {
    font-family: 'Amsi Pro', sans-serif;
    font-weight: 300; /* Light */
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1.2em;
    color: #090511;
    margin: 0;
    text-align: center;
}

/* Contenedor Principal */
.profic-trending-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profic-trending-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* Tarjeta Horizontal (Card BLOG — Figma 2:6196: sin elevación en hover) */
.profic-trending-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(9, 5, 17, 0.06);
    border-radius: 21px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: none;
    transition: none;
}

.profic-trending-card-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
    min-height: 160px;
    border-radius: 21px;
    overflow: hidden;
}

.profic-trending-card:hover,
.profic-trending-card:focus-within {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(9, 5, 17, 0.06);
    filter: none;
}

/* Columna Izquierda: Información */
.profic-trending-card-info {
    flex: 1;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    background-color: #FFFFFF;
}

.profic-trending-card-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profic-trending-card-category {
    font-family: 'Amsi Pro', sans-serif;
    font-weight: 400;
    font-size: 9px;
    line-height: 1.38em;
    letter-spacing: 0.54px;
    color: #5D0FEC;
    text-transform: uppercase;
    margin: 0;
}

.profic-trending-card-title {
    font-family: 'Amsi Pro', sans-serif;
    font-weight: 600; /* SemiBold */
    font-size: 20px;
    line-height: 1.32em;
    color: #090511;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profic-trending-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(9, 5, 17, 0.08);
    padding-top: 10px;
}

.profic-trending-card-author {
    font-family: 'Amsi Pro', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.38em;
    color: #090511;
    margin: 0;
}

.profic-trending-card-date {
    font-family: 'Amsi Pro', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.38em;
    color: #8C8C8C;
    text-align: right;
    margin: 0;
}

/* Columna Derecha: Imagen 300px */
.profic-trending-card-image-wrap {
    width: 300px;
    height: auto;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background-color: #EBEBEB;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.profic-trending-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
}

/* =============================================================================
   RESPONSIVE DESIGN (Tablet & Mobile Specs)
   ============================================================================= */

/* Tablet (800px - 1279px) */
@media (min-width: 800px) and (max-width: 1279px) {
    .profic-trending-section {
        padding: 60px 40px 120px !important;
    }

    .profic-trending-card-image-wrap {
        width: 220px;
    }
}

/* Mobile (<800px) */
@media (max-width: 799px) {
    .profic-trending-section {
        padding: 40px 16px 100px !important;
    }

    .profic-trending-header {
        margin-bottom: 24px;
    }

    .profic-trending-card-link {
        flex-direction: column-reverse;
        border-radius: 21px;
    }

    .profic-trending-card-image-wrap {
        width: 100%;
        height: 180px;
        border-radius: 20px 20px 0 0;
    }

    .profic-trending-card-info {
        padding: 20px;
    }
}
