/* Shared blog layout styles. */
.blog-page-content,
.blog-detail-wrap {
    width: 100%;
}

/* Remove Elementor's boxed widths only from the blog detail article. */
.blog-detail-section,
.blog-detail-section :is(
    .elementor-section,
    .elementor-container,
    .elementor-row,
    .elementor-column,
    .elementor-column-wrap,
    .elementor-widget,
    .elementor-widget-wrap,
    .elementor-widget-container
) {
    width: 100% !important;
    max-width: none !important;
}

.blog-card-grid {
    row-gap: 28px;
}

.blog-card {
    width: 100%;
    padding: 24px;
    flex: 1;
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(34, 54, 69, 0.08);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-title {
    color: #10283a;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-card-excerpt {
    color: #223645;
    line-height: 1.7;
}

.blog-button {
    background-color: #64171d !important;
    border-color: #64171d !important;
    color: #ffffff !important;
}

.blog-detail-container {
    width: calc(100% - 44px) !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.blog-detail-title {
    color: #10283a;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 12px;
}

.blog-detail-meta {
    color: #223645;
    font-size: 18px;
    margin-bottom: 24px;
}

.blog-content {
    column-count: 2;
    column-gap: 56px;
    color: #223645;
    font-size: 18px;
    line-height: 1.58;
    text-align: justify;
}

.blog-content p {
    break-inside: avoid;
    margin-bottom: 26px;
}
.blog-content .blog-subheading:not(:first-child) {
    break-before: column;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    break-inside: avoid;
}

.blog-detail-container .blog-button {
    margin-top: 18px;
}

@media (max-width: 991px) {
    .blog-detail-container {
        width: 100% !important;
        padding-left: 18px;
        padding-right: 18px;
    }

    .blog-content {
        column-count: 1;
    }
}