/*
Theme Name: Nine O'Clock Modern
Theme URI: https://nineoclock.ro
Author: Custom for Nine O'Clock
Author URI: https://nineoclock.ro
Description: Modern news theme with WooCommerce Subscriptions paywall. Restrict categories and individual articles to subscribers. Clean, fast, mobile-first design for English-language Romanian newspaper.
Version: 1.25.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nineoclock-modern
Tags: news, magazine, blog, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce
*/

/* ============================================================
   CSS Variables – Easy to customize
   ============================================================ */
:root {
  --color-primary: #1a365d;      /* Dark navy – authority */
  --color-accent: #c53030;       /* Strong red – urgency */
  --color-text: #1a202c;
  --color-text-muted: #4a5568;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-border: #e2e8f0;
  --color-success: #276749;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1280px;
  --header-height: 72px;
  --radius: 6px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --transition: 0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75em;
  color: var(--color-text);
}
p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.5em; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.site-content {
  padding: 40px 0 60px;
}
.main-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
@media (max-width: 960px) {
  .main-content { grid-template-columns: 1fr; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-top {
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top a { color: rgba(255,255,255,0.9); }
.header-top a:hover { color: #fff; }
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  height: auto;
  gap: 16px 24px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.site-branding a {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}
.site-branding a:hover { color: var(--color-accent); }
.site-branding .tagline {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: #9b2c2c;
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text);
}

/* ============================================================
   Homepage Hero & Grids
   ============================================================ */
.hero-section {
  margin-bottom: 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: #1a202c;
}
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.hero-main .hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.hero-main .hero-content h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
}
.hero-main .hero-content a { color: #fff; }
.hero-main .hero-content a:hover { color: #feb2b2; }
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-side-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.hero-side-item:hover { box-shadow: var(--shadow); }
.hero-side-item img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.hero-side-item h3 {
  font-size: 15px;
  margin: 0 0 4px;
  font-family: var(--font-sans);
}
.hero-side-item .meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Section titles */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-primary);
}
.section-header h2 {
  font-size: 20px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-header a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Post cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; }
}
.post-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
  border: 1px solid var(--color-border);
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .card-body { padding: 18px; }
.post-card .category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.post-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 600;
}
.post-card h3 a { color: var(--color-text); }
.post-card h3 a:hover { color: var(--color-accent); }
.post-card .excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .meta {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  gap: 12px;
}

/* ============================================================
   Single Post
   ============================================================ */
.single-header {
  margin-bottom: 32px;
}
.single-header .category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.single-header h1 {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .single-header h1 { font-size: 26px; }
}
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  padding-bottom: 12px;
}
.single-header .single-featured {
  margin: 12px 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
}
.single-header .single-featured img {
  display: block;
  width: 100%;
  height: auto;
}
.single-featured {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.single-content {
  font-size: 18px;
  line-height: 1.75;
  font-family: var(--font-serif);
  max-width: 720px;
}
.single-content p { margin-bottom: 1.5em; }
.single-content h2, .single-content h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.single-content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
}
.single-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 1.5em 0;
  padding: 12px 24px;
  background: var(--color-bg-alt);
  font-style: italic;
}

/* ============================================================
   Paywall
   ============================================================ */
.nineoclock-paywall {
  margin: 40px 0;
  padding: 40px 32px;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(26, 54, 93, 0.25);
}
.nineoclock-paywall h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 12px;
}
.nineoclock-paywall p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 24px;
}
.nineoclock-paywall .btn-subscribe {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.nineoclock-paywall .btn-subscribe:hover {
  background: #9b2c2c;
  color: #fff;
}
.nineoclock-paywall .login-link {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.nineoclock-paywall .login-link a {
  color: #fff;
  text-decoration: underline;
}
.premium-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar .widget {
  background: var(--color-bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.sidebar .widget-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.sidebar li:last-child { border-bottom: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   Archive / Category
   ============================================================ */
.archive-header {
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--color-primary);
}
.archive-header h1 {
  font-size: 28px;
  margin: 0;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.pagination a:hover {
  background: var(--color-bg-alt);
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open ul {
    flex-direction: column;
    gap: 0;
  }
  .mobile-menu-toggle { display: block; }
  .header-actions .btn-outline { display: none; }
}

/* ============================================================
   WooCommerce minimal overrides
   ============================================================ */
.woocommerce .button,
.woocommerce button.button {
  background: var(--color-accent) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
}
.woocommerce .button:hover {
  background: #9b2c2c !important;
}
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--color-primary);
}

/* Utilities */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ============================================================
   PREMIUM vs FREE – Modern distinction
   ============================================================ */
.badge-premium,
.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 9px;
  border-radius: 20px;
  line-height: 1;
}
.badge-premium {
  background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(197, 48, 48, 0.35);
}
.badge-premium.badge-unlocked {
  background: linear-gradient(135deg, #276749 0%, #1a4731 100%);
  box-shadow: 0 2px 6px rgba(39, 103, 73, 0.3);
}
.badge-free {
  background: #edf2f7;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

/* Card media + lock overlay */
.card-media {
  position: relative;
}
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.post-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.card-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 54, 93, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #fff;
}
.post-card.is-locked:hover .card-lock-overlay {
  opacity: 1;
}
.lock-icon { font-size: 28px; }
.lock-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Premium cards stand out */
.post-card.is-premium {
  border-color: rgba(197, 48, 48, 0.25);
  box-shadow: 0 0 0 1px rgba(197, 48, 48, 0.08);
}
.post-card.is-premium:hover {
  box-shadow: 0 8px 20px rgba(197, 48, 48, 0.12), 0 2px 6px rgba(0,0,0,0.06);
}
.post-card.is-premium .card-body {
  border-top: 3px solid var(--color-accent);
}
.post-card.is-free .card-body {
  border-top: 3px solid transparent;
}

/* Thumb placeholder */
.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #edf2f7, #e2e8f0);
}
.placeholder-icon { font-size: 40px; opacity: 0.5; }

/* Hero badges */
.hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.hero-badges .category { color: #feb2b2; }

/* Legacy badge (single title) */
.premium-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============================================================
   DIGITAL EDITIONS
   ============================================================ */
.editions-section {
  margin: 56px 0;
  padding: 40px 0;
  background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 16px;
}
.editions-section .section-header {
  padding: 0 24px;
  border-bottom-color: var(--color-accent);
}
.editions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 24px 8px;
}
@media (max-width: 1000px) {
  .editions-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .editions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .editions-grid { grid-template-columns: 1fr; }
}

.edition-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.edition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.edition-card.is-premium {
  border-color: rgba(197, 48, 48, 0.3);
}
.edition-cover {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  background: #1a365d;
  overflow: hidden;
}
.edition-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edition-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, #1a365d 0%, #2c5282 50%, #1a365d 100%);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.edition-icon { font-size: 48px; }
.edition-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.9;
}
.edition-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.edition-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.edition-number {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
}
.edition-body h3 {
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}
.edition-body h3 a { color: var(--color-text); }
.edition-body h3 a:hover { color: var(--color-accent); }
.edition-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: auto;
}

/* Single digital edition */
.edition-single-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-bottom: 36px;
  align-items: start;
}
@media (max-width: 600px) {
  .edition-single-header { grid-template-columns: 1fr; }
}
.edition-single-cover {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a365d;
}
.edition-single-cover img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.edition-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 16px 0;
}
.noc-pdf-viewer {
  margin: 28px 0;
  padding: 28px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  text-align: center;
  border: 2px dashed var(--color-border);
}
.noc-pdf-viewer .btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}
.pdf-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.paywall-edition .paywall-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* Archive header for editions */
.editions-archive-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px 20px;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: #fff;
  border-radius: 12px;
}
.editions-archive-header h1 {
  color: #fff;
  margin-bottom: 8px;
}
.editions-archive-header p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SUBSCRIPTIONS PAGE
   ============================================================ */
.subscriptions-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.subs-hero {
  text-align: center;
  margin-bottom: 48px;
}
.subs-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.subs-hero h1 {
  font-size: 32px;
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .subs-hero h1 { font-size: 24px; }
}
.subs-lead {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.subs-active-notice {
  margin-top: 24px;
  display: inline-block;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
}
.subs-active-notice a {
  font-weight: 600;
  margin-left: 8px;
}

.subs-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 56px;
}
@media (max-width: 700px) {
  .subs-plans { grid-template-columns: 1fr; }
}

.subs-plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.subs-plan:hover {
  box-shadow: 0 16px 40px rgba(26, 54, 93, 0.12);
  transform: translateY(-4px);
}
.subs-plan--featured {
  background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
  border-color: #cbd5e0;
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.08);
}
.subs-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 20px;
}
.subs-plan-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.subs-plan h2 {
  font-family: var(--font-sans);
  font-size: 22px;
  margin: 0 0 4px;
}
.subs-plan-users {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.subs-plan-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.2;
}
.subs-plan-price .period,
.subs-plan-price .woocommerce-Price-amount + span {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.subs-plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  flex: 1;
}
.subs-plan-benefits li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.subs-plan-benefits li:last-child { border-bottom: none; }
.subs-plan-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #276749;
  font-weight: 700;
}
.btn-subs {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 8px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-subs--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-subs--primary:hover {
  background: #153e75;
  color: #fff;
}
.btn-subs--dark {
  background: #1a202c;
  color: #fff;
}
.btn-subs--dark:hover {
  background: #000;
  color: #fff;
}

.subs-faq {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.subs-faq h2 {
  font-size: 22px;
  margin-bottom: 28px;
}
.subs-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
@media (max-width: 700px) {
  .subs-faq-grid { grid-template-columns: 1fr; }
}
.subs-faq-grid h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  margin-bottom: 8px;
}
.subs-faq-grid p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Placeholder image */
.noc-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-main .noc-placeholder-img {
  min-height: 420px;
  object-fit: cover;
}
.paywall-price {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}

/* ============================================================
   SUBSCRIPTIONS – 2 column rows (plan | benefits)
   ============================================================ */
.subs-row {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 0;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.06);
}
@media (max-width: 720px) {
  .subs-row { grid-template-columns: 1fr; }
}
.subs-row--featured {
  border-color: rgba(26, 54, 93, 0.25);
  box-shadow: 0 8px 32px rgba(26, 54, 93, 0.12);
}
.subs-row-plan {
  position: relative;
  padding: 36px 28px;
  background: linear-gradient(165deg, #1a365d 0%, #2c5282 100%);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.subs-row:not(.subs-row--featured) .subs-row-plan {
  background: linear-gradient(165deg, #2d3748 0%, #1a202c 100%);
}
.subs-row-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 20px;
}
.subs-row-icon {
  font-size: 40px;
  margin-bottom: 8px;
  line-height: 1;
}
.subs-row-plan h2 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 24px;
  margin: 0 0 4px;
}
.subs-row-users {
  font-size: 13px;
  opacity: 0.8;
  margin: 0 0 16px;
}
.subs-row-price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #fff;
}
.subs-row-price .woocommerce-Price-amount {
  color: #fff;
}
.subs-row-period {
  display: block;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 4px;
}
.subs-row-plan .btn-subs {
  width: 100%;
  max-width: 260px;
}
.subs-row-plan .btn-subs--primary {
  background: #fff;
  color: var(--color-primary);
}
.subs-row-plan .btn-subs--primary:hover {
  background: #edf2f7;
  color: var(--color-primary);
}
.subs-row-plan .btn-subs--dark {
  background: var(--color-accent);
  color: #fff;
}
.subs-row-plan .btn-subs--dark:hover {
  background: #9b2c2c;
  color: #fff;
}
.subs-row-note {
  font-size: 11px;
  opacity: 0.65;
  margin: 12px 0 0;
  max-width: 220px;
}
.subs-row-benefits {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.subs-row-benefits h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}
.subs-row-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.subs-row-benefits li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-size: 15px;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
}
.subs-row-benefits li:last-child {
  border-bottom: none;
}
.subs-row-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px;
  height: 22px;
  background: #f0fff4;
  color: #276749;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 22px;
  text-align: center;
}

/* Hide legacy 2-card grid if present */
.subs-plans { display: none; }

/* ============================================================
   SUBSCRIPTIONS PAGE v2 – full width, 2 columns
   ============================================================ */
.noc-subs-wrap {
  width: 100%;
  background: #f4f6f9;
  padding: 48px 20px 72px;
  margin: 0 0 -20px;
}
.noc-subs-inner {
  max-width: 920px;
  margin: 0 auto;
}
.noc-subs-hero {
  text-align: center;
  margin-bottom: 40px;
}
.noc-subs-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #c53030;
  margin: 0 0 12px;
}
.noc-subs-hero h1 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.25;
  margin: 0 auto 14px;
  max-width: 700px;
  color: #1a202c;
}
.noc-subs-lead {
  font-size: 16px;
  color: #4a5568;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}
.noc-subs-active {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
  border-radius: 8px;
  font-size: 14px;
}
.noc-subs-active a {
  font-weight: 600;
  margin-left: 6px;
}

/* Plan card: left | right */
.noc-plan {
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(26, 54, 93, 0.1);
  border: 1px solid #e2e8f0;
}
.noc-plan-left {
  flex: 0 0 300px;
  max-width: 100%;
  padding: 40px 28px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.noc-plan-left--year {
  background: linear-gradient(160deg, #1a365d 0%, #2b6cb0 100%);
}
.noc-plan-left--month {
  background: linear-gradient(160deg, #2d3748 0%, #1a202c 100%);
}
.noc-plan-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #c53030;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
}
.noc-plan-icon {
  margin-bottom: 12px;
}
.noc-plan-left h2 {
  color: #fff !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 700;
}
.noc-plan-meta {
  font-size: 13px;
  opacity: 0.8;
  margin: 0 0 18px;
  color: #fff;
}
.noc-plan-price {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  line-height: 1.15;
}
.noc-plan-price .woocommerce-Price-amount,
.noc-plan-price .amount {
  color: #fff !important;
}
.noc-plan-period {
  display: block;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 4px;
}
.noc-plan-btn {
  display: inline-block;
  width: 100%;
  max-width: 220px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.noc-plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.noc-plan-btn--light {
  background: #fff;
  color: #1a365d !important;
}
.noc-plan-btn--light:hover {
  background: #edf2f7;
  color: #1a365d !important;
}
.noc-plan-btn--accent {
  background: #c53030;
  color: #fff !important;
}
.noc-plan-btn--accent:hover {
  background: #9b2c2c;
  color: #fff !important;
}
.noc-plan-hint {
  font-size: 11px;
  opacity: 0.65;
  margin: 14px 0 0;
  color: #fff;
}

.noc-plan-right {
  flex: 1 1 280px;
  padding: 36px 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.noc-plan-right h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #718096;
  margin: 0 0 16px;
  font-weight: 700;
}
.noc-plan-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.noc-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
  color: #2d3748;
  border-bottom: 1px solid #edf2f7;
  line-height: 1.45;
  list-style: none !important;
}
.noc-plan-list li:last-child {
  border-bottom: none;
}
.noc-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0fff4;
  color: #276749;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.noc-subs-steps {
  margin-top: 48px;
  text-align: center;
}
.noc-subs-steps h2 {
  font-size: 22px;
  margin: 0 0 28px;
}
.noc-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
@media (max-width: 700px) {
  .noc-steps-grid { grid-template-columns: 1fr; }
  .noc-plan-left { flex-basis: 100%; }
  .noc-plan-right { padding: 28px 24px; }
}
.noc-step {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}
.noc-step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: #1a365d;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.noc-step h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  margin: 0 0 8px;
}
.noc-step p {
  margin: 0;
  font-size: 14px;
  color: #718096;
}

/* ============================================================
   FULL WIDTH (no sidebar) – articles, checkout, author
   ============================================================ */
.layout-full {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 40px;
}
.layout-full--woo {
  max-width: 1250px;
}
.content-area--article .single-content {
  max-width: 720px;
}
body.no-sidebar .main-content {
  grid-template-columns: 1fr;
}
body.is-checkout .site-content .container,
body.woocommerce-cart .site-content .container,
body.woocommerce-account .site-content .container {
  max-width: 960px;
}
body.is-checkout #secondary,
body.woocommerce-cart #secondary,
body.woocommerce-checkout #secondary,
body.woocommerce-page.no-sidebar #secondary {
  display: none !important;
}

/* ============================================================
   AD ZONES
   ============================================================ */
.ad-zone {
  margin: 24px 0;
  padding: 12px;
  background: #f7fafc;
  border: 1px dashed #cbd5e0;
  border-radius: 8px;
  text-align: center;
  min-height: 50px;
  overflow: hidden;
}
.ad-zone .ad-label,
.ad-zone .widget-title {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0aec0;
  margin-bottom: 8px;
  font-weight: 600;
}
.ad-zone img,
.ad-zone iframe {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.ad-zone--header {
  margin-top: 0;
  margin-bottom: 28px;
}
.ad-zone--before {
  margin: 20px 0 28px;
}
.ad-zone--after {
  margin: 32px 0;
}
.ad-zone--footer {
  margin-top: 40px;
}
/* Empty ad zones stay subtle */
.ad-zone:empty {
  display: none;
}

/* ============================================================
   AUTHOR BOX (on single post)
   ============================================================ */
.author-box {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  padding: 24px;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  align-items: flex-start;
}
@media (max-width: 520px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}
.author-box-avatar img {
  border-radius: 50%;
  display: block;
}
.author-box-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #718096;
  margin: 0 0 4px;
  font-weight: 600;
}
.author-box-name {
  font-family: var(--font-sans);
  font-size: 18px;
  margin: 0 0 8px;
}
.author-box-name a { color: var(--color-text); }
.author-box-name a:hover { color: var(--color-accent); }
.author-box-bio {
  font-size: 14px;
  color: #4a5568;
  margin: 0 0 10px;
  line-height: 1.55;
}
.author-box-link {
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   AUTHOR PROFILE PAGE
   ============================================================ */
.author-profile {
  margin-bottom: 40px;
}
.author-profile-card {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.2);
}
@media (max-width: 600px) {
  .author-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
}
.author-profile-avatar img {
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.25);
  display: block;
}
.author-profile-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.75;
  margin: 0 0 6px;
  font-weight: 700;
}
.author-profile-name {
  color: #fff !important;
  font-size: 28px;
  margin: 0 0 12px;
  font-family: var(--font-serif);
}
.author-profile-bio {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.92;
  margin: 0 0 16px;
  max-width: 520px;
}
.author-profile-bio--muted {
  opacity: 0.7;
  font-style: italic;
}
.author-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.author-stat {
  font-size: 14px;
  opacity: 0.9;
}
.author-stat strong {
  font-size: 18px;
  margin-right: 4px;
}
.author-web {
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.author-web:hover {
  opacity: 0.85;
}

/* ============================================================
   MEGA MENU (categories next to logo)
   ============================================================ */
.noc-mega-wrap {
  position: relative;
  flex-shrink: 0;
}
.noc-mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.noc-mega-toggle:hover,
.noc-mega-toggle.is-open {
  background: #edf2f7;
  border-color: #cbd5e0;
  color: var(--color-primary);
}
.noc-mega-toggle-icon {
  display: flex;
  opacity: 0.85;
}
.noc-mega-chevron {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.15s ease;
}
.noc-mega-toggle.is-open .noc-mega-chevron {
  transform: rotate(180deg);
}
.noc-mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 200;
  width: min(720px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(26, 54, 93, 0.15);
  padding: 20px 22px 22px;
}
.noc-mega-panel[hidden] {
  display: none !important;
}
.noc-mega-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #718096;
  margin: 0 0 14px;
}
.noc-mega-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
}
@media (max-width: 640px) {
  .noc-mega-grid { grid-template-columns: repeat(2, 1fr); }
  .noc-mega-panel { left: 50%; transform: translateX(-50%); width: min(100vw - 24px, 400px); }
}
.noc-mega-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s ease;
}
.noc-mega-grid a:hover {
  background: #edf2f7;
  color: var(--color-primary);
}
.noc-mega-cat-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.noc-mega-cat-count {
  font-size: 11px;
  font-weight: 600;
  color: #a0aec0;
  background: #f7fafc;
  padding: 2px 7px;
  border-radius: 10px;
}
.noc-mega-grid a:hover .noc-mega-cat-count {
  background: #fff;
  color: var(--color-primary);
}
.noc-mega-empty {
  margin: 0;
  font-size: 14px;
  color: #718096;
}

/* Header layout: logo | mega | nav | actions */
.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-main .main-nav {
  flex: 1;
  min-width: 0;
}
@media (max-width: 900px) {
  .noc-mega-toggle-label { display: none; }
}
@media (max-width: 768px) {
  .noc-mega-wrap { order: 3; }
}

/* ============================================================
   CHECKOUT – wider
   ============================================================ */
.layout-full--woo {
  max-width: 1250px !important;
}
body.is-checkout .site-content .container,
body.woocommerce-checkout .site-content .container,
body.woocommerce-cart .site-content .container,
body.woocommerce-account .site-content .container {
  max-width: 1250px !important;
}
body.woocommerce-checkout .woocommerce,
body.is-checkout .content-area--woo {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
/* Two-column checkout breathing room */
body.woocommerce-checkout .col2-set,
body.woocommerce-checkout form.checkout {
  max-width: 100%;
}
@media (min-width: 992px) {
  body.woocommerce-checkout #customer_details {
    width: 55%;
  }
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    width: 42%;
  }
}

.noc-mega-panel.is-visible {
  display: block !important;
}
.noc-mega-panel:not([hidden]) {
  display: block;
}

/* Mega menu – WP nav menu items */
.noc-mega-grid li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.noc-mega-grid .noc-mega-cat-name {
  display: block;
  width: 100%;
}
.noc-mega-grid .sub-menu {
  display: none;
}

/* ============================================================
   SIDEBAR DIGITAL EDITION
   ============================================================ */
.noc-sidebar-edition,
a.noc-sidebar-edition {
  display: block;
  text-decoration: none;
  color: inherit;
}
.noc-sidebar-edition img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.noc-sidebar-edition-ph {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #1a365d, #2c5282);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 10px;
}
.noc-sidebar-edition-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--color-text);
}
.noc-sidebar-edition-no {
  display: block;
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.noc-sidebar-edition-cta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* PDF viewer */
.noc-pdf-viewer-wrap {
  margin: 32px 0 48px;
}
.noc-pdf-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.noc-pdf-frame {
  width: 100%;
  height: min(85vh, 900px);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #edf2f7;
}
.layout-full--edition {
  max-width: 1000px;
}

/* Newsletter form */
.noc-newsletter {
  margin-top: 8px;
}
.noc-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.noc-newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
}
.noc-newsletter-form button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.noc-newsletter-form button:hover {
  background: #9b2c2c;
}
.noc-newsletter-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 8px 0 0;
}
.noc-newsletter-msg {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.noc-newsletter-msg--success {
  background: #f0fff4;
  color: #276749;
}
.noc-newsletter-msg--error {
  background: #fff5f5;
  color: #c53030;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.noc-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 16px 0 8px;
  padding: 12px 0;
}
.single-header .noc-share {
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
  padding-top: 16px;
}
.entry-content + .noc-share,
.single-content + .noc-share {
  border-top: 1px solid var(--color-border);
  margin-top: 28px;
  padding-top: 20px;
}
.noc-share-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  margin-right: 4px;
}
.noc-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.noc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.noc-share-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  color: #fff !important;
}
.noc-share-btn--facebook { background: #1877f2; }
.noc-share-btn--x { background: #0f1419; }
.noc-share-btn--linkedin { background: #0a66c2; }
.noc-share-btn--whatsapp { background: #25d366; }
.noc-share-btn--email { background: #4a5568; }
.noc-share-icon {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.noc-share-text {
  font-size: 12px;
}
@media (max-width: 480px) {
  .noc-share-text { display: none; }
  .noc-share-btn { padding: 10px 12px; }
}

.noc-sidebar-newsletter-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

/* ============================================================
   MOBILE – professional responsive polish (v1.6)
   Prevents horizontal scroll, tightens spacing, stacks cleanly
   ============================================================ */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.site,
#page,
.site-content,
.site-footer {
  max-width: 100%;
  overflow-x: hidden;
}
.site-header {
  max-width: 100%;
  overflow: visible;
  position: relative;
  z-index: 100;
}
.header-main {
  overflow: visible;
  position: relative;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

img,
video,
iframe,
embed,
object,
table {
  max-width: 100%;
}

iframe.noc-pdf-frame {
  max-width: 100%;
}

/* —— Header mobile —— */
@media (max-width: 900px) {
  .header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }
  .site-branding {
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-branding a {
    font-size: 22px;
  }
  .site-branding img {
    max-height: 40px;
    width: auto;
  }
  .noc-mega-wrap {
    order: 0;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .header-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .main-nav {
    flex: 1 1 100%;
    order: 10;
  }
}

@media (max-width: 768px) {
  .header-top {
    font-size: 11px;
  }
  .header-top .container {
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: space-between;
  }
  .main-nav {
    display: none;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 8px 0 12px;
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav.is-open ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .main-nav.is-open li {
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav.is-open a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
  }
  .noc-mega-panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    transform: none !important;
    z-index: 300;
  }
  .noc-mega-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 4px;
  }
  .noc-mega-toggle {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .noc-mega-grid {
    grid-template-columns: 1fr !important;
  }
  .header-actions .btn-primary {
    padding: 8px 10px;
  }
  .site-branding a {
    font-size: 18px;
  }
}

/* —— Content grids —— */
@media (max-width: 960px) {
  .main-content {
    display: block !important;
  }
  .sidebar {
    margin-top: 40px;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .editions-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .hero-grid,
  .featured-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 400px) {
  .editions-grid {
    grid-template-columns: 1fr !important;
  }
}

/* —— Cards / text —— */
.post-card,
.edition-card,
.article-full {
  max-width: 100%;
}
.post-card h2,
.post-card h3,
.edition-card h3 {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.single-header h1 {
  font-size: clamp(22px, 6vw, 36px);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.entry-content,
.single-content {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.entry-content img,
.single-content img {
  height: auto !important;
}
.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* —— Share —— */
@media (max-width: 560px) {
  .noc-share {
    flex-direction: column;
    align-items: flex-start;
  }
  .noc-share-buttons {
    width: 100%;
  }
  .noc-share-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* —— Subscriptions page —— */
@media (max-width: 720px) {
  .noc-subs-wrap {
    padding: 28px 12px 48px !important;
  }
  .noc-plan {
    flex-direction: column !important;
  }
  .noc-plan-left {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .noc-plan-right {
    padding: 24px 20px !important;
  }
  .noc-subs-hero h1 {
    font-size: 22px !important;
  }
  .noc-steps-grid {
    grid-template-columns: 1fr !important;
  }
}

/* —— Author —— */
@media (max-width: 600px) {
  .author-profile-card {
    flex-direction: column !important;
    text-align: center;
    padding: 24px 16px !important;
  }
  .author-box {
    flex-direction: column !important;
    text-align: center;
  }
}

/* —— WooCommerce mobile —— */
@media (max-width: 768px) {
  body.woocommerce-checkout .col2-set,
  body.woocommerce-checkout form.woocommerce-checkout {
    display: block !important;
  }
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
  }
  .woocommerce table.shop_table {
    display: block;
    overflow-x: auto;
  }
  .woocommerce-cart-form,
  .cart-collaterals {
    max-width: 100%;
  }
}

/* —— PDF viewer —— */
@media (max-width: 768px) {
  .noc-pdf-frame {
    height: 70vh !important;
    min-height: 360px;
  }
  .edition-single-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
  }
  .edition-single-cover {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* —— Footer —— */
@media (max-width: 700px) {
  .footer-widgets,
  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .site-footer {
    text-align: center;
  }
}

/* —— Paywall —— */
.nineoclock-paywall {
  max-width: 100%;
  padding: 28px 16px !important;
  box-sizing: border-box;
}
.nineoclock-paywall .btn-subscribe {
  display: inline-block;
  max-width: 100%;
}

/* —— Widgets —— */
.widget {
  max-width: 100%;
  overflow: hidden;
}
.widget img {
  max-width: 100%;
  height: auto;
}

/* —— Safe area (notched phones) —— */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* Touch targets */
@media (max-width: 768px) {
  .main-nav a,
  .noc-mega-grid a,
  .btn,
  .noc-share-btn {
    min-height: 44px;
    align-items: center;
  }
}

/* ============================================================
   SECTIONS MEGA MENU – desktop clean (v1.6.1)
   ============================================================ */
.noc-mega-wrap {
  position: relative;
  z-index: 150;
  flex-shrink: 0;
}
.noc-mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a365d;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.noc-mega-toggle:hover,
.noc-mega-toggle.is-open {
  border-color: #1a365d;
  background: #f7fafc;
  box-shadow: 0 1px 3px rgba(26, 54, 93, 0.08);
}
.noc-mega-toggle-icon {
  display: flex;
  color: #1a365d;
}
.noc-mega-chevron {
  font-size: 10px;
  color: #718096;
  transition: transform 0.2s ease;
}
.noc-mega-toggle.is-open .noc-mega-chevron {
  transform: rotate(180deg);
}

.noc-mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  width: 640px;
  max-width: min(640px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.03);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.noc-mega-panel.is-open,
.noc-mega-panel.is-visible,
.noc-mega-wrap.is-open .noc-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  display: block !important;
}
/* Don't rely only on [hidden] – JS toggles class */
.noc-mega-panel[hidden]:not(.is-open):not(.is-visible) {
  display: none !important;
}
.noc-mega-panel.is-open[hidden],
.noc-mega-panel.is-visible[hidden] {
  display: block !important;
  hidden: false;
}

.noc-mega-panel-inner {
  padding: 18px 20px 20px;
}
.noc-mega-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #718096;
  margin: 0 0 14px;
  padding: 0 4px;
}
.noc-mega-grid {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 8px;
}
.noc-mega-grid > li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.noc-mega-grid a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px !important;
  border-radius: 8px;
  color: #1a202c !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  line-height: 1.3;
  transition: background 0.12s ease;
}
.noc-mega-grid a:hover {
  background: #edf2f7 !important;
  color: #1a365d !important;
}
.noc-mega-cat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.noc-mega-empty {
  margin: 0;
  padding: 12px;
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .noc-mega-panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 120px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 70vh;
    overflow-y: auto;
  }
  .noc-mega-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 420px) {
  .noc-mega-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.noc-gallery-heading {
  font-size: 20px;
  margin: 36px 0 16px;
  font-family: var(--font-sans);
}
.noc-gallery {
  display: grid;
  gap: 10px;
  margin: 0 0 32px;
}
.noc-gallery[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.noc-gallery[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.noc-gallery[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) {
  .noc-gallery[data-columns="3"],
  .noc-gallery[data-columns="4"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .noc-gallery { grid-template-columns: 1fr !important; }
}
.noc-gallery-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f7;
}
.noc-gallery-link {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.noc-gallery-img,
.noc-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.noc-gallery-link:hover img {
  transform: scale(1.04);
}
.noc-gallery-item figcaption {
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 6px 8px;
}

/* Native WP gallery */
.gallery,
.noc-wp-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 !important;
}
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr) !important; }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr) !important; }
.gallery .gallery-item {
  margin: 0 !important;
  width: 100% !important;
}
.gallery .gallery-icon img {
  border: none !important;
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* Lightbox */
.noc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.noc-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.noc-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.noc-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  max-width: 90%;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.noc-lightbox-close,
.noc-lightbox-prev,
.noc-lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.noc-lightbox-close { top: 16px; right: 16px; }
.noc-lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.noc-lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.noc-lightbox-close:hover,
.noc-lightbox-prev:hover,
.noc-lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.noc-share-btn--copy {
  background: #2d3748;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.noc-share-btn--telegram { background: #0088cc; }
.noc-share-btn--copy.is-copied {
  background: #276749;
}

/* ============================================================
   READER TOOLBAR
   ============================================================ */
.noc-reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 20px;
  padding: 10px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.noc-reader-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.noc-reader-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-right: 4px;
}
.noc-reader-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s;
}
.noc-reader-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.noc-bookmark-btn.is-saved {
  background: #fef3c7;
  border-color: #f6e05e;
  color: #744210;
}
html.noc-dark .noc-bookmark-btn.is-saved {
  background: #3d3419;
  border-color: #b7791f;
  color: #f6e05e;
}

/* Font size on article content */
html[data-noc-font="-1"] .single-content,
html[data-noc-font="-1"] .entry-content {
  font-size: 0.925rem;
}
html[data-noc-font="1"] .single-content,
html[data-noc-font="1"] .entry-content {
  font-size: 1.125rem;
}
html[data-noc-font="2"] .single-content,
html[data-noc-font="2"] .entry-content {
  font-size: 1.25rem;
}

/* ============================================================
   DARK MODE – full site overrides (menu, sections, cards, etc.)
   ============================================================ */
html.noc-dark {
  color-scheme: dark;
}
html.noc-dark body {
  --color-primary: #90cdf4;
  --color-accent: #fc8181;
  --color-text: #e8eef5;
  --color-text-muted: #a0aec0;
  --color-bg: #0f1419;
  --color-bg-alt: #1a202c;
  --color-border: #2d3748;
  --color-success: #68d391;
  background: #0f1419 !important;
  color: #e8eef5 !important;
}

/* Surfaces */
html.noc-dark .site-header,
html.noc-dark .header-main,
html.noc-dark .main-nav.is-open,
html.noc-dark .main-nav.is-open ul {
  background: #1a202c !important;
  border-color: #2d3748 !important;
}
html.noc-dark .header-top {
  background: #0d1117 !important;
  color: #a0aec0 !important;
}
html.noc-dark .header-top a {
  color: #cbd5e0 !important;
}
html.noc-dark .header-top a:hover {
  color: #fff !important;
}

/* Logo text fallback */
html.noc-dark .site-branding a:not(.custom-logo-link) {
  color: #f7fafc !important;
}

/* Main nav */
html.noc-dark .main-nav a {
  color: #e2e8f0 !important;
}
html.noc-dark .main-nav a:hover,
html.noc-dark .main-nav .current-menu-item > a {
  background: #2d3748 !important;
  color: #fc8181 !important;
}

/* Sections mega menu */
html.noc-dark .noc-mega-toggle {
  color: #e2e8f0 !important;
  border-color: #4a5568 !important;
  background: transparent !important;
}
html.noc-dark .noc-mega-toggle:hover,
html.noc-dark .noc-mega-toggle.is-open {
  background: #2d3748 !important;
  color: #fff !important;
}
html.noc-dark .noc-mega-panel {
  background: #1a202c !important;
  border-color: #2d3748 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
}
html.noc-dark .noc-mega-title {
  color: #a0aec0 !important;
}
html.noc-dark .noc-mega-grid a,
html.noc-dark .noc-mega-grid .noc-mega-cat-name {
  color: #e2e8f0 !important;
}
html.noc-dark .noc-mega-grid a:hover {
  background: #2d3748 !important;
  color: #90cdf4 !important;
}
html.noc-dark .noc-mega-cat-count {
  color: #718096 !important;
}
html.noc-dark .noc-mega-empty {
  color: #a0aec0 !important;
}

/* Buttons */
html.noc-dark .btn-outline {
  border-color: #90cdf4 !important;
  color: #90cdf4 !important;
  background: transparent !important;
}
html.noc-dark .btn-outline:hover {
  background: #2d3748 !important;
  color: #fff !important;
}
html.noc-dark .btn-primary {
  background: #c53030 !important;
  color: #fff !important;
  border-color: #c53030 !important;
}

/* Section headers */
html.noc-dark .section-header h2,
html.noc-dark .section-header h1,
html.noc-dark .page-header h1,
html.noc-dark h1, html.noc-dark h2, html.noc-dark h3, html.noc-dark h4 {
  color: #f7fafc !important;
}
html.noc-dark .section-header a {
  color: #90cdf4 !important;
}

/* Hero */
html.noc-dark .hero-section,
html.noc-dark .hero-main,
html.noc-dark .hero-side-item {
  background: transparent;
}
html.noc-dark .hero-side-item h3 a,
html.noc-dark .hero-content h2 a {
  color: #f7fafc !important;
}
html.noc-dark .hero-side-item h3 a:hover,
html.noc-dark .hero-content h2 a:hover {
  color: #fc8181 !important;
}
html.noc-dark .hero-side-item .meta,
html.noc-dark .hero-content .meta {
  color: #a0aec0 !important;
}

/* Cards */
html.noc-dark .post-card,
html.noc-dark .widget,
html.noc-dark .noc-plan,
html.noc-dark .author-box,
html.noc-dark .ad-zone,
html.noc-dark .edition-card {
  background: #1a202c !important;
  border-color: #2d3748 !important;
  color: #e2e8f0 !important;
}
html.noc-dark .post-card h3 a,
html.noc-dark .edition-body h3 a {
  color: #f7fafc !important;
}
html.noc-dark .post-card h3 a:hover {
  color: #fc8181 !important;
}
html.noc-dark .post-card .excerpt,
html.noc-dark .post-card .meta,
html.noc-dark .widget-title {
  color: #a0aec0 !important;
}
html.noc-dark .widget a {
  color: #e2e8f0 !important;
}
html.noc-dark .widget a:hover {
  color: #90cdf4 !important;
}

/* List cards – always readable (not only on hover) */
html.noc-dark .noc-list-feed {
  background: transparent !important;
}
html.noc-dark .noc-list-card {
  border-bottom-color: #2d3748 !important;
  background: transparent !important;
}
html.noc-dark .noc-list-card:hover {
  background: #1a202c !important;
}
html.noc-dark .noc-list-card-title a {
  color: #f1f5f9 !important;
}
html.noc-dark .noc-list-card-title a:hover {
  color: #fc8181 !important;
}
html.noc-dark .noc-list-card-cat {
  color: #fc8181 !important;
}
html.noc-dark .noc-list-card-comments {
  color: #718096 !important;
}

/* Sidebar widgets text */
html.noc-dark .sidebar,
html.noc-dark .sidebar .widget,
html.noc-dark .sidebar li,
html.noc-dark .sidebar p {
  color: #cbd5e0 !important;
}
html.noc-dark .sidebar .widget-title {
  color: #f7fafc !important;
  border-color: #2d3748 !important;
}

/* User dropdown */
html.noc-dark .noc-user-menu-panel {
  background: #1a202c !important;
  border-color: #2d3748 !important;
}
html.noc-dark .noc-user-menu-list a {
  color: #e2e8f0 !important;
}
html.noc-dark .noc-user-menu-list a:hover {
  background: #2d3748 !important;
  color: #fff !important;
}

/* Forms */
html.noc-dark input,
html.noc-dark textarea,
html.noc-dark select {
  background: #1a202c !important;
  border-color: #2d3748 !important;
  color: #e2e8f0 !important;
}
html.noc-dark ::placeholder {
  color: #718096 !important;
}

/* Footer already dark – keep links readable */
html.noc-dark .site-footer a {
  color: rgba(255,255,255,0.75) !important;
}
html.noc-dark .site-footer a:hover {
  color: #fff !important;
}

/* Mobile menu */
html.noc-dark .mobile-menu-toggle {
  color: #e2e8f0 !important;
  border-color: #4a5568 !important;
}

/* Dark toggle always visible on dark header-top */
html.noc-dark .noc-dark-toggle {
  border-color: rgba(255,255,255,0.35) !important;
  background: rgba(255,255,255,0.1) !important;
}

/* Content area single */
html.noc-dark .entry-content,
html.noc-dark .entry-title,
html.noc-dark article {
  color: #e2e8f0 !important;
}
html.noc-dark .entry-title {
  color: #f7fafc !important;
}

.noc-comments-notice {
  margin: 32px 0;
  padding: 16px 18px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 14px;
}
.noc-comments-wrap {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   PRINT – clean article only
   ============================================================ */
@media print {
  .site-header,
  .header-top,
  .header-actions,
  .main-nav,
  .noc-mega-wrap,
  .sidebar,
  .widget,
  .ad-zone,
  .noc-share,
  .noc-reader-toolbar,
  .noc-comments-wrap,
  .noc-comments-notice,
  .site-footer,
  .mobile-menu-toggle,
  .posts-grid,
  .section-header,
  .author-box,
  .nineoclock-paywall,
  .btn,
  .noc-lightbox {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }
  .container,
  .layout-full,
  .content-area,
  .main-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  .single-header h1 {
    font-size: 22pt;
    color: #000 !important;
  }
  .single-content a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444;
  }
  .single-featured img {
    max-width: 100%;
  }
  a {
    color: #000 !important;
    text-decoration: underline;
  }
}

/* ============================================================
   USER MENU (submenu)
   ============================================================ */
.header-top .top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.noc-user-menu {
  position: relative;
  z-index: 160;
}
.noc-user-menu-login {
  color: inherit;
  font-weight: 600;
  font-size: 13px;
}
.noc-user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  max-width: 220px;
}
.noc-user-menu-toggle:hover,
.noc-user-menu.is-open .noc-user-menu-toggle {
  background: rgba(255,255,255,0.18);
}
.noc-user-avatar img {
  border-radius: 50%;
  display: block;
  width: 28px;
  height: 28px;
}
.noc-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.noc-user-chevron {
  font-size: 10px;
  opacity: 0.8;
}
.noc-user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  background: #fff;
  color: #1a202c;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  z-index: 200;
}
.noc-user-menu-panel[hidden] {
  display: none !important;
}
.noc-user-menu.is-open .noc-user-menu-panel {
  display: block !important;
}
.noc-user-menu-head {
  padding: 14px 16px;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}
.noc-user-menu-head a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1a202c !important;
  text-decoration: none !important;
}
.noc-user-menu-head img {
  border-radius: 50%;
}
.noc-user-menu-head strong {
  display: block;
  font-size: 14px;
}
.noc-user-menu-head small {
  display: block;
  font-size: 12px;
  color: #718096;
  font-weight: 400;
}
.noc-user-menu-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.noc-user-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #2d3748 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
}
.noc-user-menu-list a:hover {
  background: #edf2f7;
  color: #1a365d !important;
}
.noc-user-menu-icon {
  width: 20px;
  text-align: center;
  opacity: 0.85;
}
.noc-user-menu-logout {
  border-top: 1px solid #e2e8f0;
  margin-top: 4px;
  padding-top: 4px;
}
.noc-user-menu-logout a {
  color: #c53030 !important;
}

/* Hub + saved pages */
.page-header-user {
  margin-bottom: 28px;
}
.page-header-user .page-lead {
  color: var(--color-text-muted);
  margin: 0;
}
.noc-user-gate {
  padding: 32px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  text-align: center;
}
.noc-hub-status {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.noc-hub-status--active {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
}
.noc-hub-status--none {
  background: #fffaf0;
  border: 1px solid #fbd38d;
  color: #744210;
}
html.noc-dark .noc-hub-status--active {
  background: #1c2e1c;
  border-color: #276749;
  color: #9ae6b4;
}
html.noc-dark .noc-hub-status--none {
  background: #2d2618;
  border-color: #744210;
  color: #fbd38d;
}
.noc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.noc-hub-card {
  display: block;
  padding: 22px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.noc-hub-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.1);
  transform: translateY(-2px);
}
.noc-hub-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}
.noc-hub-card h2 {
  font-family: var(--font-sans);
  font-size: 16px;
  margin: 0 0 6px;
}
.noc-hub-card p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.noc-hub-card--muted {
  opacity: 0.85;
}

html.noc-dark .noc-user-menu-panel {
  background: #1a202c;
  border-color: #2d3748;
  color: #e2e8f0;
}
html.noc-dark .noc-user-menu-head {
  background: #0f1419;
  border-color: #2d3748;
}
html.noc-dark .noc-user-menu-head a,
html.noc-dark .noc-user-menu-list a {
  color: #e2e8f0 !important;
}
html.noc-dark .noc-user-menu-list a:hover {
  background: #2d3748;
}

/* Ensure reader controls are always clickable */
.noc-reader-toolbar,
.noc-reader-btn,
.noc-user-menu-toggle,
.noc-mega-toggle {
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}
.noc-user-menu {
  z-index: 160;
  pointer-events: auto !important;
}
.noc-user-menu-panel {
  pointer-events: auto !important;
}
.header-top {
  position: relative;
  z-index: 120;
  overflow: visible !important;
}

/* ============================================================
   WEEKLY BRIEF (sidebar)
   ============================================================ */
.noc-weekly-brief .noc-brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.noc-brief-list li {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}
.noc-brief-list li:last-child {
  border-bottom: none;
}
.noc-brief-list a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  text-decoration: none !important;
  color: inherit !important;
}
.noc-brief-list a:hover .noc-brief-headline {
  color: var(--color-accent);
}
.noc-brief-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
html.noc-dark .noc-brief-num {
  background: #2b6cb0;
}
.noc-brief-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.noc-brief-headline {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}
.noc-brief-date {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ============================================================
   CHECKOUT – 1250px full width, two balanced columns
   Supports classic shortcode + WooCommerce Blocks checkout
   ============================================================ */
body.woocommerce-checkout .site-content > .container,
body.woocommerce-cart .site-content > .container,
body.woocommerce-account .site-content > .container,
body.is-checkout .site-content > .container {
  max-width: 1250px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

body.woocommerce-checkout .layout-full--woo,
body.woocommerce-checkout .content-area--woo,
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.is-checkout .layout-full--woo {
  max-width: 1250px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Classic checkout: form + order review */
@media (min-width: 992px) {
  body.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px 48px;
    align-items: start;
    max-width: 100%;
  }
  body.woocommerce-checkout #customer_details {
    width: 100% !important;
    float: none !important;
  }
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
  }
  body.woocommerce-checkout #order_review {
    position: sticky;
    top: 24px;
  }
  body.woocommerce-checkout .col2-set {
    width: 100% !important;
  }
  body.woocommerce-checkout .col2-set .col-1,
  body.woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
  }
}

/* WooCommerce Blocks checkout (Contact info + Order summary) */
@media (min-width: 992px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout,
  body.woocommerce-checkout .wc-block-checkout {
    max-width: 100% !important;
  }
  body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 40px 48px !important;
    align-items: start;
  }
  body.woocommerce-checkout .wc-block-components-main,
  body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block > .wc-block-checkout__form,
  body.woocommerce-checkout .wc-block-checkout__main {
    width: 100% !important;
    max-width: none !important;
  }
  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Inputs fill column */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-input-wrapper,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout .form-row input,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox input {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout h1 {
  margin-bottom: 28px;
}

/* Order summary card – use full sidebar column */
body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout #order_review {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  body.woocommerce-checkout form.checkout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   WOO PAGE LAYOUT (checkout/cart/account) – forced full width
   ============================================================ */
.noc-woo-page {
  width: 100%;
  max-width: 100%;
  padding: 8px 0 48px;
  background: var(--color-bg);
}
.noc-woo-page-inner {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.noc-woo-article {
  max-width: 100% !important;
  width: 100% !important;
}
.noc-woo-title h1 {
  margin-bottom: 24px;
}
.noc-woo-content {
  max-width: 100% !important;
  width: 100% !important;
}

/* Kill sidebar + grid on checkout even if template leaks it */
body.woocommerce-checkout .main-content,
body.woocommerce-cart .main-content,
body.woocommerce-account .main-content {
  display: block !important;
  grid-template-columns: 1fr !important;
  max-width: 1250px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.woocommerce-checkout #secondary,
body.woocommerce-cart #secondary,
body.woocommerce-account #secondary,
body.woocommerce-checkout aside.sidebar,
body.woocommerce-cart aside.sidebar,
body.woocommerce-account aside.sidebar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}
body.woocommerce-checkout #primary,
body.woocommerce-checkout .content-area,
body.woocommerce-cart #primary,
body.woocommerce-account #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* Blocks checkout: stretch both columns across 1250px */
@media (min-width: 800px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout,
  body.woocommerce-checkout .wc-block-checkout,
  body.woocommerce-checkout .wp-block-group {
    max-width: 100% !important;
  }
  /* Common WC blocks sidebar layout */
  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wp-block-columns.is-layout-flex,
  body.woocommerce-checkout .wc-block-checkout__main + .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wp-block-woocommerce-checkout-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.woocommerce-checkout .wc-block-components-main,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wp-block-column:first-child {
    flex: 1 1 58% !important;
    max-width: 58% !important;
    width: 58% !important;
  }
  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wp-block-column:last-child {
    flex: 1 1 38% !important;
    max-width: 38% !important;
    width: 38% !important;
  }
}

/* Order summary should not be a tiny card floating left */
body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  width: 100% !important;
  max-width: 100% !important;
}

/* ============================================================
   CHECKOUT Blocks – force full 1250px, no dead space (v1.12.3)
   ============================================================ */
body.woocommerce-checkout .noc-woo-page-inner,
body.woocommerce-cart .noc-woo-page-inner,
body.woocommerce-account .noc-woo-page-inner {
  max-width: 1250px !important;
  width: 100% !important;
}

body.woocommerce-checkout .noc-woo-content,
body.woocommerce-checkout .noc-woo-content > *,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignfull,
body.woocommerce-checkout .wc-block-checkout {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Override WC Blocks flex with a real 2-column grid */
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout.is-large {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) !important;
  gap: 48px !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: start !important;
  flex-wrap: nowrap !important;
}

body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  min-width: 0 !important;
}

body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  min-width: 0 !important;
}

/* Form fields full width of left column */
body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox,
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-address-form,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-checkout__form {
  width: 100% !important;
  max-width: 100% !important;
}

/* Order summary fills right column */
body.woocommerce-checkout .wc-block-components-sidebar > *,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .wc-block-components-totals-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Undo previous flex % rules that fought WC */
@media (min-width: 800px) {
  body.woocommerce-checkout .wc-block-components-main,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wp-block-column:first-child {
    flex: unset !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wp-block-column:last-child {
    flex: unset !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout.is-large {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-checkout .wc-block-components-main,
  body.woocommerce-checkout .wc-block-components-sidebar {
    grid-column: 1 !important;
  }
}

/* ============================================================
   CHECKOUT final fix 1.12.4 – fill columns, no dead middle
   ============================================================ */
body.woocommerce-checkout .noc-woo-page-inner {
  max-width: 1250px !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .noc-woo-content,
body.woocommerce-checkout .noc-woo-content > * {
  width: 100% !important;
  max-width: 100% !important;
}

/* 2 columns: ~62% form | ~38% summary, tight gap */
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
body.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) !important;
  column-gap: 32px !important;
  row-gap: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wc-block-components-main.wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Every form step & input fills the LEFT column */
body.woocommerce-checkout .wc-block-checkout__form,
body.woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-components-checkout-step__container,
body.woocommerce-checkout .wc-block-components-checkout-step__content,
body.woocommerce-checkout .wc-block-components-address-form,
body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-combobox,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout .wc-block-components-radio-control,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .wc-block-checkout__payment-method,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Address row: first/last side by side still OK */
body.woocommerce-checkout .wc-block-components-address-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px 16px !important;
}
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input {
  width: 100% !important;
}
/* Full-width fields inside address form (country, address, etc. often span) */
body.woocommerce-checkout .wc-block-components-address-form > .wc-block-components-text-input:only-child,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-country-input,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-state-input {
  grid-column: 1 / -1 !important;
}

/* Order summary fills RIGHT column completely */
body.woocommerce-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-sidebar > div {
  width: 100% !important;
  max-width: 100% !important;
}

/* Place order button full width of left column */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout button.wc-block-components-checkout-place-order-button {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

@media (max-width: 900px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-checkout .wc-block-components-address-form {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   CUSTOM CHECKOUT – modern, fast, responsive (1.13.0)
   ============================================================ */
body.noc-custom-checkout .noc-woo-page-inner,
body.woocommerce-checkout .noc-woo-page-inner {
  max-width: 1100px !important;
}

.noc-checkout {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.noc-checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.noc-checkout-step.is-active {
  color: var(--color-primary);
}
.noc-checkout-step-sep {
  width: 28px;
  height: 2px;
  background: var(--color-border);
  border-radius: 1px;
}

.noc-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px 40px;
  align-items: start;
}

.noc-checkout-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 24px 8px;
  margin-bottom: 20px;
}
.noc-checkout-section-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-text);
}
.noc-checkout-section-desc {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.noc-checkout-summary-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 22px 16px;
  position: sticky;
  top: 88px;
}
.noc-checkout-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 4px 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Fields */
body.woocommerce-checkout .noc-checkout .form-row {
  margin-bottom: 14px;
  padding: 0;
  width: 100%;
}
body.woocommerce-checkout .noc-checkout .form-row-first,
body.woocommerce-checkout .noc-checkout .form-row-last {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}
body.woocommerce-checkout .noc-checkout .form-row-first {
  margin-right: 4%;
}
body.woocommerce-checkout .noc-checkout .form-row-wide {
  width: 100%;
  clear: both;
}
body.woocommerce-checkout .noc-checkout label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: var(--color-text);
}
body.woocommerce-checkout .noc-checkout .required {
  color: var(--color-accent);
}
body.woocommerce-checkout .noc-checkout input.input-text,
body.woocommerce-checkout .noc-checkout select,
body.woocommerce-checkout .noc-checkout textarea {
  width: 100% !important;
  max-width: 100% !important;
  height: 46px;
  padding: 10px 14px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: 15px !important;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box !important;
}
body.woocommerce-checkout .noc-checkout textarea {
  height: auto;
  min-height: 80px;
}
body.woocommerce-checkout .noc-checkout input.input-text:focus,
body.woocommerce-checkout .noc-checkout select:focus,
body.woocommerce-checkout .noc-checkout textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.12);
  outline: none;
}

/* Order table in summary */
body.woocommerce-checkout .noc-checkout-summary-card table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 12px 0;
}
body.woocommerce-checkout .noc-checkout-summary-card table.shop_table th,
body.woocommerce-checkout .noc-checkout-summary-card table.shop_table td {
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  font-size: 14px;
  background: transparent;
}
body.woocommerce-checkout .noc-checkout-summary-card table.shop_table .order-total th,
body.woocommerce-checkout .noc-checkout-summary-card table.shop_table .order-total td {
  font-size: 18px;
  font-weight: 700;
  border-bottom: none;
  padding-top: 16px;
}

/* Payment box */
body.woocommerce-checkout .noc-checkout #payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
body.woocommerce-checkout .noc-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border: none;
}
body.woocommerce-checkout .noc-checkout #payment ul.payment_methods li {
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}
body.woocommerce-checkout .noc-checkout #payment ul.payment_methods li label {
  font-weight: 600;
  cursor: pointer;
}
body.woocommerce-checkout .noc-checkout #payment div.payment_box {
  background: var(--color-bg-alt);
  border-radius: 8px;
  margin: 10px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}
body.woocommerce-checkout .noc-checkout #payment div.payment_box::before {
  display: none;
}

/* Place order */
body.woocommerce-checkout .noc-checkout #place_order,
body.woocommerce-checkout .noc-checkout button#place_order {
  width: 100% !important;
  height: 52px !important;
  border: none !important;
  border-radius: 12px !important;
  background: var(--color-accent) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s, transform 0.12s;
}
body.woocommerce-checkout .noc-checkout #place_order:hover {
  background: #9b2c2c !important;
  transform: translateY(-1px);
}

body.woocommerce-checkout .noc-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .noc-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* Hide empty payment section heading if payment is in aside */
.noc-checkout-payment-section:empty,
.noc-checkout-payment-section:not(:has(*)) {
  display: none;
}

/* Dark mode */
html.noc-dark body.woocommerce-checkout .noc-checkout input.input-text,
html.noc-dark body.woocommerce-checkout .noc-checkout select,
html.noc-dark body.woocommerce-checkout .noc-checkout #payment ul.payment_methods li {
  background: #1a202c !important;
  border-color: #2d3748 !important;
  color: #e2e8f0 !important;
}

/* Mobile */
@media (max-width: 860px) {
  .noc-checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .noc-checkout-summary-card {
    position: static;
    order: -1; /* summary first on mobile for clarity */
  }
  .noc-checkout-aside {
    order: -1;
  }
  .noc-checkout-primary {
    order: 1;
  }
  body.woocommerce-checkout .noc-checkout .form-row-first,
  body.woocommerce-checkout .noc-checkout .form-row-last {
    width: 100% !important;
    margin-right: 0 !important;
    display: block !important;
  }
  .noc-checkout-section {
    padding: 18px 16px 6px;
  }
  .noc-checkout-steps {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body.woocommerce-checkout .noc-woo-page-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  body.woocommerce-checkout .noc-checkout #place_order {
    height: 48px !important;
    font-size: 15px !important;
  }
}

/* ============================================================
   CHECKOUT full-width fix 1.13.1
   ============================================================ */
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .site-content > .container,
body.woocommerce-checkout .noc-woo-page,
body.woocommerce-checkout .noc-woo-page-inner,
body.woocommerce-checkout .content-area--woo,
body.woocommerce-checkout .noc-woo-article,
body.woocommerce-checkout .noc-woo-content,
body.woocommerce-checkout .woocommerce {
  max-width: 100% !important;
  width: 100% !important;
}

body.woocommerce-checkout .noc-woo-page-inner {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .noc-checkout {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

body.woocommerce-checkout .noc-checkout-form,
body.woocommerce-checkout form.checkout.noc-checkout-form {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

body.woocommerce-checkout .noc-checkout-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 400px) !important;
  gap: 32px 40px !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: start !important;
}

body.woocommerce-checkout .noc-checkout-primary,
body.woocommerce-checkout .noc-checkout-aside {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.woocommerce-checkout .noc-checkout-section,
body.woocommerce-checkout .noc-checkout-summary-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Name fields: flex row, not broken labels */
body.woocommerce-checkout .noc-checkout .woocommerce-billing-fields__field-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 16px !important;
  width: 100% !important;
}

body.woocommerce-checkout .noc-checkout .form-row {
  float: none !important;
  clear: none !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .noc-checkout .form-row-wide {
  width: 100% !important;
  flex: 0 0 100% !important;
}

body.woocommerce-checkout .noc-checkout .form-row-first,
body.woocommerce-checkout .noc-checkout .form-row-last {
  width: calc(50% - 8px) !important;
  flex: 0 0 calc(50% - 8px) !important;
  margin-right: 0 !important;
  display: block !important;
}

body.woocommerce-checkout .noc-checkout .form-row label {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  line-height: 1.3 !important;
}

body.woocommerce-checkout .noc-checkout .form-row .woocommerce-input-wrapper,
body.woocommerce-checkout .noc-checkout .form-row input.input-text,
body.woocommerce-checkout .noc-checkout .form-row select,
body.woocommerce-checkout .noc-checkout .form-row textarea {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* Coupon bar full width of inner container */
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .checkout_coupon {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hide page H1 duplicate space if needed */
body.woocommerce-checkout .noc-woo-title {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

@media (max-width: 900px) {
  body.woocommerce-checkout .noc-checkout-grid {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-checkout .noc-checkout .form-row-first,
  body.woocommerce-checkout .noc-checkout .form-row-last {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}

.nineoclock-paywall .paywall-benefits {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.nineoclock-paywall .paywall-benefits li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.nineoclock-paywall .paywall-benefits li:last-child {
  border-bottom: none;
}
.nineoclock-paywall .paywall-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
.nineoclock-paywall h3 {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.35;
}

/* Sidebar banners */
.noc-sidebar-banners {
  margin: 0 0 24px;
  padding: 0;
}
.noc-banner-item {
  margin: 0 0 16px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.noc-banner-item:last-child {
  margin-bottom: 0;
}
.noc-banner-link {
  display: block;
}
.noc-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

/* YouTube sidebar feed */
.noc-youtube-widget {
  margin-bottom: 24px;
}
.noc-yt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.noc-yt-item {
  margin: 0 0 14px;
}
.noc-yt-item:last-child {
  margin-bottom: 0;
}
.noc-yt-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}
.noc-yt-thumb {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #0f1419;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
}
.noc-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.noc-yt-link:hover .noc-yt-thumb img {
  transform: scale(1.04);
}
.noc-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.92);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.noc-yt-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}
.noc-yt-link:hover .noc-yt-title {
  color: var(--color-accent);
}
.noc-yt-date {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 3px;
}
.noc-yt-more {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
}
.noc-yt-more a {
  text-decoration: none;
}

/* Header Advertise button */
.noc-header-advertise {
  margin-right: 8px;
}
@media (max-width: 600px) {
  .noc-header-advertise {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Advertise with us page */
.noc-advertise-page {
  width: 100%;
}
.noc-ad-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.noc-ad-hero {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}
.noc-ad-kicker {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  margin: 0 0 12px;
}
.noc-ad-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}
.noc-ad-hero-sub {
  margin: 0;
  font-size: 18px;
  opacity: 0.92;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}
.noc-ad-stats {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}
.noc-ad-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.noc-ad-stat-n {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-sans);
}
.noc-ad-stat-l {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.noc-ad-section {
  padding: 48px 0;
}
.noc-ad-section--alt {
  background: var(--color-bg-alt);
}
.noc-ad-section h2 {
  font-size: 26px;
  margin: 0 0 20px;
}
.noc-ad-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}
.noc-ad-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.noc-ad-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
  line-height: 1.45;
}
.noc-ad-list li:last-child {
  border-bottom: none;
}
.noc-ad-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
.noc-ad-cta {
  background: #1a365d;
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.noc-ad-cta h2 {
  color: #fff;
  margin: 0 0 12px;
}
.noc-ad-cta p {
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.noc-ad-cta-btn {
  display: inline-block;
  padding: 14px 28px !important;
  font-size: 15px !important;
}
.noc-ad-cta-email {
  margin: 16px 0 0;
  font-size: 14px;
}
.noc-ad-cta-email a {
  color: #90cdf4 !important;
}
html.noc-dark .noc-ad-hero {
  background: linear-gradient(135deg, #0f1419 0%, #1a365d 100%);
}
@media (max-width: 700px) {
  .noc-ad-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .noc-ad-hero {
    padding: 40px 0 32px;
  }
  .noc-ad-section {
    padding: 36px 0;
  }
}

/* ============================================================
   FOOTER – dark Bucharest / international publication
   ============================================================ */
.site-footer.noc-footer {
  position: relative;
  background: #0a0e14;
  color: rgba(255, 255, 255, 0.78);
  padding: 0;
  margin-top: 48px;
  overflow: hidden;
  border-top: none;
}

/* Subtle Bucharest night skyline silhouette */
.noc-footer-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%231a2332' d='M0 120V80h40V50h20v30h30V40h25v40h35V55h40v25h20V30h50v50h30V45h35v35h25V60h40v20h30V35h45v45h20V50h35v30h40V25h50v55h30V40h40v40h25V55h35v25h20V70h40v50H0z'/%3E%3Cpath fill='%23121820' d='M0 120V95h60V70h35v25h50V60h40v35h55V75h45v20h60V55h50v40h40V80h35v15h70V65h45v30h50V85h40v10h80V70h55v25h40V90h60v30H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 100%;
}

.noc-footer-inner {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 28px;
}

.noc-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 40px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.noc-footer-mark {
  display: block;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.noc-footer-tagline {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin: 0 0 12px;
  max-width: 340px;
}

.noc-footer-about {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 22px;
  max-width: 360px;
}

.noc-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.noc-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.noc-social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

.noc-social-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.noc-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.noc-footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  font-family: var(--font-sans);
}

.noc-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.noc-footer-col li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}

.noc-footer-col a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.noc-footer-col a:hover {
  color: #fff !important;
}

.noc-footer-contact li {
  color: rgba(255, 255, 255, 0.6);
}

.noc-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.noc-footer-copy {
  margin: 0;
}

.noc-footer-motto {
  margin: 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.noc-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.noc-footer-menu a {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
}

.noc-footer-menu a:hover {
  color: #fff !important;
}

html.noc-dark .site-footer.noc-footer {
  background: #05070a;
}

@media (max-width: 900px) {
  .noc-footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .noc-footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .noc-footer-cols {
    grid-template-columns: 1fr;
  }
  .noc-footer-inner {
    padding-top: 40px;
  }
  .noc-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .noc-social-btn span {
    display: none;
  }
  .noc-social-btn {
    padding: 10px;
    border-radius: 50%;
  }
}

/* ============================================================
   ANNOUNCEMENTS bar – top of site
   ============================================================ */
.noc-announcements-bar {
  background: #111827;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.noc-announcements-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
  min-height: 42px;
}
.noc-ann-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
}
.noc-ann-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.noc-ann-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.noc-ann-track::-webkit-scrollbar { display: none; }
.noc-ann-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  max-width: 420px;
}
.noc-ann-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.noc-ann-type--job { background: #1d4ed8; }
.noc-ann-type--notice { background: #7c3aed; }
.noc-ann-type--event { background: #0f766e; }
.noc-ann-type--other { background: #4b5563; }
.noc-ann-title {
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
a.noc-ann-title:hover { color: #fbbf24 !important; }
.noc-ann-loc {
  color: #9ca3af;
  font-size: 12px;
}
.noc-ann-loc::before { content: "· "; }
.noc-ann-desc {
  color: #9ca3af;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.noc-ann-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 1px 6px;
  border-radius: 999px;
}
.noc-ann-toggle {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.noc-ann-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.noc-ann-panel {
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0 24px;
}
.noc-ann-panel[hidden] { display: none !important; }
.noc-ann-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.noc-ann-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
}
.noc-ann-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.noc-ann-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.noc-ann-card-loc {
  margin: 0 0 8px;
  font-size: 12px;
  color: #9ca3af;
}
.noc-ann-card-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #d1d5db;
}
.noc-ann-card-btn {
  font-size: 13px;
  font-weight: 600;
  color: #fbbf24 !important;
  text-decoration: none !important;
}

@media (max-width: 700px) {
  .noc-ann-desc { display: none; }
  .noc-ann-label span { display: none; }
  .noc-announcements-inner { gap: 8px; }
}

/* Sidebar announcements under banners */
.noc-sidebar-announcements {
  margin-bottom: 24px;
}
.noc-side-ann-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.noc-side-ann-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.noc-side-ann-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.noc-side-ann-item:first-child {
  padding-top: 4px;
}
.noc-side-ann-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.noc-side-ann-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text) !important;
  text-decoration: none !important;
  margin-bottom: 4px;
}
a.noc-side-ann-title:hover {
  color: var(--color-accent) !important;
}
.noc-side-ann-loc {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.noc-side-ann-desc {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
}
.noc-side-ann-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent) !important;
  text-decoration: none !important;
}
.noc-sidebar-announcements .noc-ann-type {
  font-size: 10px;
}
.noc-sidebar-announcements .noc-ann-badge {
  font-size: 10px;
  color: #059669;
  border-color: rgba(5, 150, 105, 0.35);
}

/* Single / archive announcements */
.noc-ann-single {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 24px 0 40px;
}
.noc-ann-single-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.noc-ann-single-kicker a {
  color: var(--color-text-muted) !important;
  text-decoration: none !important;
}
.noc-ann-single-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.noc-ann-single-title {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 10px;
  line-height: 1.2;
}
.noc-ann-single-loc {
  margin: 0 0 6px;
  color: var(--color-text-muted);
  font-size: 15px;
}
.noc-ann-single-date {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.noc-ann-single-content {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.noc-ann-single-external {
  margin-bottom: 24px;
}
.noc-ann-single-back a {
  font-weight: 600;
  text-decoration: none !important;
}
.noc-ann-badge--closed {
  color: #b91c1c !important;
  border-color: rgba(185, 28, 28, 0.35) !important;
}
.noc-ann-archive-header {
  margin-bottom: 28px;
}
.noc-ann-archive-intro {
  color: var(--color-text-muted);
  margin: 8px 0 0;
}
.noc-ann-archive-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin-bottom: 48px;
}
.noc-ann-archive-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--color-bg);
}
.noc-ann-archive-title {
  margin: 0 0 8px;
  font-size: 20px;
}
.noc-ann-archive-title a {
  color: inherit !important;
  text-decoration: none !important;
}
.noc-ann-archive-title a:hover {
  color: var(--color-accent) !important;
}
.noc-ann-archive-excerpt {
  margin: 0 0 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Header & footer logos */
.site-branding .custom-logo-link {
  display: inline-block;
  line-height: 0;
}
.site-branding .custom-logo {
  max-height: 52px;
  width: auto;
  height: auto;
  display: block;
}
.site-branding a:not(.custom-logo-link) {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary) !important;
  text-decoration: none !important;
}
.noc-footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 12px;
}
.noc-footer-logo {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
}
a.noc-footer-mark {
  display: block;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 28px;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-decoration: none !important;
}
@media (max-width: 600px) {
  .site-branding .custom-logo {
    max-height: 40px;
  }
  .noc-footer-logo {
    max-height: 40px;
  }
}

/* ============================================================
   LIST CARDS – homepage / author (light + dark)
   Style inspired by modern news list feeds
   ============================================================ */
.noc-list-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
  background: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
}

.noc-list-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  transition: background 0.15s;
}
.noc-list-card:last-child {
  border-bottom: none;
}
.noc-list-card:hover {
  background: var(--color-bg-alt);
}

.noc-list-card-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  background: var(--color-bg-alt);
}
.noc-list-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.noc-list-card-body {
  flex: 1;
  min-width: 0;
  position: relative;
  padding-right: 28px;
}

.noc-list-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent) !important;
  text-decoration: none !important;
  margin-bottom: 4px;
}

.noc-list-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  font-family: var(--font-sans);
}
.noc-list-card-title a {
  color: var(--color-text) !important;
  text-decoration: none !important;
}
.noc-list-card-title a:hover {
  color: var(--color-accent) !important;
}

.noc-list-card-comments {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Dark mode list cards */
html.noc-dark .noc-list-feed {
  background: transparent;
}
html.noc-dark .noc-list-card {
  border-bottom-color: rgba(255,255,255,0.08);
}
html.noc-dark .noc-list-card:hover {
  background: rgba(255,255,255,0.04);
}
html.noc-dark .noc-list-card-title a {
  color: #f1f5f9 !important;
}
html.noc-dark .noc-list-card-thumb {
  background: #1e293b;
}

@media (max-width: 480px) {
  .noc-list-card-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
  }
  .noc-list-card-title {
    font-size: 15px;
  }
}

/* Author profile enhanced */
.author-profile {
  margin-bottom: 36px;
}
.author-profile-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}
.author-profile-avatar img,
.author-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.author-profile-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.author-profile-name {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.2;
}
.author-profile-role {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}
.author-profile-bio {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 560px;
}
.author-profile-bio--muted {
  color: var(--color-text-muted);
  font-style: italic;
}
.author-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.author-stat-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 90px;
  text-align: center;
}
.author-stat-box strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}
.author-stat-box span {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.author-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.author-link-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--color-text) !important;
}
.author-link-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent) !important;
}
.section-count {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}

html.noc-dark .author-profile-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
html.noc-dark .author-stat-box {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

@media (max-width: 640px) {
  .author-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .author-profile-bio {
    max-width: none;
  }
  .author-profile-stats,
  .author-profile-links {
    justify-content: center;
  }
}

/* Dark mode toggle in header */
.noc-dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
  line-height: 1;
  font-size: 16px;
}
.header-top .noc-dark-toggle {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.noc-dark-toggle:hover {
  background: rgba(255,255,255,0.18);
}
.noc-dark-icon--sun { display: none; }
.noc-dark-icon--moon { display: inline; }
html.noc-dark .noc-dark-icon--moon { display: none; }
html.noc-dark .noc-dark-icon--sun { display: inline; }

/* Profile form on My Nine O'Clock */
.noc-hub-notice {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}
.noc-hub-section-title {
  font-size: 20px;
  margin: 0 0 16px;
}
.noc-hub-profile {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 28px;
}
.noc-profile-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
.noc-profile-form input.widefat,
.noc-profile-form textarea.widefat {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  background: var(--color-bg);
  color: var(--color-text);
}
.noc-profile-form p {
  margin: 0 0 16px;
}
.noc-profile-avatar-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.noc-profile-avatar-preview img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--color-border);
}
.noc-profile-avatar-fields .description {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 6px 0;
}
.noc-remove-avatar {
  font-size: 13px;
  margin-top: 8px;
}
.noc-profile-author-link a {
  font-weight: 600;
  text-decoration: none !important;
}
html.noc-dark .noc-hub-notice {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
@media (max-width: 560px) {
  .noc-profile-avatar-row {
    flex-direction: column;
  }
}

/* Ad slots – high visibility placements */
.ad-zone {
  text-align: center;
  margin: 20px 0;
  padding: 12px 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}
.ad-zone .ad-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.ad-zone img,
.noc-ad-default-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
}
.noc-ad-default-link {
  display: inline-block;
  line-height: 0;
}
.ad-zone--header {
  margin: 0 0 20px;
  border-radius: 0;
  border-left: none;
  border-right: none;
}
.ad-zone--home-hero,
.ad-zone--home-mid {
  margin: 24px 0 28px;
}
.ad-zone--before {
  margin: 16px 0 24px;
}
.ad-zone--after {
  margin: 28px 0 16px;
}
.ad-zone--footer {
  margin: 32px auto 0;
  max-width: 1250px;
}
.ad-zone--sidebar {
  margin: 0 0 20px;
  padding: 10px 8px;
}
.ad-zone--sidebar .noc-ad-default-img {
  width: 100%;
}
html.noc-dark .ad-zone {
  background: #1a202c !important;
  border-color: #2d3748 !important;
}
html.noc-dark .ad-zone .ad-label {
  color: #718096 !important;
}

/* ============================================================
   DARK / LIGHT – CONTRAST FIX (site-wide, final overrides)
   Readable text on every surface: nav, sections, articles, cards
   ============================================================ */

/* Ensure CSS variables drive most of the UI in both modes */
html.noc-dark {
  color-scheme: dark;
}

html.noc-dark,
html.noc-dark body {
  --color-primary: #7eb8e8;
  --color-accent: #f87171;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-bg: #0b0f14;
  --color-bg-alt: #151b24;
  --color-border: #2a3441;
  --color-success: #4ade80;
  background-color: #0b0f14 !important;
  color: #f1f5f9 !important;
}

/* Base text & links */
html.noc-dark p,
html.noc-dark li,
html.noc-dark span,
html.noc-dark td,
html.noc-dark th,
html.noc-dark label,
html.noc-dark .entry-content,
html.noc-dark .entry-content p,
html.noc-dark .single-content,
html.noc-dark .single-content p,
html.noc-dark article,
html.noc-dark .content-area {
  color: #e8eef5 !important;
}

html.noc-dark h1,
html.noc-dark h2,
html.noc-dark h3,
html.noc-dark h4,
html.noc-dark h5,
html.noc-dark .entry-title,
html.noc-dark .single-header h1,
html.noc-dark .section-header h2,
html.noc-dark .page-header h1,
html.noc-dark .widget-title {
  color: #f8fafc !important;
}

html.noc-dark a {
  color: #7eb8e8 !important;
}
html.noc-dark a:hover {
  color: #fca5a5 !important;
}

/* Header + navigation + Sections mega */
html.noc-dark .site-header,
html.noc-dark .header-main {
  background: #121820 !important;
  border-color: #2a3441 !important;
}
html.noc-dark .header-top {
  background: #0a0e13 !important;
  color: #94a3b8 !important;
}
html.noc-dark .header-top a,
html.noc-dark .header-top span {
  color: #cbd5e1 !important;
}
html.noc-dark .site-branding a:not(.custom-logo-link) {
  color: #f8fafc !important;
}
html.noc-dark .main-nav a,
html.noc-dark .main-nav li a {
  color: #e2e8f0 !important;
  background: transparent !important;
}
html.noc-dark .main-nav a:hover,
html.noc-dark .main-nav .current-menu-item > a,
html.noc-dark .main-nav .current_page_item > a {
  color: #fca5a5 !important;
  background: #1e293b !important;
}
html.noc-dark .main-nav.is-open,
html.noc-dark .main-nav.is-open ul {
  background: #121820 !important;
}
html.noc-dark .noc-mega-toggle {
  color: #e2e8f0 !important;
  border-color: #3d4a5c !important;
  background: transparent !important;
}
html.noc-dark .noc-mega-toggle:hover,
html.noc-dark .noc-mega-toggle.is-open {
  background: #1e293b !important;
  color: #fff !important;
}
html.noc-dark .noc-mega-panel {
  background: #151b24 !important;
  border: 1px solid #2a3441 !important;
  color: #e2e8f0 !important;
}
html.noc-dark .noc-mega-title,
html.noc-dark .noc-mega-empty {
  color: #94a3b8 !important;
}
html.noc-dark .noc-mega-grid a,
html.noc-dark .noc-mega-cat-name,
html.noc-dark .noc-mega-grid .noc-mega-cat-name {
  color: #f1f5f9 !important;
}
html.noc-dark .noc-mega-grid a:hover {
  background: #1e293b !important;
  color: #7eb8e8 !important;
}
html.noc-dark .noc-mega-cat-count {
  color: #64748b !important;
}
html.noc-dark .btn-outline {
  color: #7eb8e8 !important;
  border-color: #7eb8e8 !important;
  background: transparent !important;
}
html.noc-dark .btn-outline:hover {
  background: #1e293b !important;
  color: #fff !important;
}
html.noc-dark .btn-primary {
  background: #b91c1c !important;
  color: #fff !important;
  border-color: #b91c1c !important;
}
html.noc-dark .mobile-menu-toggle {
  color: #e2e8f0 !important;
  border-color: #3d4a5c !important;
}

/* Hero + list cards + post cards */
html.noc-dark .hero-content h2 a,
html.noc-dark .hero-side-item h3 a,
html.noc-dark .post-card h3 a,
html.noc-dark .noc-list-card-title a,
html.noc-dark .edition-body h3 a {
  color: #f8fafc !important;
}
html.noc-dark .hero-content h2 a:hover,
html.noc-dark .hero-side-item h3 a:hover,
html.noc-dark .post-card h3 a:hover,
html.noc-dark .noc-list-card-title a:hover {
  color: #fca5a5 !important;
}
html.noc-dark .hero-side-item .meta,
html.noc-dark .hero-content .meta,
html.noc-dark .post-card .meta,
html.noc-dark .post-card .excerpt,
html.noc-dark .noc-list-card-comments {
  color: #94a3b8 !important;
}
html.noc-dark .noc-list-card-cat,
html.noc-dark .cat-link,
html.noc-dark .primary-category a {
  color: #f87171 !important;
}
html.noc-dark .post-card,
html.noc-dark .edition-card,
html.noc-dark .widget,
html.noc-dark .noc-plan,
html.noc-dark .author-box,
html.noc-dark .ad-zone {
  background: #151b24 !important;
  border-color: #2a3441 !important;
  color: #e2e8f0 !important;
}
html.noc-dark .noc-list-card {
  border-bottom-color: #2a3441 !important;
  background: transparent !important;
}
html.noc-dark .noc-list-card:hover {
  background: #151b24 !important;
}
html.noc-dark .noc-list-feed {
  background: transparent !important;
}

/* Sidebar */
html.noc-dark .sidebar,
html.noc-dark .sidebar .widget,
html.noc-dark .sidebar p,
html.noc-dark .sidebar li,
html.noc-dark .sidebar a {
  color: #e2e8f0 !important;
}
html.noc-dark .sidebar .widget-title {
  color: #f8fafc !important;
  border-color: #2a3441 !important;
}
html.noc-dark .sidebar a:hover {
  color: #7eb8e8 !important;
}

/* Single article */
html.noc-dark .article-full,
html.noc-dark .content-area--article,
html.noc-dark .single-header,
html.noc-dark .single-meta,
html.noc-dark .entry-footer {
  color: #e8eef5 !important;
}
html.noc-dark .single-meta,
html.noc-dark .single-meta a,
html.noc-dark .entry-footer,
html.noc-dark .entry-footer a {
  color: #94a3b8 !important;
}
html.noc-dark .single-content a,
html.noc-dark .entry-content a {
  color: #7eb8e8 !important;
  text-decoration: underline;
}
html.noc-dark .single-content blockquote,
html.noc-dark .entry-content blockquote {
  background: #151b24 !important;
  border-left-color: #f87171 !important;
  color: #e2e8f0 !important;
}
html.noc-dark .single-content code,
html.noc-dark .entry-content code {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}
html.noc-dark .single-featured {
  background: #151b24;
}

/* Comments */
html.noc-dark .comment-list,
html.noc-dark .comment-body,
html.noc-dark .comment-author,
html.noc-dark .comment-content,
html.noc-dark .comments-area {
  color: #e2e8f0 !important;
}
html.noc-dark .comment-meta,
html.noc-dark .comment-metadata a {
  color: #94a3b8 !important;
}
html.noc-dark .noc-comments-notice,
html.noc-dark .noc-comments-wrap {
  background: #151b24 !important;
  border-color: #2a3441 !important;
  color: #e2e8f0 !important;
}

/* Forms */
html.noc-dark input,
html.noc-dark textarea,
html.noc-dark select,
html.noc-dark .input-text {
  background: #151b24 !important;
  border-color: #2a3441 !important;
  color: #f1f5f9 !important;
}
html.noc-dark input::placeholder,
html.noc-dark textarea::placeholder {
  color: #64748b !important;
}

/* User menu */
html.noc-dark .noc-user-menu-panel {
  background: #151b24 !important;
  border-color: #2a3441 !important;
}
html.noc-dark .noc-user-menu-list a,
html.noc-dark .noc-user-menu-head a {
  color: #e2e8f0 !important;
}
html.noc-dark .noc-user-menu-list a:hover {
  background: #1e293b !important;
  color: #fff !important;
}

/* Author page */
html.noc-dark .author-profile-card,
html.noc-dark .author-stat-box {
  background: #151b24 !important;
  border-color: #2a3441 !important;
}
html.noc-dark .author-profile-bio,
html.noc-dark .author-profile-name {
  color: #e8eef5 !important;
}
html.noc-dark .author-profile-bio--muted {
  color: #94a3b8 !important;
}

/* Hub / account */
html.noc-dark .noc-hub-card,
html.noc-dark .noc-hub-profile,
html.noc-dark .noc-hub-status {
  background: #151b24 !important;
  border-color: #2a3441 !important;
  color: #e2e8f0 !important;
}
html.noc-dark .noc-hub-card h2,
html.noc-dark .noc-hub-section-title {
  color: #f8fafc !important;
}
html.noc-dark .noc-hub-card p {
  color: #94a3b8 !important;
}

/* Paywall box */
html.noc-dark .noc-paywall,
html.noc-dark .premium-gate,
html.noc-dark .noc-premium-box {
  background: #151b24 !important;
  border-color: #2a3441 !important;
  color: #e2e8f0 !important;
}

/* Reader toolbar */
html.noc-dark .noc-reader-toolbar,
html.noc-dark .noc-reader-btn {
  background: #151b24 !important;
  border-color: #2a3441 !important;
  color: #e2e8f0 !important;
}

/* Pagination */
html.noc-dark .nav-links a,
html.noc-dark .page-numbers {
  color: #e2e8f0 !important;
  border-color: #2a3441 !important;
  background: #151b24 !important;
}
html.noc-dark .page-numbers.current {
  background: #b91c1c !important;
  color: #fff !important;
  border-color: #b91c1c !important;
}

/* WooCommerce surfaces */
html.noc-dark .woocommerce,
html.noc-dark .woocommerce-page,
html.noc-dark .woocommerce-message,
html.noc-dark .woocommerce-info,
html.noc-dark table.shop_table {
  color: #e2e8f0 !important;
}
html.noc-dark table.shop_table th,
html.noc-dark table.shop_table td {
  border-color: #2a3441 !important;
  color: #e2e8f0 !important;
}

/* Footer stays dark-themed; ensure contrast */
html.noc-dark .site-footer.noc-footer,
html.noc-dark .site-footer {
  background: #080b10 !important;
  color: #cbd5e1 !important;
}
html.noc-dark .site-footer a {
  color: #e2e8f0 !important;
}
html.noc-dark .site-footer a:hover {
  color: #fff !important;
}
html.noc-dark .noc-footer-mark,
html.noc-dark .noc-footer-col h4 {
  color: #f8fafc !important;
}

/* Light mode – reinforce solid contrast (no washed text) */
html:not(.noc-dark) body {
  color: #1a202c;
  background: #ffffff;
}
html:not(.noc-dark) h1,
html:not(.noc-dark) h2,
html:not(.noc-dark) h3 {
  color: #0f172a;
}
html:not(.noc-dark) .main-nav a {
  color: #1a202c;
}
html:not(.noc-dark) .noc-list-card-title a,
html:not(.noc-dark) .post-card h3 a,
html:not(.noc-dark) .hero-side-item h3 a {
  color: #0f172a;
}
html:not(.noc-dark) .entry-content,
html:not(.noc-dark) .single-content {
  color: #1e293b;
}

/* ============================================================
   HOMEPAGE MIXED LAYOUT – desktop alternating blocks
   ============================================================ */
.noc-home-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

/* Mixed 5: 2 large left + 3 small right */
.noc-mix-block--5 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}
.noc-mix-large-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.noc-mix-small-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Row of 3 equal */
.noc-mix-block--row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Cards */
.noc-mix-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.noc-mix-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.noc-mix-media {
  display: block;
  line-height: 0;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.noc-mix-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.noc-mix-card:hover .noc-mix-media img {
  transform: scale(1.03);
}
.noc-mix-card--large .noc-mix-media {
  aspect-ratio: 16 / 10;
}
.noc-mix-card--small .noc-mix-media {
  aspect-ratio: 16 / 10;
}
.noc-mix-small-col .noc-mix-card--small {
  flex-direction: row;
  align-items: stretch;
}
.noc-mix-small-col .noc-mix-card--small .noc-mix-media {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.noc-mix-body {
  padding: 12px 14px 14px;
  flex: 1;
  min-width: 0;
}
.noc-mix-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent) !important;
  text-decoration: none !important;
  margin-bottom: 4px;
}
.noc-mix-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--font-sans);
}
.noc-mix-card--large .noc-mix-title {
  font-size: 20px;
  line-height: 1.25;
}
.noc-mix-title a {
  color: var(--color-text) !important;
  text-decoration: none !important;
}
.noc-mix-title a:hover {
  color: var(--color-accent) !important;
}
.noc-mix-excerpt {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.noc-mix-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Hero side thumbs */
.hero-side-thumb {
  display: block;
  flex-shrink: 0;
  width: 88px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
}
.hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-side-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Dark */
html.noc-dark .noc-mix-card {
  background: #151b24 !important;
  border-color: #2a3441 !important;
}
html.noc-dark .noc-mix-title a {
  color: #f8fafc !important;
}
html.noc-dark .noc-mix-excerpt,
html.noc-dark .noc-mix-meta {
  color: #94a3b8 !important;
}
html.noc-dark .noc-mix-cat {
  color: #f87171 !important;
}

/* Tablet */
@media (max-width: 960px) {
  .noc-mix-block--5 {
    grid-template-columns: 1fr 1fr;
  }
  .noc-mix-block--row3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile – single column, readable, no tiny cards */
@media (max-width: 640px) {
  .noc-home-feed {
    gap: 16px;
  }
  .noc-mix-block--5,
  .noc-mix-block--row3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .noc-mix-large-col,
  .noc-mix-small-col {
    gap: 14px;
  }
  .noc-mix-small-col .noc-mix-card--small {
    flex-direction: column;
  }
  .noc-mix-small-col .noc-mix-card--small .noc-mix-media {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
  }
  .noc-mix-card--large .noc-mix-title,
  .noc-mix-title {
    font-size: 17px;
  }
  .noc-mix-body {
    padding: 12px;
  }
  .hero-side-item {
    flex-direction: row;
  }
  .hero-side-thumb {
    width: 72px;
    height: 54px;
  }
}


/* Automatically populated category navigation */
.noc-category-nav {
  width: 100%;
  border-top: 1px solid var(--color-border, #e5e7eb);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  background: var(--color-surface, #fff);
  position: relative;
  z-index: 30;
}
.noc-category-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
}
.noc-category-nav li { list-style: none; position: relative; margin: 0; }
.noc-category-nav > ul > li > a {
  display: block;
  padding: 12px 10px;
  color: var(--color-text, #1f2937);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.noc-category-nav li a:hover,
.noc-category-nav li.current-cat > a { color: var(--color-accent, #c53030); }
.noc-category-nav .children {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  max-height: 70vh;
  overflow: auto;
  padding: 8px 0;
  margin: 0;
  background: var(--color-surface, #fff);
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  z-index: 100;
}
.noc-category-nav li:hover > .children,
.noc-category-nav li:focus-within > .children { display: block; }
.noc-category-nav .children a {
  display: block;
  padding: 8px 14px;
  color: var(--color-text, #1f2937);
  font-size: 12px;
  text-decoration: none;
}
@media (max-width: 900px) {
  .noc-category-nav > ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .noc-category-nav > ul > li > a { padding: 11px 9px; }
  .noc-category-nav .children { position: static; box-shadow: none; border: 0; padding-left: 12px; }
  .noc-category-nav li:focus-within > .children { display: block; }
}

/* Editorial category navigation and full-width mega menus */
.noc-category-nav { position:relative; z-index:90; background:#fff; border-top:1px solid #ececec; border-bottom:1px solid #d9d9d9; }
.noc-category-nav > .noc-mega-nav { max-width:1280px; min-height:43px; margin:0 auto; padding:0 18px; display:flex; align-items:stretch; justify-content:space-between; gap:2px; list-style:none; }
.noc-mega-nav > li { position:static; display:flex; align-items:stretch; margin:0; padding:0; list-style:none; }
.noc-mega-nav a,.noc-mega-nav button { font-family:inherit; font-size:11px; font-weight:800; line-height:1.2; letter-spacing:.025em; text-transform:uppercase; color:#171717; text-decoration:none; }
.noc-mega-nav > li > .noc-category-link,.noc-sections-toggle { display:flex; align-items:center; gap:5px; padding:0 9px; border:0; background:transparent; cursor:pointer; white-space:nowrap; }
.noc-mega-nav > li > a:hover,.noc-sections-toggle:hover,.noc-mega-nav > li:hover > a { color:#c71920; }
.noc-sections-toggle { height:100%; }
.noc-sections-item { border-right:1px solid #eee; margin-right:3px!important; }
.noc-sections-panel,.noc-category-mega { display:none; position:absolute; top:100%; left:0; right:0; width:100%; background:#fff; color:#161616; border-top:1px solid #e5e5e5; box-shadow:0 12px 24px rgba(0,0,0,.18); z-index:999; }
.noc-sections-item:hover .noc-sections-panel,.noc-sections-item:focus-within .noc-sections-panel,.noc-sections-item.is-open .noc-sections-panel,.noc-category-item:hover .noc-category-mega,.noc-category-item:focus-within .noc-category-mega { display:block; }
.noc-sections-columns { max-width:1280px; margin:0 auto; padding:22px 20px 26px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:22px 28px; }
.noc-sections-group { display:flex; flex-direction:column; gap:8px; min-width:0; }
.noc-sections-group a { text-transform:none; font-size:12px; font-weight:500; letter-spacing:0; color:#4b5563; }
.noc-sections-group .noc-sections-heading { color:#c71920; font-size:12px; font-weight:900; text-transform:uppercase; padding-bottom:6px; border-bottom:1px solid #e8e8e8; }
.noc-sections-group a:hover,.noc-category-subcats a:hover { color:#c71920; }
.noc-category-mega-inner { max-width:1280px; margin:0 auto; padding:18px 20px 22px; display:flex; gap:26px; align-items:stretch; }
.noc-category-subcats { flex:0 0 170px; display:flex; flex-direction:column; gap:9px; border-right:1px solid #e8e8e8; padding-right:18px; }
.noc-category-subcats strong { font-size:11px; color:#c71920; text-transform:uppercase; margin-bottom:3px; }
.noc-category-subcats a { font-size:12px; font-weight:600; text-transform:none; letter-spacing:0; color:#424242; }
.noc-category-mega-posts { flex:1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.noc-mega-post { display:flex; flex-direction:column; gap:6px; min-width:0; color:#161616!important; text-transform:none!important; letter-spacing:0!important; font-size:12px!important; font-weight:700!important; }
.noc-mega-post img { display:block; width:100%; height:100px; object-fit:cover; }
.noc-mega-post span { line-height:1.35; }
.noc-mega-post small { font-size:10px; font-weight:400; color:#888; }
.noc-mega-post:hover span { color:#c71920; }
@media(max-width:1100px) { .noc-category-nav > .noc-mega-nav { justify-content:flex-start; overflow-x:auto; } .noc-sections-columns { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:767px) {
 .noc-category-nav > .noc-mega-nav { min-height:42px; padding:0 8px; }
 .noc-mega-nav > li > .noc-category-link,.noc-sections-toggle { padding:0 8px; font-size:10px; }
 .noc-sections-panel,.noc-category-mega { position:absolute; max-height:75vh; overflow:auto; }
 .noc-sections-columns { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:16px; }
 .noc-category-mega-inner { padding:14px; display:block; }
 .noc-category-subcats { border:0; padding:0 0 12px; flex-direction:row; flex-wrap:wrap; }
 .noc-category-mega-posts { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .noc-mega-post img { height:85px; }
}
html.noc-dark .noc-category-nav,html.noc-dark .noc-sections-panel,html.noc-dark .noc-category-mega { background:#151b24; border-color:#2a3441; }
html.noc-dark .noc-mega-nav a,html.noc-dark .noc-mega-nav button,html.noc-dark .noc-mega-post { color:#f1f5f9!important; }
html.noc-dark .noc-sections-group a,html.noc-dark .noc-category-subcats a { color:#cbd5e1; }

/* Colored special menu labels (ANUNTURI / STIRI RO) – match original site */
.noc-mega-nav .noc-label-red {
  color: #c71920 !important;
  font-weight: 900;
}
.noc-mega-nav .noc-label-blue {
  color: #1a56db !important;
  font-weight: 900;
}
.noc-mega-nav .noc-special-item > a:hover .noc-label-red {
  color: #a01218 !important;
}
.noc-mega-nav .noc-special-item > a:hover .noc-label-blue {
  color: #1e40af !important;
}
.noc-mega-nav .noc-special-item {
  flex-shrink: 0;
}
.noc-mega-nav .noc-anunturi {
  margin-right: 2px;
}
.noc-mega-nav .noc-stiri-ro {
  border-right: 1px solid #eee;
  margin-right: 4px !important;
  padding-right: 4px;
}

/* Stronger mega post cards on desktop hover */
.noc-category-mega-posts {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.noc-mega-post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: #161616 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: transform 0.15s ease;
}
.noc-mega-post img,
.noc-mega-post-placeholder {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  background: #e5e7eb;
}
.noc-mega-post span {
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noc-mega-post small {
  font-size: 11px;
  font-weight: 400;
  color: #888;
}
.noc-mega-post:hover {
  transform: translateY(-2px);
}
.noc-mega-post:hover span {
  color: #c71920;
}

/* Ensure primary menu can still be used (optional secondary items) */
.main-nav .menu-item a {
  white-space: nowrap;
}
/* Allow limited HTML-style emphasis if user pastes colored titles in WP menu */
.main-nav .menu-item a font[color="red"],
.main-nav .menu-item a font[color="red"] b {
  color: #c71920 !important;
  font-weight: 800;
}
.main-nav .menu-item a font[color="blue"],
.main-nav .menu-item a font[color="blue"] b {
  color: #1a56db !important;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .noc-category-mega-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .noc-mega-nav .noc-stiri-ro {
    border-right: 0;
    margin-right: 0 !important;
  }
  .noc-mega-post img,
  .noc-mega-post-placeholder {
    height: 90px;
  }
}

/* ========== Advertising banners (image system + widget zones) ========== */
.noc-banners,
.ad-zone {
  margin: 20px 0;
  text-align: center;
  clear: both;
}
.noc-banners .ad-label,
.ad-zone .ad-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}
.noc-banner-item {
  margin: 0 auto 12px;
  max-width: 100%;
}
.noc-banner-item:last-child {
  margin-bottom: 0;
}
.noc-banner-link {
  display: inline-block;
  line-height: 0;
}
.noc-banner-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

/* Sidebar banners – stacked, constrained width */
.noc-banners--sidebar,
.widget.noc-sidebar-banners {
  margin: 0 0 20px;
}
.noc-banners--sidebar .noc-banner-item,
.widget.noc-sidebar-banners .noc-banner-item {
  margin-bottom: 14px;
}
.noc-banners--sidebar .noc-banner-img,
.widget.noc-sidebar-banners .noc-banner-img {
  width: 100%;
  max-width: 300px;
}

/* Full-width leaderboard style (header, home, footer) */
.noc-banners--below-header,
.noc-banners--home-after-hero,
.noc-banners--home-mid,
.noc-banners--home-between,
.noc-banners--home-after-cats,
.noc-banners--footer,
.noc-banners--archive,
.ad-zone--header,
.ad-zone--home-hero,
.ad-zone--home-mid,
.ad-zone--home-between,
.ad-zone--footer,
.ad-zone--archive {
  padding: 12px 0;
  margin: 16px 0 24px;
  background: transparent;
}

/* In-article & content zones */
.noc-banners--in-article,
.noc-banners--before-content,
.noc-banners--after-content,
.noc-banners--after-related,
.ad-zone--in-article,
.ad-zone--before,
.ad-zone--after,
.ad-zone--after-related {
  margin: 28px auto;
  max-width: 728px;
  padding: 8px 0;
}
.single-content .noc-banners--in-article,
.entry-content .noc-banners--in-article {
  float: none;
  clear: both;
}

html.noc-dark .noc-banners .ad-label,
html.noc-dark .ad-zone .ad-label {
  color: #6b7280;
}

/* ========== Google News / Preferred Sources under article title ========== */
.noc-google-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 12px 0 16px;
}
.noc-google-preferred {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.noc-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #202124;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.noc-google-btn:hover {
  background: #f8f9fa;
  border-color: #c6c8cc;
  color: #202124;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.noc-google-btn--news {
  border-color: #e8eaed;
}
.noc-google-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 40%, #fbbc05 70%, #ea4335 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-family: system-ui, sans-serif;
}
.noc-google-news-icon {
  flex-shrink: 0;
  color: #4285f4;
}
/* Hide fallback preferred button when official embed has rendered children */
.noc-google-preferred:not(:empty) + .noc-google-btn--fallback {
  display: none;
}
.noc-google-preferred:has([google-add-preferred-source-btn] *) ~ .noc-google-btn--fallback,
.noc-google-follow:has(.noc-google-preferred iframe) .noc-google-btn--fallback,
.noc-google-follow:has(.noc-google-preferred > div > *) .noc-google-btn--fallback {
  display: none;
}
html.noc-dark .noc-google-btn {
  background: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
}
html.noc-dark .noc-google-btn:hover {
  background: #273549;
  border-color: #4b5563;
  color: #fff;
}
@media (max-width: 480px) {
  .noc-google-follow {
    gap: 8px;
  }
  .noc-google-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}
