/* Blog content */

/* The single latest blog/podcast highlight card always fills its column */

.highlight-card-row>[class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.blog-card {
    width: 100%;
    height: 100%;
    display: inline-block;
    text-decoration: none;
    color: var(--geneesiGreen);
}

.blog-card .image-area {
    padding-top: 56%;
    position: relative;
}

/* Label badge rendered on top of the highlight card image (e.g. "Uusin jakso") */
.blog-card .card-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--geneesiYellow);
    color: var(--geneesiGreen);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--card-border-radius);
}

/* Compact card used for the "top 3 most viewed" listing */

.compact-content-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--geneesiGreen);
    background-color: var(--light);
    border: 1px solid var(--mediumgray);
    border-radius: var(--card-border-radius);
    transition: all 0.3s ease;
}

.compact-content-card:hover {
    text-decoration: none;
    box-shadow: var(--card-shadow);
}

.compact-content-image {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: var(--card-border-radius);
}

.compact-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-content-rank {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    background-color: var(--geneesiGreen);
    color: var(--light);
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: var(--card-border-radius);
}

.compact-content-body {
    min-width: 0;
}

.compact-content-body .h5 {
    color: var(--geneesiGreen);
}

.larger-card .blog-card .image-area {
    padding-top: 50%;
}

.blog-card .blog-info h3 {
    font-weight: 900;
    font-size: 2rem;
}

.blog-card .blog-info p {
    font-size: 0.8em;
}

.blog-card .blog-info .btn {
    font-size: 1.5em;
    padding-top: 0px;
    padding-bottom: 0px;
    text-transform: none;
}

@media (max-width: 768px) {
    .blog-card .h3 {
        font-size: 1rem;
    }

    .blog-card .h5 {
        font-size: .75rem;
    }

    .compact-content-image {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
    }

    .compact-content-body .h5 {
        font-size: 1rem;
    }
}