/* ==========================================================================
   Premium Newspaper Framework - Prothom Alo Style (Fully Dynamic)
   File: assets/css/style.css
   Version: 3.0.1
   ========================================================================== */

/* --- 1. Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@400;500;600;700;800&display=swap');

/* --- 2. CSS Variables (Colors, Fonts, Layouts) --- */
:root {
    /* Brand Colors */
    --nspr-primary: #ed1c24; /* Prothom Alo Red */
    --nspr-primary-dark: #b5151b;
    --nspr-secondary: #0056b3;
    --nspr-accent: #f8b400;

    /* Text Colors */
    --nspr-text-main: #111111;
    --nspr-text-muted: #555555;
    --nspr-text-light: #888888;
    --nspr-text-white: #ffffff;

    /* Background Colors */
    --nspr-bg-body: #ffffff;
    --nspr-bg-gray: #f2f2f2;
    --nspr-bg-light: #f9f9f9;
    --nspr-bg-dark: #121212;

    /* Borders & Shadows */
    --nspr-border-color: #e2e2e2;
    --nspr-border-dark: #222222;
    --nspr-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --nspr-shadow-md: 0 4px 6px rgba(0,0,0,0.08);
    --nspr-shadow-lg: 0 10px 15px rgba(0,0,0,0.1);

    /* Fonts */
    --nspr-font-primary: 'Hind Siliguri', sans-serif;
    --nspr-font-heading: 'Noto Serif Bengali', serif;

    /* Transitions & Misc */
    --nspr-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --nspr-radius: 4px;
}

/* --- 3. Global Resets & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--nspr-font-primary);
    background-color: var(--nspr-bg-body);
    color: var(--nspr-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nspr-font-heading);
    font-weight: 700;
    color: var(--nspr-text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

a {
    color: var(--nspr-text-main);
    text-decoration: none;
    transition: var(--nspr-transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- 4. Top Bar (Date, Social, Edition) --- */
.nspr-top-bar {
    background-color: var(--nspr-bg-body);
    border-bottom: 1px solid var(--nspr-border-color);
    padding: 6px 0;
    font-size: 14px;
    color: var(--nspr-text-muted);
}

.nspr-top-bar .date-time {
    font-weight: 500;
}

.nspr-top-bar .date-time i {
    color: var(--nspr-primary);
    margin-right: 5px;
}

.nspr-social-icons a {
    color: var(--nspr-text-muted);
    margin-left: 15px;
    font-size: 15px;
}

.nspr-social-icons a:hover {
    color: var(--nspr-primary);
}

.nspr-top-btn {
    border: 1px solid var(--nspr-border-color);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    margin-left: 15px;
}

.nspr-top-btn:hover {
    background-color: var(--nspr-primary);
    color: var(--nspr-text-white);
    border-color: var(--nspr-primary);
}

/* --- 5. Middle Header (Logo & Advertisement) --- */
.nspr-middle-header {
    padding: 25px 0;
    background-color: var(--nspr-bg-body);
}

.nspr-logo-wrapper {
    display: flex;
    align-items: center;
}

.nspr-logo-wrapper img {
    max-height: 65px;
    width: auto;
    transition: transform 0.3s;
}

.nspr-logo-wrapper img:hover {
    transform: scale(1.02);
}

.nspr-header-ad {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: var(--nspr-bg-gray);
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
    float: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 6. Main Navigation (Sticky, Hover FX) --- */
.nspr-navbar {
    background-color: var(--nspr-bg-body);
    border-top: 1px solid var(--nspr-border-color);
    border-bottom: 3px solid var(--nspr-text-main);
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0;
    box-shadow: var(--nspr-shadow-sm);
}

.nspr-navbar .navbar-nav {
    width: 100%;
    justify-content: flex-start;
}

.nspr-navbar .nav-item {
    position: relative;
    padding: 0 2px;
}

.nspr-navbar .nav-link {
    color: var(--nspr-text-main) !important;
    font-size: 17px;
    font-weight: 600;
    padding: 16px 14px !important;
    position: relative;
    text-transform: capitalize;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: none;
}

.nspr-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--nspr-primary);
    transition: width 0.3s ease;
}

.nspr-navbar .nav-item.active .nav-link::after {
    width: 100%;
}

.nspr-navbar .nav-link:focus,
.nspr-navbar .nav-link:active,
.nspr-navbar .nav-link:focus-visible {
    color: var(--nspr-text-main) !important;
    outline: none;
    box-shadow: none;
}

.nspr-navbar .nav-link:focus::after,
.nspr-navbar .nav-link:active::after,
.nspr-navbar .nav-link:focus-visible::after {
    width: 0;
}

.nspr-navbar .navbar-toggler:focus,
.nspr-navbar .navbar-toggler:active {
    outline: none;
    box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
    .nspr-navbar .nav-link:hover::after {
        width: 100%;
    }

    .nspr-navbar .nav-link:hover {
        color: var(--nspr-primary) !important;
    }
}

.nspr-search-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--nspr-text-main);
    padding: 10px;
    cursor: pointer;
}

.nspr-search-btn:hover {
    color: var(--nspr-primary);
}

/* --- 7. Breaking News Ticker --- */
.nspr-breaking-wrapper {
    background-color: var(--nspr-bg-gray);
    border-bottom: 1px solid var(--nspr-border-color);
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
}

.nspr-breaking-label {
    background-color: var(--nspr-primary);
    color: var(--nspr-text-white);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.nspr-breaking-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-width: 20px 0 20px 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--nspr-primary);
    z-index: -1;
}

.nspr-ticker-content {
    flex: 1;
    padding-left: 20px;
}

.nspr-ticker-content a {
    color: var(--nspr-text-main);
    font-size: 16px;
    font-weight: 500;
    margin-right: 30px;
    display: inline-block;
}

.nspr-ticker-content a i {
    color: var(--nspr-primary);
    font-size: 8px;
    vertical-align: middle;
    margin-right: 5px;
}

.nspr-ticker-content a:hover {
    color: var(--nspr-primary);
    text-decoration: underline;
}

/* --- 8. Hero Section (Lead News) --- */
.nspr-lead-section {
    padding: 30px 0;
    border-bottom: 2px solid var(--nspr-border-dark);
    margin-bottom: 30px;
}

.nspr-lead-title {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 15px;
}

.nspr-lead-excerpt {
    font-size: 18px;
    color: var(--nspr-text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.nspr-img-zoom {
    overflow: hidden;
    position: relative;
}

.nspr-img-zoom img {
    transition: transform 0.5s ease;
    width: 100%;
}

.nspr-img-zoom:hover img {
    transform: scale(1.05);
}

.nspr-time-ago {
    font-size: 13px;
    color: var(--nspr-text-light);
    font-family: var(--nspr-font-primary);
    margin-top: 8px;
    display: block;
}

/* --- 9. Standard News Cards --- */
.nspr-card {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--nspr-border-color);
}

.nspr-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nspr-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 12px;
    line-height: 1.35;
}

.nspr-card-small .nspr-card-title {
    font-size: 18px;
    margin-top: 8px;
}

.nspr-card-horizontal {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.nspr-card-horizontal .nspr-img-zoom {
    flex: 0 0 120px;
}

.nspr-card-horizontal .nspr-card-title {
    margin-top: 0;
    font-size: 18px;
}

/* --- 10. Section Titles & Category Blocks --- */
.nspr-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--nspr-text-main);
    border-bottom: 2px solid var(--nspr-border-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.nspr-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background-color: var(--nspr-primary);
}

.nspr-section-title i {
    color: var(--nspr-primary);
    margin-right: 8px;
}

/* --- 11. Sidebar Styles (Tabs & Widgets) --- */
.nspr-sidebar {
    padding-left: 20px;
    border-left: 1px solid var(--nspr-border-color);
}

.nspr-nav-tabs {
    border-bottom: 2px solid var(--nspr-border-dark);
    margin-bottom: 20px;
}

.nspr-nav-tabs .nav-link {
    border: none;
    color: var(--nspr-text-muted);
    font-size: 18px;
    font-weight: 700;
    padding: 10px 15px;
    font-family: var(--nspr-font-heading);
}

.nspr-nav-tabs .nav-link.active {
    background: transparent;
    color: var(--nspr-primary);
    border-bottom: 2px solid var(--nspr-primary);
    margin-bottom: -2px;
}

.nspr-list-group-item {
    border: none;
    border-bottom: 1px dashed var(--nspr-border-color);
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
}

.nspr-list-group-item:last-child {
    border-bottom: none;
}

.nspr-list-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--nspr-border-color);
    margin-right: 15px;
    line-height: 1;
    font-family: var(--nspr-font-primary);
}

.nspr-list-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* --- 12. Single Article Page (Details) --- */
.nspr-article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--nspr-border-color);
    padding-bottom: 20px;
}

.nspr-breadcrumb {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.nspr-breadcrumb a {
    color: var(--nspr-primary);
}

.nspr-article-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.nspr-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: var(--nspr-text-muted);
    flex-wrap: wrap;
}

.nspr-author-info strong {
    color: var(--nspr-text-main);
}

.nspr-social-share {
    display: flex;
    gap: 10px;
}

.nspr-share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: opacity 0.3s;
}

.nspr-share-btn:hover {
    opacity: 0.8;
    color: #fff;
}

.bg-facebook { background-color: #3b5998; }
.bg-twitter { background-color: #1da1f2; }
.bg-whatsapp { background-color: #25d366; }
.bg-print { background-color: #555; }

.nspr-article-content {
    font-size: 20px;
    line-height: 1.8;
    color: #333;
    font-family: var(--nspr-font-primary);
    margin-top: 30px;
}

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

.nspr-article-content h2,
.nspr-article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.nspr-article-content blockquote {
    border-left: 4px solid var(--nspr-primary);
    padding: 15px 20px;
    background: var(--nspr-bg-light);
    font-size: 22px;
    font-style: italic;
    font-family: var(--nspr-font-heading);
    margin: 30px 0;
    color: var(--nspr-primary-dark);
}

.nspr-article-caption {
    font-size: 14px;
    color: var(--nspr-text-light);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
    font-style: italic;
}

/* --- 13. Tags & Related News --- */
.nspr-tags {
    margin: 40px 0;
}

.nspr-tag-item {
    display: inline-block;
    padding: 5px 15px;
    background: var(--nspr-bg-gray);
    color: var(--nspr-text-main);
    border-radius: 20px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--nspr-border-color);
}

.nspr-tag-item:hover {
    background: var(--nspr-primary);
    color: #fff;
    border-color: var(--nspr-primary);
}

.nspr-related-news {
    background: var(--nspr-bg-light);
    padding: 30px;
    border-top: 2px solid var(--nspr-border-dark);
    margin-top: 40px;
}

/* --- 14. Footer Layout --- */
.nspr-footer {
    background-color: var(--nspr-bg-body);
    border-top: 4px solid var(--nspr-border-dark);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.nspr-footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.nspr-footer-text {
    color: var(--nspr-text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.nspr-footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--nspr-text-main);
}

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

.nspr-footer-links a {
    color: var(--nspr-text-muted);
    font-size: 15px;
}

.nspr-footer-links a:hover {
    color: var(--nspr-primary);
    padding-left: 5px;
}

.nspr-copyright {
    border-top: 1px solid var(--nspr-border-color);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--nspr-text-light);
    font-size: 14px;
}

@media (min-width: 992px) {
    #nsprMainMenu {
        display: flex !important;
        align-items: center;
        gap: 18px;
        overflow: hidden;
    }

    .nspr-navbar-scroll {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scrollbar-color: #d1d5db transparent;
    }

    .nspr-navbar-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .nspr-navbar-scroll::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 999px;
    }

    .nspr-navbar-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .nspr-navbar-menu {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 2px;
    }

    .nspr-navbar-menu .nav-item {
        flex: 0 0 auto;
    }

    .nspr-navbar-menu .nav-link {
        white-space: nowrap;
    }

    .nspr-navbar-search {
        flex: 0 0 460px;
        width: 460px;
        min-width: 460px;
        max-width: 460px;
    }
}


/* --- 15. Responsive Design (Media Queries) --- */
@media (max-width: 991px) {
    .nspr-middle-header {
        text-align: center;
        padding: 15px 0;
    }

    .nspr-header-ad {
        display: none; /* Hide top ad on mobile/tablet */
    }
    
        .nspr-navbar-scroll {
        width: 100%;
        overflow: visible;
    }

    .nspr-navbar-menu {
        display: block;
        white-space: normal;
    }


    .nspr-sidebar {
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
    }

    .nspr-article-title {
        font-size: 32px;
    }

    .nspr-lead-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .nspr-top-bar {
        text-align: center;
    }

    .top-bar-right {
        margin-top: 10px;
        justify-content: center;
        display: flex;
    }

    .nspr-breaking-label {
        font-size: 13px;
        padding: 0 10px;
    }

    .nspr-card-horizontal {
        flex-direction: column;
    }

    .nspr-card-horizontal .nspr-img-zoom {
        flex: auto;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* --- 16. Pagination Styles --- */
.nspr-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.nspr-pagination .page-link {
    color: var(--nspr-text-main);
    border: none;
    margin: 0 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.nspr-pagination .page-item.active .page-link {
    background-color: var(--nspr-primary);
    color: #fff;
}

.nspr-pagination .page-link:hover {
    background-color: var(--nspr-bg-gray);
    color: var(--nspr-primary);
}

.top-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(239, 51, 64, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 2;
    pointer-events: none;
    padding-left: 4px;
}

.header-exclusive-box {
    background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
    border: 1px solid #f1e3c4;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    min-height: 150px;
}

.header-exclusive-title {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1e3c4;
    padding-bottom: 8px;
}

.header-exclusive-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-exclusive-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #111;
    transition: 0.2s ease;
}

.header-exclusive-item:hover .header-exclusive-headline {
    color: #ef3340;
}

.header-exclusive-thumb-wrap {
    position: relative;
    flex-shrink: 0;
}

.header-exclusive-thumb {
    width: 92px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.header-exclusive-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 51, 64, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    padding-left: 2px;
}

.header-exclusive-content {
    min-width: 0;
    flex: 1;
}

.header-exclusive-headline {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
    color: #111;
    transition: color 0.2s ease;
}

.header-exclusive-time {
    font-size: 11px;
    color: #777;
    font-weight: 600;
}


/* ==========================================================================
   End of Style.css
   ========================================================================== */
