/* MAGAZINE POST PAGE STYLES */
.post-container {
    padding-top: 20px;
    padding-bottom: 60px;
}

.breadcrumb {
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #4a1c1c;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start !important;
}

.post-content-area {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.post-header-top {
    position: relative;
    margin-bottom: 25px;
}

.post-cat-badge {
    display: inline-block;
    background: #4a2d1c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.post-header-top h1 {
    font-size: 40px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

@media (max-width: 768px) {
    .post-header-top h1 {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }
}

.header-actions-right {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

.action-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    cursor: pointer;
    transition: all 0.3s;
}

.action-icon-btn:hover {
    background: #fdfaf3;
    color: #4a1c1c;
    border-color: #4a1c1c;
}

.post-meta-v3 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.meta-author-v3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-author-v3 img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.meta-author-v3 span {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.meta-info-v3 {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-featured-image {
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ARTICLE CONTENT */
.article-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-family: 'Noto Serif Bengali', serif;
}

.article-text p {
    margin-bottom: 25px;
}

.article-text p:first-of-type::first-letter {
    font-size: 60px;
    float: left;
    margin-right: 15px;
    margin-top: 10px;
    font-weight: 700;
    color: #4a2d1c;
    background: #fdfaf3;
    padding: 10px 15px;
    border-radius: 8px;
}

/* NUMBERED LIST SECTION */
.article-sec-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 40px 0 25px;
}

.numbered-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-num {
    background: #4a2d1c;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 5px;
}

.step-content strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.step-content p {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* QUOTE */
.mag-quote-box {
    background: #fdfaf3;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.mag-quote-box blockquote {
    font-size: 22px;
    color: #4a1c1c;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
}

/* TAGS */
.post-tags-v3 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.tag-btn {
    background: #f9f9f9;
    color: #666;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-btn:hover {
    background: #4a1c1c;
    color: #fff;
}

/* AUTHOR BOX */
.author-bio-v3 {
    display: flex;
    gap: 25px;
    background: #fdfaf3;
    padding: 35px;
    border-radius: 12px;
    margin-top: 50px;
}

.author-bio-v3 img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-bio-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.author-bio-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* SIDEBAR WIDGETS */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.author-widget-v3 {
    text-align: center;
}

.author-widget-v3 img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.author-widget-v3 p {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

.sidebar-btn-v3 {
    display: block;
    background: #4a1c1c;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* PROMO WIDGET */
.promo-widget {
    /* 50% darker/deeper overlay for readability */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.4)),
        url('https://images.unsplash.com/photo-1516979187457-637abb4f9353?w=400&h=400&fit=crop');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    padding: 60px 25px;
    text-align: center;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 30px;
}

.promo-widget h4 {
    font-size: 20px;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.promo-btn {
    background: #fff;
    color: #333;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* NEWSLETTER */
.newsletter-widget-v3 {
    text-align: center;
}

.newsletter-widget-v3 i {
    font-size: 50px;
    color: #e0d0b0;
    margin-bottom: 15px;
}

.newsletter-widget-v3 h4 {
    margin-bottom: 10px;
}

.newsletter-widget-v3 p {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.newsletter-widget-v3 input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.subscribe-btn-v3 {
    width: 100%;
    background: #4a1c1c;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 799px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
}

/* RELATED POSTS SECTION */
.related-posts-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.related-posts-section h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 10px;
}

.related-posts-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4a1c1c;
    border-radius: 2px;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-thumb {
    width: 140px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-item:hover .related-post-thumb img {
    transform: scale(1.05);
}

.related-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-post-info .cat-badge {
    align-self: flex-start;
    font-size: 11px;
    color: #8b5e3c;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.related-post-info h4 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 8px 0;
    transition: color 0.3s;
}

.related-post-item:hover .related-post-info h4 {
    color: #4a1c1c;
}

.related-post-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 600px) {
    .related-post-item {
        flex-direction: column;
        gap: 12px;
    }
    .related-post-thumb {
        width: 100%;
        height: 180px;
    }
}

/* OTHER NEWS / POPULAR NEWS SECTION AT THE END */
.other-news-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.other-news-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.other-news-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #4a1c1c;
    border-radius: 2px;
}

.other-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.other-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #f0f0f0;
}

.other-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #e2d9d5;
}

.other-news-thumb {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: #f7f7f7;
}

.other-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.other-news-card:hover .other-news-thumb img {
    transform: scale(1.08);
}

.other-news-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(74, 28, 28, 0.9);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.other-news-card:hover .other-news-cat {
    background: #4a1c1c;
}

.other-news-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.other-news-info h4 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.other-news-card:hover .other-news-info h4 {
    color: #4a1c1c;
}

.other-news-meta {
    font-size: 12px;
    color: #999;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.other-news-meta i {
    color: #888;
}

/* Responsive grid for other news */
@media (max-width: 1024px) {
    .other-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .other-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .other-news-thumb {
        height: 180px;
    }
}

/* Dark Mode Overrides for Other News */
body.dark-mode .other-news-section {
    border-top-color: var(--border-color) !important;
}

body.dark-mode .other-news-title {
    color: var(--text-primary) !important;
}

body.dark-mode .other-news-title::after {
    background-color: var(--text-accent) !important;
}

body.dark-mode .other-news-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .other-news-card:hover {
    border-color: var(--text-accent) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .other-news-cat {
    background: rgba(187, 134, 252, 0.8) !important;
    color: #121212 !important;
}

body.dark-mode .other-news-card:hover .other-news-cat {
    background: var(--text-accent) !important;
}

body.dark-mode .other-news-info h4 {
    color: var(--text-primary) !important;
}

body.dark-mode .other-news-card:hover .other-news-info h4 {
    color: var(--text-accent) !important;
}

body.dark-mode .other-news-meta {
    color: var(--text-muted) !important;
}

body.dark-mode .other-news-meta i {
    color: var(--text-muted) !important;
}
