/* Custom styles for HAL9K News - Mediator theme override */

/* Teaser image (hero) */
.teaserimage {
    position: relative;
    height: 45vh;
    min-height: 300px;
    max-height: 450px;
    overflow: hidden;
}

.teaserimage-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay oscuro para que el texto se lea bien */
.teaserimage-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.7) 100%);
}

/* Header del blog - posicionado dentro de la imagen (abajo) */
.blog-header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 30px 20px 40px;
    text-align: center;
    color: #fff;
    background: transparent;
}

.blog-title {
    font-size: 2.8em;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.blog-description {
    font-size: 1.1em;
    font-weight: 300;
    opacity: 0.95;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Links personalizados */
.custom-links {
    margin-top: 15px;
}

.custom-links a {
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.3s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.custom-links a:hover {
    opacity: 1;
}

/* Contenido principal */
.content {
    background: #fff;
    position: relative;
    z-index: 5;
    padding-top: 40px;
}

/* Artículos */
.article {
    margin-bottom: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .teaserimage {
        height: 35vh;
        min-height: 250px;
    }
    
    .blog-header {
        padding: 20px 15px 30px;
    }
    
    .blog-title {
        font-size: 2em;
    }
    
    .blog-description {
        font-size: 1em;
    }
}
