/* --- Multimedia Posts Display Styles --- */
.mmp-container {
    background-color: #fffbe6; /* Light yellow background like in image */
    padding: 20px;
    margin-bottom: 30px;
    font-family: sans-serif; /* Basic font, theme will likely override */
    box-sizing: border-box;
}

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

.mmp-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes nav to the right if space allows */
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow nav to wrap on small screens */
}

.mmp-section-title {
    font-size: 24px; /* Adjust as needed */
    font-weight: bold;
    color: #333;
    margin: 0 20px 0 0; /* Right margin to space from nav */
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.mmp-title-bar {
    display: inline-block;
    width: 5px;
    height: 24px; /* Match font size or desired height */
    background-color: #ff0000; /* Red bar */
    margin-right: 10px;
}

.mmp-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.mmp-nav li {
    margin-left: 15px; /* Space between nav items */
}

.mmp-nav li:first-child {
    margin-left: 0;
}

.mmp-nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 14px; /* Adjust as needed */
    text-transform: uppercase;
}

.mmp-nav a:hover {
    color: #000;
}

.mmp-content-grid {
    display: flex;
    gap: 20px; /* Space between main post and small posts grid */
}

/* Main Post (Left) */
.mmp-main-post {
    flex: 0 0 60%; /* Adjust width percentage as needed */
    max-width: 60%;
}

.mmp-main-post .mmp-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10; /* Adjust as needed, e.g., 4/3, 16/9 */
    object-fit: cover;
}

.mmp-main-post .mmp-post-title {
    font-size: 28px; /* Larger title for main post */
    margin: 10px 0;
}

.mmp-main-post .mmp-post-title a {
    text-decoration: none;
    color: #0073aa; /* Blue color for main post title */
}

.mmp-main-post .mmp-post-title a:hover {
    text-decoration: underline;
}

.mmp-main-post .mmp-post-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Small Posts Grid (Right) */
.mmp-small-posts-grid {
    flex: 0 0 38%; /* Adjust width percentage. 60% + 38% + 2% gap = 100% */
    max-width: 38%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 15px; /* Space between small post items */
}

.mmp-small-post-item {
    /* Each item will span one grid cell */
}

.mmp-small-post-item .mmp-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10; /* Adjust as needed */
    object-fit: cover;
}

.mmp-small-post-item .mmp-post-title {
    font-size: 16px; /* Smaller title for small posts */
    margin: 8px 0 0;
    line-height: 1.4;
    display: flex; /* For icon alignment */
    align-items: flex-start; /* Align icon to top */
}

.mmp-small-post-item .mmp-post-title a {
    text-decoration: none;
    color: #333; /* Black/dark grey for small post titles */
}
.mmp-small-post-item .mmp-post-title a:hover {
    text-decoration: underline;
}

/* Icon for small post titles - UPDATED */
.mmp-small-post-item .mmp-title-icon {
    display: inline-block;
    margin-right: 6px;
    line-height: 1;
    position: relative;
    width: auto; /* Reset from previous square style */
    height: auto; /* Reset from previous square style */
    background: none; /* Reset from previous square style */
    border: none; /* Reset from previous square style */
}

.mmp-small-post-item .mmp-title-icon::before {
    content: '📄'; /* Unicode "Page Facing Up" icon */
    /* Thử các icon khác: '📰' (Newspaper), '🗎' (Scrolled Paper), '📝' (Memo) */
    font-size: 0.9em; /* Adjust icon size as needed */
    color: #555;     /* Icon color */
    top: 0.05em;     /* Fine-tune vertical alignment */
    position: relative;
}


.mmp-placeholder {
    padding: 20px;
    background-color: #f0f0f0;
    color: #777;
    text-align: center;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}
.mmp-main-post.mmp-placeholder { min-height: 200px; }


/* Responsive adjustments */
@media (max-width: 992px) { /* Tablet */
    .mmp-content-grid {
        flex-direction: column; /* Stack main and small posts */
    }
    .mmp-main-post,
    .mmp-small-posts-grid {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .mmp-small-posts-grid {
        margin-top: 20px;
    }
}

@media (max-width: 767px) { /* Mobile */
    .mmp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .mmp-section-title {
        margin-bottom: 10px;
    }
    .mmp-nav ul {
        flex-wrap: wrap; /* Allow nav items to wrap */
    }
    .mmp-nav li {
        margin-left: 0;
        margin-right: 10px;
        margin-bottom: 5px;
    }
    .mmp-small-posts-grid {
        grid-template-columns: 1fr; /* Stack small posts into one column */
    }
}