/* Navigation Bar Container */
.news-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Styled Back Button */
.back-btn-styled {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn-styled:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-3px);
}

/* Styled Category Tag */
.meta-tag-styled {
    background-color: var(--bg-color);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Removed old .back-btn, .article-meta styles as they are replaced */

.article-content {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 0.95rem;
    /* Reduced from 1.15rem */
}

.article-image {
    width: 40%;
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    /* max-height: 300px; Remove fixed height to maintain aspect ratio */
    transition: transform 0.3s ease;
}

.article-image:hover {
    transform: scale(1.02);
}

.article-text {
    white-space: pre-wrap;
    text-align: justify;
}

/* Clearfix for float */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Responsive for Article */
@media (max-width: 768px) {

    #news-detail,
    #columnist-detail {
        padding: 20px !important;
        /* Reduced padding */
        margin: 10px !important;
    }

    .article-title {
        font-size: 1.5rem;
        /* Smaller title */
    }

    .article-image {
        float: none;
        display: block;
        /* Ensure block display */
        width: 100%;
        max-width: 100%;
        /* Prevent overflow */
        margin-left: 0;
        /* Keep existing margin-left removal */
        margin-right: 0;
        /* Add margin-right */
        margin-bottom: 20px;
        height: auto;
        /* Add height auto */
        object-fit: contain;
        /* Ensure full image is visible */
    }

    .article-text {
        font-size: 1rem;
        /* Smaller text */
        line-height: 1.5;
        /* Tighter lines */
    }
}