.custom-topics-hero {
    margin-bottom: var(--spacing-xl, 3rem);
}

.custom-topics-hero-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: var(--spacing-lg, 2rem);
    box-shadow: 0 8px 24px rgba(29, 53, 87, 0.12);
}

.custom-topics-intro {
    max-width: 720px;
    margin: 0 auto var(--spacing-xl, 3rem);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--af-color-quinternary, #1D3557);
}

/* Lista estilo blog */
.custom-topics-list {
    max-width: 720px;
    margin: 0 auto var(--spacing-xxl, 4rem);
}

.custom-topics-post {
    padding: var(--spacing-xl, 3rem) 0;
    border-bottom: 1px solid rgba(168, 218, 220, 0.6);
}

.custom-topics-post:first-child {
    padding-top: 0;
}

.custom-topics-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.custom-topics-post-flag {
    width: clamp(120px, 38vw, 350px);
    aspect-ratio: 3 / 2;
    height: auto;
    margin: 0 auto var(--spacing-md) auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(29, 53, 87, 0.15);
    border: 1px solid rgba(168, 218, 220, 0.5);
    flex-shrink: 0;
}

.custom-topics-post-flag-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.custom-topics-post-header {
    text-align: center;
    margin-bottom: var(--spacing-md, 1.5rem);
}

.custom-topics-post-country {
    margin: 0 0 var(--spacing-md);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--af-color-primary, #E63946);
}

.custom-topics-post-title {
    margin: 0 0 var(--spacing-md);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--af-color-quinternary, #1D3557);
}

.custom-topics-post-text {
    margin: 0 0 var(--spacing-lg, 2rem);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--af-color-quaternary, #457B9D);
    text-align: justify;
}

.custom-topics-post-dish {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(29, 53, 87, 0.14);
}

.custom-topics-post-dish-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.custom-topics-post-dish-link:hover .custom-topics-post-dish-overlay {
    opacity: 1;
}

.custom-topics-post-dish-link:hover .custom-topics-post-dish-image {
    transform: scale(1.03);
}

.custom-topics-post-dish-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.custom-topics-post-dish-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 53, 87, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-topics-post-dish-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--af-color-primary, #E63946);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.custom-topics-post-dish-pending {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.85rem 1rem;
    background: rgba(29, 53, 87, 0.75);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.custom-topics-post-dish-pending i {
    margin-right: 0.35rem;
}

@media (max-width: 768px) {
    .custom-topics-list {
        max-width: 100%;
    }

    .custom-topics-post-title {
        font-size: 1.45rem;
    }

    .custom-topics-post-text {
        text-align: left;
        font-size: 1rem;
    }

    .custom-topics-post-flag {
        width: clamp(100px, 55vw, 280px);
    }

    .custom-topics-post-dish-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(29, 53, 87, 0.7) 0%, transparent 50%);
        align-items: flex-end;
        padding-bottom: 1rem;
    }

    .custom-topics-post-dish-cta {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}
