/* SCIT-BOSS Advanced Bangla News Portal CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary-color: #b30000;
    --secondary-color: #0d5c2e;
    --accent-color: #d35400;
    --dark-color: #1a1a1a;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #e2e8f0;
    --font-bangla: 'Noto Sans Bengali', 'SolaimanLipi', Arial, sans-serif;
}

body {
    font-family: var(--font-bangla);
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-bangla);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
}

a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-color);
}

/* Top Information Bar */
.top-bar {
    background-color: #f1f5f9;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
}

.top-bar-date {
    color: #475569;
    font-weight: 500;
}

.top-bar-social a {
    color: #64748b;
    margin-left: 12px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.top-bar-social a:hover {
    color: var(--primary-color);
}

/* Header Section */
.newspaper-header {
    padding: 16px 0 12px 0;
    border-bottom: 2px solid var(--border-color);
}

.newspaper-brand-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.05);
}

.newspaper-slogan {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.header-ad-box {
    min-height: 90px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Navigation Bar */
.newspaper-navbar {
    background-color: #ffffff;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    padding: 0;
}

.newspaper-navbar .nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b !important;
    padding: 12px 14px !important;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.newspaper-navbar .nav-link:hover,
.newspaper-navbar .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
    background-color: #fff5f5;
}

/* Breaking News Ticker */
.breaking-ticker-wrapper {
    background-color: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breaking-label {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 18px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 7px 10px;
}

.ticker-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 35s linear infinite;
}

.ticker-marquee:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 35px;
}

.ticker-item:hover {
    color: #fbbf24;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* News Cards & Lead Story */
.lead-card {
    border: none;
    background: transparent;
    margin-bottom: 25px;
}

.lead-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    max-height: 420px;
}

.lead-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lead-card:hover .lead-img-wrapper img {
    transform: scale(1.03);
}

.lead-card-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin-top: 14px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.lead-card-excerpt {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 10px;
}

.meta-byline {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Secondary Story Card */
.secondary-card {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 18px;
    display: flex;
    gap: 14px;
}

.secondary-img-wrapper {
    width: 125px;
    height: 85px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.secondary-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.secondary-card:hover .secondary-img-wrapper img {
    transform: scale(1.05);
}

.secondary-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Section Headers */
.section-header {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    background-color: var(--primary-color);
    padding: 6px 16px;
    margin-bottom: -8px;
    border-radius: 3px 3px 0 0;
    display: inline-block;
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Category Badge */
.cat-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 6px;
}

/* Opinion & Poll Widget */
.poll-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--secondary-color);
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 25px;
}

.poll-question {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Footer Section */
.newspaper-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 45px 0 25px 0;
    margin-top: 45px;
    border-top: 4px solid var(--primary-color);
}

.footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    margin-top: 35px;
    font-size: 0.88rem;
}

.developer-attribution-box {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 15px;
    color: #e2e8f0;
}

.developer-attribution-box a {
    color: #38bdf8;
    font-weight: 600;
}

.developer-attribution-box a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Article Page Details */
.article-header {
    margin-bottom: 20px;
}

.article-headline {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}

.article-subheadline {
    font-size: 1.25rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-byline-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.reporter-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--primary-color);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #1e293b;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: #f8fafc;
    padding: 14px 20px;
    font-style: italic;
    font-size: 1.2rem;
    color: #334155;
    margin: 25px 0;
}

.font-resizer-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
    cursor: pointer;
}

.font-resizer-btn:hover {
    background: #f1f5f9;
}

/* Mobile Sticky Ad */
.mobile-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    z-index: 1000;
    padding: 6px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Equalized Navigation Bar with Hover Dropdowns */
@media (min-width: 992px) {
    .newspaper-navbar .navbar-nav {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
    .newspaper-navbar .nav-item {
        flex: 1;
        text-align: center;
        position: relative;
    }
    .newspaper-navbar .nav-link {
        padding: 12px 6px !important;
        white-space: nowrap;
        font-size: 0.96rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }
    .newspaper-navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInNavbar 0.2s ease-in-out;
    }
}

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

.newspaper-navbar .dropdown-menu {
    border: none;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 200px;
}

.newspaper-navbar .dropdown-item {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    color: #334155;
    transition: all 0.2s;
}

.newspaper-navbar .dropdown-item:hover {
    background-color: #fff1f1;
    color: var(--primary-color);
    padding-left: 20px;
}

/* Prayer Times & Live Info Bar */
.prayer-info-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    padding: 5px 0;
}

.prayer-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 500;
    color: #475569;
}

/* News Photo Card System */
.photo-card-wrapper {
    max-width: 650px;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.photo-card-container {
    width: 100%;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    color: #ffffff;
    font-family: var(--font-bangla);
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.photo-card-header {
    background: linear-gradient(135deg, #b30000 0%, #7d0000 100%);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-card-brand {
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
}

.photo-card-badge {
    background: rgba(255,255,255,0.25);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.photo-card-image-box {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #111;
}

.photo-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 22px 18px 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
}

.photo-card-headline {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.38;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.85);
}

.photo-card-meta {
    font-size: 0.82rem;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 8px;
    margin-top: 6px;
}

.photo-card-footer {
    background: #090d16;
    padding: 9px 20px;
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Style 2: Royal Navy & Gold */
.photo-card-container.style-navy {
    background: #0a192f;
    border: 2px solid #f59e0b;
}
.photo-card-container.style-navy .photo-card-header {
    background: linear-gradient(135deg, #0f2744 0%, #081426 100%);
    border-bottom: 2px solid #f59e0b;
}
.photo-card-container.style-navy .photo-card-brand {
    color: #fcd34d;
}
.photo-card-container.style-navy .photo-card-badge {
    background: #d97706;
    color: #ffffff;
}
.photo-card-container.style-navy .photo-card-image-overlay {
    background: linear-gradient(to top, rgba(10,25,47,0.98) 0%, rgba(10,25,47,0.75) 60%, transparent 100%);
}
.photo-card-container.style-navy .photo-card-headline {
    color: #ffffff;
}
.photo-card-container.style-navy .photo-card-meta {
    color: #cbd5e1;
    border-top-color: rgba(245, 158, 11, 0.4);
}
.photo-card-container.style-navy .photo-card-footer {
    background: #060e1a;
    color: #94a3b8;
    border-top-color: rgba(245, 158, 11, 0.25);
}

/* Style 3: Editorial White Frame */
.photo-card-container.style-white {
    background: #ffffff;
    color: #0f172a;
    border: 3px double #b30000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.photo-card-container.style-white .photo-card-header {
    background: #ffffff;
    color: #b30000;
    border-bottom: 2px solid #b30000;
}
.photo-card-container.style-white .photo-card-brand {
    color: #b30000;
    font-family: 'Noto Serif Bengali', serif;
}
.photo-card-container.style-white .photo-card-badge {
    background: #b30000;
    color: #ffffff;
}
.photo-card-container.style-white .photo-card-image-box {
    height: 320px;
}
.photo-card-container.style-white .photo-card-image-overlay {
    position: static;
    background: #ffffff;
    padding: 16px 20px;
    border-top: 3px solid #b30000;
}
.photo-card-container.style-white .photo-card-headline {
    color: #0f172a;
    text-shadow: none;
    font-size: 1.45rem;
    font-family: 'Noto Serif Bengali', serif;
    font-weight: 700;
}
.photo-card-container.style-white .photo-card-meta {
    color: #64748b;
    border-top-color: #e2e8f0;
}
.photo-card-container.style-white .photo-card-footer {
    background: #f8fafc;
    color: #475569;
    border-top: 1px solid #e2e8f0;
}

/* Style 4: Cinematic Dark Poster */
.photo-card-container.style-poster {
    background: #111827;
    border: 2px solid #ef4444;
}
.photo-card-container.style-poster .photo-card-header {
    background: #000000;
    border-bottom: 2px solid #ef4444;
}
.photo-card-container.style-poster .photo-card-brand {
    color: #f59e0b;
    font-weight: 900;
}
.photo-card-container.style-poster .photo-card-badge {
    background: #dc2626;
    color: #ffffff;
}
.photo-card-container.style-poster .photo-card-image-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.4) 100%);
}
.photo-card-container.style-poster .photo-card-headline {
    color: #fef08a;
    font-size: 1.65rem;
    font-weight: 900;
}
.photo-card-container.style-poster .photo-card-meta {
    color: #e2e8f0;
    border-top-color: rgba(239, 68, 68, 0.4);
}
.photo-card-container.style-poster .photo-card-footer {
    background: #030712;
    color: #9ca3af;
    border-top-color: rgba(239, 68, 68, 0.3);
}

/* Utility animations & interactive styles */
.hover-zoom {
    transition: transform 0.35s ease;
}

.hover-zoom:hover {
    transform: scale(1.04);
}

.hover-shadow {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hover-shadow:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.animate-pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#divisionTabs .nav-link {
    color: #334155;
    background-color: #e2e8f0;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
}

#divisionTabs .nav-link.active {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(179, 0, 0, 0.3);
}

#divisionTabs .nav-link:hover:not(.active) {
    background-color: #cbd5e1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .newspaper-brand-title {
        font-size: 2.1rem;
    }
    .article-headline {
        font-size: 1.7rem;
    }
    .lead-card-title {
        font-size: 1.45rem;
    }
    .photo-card-image-box {
        height: 280px;
    }
    .photo-card-headline {
        font-size: 1.25rem;
    }
}
