/* Madiun Today — brand palette & layout fixes */

:root {
    --mtd-primary: #2f318b;
    --mtd-secondary: #00a2e9;
    --mtd-tertiary: #a0d9f6;
    --main-color: #2f318b;
    --heading-color: #2f318b;
    --mtd-section-gap: 36px;
}

/* ---- Layout gambar fallback ---- */
.banner-inner-3.mtd-banner-section {
    margin-top: 0;
    margin-bottom: var(--mtd-section-gap) !important;
    padding-top: var(--mtd-section-gap);
}

.banner-inner-3 {
    --mtd-banner-height: 724px;
}

.banner-inner-3 .mtd-banner-row {
    align-items: stretch;
}

.banner-inner-3 .mtd-banner-row > .mtd-banner-col {
    display: flex;
    flex-direction: column;
}

.banner-inner-3 .mtd-banner-cta-stack,
.banner-inner-3 .mtd-banner-side-stack,
.banner-inner-3 .mtd-banner-mascot-col .thumb,
.banner-inner-3 .mtd-banner-hero-col .single-post-wrap.style-overlay-bg {
    height: var(--mtd-banner-height);
}

.banner-inner-3 .mtd-banner-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner-inner-3 .mtd-banner-cta-stack .thumb {
    flex: 1;
    min-height: 0;
    margin-bottom: 0;
}

.banner-inner-3 .mtd-banner-cta-stack .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-inner-3 .mtd-banner-hero-col .single-post-wrap.style-overlay-bg {
    margin-bottom: 0;
    position: relative;
}

.banner-inner-3 .mtd-banner-side-stack .single-post-wrap.style-overlay {
    position: relative;
}

.banner-inner-3 .mtd-banner-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner-inner-3 .mtd-banner-side-stack .single-post-wrap {
    flex: 1;
    min-height: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.banner-inner-3 .mtd-banner-side-stack .mtd-banner-side-thumb {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
}

.banner-inner-3 .mtd-banner-side-stack .mtd-banner-side-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.banner-inner-3 .mtd-banner-mascot-col .thumb {
    margin-bottom: 0;
    overflow: hidden;
}

.banner-inner-3 .mtd-banner-mascot-col .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.banner-inner-3 {
    margin-top: 0;
}

.banner-inner-3 .single-post-wrap.style-overlay-bg .thumb,
.single-post-wrap.style-overlay .thumb,
.single-post-wrap.style-overlay-bg .thumb {
    min-height: 240px;
    background: linear-gradient(135deg, var(--mtd-tertiary) 0%, #dfe6ef 100%);
}

.banner-inner-3 .mtd-banner-hero-col .single-post-wrap.style-overlay-bg .thumb {
    min-height: 0;
}

.banner-inner-3 .mtd-banner-side-stack .single-post-wrap.style-overlay .thumb {
    min-height: 0;
}

/* ---- Banner hero & side fixed dimensions ---- */
.banner-inner-3 .mtd-banner-hero-col .mtd-banner-hero-thumb {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

.banner-inner-3 .mtd-banner-hero-col .mtd-banner-hero-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.banner-inner-3 .mtd-banner-side-thumb {
    width: 480px;
    max-width: 100%;
    height: 339px;
    min-height: 339px;
    overflow: hidden;
}

.banner-inner-3 .mtd-banner-side-image {
    width: 480px;
    max-width: 100%;
    height: 339px;
    min-height: 339px;
    object-fit: cover;
}

.banner-inner-3 .mtd-banner-side-stack .mtd-banner-side-thumb,
.banner-inner-3 .mtd-banner-side-stack .mtd-banner-side-image {
    width: 100%;
    height: 100%;
    min-height: 0;
}

@media (max-width: 991px) {
    .banner-inner-3.mtd-banner-section {
        padding-top: 24px;
        margin-bottom: 24px !important;
    }

    .mtd-search-area {
        padding-top: 24px;
    }

    .add-area {
        margin-bottom: 24px;
    }

    .banner-inner-3 .mtd-banner-cta-stack,
    .banner-inner-3 .mtd-banner-side-stack,
    .banner-inner-3 .mtd-banner-mascot-col .thumb,
    .banner-inner-3 .mtd-banner-hero-col .single-post-wrap.style-overlay-bg {
        height: auto;
    }

    .banner-inner-3 .mtd-banner-cta-stack {
        flex-direction: row;
    }

    .banner-inner-3 .mtd-banner-hero-col .mtd-banner-hero-thumb {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 843 / 724;
    }

    .banner-inner-3 .mtd-banner-hero-col .mtd-banner-hero-image {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .banner-inner-3 .mtd-banner-side-thumb {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 480 / 339;
    }

    .banner-inner-3 .mtd-banner-side-image {
        width: 100%;
        height: 100%;
        min-height: 0;
    }
}

/* banner hero heights overridden by .mtd-banner-* rules below */

.single-post-wrap .thumb {
    background: var(--mtd-tertiary);
}

.mtd-post-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.single-post-wrap.style-overlay .details,
.single-post-wrap.style-overlay-bg .details,
.banner-inner-3 .single-post-wrap.style-overlay-bg .details {
    left: 0;
    right: 0;
}

.banner-inner-3 .single-post-wrap {
    overflow: hidden;
    border-radius: 6px;
}

.navbar-area.navbar-area-2 {
    position: relative;
    z-index: 20;
}

.banner-area.banner-inner-3 {
    position: relative;
    z-index: 1;
}

.most-view-slider .single-post-wrap.style-overlay .thumb {
    min-height: 280px;
}

/* ---- Topbar brand ---- */
.navbar-area.navbar-area-2 .topbar-area,
.mtd-topbar {
    background: #2f318b !important;
}

.mtd-topbar .topbar-menu ul li,
.mtd-topbar .topbar-menu ul li a,
.mtd-topbar .topbar-right a {
    color: rgba(255, 255, 255, 0.92) !important;
}

.mtd-topbar .topbar-menu ul li a:hover,
.mtd-topbar .topbar-right a:hover {
    color: #a0d9f6 !important;
}

.mtd-topbar .social-area li a {
    color: #fff !important;
}

.mtd-topbar .lang-single-inner select {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    outline: none;
    cursor: default;
    padding-right: 18px;
}

.mtd-topbar .topbar-menu {
    display: inline-block;
}

/* ---- Banner grid (index-3) ---- */
.mtd-banner-area {
    margin-bottom: 40px;
    overflow: hidden;
}

.mtd-banner-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.mtd-banner-thumb-sm {
    flex: 1;
    margin-bottom: 0 !important;
    border-radius: 6px;
    overflow: hidden;
    min-height: 155px;
}

.mtd-banner-thumb-sm img,
.mtd-banner-thumb-tall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mtd-banner-thumb-tall {
    margin-bottom: 0 !important;
    border-radius: 6px;
    overflow: hidden;
    min-height: 480px;
}

.mtd-banner-hero .thumb {
    margin-bottom: 0 !important;
    min-height: 480px;
    border-radius: 6px;
    overflow: hidden;
}

.mtd-banner-hero .thumb img {
    min-height: 480px;
    object-fit: cover;
}

.mtd-banner-side-card {
    margin-bottom: 20px !important;
}

.mtd-banner-side-card:last-child {
    margin-bottom: 0 !important;
}

.mtd-banner-side-card .thumb {
    margin-bottom: 0 !important;
    min-height: 230px;
    border-radius: 6px;
    overflow: hidden;
}

.mtd-banner-side-card .thumb img {
    min-height: 230px;
    object-fit: cover;
}

.banner-inner-3 .author-meta .media-left {
    width: 34px;
    min-width: 34px;
    flex-shrink: 0;
}

.banner-inner-3 .author-meta .media-left img {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    border-radius: 50%;
    display: block;
}

.banner-inner-3 .mtd-banner-hero.style-overlay-bg .details {
    border-color: #2f318b;
}

.banner-inner-3 .single-post-wrap.style-overlay .details .title,
.banner-inner-3 .single-post-wrap.style-overlay .details p {
    color: #fff;
}

@media (max-width: 991px) {
    .mtd-banner-col-side {
        margin-top: 20px;
    }

    .mtd-banner-hero .thumb,
    .mtd-banner-hero .thumb img {
        min-height: 320px;
    }
}

/* ---- Brand colors pada komponen template ---- */
.topbar-area {
    background: var(--mtd-primary);
}

.navbar-area.navbar-area-2 .navbar {
    border-bottom: 3px solid var(--mtd-secondary);
}

.btn-base,
.btn-base:hover,
.btn-base:focus {
    background: var(--mtd-secondary);
    border-color: var(--mtd-secondary);
}

.btn-read-more {
    color: var(--mtd-secondary);
}

.btn-read-more:hover {
    color: var(--mtd-primary);
}

.section-title .title {
    color: var(--mtd-primary);
}

.most-view-news.bg-black {
    background: var(--mtd-primary) !important;
}

/* Tag berita — rotasi warna brand */
.tag-mtd-primary,
.tag-blue {
    background: var(--mtd-primary) !important;
    color: #fff !important;
}

.tag-mtd-secondary,
.tag-red {
    background: var(--mtd-secondary) !important;
    color: #fff !important;
}

.tag-mtd-tertiary,
.tag-green,
.tag-purple,
.tag-light-green {
    background: var(--mtd-tertiary) !important;
    color: var(--mtd-primary) !important;
}

.tag-mtd-primary:hover,
.tag-mtd-secondary:hover,
.tag-mtd-tertiary:hover,
.tag-blue:hover,
.tag-red:hover,
.tag-green:hover,
.tag-purple:hover,
.tag-light-green:hover {
    opacity: 0.92;
    color: #fff !important;
}

/* ---- Madiun This Week spacing ---- */
.most-view-news {
    padding-bottom: 90px !important;
}

.mtd-mtw-section {
    padding-top: 80px;
    padding-bottom: 70px;
    margin-top: 10px;
}

/* ---- Berita Terbaru: card responsif, teks tidak terpotong ---- */
.mtd-berita-terbaru-section .row.mtd-berita-terbaru-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.mtd-berita-terbaru-section .row.mtd-berita-terbaru-row > [class*="col-"] {
    display: flex;
    margin-bottom: 24px;
}

.mtd-berita-terbaru-section .single-post-wrap.style-overlay {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 5px;
}

.mtd-berita-terbaru-section .single-post-wrap.style-overlay .thumb {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: 304 / 450;
    overflow: hidden;
}

.mtd-berita-terbaru-section .single-post-wrap.style-overlay .thumb:after {
    height: 80%;
}

.mtd-berita-terbaru-section .single-post-wrap.style-overlay .thumb .mtd-berita-terbaru-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.mtd-berita-terbaru-section .single-post-wrap.style-overlay .details {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px 18px;
    box-sizing: border-box;
    z-index: 5;
}

.mtd-berita-terbaru-section .single-post-wrap.style-overlay .details .title {
    margin-bottom: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.mtd-berita-terbaru-section .single-post-wrap.style-overlay .post-meta-single ul {
    flex-wrap: wrap;
}

/* ---- Berita Utama: responsif konsisten, crop proporsi 553:528 ---- */
.mtd-berita-utama-news .most-view-slider .single-most-view-inner,
.mtd-berita-utama-news .most-view-slider .active.center .single-most-view-inner {
    width: 100%;
    max-width: 553px;
    margin: 20px auto !important;
    transform: none !important;
}

.mtd-berita-utama-news .most-view-slider .single-post-wrap.style-overlay {
    width: 100%;
    transform: none !important;
    opacity: 1 !important;
}

.mtd-berita-utama-news .most-view-slider .owl-item.active.center .single-post-wrap.style-overlay {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.mtd-berita-utama-news .most-view-slider .single-post-wrap.style-overlay .thumb {
    position: relative;
    width: 100%;
    min-height: 220px;
    aspect-ratio: 553 / 528;
    overflow: hidden;
    border-radius: 5px;
}

.mtd-berita-utama-news .most-view-slider .single-post-wrap.style-overlay .thumb img,
.mtd-berita-utama-news .most-view-slider .single-most-view-inner .thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 553 / 528;
    height: auto;
    object-fit: cover;
    object-position: center center;
    transform: none !important;
}

.mtd-berita-utama-news .most-view-slider .active,
.mtd-berita-utama-news .most-view-slider .active.center,
.mtd-berita-utama-news .most-view-slider .active.center ~ .active {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mtd-berita-utama-news .most-view-slider .active .single-post-wrap.style-overlay .details,
.mtd-berita-utama-news .most-view-slider .active.center .single-post-wrap.style-overlay .details,
.mtd-berita-utama-news .most-view-slider .active.center ~ .active .single-post-wrap.style-overlay .details {
    padding: 18px 20px !important;
}

.mtd-berita-utama-news .most-view-slider .owl-stage-outer {
    margin: 0 auto;
}

.mtd-berita-utama-news .most-view-slider .owl-dots .owl-dot span {
    transition: transform 0.25s ease, background 0.25s ease;
}

.mtd-berita-utama-news .most-view-slider .owl-dots .owl-dot.active span {
    background: var(--mtd-secondary);
    transform: scale(1.2);
}

@supports not (aspect-ratio: 553 / 528) {
    .mtd-berita-utama-news .most-view-slider .single-post-wrap.style-overlay .thumb {
        height: 0;
        padding-bottom: calc(528 / 553 * 100%);
    }

    .mtd-berita-utama-news .most-view-slider .single-post-wrap.style-overlay .thumb img {
        position: absolute;
        inset: 0;
    }
}

/* ---- Madiun This Week: card seragam, teks tidak terpotong ---- */
.mtd-mtw-section .row.custom-gutters-20 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.mtd-mtw-section .row.custom-gutters-20 > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.mtd-mtw-section .mtd-mtw-card {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 5px;
}

.mtd-mtw-section .mtd-mtw-card-thumb {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 370 / 232;
    max-height: 280px;
    overflow: hidden;
}

.mtd-mtw-section .mtd-mtw-card-thumb:after {
    height: 72%;
}

.mtd-mtw-section .mtd-mtw-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.mtd-mtw-section .mtd-mtw-card .details {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px 18px;
    box-sizing: border-box;
    z-index: 5;
}

.mtd-mtw-section .mtd-mtw-card .details .title {
    margin-bottom: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.mtd-mtw-section .mtd-mtw-card .post-meta-single ul {
    flex-wrap: wrap;
}

.mtd-mtw-section .mtd-mtw-card .thumb .tag-base {
    max-width: calc(100% - 34px);
    white-space: normal;
    line-height: 1.3;
}

/* ---- Foto Berita tab section ---- */
.mtd-foto-berita-area .mtd-foto-tab-sidebar {
    background: var(--mtd-secondary);
}

.mtd-foto-berita-area .video-tab-inner-2 li {
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

.mtd-foto-berita-area .video-tab-inner-2 .nav-link {
    transition: background 0.3s ease, opacity 0.3s ease;
    border-radius: 6px;
    padding: 4px;
}

.mtd-foto-berita-area .video-tab-inner-2 .nav-link:hover,
.mtd-foto-berita-area .video-tab-inner-2 .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
}

.mtd-foto-berita-area .mtd-foto-featured .thumb {
    min-height: 420px;
}

.mtd-foto-berita-area .mtd-foto-featured .thumb img {
    min-height: 420px;
    object-fit: cover;
}

.mtd-foto-berita-area .video-tab-inner-2 .media-left img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.mtd-foto-berita-area .mtd-foto-view-btn {
    transition: transform 0.25s ease, background 0.25s ease;
}

.mtd-foto-berita-area .mtd-foto-view-btn:hover {
    transform: scale(1.08);
}

.mtd-foto-berita-area .tab-pane {
    animation: mtdFotoFadeIn 0.45s ease;
}

@keyframes mtdFotoFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .mtd-foto-berita-area .mtd-foto-tab-sidebar {
        margin-top: 0;
    }

    .mtd-foto-berita-area .mtd-foto-featured .thumb,
    .mtd-foto-berita-area .mtd-foto-featured .thumb img {
        min-height: 280px;
    }
}

/* ---- Search box ---- */
.mtd-search-area {
    padding-top: var(--mtd-section-gap);
    padding-bottom: 50px;
    background: #f7f9fc;
}

.mtd-search-box {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    padding: 28px 24px 24px;
    box-shadow: 0 8px 24px rgba(47, 49, 139, 0.06);
}

.mtd-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(120px, 0.7fr);
    gap: 16px;
    align-items: end;
}

.mtd-search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.mtd-search-field label {
    display: block;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6c7a89;
    line-height: 1.2;
}

.mtd-search-field .form-control {
    display: block;
    width: 100%;
    min-width: 0;
}

.mtd-search-field select.form-control {
    appearance: auto;
}

.mtd-search-field--submit .btn-base {
    margin-top: 0;
}

.mtd-search-box .form-control {
    height: 46px;
    border-color: #dce4ee;
    border-radius: 6px;
}

.mtd-search-box .form-control:focus {
    border-color: var(--mtd-secondary);
    box-shadow: 0 0 0 0.15rem rgba(0, 162, 233, 0.2);
}

.mtd-search-box .btn-base {
    height: 46px;
    line-height: 32px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .mtd-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mtd-search-field--submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .mtd-search-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Add banner area ---- */
.add-area {
    padding: 0;
    margin: 0 0 var(--mtd-section-gap);
}

.add-area img {
    border-radius: 8px;
    width: 100%;
    display: block;
}

.add-area .mtd-add-banner-image {
    width: 1274px;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .add-area .mtd-add-banner-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1274 / 220;
    }
}

/* ---- Kategori grid (template tag-area) ---- */
.tag-area .mtd-category-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag-area .mtd-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(47, 49, 139, 0.2);
}

.tag-area .mtd-category-card:focus-visible {
    outline: 2px solid var(--mtd-secondary);
    outline-offset: 3px;
}

.tag-area .mtd-category-card::after {
    background: rgba(47, 49, 139, 0.45);
    transition: background 0.35s ease;
}

.tag-area .mtd-category-card:hover::after {
    background: rgba(0, 162, 233, 0.55);
}

.tag-area .mtd-category-card img {
    width: 100%;
    border-radius: 8px;
    min-height: 140px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tag-area .mtd-category-card:hover img {
    transform: scale(1.06);
}

.tag-area .mtd-category-card .tag-base {
    white-space: nowrap;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag-area .mtd-category-card:hover .tag-base {
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.tag-area .mtd-category-card:hover .tag-mtd-primary,
.tag-area .mtd-category-card:hover .tag-mtd-secondary,
.tag-area .mtd-category-card:hover .tag-mtd-tertiary {
    opacity: 1;
}

.mtd-categories-grid > [class*="col-"] {
    margin-bottom: 6px;
}

/* ---- Homepage skeleton loading ---- */
.mtd-home-page #preloader {
    display: none !important;
}

.mtd-home-skeleton {
    position: fixed;
    inset: 0;
    z-index: 9990;
    overflow-y: auto;
    background: #f4f7fa;
    padding-bottom: 40px;
}

.mtd-home-skeleton.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mtd-home-main--pending {
    /* konten tetap di DOM; skeleton menutupi sementara */
}

.mtd-home-main:not(.mtd-home-main--pending) {
    animation: mtd-home-fade-in 0.35s ease;
}

@keyframes mtd-home-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mtd-home-skeleton__banner {
    height: clamp(220px, 38vw, 420px);
    margin-bottom: 24px;
}

.mtd-home-skeleton__block {
    padding: 28px 0 8px;
}

.mtd-home-skeleton__dark {
    background: #0f123a;
    padding: 36px 0;
    margin: 12px 0;
}

.mtd-home-skeleton__title {
    width: 220px;
    height: 18px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.mtd-home-skeleton__dark .mtd-home-skeleton__title {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.08) 75%);
    background-size: 200% 100%;
}

.mtd-home-skeleton__card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e8eef3;
}

.mtd-home-skeleton__card-img {
    height: 160px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.mtd-home-skeleton__slider {
    height: 280px;
    border-radius: 8px;
    opacity: 0.85;
}

.mtd-home-skeleton__foto {
    height: 320px;
    border-radius: 8px;
    opacity: 0.85;
}

.mtd-home-skeleton__foto-tab {
    height: 72px;
    border-radius: 6px;
    opacity: 0.85;
}

.mtd-home-skeleton__cat {
    height: 100px;
    border-radius: 8px;
}

.mtd-home-page .thumb.mtd-img-loading,
.mtd-home-page .mtd-category-card.mtd-img-loading,
.mtd-home-page .media-left.mtd-img-loading,
.mtd-home-page .add-area.mtd-img-loading {
    position: relative;
    background: #eef2f6;
    overflow: hidden;
}

.mtd-home-page .thumb.mtd-img-loading::after,
.mtd-home-page .mtd-category-card.mtd-img-loading::after,
.mtd-home-page .media-left.mtd-img-loading::after,
.mtd-home-page .add-area.mtd-img-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%);
    background-size: 200% 100%;
    animation: mtd-shimmer 1.4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.mtd-home-page .thumb.mtd-img-loading img,
.mtd-home-page .mtd-category-card.mtd-img-loading img,
.mtd-home-page .media-left.mtd-img-loading img,
.mtd-home-page .add-area.mtd-img-loading img {
    opacity: 0;
}

.mtd-home-page .thumb.mtd-img-loaded img,
.mtd-home-page .mtd-category-card.mtd-img-loaded img,
.mtd-home-page .media-left.mtd-img-loaded img,
.mtd-home-page .add-area.mtd-img-loaded img {
    opacity: 1;
    transition: opacity 0.35s ease;
}

.mtd-home-page .thumb.mtd-img-loaded::after,
.mtd-home-page .mtd-category-card.mtd-img-loaded::after,
.mtd-home-page .media-left.mtd-img-loaded::after,
.mtd-home-page .add-area.mtd-img-loaded::after {
    display: none;
}

/* ---- RSS Feed + GPR Kominfo (homepage) ---- */
.mtd-news-feed-gpr .how-news {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    padding: 24px 24px 8px;
    box-shadow: 0 8px 24px rgba(47, 49, 139, 0.04);
}

.mtd-rss-feed-panel .single-post-list-wrap.style-two {
    border-bottom: 1px solid #f0f2f3;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.mtd-rss-feed-panel .single-post-list-wrap.style-two:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 8px;
}

.mtd-rss-feed-panel .media-left {
    flex: 0 0 88px;
    max-width: 88px;
}

.mtd-rss-feed-panel .media-left img {
    width: 88px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

.mtd-rss-feed-panel .details .title a {
    color: var(--heading-color);
    transition: color 0.2s ease;
}

.mtd-rss-feed-panel .details .title a:hover {
    color: var(--main-color);
}

.mtd-rss-feed-panel .details p {
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    margin-bottom: 0;
}

.mtd-rss-empty {
    padding: 24px;
    text-align: center;
    color: #666;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #dbe3ea;
}

.mtd-skeleton-shimmer {
    background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%);
    background-size: 200% 100%;
    animation: mtd-shimmer 1.4s ease-in-out infinite;
}

@keyframes mtd-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mtd-skeleton-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.mtd-skeleton-thumb {
    flex: 0 0 88px;
    height: 72px;
    border-radius: 6px;
}

.mtd-skeleton-body {
    flex: 1;
}

.mtd-skeleton-line {
    height: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mtd-skeleton-line--short {
    width: 35%;
}

.mtd-skeleton-line--medium {
    width: 85%;
}

.mtd-gpr-panel {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(47, 49, 139, 0.04);
}

.mtd-gpr-note {
    font-size: 13px;
    color: #777;
}

.mtd-gpr-widget-wrap {
    position: relative;
    min-height: 220px;
}

.mtd-gpr-widget-container {
    width: 100%;
    min-width: 300px;
    max-width: 780px;
    margin: 0 auto;
}

.mtd-gpr-skeleton {
    width: 100%;
    max-width: 500px;
    height: 280px;
    border-radius: 8px;
    margin: 0 auto;
}

.mtd-gpr-fallback {
    text-align: center;
    padding: 28px 16px;
    background: #f8fafc;
    border: 1px dashed #dbe3ea;
    border-radius: 8px;
    color: #555;
}

.mtd-gpr-fallback i {
    font-size: 28px;
    color: var(--main-color);
    margin-bottom: 12px;
}

.mtd-gpr-fallback p {
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .mtd-gpr-panel {
        margin-top: 24px;
    }

    .mtd-gpr-widget-container {
        max-width: 100%;
    }
}

.mtd-stats-area {
    background: linear-gradient(135deg, #008fd7 0%, #006da8 100%) !important;
    padding: 56px 0 60px;
}

.mtd-stats-header {
    margin-bottom: 32px;
}

.mtd-stats-title {
    color: #f7fbfd;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.mtd-stats-subtitle {
    color: #a0d9f6;
    font-size: 15px;
    margin-bottom: 0;
}

.mtd-stats-row {
    text-align: center;
}

.mtd-stat-card {
    background: rgba(247, 251, 253, 0.14);
    border: 1px solid rgba(160, 217, 246, 0.45);
    border-radius: 14px;
    padding: 28px 18px 24px;
    height: 100%;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.mtd-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(247, 251, 253, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.mtd-stat-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(247, 251, 253, 0.22);
    color: #f7fbfd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mtd-stats-area .mtd-stats-number {
    color: #f7fbfd;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
}

.mtd-stats-area .mtd-stats-label {
    color: #a0d9f6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.mtd-stats-row > [class*="col-"] {
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .mtd-stats-row > [class*="col-lg-3"]:not(:last-child) .mtd-stat-card {
        position: relative;
    }

    .mtd-stats-row > [class*="col-lg-3"]:not(:last-child) .mtd-stat-card::after {
        content: "";
        position: absolute;
        top: 22%;
        right: -12px;
        width: 1px;
        height: 56%;
        background: rgba(160, 217, 246, 0.45);
    }

    .mtd-stats-row > [class*="col-lg-3"] {
        margin-bottom: 0;
    }
}

.footer-area.bg-black {
    background: var(--mtd-primary) !important;
}

.back-to-top .back-top {
    background: var(--mtd-secondary);
}

/* Category page */
.mtd-page-title.page-title-area {
    background: linear-gradient(135deg, rgba(47, 49, 139, 0.08) 0%, rgba(0, 162, 233, 0.12) 100%);
}

.mtd-page-title .breadcrumb-inner .page-title {
    color: var(--mtd-primary);
    font-weight: 700;
}

.mtd-page-title .breadcrumb-inner .page-list li a {
    color: var(--mtd-secondary);
}

.mtd-page-title .breadcrumb-inner .page-list li a:hover {
    color: var(--mtd-primary);
}

.cat-page-area .col-lg-9 .single-post-wrap.style-box .thumb {
    width: 100%;
    max-width: 100%;
    height: 232px;
    overflow: hidden;
}

.cat-page-area .col-lg-9 .single-post-wrap.style-box .thumb img {
    width: 100%;
    max-width: 100%;
    height: 232px;
    object-fit: cover;
}

/* ---- Kategori: tinggi card seragam ---- */
.cat-page-area .mtd-category-posts-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.cat-page-area .mtd-category-posts-row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.cat-page-area .mtd-category-post-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.cat-page-area .mtd-category-post-card .details {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.cat-page-area .mtd-category-post-card .details p {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.cat-page-area .mtd-category-post-card .details .btn {
    margin-top: auto;
}

.mtd-cat-sidebar-tabs .nxp-tab-post-two ul {
    display: flex;
    width: 100%;
}

.mtd-cat-sidebar-tabs .nxp-tab-post-two ul li {
    flex: 1;
    width: auto;
}

.mtd-cat-sidebar-tabs .nxp-tab-post-two ul li a {
    display: block;
    width: 100%;
}

.cat-page-area .mtd-cat-sidebar-tabs .single-post-list-wrap .media-left {
    flex: 0 0 100px;
    max-width: 100px;
}

.cat-page-area .mtd-cat-sidebar-tabs .single-post-list-wrap .media-left img {
    width: 100px;
    height: 85px;
    object-fit: cover;
}

.cat-page-area .widget-category .single-category-inner .tag-base.active {
    box-shadow: 0 0 0 2px var(--mtd-secondary);
}

.mtd-pagination-wrap .pagination {
    justify-content: center;
}

.mtd-pagination-wrap .page-item.active .page-link {
    background-color: var(--mtd-primary);
    border-color: var(--mtd-primary);
}

.mtd-pagination-wrap .page-link {
    color: var(--mtd-primary);
}

.mtd-pagination-wrap .page-link:hover {
    color: var(--mtd-secondary);
}

/* Admin post preview */
.mtd-preview-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(90deg, #c62828 0%, #e53935 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(198, 40, 40, 0.35);
}

.mtd-preview-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    min-height: 44px;
    padding: 10px 0;
    font-size: 14px;
}

.mtd-preview-bar__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mtd-preview-bar__text {
    opacity: 0.95;
}

.mtd-preview-bar__link {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mtd-preview-bar__link:hover {
    color: #fff;
    opacity: 0.85;
}

/* Post detail */
.blog-page-area .mtd-post-article {
    max-width: 100%;
}

.blog-page-area .mtd-post-title {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.35;
    color: #fff;
}

.blog-page-area .mtd-post-hero .thumb img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.blog-page-area .mtd-post-hero .post-meta-single {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(15, 18, 58, 0.72);
    backdrop-filter: blur(4px);
}

.blog-page-area .mtd-post-hero .post-meta-single ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.blog-page-area .mtd-post-hero .post-meta-single ul li,
.blog-page-area .mtd-post-hero .post-meta-single ul li p,
.blog-page-area .mtd-post-hero .post-meta-single ul li i {
    color: #fff !important;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.blog-page-area .mtd-post-hero .post-meta-single ul li.mtd-post-views {
    font-size: 14px;
}

.blog-page-area .mtd-post-hero .post-meta-single .tag-base {
    text-shadow: none;
}

.blog-page-area .mtd-reading-panel {
    margin-top: 28px;
    padding: 28px 30px;
    background: #fafbfd;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(47, 49, 139, 0.04);
}

@media (max-width: 767px) {
    .blog-page-area .mtd-reading-panel {
        padding: 20px 18px;
    }
}

.blog-page-area .mtd-post-content {
    margin-top: 0;
    color: #3a3a3a;
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.blog-page-area .blog-details-page-inner .single-blog-inner .mtd-post-content p,
.blog-page-area .blog-details-page-inner .single-blog-inner p,
.blog-page-area .mtd-post-content p {
    margin-top: 0 !important;
    margin-bottom: 1em !important;
    color: #444;
}

.blog-page-area .mtd-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(47, 49, 139, 0.08);
}

.blog-page-area .mtd-section-heading h5 {
    color: var(--mtd-primary);
    font-weight: 700;
}

.blog-page-area .mtd-section-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 162, 233, 0.12);
    color: var(--mtd-primary);
    font-size: 12px;
    font-weight: 600;
}

.blog-page-area .mtd-post-gallery-slider .mtd-gallery-slide {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    overflow: hidden;
}

.blog-page-area .mtd-gallery-preview {
    position: relative;
    display: block;
    overflow: hidden;
}

.blog-page-area .mtd-gallery-preview img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-page-area .mtd-gallery-preview:hover img {
    transform: scale(1.03);
}

.blog-page-area .mtd-gallery-zoom {
    position: absolute;
    inset: auto 16px 16px auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(47, 49, 139, 0.88);
    color: #fff;
    font-size: 13px;
}

.blog-page-area .mtd-gallery-slide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.blog-page-area .mtd-gallery-index {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.blog-page-area .mtd-post-gallery-slider .owl-nav button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--mtd-primary) !important;
    color: #fff !important;
}

.blog-page-area .mtd-post-gallery-slider .owl-dots {
    margin-top: 12px;
}

.blog-page-area .mtd-attachment-list {
    display: grid;
    gap: 14px;
}

.blog-page-area .mtd-attachment-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 10px;
    padding: 16px;
}

.blog-page-area .mtd-attachment-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(47, 49, 139, 0.08);
    color: var(--mtd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.blog-page-area .mtd-attachment-name {
    margin-bottom: 4px;
    color: var(--mtd-primary);
    font-size: 15px;
    word-break: break-word;
}

.blog-page-area .mtd-attachment-meta {
    color: #667085;
    font-size: 13px;
}

.blog-page-area .mtd-attachment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.blog-page-area .mtd-attachment-preview {
    grid-column: 1 / -1;
    margin-top: 12px;
    border-top: 1px solid #edf1f5;
    padding-top: 12px;
    display: none;
}

.blog-page-area .mtd-attachment-preview.show {
    display: block;
}

.blog-page-area .mtd-attachment-preview iframe {
    width: 100%;
    min-height: 420px;
    border: 1px solid #e8eef3;
    border-radius: 8px;
}

.blog-page-area .mtd-attachment-preview img {
    border-radius: 8px;
}

.blog-page-area .mtd-preview-toggle.active {
    background: var(--mtd-primary);
    color: #fff;
    border-color: var(--mtd-primary);
}

@media (max-width: 767px) {
    .blog-page-area .mtd-attachment-card {
        grid-template-columns: 1fr;
    }

    .blog-page-area .mtd-attachment-actions {
        justify-content: flex-start;
    }

    .blog-page-area .mtd-gallery-preview img {
        height: 260px;
    }
}


.blog-page-area .mtd-post-content p:last-child {
    margin-bottom: 0;
}

.blog-page-area .mtd-post-content p:empty {
    display: none;
    margin: 0;
}

.blog-page-area .mtd-post-content h1,
.blog-page-area .mtd-post-content h2,
.blog-page-area .mtd-post-content h3,
.blog-page-area .mtd-post-content h4,
.blog-page-area .mtd-post-content h5,
.blog-page-area .mtd-post-content h6 {
    margin-top: 1.4em;
    margin-bottom: 0.6em;
    line-height: 1.35;
    color: var(--mtd-primary);
    text-align: left;
}

.blog-page-area .mtd-post-content > :first-child {
    margin-top: 0;
}

.blog-page-area .mtd-post-content ul,
.blog-page-area .mtd-post-content ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.blog-page-area .mtd-post-content li {
    margin-bottom: 0.35em;
}

.blog-page-area .mtd-post-content blockquote {
    margin: 1.25em 0;
    padding: 1em 1.25em;
    border-left: 4px solid var(--mtd-secondary);
    background: rgba(0, 162, 233, 0.06);
}


.blog-page-area .mtd-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.blog-page-area .author-area .media img {
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
}

.blog-page-area .meta .tags a {
    color: var(--mtd-secondary);
}

.blog-page-area .meta .tags a:hover {
    color: var(--mtd-primary);
}

.blog-page-area .related-post .single-post-wrap .thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mtd-search-popup-error {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(220, 53, 69, 0.12);
    color: #842029;
    font-size: 13px;
    line-height: 1.4;
}
