/* MD Post Relacionados - Frontend Styles */

.md-related-posts-wrapper {
    margin: 60px 0;
    padding: 50px 0;
    background: #ffffff;
}

.md-related-posts-title {
    margin: 0 0 50px 0;
    font-size: 2em;
    font-weight: 700;
    color: #003f7f;
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 4px solid #0066cc;
}

.md-related-posts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 100%;
}

.md-related-post-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    padding: 40px 45px;
    border: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.md-related-post-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-6px);
    background: #ffffff;
    border-color: #0066cc;
}

.md-related-post-title {
    margin: 0 0 20px 0;
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.4;
}

.md-related-post-title a {
    color: #003f7f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.md-related-post-title a:hover {
    color: #0066cc;
}

.md-related-post-excerpt {
    margin: 0 0 28px 0;
    color: #555;
    font-size: 0.98em;
    line-height: 1.7;
    flex-grow: 1;
}

.md-related-post-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: color 0.3s ease;
    align-self: flex-start;
    display: inline-block;
    padding: 10px 0;
}

.md-related-post-link:hover {
    color: #003f7f;
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .md-related-posts-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .md-related-posts-title {
        font-size: 1.7em;
        margin-bottom: 40px;
    }

    .md-related-post-card {
        padding: 35px 40px;
    }

    .md-related-post-title {
        font-size: 1.25em;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .md-related-posts-wrapper {
        margin: 50px 0;
        padding: 40px 0;
    }

    .md-related-posts-title {
        font-size: 1.5em;
        margin-bottom: 35px;
        padding-bottom: 20px;
        border-bottom-width: 3px;
    }

    .md-related-posts-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .md-related-post-card {
        padding: 30px 35px;
        border-width: 2px;
    }

    .md-related-post-title {
        font-size: 1.15em;
        margin-bottom: 18px;
    }

    .md-related-post-excerpt {
        margin-bottom: 24px;
        font-size: 0.95em;
    }

    .md-related-post-link {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .md-related-posts-wrapper {
        margin: 40px 0;
        padding: 30px 0;
    }

    .md-related-posts-title {
        font-size: 1.3em;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .md-related-post-card {
        padding: 25px 25px;
        border-width: 2px;
    }

    .md-related-post-title {
        font-size: 1.05em;
        margin-bottom: 15px;
    }

    .md-related-post-excerpt {
        margin-bottom: 20px;
        font-size: 0.9em;
    }

    .md-related-post-link {
        font-size: 0.9em;
    }
}
