/*
Theme Name: News Hub
Theme URI: https://example.com/news-hub
Update URI: false
Author: LordThemes
Author URI: https://example.com
Description: High-performance, responsive, ultra-fast WordPress magazine theme with gold primary color (#CCCC00), PageSpeed 95+.
Version: 100.0.0
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-hub
Tags: news, magazine, grid, blog, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --clr-primary:       #CCCC00;
  --clr-primary-dark:  #AAAA00;
  --clr-primary-deep:  #666600;
  --clr-heading:       #000000;
  --clr-body:          #000000;
  --clr-link:          #000000;
  --clr-link-hover:    #666600;
  --clr-border:        #EBEBEB;
  --clr-border-dark:   #CCCCCC;
  --clr-bg:            #FFFFFF;
  --clr-bg-alt:        #F9F9F9;
  --clr-muted:         #555555;
  --clr-white:         #FFFFFF;
  --clr-black:         #000000;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: all 0.25s ease;
}

/* Base resets */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--clr-body);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clr-link);
  text-decoration: none;
  transition: var(--transition);
}
a:hover, a:focus {
  color: var(--clr-link-hover) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-heading);
  line-height: 1.3;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nh-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Accessibility: Screen Reader Text & Skip Link */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link:focus {
  position: fixed !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 999999 !important;
  width: auto !important;
  height: auto !important;
  padding: 12px 20px !important;
  background: var(--clr-black) !important;
  color: #ffffff !important;
  border: 2px solid var(--clr-primary) !important;
  border-radius: var(--radius-sm) !important;
  clip: auto !important;
  white-space: normal !important;
  outline: 2px solid var(--clr-primary-deep) !important;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#nh-site-header { background: #ffffff; border-bottom: 1px solid var(--clr-border); }
.nh-header-main { padding: 16px 0; }
.nh-site-title { font-family: var(--font-heading); color: var(--clr-primary-deep) !important; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.nh-site-title:hover { color: var(--clr-primary-dark) !important; }
.nh-tagline { color: var(--clr-primary-deep); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

.nh-primary-nav ul { display: flex; flex-wrap: wrap; list-style: none; gap: 24px; align-items: center; }
.nh-primary-nav a { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--clr-black); padding: 8px 0; display: inline-block; position: relative; }
.nh-primary-nav a:hover { color: var(--clr-primary-deep) !important; }

/* Search form */
.nh-search-input {
  width: 100%;
  border: 1px solid var(--clr-border-dark);
  padding: 10px 44px 10px 12px;
  min-height: 44px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--clr-black);
}
.nh-search-input:focus { border-color: var(--clr-primary-deep); }

/* ============================================================
   SECTION TITLES & HEADINGS
   ============================================================ */
.nh-section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  color: var(--clr-black);
  position: relative;
}

/* ============================================================
   SECTION 2: HERO – Guardian-style (text+image top, 4 cards bottom)
   ============================================================ */
#nh-hero { padding: 28px 0 36px; background: #ffffff; border-bottom: 1px solid var(--clr-border); }

/* TOP ROW */
.nh-hero-top { display: grid; grid-template-columns: 2fr 3fr; gap: 0; margin-bottom: 28px; border-bottom: 1px solid var(--clr-border); padding-bottom: 28px; }

/* Left: text column */
.nh-hero-text { display: flex; flex-direction: column; justify-content: flex-start; padding-right: 32px; }
.nh-hero-cat { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--clr-primary-deep); margin-bottom: 12px; display: inline-block; }
.nh-hero-cat:hover { color: var(--clr-primary-dark) !important; }
.nh-hero-title { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 36px); font-weight: 900; line-height: 1.2; color: var(--clr-black); margin-bottom: 12px; }
.nh-hero-title a { color: var(--clr-black); }
.nh-hero-title a:hover { color: var(--clr-primary-deep) !important; }
.nh-hero-date { font-size: 13px; color: var(--clr-muted); margin-bottom: 14px; }
.nh-hero-excerpt { font-size: 14px; color: #444444; line-height: 1.6; margin-bottom: 24px; }
.nh-hero-btn { display: inline-block; border: 1px solid var(--clr-border-dark); padding: 9px 18px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--clr-black); background: #ffffff; transition: all 0.2s ease; margin-top: auto; }
.nh-hero-btn:hover { background: var(--clr-black); color: #ffffff !important; border-color: var(--clr-black); }

/* Right: big image */
.nh-hero-img-wrap { display: block; overflow: hidden; background: var(--clr-border); }
.nh-hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform 0.4s ease; }
.nh-hero-img-wrap:hover img { transform: scale(1.03); }

/* BOTTOM ROW: 4 overlay cards (Soledad big-grid style) */
.nh-hero-bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.nh-hero-card {
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--clr-border);
}

/* Invisible full-card clickable overlay */
.nh-hero-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Image fills card */
.nh-hero-card-img { display: block; line-height: 0; }
.nh-hero-card-img img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.nh-hero-card:hover .nh-hero-card-img img { transform: scale(1.06); }

/* Dark gradient overlaid on top of image */
.nh-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0,0,0,0.72) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Category badge – top left, above gradient */
.nh-hero-card-cat-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}
.nh-hero-card-cat {
    display: inline-block;
    background: var(--clr-primary-deep);
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 8px;
    line-height: 1.6;
    position: relative;
    z-index: 3;
}
.nh-hero-card-cat:hover { background: var(--clr-primary-dark); color: #ffffff !important; }

/* Content block – bottom overlay */
.nh-hero-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 12px 12px;
    z-index: 3;
    pointer-events: none; /* let .nh-hero-card-link handle clicks */
}
.nh-hero-card-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nh-hero-card-title a { color: #ffffff; pointer-events: auto; }
.nh-hero-card-title a:hover { color: var(--clr-primary) !important; }
.nh-hero-card-date { font-size: 11px; color: rgba(255,255,255,0.75); }

@media (max-width: 900px) {
  .nh-hero-top { grid-template-columns: 1fr; }
  .nh-hero-text { padding-right: 0; margin-bottom: 16px; }
  .nh-hero-bottom { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .nh-hero-bottom { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION 3: CATEGORY 1 (RIBBON TITLE, 2 TOP CARDS + 2x2 BOTTOM CARDS)
   ============================================================ */
#nh-sec-cat1 { padding: 40px 0; background-color: #ffffff; border-bottom: 1px solid var(--clr-border); }

/* Ribbon Title */
.nh-cat1-header { margin-bottom: 24px; border-bottom: 2px solid var(--clr-border); padding-bottom: 0; position: relative; }
.nh-cat1-ribbon { display: inline-block; background: var(--clr-primary-deep); padding: 10px 24px 10px 16px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.nh-cat1-ribbon a { color: #ffffff !important; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; }

/* Top Row: 2 Big Cards */
.nh-cat1-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--clr-border); }
@media (max-width: 768px) {
  .nh-cat1-top-grid { grid-template-columns: 1fr; }
}

.nh-cat1-top-card { display: flex; flex-direction: column; }
.nh-cat1-top-grid .nh-cat1-top-card:first-child { border-right: 1px solid var(--clr-border); padding-right: 28px; }
@media (max-width: 768px) {
  .nh-cat1-top-grid .nh-cat1-top-card:first-child { border-right: none; padding-right: 0; border-bottom: 1px solid var(--clr-border); padding-bottom: 20px; }
}
.nh-cat1-top-card .nh-img-wrap { width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-sm); background: #eee; margin-bottom: 16px; }
.nh-cat1-top-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.nh-cat1-top-card:hover img { transform: scale(1.05); }
.nh-cat1-top-card .nh-card-title { font-size: 20px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.nh-cat1-top-card .nh-card-title a { color: var(--clr-black) !important; text-decoration: none; }
.nh-cat1-top-card .nh-card-title a:hover { color: var(--clr-primary-deep) !important; }
.nh-cat1-top-card .nh-meta { font-size: 12px; color: #444444; font-weight: 600; margin-bottom: 12px; }
.nh-cat1-top-card .nh-excerpt { font-size: 14px; color: #333333; line-height: 1.5; margin: 0; }

/* Bottom Row: 2x2 Small Cards */
.nh-cat1-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.nh-cat1-small-card { display: flex; gap: 16px; align-items: flex-start; }
.nh-cat1-bottom-grid .nh-cat1-small-card:nth-child(odd) { border-right: 1px solid var(--clr-border); padding-right: 20px; }
.nh-cat1-bottom-grid .nh-cat1-small-card:nth-child(1),
.nh-cat1-bottom-grid .nh-cat1-small-card:nth-child(2) { border-bottom: 1px solid var(--clr-border); padding-bottom: 16px; }
@media (max-width: 640px) {
  .nh-cat1-bottom-grid { grid-template-columns: 1fr; }
  .nh-cat1-bottom-grid .nh-cat1-small-card:nth-child(odd) { border-right: none; padding-right: 0; }
  .nh-cat1-bottom-grid .nh-cat1-small-card:not(:last-child) { border-bottom: 1px solid var(--clr-border); padding-bottom: 16px; }
}
.nh-cat1-small-card .nh-img-wrap { width: 130px; min-width: 130px; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); background: #eee; }
.nh-cat1-small-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.nh-cat1-small-card:hover img { transform: scale(1.05); }
.nh-cat1-small-card .nh-card-body { flex: 1; }
.nh-cat1-small-card .nh-card-title { font-size: 14px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.nh-cat1-small-card .nh-card-title a { color: var(--clr-black) !important; text-decoration: none; }
.nh-cat1-small-card .nh-card-title a:hover { color: var(--clr-primary-deep) !important; }
.nh-cat1-small-card .nh-meta { font-size: 11px; color: #444444; font-weight: 600; }

/* ============================================================
   SECTION 4: STAGGERED 3-COLUMN GRID (33a, 33b, 33c) – PENCI STYLE
   ============================================================ */
#nh-sec-cat2 { padding: 40px 0; background-color: #ffffff; }

/* Penci Block Heading Style 10 */
.penciel-bheading.style-10 {
  margin-bottom: 24px;
  position: relative;
  border-bottom: 2px solid var(--clr-primary-deep);
}
.penciel-bheading.style-10 .inner-arrow {
  margin: 0;
  display: inline-block;
}
.penciel-bheading.style-10 .inner-arrow > span > span {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: var(--clr-primary-deep);
  padding: 8px 16px;
  display: inline-block;
}
.penciel-bheading.style-10 .inner-arrow a {
  color: #ffffff !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.penciel-bheading.style-10 .inner-arrow a:hover {
  opacity: 0.85;
}

/* 3-Column 33:33:33 Layout */
#nh-sec-cat2 {
  padding: 40px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
#nh-sec-cat2 .elementor-container.elementor-column-gap-extended {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
#nh-sec-cat2 .penci-ercol-33,
#nh-sec-cat2 .elementor-col-33 {
  width: 100%;
  min-width: 0;
}
#nh-sec-cat2 .penci-ercol-33:not(:last-child),
#nh-sec-cat2 .elementor-col-33:not(:last-child) {
  border-right: 1px solid var(--clr-border);
  padding-right: 20px;
}
@media (max-width: 992px) {
  #nh-sec-cat2 .penci-ercol-33:not(:last-child),
  #nh-sec-cat2 .elementor-col-33:not(:last-child) {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 24px;
  }
}
#nh-sec-cat2 .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
#nh-sec-cat2 .elementor-widget-wrap > .elementor-widget:first-child {
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 20px;
}

/* 1. Big Grid Widget inside Section 4: LARGE FULL-WIDTH FEATURED IMAGE (33% COLUMN) */
#nh-sec-cat2 .penci-biggrid-data,
.penci-grid-col-1 .penci-biggrid-data {
  grid-template-columns: 1fr !important;
}

#nh-sec-cat2 .pcbg-thumb {
  width: 100% !important;
  aspect-ratio: 16/10 !important;
  height: auto !important;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--clr-border);
  margin-bottom: 10px;
  position: relative;
}
#nh-sec-cat2 .pcbg-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
#nh-sec-cat2 .pcbg-title a {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: var(--clr-black);
}

/* 2. Recent Posts Widget inside Section 4: SMALL THUMBNAIL (100px) + TEXT RIGHT */
#nh-sec-cat2 .side-newsfeed { list-style: none; padding: 0; margin: 0; }
#nh-sec-cat2 .side-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
#nh-sec-cat2 .side-image {
  width: 100px !important;
  min-width: 100px !important;
  height: 70px !important;
  aspect-ratio: 4/3 !important;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--clr-border);
  flex-shrink: 0 !important;
}
#nh-sec-cat2 .side-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
#nh-sec-cat2 .side-item-text { flex: 1; min-width: 0; }
#nh-sec-cat2 .side-title-post {
  font-family: var(--font-heading);
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: 4px;
}
#nh-sec-cat2 .side-title-post a {
  color: var(--clr-black);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
#nh-sec-cat2 .side-title-post a:hover {
  color: var(--clr-primary-deep) !important;
}
#nh-sec-cat2 .side-item-meta { font-size: 11px; color: #777777; }

@media (max-width: 992px) {
  #nh-sec-cat2 .elementor-container.elementor-column-gap-extended {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECTION 5: CATEGORY 3 (BIG GRID 4-COLUMNS PENCI STYLE)
   ============================================================ */
#nh-sec-cat3 {
  padding: 40px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
#nh-sec-cat3 .penci-grid-col-4 .penci-bgitem:not(:last-child) {
  border-right: 1px solid var(--clr-border);
  padding-right: 16px;
}
.nh-cat3-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) {
  .nh-cat3-grid { grid-template-columns: 1fr; }
}

/* Big Overlay Card (Left) */
.nh-cat3-big-card { position: relative; height: 100%; min-height: 440px; overflow: hidden; border-radius: var(--radius-sm); background: #000; display: flex; flex-direction: column; }
.nh-cat3-big-card .nh-img-wrap { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; }
.nh-cat3-big-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.nh-cat3-big-card:hover img { transform: scale(1.04); }
.nh-cat3-big-card .nh-overlay-content { position: relative; z-index: 2; margin-top: auto; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%); color: #ffffff; width: 100%; pointer-events: none; }
.nh-cat3-big-card .nh-overlay-content a { pointer-events: auto; }
.nh-cat3-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #ffffff; text-transform: uppercase; margin-bottom: 8px; opacity: 0.9; }
.nh-cat3-big-title { font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.nh-cat3-big-title a { color: #ffffff !important; text-decoration: none; }
.nh-cat3-big-title a:hover { color: var(--clr-primary) !important; }
.nh-cat3-meta { font-size: 12px; color: #dddddd; }

/* 2x2 Subgrid (Right) */
.nh-cat3-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
@media (max-width: 550px) {
  .nh-cat3-subgrid { grid-template-columns: 1fr; }
}
.nh-cat3-small-card { display: flex; flex-direction: column; }
.nh-cat3-small-card .nh-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-sm); background: #eee; margin-bottom: 10px; }
.nh-cat3-small-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.nh-cat3-small-card:hover img { transform: scale(1.05); }
.nh-cat3-subbadge { font-size: 11px; font-weight: 700; color: #666666; text-transform: uppercase; margin-bottom: 4px; display: block; }
.nh-cat3-sub-title { font-size: 14px; font-weight: 800; line-height: 1.35; margin-bottom: 6px; }
.nh-cat3-sub-title a { color: var(--clr-black) !important; text-decoration: none; }
.nh-cat3-sub-title a:hover { color: var(--clr-primary-deep) !important; }
.nh-cat3-submeta { font-size: 11px; color: #777777; }

/* ============================================================
   SECTION 6+7: TWO-COLUMN 50/50 – SOLEDAD / PENCI STYLE
   ============================================================ */
#nh-sec-cat46 {
  padding: 40px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

/* Outer two-column container */
#nh-sec-cat46 .elementor-container {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

/* Each half column */
#nh-sec-cat46 .penci-ercol-50,
#nh-sec-cat46 .elementor-col-50 {
  flex: 1 1 calc(50% - 16px);
  min-width: 0;
}
#nh-sec-cat46 .penci-ercol-50:first-child,
#nh-sec-cat46 .elementor-col-50:first-child {
  border-right: 1px solid var(--clr-border);
  padding-right: 32px;
}
@media (max-width: 992px) {
  #nh-sec-cat46 .penci-ercol-50:first-child,
  #nh-sec-cat46 .elementor-col-50:first-child {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 32px;
  }
}

/* Fancy Heading */
.penci-fancy-heading { margin-bottom: 12px; }
.penci-heading-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-black);
  margin: 0;
  display: inline-block;
  border-bottom: 3px solid var(--clr-primary-deep);
  padding-bottom: 4px;
}
.penci-heading-title .inner-tit a {
  color: var(--clr-black);
  text-decoration: none;
  transition: color 0.2s ease;
}
.penci-heading-title .inner-tit a:hover {
  color: var(--clr-primary-deep) !important;
}

/* Elementor Divider */
.elementor-widget-divider { margin: 12px 0 20px 0; }
.elementor-divider-separator {
  display: block;
  height: 1px;
  background: var(--clr-border);
  width: 100%;
}

/* Penci Small List (Image Right with Dividers) */
.penci-smalllist-wrapper { margin-bottom: 20px; }
.pcsl-inner { display: flex; flex-direction: column; gap: 16px; }
.pcsl-iteminer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.pcsl-iteminer:not(:last-child) {
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 16px;
}
.pcsl-content {
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--clr-border);
  padding-right: 16px;
}
.pcsl-title a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--clr-black);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.pcsl-title a:hover {
  color: var(--clr-primary-deep) !important;
}
.pcsl-meta { margin-top: 6px; font-size: 12px; color: #777777; }
.pcsl-pexcerpt p {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.4;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcsl-thumb {
  width: 140px;
  min-width: 140px;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.pcsl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pcsl-iteminer:hover .pcsl-thumb img {
  transform: scale(1.05);
}

/* 40:60 Ratio for Top Small List Widgets (.elementor-element-9b7ccd7 & .elementor-element-afdb63b) */
.elementor-element-9b7ccd7 .pcsl-iteminer,
.elementor-element-afdb63b .pcsl-iteminer {
  display: flex;
  align-items: center;
  gap: 16px;
}
.elementor-element-9b7ccd7 .pcsl-content,
.elementor-element-afdb63b .pcsl-content {
  flex: 0 0 40%;
  max-width: 40%;
  width: 40%;
}
.elementor-element-9b7ccd7 .pcsl-thumb,
.elementor-element-afdb63b .pcsl-thumb {
  flex: 0 0 60%;
  max-width: 60%;
  width: 60%;
  min-width: 0;
  aspect-ratio: 3/2;
}


/* Penci Big Grid (3 & 4 columns, Content Below Image) */
.penci-biggrid-wrapper { margin-bottom: 20px; }
.penci-biggrid-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.penci-grid-col-4 .penci-biggrid-data {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pcbg-above { margin-bottom: 4px; }
.pcbg-sub-title .penci-cat-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-primary-deep);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.pcbg-sub-title .penci-cat-name:hover {
  text-decoration: underline;
}
.penci-bgitem { display: flex; flex-direction: column; }
.penci-biggrid-data .penci-bgitem:not(:last-child) {
  border-right: 1px solid var(--clr-border);
  padding-right: 16px;
}
#nh-sec-cat2 .penci-biggrid-data .penci-bgitem {
  border-right: none !important;
  padding-right: 0 !important;
}
@media (max-width: 992px) {
  .penci-biggrid-data .penci-bgitem:not(:last-child) {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
}
.pcbg-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--clr-border);
  margin-bottom: 8px;
  position: relative;
}
.pcbg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.penci-bgitem:hover .pcbg-thumb img {
  transform: scale(1.05);
}
.pcbg-title a {
  font-size: 12px;
  font-weight: 800;
  color: var(--clr-black);
  line-height: 1.3;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.pcbg-title a:hover {
  color: var(--clr-primary-deep) !important;
}
.pcbg-meta-desc { font-size: 11px; color: #777777; margin-top: 4px; }

@media (max-width: 992px) {
  #nh-sec-cat46 .penci-ercol-50,
  #nh-sec-cat46 .elementor-col-50 {
    flex: 1 1 100%;
  }
}

@media (max-width: 576px) {
  .penci-biggrid-data {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECTION 8: ALL POST (70:30 RATIO, NUMERIC PAGINATION, STICKY SIDEBAR)
   ============================================================ */
#nh-sec-allposts { padding: 40px 0; background-color: #ffffff; border-top: 1px solid var(--clr-border); }
.nh-grid-70-30 { display: grid; grid-template-columns: 7fr 3fr; gap: 32px; }
.nh-allposts-left h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; border-bottom: 2px solid var(--clr-primary-deep); padding-bottom: 8px; }
.nh-post-list { display: flex; flex-direction: column; gap: 20px; }
.nh-post-item-horizontal { display: flex; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--clr-border); }
.nh-post-item-horizontal .nh-img-wrap { width: 180px; min-width: 180px; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-sm); background: #eee; }
.nh-post-item-horizontal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.nh-post-item-horizontal:hover img { transform: scale(1.05); }
.nh-post-item-horizontal .nh-content { flex: 1; }
.nh-post-item-horizontal .nh-card-title { font-size: 16px; font-weight: 700; color: var(--clr-black); line-height: 1.35; margin-bottom: 6px; }
.nh-post-item-horizontal .nh-meta { font-size: 12px; color: #777; margin-bottom: 6px; }
.nh-post-item-horizontal .nh-excerpt { font-size: 13px; color: var(--clr-muted); line-height: 1.4; }

/* Numeric Pagination */
.nh-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; }
.nh-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--clr-border-dark); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; color: var(--clr-black); text-decoration: none; }
.nh-pagination .page-numbers.current, .nh-pagination .page-numbers:hover { background: var(--clr-primary-deep); color: #ffffff !important; border-color: var(--clr-primary-deep); }

/* Sticky Sidebar (Right 30%) */
.nh-sticky-sidebar { position: -webkit-sticky; position: sticky; top: 20px; height: fit-content; }
.nh-sticky-sidebar .widget { margin-bottom: 24px; padding: 20px; background: #ffffff; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); }
.nh-sticky-sidebar .widget-title { font-size: 16px; font-weight: 800; text-transform: uppercase; margin-bottom: 14px; border-bottom: 2px solid var(--clr-primary-deep); padding-bottom: 6px; }

/* ============================================================
   SECTION 9: FOOTER (4 COLUMNS)
   ============================================================ */
#nh-footer { background-color: var(--clr-primary); padding: 48px 0 24px 0; border-top: 1px solid rgba(0,0,0,0.08); color: var(--clr-black); }
.nh-footer-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.nh-footer-col h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; margin-bottom: 16px; color: var(--clr-black); border-bottom: 2px solid var(--clr-primary-deep); padding-bottom: 6px; }
.nh-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.nh-footer-col a { font-size: 14px; color: var(--clr-black); font-weight: 600; }
.nh-footer-col a:hover { color: var(--clr-primary-deep) !important; text-decoration: underline; }
.nh-footer-copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.1); font-size: 13px; font-weight: 600; }

/* ============================================================
   SINGLE POST, RELATED ARTICLES & PENCI COMMENT FORM
   ============================================================ */
.nh-single-wrap { padding: 40px 0; background-color: #ffffff; }
.nh-single-title { font-size: 32px; font-weight: 900; line-height: 1.25; margin-bottom: 12px; color: var(--clr-black); }
.nh-single-meta { font-size: 13px; color: #777777; margin-bottom: 20px; border-bottom: 1px solid var(--clr-border); padding-bottom: 12px; }
.nh-single-featured { width: 100%; aspect-ratio: 16/9; max-height: 520px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 24px; }
.nh-single-content { font-size: 16px; line-height: 1.8; color: var(--clr-black); margin-bottom: 40px; }
.nh-single-content p { margin-bottom: 1.5em; }

/* Navigation */
.nh-post-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border); padding: 16px 0; margin-bottom: 40px; }
.nh-post-nav a { font-weight: 700; color: var(--clr-black); text-decoration: none; }
.nh-post-nav a:hover { color: var(--clr-primary-deep); }

/* Penci Post Related Grid */
.post-related {
  margin-top: 40px;
  margin-bottom: 40px;
}
.post-title-box {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--clr-primary-deep);
  padding-bottom: 6px;
}
.post-box-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--clr-black);
  margin: 0;
}
.penci-related-grid-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .penci-related-grid-display {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .penci-related-grid-display {
    grid-template-columns: 1fr;
  }
}
.item-related-inner {
  display: flex;
  flex-direction: column;
}
.related-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--clr-border);
  margin-bottom: 10px;
  display: block;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.item-related-inner:hover .related-thumb img {
  transform: scale(1.05);
}
.related-content h3 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 4px;
}
.related-content h3 a {
  color: var(--clr-black);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.related-content h3 a:hover {
  color: var(--clr-primary-deep) !important;
}
.related-content .date {
  font-size: 11px;
  color: #777777;
}

/* Penci Comment Form (pc-comment-normal) */
#comments { margin-top: 40px; }
.pc-comment-normal {
  margin-top: 30px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
}
.pc-comment-normal .comment-reply-title {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--clr-primary-deep);
  padding-bottom: 8px;
}
.pc-comment-normal .comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pc-comment-normal p { margin: 0; }
.pc-comment-normal textarea,
.pc-comment-normal input[type="text"],
.pc-comment-normal input[type="email"],
.pc-comment-normal input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--clr-border-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.pc-comment-normal textarea:focus,
.pc-comment-normal input[type="text"]:focus,
.pc-comment-normal input[type="email"]:focus,
.pc-comment-normal input[type="url"]:focus {
  border-color: var(--clr-primary-deep);
}
.pc-comment-normal .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666666;
}
.pc-comment-normal .comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  cursor: pointer;
}
.pc-comment-normal .form-submit input[type="submit"] {
  background: var(--clr-primary-deep);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}
.pc-comment-normal .form-submit input[type="submit"]:hover {
  background: var(--clr-primary-dark);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .nh-grid-3x2-horizontal, .nh-grid-3x2-vertical, .nh-grid-videos, .nh-grid-lifestyle, .nh-grid-scitech, .nh-grid-70-30, .nh-footer-4col { grid-template-columns: 1fr; }
  .nh-sticky-sidebar { position: static; }
}

/* High Contrast Meta Text Rule (WCAG AAA Compliance - Contrast >= 7:1) */
.nh-meta,
.pcbg-meta-desc,
.grid-post-box-meta,
.side-item-meta,
.pcsl-meta,
.bg-date,
.sl-date,
.side-wdate,
.side-item-meta,
.nh-single-meta,
.nh-hero-date,
time.entry-date,
.entry-date {
  color: #333333 !important;
  font-weight: 600;
}
.author-url,
.author-italic,
.bg-date-author,
.bg-date-author a {
  color: #222222 !important;
  font-weight: 700;
}

/* ============================================================
   WCAG 2.5.5 TOUCH TARGET SIZE & SPACING (MINIMUM 44x44PX)
   ============================================================ */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea,
.nh-search-input,
.page-numbers,
.nh-hero-btn,
.nh-hero-cat,
.nh-hero-card-cat,
.penci-cat-name,
.nh-cat1-ribbon a,
.pcbg-sub-title a,
.nh-post-nav a,
.comment-reply-link,
.pc-comment-normal input[type="submit"] {
  min-width: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box;
}

.nh-primary-nav a {
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
}

.nh-footer-col a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}

.nh-post-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
}

.nh-pagination .page-numbers {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 2px !important;
}

.nh-hero-cat,
.nh-hero-card-cat,
.penci-cat-name,
.nh-cat1-ribbon a,
.pcbg-sub-title a {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
}

/* ============================================================
   MOBILE HAMBURGER MENU & SECTION VISIBILITY (MAX-WIDTH: 768PX)
   ============================================================ */
.nh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}
.nh-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--clr-border-dark);
  border-radius: var(--radius-sm);
  color: var(--clr-black);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.nh-menu-toggle:hover {
  background: var(--clr-bg-alt);
}

@media (max-width: 768px) {
  /* HIDE ALL SECTIONS ON MOBILE EXCEPT SECTION 1 (HEADER), SECTION 8 (ALL POSTS), & SECTION 9 (FOOTER) */
  #nh-hero,
  #nh-sec-cat1,
  #nh-sec-cat2,
  #nh-sec-cat3,
  #nh-sec-cat46 {
    display: none !important;
  }

  /* ENSURE SECTIONS 1, 8, AND 9 REMAIN VISIBLE */
  #nh-site-header,
  #nh-sec-allposts,
  #nh-footer {
    display: block !important;
  }

  /* HAMBURGER MENU TOGGLE STYLES */
  .nh-menu-toggle {
    display: inline-flex !important;
  }
  .nh-nav-wrap {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid var(--clr-border);
    padding: 12px 0;
  }
  .nh-nav-wrap.is-active {
    display: flex !important;
  }
  .nh-primary-nav ul {
    flex-direction: column;
    width: 100%;
  }
  .nh-primary-nav li {
    width: 100%;
    border-bottom: 1px solid var(--clr-border);
  }
  .nh-primary-nav a {
    width: 100%;
    padding: 12px 16px;
    justify-content: flex-start;
  }
  .nh-header-search {
    width: 100%;
    margin-top: 8px;
  }
}

/* ============================================================
   ARTICLE SHARE SECTION (FOXIZ / SOLEDAD STYLE)
   ============================================================ */
.l-shared-sec-outer {
  margin: 32px 0;
  padding: 16px 20px;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
}
.l-shared-sec {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.l-shared-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--clr-black);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.l-shared-header svg {
  color: var(--clr-primary-deep);
}
.l-shared-items {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid var(--clr-border-dark) !important;
  color: var(--clr-black) !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.share-action:hover {
  background: var(--clr-primary-deep) !important;
  color: #ffffff !important;
  border-color: var(--clr-primary-deep) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.share-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
