/* =============================================
   MODUS DIGITAL - BLOG
   Blog hero, body, share rail, pagination, CTA
   ============================================= */


/* =============================================
   1. BLOG HERO
   ============================================= */

#carouselBlogHeader.md-blog-hero .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(29, 53, 70, 0) 34.69%, rgba(29, 53, 70, 0.5) 58.6%, #1D3546 100%);
    z-index: 1;
}

/* Merged: v2 base + ux hero container & alignment */
.md-blog-hero .carousel-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: auto;
    min-height: 42rem;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    background-size: cover;
    background-position: center;
}

/* Merged: v2 base + ux caption positioning */
#carouselBlogHeader.md-blog-hero .carousel-caption.md-blog-hero-caption {
    position: relative;
    top: unset;
    transform: none;
    left: 15.625%;
    width: 100%;
    max-width: var(--md-content-max-width);
    padding: 0;
    margin: 0;
    text-align: left;
    z-index: 2;
}

/* Merged: v2 base + ux h1 sizing */
#carouselBlogHeader.md-blog-hero .carousel-caption.md-blog-hero-caption h1.md-title {
    font-size: var(--md-font-fluid-h1);
    line-height: 1.15;
    text-wrap: balance;
}

/* Badge in hero caption (from ux) */
.md-blog-hero-caption .md-badge {
    font-size: 1rem;
    line-height: 1;
}

.md-blog-hero-avatar {
}

/* Merged: v2 base + ux meta font-size */
.md-blog-hero-meta {
    font-size: 0.875rem;
    margin-top: 2px;
}

.md-badge-solid {
    background: var(--md-color-accent);
    color: var(--md-color-black);
    border-color: var(--md-color-accent);
    backdrop-filter: none;
}

.md-blog-hero-date {
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

/* Hero responsive: tablet (merged ux) */
@media (max-width: 61.99rem) {
    .md-blog-hero .carousel-caption.md-blog-hero-caption {
        left: 5%;
        max-width: 90%;
    }
    .md-blog-hero .carousel-item {
        min-height: 31.25rem;
    }
}

@media screen and (max-width: 768px) {
    #carouselBlogHeader.md-blog-hero .carousel-item {
        min-height: 380px;
    }
    #carouselBlogHeader.md-blog-hero .carousel-caption.md-blog-hero-caption {
        bottom: 32px;
        left: 5%;
        right: 5%;
    }
}

@media screen and (max-width: 575.98px) {
    #carouselBlogHeader.md-blog-hero .carousel-item {
        min-height: 320px;
    }
}


/* =============================================
   2. BLOG POST - Author Meta & Intro
   ============================================= */

.md-blog-post-meta {
    color: #6b7280;
    font-family: var(--md-font-body);
    font-size: 15px;
}

.md-blog-post-author {
    font-weight: 600;
    color: var(--md-color-dark);
}

.md-blog-post-date {
    color: #6b7280;
}

.md-blog-post-meta-sep {
    color: var(--md-color-gray-400);
}

/* Merged: v2 base + ux intro sizing */
p.md-blog-post-intro {
    font-family: var(--md-font-body);
    font-size: var(--md-font-fluid-intro);
    line-height: 1.5;
    color: var(--md-color-dark);
    margin-bottom: 0;
}


/* =============================================
   3. BLOG BODY - Rich Text Typography
   ============================================= */

.md-blog-body {
    font-family: var(--md-font-body);
    font-size: 17px;
    line-height: 1.75;
    color: #3d4550;
}

/* Merged: v2 base + ux h2 */
.md-blog-body h2 {
    font-family: var(--md-font-display);
    font-size: var(--md-font-fluid-h2);
    font-weight: 700;
    line-height: 1.25;
    color: var(--md-color-dark);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    max-width: var(--md-content-max-width);
    text-wrap: pretty;
}

/* Merged: v2 base + ux h3 */
.md-blog-body h3 {
    font-family: var(--md-font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--md-color-dark);
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    max-width: var(--md-content-max-width);
}

.md-blog-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--md-color-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    max-width: var(--md-content-max-width);
}

/* Merged: v2 base + ux paragraph sizing */
.md-blog-body p {
    margin-bottom: 1.25rem;
    font-size: 16px;
    line-height: 27px;
    max-width: var(--md-content-max-width);
}

.md-blog-body p,
.md-blog-body.with-list-styles ul > li,
.md-blog-body.with-list-styles ol > li {
    font-size: var(--md-font-fluid-body);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Merged: v2 base + ux link color */
.md-blog-body a {
    color: var(--md-color-primary);
    text-decoration: underline;
    font-weight: 700;
}

.md-blog-body a:hover {
    color: var(--md-color-dark);
}

.md-blog-body ul,
.md-blog-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    max-width: var(--md-content-max-width);
}

.md-blog-body ul {
    list-style: none;
    padding-left: 0;
}

.md-blog-body li {
    margin-bottom: 0.4rem;
}

.md-blog-body ul > li {
    position: relative;
    padding-left: 2.5rem;
    list-style: none;
}

.md-blog-body ul > li::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 12px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.3335 10H16.6668M16.6668 10L11.6668 5M16.6668 10L11.6668 15' stroke='%233B454F' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.md-blog-body ol > li::marker {
    font-family: var(--md-font-display);
    font-size: 17px;
    line-height: 27px;
    left: 12px;
    font-weight: 700;
    color: var(--md-color-gray-800);
}

.md-blog-body.with-list-styles ul,
.md-blog-body.with-list-styles ol {
    margin-bottom: 1.5rem;
}

.with-list-styles ul>li {
    list-style: disc !important;
}

.md-blog-body.with-list-styles ul>li {
    display: block;
    list-style: none !important;
}

.md-blog-body.with-list-styles ul>li::marker {
    content: "";
}

.md-blog-body blockquote {
    border-left: 4px solid var(--md-color-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: #f9f9f9;
    border-radius: 0 var(--md-radius-sm) var(--md-radius-sm) 0;
    font-style: italic;
    color: #4b5563;
    max-width: var(--md-content-max-width);
}

.md-blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--md-radius-md);
    margin: 1rem 0;
}


/* =============================================
   4. BLOG BODY - Tables
   ============================================= */

.md-blog-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
    font-size: 16px;
    border-radius: var(--md-radius-lg);
    overflow: hidden;
    border: 1.5px solid #d8e4ed;
}

/* Merged: v2 base + ux table cell padding */
.md-blog-body table th,
.md-blog-body table td {
    padding: 1.25rem;
    min-width: 11.25rem;
    text-align: left;
    border-bottom: 1.5px solid #d8e4ed;
    color: #4a5a6a;
    background: var(--md-color-white);
    line-height: 1.4;
}

.md-blog-body table td:last-child {
    min-width: 15.625rem;
}

.md-blog-body table th {
    background: #2d4a5f;
    font-family: var(--md-font-display);
    font-weight: 700;
    color: var(--md-color-white);
    border-bottom: none;
    font-size: 18px;
    padding: 24px;
}

.md-blog-body table tr:nth-child(even) td {
    background: #edf3f7;
}

.md-blog-body table tr:last-child td {
    border-bottom: none;
}

.md-blog-body table td:first-child {
    font-weight: 700;
    color: #2c3e50;
}

/* CMS tables: no <thead>, first <tbody> row acts as header */
.md-blog-body figure.table tbody tr:first-child td {
    background: #2d4a5f;
    color: var(--md-color-white);
    font-family: var(--md-font-display);
    font-weight: 700;
    font-size: 18px;
    padding: 24px;
    border-bottom: none;
}

.md-blog-body figure.table tbody tr:first-child td:first-child {
    color: var(--md-color-white);
}

.md-blog-body figure.table tbody tr:nth-child(even) td {
    background: var(--md-color-white);
}

.md-blog-body figure.table tbody tr:nth-child(odd):not(:first-child) td {
    background: #edf3f7;
}

/* Merged: ux table figure wrapper */
.md-blog-body figure.table {
    margin: 1.5rem 0;
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for tables (from ux) */
.md-blog-body figure.table::-webkit-scrollbar {
    height: 6px;
}

.md-blog-body figure.table::-webkit-scrollbar-thumb {
    background: var(--md-color-blue-overlay);
    border-radius: 10px;
}

.md-blog-body figure.table::-webkit-scrollbar-track {
    background: var(--md-color-gray-100);
}


/* =============================================
   5. BLOG LAYOUT & GRID
   ============================================= */

/* Merged: v2 base + ux layout overrides */
.md-blog-content-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 0;
}

.md-blog-body.col-lg-10,
.md-blog-content-layout.container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 90rem) {
    .md-blog-content-layout {
        margin-left: auto;
        margin-right: auto;
        max-width: 75rem;
    }
}

@media (min-width: 62rem) {
    div.col-lg-10.offset-lg-1.md-blog-body {
        margin-left: 0;
    }
}

.md-blog-content-main {
    min-width: 0;
}


/* =============================================
   6. SHARING RAIL
   ============================================= */

/* Merged: v2 base + ux sharing rail */
.md-blog-share-rail {
    margin-left: 1rem;
    position: sticky;
    top: 7.5rem;
    height: fit-content;
    z-index: 10;
}

.md-blog-share-rail .sharebtn__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: max-content;
}

.md-blog-share-rail .sharebtn__button {
    margin: 0 !important;
}

.sharebtn__twitter,
.sharebtn__linkedin,
.sharebtn__whatsapp,
.sharebtn__email,
.sharebtn__copy {
    background-color: var(--md-color-blue-overlay);
}


/* =============================================
   7. CARDS & PANELS (Blog Index)
   ============================================= */

.md-blog-panel {
    position: relative;
    background-size: cover;
    background-position: center;
    display: block;
    max-width: 100%;
    border-radius: var(--md-radius-3xl);
}

.md-blog-panel--featured {
    min-height: 407px;
    height: 100%;
}

.md-blog-panel-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Merged: v2 base + ux panel date */
.md-blog-panel-date {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--md-font-body);
    font-size: 0.875rem;
}

.md-blog-panel-intro {
    font-family: var(--md-font-body);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 90%;
    margin-top: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.md-blog-panel-overlay {
    background: transparent linear-gradient(188deg, #272E3600 0%, #272E36FE 100%, var(--md-color-dark) 100%) 0% 0% no-repeat padding-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: var(--md-radius-3xl);
    transition: opacity 0.55s ease-in-out;
    -moz-transition: opacity 0.5s ease-in-out;
    -webkit-transition: opacity 0.55s ease-in-out;
    padding: 42px 54px;
    z-index: 3;
}

.md-blog-panel:hover .md-blog-panel-overlay {
    background: transparent linear-gradient(188deg, #272E3600 0%, var(--md-color-blue-deep) 100%, #0077ff 100%) 0% 0% no-repeat padding-box;
    transition: background ease-in-out .3s;
}

.md-blog-panel-overlay span {
    color: #DBE6EF;
    font-family: var(--md-font-body);
    font-size: 14px;
    line-height: 19.5px;
    font-weight: 600;
}

/* Merged: v2 base + ux overlay-content */
.md-overlay-content {
    position: absolute;
    right: 2.25rem;
    left: 2.25rem;
    bottom: 0;
    padding-bottom: 1.5rem;
}

/* Merged: v2 base + ux panel title */
.md-blog-panel-title {
    font-family: var(--md-font-display);
    font-weight: 700;
    font-size: var(--md-font-fluid-panel);
    line-height: 120%;
    color: #fff;
    max-width: 438px;
}

/* Merged: v2 base + ux panel overlay p */
.md-blog-panel-overlay p {
    font-family: var(--md-font-body);
    font-weight: 400;
    font-size: clamp(1rem, 0.821rem + 0.476vw, 1.25rem);
    line-height: 140%;
    max-width: 438px;
}

/* Big Card (Panel) Padding Fix (from ux) */
.md-blog-panel-body {
    padding-left: 3rem;
    padding-bottom: 3rem;
}

/* Merged: v2 base + ux card badge sizing */
.md-blog-card .md-badge,
.md-blog-panel .md-badge {
    font-size: 0.875rem;
    line-height: 100%;
}

/* Desktop panels (from ux) */
.md-blog-panel-overlay {
    padding: 2.25rem 1.5rem;
}

/* White blog card */
.md-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--md-color-white);
    border-radius: var(--md-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.md-blog-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}

.md-blog-card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.md-blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.md-blog-card:hover .md-blog-card-image {
    transform: scale(1.04);
}

/* Merged: v2 base + ux card body padding */
.md-blog-card-body {
    padding: 1.25rem 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.md-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* Merged: v2 base + ux card date */
.md-blog-card-date {
    color: #4C606E;
    font-family: var(--md-font-body);
    font-size: 0.875rem;
    line-height: 19.5px;
    white-space: nowrap;
}

/* Merged: v2 base + ux card title sizing */
.md-blog-card-title {
    font-family: var(--md-font-display);
    font-size: 1.375rem;
    line-height: 1.25;
    font-weight: 700;
    color: #353C44;
    margin-bottom: 0.375rem;
}

/* Merged: v2 base + ux card desc sizing */
.md-blog-card-desc {
    color: #4C606E;
    font-family: var(--md-font-body);
    font-size: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.md-blog-card-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(rgb(39, 46, 54), rgb(39, 46, 54));
    flex-shrink: 0;
}

/* Unified Hover Logic (from ux) */
.md-blog-card:hover,
.md-blog-panel:hover {
    transform: none;
}

.md-blog-card-image-wrap,
.md-blog-card-image-placeholder,
.md-blog-panel {
    position: relative;
    overflow: hidden;
}

.md-blog-card-image-wrap::after,
.md-blog-card-image-placeholder::after,
.md-blog-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(55, 107, 142, 0) 0%, rgba(55, 107, 142, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.md-blog-card:hover .md-blog-card-image-wrap::after,
.md-blog-card:hover .md-blog-card-image-placeholder::after,
.md-blog-panel:hover::after {
    opacity: 1;
}


/* =============================================
   8. RELATED BLOGS
   ============================================= */

/* Merged: v2 base + ux section title sizing */
.md-related-blogs-title {
    font-family: var(--md-font-display);
    font-size: var(--md-font-fluid-section);
    line-height: 1.2;
    font-weight: 700;
    color: var(--md-color-dark);
}


/* =============================================
   9. PAGINATION
   ============================================= */

.md-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.md-pagination-total {
    font-size: 16px;
    color: #5a6b7c;
    font-family: var(--md-font-body);
}

.md-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.md-pagination .page-item {
    margin: 0;
}

.md-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #eef2f6;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0;
}

.md-pagination .page-item.active .page-link,
.md-pagination .page-link:hover {
    background-color: #30485c;
    color: var(--md-color-white);
}

.md-pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: #a0aec0;
    cursor: not-allowed;
}

.md-pagination .page-link-prev,
.md-pagination .page-link-next {
    background-color: transparent;
    color: #5a6b7c;
    font-size: 18px;
    width: auto;
    padding: 0 8px;
}

.md-pagination .page-link-prev:hover,
.md-pagination .page-link-next:hover {
    color: #30485c;
}

.md-pagination .page-item.ellipsis span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    background-color: transparent;
    border: none;
}


/* =============================================
   10. CTA BLOG (Blog Index Banner)
   ============================================= */

.md-cta-blog {
    background-color: var(--md-color-dark);
    padding-top: 79px;
    padding-bottom: 79px;
    position: relative;
    overflow: hidden;
}

.md-cta-blog::before {
    content: '';
    display: block;
    background: var(--md-gradient-carousel-bg);
    opacity: 0.8;
    width: 40%;
    height: 130%;
    top: -40px;
    right: -100px;
    position: absolute;
    transform: matrix(0.98, 0.21, -0.21, 0.98, 0, 0);
    animation: shrink 8s infinite alternate;
}

.md-cta-blog .container {
    position: relative;
    z-index: 1;
}

/* Merged: v2 base + ux eyebrow sizing */
.md-cta-blog__pretitle {
    font-family: var(--md-font-accent);
    font-size: var(--md-font-fluid-eyebrow);
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--md-color-accent);
    margin-bottom: 14px;
}

/* Merged: v2 base + ux title sizing */
.md-cta-blog__title {
    font-family: var(--md-font-display);
    font-size: var(--md-font-fluid-section);
    line-height: 1.2;
    font-weight: 700;
    color: var(--md-color-white);
    margin-bottom: 14px;
}

/* Merged: v2 base + ux body sizing */
.md-cta-blog__body {
    font-size: var(--md-font-fluid-intro);
    line-height: 1.5;
    color: #F4F6F7;
    margin-bottom: 0;
    max-width: 744px;
    font-weight: 500;
}

.md-cta-blog__btn {
    font-family: var(--md-font-accent);
    font-size: 17px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    white-space: nowrap;
}

/* Merged: v2 + ux eyebrow for md-title-alt */
.md-title-alt {
    font-size: var(--md-font-fluid-eyebrow);
    line-height: 1.2;
}


/* =============================================
   11. INLINE CTA (Blog Post)
   ============================================= */

.md-inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px;
    margin: 48px 0;
    border-radius: var(--md-radius-lg);
    background-color: #EDF3F7;
}

.md-inline-cta__content {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--md-color-dark);
}

.md-inline-cta__content > :last-child {
    margin-bottom: 0;
}

/* Merged: v2 base + ux inline CTA content sizing */
.md-inline-cta__content,
.md-inline-cta__content p,
.md-inline-cta__content span,
.md-inline-cta__content strong {
    font-family: var(--md-font-body);
    font-size: clamp(1.125rem, 1.071rem + 0.143vw, 1.2rem);
    line-height: 1.6;
    font-weight: 700;
    color: var(--md-color-dark);
}

.md-inline-cta__button {
    flex: 0 0 auto;
    border-radius: var(--md-radius-pill);
    padding: 16px 40px;
    text-decoration: none;
    white-space: nowrap;
    text-transform: unset !important;
    font-weight: 500 !important;
}


/* =============================================
   12. LOADING STATE
   ============================================= */

.md-entry-date--loading {
    position: relative;
    display: inline-block;
    min-width: 9ch;
    color: transparent !important;
}

.md-entry-date--loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0.9em;
    border-radius: var(--md-radius-pill);
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%);
}


/* =============================================
   13. RESPONSIVE - Tablet & Mobile
   ============================================= */

/* Tablet: share rail + layout (from ux) */
@media (min-width: 48rem) and (max-width: 61.99rem) {
    .md-blog-content-layout {
        gap: 1.875rem;
    }
    .md-blog-content-main {
        max-width: calc(100% - 6.25rem);
    }
    .md-blog-share-rail .sharebtn__container {
        display: flex;
        flex-direction: column;
    }
}

/* Mobile: stacked layout (from ux) */
@media (max-width: 47.93rem) {
    .md-blog-content-layout {
        flex-direction: column;
    }
    .md-blog-content-main {
        width: 100%;
        max-width: 100%;
    }

    .md-blog-body h2,
    .md-blog-body h3 {
        margin-bottom: 0.625rem;
        margin-top: 2rem;
    }

    .md-blog-share-rail {
        position: static;
        order: 2;
        margin: 2.5rem 0 0 0;
        width: 100%;
    }

    .md-blog-share-rail .sharebtn__container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .md-blog-body table td,
    .md-blog-body table th {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .md-blog-hero .carousel-item {
        min-height: 25rem;
    }

    /* Unclip table scroll for mobile */
    .md-blog-body figure.table {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        padding-left: 1rem;
        padding-right: 1rem;
        display: block;
        overflow-x: auto;
    }
}

/* Panel/card responsive at 1024px (from ux) */
@media screen and (max-width: 64rem) {
    .md-blog-panel-overlay span.md-blog-panel-date {
        font-size: 0.875rem;
        margin-left: 0;
        padding-top: 0;
        line-height: 1;
    }

    .md-blog-panel-intro {
        margin-left: 0;
        font-size: 1.125rem;
    }

    .md-overlay-content {
        left: 1.5rem;
        right: 1.5rem;
    }
}

/* Panel responsive at max-width 1024px (from v2) */
@media screen and (max-width: 1024px) {
    .md-blog-panel .md-blog-panel-overlay {
        opacity: 1;
        top: auto;
        bottom: 0px;
        overflow: hidden;
        top: 0;
    }

    .md-blog-panel-overlay span {
        text-align: left;
        padding-top: 20px;
        font-size: 20px;
        line-height: 24px;
    }

    .md-blog-panel-overlay p {
        text-align: left;
        padding-top: 2px;
        margin-left: 20px;
        font-size: 16px;
        line-height: 19px;
        padding-left: 0px;
    }
}

/* Panel/card responsive at max-width 1199.98px (from v2) */
@media screen and (max-width: 1199.98px) {
    .md-blog-panel {
        /* max-height: 300px; */
    }
}

/* Mobile panel (from ux merged w/ v2 767px) */
@media (max-width: 47.93rem) {
    .md-overlay-content {
        left: 1rem;
        right: 1rem;
        padding-bottom: 1.25rem;
    }

    .md-blog-panel-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767px) {
    .md-blog-panel-overlay {
        padding: 0 !important;
    }

    .md-blog-panel--featured {
        min-height: 320px;
    }

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

/* Blog panel on mobile (from v2 575.98px) */
@media screen and (max-width: 575.98px) {
    .md-blog-panel {
        position: relative;
        background-size: cover;
        background-position: center;
        display: block;
        width: 100%;
    }
}

/* Blog layout responsive at 991.98px (from v2) */
@media (max-width: 991.98px) {
    .md-blog-content-layout {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .md-blog-content-main {
        order: 1;
    }

    .md-blog-share-rail {
        position: static;
        order: 2;
    }

    .md-blog-share-rail .sharebtn__container {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .md-inline-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        border-radius: var(--md-radius-3xl);
        gap: 20px;
    }

    .md-inline-cta__content,
    .md-inline-cta__content p,
    .md-inline-cta__content span,
    .md-inline-cta__content strong {
        font-size: 22px;
    }

    .md-inline-cta__button {
        width: 100%;
        text-align: center;
    }

    .md-cta-blog {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .md-cta-blog__btn {
        margin-top: 8px;
    }
}

@media screen and (max-width: 768px) {
    .md-pagination-wrapper {
        gap: 16px;
    }
}
