/*!
Theme Name:  WPNSite Theme
Theme URI:   https://wpnsite.com
Author:      WPNSite
Author URI:  https://wpnsite.com
Description: A clean, modern news and magazine WordPress theme built with Bootstrap 5. Colors and logo are fully customizable via the WordPress Customizer.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpnsite
Tags:        news, magazine, blog, bootstrap, responsive, custom-colors, custom-logo, two-columns
*/

/* ==========================================================================
   CSS Custom Properties — override via Customizer inline CSS
   ========================================================================== */

:root {
    --wpnsite-primary:        #dc2626;
    --wpnsite-primary-dark:   #b91c1c;
    --wpnsite-secondary:      #1f2937;
    --wpnsite-header-bg:      #111827;
    --wpnsite-header-text:    #ffffff;
    --wpnsite-footer-bg:      #1f2937;
    --wpnsite-footer-text:    #d1d5db;
    --wpnsite-body-bg:        #f3f4f6;
    --wpnsite-card-bg:        #ffffff;
    --wpnsite-border:         #e5e7eb;
    --wpnsite-muted:          #6b7280;
    --wpnsite-font-body:      'Inter', system-ui, -apple-system, sans-serif;
    --wpnsite-font-heading:   'Roboto', sans-serif;
/*    --wpnsite-font-heading:   "IBM Plex Sans", sans-serif;*/
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--wpnsite-font-body);
    background-color: var(--wpnsite-body-bg);
    color: var(--wpnsite-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wpnsite-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--wpnsite-secondary);
}

a {
    color: var(--wpnsite-primary);
    text-decoration: none;
}

a:hover {
    color: var(--wpnsite-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Bootstrap Overrides — respect theme color variables
   ========================================================================== */

.btn-primary {
    background-color: var(--wpnsite-primary);
    border-color: var(--wpnsite-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--wpnsite-primary-dark);
    border-color: var(--wpnsite-primary-dark);
}

.btn-outline-primary {
    color: var(--wpnsite-primary);
    border-color: var(--wpnsite-primary);
}

.btn-outline-primary:hover {
    background-color: var(--wpnsite-primary);
    border-color: var(--wpnsite-primary);
    color: #fff;
}

.text-primary {
    color: var(--wpnsite-primary) !important;
}

/* ==========================================================================
   Banner Ad Strip
   ========================================================================== */

#banner-ad {
    background-color: #f4f5f7;
    /* Subtle horizontal pinstripe pattern */
/*
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 6px,
        rgba(0, 0, 0, 0.04) 6px,
        rgba(0, 0, 0, 0.04) 7px
    );
*/
/*    border-bottom: 1px solid #e2e4e9;*/
    min-height: 40px;
    display: flex;
    align-items: center;
}

#banner-ad .container {
    width: 100%;
}

/* Hide the strip entirely when empty (no ad saved) */
#banner-ad:empty,
#banner-ad .container:empty {
    display: none;
}

/* ==========================================================================
   Header — top bar + navigation
   ========================================================================== */
#explore {
    
}
#explore a {
    font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease; 
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}

.site-header--scrolled {
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.site-header-top {
    background-color: var(--wpnsite-header-bg);
    color: var(--wpnsite-header-text);
    transition: background-color 0.35s ease;
}

.site-header--scrolled .site-header-top {
    background-color: rgba(17, 24, 39, 0.78);
}

.site-header-top .custom-logo {
    max-height: 40px;
    width: auto;
}

/* Network bar — "Part of the [logo] network | Site A  Site B" */

#wpn-nw-logo {
    flex-shrink: 0;
}

.nw-label {
    font-size: 0.79rem;
    color: rgba(255, 255, 255, 0.65);
}

#nw-logo img {
    max-height: 18px;
    width: auto;
    vertical-align: middle;
    opacity: 0.85;
}

.nw-pipe {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    margin-left: 0.35rem;
}

.network-menu {
    padding: 0;
    list-style: none;
    margin: 0;
position: relative;
  bottom: -4px;
}

.network-menu li {
display: inline-flex;
  align-items: center;
  padding: 0px 8px;

}

.network-menu li a {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.network-menu li a:hover {
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .network-nav {
        display: none;
    }
}

.site-nav {
    background-color: #ffffff;
/*    border-bottom: 4px solid var(--wpnsite-primary);*/
/*    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);*/
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header--scrolled .site-nav {
    background-color: rgba(255, 255, 255, 0.82);
/*    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.13);*/
}

.site-nav .navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wpnsite-secondary);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link.active {
    color: var(--wpnsite-primary);
}

.site-nav .dropdown-menu {
    border: 1px solid var(--wpnsite-border);
    border-top: 2px solid var(--wpnsite-primary);
    border-radius: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.site-nav .dropdown-item {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item.active {
    color: var(--wpnsite-primary);
    background-color: #f9fafb;
}

#nw-logo img {
    max-width: 40px;
}

#wpn-nw-logo {
    font-weight: 300;
    font-size: .65rem;
}

/* ==========================================================================
   Category Label (tag icon + text, no background)
   ========================================================================== */

.post-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wpnsite-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.post-category-label:hover {
    color: var(--wpnsite-primary);
}

/* Post card footer — holds meta + category label on the same row */
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--wpnsite-border);
}

/* ==========================================================================
   Section Heading (e.g. "Latest News")
   ========================================================================== */

.section-heading {
    font-family: var(--wpnsite-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wpnsite-primary);
    border-bottom: 2px solid var(--wpnsite-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Post Meta
   ========================================================================== */

.post-meta {
    font-size: 0.75rem;
    color: var(--wpnsite-muted);
    line-height: 1.5;
}

.post-meta a {
    color: var(--wpnsite-muted);
}

.post-meta a:hover {
    color: var(--wpnsite-primary);
}


/* ==========================================================================
   List Post Card (thumbnail left + text right)
   ========================================================================== */

.post-card-list {
    display: flex;
    background-color: var(--wpnsite-card-bg);
    border: 1px solid var(--wpnsite-border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.post-card-list:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1;
    position: relative;
}

.post-card-list .post-thumbnail {
    flex: 0 0 250px;
    width: 250px;
    overflow: hidden;
}

.post-card-list .post-thumbnail img {
    width: 250px;
    height: 100%;
    min-height: 160px;
    max-height: 190px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-list:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card-list .post-card-body {
    padding: 0.875rem 1rem;
    flex: 1;
    min-width: 0;
}

.post-card-list .post-title {
    font-family: var(--wpnsite-font-heading);
    font-size: 0.9375rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.post-card-list .post-title a {
    color: var(--wpnsite-secondary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-list .post-title a:hover {
    color: var(--wpnsite-primary);
}

.post-card-list .post-excerpt {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.55;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Standard Grid Card
   ========================================================================== */

.post-card {
    background-color: var(--wpnsite-card-bg);
    border: 1px solid var(--wpnsite-border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
}

.post-card .post-thumbnail {
    overflow: hidden;
}

.post-card .post-thumbnail img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.04);
}

.post-card .post-card-body {
    padding: 1.125rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-title {
    font-family: var(--wpnsite-font-heading);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.post-card .post-title a {
    color: var(--wpnsite-secondary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-title a:hover {
    color: var(--wpnsite-primary);
}

.post-card .post-excerpt {
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.6;
    flex: 1;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar-widget {
    background-color: var(--wpnsite-card-bg);
    border: 1px solid var(--wpnsite-border);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget-title {
    font-family: var(--wpnsite-font-body);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wpnsite-secondary);
    margin-bottom: 1rem;
/*
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--wpnsite-primary);
*/
}

.sidebar-popular {
    border-top: 3px solid var(--wpnsite-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--wpnsite-border);
    font-size: 0.875rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--wpnsite-secondary);
}

.widget ul li a:hover {
    color: var(--wpnsite-primary);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post-title {
    font-size: 1.875rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .single-post-title {
        font-size: 2.5rem;
    }
}

.single-post-featured-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #374151;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content img {
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.entry-content blockquote {
    border-left: 4px solid var(--wpnsite-primary);
    padding: 0.75rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #374151;
    background-color: #fafafa;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-content a {
    color: var(--wpnsite-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--wpnsite-primary-dark);
}

.post-tags .badge {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 500;
    font-size: 0.75rem;
    text-decoration: none;
    border: 1px solid var(--wpnsite-border);
    padding: 0.35em 0.75em;
}

.post-tags .badge:hover {
    background-color: var(--wpnsite-primary);
    border-color: var(--wpnsite-primary);
    color: #ffffff;
}

/* Author box */
.author-box {
    background-color: var(--wpnsite-card-bg);
    border: 1px solid var(--wpnsite-border);
    border-left: 4px solid var(--wpnsite-primary);
    padding: 1.5rem;
}

.author-box .author-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--wpnsite-border);
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin: 0;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 0.9375rem;
}

.comment-metadata a {
    color: var(--wpnsite-muted);
    font-size: 0.8125rem;
}

.comment-body p {
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.comment-reply-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wpnsite-primary);
}

.comment-form .form-control:focus,
.comment-form .form-select:focus {
    border-color: var(--wpnsite-primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15);
}

/* ==========================================================================
   Posts Navigation (More Articles / Next / Back)
   ========================================================================== */

.posts-navigation {
    border-top: 1px solid var(--wpnsite-border);
    padding-top: 1.25rem;
}

.posts-nav-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.45rem 1.125rem;
}

/* ==========================================================================
   Sidebar Newsletter Box
   ========================================================================== */

.sidebar-newsletter {
    border-top: 3px solid var(--wpnsite-primary);
}

.sidebar-newsletter .newsletter-placeholder .form-control:focus,
.sidebar-newsletter #wpnsite-mc-form .form-control:focus {
    border-color: var(--wpnsite-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.06);
}

/* Mailchimp form inline feedback message */
.mc-feedback {
    margin-top: 0.6rem;
    margin-bottom: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: 3px;
}

.mc-feedback--success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.mc-feedback--error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.mc-consent-wrap .form-check-label {
    color: var(--wpnsite-muted);
    line-height: 1.4;
    font-size: .75rem;
}

.mc-consent-wrap .form-check-label a {
    color: var(--wpnsite-primary);
}

.mc-consent-error {
    color: #991b1b;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-publish img {
  max-width: 70px;
}
#footer-subscribe {
  position: relative;
    background-color: #FFF;
    border-top: solid 4px var(--wpnsite-primary);
/*    border-bottom: solid 4px var(--wpnsite-primary);*/
}

#footer-subscribe-inside {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

#footer-subscribe .btn {
    max-width: 200px;
}


.site-footer {
    background-color: var(--wpnsite-footer-bg);
    color: var(--wpnsite-footer-text);
}

.site-footer ul a {
    color: var(--wpnsite-footer-text);
    text-decoration: none;
    font-size: 0.875rem;
}

.site-footer ul a:hover {
    color: #ffffff;
}

.footer-heading {
    font-family: var(--wpnsite-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.site-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .widget ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
}

.site-footer .widget ul li:last-child {
    border-bottom: none;
}

.site-footer .widget ul li a {
    color: var(--wpnsite-footer-text);
}

.site-footer .widget ul li a:hover {
    color: #ffffff;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 0.4rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    width: 100%;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404-wrap {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
}

.error-404-number {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    color: var(--wpnsite-primary);
}

/* ==========================================================================
   Search Highlight
   ========================================================================== */

.search-results mark {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--wpnsite-primary);
    padding: 0 2px;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
    background-color: var(--wpnsite-card-bg);
    border: 1px solid var(--wpnsite-border);
    padding: 3rem 2rem;
    text-align: center;
}

/* ==========================================================================
   Hero Section — col-6 large hero | col-6 2×2 image grid
   ========================================================================== */

/* ── Left col-6: large hero card ── */

.hero-featured {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background-color: #111;
}

.hero-featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-featured:hover .hero-featured-img {
    transform: scale(1.03);
}

.hero-no-image {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.28) 40%,
        rgba(0, 0, 0, 0.90) 100%
    );
}

.hero-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    z-index: 2;
}

.hero-featured-title {
    font-family: var(--wpnsite-font-heading);
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-featured-title a {
    color: #fff;
    text-decoration: none;
}

.hero-featured-title a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.hero-featured-excerpt {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-featured-meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.hero-category-label {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.hero-category-label:hover {
    color: #fff;
}

/* ── Right col-6: 2×2 grid of image cards ── */

.hero-grid {
    margin: 0;
}

.hero-grid-card {
    position: relative;
    height: 100%;
    min-height: 190px;
    overflow: hidden;
    background-color: #111;
    display: block;
}

.hero-grid-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-grid-card:hover .hero-grid-img {
    transform: scale(1.05);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 25%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.hero-grid-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    z-index: 2;
}

.hero-grid-cat {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background-color: var(--wpnsite-primary);
    padding: 0.15em 0.4em;
    border-radius: 2px;
    text-decoration: none;
    margin-bottom: 0.3rem;
    white-space: nowrap;
}

.hero-grid-cat:hover {
    background-color: var(--wpnsite-primary-dark);
    color: #fff;
}

.hero-grid-title {
    font-family: var(--wpnsite-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    color: #fff;
}

.hero-grid-title a {
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-grid-title a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.hero-grid-meta {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
}


/* ==========================================================================
   Channel Logo (header)
   ========================================================================== */

.site-branding-link {
    color: var(--wpnsite-header-text) !important;
}

.site-branding-link:hover {
    opacity: 0.85;
}

.site-title-text {
    font-family: var(--wpnsite-font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: #000;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
  left: -8px;
    text-transform: uppercase;
}

.site-title-text span {
    font-weight: 400;
}

.site-title-text-footer {
    font-family: var(--wpnsite-font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: #FFF;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
  left: -8px;
    text-transform: uppercase;
}
.site-title-text-footer span {
    font-weight: 400;
}



#channel-logo-bg {
border-radius: 50%;
/*  box-shadow: 0px 0px 13px #ddd;*/
  border: solid 1px #ccc;
}

.channel-logo {
    max-height: 30px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ==========================================================================
   Newsletter Widget
   ========================================================================== */

.wpnsite-newsletter-widget .newsletter-placeholder-form .form-control:focus {
    border-color: var(--wpnsite-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Most Popular Posts Widget
   ========================================================================== */

.popular-posts-list {
    counter-reset: popular-counter;
}

.popular-post-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--wpnsite-border);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-rank {
    flex: 0 0 22px;
    font-family: var(--wpnsite-font-heading);
    font-size: 1.375rem;
    font-weight: 900;
    line-height: 1;
    color: var(--wpnsite-primary);
    opacity: 0.45;
    text-align: right;
    padding-top: 2px;
}

.popular-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    display: block;
    background-color: var(--wpnsite-border);
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.popular-post-item:hover .popular-thumb img {
    transform: scale(1.06);
}

.popular-thumb-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--wpnsite-border);
}

.popular-body {
    flex: 1;
    min-width: 0;
}

.popular-title {
    font-family: var(--wpnsite-font-heading);
    font-size: 0.875rem;
    line-height: 1.35;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.popular-title a {
    color: var(--wpnsite-secondary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-title a:hover {
    color: var(--wpnsite-primary);
}

/* Keep the category label inline inside popular-post meta row */
.sidebar-popular .post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
}

.sidebar-popular .post-category-label {
    font-size: 0.6875rem;
}

.sidebar-popular .post-meta time {
    font-size: 0.6875rem;
    color: var(--wpnsite-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .hero-featured {
        min-height: 300px;
    }

    .hero-grid-card {
        min-height: 160px;
    }
}

@media (max-width: 767.98px) {
    .hero-featured {
        min-height: 260px;
    }

    .hero-featured-title {
        font-size: 1.25rem;
    }

    .hero-featured-excerpt {
        display: none;
    }

    .hero-grid-card {
        min-height: 130px;
    }

    .hero-grid-title {
        font-size: 0.78rem;
    }

    .post-card-list .post-thumbnail {
        flex: 0 0 120px;
        width: 120px;
    }

    .post-card-list .post-thumbnail img {
        width: 120px;
        min-height: 90px;
        max-height: 120px;
    }

    .entry-content {
        font-size: 1rem;
    }

    .single-post-title {
        font-size: 1.625rem;
    }
}
