/* ============================================
   BLOG STYLES - CLEAN & MODERN
   ============================================ */

/* ====== PAGE HERO ====== */
.page-hero {
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.page-hero .badge-soft {
    display: inline-block;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 18px;
    color: #6b7280;
}

/* ====== BIG SEARCH INPUT ====== */
.big-search {
    position: relative;
    margin-top: 1.5rem;
}

.big-search .form-control {
    height: 60px;
    font-size: 1.1rem;
    padding: 0.75rem 4.5rem 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.big-search .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.big-search .form-control::placeholder {
    color: #adb5bd;
    font-weight: 300;
}

/* ====== SEARCH LOADING ====== */
.search-loading {
    display: none;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.search-loading.show {
    display: block;
}

.spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.2em;
}

/* ====== CLOSE BUTTON ====== */
.search-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 5;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear.show {
    display: block;
}

.search-clear:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.search-clear i {
    display: block;
    line-height: 1;
}

/* ====== SEARCH RESULTS INFO ====== */
.search-results-info {
    margin-top: 0.75rem;
}

.search-results-info .text-muted {
    font-size: 0.9rem;
}

/* ====== STICKY SEARCH ====== */
.search-wrapper-section {
    position: relative;
}

.search-sticky-container {
    transition: all 0.3s ease;
}

.search-sticky-container.sticky {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-sticky-container.sticky .big-search {
    max-width: 800px;
    margin: 0 auto;
}

.search-sticky-container.sticky .search-results-info {
    margin-top: 6px;
}

/* ============================================================
   STICKY SEARCH — COMPACT HEIGHT + X BUTTON
   Added: compact input sizing when sticky
   ============================================================ */
.search-sticky-container.sticky {
    padding: 8px 16px;
}

.search-sticky-container.sticky .big-search {
    margin-top: 0;
}

/* Smaller input when sticky */
.search-sticky-container.sticky .big-search .form-control {
    height: 40px;
    font-size: 14px;
    padding: 6px 84px 6px 16px;
    /* room for spinner + clear */
    border-radius: 50px;
    border-width: 1px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.search-sticky-container.sticky .big-search .form-control::placeholder {
    font-size: 13px;
    color: #9ca3af;
}

/* Position loading spinner + clear button correctly when sticky */
.search-sticky-container.sticky .search-loading {
    right: 46px;
}

.search-sticky-container.sticky .search-clear {
    right: 10px;
    font-size: 1.15rem;
    padding: 2px 6px;
}

/* Hide the results info line when sticky — keeps bar short */
.search-sticky-container.sticky .search-results-info {
    display: none;
}

/* ====== NO RESULTS ====== */
.no-results {
    display: none;
    padding: 3rem 0;
}

.no-results.show {
    display: block;
}

.no-results .no-results-icon {
    font-size: 3.5rem;
    color: #dee2e6;
}

.no-results h4 {
    margin-top: 1rem;
}

/* ====== CATEGORY TABS ====== */
.category-tabs .btn {
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.category-tabs .btn-primary {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.category-tabs .btn-primary:hover {
    background: #0b5ed7;
    color: #fff;
}

.category-tabs .btn-outline-secondary {
    background: #fff;
    color: #4a5568;
    border-color: #e2e8f0;
}

.category-tabs .btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

/* ====== FILTER BAR ====== */
.filter-bar {
    border-radius: 12px !important;
    background: #fff;
}

.filter-bar .form-select-sm {
    font-size: 13px;
    padding: 6px 30px 6px 12px;
    border-radius: 8px;
    border-color: #e2e8f0;
    background-color: #fff;
    color: #4a5568;
}

.filter-bar .form-select-sm:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

/* ====== BLOG POST CARD ====== */
.blog-content {
    padding: 30px 0 60px;
    background: #f8faff;
}

.blog-post {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 16px !important;
    background: #fff;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ====== BLOG IMAGES ====== */
.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    background: #e8ecf1;
}

.blog-post-image:not([src]) {
    opacity: 0;
}

.blog-post-image[src] {
    opacity: 1;
    animation: fadeInImage 0.5s ease;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.blog-post:hover .blog-post-image {
    transform: scale(1.05);
}

.blog-post-image[src*="placeholder"] {
    object-fit: contain;
    padding: 20px;
    background: #f0f2f5;
}

/* Image Badges */
.blog-image-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.blog-image-badge.bg-danger {
    background: #dc3545;
}

.blog-image-badge.bg-primary {
    background: #0d6efd;
}

.blog-image-badge.bg-warning {
    background: #f59e0b !important;
    color: #1a202c !important;
    right: 14px;
    left: auto;
}

/* ====== BLOG CARD BODY ====== */
.blog-post .card-body {
    padding: 22px 24px 24px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-post .card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-post .card-title a {
    transition: color 0.2s ease;
    color: #1a202c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-post .card-title a:hover {
    color: #0d6efd !important;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #718096;
    margin-bottom: 10px;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
}

.blog-meta .mx-1 {
    margin: 0 4px !important;
}

.blog-post .card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ====== TAGS ====== */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.blog-tags .badge {
    font-weight: 400;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 50px;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}


/* ====== PAGINATION ====== */
.pagination .page-link {
    color: #0d6efd;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: #0d6efd;
    color: #fff;
    border-radius: 8px;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
}

/* ============================================================
   BLOG DETAILS - ADDITIONAL STYLES
============================================================ */

/* --------------------------------------------
   TOP BAR - STICKY
-------------------------------------------- */
.details-top-bar {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* flex-wrap: wrap; */
    gap: 10px 20px;
}

.top-bar-left .back-btn {
    font-size: 13px;
    padding: 5px 16px;
    white-space: nowrap;
}

.top-label {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-right: 4px;
}

.cat-btn {
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 50px;
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #4a5568;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.top-news {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-news .badge {
    font-size: 10px;
    padding: 3px 10px;
    flex-shrink: 0;
}

.news-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    max-width: 300px;
    padding: 4px 0;
    scrollbar-width: none;
}

.news-scroll::-webkit-scrollbar {
    display: none;
}

.news-link {
    font-size: 13px;
    color: #4a5568;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.news-link .separator {
    color: #d1d5db;
    margin: 0 4px;
}

/* --------------------------------------------
   RELATED POSTS - Small Cards
-------------------------------------------- */
.related-posts .blog-post {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 12px !important;
    background: #fff;
}

.related-posts .blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.related-posts .blog-image-wrapper {
    height: 150px;
    background: #f0f2f5;
    overflow: hidden;
}

.related-posts .blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-posts .blog-post:hover .blog-post-image {
    transform: scale(1.05);
}

.related-posts .card-body {
    padding: 14px 16px 16px !important;
}

.related-posts .card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.related-posts .card-title a {
    transition: color 0.2s ease;
    color: #1a202c;
}

.related-posts .card-title a:hover {
    color: #0d6efd !important;
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* Mobile */
@media (max-width: 576px) {
    .page-hero {
        padding: 40px 0 30px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 15px;
    }

    .blog-content {
        padding: 20px 0 40px;
    }

    .blog-image-wrapper {
        height: 180px;
    }

    .blog-post .card-body {
        padding: 16px 16px 18px !important;
    }

    .blog-post .card-title {
        font-size: 16px;
    }

    .big-search .form-control {
        height: 48px;
        font-size: 14px;
        padding: 0.5rem 3.5rem 0.5rem 1rem;
        border-radius: 40px;
    }

    .search-clear {
        right: 14px;
        font-size: 1.2rem;
    }

    .search-loading {
        right: 48px;
    }

    /* Sticky search — compact on mobile */
    .search-sticky-container.sticky {
        padding: 6px 10px;
        top: 81px !important;
    }

    .search-sticky-container.sticky .big-search .form-control {
        height: 38px;
        font-size: 13px;
        padding: 5px 74px 5px 14px;
    }

    .search-sticky-container.sticky .search-clear {
        right: 8px;
        font-size: 1.05rem;
        padding: 2px 5px;
    }

    .search-sticky-container.sticky .search-loading {
        right: 40px;
    }

    .category-tabs .btn {
        font-size: 12px;
        padding: 5px 14px;
    }

    .filter-bar .card-body {
        padding: 10px 12px !important;
    }

    .filter-bar .form-select-sm {
        font-size: 12px;
    }

    .blog-meta {
        font-size: 11px;
    }

    .blog-post .card-text {
        font-size: 13px;
    }

    .blog-image-badge {
        font-size: 10px;
        padding: 3px 10px;
    }

    /* Details page mobile */
    .details-top-bar {
        top: 81px;
        padding: 8px 0;
    }

    .top-bar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .top-bar-center {
        order: 2;
    }

    .top-bar-right {
        order: 3;
        justify-content: flex-start;
    }

    .news-scroll {
        max-width: 100%;
    }

    .top-bar-left .back-btn {
        width: 100%;
        justify-content: center;
    }

    .related-posts .blog-image-wrapper {
        height: 120px;
    }

    .related-posts .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .top-categories {
        justify-content: center;
    }

    .top-news {
        flex-wrap: wrap;
        justify-content: center;
    }

    .news-link {
        font-size: 12px;
    }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 768px) {
    .blog-image-wrapper {
        height: 200px;
    }

    .big-search .form-control {
        height: 52px;
        font-size: 15px;
    }

    /* Sticky search — compact on tablet */
    .search-sticky-container.sticky {
        padding: 8px 14px;
        top: 70px !important;
    }

    .search-sticky-container.sticky .big-search .form-control {
        height: 42px;
        font-size: 14px;
        padding: 6px 80px 6px 16px;
    }

    .search-sticky-container.sticky .search-clear {
        right: 10px;
        font-size: 1.15rem;
    }

    .search-sticky-container.sticky .search-loading {
        right: 44px;
    }

    /* Details page tablet */
    .details-top-bar {
        top: 60px;
        padding: 8px 0;
    }

    .top-bar-content {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .top-bar-center {
        order: 2;
        flex: 0 0 auto;
    }

    .top-bar-right {
        order: 3;
        flex: 1;
        justify-content: flex-end;
    }

    .related-posts .blog-image-wrapper {
        height: 120px;
    }
}

/* Desktop Large Screens */
@media (min-width: 1200px) {
    .blog-image-wrapper {
        height: 240px;
    }
}

/* Details page - Desktop & Tablet breakpoints */
@media (min-width: 769px) and (max-width: 992px) {
    .top-bar-content {
        /* flex-wrap: wrap; */
    }

    .top-bar-center {
        order: 2;
        flex: 0 0 100%;
    }

    .top-bar-right {
        order: 3;
    }
}

@media (max-width: 480px) {
    .related-posts .blog-image-wrapper {
        height: 160px;
    }
}

/* Details page - Blog content styles */
.blog-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.9;
    color: #1f2937;
    background: #ffffff;
    padding: 10px 0;
}

.blog-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: #111827;
    line-height: 1.3;
}

.blog-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 25px 0 12px 0;
    color: #1f2937;
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: #1f2937;
    line-height: 1.4;
}

.blog-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 18px 0 8px 0;
    color: #374151;
    line-height: 1.4;
}

.blog-content h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 8px 0;
    color: #374151;
}

.blog-content h6 {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 8px 0;
    color: #4b5563;
}

.blog-content p {
    margin: 0 0 18px 0;
}

.blog-content ul,
.blog-content ol {
    margin: 10px 0 18px 25px;
    padding: 0;
}

.blog-content li {
    margin: 6px 0;
    padding-left: 5px;
}

.blog-content ul li {
    list-style-type: disc;
}

.blog-content ol li {
    list-style-type: decimal;
}

.blog-content blockquote {
    border-left: 4px solid #7c3aed;
    padding: 12px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #374151;
    font-size: 18px;
}

.blog-content blockquote p {
    margin: 0;
}

.blog-content a {
    text-decoration: none;
    font-weight: 500;
}

.blog-content a:hover {
    color: #ffffff;
}

/* ====== TABLE STYLES ====== */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.blog-content table thead th,
.blog-content table th {
    background: #f3f4f6;
    font-weight: 700;
    color: #1f2937;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    text-align: left;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content table tbody td,
.blog-content table td {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    vertical-align: middle;
    color: #374151;
    font-size: 15px;
}

.blog-content table tbody tr:nth-child(even) {
    background: #fafafa;
}

.blog-content table tbody tr:hover {
    background: #f3f4f6;
}

.blog-content table a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.blog-content table a:hover {
    text-decoration: underline;
    color: #6d28d9;
}

/* Responsive Table Wrapper */
.blog-content .table-wrapper,
.blog-content .table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.blog-content .table-wrapper table,
.blog-content .table-responsive table {
    margin: 0;
    min-width: 500px;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.blog-content .table-wrapper table th,
.blog-content .table-responsive table th,
.blog-content .table-wrapper table td,
.blog-content .table-responsive table td {
    border-color: #e5e7eb;
}

/* Images in Content */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-content .alignleft {
    float: left;
    margin: 5px 20px 10px 0;
    max-width: 50%;
}

.blog-content .alignright {
    float: right;
    margin: 5px 0 10px 20px;
    max-width: 50%;
}

.blog-content .aligncenter {
    display: block;
    margin: 16px auto;
}

/* Videos in Content */
.blog-content video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}

.blog-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    background: #000;
}

.blog-content .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Code Blocks */
.blog-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
    margin: 18px 0;
    font-family: 'Courier New', monospace;
}

.blog-content code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #dc2626;
    font-family: 'Courier New', monospace;
}

.blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ====== SHARE BUTTONS ====== */
.share-buttons .btn {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 50px;
}


/* ============================================
   Blog video blocks — force full width everywhere
============================================ */
.blog-content .video-block,
.post-content .video-block,
.entry-content .video-block,
.article-content .video-block,
.single-post-content .video-block,
.blog-detail .video-block,
article .video-block {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both;
    margin: 20px auto;
}

/* The aspect-ratio box that reserves the video's space */
.blog-content .video-block .video-wrap,
.post-content .video-block .video-wrap,
.entry-content .video-block .video-wrap,
.article-content .video-block .video-wrap,
.single-post-content .video-block .video-wrap,
.blog-detail .video-block .video-wrap,
article .video-block .video-wrap {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-block .video-wrap.ratio-16-9 {
    padding-bottom: 56.25%;
    height: 0;
}

.video-block .video-wrap.ratio-4-3 {
    padding-bottom: 75%;
    height: 0;
}

.video-block .video-wrap.ratio-1-1 {
    padding-bottom: 100%;
    height: 0;
}

.video-block .video-wrap.ratio-9-16 {
    padding-bottom: 177.78%;
    height: 0;
}

.video-block .video-wrap.ratio-auto {
    height: auto;
    padding-bottom: 0;
}

/* iframe / video fills the ratio box */
.blog-content .video-block .video-wrap iframe,
.blog-content .video-block .video-wrap video,
.post-content .video-block .video-wrap iframe,
.post-content .video-block .video-wrap video,
.entry-content .video-block .video-wrap iframe,
.entry-content .video-block .video-wrap video,
.article-content .video-block .video-wrap iframe,
.article-content .video-block .video-wrap video,
.single-post-content .video-block .video-wrap iframe,
.single-post-content .video-block .video-wrap video,
.blog-detail .video-block .video-wrap iframe,
.blog-detail .video-block .video-wrap video,
article .video-block .video-wrap iframe,
article .video-block .video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-block .video-wrap.ratio-auto iframe,
.video-block .video-wrap.ratio-auto video {
    position: relative;
    height: auto;
}

/* Caption */
.video-block figcaption {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Hide leftover editor close buttons */
.media-close {
    display: none !important;
}