/*
Theme Name: Muh Me Lelo
Version: 1.0.0
*/

/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */

/* Prevent iOS Safari font inflation */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /*
     * overflow-x: clip prevents horizontal scroll WITHOUT creating a scroll
     * container. Using overflow-x: hidden here would break position:sticky
     * on the sidebar. clip is supported in all modern browsers (Chrome 90+,
     * Firefox 81+, Safari 16+).
     */
    overflow-x: clip;
}

:root {
    --mml-font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --mml-font-heading: 'Inter', -apple-system, sans-serif;
    --mml-text-color: #334155;
    --mml-text-light: #64748b;
    --mml-heading-color: #0f172a;
    --mml-bg-color: #f8fafc;
    --mml-card-bg: #ffffff;
    --mml-primary-color: #2563eb;
    --mml-primary-hover: #1d4ed8;
    --mml-accent-color: #e11d48;
    --mml-border-color: #e2e8f0;
    --mml-border-radius: 12px;
    --mml-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --mml-box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --mml-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mml-gap: 32px;
    --mml-container-width: 1280px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--mml-font-base);
    font-size: 18px;
    line-height: 1.75;
    color: var(--mml-text-color);
    background-color: var(--mml-bg-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* clip, not hidden — hidden breaks position:sticky */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--mml-font-heading);
    color: var(--mml-heading-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: normal;
}

a {
    color: var(--mml-primary-color);
    text-decoration: none;
    transition: var(--mml-transition);
}

a:hover {
    color: var(--mml-primary-hover);
}

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

/* ==========================================================================
   TABLES
   ========================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--mml-box-shadow);
    border: 1px solid var(--mml-border-color);
}

table th,
table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--mml-border-color);
    text-align: left;
}

table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--mml-heading-color);
    font-size: 15px;
}

table td {
    color: var(--mml-text-color);
    font-size: 15px;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background-color: #f1f5f9;
}

@media (max-width: 768px) {

    table th,
    table td {
        padding: 12px 16px;
    }
}

/* ==========================================================================
   BLOCKQUOTES
   ========================================================================== */
blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 32px 32px 32px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid var(--mml-primary-color);
    border-radius: 0 12px 12px 0;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--mml-heading-color);
    font-style: italic;
    font-weight: 500;
}

blockquote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 16px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--mml-primary-color);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

blockquote p {
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 1;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite,
blockquote footer {
    display: block;
    margin-top: 16px;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    color: var(--mml-text-light);
}

blockquote cite::before,
blockquote footer::before {
    content: '\2014\00a0';
}

@media (max-width: 768px) {
    blockquote {
        margin: 1.5rem 0;
        padding: 24px 20px 24px 28px;
        font-size: 1.1rem;
    }

    blockquote::before {
        font-size: 3.5rem;
        top: -4px;
        left: 10px;
    }
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comments-area {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--mml-border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--mml-border-color);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 48px 0;
}

.comment-list .comment {
    margin-bottom: 32px;
}

.comment-list .comment:last-child {
    margin-bottom: 0;
}

.comment-body {
    background: #fff;
    border: 1px solid var(--mml-border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--mml-box-shadow);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-author .fn {
    font-weight: 700;
    color: var(--mml-heading-color);
    font-size: 15px;
    font-style: normal;
}

.comment-author .says {
    display: none;
}

.comment-metadata a {
    font-size: 13px;
    color: var(--mml-text-light);
}

.comment-metadata a:hover {
    color: var(--mml-primary-color);
}

.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mml-text-color);
}

.comment-content p {
    margin: 0 0 12px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mml-primary-color);
    margin-top: 12px;
    padding: 6px 16px;
    background: #f1f5f9;
    border-radius: 20px;
    transition: var(--mml-transition);
}

.reply a:hover {
    background: var(--mml-primary-color);
    color: #fff;
}

.comment-list .children {
    list-style: none;
    padding-left: 32px;
    margin-top: 24px;
    border-left: 2px solid var(--mml-border-color);
}

.comment-respond {
    background: #fff;
    border: 1px solid var(--mml-border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--mml-box-shadow);
}

#reply-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.comment-notes {
    font-size: 14px;
    color: var(--mml-text-light);
    margin-bottom: 24px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--mml-heading-color);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--mml-border-color);
    border-radius: 10px;
    font-family: var(--mml-font-base);
    font-size: 15px;
    color: var(--mml-text-color);
    background: #f8fafc;
    outline: none;
    transition: var(--mml-transition);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--mml-primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 20px;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--mml-text-light);
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--mml-primary-color);
}

.form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: var(--mml-heading-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--mml-font-base);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--mml-transition);
}

.form-submit input[type="submit"]:hover {
    background: var(--mml-primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .comments-area {
        margin-top: 32px;
        padding-top: 32px;
    }

    .comment-respond {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .comment-body {
        padding: 20px 16px;
    }

    .comment-list .children {
        padding-left: 16px;
    }

    .comment-author .avatar {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.mml-container {
    max-width: var(--mml-container-width);
    margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 24px);
    width: 100%;
}

.mml-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
    margin-bottom: 80px;
}

@media (max-width: 1024px) {
    .mml-container {
        padding: 0 clamp(12px, 3vw, 20px);
    }

    .mml-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 32px;
        margin-bottom: 60px;
    }
}

.mml-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mml-gap);
}

.mml-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--mml-gap);
}

.mml-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--mml-gap);
}

/* Prevent grid/flex children from overflowing their cells */
.mml-grid-2 > *,
.mml-grid-3 > *,
.mml-grid-4 > *,
.mml-layout > * {
    min-width: 0;
}

@media (max-width: 768px) {
    .mml-container {
        padding: 0 clamp(12px, 4vw, 16px);
    }

    .mml-layout {
        margin-top: 24px;
        margin-bottom: 40px;
        gap: 24px;
    }

    /* 2-col on tablet for 3+ column grids */
    .mml-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mml-grid-3,
    .mml-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Collapse to 1 column on small phones */
@media (max-width: 480px) {
    .mml-grid-3,
    .mml-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   BREAKING NEWS BAR
   ========================================================================== */
.mml-breaking-news-bar {
    background: var(--mml-accent-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    overflow: hidden;
}

.mml-breaking-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.mml-breaking-label {
    background: rgba(0,0,0,.25);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.mml-breaking-ticker {
    overflow: hidden;
    flex: 1;
}

.mml-breaking-text {
    color: #fff;
    font-weight: 600;
}

.mml-breaking-text:hover {
    text-decoration: underline;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.mml-site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--mml-border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mml-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    flex-wrap: nowrap;
    gap: 12px;
}

.mml-site-title {
    font-size: clamp(16px, 3vw, 26px);
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mml-site-title a {
    color: var(--mml-heading-color);
}

.mml-main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.mml-main-navigation a {
    color: var(--mml-heading-color);
    font-weight: 600;
    font-size: 15px;
}

.mml-main-navigation a:hover {
    color: var(--mml-accent-color);
}

/* Logo */
.mml-site-branding {
    min-width: 0;
    flex-shrink: 1;
}

.mml-custom-logo img {
    max-height: 60px;
    width: auto;
}

/* Search button */
.mml-header-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--mml-heading-color);
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: var(--mml-transition);
}

.mml-header-search-btn:hover {
    background: var(--mml-border-color);
    color: var(--mml-accent-color);
}

/* Search overlay */
.mml-search-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    /* Hidden by default — both visually and from interaction */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.mml-search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mml-search-overlay-inner {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 560px;
    position: relative;
}

.mml-search-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--mml-transition);
}

.mml-search-close:hover {
    background: var(--mml-border-color);
    color: var(--mml-heading-color);
}

.mml-search-overlay-inner .search-form {
    display: flex;
    gap: 8px;
}

.mml-search-overlay-inner input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--mml-border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.mml-search-overlay-inner input[type="search"]:focus {
    border-color: var(--mml-primary-color);
}

.mml-search-overlay-inner button[type="submit"] {
    padding: 12px 20px;
    background: var(--mml-primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
}

/* Header controls wrapper (search + hamburger) */
.mml-header-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Header ad slot */
.mml-header-ad {
    padding: 12px 0;
    text-align: center;
}

/* ── Hamburger button ─────────────────────────── */
.mml-hamburger {
    display: none;          /* shown on mobile only */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
    transition: var(--mml-transition);
}

.mml-hamburger:hover {
    background: var(--mml-border-color);
}

.mml-hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mml-heading-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animated X when open */
.mml-menu-open .mml-hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mml-menu-open .mml-hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mml-menu-open .mml-hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Drawer ────────────────────────── */
.mml-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: #fff;
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    /* visibility:hidden ensures content is truly invisible even if transform fails */
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.mml-mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mml-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--mml-border-color);
    flex-shrink: 0;
}

.mml-mobile-nav-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--mml-heading-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.mml-mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--mml-bg-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--mml-heading-color);
    transition: var(--mml-transition);
}

.mml-mobile-nav-close:hover {
    background: var(--mml-border-color);
}

.mml-mobile-nav-menu {
    flex: 1;
    padding: 12px 0;
}

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

.mml-mobile-menu-list li {
    border-bottom: 1px solid var(--mml-border-color);
}

.mml-mobile-menu-list li:last-child {
    border-bottom: none;
}

.mml-mobile-menu-list a {
    display: block;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mml-heading-color);
    transition: color 0.15s, padding-left 0.15s;
}

.mml-mobile-menu-list a:hover {
    color: var(--mml-primary-color);
    padding-left: 28px;
}

/* Sub-menu items */
.mml-mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--mml-bg-color);
}

.mml-mobile-menu-list .sub-menu a {
    padding-left: 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mml-text-light);
}

.mml-mobile-menu-list .sub-menu a:hover {
    padding-left: 40px;
    color: var(--mml-primary-color);
}

/* Backdrop overlay */
.mml-mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mml-mobile-nav-overlay.is-visible {
    display: block;
}

/* Lock body scroll when menu open */
.mml-menu-open {
    overflow: hidden;
}

@media (max-width: 1023px) {
    .mml-header-inner {
        height: 64px;
    }

    /* Hide desktop nav, show hamburger */
    .mml-main-navigation {
        display: none;
    }

    .mml-hamburger {
        display: flex;
    }

    .mml-custom-logo img {
        max-height: 44px;
    }
}

@media (max-width: 480px) {
    .mml-header-inner {
        height: 56px;
    }
}

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */
.mml-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--mml-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mml-btn-primary {
    background: var(--mml-heading-color);
    color: #fff;
}

.mml-btn-primary:hover {
    background: var(--mml-primary-color);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.mml-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mml-card .mml-thumb {
    border-radius: var(--mml-border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.mml-card .mml-img-wrapper {
    aspect-ratio: 16/9;
    background: #e2e8f0;
}

.mml-card .mml-img-wrapper img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.mml-card:hover .mml-img-wrapper img {
    transform: scale(1.05);
}

.mml-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mml-cat-label {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mml-accent-color);
    margin-bottom: 12px;
}

.mml-cat-label:hover {
    color: var(--mml-heading-color);
}

.mml-card-title {
    font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.25rem);
    line-height: 1.4;
    margin-bottom: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.mml-card-title a {
    color: var(--mml-heading-color);
}

.mml-card-title a:hover {
    color: var(--mml-primary-color);
}

.mml-card-meta {
    font-size: 13px;
    color: var(--mml-text-light);
    font-weight: 500;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mml-card-meta a {
    color: var(--mml-text-light);
    font-weight: 600;
}

.mml-card-meta a:hover {
    color: var(--mml-primary-color);
}

.mml-meta-sep {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .mml-card-body {
        padding: 16px;
    }

    .mml-card-title {
        font-size: 1.125rem;
        margin-bottom: 8px;
    }

    .mml-card .mml-thumb {
        margin-bottom: 12px;
    }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.mml-section {
    margin-bottom: 72px;
}

.mml-section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mml-section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--mml-border-color);
}

/* Hero */
.mml-hero {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 48px;
}

.mml-hero-thumb {
    position: absolute;
    inset: 0;
    background: #000;
}

.mml-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.8s ease;
}

.mml-hero:hover .mml-hero-thumb img {
    transform: scale(1.03);
    opacity: 0.6;
}

.mml-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.mml-hero-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 900px;
}

.mml-hero-title {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 3.5rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.mml-hero-title a {
    color: #fff;
}

.mml-hero-title a:hover {
    color: #e2e8f0;
}

.mml-hero-meta {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 16px;
    margin-top: 8px;
}

.mml-hero-meta a {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mml-hero-meta a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Single Post Author Link */
.mml-single-meta a {
    color: var(--mml-heading-color);
    font-weight: 700;
}

.mml-single-meta a:hover {
    color: var(--mml-primary-color);
}

/* Single Post Content */
.entry-content p,
.mml-single-content p {
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

.entry-content h2,
.mml-single-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h3,
.mml-single-content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
}

.entry-content ul,
.entry-content ol,
.mml-single-content ul,
.mml-single-content ol {
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.entry-content li,
.mml-single-content li {
    margin-bottom: 0.5rem;
}

/* Sidebar Widget Lists */
.mml-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mml-widget ul li {
    padding: 14px 0;
    border-bottom: 1px solid var(--mml-border-color);
    font-size: 16px;
    line-height: 1.5;
}

.mml-widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mml-widget ul li:first-child {
    padding-top: 0;
}

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

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

/* Category Block */
.mml-category-block {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--mml-box-shadow);
    border: 1px solid var(--mml-border-color);
    /* Prevent inner content from overflowing */
    overflow: hidden;
}

.mml-cat-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--mml-border-color);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.mml-cat-block-title {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    margin: 0;
}

.mml-view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--mml-primary-color);
    white-space: nowrap;
}

.mml-cat-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Prevent grid children from overflowing their cells */
.mml-cat-featured,
.mml-cat-list {
    min-width: 0;
}

.mml-list-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.mml-list-item:last-child {
    margin-bottom: 0;
}

.mml-list-item .mml-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    display: block;
    aspect-ratio: 1;
    background: var(--mml-border-color);
}

.mml-list-item .mml-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mml-list-item-body {
    min-width: 0;
}

.mml-list-item h4 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 4px;
    /* Prevent long titles from overflowing */
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 768px) {
    .mml-section {
        margin-bottom: 32px;
    }

    .mml-section-title {
        margin-bottom: 24px;
    }

    .mml-hero {
        max-height: 400px;
        margin-bottom: 32px;
        border-radius: 12px;
    }

    .mml-hero-content {
        padding: 20px 16px;
    }

    .mml-hero-meta {
        font-size: 13px;
    }

    .mml-category-block {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .mml-cat-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .mml-cat-block-title {
        font-size: 1.35rem;
    }

    .mml-cat-layout {
        gap: 28px;
    }

    .mml-list-item {
        grid-template-columns: 80px 1fr;
        gap: 14px;
        margin-bottom: 16px;
    }

    .mml-list-item h4 {
        font-size: 14px;
        margin-bottom: 2px;
    }
}

/* Category layout: stack to single column on phones */
@media (max-width: 600px) {
    .mml-cat-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mml-category-block {
        padding: 20px 16px;
    }
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.mml-sidebar-area {
    position: sticky;
    top: 112px;
}

.mml-widget {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--mml-border-color);
    margin-bottom: 32px;
    box-shadow: var(--mml-box-shadow);
}

.mml-widget-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--mml-heading-color);
    padding-bottom: 12px;
    margin-bottom: 24px;
    color: var(--mml-heading-color);
}

/* Publisher Profile */
.mml-widget-publisher {
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.mml-publisher-cover {
    height: 100px;
    background: linear-gradient(135deg, var(--mml-primary-color) 0%, var(--mml-heading-color) 100%);
}

.mml-publisher-profile {
    padding: 0 32px 32px;
}

.mml-publisher-avatar {
    margin-top: -40px;
    margin-bottom: 16px;
}

.mml-avatar-img {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mml-publisher-name {
    font-size: 20px;
    margin-bottom: 8px;
}

.mml-publisher-bio {
    font-size: 15px;
    color: var(--mml-text-light);
    margin: 0;
    line-height: 1.6;
}

/* Trending Widget */
.mml-trending-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.mml-trending-item:last-child {
    margin-bottom: 0;
}

.mml-trending-number {
    font-size: 24px;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1;
}

.mml-trending-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.mml-trending-date {
    font-size: 12px;
    color: var(--mml-text-light);
}

/* Tax List */
.mml-tax-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mml-tax-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--mml-border-color);
    font-weight: 500;
    font-size: 15px;
}

.mml-tax-list li:last-child {
    border-bottom: none;
}

.mml-count {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--mml-text-light);
}

/* Sidebar Subscribe */
.mml-side-subscribe input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--mml-border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--mml-transition);
    background: #f8fafc;
}

.mml-side-subscribe input:focus {
    border-color: var(--mml-heading-color);
    background: #fff;
}

.mml-subscribe-icon {
    font-size: 2rem;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.mml-ad-placeholder {
    background: #f8fafc;
    border: 1px solid var(--mml-border-color);
    text-align: center;
    padding: 48px 24px;
    color: var(--mml-text-light);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .mml-widget {
        padding: 20px 16px;
        border-radius: 12px;
        margin-bottom: 24px;
    }

    .mml-widget-title {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .mml-publisher-cover {
        height: 80px;
    }

    .mml-publisher-profile {
        padding: 0 20px 20px;
    }

    .mml-publisher-avatar {
        margin-top: -30px;
    }

    .mml-publisher-name {
        font-size: 18px;
    }

    .mml-trending-item {
        gap: 12px;
        margin-bottom: 16px;
    }

    .mml-trending-number {
        font-size: 20px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.mml-site-footer {
    background: var(--mml-heading-color);
    margin-top: 80px;
    color: #cbd5e1;
}

.mml-footer-newsletter-wrap {
    background: transparent;
    padding: 80px 0 64px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mml-footer-newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.mml-fn-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 8px;
}

.mml-fn-content p {
    color: #94a3b8;
    font-size: 1.125rem;
    margin: 0;
}

.mml-fn-form {
    flex: 0 0 500px;
}

.mml-subscribe-form {
    display: flex;
    gap: 12px;
}

.mml-fn-form input {
    flex-grow: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.mml-fn-form button {
    background: var(--mml-primary-color);
    color: #fff;
    white-space: nowrap;
    padding: 16px 32px;
    font-size: 16px;
}

.mml-fn-form button:hover {
    background: #fff;
    color: var(--mml-heading-color);
}

@media (max-width: 1024px) {
    .mml-footer-newsletter {
        flex-direction: column;
        text-align: center;
    }

    .mml-fn-form {
        width: 100%;
        flex: auto;
    }
}

@media (max-width: 768px) {
    .mml-site-footer {
        margin-top: 48px;
    }

    .mml-footer-newsletter-wrap {
        padding: 32px 16px;
    }

    .mml-fn-content h2 {
        font-size: 1.5rem;
    }

    .mml-fn-content p {
        font-size: 1rem;
    }

    .mml-fn-form input {
        padding: 12px 16px;
    }

    .mml-fn-form button {
        padding: 12px 24px;
        width: 100%;
    }

    .mml-subscribe-form {
        flex-direction: column;
    }
}

.mml-footer-widgets-area {
    padding: 64px 0;
}

.mml-footer-widgets .mml-widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.mml-footer-widgets .mml-widget-title {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border-bottom: none;
    padding-bottom: 0;
}

.mml-footer-widgets .mml-widget ul {
    margin: 0;
    padding: 0;
}

.mml-footer-widgets .mml-widget ul li {
    padding: 0;
    border: none;
    margin-bottom: 12px;
}

.mml-footer-logo {
    color: #fff;
    font-size: 24px;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    margin-top: 0;
}

.mml-footer-logo a {
    color: #fff;
}

.mml-footer-desc {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 24px;
}

.mml-social-circles {
    display: flex;
    gap: 12px;
}

.mml-social-circles a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: var(--mml-transition);
}

.mml-social-circles a:hover {
    background: var(--mml-primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.mml-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mml-footer-nav li {
    margin-bottom: 12px;
}

.mml-footer-nav a {
    color: #cbd5e1;
    font-weight: 500;
}

.mml-footer-nav a:hover {
    color: #fff;
    padding-left: 4px;
}

.mml-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.mml-footer-bottom strong {
    color: #fff;
}

@media (max-width: 768px) {
    .mml-footer-widgets-area {
        padding: 32px 0 40px;
    }

    .mml-footer-logo {
        text-align: center;
        font-size: 20px;
    }

    .mml-footer-desc {
        text-align: center;
        font-size: 14px;
    }

    .mml-social-circles {
        justify-content: center;
        margin-bottom: 32px;
    }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.mml-pagination {
    margin-top: 64px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.mml-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    background: #fff;
    color: var(--mml-heading-color);
    border: 1px solid var(--mml-border-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--mml-transition);
}

.mml-pagination .page-numbers:hover {
    background: var(--mml-heading-color);
    color: #fff;
    border-color: var(--mml-heading-color);
}

.mml-pagination .page-numbers.current {
    background: var(--mml-heading-color);
    color: #fff;
    border-color: var(--mml-heading-color);
}

@media (max-width: 768px) {
    .mml-pagination {
        margin-top: 40px;
    }

    .mml-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ==========================================================================
   SINGLE POST PAGE
   ========================================================================== */
.mml-single-header {
    margin-bottom: 32px;
}

.mml-single-category a {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mml-accent-color);
    margin-bottom: 16px;
}

.mml-single-title {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.mml-single-meta {
    font-size: 15px;
    color: var(--mml-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mml-single-thumbnail {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.mml-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.mml-single-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.mml-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

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

/* ==========================================================================
   TABLE SCROLL ON MOBILE
   ========================================================================== */
.mml-single-content table,
.entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Prevent table from stretching the page */
    max-width: 100%;
    width: max-content;
    min-width: 100%;
}

/* Wrap all general tables in a scrollable container */
.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   GUTENBERG / BLOCK EDITOR RESPONSIVE OVERRIDES
   ========================================================================== */

/* Prevent any Gutenberg block from breaking out of the container */
.wp-block-image,
.wp-block-video,
.wp-block-embed,
.wp-block-cover,
.wp-block-media-text,
.wp-block-gallery {
    max-width: 100% !important;
    overflow-x: auto;
}

/* Wide and full-width alignments: cap to viewport on mobile */
@media (max-width: 768px) {
    .alignwide,
    .alignfull {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Two-column media-text block stacks on mobile */
    .wp-block-media-text {
        display: block !important;
    }

    .wp-block-media-text .wp-block-media-text__media,
    .wp-block-media-text .wp-block-media-text__content {
        width: 100% !important;
    }

    /* Gallery: max 2 cols on tablet */
    .wp-block-gallery.columns-3,
    .wp-block-gallery.columns-4 {
        --wp--style--unstable-gallery-gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .wp-block-gallery.columns-2,
    .wp-block-gallery.columns-3,
    .wp-block-gallery.columns-4 {
        --wp--style--unstable-gallery-gap: 8px !important;
    }
}

/* ==========================================================================
   GLOBAL MOBILE OVERRIDES (480px and below)
   ========================================================================== */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .mml-container {
        padding: 0 12px;
    }

    .mml-hero {
        max-height: 280px;
        border-radius: 10px;
        margin-bottom: 24px;
    }

    .mml-hero-content {
        padding: 16px 12px;
    }

    .mml-hero-meta {
        font-size: 12px;
    }

    .mml-single-meta {
        font-size: 13px;
    }

    .mml-single-thumbnail {
        margin-bottom: 24px;
        border-radius: 8px;
    }

    .entry-content p,
    .mml-single-content p {
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }

    .entry-content h2,
    .mml-single-content h2 {
        font-size: 1.375rem;
        margin-top: 1.75rem;
    }

    .entry-content h3,
    .mml-single-content h3 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
    }

    .mml-card-title {
        font-size: 1rem;
    }

    .mml-card-body {
        padding: 12px;
    }

    .mml-section {
        margin-bottom: 24px;
    }

    .mml-section-title {
        margin-bottom: 16px;
    }

    .mml-widget {
        padding: 16px 12px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .mml-category-block {
        padding: 16px 12px;
        border-radius: 10px;
    }

    .mml-cat-block-title {
        font-size: 1.2rem;
    }

    .mml-footer-newsletter-wrap {
        padding: 24px 12px;
    }

    .mml-fn-content h2 {
        font-size: 1.25rem;
    }

    .mml-footer-widgets-area {
        padding: 24px 0;
    }

    .comment-respond {
        padding: 20px 16px;
    }

    blockquote {
        padding: 20px 16px 20px 24px;
        font-size: 1rem;
    }

    .mml-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }
}

/* ==========================================================================
   SINGLE POST MOBILE (768px)
   ========================================================================== */
@media (max-width: 768px) {
    .mml-single-thumbnail {
        margin-bottom: 24px;
    }

    .entry-content p,
    .mml-single-content p {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   MOBILE FIXES — breaking news, sidebar, footer, iframes
   ========================================================================== */

/* Breaking news: allow wrap on very small screens */
@media (max-width: 600px) {
    .mml-breaking-inner {
        white-space: normal;
        flex-wrap: wrap;
        gap: 6px;
    }

    .mml-breaking-ticker {
        overflow: visible;
        width: 100%;
    }

    .mml-breaking-text {
        display: block;
        white-space: normal;
        word-break: break-word;
    }
}

/* Sidebar: no sticky on mobile (it's already stacked below content) */
@media (max-width: 1023px) {
    .mml-sidebar-area {
        position: static;
        top: auto;
    }
}

/* Footer grid: 2×2 on tablet instead of 1×4 */
@media (min-width: 481px) and (max-width: 768px) {
    .mml-footer-widgets .mml-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }

    /* Keep column 1 (branding) full width on tablet */
    .mml-footer-widgets .mml-grid-4 > .mml-widget:first-child {
        grid-column: 1 / -1;
    }
}

/* Footer branding column — always centred on mobile */
@media (max-width: 480px) {
    .mml-footer-widgets .mml-grid-4 {
        gap: 32px 0;
    }
}

/* Responsive embeds: YouTube, Vimeo, etc. */
.mml-single-content iframe,
.entry-content iframe {
    max-width: 100%;
}

.mml-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.mml-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure images inside posts never overflow */
.mml-single-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Search overlay: full-width on mobile */
@media (max-width: 600px) {
    .mml-search-overlay-inner {
        width: 95%;
        padding: 24px 16px;
        border-radius: 12px;
    }

    .mml-search-overlay-inner .search-form {
        flex-direction: column;
    }

    .mml-search-overlay-inner button[type="submit"] {
        width: 100%;
    }
}

/* Tap-target minimum size — important for mobile usability */
@media (max-width: 1023px) {
    .mml-main-navigation a,
    .mml-footer-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .mml-pagination .page-numbers {
        min-width: 44px;
        min-height: 44px;
    }

    .mml-social-circles a {
        width: 44px;
        height: 44px;
    }
}

/* Prevent horizontal scroll from any fixed-width element */
.mml-fn-form {
    max-width: 100%;
}

@media (max-width: 768px) {
    .mml-fn-form {
        flex: none;
        width: 100%;
    }
}

/* ==========================================================================
   AUTHOR BOX — shown below single post content
   ========================================================================== */
.mml-author-box {
    margin: 56px 0 40px;
    padding: 36px;
    background: #fff;
    border: 1px solid var(--mml-border-color);
    border-radius: 16px;
    box-shadow: var(--mml-box-shadow);
}

.mml-author-box-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* Avatar */
.mml-author-avatar-link { flex-shrink: 0; }

.mml-author-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--mml-border-color);
    background: var(--mml-bg-color);
    transition: border-color 0.2s;
}

.mml-author-avatar-link:hover .mml-author-avatar {
    border-color: var(--mml-primary-color);
}

.mml-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info */
.mml-author-info { flex: 1; min-width: 0; }

.mml-author-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.mml-author-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--mml-accent-color);
    background: rgba(225, 29, 72, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

.mml-author-post-count {
    font-size: 12px;
    color: var(--mml-text-light);
    font-weight: 500;
}

.mml-author-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
}

.mml-author-name a {
    color: var(--mml-heading-color);
}

.mml-author-name a:hover {
    color: var(--mml-primary-color);
}

.mml-author-bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mml-text-color);
    margin: 0 0 18px;
}

/* Footer row: social + view-all link */
.mml-author-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mml-author-social {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mml-author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--mml-bg-color);
    border: 1px solid var(--mml-border-color);
    border-radius: 8px;
    color: var(--mml-heading-color);
    font-size: 13px;
    font-weight: 700;
    transition: var(--mml-transition);
    text-decoration: none;
}

.mml-author-social-link:hover {
    background: var(--mml-heading-color);
    border-color: var(--mml-heading-color);
    color: #fff;
    transform: translateY(-2px);
}

.mml-author-all-posts {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--mml-primary-color);
    padding: 8px 18px;
    border: 1.5px solid var(--mml-primary-color);
    border-radius: 8px;
    transition: var(--mml-transition);
    text-decoration: none;
    white-space: nowrap;
}

.mml-author-all-posts:hover {
    background: var(--mml-primary-color);
    color: #fff;
}

@media (max-width: 640px) {
    .mml-author-box {
        padding: 22px 18px;
        margin: 40px 0 32px;
        border-radius: 12px;
    }

    .mml-author-box-inner {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }

    .mml-author-meta-top {
        justify-content: center;
    }

    .mml-author-footer {
        justify-content: center;
    }

    .mml-author-avatar {
        width: 80px;
        height: 80px;
    }
}

/* ==========================================================================
   AUTHOR ARCHIVE PAGE
   ========================================================================== */
.mml-author-archive-header {
    background: var(--mml-heading-color);
    position: relative;
    overflow: hidden;
    padding-bottom: 48px;
}

.mml-author-archive-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--mml-primary-color) 0%, var(--mml-heading-color) 60%);
    opacity: 0.85;
}

.mml-author-archive-profile {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 32px;
    padding: 60px 0 0;
}

.mml-author-archive-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.mml-author-archive-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mml-author-archive-info { flex: 1; min-width: 0; }

.mml-author-archive-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.mml-author-archive-name {
    color: #fff;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
    margin: 0 0 12px;
    line-height: 1.1;
}

.mml-author-archive-bio {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 600px;
}

.mml-author-archive-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mml-author-archive-stat {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.mml-author-archive-social {
    display: flex;
    gap: 8px;
}

.mml-author-social-link--archive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: var(--mml-transition);
    text-decoration: none;
}

.mml-author-social-link--archive:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}

.mml-author-posts-wrap {
    padding: 56px 0 80px;
}

.mml-no-posts {
    text-align: center;
    padding: 64px 0;
    color: var(--mml-text-light);
    font-size: 18px;
}

@media (max-width: 768px) {
    .mml-author-archive-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 0 0;
        gap: 20px;
    }

    .mml-author-archive-name {
        font-size: 1.75rem;
    }

    .mml-author-archive-footer {
        justify-content: center;
    }

    .mml-author-archive-bio {
        font-size: 14px;
    }

    .mml-author-posts-wrap {
        padding: 32px 0 48px;
    }
}