﻿/* HERO WRAPPER */
.hero {
    position: relative;
    overflow: hidden;
    height: 32vh; /* use viewport-height for fluidity */
    min-height: 200px; /* ensure a floor on small screens */
}

    /* THE IMAGE */
    .hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* DARK FADE OVERLAY */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100% );
        z-index: 1;
    }

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(-90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 0, 0, 0) 100%);
        pointer-events: none;
        z-index: 1;
    }

/* TEXT CONTAINER */
.hero-content {
    position: absolute;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 35em;
}

    /* TITLE */
    .hero-content h1 {
        margin: 0 0 0.5rem;
        font-size: 1.7rem;
        line-height: 2.25rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: 0 0 0.5em black;
        color: lemonchiffon;
        text-align: justify;
    }

    /* DATE */
    .hero-content small {
        display: block;
        font-size: 1rem;
        opacity: 0.8;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        height: 200px;
    }

    .hero-content h1 {
        font-size: 1.2rem;
        -webkit-line-clamp: 5;
        padding: 2%;
        text-align: inherit;
        line-height: 1.5rem;
        text-align: justify;
    }
}

/* hero-date at bottom-right */
.hero-date {
    position: absolute;
    right: 2%;
    bottom: 5%;
    z-index: 2;
    font-size: 1rem;
    color: rgb(var(--color-gray-500) / var(--tw-text-opacity, 1));
    opacity: 0.8;
    text-align: right;
}


.image-preview-card {
    width: 300px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .image-preview-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.pdf-download-card {
    width: 300px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

    .pdf-download-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .pdf-download-card svg {
        fill: #d9534f;
        width: 48px;
        height: 48px;
    }

    .pdf-download-card span {
        display: block;
        margin-top: 10px;
        font-size: 18px;
        color: #333;
        font-family: sans-serif;
    }