/*
Theme Name: Print Portal
Theme URI: https://muktonews24.com
Author: Custom
Description: Pure Clean Print Edition - Fixed Alignment & Flawless Layout
Version: 33.0
*/

@import url('https://fonts.maateen.me/kalpurush/font.css');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Kalpurush', 'SutonnyMJ', Arial, sans-serif !important;
    background-color: #e4e3df;
    color: #050505;
    line-height: 1.38;
    font-size: 14.5px;
}

/* কন্টেইনার */
.newspaper-wrapper {
    width: 97%;
    max-width: 1440px;
    margin: 12px auto;
    background: #fbfbf9;
    padding: 15px 22px;
    border: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

/* হেডার সেকশন ও বড় লোগো */
.site-header { 
    margin-bottom: 15px; 
    border: none; 
}
.header-top-grid {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    align-items: center;
    gap: 15px;
    padding: 5px 0 12px;
}

.header-left-meta {
    font-size: 15.5px;
    line-height: 1.5;
    color: #000000;
    font-weight: 700;
}
.header-right-meta {
    font-size: 15.5px;
    line-height: 1.4;
    text-align: right;
    font-weight: 700;
    color: #000000;
}
.header-right-meta .date-en { 
    color: #000000;
    font-weight: 700; 
    font-size: 16.5px; 
    margin-bottom: 2px;
}
.header-right-meta .date-bn { 
    color: #000000; 
    font-size: 15px;
}
.header-right-meta .date-ar { 
    color: #333333; 
    font-size: 14px; 
}

.header-title-box { 
    text-align: center; 
}
.main-site-logo {
    max-height: 125px;
    width: 100%;
    max-width: 520px;
    object-fit: contain;
    display: inline-block;
}
.site-main-title {
    font-size: 64px;
    font-weight: 700;
    color: #0b6623;
    line-height: 1;
}

/* ক্যাটাগরি মেনুবার */
.header-meta-bar {
    margin-bottom: 20px;
    padding: 0;
    border: none;
}
.newspaper-navbar { width: 100%; overflow-x: auto; }
.category-menu-list {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
.category-menu-list li a {
    display: block;
    padding: 7px 14px;
    font-size: 16.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.category-menu-list li a:hover { background: rgba(255,255,255,0.2); }

/* টপ ৩টি সংবাদের ৩টি উজ্জ্বল ব্যাকগ্রাউন্ড ফ্রেম */
.top-strip-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    border: none;
    padding: 0 0 15px;
    margin-bottom: 20px;
}

.strip-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.strip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.top-strip-row .strip-item:nth-child(1) {
    background-color: #dff2fb;
    border: 1.5px solid #b4e0f7;
}
.top-strip-row .strip-item:nth-child(1) h4 a { color: #0c4a6e; }

.top-strip-row .strip-item:nth-child(2) {
    background-color: #fde5ed;
    border: 1.5px solid #fac3d7;
}
.top-strip-row .strip-item:nth-child(2) h4 a { color: #881337; }

.top-strip-row .strip-item:nth-child(3) {
    background-color: #e3f6e8;
    border: 1.5px solid #b8eac3;
}
.top-strip-row .strip-item:nth-child(3) h4 a { color: #14532d; }

.strip-item img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.12);
}
.strip-item h4 {
    font-size: 21.5px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0;
}
.jump-line-small {
    font-size: 12.5px;
    color: #555;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

/* =========================================
   ৩ কলাম মূল গ্রিড (জিরো স্ট্রেচ - ন্যাচারাল হাইট)
   ========================================= */
.paper-main-grid {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 25px;
    align-items: flex-start !important; /* কোনো স্পেস তৈরি করবে না */
    border-bottom: 1px solid #ebe8e1;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.left-rail { 
    border: none; 
    padding: 0; 
    display: block !important; /* ফ্লেক্স স্ট্রেচ সম্পূর্ণ বন্ধ */
}
.right-rail { border: none; padding: 0; }
.center-content { min-width: 0; }

.rail-item {
    margin-bottom: 20px;
    padding-bottom: 0;
    border: none;
}
.side-headline {
    font-size: 23px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -0.4px;
}
.rail-item img {
    width: 100%;
    aspect-ratio: 16/10;
    height: 135px;
    object-fit: cover;
    margin: 6px 0;
    border: none;
}
.rail-item p {
    text-align: justify;
    text-justify: inter-word;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.48;
}

/* সুপার লিড */
.super-lead-block {
    margin-bottom: 25px;
    padding-bottom: 0;
    border: none;
}
.super-lead-image-wrap {
    width: 100%;
    margin-bottom: 10px;
}
.super-lead-image-wrap img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border: none;
}
.lead-shoulder-overlay {
    display: inline-block;
    background: #b30000;
    color: #fff;
    padding: 2px 8px;
    font-size: 13.5px;
    font-weight: 700;
    margin-top: 4px;
}
.super-lead-red-title {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    margin: 10px 0 6px;
    letter-spacing: -0.6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.super-lead-red-title a { color: #c40000 !important; }
.super-lead-red-title a:hover { color: #000 !important; }

.super-lead-three-cols-text {
    column-count: 3;
    column-gap: 20px;
    column-rule: none;
    text-align: justify;
    text-justify: inter-word;
    font-size: 14.5px;
    line-height: 1.5;
    color: #111;
    margin-top: 8px;
}

/* সেন্টারের ৩টি কলাম */
.center-bottom-subgrid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    border: none;
    margin-bottom: 25px;
}
.bottom-sub-card { border: none; padding: 0; }
.bottom-sub-card h4 {
    font-size: 21.5px;
    font-weight: 700;
    color: #000;
    line-height: 1.25;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bottom-sub-card img {
    width: 100%;
    aspect-ratio: 16/10;
    height: 125px;
    object-fit: cover;
    margin: 6px 0;
    border: none;
}
.bottom-sub-card p {
    font-size: 13.5px;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.45;
}

/* ===================================================
   মাঝের ফাঁকা অংশের ২টি খবর (বামে পুরো ছবি ও ডানে লেখা)
   =================================================== */
.center-duo-fixed-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.duo-box-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    align-items: start;
    background: #ffffff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ebe8e1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.duo-box-image img {
    width: 100%;
    height: 125px;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

.duo-box-details h4 {
    font-size: 19.5px;
    font-weight: 700;
    color: #000;
    line-height: 1.25;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.duo-box-details h4 a { color: #000; }
.duo-box-details h4 a:hover { color: #b30000; }

.duo-box-details p {
    font-size: 13.5px;
    color: #222;
    line-height: 1.45;
    text-align: justify;
    text-justify: inter-word;
}

/* সেকেন্ড লিড ও ডান কলাম */
.second-lead-block {
    margin-bottom: 18px;
    padding-bottom: 0;
    border: none;
}
.second-lead-blue-title {
    font-size: 29.5px;
    font-weight: 700;
    line-height: 1.2;
    margin: 4px 0 6px;
    letter-spacing: -0.4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.second-lead-blue-title a { color: #003366 !important; }
.second-lead-blue-title a:hover { color: #c40000 !important; }
.second-lead-block img {
    width: 100%;
    aspect-ratio: 16/10;
    height: 165px;
    object-fit: cover;
    margin: 6px 0;
    border: none;
}
.second-lead-block p {
    font-size: 14px;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.45;
}

.ad-slot-box {
    border: none;
    padding: 0;
    text-align: center;
    background: transparent;
    margin-bottom: 18px;
}
.ad-slot-box img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}
.ad-placeholder-box {
    background: #eae9e5;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 13px;
    font-weight: 700;
    border: none;
}

/* ডানের ৬টি ছোট খবর */
.under-ad-six-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 15px;
}
.six-grid-item {
    border: none;
    padding-bottom: 0;
    margin-bottom: 8px;
}
.six-img-box {
    width: 100%;
    margin-bottom: 5px;
}
.six-img-box img {
    width: 100%;
    height: 75px;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    border: none;
}
.six-grid-item h4 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
    color: #000;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.six-grid-item p {
    font-size: 12.8px;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.4;
    color: #222;
}

/* রাশিফল বক্স */
.newspaper-feature-box {
    background: #fdfdf9;
    border: 1px solid #e2e0d8;
    border-top: 3px solid #0b6623;
    padding: 14px;
    border-radius: 4px;
}
.feature-box-title {
    font-size: 17.5px;
    font-weight: 700;
    color: #0b6623;
    margin-bottom: 5px;
}
.feature-box-desc {
    font-size: 13px;
    color: #444;
    line-height: 1.45;
    margin-bottom: 6px;
}
.feature-box-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #b30000;
    text-decoration: none;
}
.feature-box-link:hover { text-decoration: underline; }

/* =========================================
   নিচের ৫টি সেকশন
   ========================================= */
.bottom-pure-five-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 0;
    border: none;
}
.bottom-column-item {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.bottom-item-img { width: 100%; margin-bottom: 8px; }
.bottom-item-img img {
    width: 100%;
    height: 125px;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    border: none;
}
.bottom-item-title {
    font-size: 19.5px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 5px;
    color: #000;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bottom-item-title a { color: #000; }
.bottom-item-title a:hover { color: #c40000; }
.bottom-item-excerpt {
    font-size: 13.5px;
    color: #222;
    line-height: 1.45;
    text-align: justify;
    text-justify: inter-word;
}

/* ফুটারের উপরের ২টি বিজ্ঞাপন */
.footer-dual-ad-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 0;
    border: none;
}
.footer-ad-item {
    border: none;
    background: transparent;
    padding: 0;
    text-align: center;
}
.footer-ad-item img {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: cover;
    display: block;
    border: none;
}
.footer-ad-placeholder {
    background: #ebeae5;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #777;
    font-weight: 700;
    border: none;
}

.print-jump-link {
    color: #c40000 !important;
    font-weight: 700;
    font-size: 12.5px;
    margin-left: 2px;
    white-space: nowrap;
}
.print-jump-link:hover { text-decoration: underline; }

.shoulder-tag {
    color: #c40000;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 2px;
}
.reporter-tag {
    font-size: 12.5px;
    color: #555;
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
}
.lead-rep { margin-top: 3px; }

a { text-decoration: none; color: inherit; }
a:hover { color: #c40000; }

/* ফুটার */
.newspaper-footer {
    margin-top: 20px;
    border: none;
    padding: 25px 20px 15px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    border: none;
    padding-bottom: 20px;
    margin-bottom: 15px;
}
.footer-col h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    border: none;
    padding-bottom: 0;
    display: inline-block;
}
.footer-col p { font-size: 13.5px; line-height: 1.55; }
.footer-bottom-bar { text-align: center; font-size: 13.5px; font-weight: 700; border: none; }

/* রাশিফল মডাল */
.rashifal-modal-wrap {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.65);
}
.rashifal-modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 25px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
    position: relative;
}
.rashifal-close {
    color: #888;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
.rashifal-close:hover { color: #000; }
.rashifal-modal-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0b6623;
    border-bottom: 2px solid #0b6623;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.rashifal-signs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.rashi-card {
    background: #fdfdf9;
    padding: 12px 14px;
    border: 1px solid #e2e0d8;
    border-left: 3px solid #b30000;
    font-size: 14px;
    line-height: 1.5;
}

/* রেসপনসিভ */
@media (max-width: 1024px) {
    .paper-main-grid, .footer-dual-ad-strip, .center-duo-fixed-row { 
        grid-template-columns: 1fr; 
    }
    .duo-box-item { grid-template-columns: 1fr; }
    .super-lead-three-cols-text { column-count: 1; }
    .top-strip-row, .header-top-grid, .footer-columns, .center-bottom-subgrid-3, .bottom-pure-five-grid, .rashifal-signs-grid { 
        grid-template-columns: 1fr; 
    }
    .header-right-meta { text-align: left !important; margin-top: 8px; }
}