/* General Sidebar Styles */
.sidebar {
    background-color: #f7f7f7;
    padding: 20px;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Sidebar Titles */
.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* Sidebar Lists */
.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar ul li a:hover {
    text-decoration: underline;
    color: #3498db;
}

/* Logo Section */
.logo-container img {
    max-width: 200px;
    border-radius: 8px;
}

/* Buttons */
.btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-compact:hover {
    background-color: #0056b3;
    transform: scale(0.98);
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    color: #fff;
}

/* Related Posts Section */
.related-posts .card {
    border: none;
    background-color: #ffffff;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.related-posts .card img {
    border-radius: 8px 0 0 8px;
    height: 100%;
    object-fit: cover;
    max-height: 100px; /* Controla la altura máxima de la imagen */
}

.related-posts .card-body {
    padding: 10px;
}

.related-posts .card-title {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.related-posts .card-subtitle {
    font-size: 14px;
    color: #ffc107;
    margin-bottom: 5px;
}

.related-posts .card-text {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    line-height: 1.5;
}

.related-posts .row.g-0 {
    margin: 0;
    gap: 0px;
}
.card-category {
    background-color: #a1a1a1;
    /* Rojo similar al ejemplo */
    color: #fff;
    padding: 4px 5px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .related-posts .card {
        flex-direction: column;
    }

    .related-posts .card img {
        border-radius: 8px 8px 0 0;
        max-height: 150px;
    }
}
