/* =========================
   LAYOUT TỔNG - SINGLE POST
========================= */

.single-post {
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.single-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    box-shadow: 2px 3px 20px rgba(0, 0, 0, 0.2);
    background: #ffffff;
}

.single-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas:
        "breadcrumb breadcrumb"
        "title title"
        "featured sidebar"
        "metadesc sidebar"
        "content sidebar";
    gap: 0 40px;
    padding-top: 20px;
    align-items: start;
}

/* =========================
   MAP GRID 
========================= */

.single-main > h1 {
    grid-area: title;
    font-size: 28px;
    font-weight: 500;
    text-transform: capitalize;
    padding: 0 50px;
    color: #002D5B;
    margin-bottom: 12px;
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.post-featured-image {
    grid-area: featured;
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
    margin: auto;
    margin-bottom: 20px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.mimo-breadcrumb {
    grid-area: breadcrumb;
}

.mimo-metadesc {
    grid-area: metadesc;
    grid-column: 1 / 2;
    margin: 5px 20px 0 40px;
    background: transparent;
    border-left: none;
    font-style: italic;
    color: #666;
}

.entry-content {
    grid-area: content;
    font-size: 16px;
    line-height: 1.7;
    padding-left: 20px;
    padding-bottom: 50px;
    min-width: 0; 
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.entry-content h1 {
    font-size: 32px; 
}
/* =========================
   SIDEBAR 
========================= */

.single-sidebar {
    grid-area: sidebar;
    position: -webkit-sticky;
    position: sticky;
    top: 85px;
    align-self: start;
}

.single-sidebar .widget {
    background: transparent;
    padding: 0; 
    margin-bottom: 24px;
    border: none;
    box-shadow: none;
}

/* =========================
   RESPONSIVE 
========================= */

@media (max-width: 1024px) {
    .single-main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "breadcrumb"
            "title"
            "featured"
            "metadesc"
            "content"
            "sidebar";
        padding-top: 70px;
    }

    .single-main > h1 {
        font-size: 20px;
        padding: 10px 0;
    }

    .mimo-metadesc {
        margin: auto;
    }

    .entry-content {
        padding: 0px;
    }

    .single-sidebar {
        position: relative;
        top: unset;
        margin-top: 40px;
    }
}
.mimo-related-posts {
    margin: 28px 0;
    padding: 18px 20px;
    background: #FFF7F0;
    border-left: 4px solid #FF7A18;
}

.mimo-related-title {
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2E2E2E;
}

.mimo-related-posts ul {
    margin: 0;
    padding-left: 18px;
}

.mimo-related-posts li {
    margin-bottom: 6px;
}

.mimo-related-posts a {
    color: #FF7A18;
    font-weight: 500;
}

table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: inherit;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    border: 1px solid #ddd; 
    table-layout: auto;
}

thead th, 
th {
    background-color: #FF6600; 
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e65c00;
}


td {
    padding: 12px 15px;
    vertical-align: middle;
    border: 1px solid #eee; 
}


tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}


tbody tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.2s ease;
}

@media screen and (max-width: 768px) {
    table {
        font-size: 13px; 
        line-height: 1.3;
        display: table;
        width: 100% !important;
        table-layout: auto; 
    }

    thead th, th, td {
        padding: 8px 5px !important;
        word-break: break-word;
    }

    .entry-content { 
        overflow-x: hidden; 
    }
    
    table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 480px) {
    table {
        font-size: 12px;
    }
    th, td {
        padding: 6px 3px !important;
    }
}

.entry-content img {
    max-width: 100% !important;
    height: auto !important; 
    display: block;
    margin: 1.5rem auto;
}

.entry-content p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}