/* New styles for the content container */
.article-read-container {
    margin: 0 auto; /* Center the container */
    /* width: 50%;  Adjust the width as needed */
    padding: 20px; /* Add padding to create space */
}

.vi-category {
    color: #eda720;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.vi-title {
    color: #2c2b51;
    font-weight: bold;
    text-decoration: none;
}

.share-container {
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 25px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    border: none;
    padding: 10px 20px; /* Increase padding for larger button width */
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    width: 120px; /* Ensure all buttons have the same width */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Add space between icon and text */
    text-decoration: none;
}

/* Hover effect */
.share-btn:hover {
    opacity: 0.8; /* Reduce opacity to create a hover effect */
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background-color: #f9c850;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s, opacity 0.3s;
    text-decoration: none;
}

.tag:hover {
    background-color: #eda720;
}

.tag.unhovered {
    opacity: 0.2;
}

.body-text-data {
    text-align: left;
    line-height: 1.8;
}

.card-img-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 16px 0;
}

img.card-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0;
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
    img.card-img {
        max-height: 420px;
    }
}

@media screen and (max-width: 767px) {
    img.card-img {
        max-height: 260px;
    }
}

.excerpt-container {
    display: flex;
    justify-content: center; /* Ensure the text is centered */
    align-items: center;
}

.accessories-article {
    color: #2c2c54;
    font-weight: bold;
    text-decoration: none;
}

/* Mobile version */
@media screen and (max-width: 768px) {
    .article-read-container {
        margin: 0 auto;
        width: 100%;
        padding: 20px;
    }
}

/* 100% */
@media screen and (min-width: 1536px) {
    .article-read-container {
        width: 75%;
    }

    .body-text-data {
        font-size: 16px; /* Default font size */
    }
}

/* 90% */
@media screen and (min-width: 1706px) {
    .article-read-container {
        width: 75%;
    }

    .body-text-data {
        font-size: 18px;
    }

    .author-data {
        font-size: 16px;
    }
}

/* 80% */
@media screen and (min-width: 1920px) {
    .article-read-container {
        width: 85%;
    }

    .body-text-data {
        font-size: 20px;
    }

    .author-data {
        font-size: 17px;
    }
}

/* 75% */
@media screen and (min-width: 2048px) {
    .article-read-container {
        width: 95%;
    }

    .body-text-data {
        font-size: 22px;
    }

    .author-data {
        font-size: 18px;
    }
}

/* 67% */
@media screen and (min-width: 2304px) {
    .article-read-container {
        width: 105%;
    }

    .body-text-data {
        font-size: 24px;
    }

    .title-data {
        font-size: 48px;
    }

    .author-data {
        font-size: 24px;
    }
}

/* 50% */
@media screen and (min-width: 3072px) {
    .article-read-container {
        width: 120%;
    }

    .body-text-data {
        font-size: 30px;
    }

    .title-data {
        font-size: 64px;
    }

    .author-data {
        font-size: 32px;
    }
}

/* 33% */
@media screen and (min-width: 4608px) {
    .article-read-container {
        width: 150%;
    }

    .body-text-data {
        font-size: 48px;
    }

    .title-data {
        font-size: 72px;
    }

    .author-data {
        font-size: 36px;
    }
}

/* 25% */
@media screen and (min-width: 6144px) {
    .article-read-container {
        width: 200%;
    }

    .body-text-data {
        font-size: 54px;
    }

    .title-data {
        font-size: 108px;
    }

    .author-data {
        font-size: 54px;
    }
}

/* Reading time badge */
.reading-time-badge {
    font-size: 13px;
    color: #888;
}

/* Table of Contents */
.toc-container {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 18px 0;
    max-width: 480px;
}

.toc-toggle {
    background: none;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toc-list {
    margin: 10px 0 0;
    padding-left: 20px;
}

.toc-item {
    margin: 4px 0;
    font-size: 14px;
}

.toc-level-3 {
    padding-left: 14px;
}

.toc-link {
    color: #2c2b51;
    text-decoration: none;
}

.toc-link:hover {
    color: #eda720;
    text-decoration: underline;
}

/* Post navigation */
.post-navigation {
    margin: 28px 0 20px;
}

.post-nav-grid {
    display: flex;
    gap: 16px;
}

.post-nav-item {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-width: 0;
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #eda720;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.post-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.post-nav-link:hover {
    color: #eda720;
}

@media screen and (max-width: 768px) {
    .post-nav-grid {
        flex-direction: column;
    }

    .post-nav-next {
        text-align: left;
    }
}

/* ─── Two-column post layout ─────────────────────────── */
.post-two-col {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.post-main-col {
    flex: 3;
    min-width: 0;
}

.post-side-col {
    flex: 1;
    min-width: 0;
}

/* Related sidebar items: thumbnail above text */
.related-sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.related-sidebar-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

/* Collapse to single column on mobile / portrait tablet */
@media screen and (max-width: 767px) {
    .post-two-col {
        flex-direction: column;
    }

    .post-side-col {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .related-desktop-only {
        display: none;
    }
}
