/* GRID */
.blog-lobby {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
    margin-bottom: 1rem;
}

.blog-cards {
    background: #2D2D2D;
    border-radius: 36px 36px 6px 6px;
    overflow: hidden;
    text-decoration: none;
}

.blog-cards img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-cards:hover img {
    transform: scale(1.03);
}

.blog-cards p {
    margin: 0;
    padding: 0 20px;
    white-space: nowrap;        
    overflow: hidden;           
    text-overflow: ellipsis;
    max-width: 100%;
}

.blog-cards p:first-of-type {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 20px;
}

.blog-cards .h6 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 12px;
    transition: color 0.3s ease;
}

.blog-cards:hover .h6 {
    color: #FF2E02;
}

.blog-cards p:last-of-type {
    opacity: 0.85;
    margin-top: 12px;
    padding-bottom: 20px;
}

.leer-mas {
    display: inline-flex;
    align-items: center;
    margin: 0px 20px 20px;
    color: #FF2E02;
    text-decoration: none;
}


/* DEDICATED PAGE */

.blogcontent > img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 36px 36px 6px 6px;
    display: block;
    margin-top: 1rem;
}

.blogcontent .fecha {
    display: block;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 14px;
}

.contenido {
    background: #2D2D2D;
    padding: 20px 50px 20px 50px;
    border-radius: 36px 36px 6px 6px;
}

.contenido p, 
.contenido li {
    line-height: 1.6;
}

/* RELACIONADOS */
.blog-widget {
    position: relative;
    margin-bottom: 1rem;
}

.post-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 320px;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
    user-select: none;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;
}

.blog-widget-post {
    display: flex;
    flex-direction: column;
    background: #2D2D2D;
    border-radius: 36px 36px 6px 6px;
    overflow: hidden;
    text-decoration: none;
}

.blog-widget-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-widget-post:hover img {
    transform: scale(1.03);
}

.blog-widget .controls {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: space-between;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    user-select: none;
    width: 100%;
}

.blog-widget:has(.controls) {
    --controls-width: 48px;
    --controls-height: 100px;
}

.blog-widget:has(.controls) .post-list {
    margin: 0 var(--controls-width);
}
    
.blog-widget .controls > button {
    appearance: none;
    background: url(/img/lobbies/arrow.svg) no-repeat center;
    border: 0;
    color: white;
    cursor: pointer;
    font-size: 3rem;
    font-weight: bold;
    height: var(--controls-height);
    opacity: 1;
    outline: 0;
    pointer-events: auto;
    transition: opacity .2s ease-out, color .2s ease-out, filter .2s ease-out;
    width: var(--controls-width);
    background-size: 36px;
}
    
.blog-widget .controls > button:hover {
    filter: brightness(0) saturate(100%) invert(59%) sepia(99%) saturate(7499%) hue-rotate(2deg) brightness(104%) contrast(102%);
    /* opacity: 1; */
}
    
.blog-widget .controls > button.forward {
    transform: scaleX(-1);
}