:root {
    --primary-color: #ce332a;
    /* NewsWeek Red */
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-dark: #111111;
    --text-light: #666666;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;
    --border-color: #eeeeee;
    --card-shadow: none;
    /* Premium look uses clean borders */
    --card-radius: 0px;
    /* Sharp corners for newspaper look */
    --heading-font: 'Poppins-Bold', sans-serif;
    --ui-font: 'Roboto', sans-serif;
}

/* Custom fonts from public/fonts */
@font-face {
    font-family: 'Poppins-Bold';
    src: url('../../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Roboto';
    src: url('../../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
}


/* Dark theme tokens */
.theme-dark {
    --primary-color: #60a5fa;
    --secondary-color: #94a3b8;
    --accent-color: #fbbf24;
    --text-dark: #e5e7eb;
    --text-light: #94a3b8;
    --bg-light: #0b1220;
    --bg-white: #0f172a;
}

/* Hero Slider Styles */
.hero-slider-container {
    position: relative;
    overflow: hidden;
}

#heroPostSlider .carousel-item {
    height: 600px;
}

#heroPostSlider img {
    object-fit: cover;
    height: 100%;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#heroPostSlider .carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    left: 10%;
    right: 10%;
    max-width: 700px;
}

@media (max-width: 768px) {
    #heroPostSlider .carousel-caption {
        top: auto;
        bottom: 30px;
        transform: none;
    }

    #heroPostSlider .carousel-caption h1 {
        font-size: 1.75rem;
    }

    #heroPostSlider .carousel-item {
        height: 450px;
    }
}

.category-filters {
    position: relative;
    z-index: 100;
    margin-bottom: -30px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--ui-font);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    /* Newspaper uses white background mostly */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Header Utilities */
.nw-topbar {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nw-logo {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--primary-color);
    text-decoration: none;
    font-style: italic;
    font-weight: 900;
}

/* Badge System */
.nw-badge {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    display: inline-block;
}

.nw-badge-primary {
    background: var(--primary-color);
    color: white;
}

.nw-badge-exclusive {
    background: #111;
    color: white;
}

.nw-badge-trending {
    background: #f39c12;
    color: white;
}

/* Section Headers */
.nw-section-header {
    /* border-bottom: 2px solid #000; */
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 5px;
}

.nw-section-title {
    margin: 0;
    text-transform: capitalize;
    font-size: 1.5rem;
    position: relative;
}

/* .nw-section-title::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
} */

/* Grid Layouts */
/* .nw-hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.2fr;
    gap: 20px;
    margin-bottom: 40px;
} */

.nw-card {
    border: none;
    background: transparent;
    margin-bottom: 10px !important;
    border-bottom: 1px solid #00000033;
    padding-bottom: 7px;
}

.nw-card:last-child {
    border-bottom: 0;
}

.thecommonnbacgrouunds {
    background: #eeeeee7a;
    padding: 30px 17px 17px;
    margin-top: -33px;
}

.breakkingnews .thecommonnbacgrouunds {
    margin-top: -50px;
}

.nw-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 15px;
}

.nw-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.nw-card-title a {
    color: inherit;
    text-decoration: none;
}

.nw-card-title a:hover {
    color: var(--primary-color);
}

.nw-card-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nw-card-meta .category {
    color: var(--primary-color);
    background: #0d6efd;
    color: #fff !important;
    letter-spacing: 0.5px;
    padding: 2px 12px 1px;
    border-radius: 32px;
}

/* Large Featured Card (Middle Hero) */
.nw-card-lg {
    position: relative;
    height: 100%;
}

.nw-card-lg .nw-card-image {
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
}

.nw-card-lg .nw-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.nw-card-lg .nw-card-title {
    font-size: 2rem;
    color: white;
}

/* Thumbnail Card (Listings) */
.nw-card-thumb {
    display: flex;
    gap: 15px;
}

.nw-card-thumb .nw-card-image {
    width: 200px !important;
    height: 100% !important;
    flex-shrink: 0;
    margin: 0;
}

/* Footer Section */
.nw-footer {
    background: #fff;
    border-top: 5px solid #000;
    padding: 50px 0;
    margin-top: 60px;
}


/* Sidebar Styles */
.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Search Form */
.search-form {
    position: relative;
}

.search-input {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    padding-right: 3.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--accent-color);
}

/* Popular Posts */
.popular-post {
    display: flex;
    align-items: flex-start;
    padding: 0rem 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.popular-post-content h6 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.popular-post-content h6 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-post-content h6 a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: #0b1220;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .blog-card-body {
        padding: 1.5rem;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

header.header-main {
    padding-top: 18px;
}

.themenusstops {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;
}

.thenmainheaderlogo {
    width: 250px !important;
    height: 60px !important;
    display: flex;
}

.thenmainheaderlogo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

ul.thelefftsssuls {
    display: flex;
    align-items: center;
}

ul.thelefftsssuls li {
    margin-right: 17px;
}

ul.thelefftsssuls li a {
    font-family: 'Inter';
    font-size: 19px;
    font-weight: 600;
}

ul.thecateeoryistss {
    display: flex;
    align-items: center;
    box-shadow: unset !important;
    border-top: 1px solid #00000021;
}

ul.thecateeoryistss li {
    margin-right: 20px;
    font-family: 'Inter';
    font-weight: 500;
    font-size: 18px;
}

.thecatenavss {
    background: #fff;
}

.dropdown-menu.show.theallcategorrydrops {
    width: 1000px;
    display: flex;
    flex-wrap: wrap;
}

.theallcategorrydrops li {
    width: 20%;
}

.theallcategorrydrops li a.dropdown-item {
    font-size: 17px;
}

.thebannerrrdiss {
    display: flex;
    align-items: flex-start;
    height: 150px !important;
}

.theimaggeess {
    width: 131px;
}

.heroSwiper .nw-card-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-overlay .search-form {
    width: 60%;
    max-width: 600px;
}

.search-overlay .search-input {
    border: none !important;
    border-bottom: 2px solid #111 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 2.5rem !important;
    padding: 0.75rem 0 !important;
    background: transparent !important;
    font-family: 'PT Serif', serif !important;
    text-align: center !important;
}

.search-overlay .search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: #111;
    transition: transform 0.3s;
}

.search-overlay .search-close:hover {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .search-overlay .search-form {
        width: 90%;
    }

    .search-overlay .search-input {
        font-size: 1.5rem !important;
    }
}

.thecomonheadiings {
    border-bottom: 0 !important;
    /* background: #ce332a; */
    padding: 9px 24px !important;
    width: fit-content;
    color: #000;
    /* clip-path: polygon(9% 0, 100% 0, 86% 100%, 0% 99%); */
    position: relative;
    left: 0;
    text-align: center;
    font-size: 80px;
    margin-bottom: 50px !important;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    z-index: 99;
}

.thecomonheadiings::before {
    content: '';
    width: 100%;
    height: 10px;
    background: #ce332a;
    position: absolute;
    clip-path: polygon(5% 0, 100% 0, 92% 100%, 0% 99%);
    bottom: 10px;
    z-index: -9;
    left: 0;
}

h5.nw-section-title.theheaddingsofcategory {


    position: relative;
    border-bottom: 0 !important;

    padding: 9px 24px !important;
    width: fit-content;
    color: #000;

    position: relative;
    left: 0;
    text-align: center;
    font-size: 80px;
    margin-bottom: 50px !important;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    z-index: 99;
}

h5.nw-section-title.theheaddingsofcategory::after {
    content: unset;
}

h5.nw-section-title.theheaddingsofcategory::before {

    border-radius: 54px;
    content: '';
    width: 100%;
    height: 10px;
    background: #ce332a;
    position: absolute;
    clip-path: polygon(5% 0, 100% 0, 92% 100%, 0% 99%);
    bottom: 10px;
    z-index: -9;
    left: 0;
}

.theviewaallsss {
    position: absolute;
    right: 8px;
    background: #ce332a;
    color: #fff !important;
    top: 0;
    padding: 6px 15px;
    top: 17px;
    clip-path: polygon(2% 0, 100% 0, 90% 520%, 0% 99%);
}

section#all-posts {
    padding-left: 50px;
    padding-right: 50px;
}

.thelefftssautoss {
    padding-top: 27px;
}

.thelefftssautoss .tag-badge {
    background: transparent !important;
    font-size: 13px;
    border-radius: 31px !important;
    color: #000 !important;
    border: 1px solid #fd4f4582;
    border-bottom: 2px solid #fd4f4582;
    FONT-WEIGHT: 600;
    letter-spacing: 0.5px;
}

.thenewssletteerr {
    background: #ce332a !important;
}

.thenewssletteerr .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.abnnergriddss {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    height: 560px;
}

.nw-hero-middle {
    height: 560px;
}

.left-big {
    grid-row: span 3;
    height: 560px;
}

.right-small {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}

.nw-card img {
    width: 100%;
    object-fit: cover;
}

.left-big .nw-card {
    height: 100%;
}

.small-item {
    height: 85%;
}

.small-item .nw-card.nw-card-sm {
    height: 176px;
    display: flex;
    /* width: 150px; */
    /* margin-right: 25px !important; */
}

.small-item .nw-card.nw-card-sm img.nw-card-image {
    width: 140px;
    margin-right: 17px;
}

.small-item .nw-card-content {
    width: 100%;
}

.popupllarpolislideinner {
    width: 100% !important;
    display: block;
    padding: 0;
    background: #fff;
    border: 1px solid #000 !important;
    border-radius: 10px;
    height: 350px;
    position: relative;
}

.popupllarpolislideinner .popular-post {
    flex-direction: column;
}

.popupllarpolislideinner img.popular-post-img {
    width: 100% !important;
    height: 200px !important;
    border-radius: 10px !important;
}

.popupllarpolislideinner .popular-post-content {
    padding: 14px;
}

.popupllarpolislideinner .popular-post-content h6 {
    font-size: 1.4rem;
}

.popupllarpolislideinner .popular-post-content p {
    font-size: 1rem;
    display: none !important;
}

.popupllarpolislideinner .popular-post-content small {
    font-size: 1rem;
    padding-top: 30px;
    display: block;
    position: absolute;
    bottom: 10px;
}

.breaking-wrapper {
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
    height: auto;
    margin-top: 45px;
}

.breaking-label {
    background: #0b1c3d;
    color: #fff;
    padding: 0 20px 0 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    font-size: 3rem;
}

.breaking-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-item {
    padding: 22px 40px;
    white-space: nowrap;
}

.marquee-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 2rem;
}

.marquee-item a:hover {
    text-decoration: underline;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.cateegorrypossttcarrdds .nw-card.nw-card-thumb {
    flex-direction: column;
    width: 100%;
    border: 1px solid #0000002e !important;
    border-radius: 0 !important;
    position: relative;
}

.cateegorrypossttcarrdds .nw-card-thumb .nw-card-image {
    width: 100% !important;
    height: 200px !important;
    flex-shrink: 0;
    margin: 0;
}

.cateegorrypossttcarrdds .nw-card-content {
    padding: 10px 15px;
}

.cateegorrypossttcarrdds .nw-card-content h6 {
    font-size: 24px;
}

.cateegorrypossttcarrdds .nw-card-meta {
    justify-content: space-between;
    padding-top: 15px;
}

.theecaregheadings {
    background: #ce332a !important;
    color: #fff !important;
    padding: 5px 16px !important;
    border-radius: 15px !important;
    letter-spacing: 0.5px !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    font-size: 12px;
}

.cateegorrypossttcarrdds .nw-card-content p a {
    padding-top: 30px;
    font-size: 15px;
    display: inline-block;
    color: #000 !important;
    text-decoration: unset !important;
    font-family: 'Roboto';
}

.thecardreadmoress {
    position: absolute;
    bottom: 0;
    right: 0;
    font-family: 'Roboto';
    background: #ce332a;
    color: #fff !important;
    font-size: 13px;
    padding: 5px 12px;
    letter-spacing: 0.5px;
    border-top-left-radius: 46px;
    padding-left: 20px;
    border: 0;
}

header.nw-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-bottom: 1px solid #dbd9d9;
}

.thedattepubllissesd i {
    color: #ce332a !important;
}

.thedattepubllissesd small {
    color: #000 !important;
}

.thedattepubllissesd {
    font-size: 15px;
    letter-spacing: 0.5px;
}


.theautthoorss i {
    color: #ce332a !important;
}

.theautthoorss small {
    color: #000 !important;
}

.theautthoorss {
    font-size: 15px;
    letter-spacing: 0.5px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
}

.category-item {
    margin-bottom: 10px;
    padding: 10px 15px;
    /* background: #f8f9fa; */
    /* border-radius: 10px; */
    transition: all 0.3s ease;
    /* background: transparent !important; */
    font-size: 13px;
    border-radius: 31px !important;
    color: #000 !important;
    border: 1px solid #fd4f4582;
    border-bottom: 2px solid #fd4f4582;
    FONT-WEIGHT: 600;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-right: 10px;
}

.category-item span.badge.bg-light.text-dark {
    margin-left: 10px;
}

.post-article {
    border-radius: 0 !important;
    box-shadow: unset;
    border: 1px solid #00000012;
}