/* Custom styles for blog content */

/* Blog post content images */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive image sizing for different screen widths */
@media (min-width: 768px) {
    .post-content img {
        max-width: 85%;
    }
}

@media (min-width: 1200px) {
    .post-content img {
        max-width: 75%;
    }
}

/* Image caption styling */
.post-content img + em {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* Blog card and badge styling */
.event-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.featured-badge {
    background-color: #4a90e2;
}

.card-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-overlay:hover {
    opacity: 1;
}

/* Example blocks styling using blockquotes */
.post-content blockquote {
    background-color: #f0f7ff; /* Light blue background */
    border-left: 4px solid #4a90e2;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: inherit;
    overflow-x: auto;
}

/* Style for tables inside blockquotes */
.post-content blockquote table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.post-content blockquote table th,
.post-content blockquote table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.post-content blockquote table th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
}

/* Bold text in blockquotes */
.post-content blockquote strong {
    font-weight: bold;
}

/* Lists in blockquotes */
.post-content blockquote ul,
.post-content blockquote ol {
    padding-left: 1.5rem;
}

.post-content blockquote li {
    margin-bottom: 0.5rem;
}
