/* Daily E-Paper Styles - Newspaper look */

.dep-epaper-wrapper {
    --dep-primary: #c41e3a;
    --dep-text: #1a1a1a;
    --dep-border: #333;
    --dep-bg: #f8f5f0;
    --dep-paper: #fffef9;
    font-family: 'Noto Serif Bengali', 'SolaimanLipi', 'Kalpurush', Georgia, serif;
    background: #e8e4dc;
    padding: 20px 10px;
    max-width: 1100px;
    margin: 0 auto;
    color: var(--dep-text);
    line-height: 1.5;
}

/* Navigation */
.dep-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.dep-nav-btn {
    background: #fff;
    border: 2px solid var(--dep-primary);
    color: var(--dep-primary);
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: inherit;
}

.dep-nav-btn:hover,
.dep-nav-btn.active {
    background: var(--dep-primary);
    color: #fff;
}

/* Page container */
.dep-page {
    display: none;
    background: var(--dep-paper);
    border: 1px solid #ccc;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 20px 25px 30px;
    min-height: 700px;
    position: relative;
}

.dep-page.active {
    display: block;
    animation: depFadeIn 0.35s ease;
}

@keyframes depFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Masthead */
.dep-masthead {
    margin-bottom: 18px;
    border-bottom: 3px double var(--dep-border);
    padding-bottom: 10px;
}

.dep-masthead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dep-paper-name {
    font-size: 42px;
    font-weight: 900;
    color: var(--dep-primary);
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.1;
}

.dep-logo {
    max-height: 70px;
    width: auto;
}

.dep-meta {
    text-align: right;
    font-size: 13px;
    color: #444;
}

.dep-meta span {
    display: block;
    margin-bottom: 2px;
}

.dep-date {
    font-weight: 700;
    font-size: 14px;
}

.dep-page-num {
    color: var(--dep-primary);
    font-weight: 700;
}

.dep-masthead-line {
    height: 4px;
    background: linear-gradient(to right, var(--dep-primary), #333);
    margin-top: 8px;
}

/* Lead Story (Page 1) */
.dep-lead-story {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.dep-lead-image img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border: 1px solid #ccc;
}

.dep-lead-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
}

.dep-lead-title a {
    color: var(--dep-text);
    text-decoration: none;
}

.dep-lead-title a:hover {
    color: var(--dep-primary);
}

.dep-lead-excerpt {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.dep-read-more {
    color: var(--dep-primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

/* Columns layout */
.dep-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.dep-column {
    border-right: 1px solid #ddd;
    padding-right: 18px;
}

.dep-column:last-child {
    border-right: none;
    padding-right: 0;
}

/* Story Card */
.dep-story-card {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e0e0;
}

.dep-story-card:last-child {
    border-bottom: none;
}

.dep-story-thumb {
    margin-bottom: 8px;
}

.dep-story-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.dep-story-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
}

.dep-story-title a {
    color: var(--dep-text);
    text-decoration: none;
}

.dep-story-title a:hover {
    color: var(--dep-primary);
}

.dep-story-excerpt {
    font-size: 13.5px;
    color: #444;
    line-height: 1.45;
}

/* No news */
.dep-no-news {
    text-align: center;
    padding: 60px 20px;
    color: #777;
    font-size: 18px;
}

/* Footer */
.dep-footer-note {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .dep-columns {
        grid-template-columns: 1fr 1fr;
    }
    .dep-column:nth-child(2) {
        border-right: none;
    }
    .dep-lead-story {
        grid-template-columns: 1fr;
    }
    .dep-paper-name {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .dep-columns {
        grid-template-columns: 1fr;
    }
    .dep-column {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ddd;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    .dep-nav-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .dep-page {
        padding: 15px;
    }
}
