/*
Theme Name: MTsS Riyadlatul Ulum
Theme URI: https://mtssru.sch.id
Description: Tema kustom resmi portal informasi MTsS Riyadlatul Ulum. Didesain cepat, mandiri, ringan, modern, dan elegan khusus untuk madrasah tanpa ketergantungan plugin eksternal.
Author: Tim IT MTsS Riyadlatul Ulum
Author URI: https://mtssru.sch.id
Version: 1.4.3
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: madrasah, education, portal, school, responsive, fast, custom-menu, featured-images
Text Domain: mtssru
*/

/* ==========================================================================
   1. DESIGN TOKENS & CSS VARIABLES (Aksen Warna Asli Dipertahankan)
   ========================================================================== */
:root {
    /* Palet Warna Asli */
    --mts-green: #1b5e20;
    --mts-green-dark: #144517;
    --mts-green-light: #bcd6ad;
    --mts-green-bright: #81d742;
    --mts-red: #dd3333;
    --mts-red-dark: #b82525;
    --mts-orange: #dd9933;
    --mts-orange-dark: #c58226;
    --mts-dark: #1e1e1e;
    --mts-darker: #151515;
    --mts-dark-surface: #262626;
    --mts-text: #2c3e50;
    --mts-text-muted: #64748b;
    --mts-bg-light: #f8fafc;
    --mts-border: #e2e8f0;

    /* Aksen Modern & Soft Tints */
    --mts-green-soft: rgba(27, 94, 32, 0.08);
    --mts-green-glow: rgba(27, 94, 32, 0.18);
    --mts-red-soft: rgba(221, 51, 51, 0.08);
    --mts-orange-soft: rgba(221, 153, 51, 0.12);
    --mts-dark-slate: #111827;
    --mts-dark-card: #1f2937;

    /* Radius & Elevasi Modern */
    --mts-radius-sm: 8px;
    --mts-radius: 12px;
    --mts-radius-lg: 18px;
    --mts-radius-xl: 24px;
    --mts-radius-pill: 9999px;

    /* Bayangan Halus Bertingkat */
    --mts-shadow-sm: 0 2px 6px -1px rgba(0, 0, 0, 0.04), 0 1px 4px -1px rgba(0, 0, 0, 0.02);
    --mts-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --mts-shadow-md: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    --mts-shadow-lg: 0 20px 35px -8px rgba(0, 0, 0, 0.12);

    /* Transisi & Font */
    --mts-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --mts-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--mts-font);
    color: var(--mts-text);
    background-color: #ffffff;
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--mts-green);
    color: #ffffff;
}

a {
    color: var(--mts-green);
    text-decoration: none;
    transition: var(--mts-transition);
}

a:hover {
    color: var(--mts-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
}

.mts-container {
    width: 100%;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   3. HEADER SECTION
   ========================================================================== */
.mts-header {
    background: #ffffff;
    position: relative;
    z-index: 1000;
}

/* Topbar Merah (#dd3333) */
.mts-topbar {
    background: linear-gradient(90deg, var(--mts-red) 0%, var(--mts-red-dark) 100%);
    color: #ffffff;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mts-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mts-topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 500;
}

.mts-topbar-date, .mts-topbar-clock {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mts-topbar-clock {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 10px;
    border-radius: var(--mts-radius-pill);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.mts-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mts-topbar-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 600;
    font-size: 12.5px;
    background: rgba(255, 255, 255, 0.18);
    padding: 3px 12px;
    border-radius: var(--mts-radius-pill);
    transition: var(--mts-transition);
}

.mts-topbar-contact:hover {
    background: #ffffff;
    color: var(--mts-red-dark);
}

.mts-topbar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
}

.mts-topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mts-topbar-socials a {
    color: #ffffff;
    font-size: 13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mts-transition);
}

.mts-topbar-socials a:hover {
    background: #ffffff;
    color: var(--mts-red);
    transform: translateY(-2px);
}

/* Midbar Identitas Resmi Madrasah */
.mts-midbar {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid var(--mts-border);
}

.mts-midbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mts-brand-area {
    display: flex;
    align-items: center;
}

.mts-brand-link {
    display: inline-block;
}

.mts-logo-img {
    max-height: 85px;
    width: auto;
    object-fit: contain;
}

/* Mobile Header Actions (Hidden on Desktop) */
.mts-mobile-header-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.mts-mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--mts-transition);
}

.mts-mobile-search-btn {
    background: #f1f5f9;
    color: var(--mts-text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 15px;
}

.mts-mobile-search-btn:hover {
    background: var(--mts-green-soft);
    color: var(--mts-green);
}

.mts-mobile-nav-toggle {
    background: var(--mts-green);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: var(--mts-radius-pill);
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.25);
}

.mts-mobile-nav-toggle:hover {
    background: var(--mts-green-dark);
}

.mts-mobile-nav-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kredibilitas Madrasah Pills */
.mts-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mts-info-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 4px 10px;
    border-radius: 0;
    transition: var(--mts-transition);
}

.mts-info-pill:hover {
    transform: translateY(-1px);
}

.mts-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--mts-green-soft);
    color: var(--mts-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mts-info-text {
    display: flex;
    flex-direction: column;
}

.mts-info-label {
    font-size: 11px;
    color: var(--mts-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.mts-info-val {
    font-size: 13.5px;
    color: var(--mts-green-dark);
    font-weight: 700;
}

/* Navbar Hijau (#1b5e20) */
.mts-navbar {
    background-color: var(--mts-green);
    height: 54px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.15);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

body.admin-bar .mts-navbar {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .mts-navbar {
        top: 46px;
    }
}

.mts-navbar.is-scrolled {
    background-color: rgba(27, 94, 32, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

/* Brand Identitas Ringkas saat Sticky Navbar Aktif */
.mts-sticky-brand {
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: 20px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.mts-sticky-brand:hover {
    opacity: 0.92;
}

.mts-sticky-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

.mts-sticky-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.mts-navbar.is-scrolled .mts-sticky-brand {
    display: flex;
    animation: mtsFadeIn 0.25s ease;
}

@keyframes mtsFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.mts-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.mts-main-menu {
    display: flex;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.mts-main-menu > li {
    position: relative;
    height: 100%;
}

.mts-main-menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    color: #ffffff;
    font-weight: 600;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
}

.mts-main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--mts-orange);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 3px 3px 0 0;
}

.mts-main-menu > li:hover > a,
.mts-main-menu > li.current-menu-item > a {
    background-color: var(--mts-green-dark);
    color: #ffffff;
}

.mts-main-menu > li:hover > a::after,
.mts-main-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Modern Dropdown Menu */
.mts-main-menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    box-shadow: var(--mts-shadow-md);
    border-radius: 0 0 var(--mts-radius) var(--mts-radius);
    border-top: 3px solid var(--mts-red);
    list-style: none;
    padding: 8px 0;
    z-index: 100;
    animation: mtsDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mts-main-menu li:hover > ul.sub-menu {
    display: block;
}

.mts-main-menu ul.sub-menu li a {
    display: block;
    padding: 11px 20px;
    color: var(--mts-text);
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 1px solid #f8fafc;
    transition: var(--mts-transition);
}

.mts-main-menu ul.sub-menu li a:hover {
    background: var(--mts-green-soft);
    color: var(--mts-green);
    padding-left: 24px;
}

/* Nav Actions & Search Button */
.mts-nav-actions {
    display: flex;
    align-items: center;
}

.mts-search-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--mts-radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--mts-transition);
}

.mts-search-btn:hover {
    background: #ffffff;
    color: var(--mts-green-dark);
}

.mts-search-btn-label {
    font-size: 13px;
    font-weight: 600;
}

.mts-mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: var(--mts-radius-pill);
    align-items: center;
    gap: 8px;
}

.mts-toggle-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Mobile Drawer */
.mts-mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    box-shadow: var(--mts-shadow-lg);
    transition: var(--mts-transition);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mts-mobile-drawer.active {
    left: 0;
}

.mts-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
    transition: opacity 0.3s ease;
}

.mts-drawer-overlay.active {
    display: block;
}

.mts-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--mts-border);
    background: #ffffff;
}

.mts-drawer-brand img {
    max-height: 48px;
}

.mts-drawer-close {
    background: #f1f5f9;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #475569;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mts-transition);
}

.mts-drawer-close:hover {
    background: var(--mts-red-soft);
    color: var(--mts-red);
}

.mts-drawer-content {
    padding: 16px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Drawer Search */
.mts-drawer-search-form {
    margin-bottom: 12px;
}

.mts-drawer-search-wrap {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius-pill);
    padding: 3px 5px 3px 12px;
    gap: 8px;
    transition: var(--mts-transition);
}

.mts-drawer-search-wrap:focus-within {
    border-color: var(--mts-green);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.mts-drawer-search-wrap i {
    color: var(--mts-text-muted);
    font-size: 13px;
}

.mts-drawer-search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: var(--mts-text);
}

.mts-drawer-search-submit {
    background: var(--mts-green);
    color: #ffffff;
    border: none;
    border-radius: var(--mts-radius-pill);
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--mts-transition);
}

.mts-drawer-search-submit:hover {
    background: var(--mts-green-dark);
}

/* Drawer Quicklink PPDB */
.mts-drawer-quicklinks {
    margin-bottom: 16px;
}

.mts-drawer-quicklink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--mts-radius);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--mts-transition);
}

.mts-quicklink-ppdb {
    background: linear-gradient(135deg, var(--mts-green) 0%, var(--mts-green-dark) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.22);
}

.mts-quicklink-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.mts-quicklink-ppdb:hover .mts-quicklink-arrow {
    transform: translateX(4px);
}

.mts-drawer-menu-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    color: var(--mts-text-muted);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--mts-border);
}

.mts-mobile-menu {
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
}

.mts-mobile-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.mts-mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    color: var(--mts-text);
    font-weight: 600;
    font-size: 14px;
    transition: var(--mts-transition);
}

.mts-mobile-menu a:hover {
    color: var(--mts-green);
    padding-left: 6px;
}

.mts-drawer-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--mts-border);
}

.mts-drawer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.mts-drawer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--mts-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--mts-transition);
}

.mts-drawer-socials a:hover {
    background: var(--mts-green);
    color: #ffffff;
    transform: translateY(-2px);
}

.mts-drawer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--mts-text-muted);
    margin-bottom: 12px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: var(--mts-radius-sm);
}

.mts-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--mts-green);
    color: #ffffff;
    padding: 11px;
    border-radius: var(--mts-radius-sm);
    font-weight: 600;
    font-size: 13px;
}

/* Modern Search Popup Modal */
.mts-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.mts-search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
}

.mts-search-modal-box {
    position: relative;
    width: 92%;
    max-width: 580px;
    background: #ffffff;
    border-radius: var(--mts-radius-lg);
    box-shadow: var(--mts-shadow-lg);
    padding: 28px 24px;
    z-index: 10;
    animation: mtsModalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mtsModalScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.mts-search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.mts-search-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--mts-green-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mts-search-modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mts-transition);
}

.mts-search-modal-close:hover {
    background: var(--mts-red-soft);
    color: var(--mts-red);
}

.mts-search-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--mts-border);
    border-radius: var(--mts-radius);
    padding: 4px 6px 4px 16px;
    transition: var(--mts-transition);
}

.mts-search-input-wrap:focus-within {
    border-color: var(--mts-green);
    box-shadow: 0 0 0 4px var(--mts-green-glow);
}

.mts-search-icon {
    color: var(--mts-text-muted);
    font-size: 16px;
    margin-right: 10px;
}

.mts-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 15.5px;
    color: var(--mts-text);
    padding: 10px 0;
}

.mts-search-submit {
    background: var(--mts-green);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--mts-transition);
}

.mts-search-submit:hover {
    background: var(--mts-green-dark);
}

.mts-search-suggestions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mts-suggestion-label {
    font-size: 12px;
    color: var(--mts-text-muted);
    font-weight: 600;
}

.mts-suggestion-tags a {
    display: inline-block;
    background: #f1f5f9;
    color: var(--mts-text);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--mts-radius-pill);
    margin: 2px 4px;
}

.mts-suggestion-tags a:hover {
    background: var(--mts-green-soft);
    color: var(--mts-green);
}

/* ==========================================================================
   4. BREAKING NEWS TICKER (MODERN CAPSULE)
   ========================================================================== */
.mts-ticker-wrapper {
    background: #ffffff;
    border: 1px solid var(--mts-border);
    margin: 20px 0;
    border-radius: var(--mts-radius-pill);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 44px;
    box-shadow: var(--mts-shadow-sm);
}

.mts-ticker-badge {
    background: linear-gradient(90deg, var(--mts-red) 0%, var(--mts-red-dark) 100%);
    color: #ffffff;
    font-weight: 800;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.8px;
    flex-shrink: 0;
    border-radius: var(--mts-radius-pill) 0 0 var(--mts-radius-pill);
}

.mts-ticker-badge-text-full {
    display: inline;
}

.mts-ticker-badge-text-mobile {
    display: none;
}

.mts-ticker-pulse {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
    animation: mtsPulse 1.6s infinite;
}

@keyframes mtsPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.mts-ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 0 16px;
}

.mts-ticker-items {
    display: inline-block;
    animation: mtsTickerScroll 28s linear infinite;
}

.mts-ticker-items:hover {
    animation-play-state: paused;
}

.mts-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 45px;
    font-size: 13.5px;
}

.mts-ticker-ico {
    color: var(--mts-red);
    font-size: 12px;
}

.mts-ticker-item a {
    color: var(--mts-text);
    font-weight: 600;
}

.mts-ticker-item a:hover {
    color: var(--mts-red);
}

.mts-ticker-item .mts-ticker-date {
    color: var(--mts-text-muted);
    font-size: 11.5px;
    margin-left: 4px;
}

@keyframes mtsTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   5. HERO SECTION & VIDEO SHOWCASE (Modern, Spacious & Premium)
   ========================================================================== */
.mts-hero-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 15px 0 30px;
    margin-bottom: 25px;
    box-shadow: none;
    position: relative;
}

.mts-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Pill Tag - Glowing Modern Badge */
.mts-hero-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(22, 101, 52, 0.2);
    color: var(--mts-green-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--mts-radius-pill);
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.06);
}

.mts-hero-pill-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
    animation: mtsDotPulse 2s infinite ease-in-out;
}

@keyframes mtsDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

.mts-hero-main-title {
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.mts-text-highlight {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.mts-hero-desc {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 96%;
}

.mts-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.mts-btn-primary {
    background: linear-gradient(135deg, var(--mts-green) 0%, var(--mts-green-dark) 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--mts-radius-pill);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--mts-transition);
    text-decoration: none;
}

.mts-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(27, 94, 32, 0.35);
    color: #ffffff;
}

.mts-btn-secondary {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    padding: 11px 22px;
    border-radius: var(--mts-radius-pill);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--mts-transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.mts-btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--mts-green);
    color: var(--mts-green);
    transform: translateY(-2px);
}

/* Compact Modern Stats */
.mts-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid rgba(22, 101, 52, 0.1);
    padding-top: 20px;
}

.mts-stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 6px 0;
    transition: var(--mts-transition);
}

.mts-stat-box:hover {
    transform: translateY(-1px);
}

.mts-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(22, 101, 52, 0.08);
    color: var(--mts-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.mts-stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mts-stat-info strong {
    font-size: 13px;
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mts-stat-info span {
    font-size: 11px;
    color: var(--mts-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Video Card Right - Sleek Showcase */
.mts-hero-video-card {
    background: #ffffff;
    border: 1px solid rgba(22, 101, 52, 0.12);
    border-radius: var(--mts-radius-lg);
    overflow: hidden;
    box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(22, 101, 52, 0.06);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mts-hero-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -6px rgba(0, 0, 0, 0.14), 0 8px 18px rgba(22, 101, 52, 0.08);
}

.mts-video-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: var(--mts-radius-pill);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mts-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000000;
}

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

.mts-yt-facade {
    cursor: pointer;
    overflow: hidden;
}

.mts-yt-facade img.mts-yt-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.mts-yt-facade:hover img.mts-yt-thumb {
    transform: scale(1.04);
    filter: brightness(0.88);
}

.mts-yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 46px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}

.mts-yt-facade:hover .mts-yt-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.65);
}

.mts-video-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.mts-video-caption-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.mts-video-caption-text {
    min-width: 0;
}

.mts-video-caption-text strong {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
    display: block;
    line-height: 1.35;
}

.mts-video-caption-text p {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   6. PPDB CALLOUT BANNER (MODERN FULL-WIDTH)
   ========================================================================== */
.mts-ppdb-banner {
    background: linear-gradient(135deg, var(--mts-green-dark) 0%, var(--mts-green) 100%);
    border-radius: var(--mts-radius-lg);
    padding: 28px 36px;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 24px rgba(20, 69, 23, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mts-ppdb-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(221, 153, 51, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.mts-ppdb-info {
    max-width: 680px;
}

.mts-ppdb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--mts-radius-pill);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.mts-ppdb-heading {
    font-size: 23px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 8px;
}

.mts-ppdb-sub {
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

.mts-ppdb-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mts-btn-ppdb {
    background: var(--mts-orange);
    color: #ffffff;
    padding: 13px 26px;
    border-radius: var(--mts-radius-pill);
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: var(--mts-transition);
    white-space: nowrap;
}

.mts-btn-ppdb:hover {
    background: #ffffff;
    color: var(--mts-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.mts-ppdb-note {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   7. FEATURED NEWS BOX (CONTAINED & PROPORTIONAL)
   ========================================================================== */
.mts-featured-box {
    background: transparent;
    border-radius: 0;
    padding: 0 0 35px;
    color: var(--mts-text);
    margin-bottom: 40px;
    border: none;
    box-shadow: none;
}

.mts-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mts-border);
}

.mts-featured-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mts-featured-title h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--mts-green-dark);
    margin: 0;
}

.mts-featured-more {
    color: var(--mts-green);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--mts-transition);
}

.mts-featured-more:hover {
    color: var(--mts-green-dark);
    transform: translateX(3px);
}

.mts-featured-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.mts-hero-featured {
    position: relative;
    border-radius: var(--mts-radius);
    overflow: hidden;
    height: 360px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mts-hero-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.mts-hero-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mts-hero-featured:hover img {
    transform: scale(1.04);
}

.mts-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(15, 23, 42, 0) 100%);
    padding: 24px 22px 18px;
}

.mts-hero-badge {
    background-color: var(--mts-red);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: var(--mts-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.mts-hero-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
}

.mts-hero-title a {
    color: #ffffff;
}

.mts-hero-title a:hover {
    color: var(--mts-green-light);
}

.mts-hero-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mts-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Side list in featured box - Perfectly Stretched to 360px */
.mts-featured-sidelist {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    height: 360px;
}

.mts-featured-item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius);
    padding: 10px 14px;
    transition: var(--mts-transition);
    flex: 1;
}

.mts-featured-item:hover {
    background: #ffffff;
    border-color: var(--mts-green-light);
    transform: translateX(4px);
    box-shadow: var(--mts-shadow-sm);
}

.mts-featured-thumb {
    width: 85px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.mts-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mts-featured-info {
    flex-grow: 1;
    min-width: 0;
}

.mts-featured-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mts-featured-info h4 a {
    color: var(--mts-text);
}

.mts-featured-info h4 a:hover {
    color: var(--mts-green);
}

.mts-featured-info .mts-date {
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   8. MAIN CONTENT LAYOUT & MODERN CARDS
   ========================================================================== */
.mts-main-layout {
    display: grid;
    grid-template-columns: 2.35fr 1fr;
    gap: 36px;
    margin-bottom: 50px;
}

.mts-content-area {
    min-width: 0;
}

/* Modern Section Heading */
.mts-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--mts-border);
    padding-bottom: 12px;
    margin-bottom: 26px;
}

.mts-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mts-section-pill {
    background: var(--mts-green);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--mts-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mts-section-heading h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--mts-green-dark);
}

.mts-see-all {
    font-weight: 700;
    font-size: 13px;
    color: var(--mts-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--mts-transition);
}

.mts-see-all:hover {
    color: var(--mts-red);
}

/* Card Grid */
.mts-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.mts-card {
    background: #ffffff;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius);
    overflow: hidden;
    box-shadow: var(--mts-shadow-sm);
    transition: var(--mts-transition);
    display: flex;
    flex-direction: column;
}

.mts-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mts-shadow-md);
    border-color: #cbd5e1;
}

.mts-card-thumb {
    height: 195px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.mts-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mts-card:hover .mts-card-thumb img {
    transform: scale(1.06);
}

.mts-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--mts-green);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--mts-radius-pill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mts-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.mts-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mts-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.mts-card-title a {
    color: #1e293b;
}

.mts-card-title a:hover {
    color: var(--mts-green);
}

.mts-card-excerpt {
    font-size: 13.5px;
    color: var(--mts-text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mts-card-meta {
    font-size: 12px;
    color: var(--mts-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

/* ==========================================================================
   9. SIDEBAR & WIDGETS
   ========================================================================== */
.mts-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 80px;
}

.mts-widget {
    background: #ffffff;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius);
    padding: 22px;
    box-shadow: var(--mts-shadow-sm);
}

.mts-widget-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--mts-green-dark);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--mts-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mts-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 45px;
    height: 2px;
    background: var(--mts-red);
}

.mts-widget ul {
    list-style: none;
}

.mts-widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mts-widget ul li a {
    color: var(--mts-text);
    font-weight: 500;
}

.mts-widget ul li a:hover {
    color: var(--mts-green);
    padding-left: 4px;
}

.mts-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mts-sidebar-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mts-sidebar-thumb {
    width: 76px;
    height: 56px;
    border-radius: var(--mts-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.mts-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mts-sidebar-item:hover .mts-sidebar-thumb img {
    transform: scale(1.08);
}

.mts-sidebar-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
}

.mts-sidebar-info h4 a {
    color: var(--mts-text);
}

.mts-sidebar-info h4 a:hover {
    color: var(--mts-green);
}

.mts-sidebar-date {
    font-size: 11px;
    color: var(--mts-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   10. SINGLE POST TEMPLATE & EDITORIAL PROSE
   ========================================================================== */
.mts-breadcrumbs {
    font-size: 12.5px;
    color: var(--mts-text-muted);
    padding: 16px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mts-breadcrumbs a {
    color: var(--mts-green);
    font-weight: 600;
}

.mts-sep {
    font-size: 10px;
    color: #94a3b8;
}

.mts-breadcrumbs .current {
    color: #475569;
    font-weight: 500;
}

.mts-single-article {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.mts-single-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mts-green-soft);
    color: var(--mts-green);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--mts-radius-pill);
    margin-bottom: 14px;
}

.mts-single-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 18px;
}

.mts-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--mts-border);
}

.mts-meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mts-meta-avatar img {
    border-radius: 50%;
}

.mts-meta-author-info {
    display: flex;
    flex-direction: column;
}

.mts-meta-author-label {
    font-size: 11px;
    color: var(--mts-text-muted);
}

.mts-meta-author-name {
    font-size: 13.5px;
    color: var(--mts-green-dark);
}

.mts-meta-divider {
    width: 1px;
    height: 24px;
    background: var(--mts-border);
}

.mts-meta-details {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--mts-text-muted);
    flex-wrap: wrap;
}

.mts-meta-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mts-single-featured {
    margin-bottom: 26px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
}

.mts-single-featured img {
    width: 100%;
    height: auto;
}

/* Editorial Reading Experience */
.mts-single-content {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.mts-single-content p {
    margin-bottom: 16px;
}

.mts-single-content h2 {
    color: var(--mts-green-dark);
    margin: 28px 0 14px;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.4;
}

.mts-single-content h3 {
    color: var(--mts-green-dark);
    margin: 24px 0 12px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
}

.mts-single-content h4 {
    color: var(--mts-green-dark);
    margin: 20px 0 10px;
    font-weight: 700;
    font-size: 15px;
}

.mts-single-content img,
.mts-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mts-radius);
    margin: 20px auto;
}

.mts-single-content table,
.mts-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mts-single-content table th,
.mts-single-content table td,
.mts-page-content table th,
.mts-page-content table td {
    padding: 10px 14px;
    border: 1px solid var(--mts-border);
    font-size: 14px;
    white-space: nowrap;
}

.mts-single-content table th,
.mts-page-content table th {
    background: #f1f5f9;
    font-weight: 700;
}

.mts-single-content iframe,
.mts-page-content iframe,
.mts-single-content video,
.mts-page-content video,
.mts-single-content embed {
    max-width: 100%;
}

.mts-single-content blockquote {
    /* border-left removed */
    background: var(--mts-green-soft);
    padding: 14px 20px;
    font-style: italic;
    margin: 22px 0;
    border-radius: 0 var(--mts-radius) var(--mts-radius) 0;
    color: var(--mts-green-dark);
    font-size: 14.5px;
    line-height: 1.7;
}

/* Tags Box */
.mts-tags-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--mts-border);
}

.mts-tags-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mts-text-muted);
}

.mts-tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mts-tag-pill {
    background: #f1f5f9;
    color: var(--mts-text);
    padding: 5px 12px;
    border-radius: var(--mts-radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    transition: var(--mts-transition);
}

.mts-tag-pill:hover {
    background: var(--mts-green-soft);
    color: var(--mts-green);
}

/* Modern Social Share */
.mts-share-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 26px 0;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: var(--mts-radius);
    flex-wrap: wrap;
}

.mts-share-label {
    font-weight: 700;
    font-size: 13.5px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mts-share-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.mts-btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--mts-radius-pill);
    color: #ffffff;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--mts-transition);
    text-decoration: none;
    flex-shrink: 0;
}

.mts-share-wa { background-color: #25d366; }
.mts-share-fb { background-color: #1877f2; }
.mts-share-tw { background-color: #0f1419; }
.mts-share-tg { background-color: #0088cc; }
.mts-share-copy { background-color: #475569; }

.mts-btn-share:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: #ffffff;
}

.mts-btn-share.copied {
    background-color: var(--mts-green);
}

/* Modern Author Card */
.mts-author-card {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: var(--mts-radius);
    padding: 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 30px 0;
    box-shadow: none;
}

.mts-author-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.mts-author-avatar-wrap img {
    border-radius: 50%;
    /* border removed */
}

.mts-author-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mts-green);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--mts-radius-pill);
    text-transform: uppercase;
}

.mts-author-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--mts-green-dark);
    margin-bottom: 6px;
}

.mts-author-bio {
    font-size: 13.5px;
    color: var(--mts-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Related Posts Section */
.mts-related-section {
    margin-top: 45px;
}

.mts-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Comments Form */
.mts-comments-section {
    margin-top: 45px;
}

#respond {
    background: #f8fafc;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius);
    padding: 28px;
    margin-top: 25px;
}

#reply-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--mts-green-dark);
    margin-bottom: 16px;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius-sm);
    font-size: 14px;
    background: #ffffff;
    transition: var(--mts-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--mts-green);
    box-shadow: 0 0 0 3px var(--mts-green-glow);
}

.comment-form input[type="submit"] {
    background: var(--mts-green);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--mts-radius-pill);
    font-weight: 700;
    cursor: pointer;
    transition: var(--mts-transition);
}

.comment-form input[type="submit"]:hover {
    background: var(--mts-green-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   11. PAGE TEMPLATE (LAMAN STATIS)
   ========================================================================== */
.mts-page-banner {
    background: linear-gradient(135deg, #ffffff 0%, var(--mts-green-soft) 100%);
    border-bottom: 1px solid var(--mts-border);
    padding: 24px 0 32px;
    margin-bottom: 35px;
}

.mts-page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--mts-green-dark);
    margin-top: 8px;
}

.mts-page-article {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Empty State */
.mts-empty-state {
    background: #ffffff;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius-lg);
    padding: 50px 30px;
    text-align: center;
}

.mts-empty-icon {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.mts-empty-state h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 700;
}

.mts-empty-state p {
    color: var(--mts-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Pagination */
.mts-pagination-wrap {
    margin: 40px 0;
    text-align: center;
}

.mts-pagination-wrap .nav-links {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.mts-pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--mts-radius-pill);
    background: #ffffff;
    border: 1px solid var(--mts-border);
    color: var(--mts-text);
    font-weight: 600;
    font-size: 13.5px;
    transition: var(--mts-transition);
}

.mts-pagination-wrap .page-numbers.current,
.mts-pagination-wrap .page-numbers:hover {
    background: var(--mts-green);
    color: #ffffff;
    border-color: var(--mts-green);
}

/* ==========================================================================
   12. FOOTER SECTION (Simpel & Elegan)
   ========================================================================== */
.mts-footer {
    background-color: var(--mts-dark);
    color: #e2e8f0;
    padding: 45px 0 24px;
    margin-top: 50px;
    position: relative;
    /* border-top removed */
}

.mts-footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 30px;
}

/* Kolom Kiri: Identitas Madrasah */
.mts-footer-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mts-footer-brand-text {
    margin: 0;
}

.mts-footer-title {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px 0;
}

.mts-footer-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--mts-green-bright);
    border-radius: 2px;
}

.mts-footer-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.mts-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.mts-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
}

.mts-footer-badge strong {
    color: #ffffff;
    font-weight: 700;
}

.mts-footer-badge i {
    color: var(--mts-green-bright);
    font-size: 12px;
}

/* Kolom Kanan: Alamat Lengkap & Kontak */
.mts-footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mts-footer-address-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mts-footer-address-main i {
    color: var(--mts-green-bright);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.mts-footer-address-text strong {
    display: block;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mts-footer-address-text p {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.mts-footer-contact-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mts-footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13.5px;
    text-decoration: none;
    transition: var(--mts-transition);
}

.mts-footer-contact-link i {
    color: var(--mts-green-light);
    font-size: 14px;
}

a.mts-footer-contact-link:hover {
    color: var(--mts-green-bright);
}

.mts-footer-contact-link.mts-hours {
    color: #94a3b8;
    font-size: 12.5px;
}

/* Footer Bottom Bar */
.mts-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.mts-footer-bottom p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.mts-footer-bottom strong {
    color: #cbd5e1;
}

/* ==========================================================================
   13. FLOATING ACTION BUTTONS
   ========================================================================== */
.mts-floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.mts-floating-wa {
    background: #25d366;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    transition: var(--mts-transition);
    position: relative;
}

.mts-floating-wa:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.mts-floating-wa-label {
    display: none;
}

.mts-back-to-top {
    background: var(--mts-green);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mts-transition);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.mts-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mts-back-to-top:hover {
    background: var(--mts-green-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .mts-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mts-hero-grid,
    .mts-featured-grid,
    .mts-main-layout,
    .mts-footer-grid,
    .mts-footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mts-featured-sidelist {
        height: auto;
    }

    /* Sembunyikan navbar desktop terpisah di mobile/tablet */
    .mts-navbar {
        display: none !important;
    }

    /* Tampilkan kontrol header mobile di midbar */
    .mts-mobile-header-actions {
        display: flex !important;
    }

    /* Sticky Header di Mobile: topbar tergulir, midbar menempel di atas */
    .mts-header {
        position: sticky;
        top: -33px;
        z-index: 1000;
    }

    .mts-midbar {
        background: #ffffff;
        padding: 9px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
        transition: box-shadow 0.25s ease, padding 0.25s ease;
    }

    .mts-midbar.is-scrolled {
        padding: 7px 0;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    }

    .mts-logo-img {
        max-height: 48px;
    }

    .mts-header-info {
        display: none;
    }

    .mts-hero-featured {
        height: 280px;
    }

    .mts-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Topbar Ringkas 1 Baris */
    .mts-topbar {
        padding: 5px 0;
        font-size: 11.5px;
    }

    .mts-topbar-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .mts-topbar-left {
        gap: 10px;
        font-size: 11.5px;
    }

    .mts-topbar-right {
        gap: 8px;
    }

    .mts-topbar-contact {
        padding: 3px 10px;
        font-size: 11px;
    }

    /* Compact Ticker */
    .mts-ticker-wrapper {
        margin: 10px 0 16px;
        height: 38px;
        border-radius: 10px;
    }

    .mts-ticker-badge {
        padding: 0 12px;
        font-size: 11px;
        gap: 6px;
    }

    .mts-ticker-badge-text-full {
        display: none;
    }

    .mts-ticker-badge-text-mobile {
        display: inline;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    .mts-ticker-item {
        font-size: 12.5px;
        margin-right: 32px;
    }

    .mts-ticker-item .mts-ticker-date {
        display: none;
    }

    /* Hero Section */
    .mts-hero-section {
        padding: 5px 0 20px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin-bottom: 20px;
    }

    .mts-hero-main-title {
        font-size: 21px;
        line-height: 1.35;
        margin-bottom: 12px;
    }

    .mts-hero-desc {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 18px;
        max-width: 100%;
    }

    .mts-hero-actions {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-bottom: 18px;
    }

    .mts-btn-primary,
    .mts-btn-secondary {
        flex: 1;
        width: auto;
        padding: 10px 8px;
        font-size: 12px;
        font-weight: 700;
        justify-content: center;
        white-space: nowrap;
        border-radius: var(--mts-radius-pill);
        gap: 6px;
    }

    .mts-btn-primary i,
    .mts-btn-secondary i {
        font-size: 11px;
    }

    /* Kotak Statistik Kompak 3 Kolom */
    .mts-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding-top: 14px;
        border-top: 1px solid rgba(22, 101, 52, 0.1);
    }

    .mts-stat-box {
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 10px;
        padding: 8px 4px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .mts-stat-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
        border-radius: 6px;
        background: rgba(22, 101, 52, 0.08);
        color: var(--mts-green);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mts-stat-box strong {
        font-size: 11px;
        line-height: 1.25;
        color: #0f172a;
        margin-bottom: 2px;
        display: block;
    }

    .mts-stat-box span {
        font-size: 9px;
        color: #64748b;
        line-height: 1.2;
        display: block;
    }

    .mts-hero-video-card {
        border-radius: var(--mts-radius);
    }

    .mts-yt-play-btn {
        width: 56px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    /* PPDB Banner */
    .mts-ppdb-banner {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .mts-ppdb-heading {
        font-size: 19px;
    }

    .mts-ppdb-sub {
        font-size: 13px;
    }

    .mts-ppdb-action {
        width: 100%;
    }

    .mts-btn-ppdb {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 13.5px;
    }

    /* Featured Box */
    .mts-featured-box {
        padding: 0 0 24px;
        border-radius: 0;
        margin-bottom: 24px;
    }

    .mts-hero-featured {
        height: 220px;
        border-radius: 12px;
    }

    .mts-hero-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .mts-featured-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .mts-featured-thumb {
        width: 68px;
        height: 52px;
    }

    .mts-featured-info h4 {
        font-size: 13px;
    }

    /* Section Heading */
    .mts-section-heading {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .mts-section-title-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
    }

    .mts-section-pill {
        font-size: 9px;
        font-weight: 800;
        padding: 2px 7px;
        letter-spacing: 0.5px;
    }

    .mts-section-heading h2 {
        font-size: 16px;
        font-weight: 800;
        line-height: 1.35;
        margin: 0;
    }

    .mts-see-all {
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
        padding-bottom: 2px;
    }

    /* Cards & Grids (Proportional on Mobile) */
    .mts-post-grid,
    .mts-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mts-card-thumb {
        height: 155px;
    }

    .mts-card-body {
        padding: 14px 16px;
    }

    .mts-card-title {
        font-size: 15.5px;
        line-height: 1.38;
        margin-bottom: 8px;
    }

    .mts-card-excerpt {
        font-size: 12.5px;
        line-height: 1.55;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }

    .mts-card-meta {
        font-size: 11.5px;
        padding-top: 10px;
    }

    .mts-single-article,
    .mts-page-article {
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .mts-single-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .mts-single-content p {
        margin-bottom: 14px;
    }

    .mts-single-content h2 {
        font-size: 18px;
        margin: 20px 0 10px;
    }

    .mts-single-content h3 {
        font-size: 16px;
        margin: 16px 0 8px;
    }

    .mts-single-content blockquote {
        padding: 12px 16px;
        font-size: 13.5px;
        margin: 16px 0;
    }

    .mts-single-title,
    .mts-page-title {
        font-size: 20px;
        line-height: 1.35;
    }

    .mts-single-meta {
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 18px;
    }

    .mts-meta-divider {
        display: none;
    }

    .mts-author-card {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .mts-share-box {
        justify-content: center;
        padding: 12px 16px;
    }

    .mts-share-links {
        justify-content: center;
    }

    .mts-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    /* Floating Action Buttons */
    .mts-floating-actions {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        gap: 10px;
    }

    .mts-floating-wa {
        display: none !important;
    }

    .mts-back-to-top {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mts-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Narrow Smartphone Polishing */
    .mts-topbar-clock {
        display: none;
    }

    .mts-topbar-contact span {
        display: none;
    }

    .mts-topbar-contact {
        padding: 3px 8px;
    }

    .mts-topbar-divider {
        display: none;
    }

    .mts-topbar-socials {
        gap: 5px;
    }

    .mts-topbar-socials a {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .mts-logo-img {
        max-height: 38px;
    }

    .mts-mobile-nav-toggle {
        padding: 6px 11px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
    }

    .mts-mobile-nav-text {
        display: inline-block !important;
        font-size: 11px !important;
    }

    .mts-hero-main-title {
        font-size: 19.5px;
    }

    .mts-hero-pill-tag {
        font-size: 11px;
    }

    .mts-search-modal-box {
        padding: 20px 16px;
    }

    .mts-search-input {
        font-size: 13.5px;
    }
}

/* ==========================================================================
   26. MODERN WEB GUIDANCE & ACCESSIBILITY ENHANCEMENTS (v1.4.1)
   ========================================================================== */

/* A. Aspect-Ratio & Image Optimization (CLS & Distortion Fix) */
.mts-card-thumb img,
.mts-hero-img-link img,
.mts-featured-thumb img,
.mts-sidebar-thumb img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    height: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mts-hero-img-link img {
    aspect-ratio: 16 / 9;
    max-height: 440px;
}

.mts-featured-thumb img,
.mts-sidebar-thumb img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* B. Smooth Edge-Fade Mask for Ticker Content */
.mts-ticker-content {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}

/* C. Touch Target Sizes (WCAG 2.2 AA Minimum 44x44px) */
.mts-drawer-close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mts-drawer-search-submit {
    min-height: 44px;
    min-width: 58px;
}

.mts-topbar-socials a,
.mts-drawer-socials a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mts-mobile-action-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

