/* Import SolaimanLipi Font */
@import url('https://fonts.googleapis.com/css2?family=Solaiman+Lipi:wght@400;700&display=swap');

/* General Body Styles for E-Paper */
body {
    font-family: 'SolaimanLipi', sans-serif;
    background-color: #f3f4f6;
    color: #000;
}

/* Main container for the e-paper content */
.epaper-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    background-color: #fff;
}

/* Header section with logo and date */
.epaper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    margin-bottom: 0;
}

.epaper-header img {
    max-height: 70px;
}

.epaper-header .date-container {
    text-align: right;
}

.epaper-header .day {
    font-size: 20px;
    font-weight: 700;
}

.epaper-header .date {
    font-size: 22px;
    color: #333;
}

/* Post title */
.epaper-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1;
    color: #D32F2F;
    text-align: center;
}

/* Feature image */
.epaper-image {
    width: 100%;
    height: 80%px;
    margin-bottom: .5rem;
}

/* Post content styling (MODIFIED) */
.epaper-content {
    font-size: 18px;
    text-align: justify;
    line-height: .9; /* Reduced line-height for tighter spacing */
    column-count: 3;
    column-gap: 1.5rem;
}

.epaper-content p {
    margin-top: 0;
    margin-bottom: 0em;
    text-indent: 0;
}

/* E-paper footer */
.epaper-footer {
    border-top: 2px solid #000;
    margin-top: 5px;
    padding-top: 1px;
    text-align: center;
    font-size: 19px;
    color: #000000;
}

/* Action buttons (Print/Download) */
.epaper-actions {
    margin: 30px 0 10px;
    text-align: center;
    break-after: page;
}

.epaper-actions button, .epaper-actions a {
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
    font-family: 'SolaimanLipi', sans-serif;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}
.epaper-actions button.print-btn {
    background-color: #1d4ed8; /* blue-700 */
}
.epaper-actions button.print-btn:hover {
    background-color: #1e40af; /* blue-800 */
}
.epaper-actions button.png-btn {
    background-color: #059669; /* green-600 */
}
.epaper-actions button.png-btn:hover {
    background-color: #047857; /* green-700 */
}
.epaper-actions a.back-btn {
    background-color: #6b7280; /* gray-500 */
}
.epaper-actions a.back-btn:hover {
    background-color: #4b5563; /* gray-600 */
}
.epaper-actions button:disabled {
    background-color: #9ca3af; /* gray-400 */
    cursor: not-allowed;
}


/* Print-specific styles */
@media print {
    @page {
        size: 1000px 1000px;
        margin: 20mm;
    }
    body {
        background-color: #fff;
        margin: 0;
        padding: 0;
    }
    .epaper-container {
        border: none;
        margin: 0;
        padding: 0;
        max-width: 100%;
        box-shadow: none;
    }
    .epaper-content {
        break-inside: avoid;
    }
    .epaper-actions {
        display: none; /* Hide buttons when printing */
    }
}
