/*
Theme Name: CNM News
Theme URI: https://cnmnepal.com/
Author: CNM News
Author URI: https://cnmnepal.com/
Description: Clean, responsive Nepali magazine and news WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cnm-news
*/

/* =========================================================
   1. CSS VARIABLES
   ========================================================= */

:root {
    --cnm-red: #c90000;
    --cnm-red-dark: #a50000;
    --cnm-blue: #123b72;
    --cnm-blue-dark: #09284f;

    --cnm-black: #171717;
    --cnm-dark: #292929;
    --cnm-gray: #666;
    --cnm-light-gray: #f5f5f5;
    --cnm-border: #dddddd;
    --cnm-white: #ffffff;

    --cnm-container: 1200px;

    --cnm-font-sans: "Noto Sans Devanagari", Arial, sans-serif;
    --cnm-font-serif: "Noto Serif Devanagari", Georgia, serif;

    --cnm-radius: 2px;

    --cnm-transition: all 0.25s ease;
}


/* =========================================================
   2. RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--cnm-white);
    color: var(--cnm-black);

    font-family: var(--cnm-font-sans);
    font-size: 16px;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--cnm-red);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;

    z-index: 99999;

    background: var(--cnm-black);
    color: var(--cnm-white);

    padding: 10px 15px;
}

.skip-link:focus {
    top: 10px;
}


/* =========================================================
   4. GLOBAL CONTAINER
   ========================================================= */

.container {
    width: min(
        calc(100% - 30px),
        var(--cnm-container)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   5. TOP BAR
   ========================================================= */

.top-bar {
    background: var(--cnm-light-gray);
    border-bottom: 1px solid var(--cnm-border);

    font-size: 14px;
}

.top-bar-inner {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.top-date {
    color: var(--cnm-gray);
}

.top-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-social a {
    color: var(--cnm-dark);
    transition: var(--cnm-transition);
}

.top-social a:hover {
    color: var(--cnm-red);
}


/* =========================================================
   6. BRANDING / HEADER
   ========================================================= */

.site-header {
    background: var(--cnm-white);
}

.site-branding {
    padding: 25px 0;

    text-align: center;

    border-bottom: 1px solid var(--cnm-border);
}

.site-title {
    margin: 0;

    font-family: var(--cnm-font-serif);

    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;

    line-height: 1.1;

    color: var(--cnm-red);
}

.site-description {
    margin: 8px 0 0;

    color: var(--cnm-gray);
    font-size: 14px;
}


/* =========================================================
   7. PRIMARY NAVIGATION
   ========================================================= */

.main-navigation {
    background: var(--cnm-blue);

    border-bottom: 4px solid var(--cnm-red);
}

.main-navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list {
    display: flex;
    align-items: center;

    flex-wrap: wrap;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;

    padding: 13px 17px;

    color: var(--cnm-white);

    font-size: 15px;
    font-weight: 700;

    transition: var(--cnm-transition);
}

.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a {
    background: var(--cnm-red);
    color: var(--cnm-white);
}


/* =========================================================
   8. SEARCH BUTTON
   ========================================================= */

.search-toggle {
    border: 0;
    background: transparent;

    color: var(--cnm-white);

    padding: 10px 15px;

    font-size: 20px;
}

.search-toggle:hover {
    color: #ddd;
}


/* =========================================================
   9. BREAKING NEWS TICKER
   ========================================================= */

.breaking-news {
    border-bottom: 1px solid var(--cnm-border);

    background: var(--cnm-white);
}

.breaking-inner {
    display: flex;
    align-items: stretch;

    min-height: 45px;
}

.breaking-label {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    padding: 0 16px;

    background: var(--cnm-red);
    color: var(--cnm-white);

    font-weight: 800;
}

.breaking-content {
    display: flex;
    align-items: center;

    min-width: 0;

    padding: 0 15px;

    overflow: hidden;
}

.breaking-content a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   10. MAIN CONTENT
   ========================================================= */

.site-main {
    padding: 30px 0;
}

.content-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 30px;
}


/* =========================================================
   11. LEAD STORY
   ========================================================= */

.lead-story {
    border-bottom: 1px solid var(--cnm-border);

    padding-bottom: 25px;
    margin-bottom: 30px;
}

.lead-story-image {
    margin-bottom: 18px;

    overflow: hidden;
}

.lead-story-image img {
    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.lead-story:hover .lead-story-image img {
    transform: scale(1.02);
}

.lead-story-title {
    margin: 0 0 12px;

    font-family: var(--cnm-font-serif);

    font-size: clamp(28px, 4vw, 44px);

    line-height: 1.3;
    font-weight: 800;
}

.lead-story-excerpt {
    color: var(--cnm-gray);

    font-size: 17px;
}


/* =========================================================
   12. NEWS CARD GRID
   ========================================================= */

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.news-card {
    border-bottom: 1px solid var(--cnm-border);

    padding-bottom: 18px;
}

.news-card-image {
    margin-bottom: 12px;

    overflow: hidden;
}

.news-card-image img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.03);
}

.news-card-title {
    margin: 0;

    font-family: var(--cnm-font-serif);

    font-size: 20px;
    line-height: 1.45;
    font-weight: 700;
}


/* =========================================================
   13. SECTION TITLE
   ========================================================= */

.section-title {
    position: relative;

    margin: 0 0 22px;

    padding-bottom: 9px;

    border-bottom: 2px solid var(--cnm-blue);

    font-size: 24px;
    font-weight: 800;
}

.section-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -2px;

    width: 80px;
    height: 4px;

    background: var(--cnm-red);
}


/* =========================================================
   14. SIDEBAR
   ========================================================= */

.sidebar {
    min-width: 0;
}

.widget {
    margin-bottom: 30px;

    border: 1px solid var(--cnm-border);

    padding: 18px;
}

.widget-title {
    margin: -18px -18px 18px;

    padding: 11px 15px;

    border-bottom: 3px solid var(--cnm-red);

    background: var(--cnm-light-gray);

    font-size: 19px;
    font-weight: 800;
}

.widget ul li {
    padding: 9px 0;

    border-bottom: 1px solid var(--cnm-border);
}

.widget ul li:last-child {
    border-bottom: 0;
}

/* =========================================================
   SIDEBAR AD
   ========================================================= */

.sidebar-ad-placeholder {
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: var(--cnm-light-gray);

    border: 1px dashed #bbb;

    color: #888;

    text-align: center;

    font-size: 14px;
}

/* =========================================================
   SINGLE ARTICLE
   ========================================================= */

.single-article {
    max-width: 900px;
}


/* =========================================================
   ARTICLE CATEGORY
   ========================================================= */

.article-category {
    margin-bottom: 10px;
}

.article-category a {
    display: inline-block;

    padding: 4px 10px;

    background: var(--cnm-red);
    color: var(--cnm-white);

    font-size: 13px;
    font-weight: 700;

    border-radius: var(--cnm-radius);
}

.article-category a:hover {
    background: var(--cnm-blue);
    color: var(--cnm-white);
}


/* =========================================================
   ARTICLE TITLE
   ========================================================= */

.article-title {
    margin: 0 0 15px;

    font-family: var(--cnm-font-serif);

    font-size: clamp(32px, 5vw, 52px);

    line-height: 1.35;

    font-weight: 800;
}


/* =========================================================
   ARTICLE EXCERPT
   ========================================================= */

.article-excerpt {
    margin-bottom: 18px;

    color: var(--cnm-gray);

    font-size: 19px;
    line-height: 1.7;
}


/* =========================================================
   ARTICLE META
   ========================================================= */

.article-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    padding: 12px 0;

    margin-bottom: 25px;

    border-top: 1px solid var(--cnm-border);
    border-bottom: 1px solid var(--cnm-border);

    color: var(--cnm-gray);

    font-size: 14px;
}

.article-meta > span:not(:last-child)::after {
    content: "|";

    margin-left: 12px;

    color: #bbb;
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.article-featured-image {
    margin: 0 0 25px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-featured-image figcaption {
    margin-top: 8px;

    color: var(--cnm-gray);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.article-content {
    font-family: var(--cnm-font-sans);

    font-size: 18px;

    line-height: 2;

    color: var(--cnm-dark);
}

.article-content p {
    margin: 0 0 22px;
}

.article-content h2 {
    margin: 35px 0 15px;

    font-family: var(--cnm-font-serif);

    font-size: 30px;

    line-height: 1.45;

    font-weight: 800;
}

.article-content h3 {
    margin: 30px 0 12px;

    font-family: var(--cnm-font-serif);

    font-size: 25px;

    line-height: 1.45;
}

.article-content img {
    margin: 25px auto;
}

.article-content blockquote {
    margin: 30px 0;

    padding: 15px 20px;

    border-left: 4px solid var(--cnm-red);

    background: var(--cnm-light-gray);

    font-family: var(--cnm-font-serif);

    font-size: 20px;
}

.article-content a {
    color: var(--cnm-red);

    text-decoration: underline;
}


/* =========================================================
   ARTICLE TAGS
   ========================================================= */

.article-tags {
    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid var(--cnm-border);

    font-size: 14px;
}

.article-tags a {
    display: inline-block;

    margin: 5px 4px;

    padding: 5px 10px;

    background: var(--cnm-light-gray);

    border: 1px solid var(--cnm-border);

    color: var(--cnm-dark);
}

.article-tags a:hover {
    background: var(--cnm-red);

    border-color: var(--cnm-red);

    color: var(--cnm-white);
}


/* =========================================================
   SOCIAL SHARING
   ========================================================= */

.article-share {
    margin-top: 30px;

    padding: 20px 0;

    border-top: 1px solid var(--cnm-border);
    border-bottom: 1px solid var(--cnm-border);
}

.article-share h3 {
    margin: 0 0 12px;

    font-size: 18px;
}

.share-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.share-buttons a {
    display: inline-block;

    padding: 8px 15px;

    color: var(--cnm-white);

    font-size: 14px;

    border-radius: 2px;
}

.share-facebook {
    background: #1877f2;
}

.share-x {
    background: #111;
}

.share-whatsapp {
    background: #25d366;
}

.share-buttons a:hover {
    opacity: 0.85;

    color: var(--cnm-white);
}


/* =========================================================
   RELATED POSTS
   ========================================================= */

.related-posts {
    margin-top: 45px;
}


/* =========================================================
   ARTICLE RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .single-article {
        max-width: 100%;
    }

    .article-title {
        font-size: 34px;
    }

    .article-content {
        font-size: 17px;

        line-height: 1.9;
    }

    .article-meta {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }

    .article-meta > span:not(:last-child)::after {
        display: none;
    }
}


@media (max-width: 576px) {

    .article-title {
        font-size: 29px;
    }

    .article-excerpt {
        font-size: 17px;
    }

    .article-content {
        font-size: 16px;
    }

    .share-buttons {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .share-buttons a {
        text-align: center;
    }
}

/* =========================================================
   CATEGORY ARCHIVE
   ========================================================= */

.category-header {
    margin-bottom: 30px;

    padding-bottom: 20px;

    border-bottom: 2px solid var(--cnm-blue);
}

.category-label {
    display: inline-block;

    margin-bottom: 8px;

    padding: 4px 10px;

    background: var(--cnm-red);
    color: var(--cnm-white);

    font-size: 13px;
    font-weight: 700;
}

.category-title {
    margin: 0;

    font-family: var(--cnm-font-serif);

    font-size: clamp(32px, 5vw, 46px);

    line-height: 1.3;

    font-weight: 800;
}

.category-description {
    margin-top: 10px;

    color: var(--cnm-gray);

    font-size: 16px;
}


/* =========================================================
   CATEGORY FEATURED STORY
   ========================================================= */

.category-featured {
    margin-bottom: 35px;
}

.category-featured-image {
    margin-bottom: 18px;

    overflow: hidden;
}

.category-featured-image img {
    width: 100%;

    aspect-ratio: 16 / 8.5;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.category-featured:hover
.category-featured-image img {
    transform: scale(1.02);
}

.category-featured-title {
    margin: 0 0 12px;

    font-family: var(--cnm-font-serif);

    font-size: clamp(28px, 4vw, 42px);

    line-height: 1.35;

    font-weight: 800;
}

.category-featured-excerpt {
    color: var(--cnm-gray);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   CATEGORY NEWS GRID
   ========================================================= */

.category-news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}

.category-news-card {
    min-width: 0;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--cnm-border);
}

.category-news-image {
    margin-bottom: 12px;

    overflow: hidden;
}

.category-news-image img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.category-news-card:hover
.category-news-image img {
    transform: scale(1.03);
}

.category-news-title {
    margin: 0 0 8px;

    font-family: var(--cnm-font-serif);

    font-size: 20px;

    line-height: 1.45;

    font-weight: 700;
}

.category-news-excerpt {
    margin: 0;

    color: var(--cnm-gray);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   CATEGORY PAGINATION
   ========================================================= */

.category-pagination {
    margin-top: 35px;

    padding-top: 20px;

    border-top: 1px solid var(--cnm-border);
}

.category-pagination .nav-links {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;
}

.category-pagination .page-numbers {
    display: inline-block;

    padding: 7px 12px;

    border: 1px solid var(--cnm-border);

    background: var(--cnm-white);

    color: var(--cnm-dark);

    font-size: 14px;
}

.category-pagination .page-numbers:hover,
.category-pagination .page-numbers.current {
    background: var(--cnm-red);

    border-color: var(--cnm-red);

    color: var(--cnm-white);
}


/* =========================================================
   CATEGORY RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

    .category-news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 576px) {

    .category-news-grid {
        grid-template-columns: 1fr;
    }

    .category-featured-title {
        font-size: 28px;
    }

    .category-news-title {
        font-size: 19px;
    }
}

/* =========================================================
   STANDARD PAGES
   ========================================================= */

.standard-page {
    max-width: 900px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    margin-bottom: 25px;

    padding-bottom: 15px;

    border-bottom: 2px solid var(--cnm-blue);
}

.page-title {
    margin: 0;

    font-family: var(--cnm-font-serif);

    font-size: clamp(32px, 5vw, 46px);

    line-height: 1.35;

    font-weight: 800;
}


/* =========================================================
   PAGE FEATURED IMAGE
   ========================================================= */

.page-featured-image {
    margin: 0 0 25px;
}

.page-featured-image img {
    width: 100%;
    height: auto;
}

.page-featured-image figcaption {
    margin-top: 8px;

    color: var(--cnm-gray);

    font-size: 13px;
}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.page-content {
    color: var(--cnm-dark);

    font-family: var(--cnm-font-sans);

    font-size: 18px;

    line-height: 2;
}

.page-content p {
    margin: 0 0 22px;
}

.page-content h2 {
    margin: 35px 0 15px;

    font-family: var(--cnm-font-serif);

    font-size: 30px;

    line-height: 1.45;

    font-weight: 800;
}

.page-content h3 {
    margin: 30px 0 12px;

    font-family: var(--cnm-font-serif);

    font-size: 25px;

    line-height: 1.45;
}

.page-content ul,
.page-content ol {
    margin: 0 0 25px;

    padding-left: 25px;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content blockquote {
    margin: 30px 0;

    padding: 15px 20px;

    border-left: 4px solid var(--cnm-red);

    background: var(--cnm-light-gray);

    font-family: var(--cnm-font-serif);
}

.page-content img {
    margin: 25px auto;
}

.page-content a {
    color: var(--cnm-red);

    text-decoration: underline;
}

.page-content table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;
}

.page-content th,
.page-content td {
    padding: 10px;

    border: 1px solid var(--cnm-border);

    text-align: left;
}


/* =========================================================
   PAGE RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .standard-page {
        max-width: 100%;
    }

    .page-content {
        font-size: 17px;

        line-height: 1.9;
    }
}


@media (max-width: 576px) {

    .page-title {
        font-size: 30px;
    }

    .page-content {
        font-size: 16px;
    }
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */

.search-header {
    margin-bottom: 30px;

    padding-bottom: 20px;

    border-bottom: 2px solid var(--cnm-blue);
}

.search-label {
    display: inline-block;

    margin-bottom: 8px;

    padding: 4px 10px;

    background: var(--cnm-red);

    color: var(--cnm-white);

    font-size: 13px;

    font-weight: 700;
}

.search-title {
    margin: 0 0 20px;

    font-family: var(--cnm-font-serif);

    font-size: clamp(28px, 4vw, 40px);

    line-height: 1.4;

    font-weight: 800;
}
/* =========================================================
   HEADER SEARCH
   ========================================================= */

.header-search form {
    display: flex;

    align-items: center;
}

.header-search input {
    width: 0;

    opacity: 0;

    padding: 7px 0;

    border: 0;

    transition: all 0.25s ease;
}

.header-search:focus-within input {
    width: 180px;

    opacity: 1;

    padding: 7px 10px;
}

.header-search .search-toggle {
    width: auto;

    padding: 8px 12px;

    border: 0;

    background: transparent;

    color: var(--cnm-white);
}


/* =========================================================
   SEARCH FORM
   ========================================================= */

.cnm-search-form {
    display: flex;

    width: 100%;

    max-width: 700px;
}

.cnm-search-form input {
    flex: 1;

    min-width: 0;

    padding: 12px 15px;

    border: 1px solid var(--cnm-border);

    border-right: 0;

    outline: none;

    background: var(--cnm-white);

    color: var(--cnm-dark);
}

.cnm-search-form input:focus {
    border-color: var(--cnm-blue);
}

.cnm-search-form button {
    padding: 12px 20px;

    border: 1px solid var(--cnm-red);

    background: var(--cnm-red);

    color: var(--cnm-white);

    font-weight: 700;

    transition: var(--cnm-transition);
}

.cnm-search-form button:hover {
    background: var(--cnm-red-dark);
}


/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.search-results-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;
}

.search-result-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--cnm-border);
}

.search-result-image {
    margin-bottom: 13px;

    overflow: hidden;
}

.search-result-image img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.search-result-card:hover
.search-result-image img {
    transform: scale(1.03);
}

.search-result-title {
    margin: 0 0 8px;

    font-family: var(--cnm-font-serif);

    font-size: 21px;

    line-height: 1.45;

    font-weight: 700;
}

.search-result-excerpt {
    margin-bottom: 10px;

    color: var(--cnm-gray);

    font-size: 14px;

    line-height: 1.7;
}

.read-more {
    color: var(--cnm-red);

    font-size: 14px;

    font-weight: 700;
}

.read-more:hover {
    color: var(--cnm-blue);
}


/* =========================================================
   SEARCH PAGINATION
   ========================================================= */

.search-pagination {
    margin-top: 35px;

    padding-top: 20px;

    border-top: 1px solid var(--cnm-border);
}

.search-pagination .nav-links {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;
}

.search-pagination .page-numbers {
    display: inline-block;

    padding: 7px 12px;

    border: 1px solid var(--cnm-border);

    background: var(--cnm-white);

    color: var(--cnm-dark);
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
    background: var(--cnm-red);

    border-color: var(--cnm-red);

    color: var(--cnm-white);
}


/* =========================================================
   NO SEARCH RESULTS
   ========================================================= */

.no-search-results {
    padding: 40px 20px;

    border: 1px solid var(--cnm-border);

    background: var(--cnm-light-gray);

    text-align: center;
}

.no-search-results h2 {
    margin: 0 0 10px;

    font-family: var(--cnm-font-serif);

    font-size: 28px;
}

.no-search-results p {
    margin: 0;

    color: var(--cnm-gray);
}


/* =========================================================
   SEARCH RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .search-results-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 576px) {

    .cnm-search-form {
        flex-direction: column;
    }

    .cnm-search-form input {
        border-right: 1px solid var(--cnm-border);

        border-bottom: 0;
    }

    .cnm-search-form button {
        width: 100%;
    }

    .search-result-title {
        font-size: 19px;
    }
}
/* =========================================================
   COMMENTS
   ========================================================= */

.comments-area {
    margin-top: 45px;

    padding-top: 30px;

    border-top: 2px solid var(--cnm-blue);
}


/* =========================================================
   COMMENTS HEADER
   ========================================================= */

.comments-title {
    margin: 0 0 25px;

    font-family: var(--cnm-font-serif);

    font-size: 28px;

    line-height: 1.4;

    font-weight: 800;
}


/* =========================================================
   COMMENT LIST
   ========================================================= */

.comment-list {
    margin: 0;

    padding: 0;

    list-style: none;
}

.comment-list ol {
    margin-left: 45px;

    padding-left: 0;

    list-style: none;
}


/* =========================================================
   COMMENT BODY
   ========================================================= */

.cnm-comment {
    margin-bottom: 25px;
}

.comment-body {
    display: flex;

    gap: 15px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--cnm-border);
}

.comment-author-avatar {
    flex: 0 0 50px;
}

.comment-avatar {
    width: 50px;

    height: 50px;

    border-radius: 50%;
}

.comment-content-wrapper {
    flex: 1;

    min-width: 0;
}


/* =========================================================
   COMMENT META
   ========================================================= */

.comment-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 7px;
}

.comment-author-name {
    font-weight: 700;
}

.comment-date {
    color: var(--cnm-gray);

    font-size: 13px;
}


/* =========================================================
   COMMENT TEXT
   ========================================================= */

.comment-text {
    color: var(--cnm-dark);

    font-size: 15px;

    line-height: 1.8;
}

.comment-text p {
    margin: 0 0 10px;
}

.comment-awaiting-moderation {
    padding: 10px;

    background: var(--cnm-light-gray);

    border-left: 3px solid var(--cnm-red);

    color: var(--cnm-gray);
}


/* =========================================================
   COMMENT REPLY
   ========================================================= */

.comment-reply {
    margin-top: 8px;
}

.comment-reply a {
    color: var(--cnm-red);

    font-size: 13px;

    font-weight: 700;
}

.comment-reply a:hover {
    color: var(--cnm-blue);
}


/* =========================================================
   COMMENT NAVIGATION
   ========================================================= */

.comment-navigation {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin: 25px 0;

    padding: 15px 0;

    border-top: 1px solid var(--cnm-border);
    border-bottom: 1px solid var(--cnm-border);
}

.comment-navigation a {
    color: var(--cnm-red);

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   COMMENT FORM
   ========================================================= */

.comment-form-wrapper {
    margin-top: 35px;
}

.comment-reply-title {
    margin: 0 0 20px;

    font-family: var(--cnm-font-serif);

    font-size: 25px;

    font-weight: 800;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;

    font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid var(--cnm-border);

    background: var(--cnm-white);

    color: var(--cnm-dark);

    outline: none;

    font-family: inherit;

    font-size: 15px;
}

.comment-form textarea {
    min-height: 150px;

    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--cnm-blue);
}

.comment-form .comment-form-cookies-consent {
    display: flex;

    align-items: flex-start;

    gap: 8px;
}

.comment-form .comment-form-cookies-consent input {
    margin-top: 4px;
}

.comment-submit {
    padding: 11px 20px;

    border: 0;

    background: var(--cnm-red);

    color: var(--cnm-white);

    font-weight: 700;

    cursor: pointer;

    transition: var(--cnm-transition);
}

.comment-submit:hover {
    background: var(--cnm-blue);
}


/* =========================================================
   COMMENTS CLOSED
   ========================================================= */

.comments-closed {
    padding: 15px;

    background: var(--cnm-light-gray);

    border-left: 3px solid var(--cnm-red);

    color: var(--cnm-gray);
}


/* =========================================================
   COMMENTS RESPONSIVE
   ========================================================= */

@media (max-width: 576px) {

    .comment-list ol {
        margin-left: 20px;
    }

    .comment-body {
        gap: 10px;
    }

    .comment-author-avatar {
        flex: 0 0 40px;
    }

    .comment-avatar {
        width: 40px;

        height: 40px;
    }

    .comment-navigation {
        flex-direction: column;
    }
}

/* =========================================================
   15. POST META
   ========================================================= */

.post-meta {
    margin: 8px 0;

    color: var(--cnm-gray);

    font-size: 13px;
}


/* =========================================================
   16. FOOTER
   ========================================================= */

.site-footer {
    margin-top: 40px;

    background: var(--cnm-blue-dark);
    color: var(--cnm-white);
}

.footer-widgets {
    padding: 45px 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 30px;
}

.footer-widget {
    min-width: 0;
}

.footer-widget .widget-title {
    margin: 0 0 15px;

    padding: 0 0 10px;

    background: transparent;

    border-bottom: 2px solid var(--cnm-red);

    color: var(--cnm-white);
}

.footer-widget a {
    color: #ddd;
}

.footer-widget a:hover {
    color: var(--cnm-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);

    padding: 18px 0;

    text-align: center;

    color: #ccc;

    font-size: 14px;
}

/* =========================================================
   HOMEPAGE
   ========================================================= */

.homepage {
    width: 100%;
}


/* =========================================================
   HERO GRID
   ========================================================= */

.hero-section {
    padding: 30px 0;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(300px, 1fr);

    gap: 30px;
}


/* =========================================================
   LATEST NEWS
   ========================================================= */

.hero-latest {
    min-width: 0;
}

.latest-news-list {
    display: flex;
    flex-direction: column;
}

.latest-news-item {
    display: grid;

    grid-template-columns: 125px 1fr;

    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid var(--cnm-border);
}

.latest-news-item:first-child {
    padding-top: 0;
}

.latest-news-image {
    overflow: hidden;
}

.latest-news-image img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;
}

.latest-news-content h3 {
    margin: 0;

    font-family: var(--cnm-font-serif);

    font-size: 18px;
    line-height: 1.45;
}


/* =========================================================
   ADVERTISEMENT
   ========================================================= */

.homepage-ad {
    margin: 10px 0 35px;
}

.ad-placeholder {
    min-height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--cnm-light-gray);

    border: 1px dashed #bbb;

    color: #888;

    font-size: 14px;
}


/* =========================================================
   HOMEPAGE SECTIONS
   ========================================================= */

.trending-section,
.homepage-category-section {
    margin-bottom: 40px;
}

.homepage-category-section {
    padding-top: 10px;
}


/* =========================================================
   CATEGORY SECTION GRID
   ========================================================= */

.homepage-category-section .news-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* =========================================================
   MOBILE HERO
   ========================================================= */

@media (max-width: 992px) {

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .homepage-category-section .news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 576px) {

    .latest-news-item {
        grid-template-columns: 100px 1fr;

        gap: 12px;
    }

    .latest-news-content h3 {
        font-size: 16px;
    }

    .homepage-category-section .news-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.top-bar {
    background: var(--cnm-dark);
    color: var(--cnm-white);

    font-size: 13px;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 36px;
}

.top-menu-list,
.top-menu-list ul {
    display: flex;

    margin: 0;
    padding: 0;

    list-style: none;

    gap: 15px;
}

.top-menu-list a,
.top-social a {
    color: var(--cnm-white);

    text-decoration: none;
}

.top-menu-list a:hover,
.top-social a:hover {
    color: var(--cnm-red);
}

.top-social {
    display: flex;
    gap: 12px;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.site-header {
    background: var(--cnm-white);

    border-bottom: 1px solid var(--cnm-border);
}

.header-inner {
    position: relative;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    min-height: 125px;
}

.site-branding {
    grid-column: 2;

    text-align: center;
}

.custom-logo {
    max-width: 280px;

    height: auto;
}

.site-title {
    color: var(--cnm-red);

    font-family: var(--cnm-font-serif);

    font-size: 38px;

    font-weight: 900;

    text-decoration: none;
}

.site-description {
    margin: 5px 0 0;

    color: var(--cnm-gray);

    font-size: 13px;
}


/* =========================================================
   HEADER SEARCH
   ========================================================= */

.header-search {
    grid-column: 3;

    justify-self: end;
}

.header-search form {
    display: flex;

    align-items: center;
}

.header-search input {
    width: 0;

    opacity: 0;

    padding: 7px 0;

    border: 1px solid transparent;

    outline: none;

    transition: all 0.25s ease;
}

.header-search:focus-within input {
    width: 180px;

    opacity: 1;

    padding: 7px 10px;

    border-color: var(--cnm-border);
}

.search-toggle {
    padding: 8px 12px;

    border: 0;

    background: transparent;

    color: var(--cnm-dark);

    font-size: 20px;

    cursor: pointer;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    grid-column: 1;

    width: 42px;

    height: 38px;

    padding: 7px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.mobile-menu-toggle span:not(.screen-reader-text) {
    display: block;

    width: 25px;

    height: 2px;

    margin: 5px auto;

    background: var(--cnm-dark);
}


/* =========================================================
   BREAKING NEWS
   ========================================================= */

.breaking-news {
    background: var(--cnm-red);

    color: var(--cnm-white);
}

.breaking-inner {
    display: flex;

    align-items: center;

    min-height: 42px;
}

.breaking-label {
    flex: 0 0 auto;

    padding: 6px 15px;

    background: var(--cnm-dark);

    font-size: 14px;

    font-weight: 800;
}

.breaking-content {
    flex: 1;

    min-width: 0;

    overflow: hidden;
}

.breaking-list {
    display: flex;

    gap: 35px;

    padding-left: 20px;

    white-space: nowrap;

    overflow: hidden;
}

.breaking-list a {
    color: var(--cnm-white);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}

.breaking-list a:hover {
    text-decoration: underline;
}


/* =========================================================
   PRIMARY NAVIGATION
   ========================================================= */

.main-navigation {
    background: var(--cnm-white);

    border-bottom: 2px solid var(--cnm-red);

    border-top: 1px solid var(--cnm-border);
}

.navigation-inner {
    min-height: 48px;
}

.primary-menu,
.primary-menu ul {
    display: flex;

    align-items: center;

    margin: 0;

    padding: 0;

    list-style: none;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;

    padding: 14px 17px;

    color: var(--cnm-dark);

    font-size: 15px;

    font-weight: 700;

    text-decoration: none;
}

.primary-menu > li:hover > a,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
    background: var(--cnm-red);

    color: var(--cnm-white);
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.primary-menu .sub-menu {
    position: absolute;

    top: 100%;
    left: 0;

    z-index: 999;

    display: block;

    min-width: 210px;

    margin: 0;

    padding: 8px 0;

    background: var(--cnm-white);

    border: 1px solid var(--cnm-border);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    opacity: 0;

    visibility: hidden;

    transform: translateY(5px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.primary-menu .sub-menu li {
    position: relative;

    width: 100%;
}

.primary-menu .sub-menu a {
    display: block;

    padding: 10px 15px;

    color: var(--cnm-dark);

    font-size: 14px;

    text-decoration: none;
}

.primary-menu .sub-menu a:hover {
    background: var(--cnm-light-gray);

    color: var(--cnm-red);
}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media (max-width: 768px) {

    .top-bar-inner {
        min-height: 32px;
    }

    .top-menu-wrapper {
        display: none;
    }

    .header-inner {
        grid-template-columns: auto 1fr auto;

        min-height: 85px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .site-branding {
        grid-column: 2;
    }

    .custom-logo {
        max-width: 190px;
    }

    .site-title {
        font-size: 28px;
    }

    .header-search {
        grid-column: 3;
    }

    .header-search:focus-within input {
        position: absolute;

        right: 0;

        top: 65px;

        z-index: 1001;

        width: 220px;

        background: var(--cnm-white);
    }

    .breaking-inner {
        min-height: 38px;
    }

    .breaking-label {
        padding: 5px 10px;

        font-size: 12px;
    }

    .breaking-list {
        padding-left: 12px;

        gap: 20px;
    }

    .primary-menu {
        display: none;

        flex-direction: column;

        align-items: stretch;
    }

    .main-navigation.menu-open .primary-menu {
        display: flex;
    }

    .primary-menu > li > a {
        padding: 12px 15px;

        border-bottom: 1px solid var(--cnm-border);
    }

    .primary-menu .sub-menu {
        position: static;

        display: none;

        opacity: 1;

        visibility: visible;

        transform: none;

        border: 0;

        box-shadow: none;

        background: var(--cnm-light-gray);
    }

    .primary-menu li:hover > .sub-menu {
        display: block;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .top-social {
        display: none;
    }

    .top-date {
        font-size: 11px;
    }

    .header-inner {
        min-height: 75px;
    }

    .custom-logo {
        max-width: 160px;
    }

    .site-title {
        font-size: 25px;
    }

    .breaking-list a {
        font-size: 12px;
    }

}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 50px;

    padding-top: 45px;

    background: var(--cnm-dark);

    color: var(--cnm-white);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 40px;

    padding-bottom: 35px;
}

.footer-column {
    min-width: 0;
}

.footer-widget-title {
    margin: 0 0 15px;

    padding-bottom: 10px;

    border-bottom: 2px solid var(--cnm-red);

    font-family: var(--cnm-font-serif);

    font-size: 19px;

    color: var(--cnm-white);
}

.footer-column p {
    color: #ccc;

    font-size: 14px;

    line-height: 1.8;
}

.footer-menu,
.footer-bottom-menu {
    margin: 0;

    padding: 0;

    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a,
.footer-bottom-menu a {
    color: #ccc;

    font-size: 14px;

    text-decoration: none;
}

.footer-menu a:hover,
.footer-bottom-menu a:hover {
    color: var(--cnm-red);
}


/* =========================================================
   FOOTER NAVIGATION
   ========================================================= */

.footer-navigation {
    padding: 18px 0;

    border-top: 1px solid #444;

    border-bottom: 1px solid #444;
}

.footer-bottom-menu {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    color: #aaa;

    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}


/* =========================================================
   FOOTER RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 25px;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }

}


@media (max-width: 576px) {

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-column:first-child {
        grid-column: auto;
    }

    .footer-bottom-menu {
        flex-direction: column;

        gap: 8px;
    }

}

/* =========================================================
   17. RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 992px) {

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .widget {
        margin-bottom: 0;
    }

    .footer-widgets {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 768px) {

    .top-bar-inner {
        justify-content: center;
    }

    .top-date {
        text-align: center;
    }

    .top-social {
        display: none;
    }

    .main-navigation .container {
        overflow-x: auto;
    }

    .nav-list {
        flex-wrap: nowrap;

        white-space: nowrap;
    }

    .nav-list > li > a {
        padding: 11px 13px;
    }

    .news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .sidebar {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 576px) {

    .container {
        width: min(
            calc(100% - 20px),
            var(--cnm-container)
        );
    }

    .site-branding {
        padding: 18px 0;
    }

    .site-title {
        font-size: 36px;
    }

    .site-main {
        padding: 20px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .breaking-label {
        padding: 0 10px;

        font-size: 13px;
    }

    .breaking-content {
        padding: 0 10px;
    }
}