/*
Theme Name: Women One Network
Theme URI: https://w1network.org
Author: Master Munir Ahmed
Author URI: https://w1network.org
Description: Official custom theme for Women One Network – a modern, SEO-optimized, AdSense-ready magazine theme. Fully branded, responsive, and speed‑tuned.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
License URI: https://w1network.org/license
Text Domain: w1network
Tags: magazine, news, custom-header, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, responsive-layout, left-sidebar

Copyright: Copyright © 2025 Master Munir Ahmed / Women One Network. All rights reserved.
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors – exactly matching brand spec */
  --color-primary:    #0B1A2E;
  --color-accent:     #C2185B;
  --color-accent-hover: #E91E63;
  --color-bg:         #F8F9FA;
  --color-white:      #FFFFFF;
  --color-card:       #FFFFFF;
  --color-muted:      #6C757D;
  --color-border:     #E9ECEF;
  --color-dark-text:  #212529;

  /* Typography – Inter (system‑ui fallback) as per master prompt */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-ui:      'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 16px;          /* mobile base */
  --line-height-body: 1.7;

  /* Spacing – 8px base unit */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  48px;
  --space-2xl: 80px;

  /* Layout – matched to spec (sidebar 300px, overall max 1140px) */
  --max-width:      1140px;
  --sidebar-width:  300px;
  --content-max:    720px;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --shadow-card:    0 2px 12px rgba(11,26,46,0.08);
  --shadow-hover:   0 6px 24px rgba(11,26,46,0.14);
  --transition:     0.2s ease;
}

/* Desktop base size bumps to 18px */
@media (min-width: 768px) {
  :root {
    --font-size-base: 18px;
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-dark-text);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; max-width: 75ch; }

.entry-content p,
.entry-content li {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* AdSense containers – "Advertisement" label built in */
.ad-container {
  text-align: center;
  padding: var(--space-md) 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
  position: relative;
}
.ad-container::before {
  content: "Advertisement";
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.ad-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.category-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
}
.category-badge:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Top Bar */
.header-topbar {
  background: #060e1a;
  padding: 6px 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.header-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-date { color: rgba(255,255,255,0.5); }

.topbar-social a {
  color: rgba(255,255,255,0.5);
  margin-left: var(--space-sm);
  font-size: 0.8rem;
  transition: color var(--transition);
}
.topbar-social a:hover { color: var(--color-accent); }

/* Main Header Row */
.header-main {
  padding: 16px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.site-logo img {
  max-height: 56px;
  width: auto;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white) !important;
  line-height: 1.1;
}

.site-title a { color: inherit; }
.site-title a:hover { color: var(--color-accent) !important; }

.site-tagline {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 360px;
}

.header-search form {
  display: flex;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 25px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.header-search form:focus-within {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.15);
}

.header-search input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 16px;
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  outline: none;
}

.header-search input::placeholder { color: rgba(255,255,255,0.45); }

.header-search button {
  background: transparent;
  border: none;
  padding: 9px 14px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.header-search button:hover { color: var(--color-accent); }

/* Header Ad */
.header-ad-slot {
  flex-shrink: 0;
}

/* Primary Navigation */
.nav-wrapper {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.07);
}

#primary-navigation {
  display: flex;
  align-items: center;
}

#primary-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

#primary-menu > li > a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
  color: var(--color-white);
  background: rgba(194,24,91,0.4);
}

/* Dropdown */
#primary-menu li { position: relative; }

#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-primary);
  min-width: 200px;
  padding: var(--space-sm) 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-top: 2px solid var(--color-accent);
  z-index: 200;
  list-style: none;
}

#primary-menu li:hover > .sub-menu { display: block; }

#primary-menu .sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  transition: all var(--transition);
}

#primary-menu .sub-menu li a:hover {
  color: var(--color-white);
  background: rgba(194,24,91,0.3);
  padding-left: 24px;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  transition: all var(--transition);
  margin-left: auto;
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }

/* News Ticker */
.news-ticker {
  background: var(--color-accent);
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.ticker-label {
  background: #860d3f;
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: var(--space-md);
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-content a {
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 0 var(--space-lg);
  opacity: 0.95;
}
.ticker-content a:hover {
  opacity: 1;
  text-decoration: underline;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; padding: var(--space-xl) 0; }

.content-area-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-xl);
  align-items: start;
}

.content-area-wrap.sidebar-left {
  grid-template-columns: var(--sidebar-width) 1fr;
}

/* ============================================================
   SIDEBAR (Left, sticky)
   ============================================================ */
#secondary {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

#secondary::-webkit-scrollbar { width: 4px; }
#secondary::-webkit-scrollbar-thumb { background: var(--color-border); }

.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Widget: Search */
.widget_search .search-form {
  display: flex;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.widget_search .search-form:focus-within { border-color: var(--color-accent); }
.widget_search input[type="search"] {
  flex: 1; border: none; padding: 9px 12px;
  font-family: var(--font-ui); font-size: 0.875rem; outline: none;
}
.widget_search button {
  background: var(--color-accent); border: none; padding: 9px 14px;
  color: var(--color-white); cursor: pointer;
  transition: background var(--transition);
}
.widget_search button:hover { background: var(--color-accent-hover); }

/* Widget: Post Lists */
.sidebar-post-list { list-style: none; padding: 0; margin: 0; }
.sidebar-post-list li {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}
.sidebar-post-list li:last-child { border-bottom: none; }

.sidebar-post-thumb {
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-border);
}
.sidebar-post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.sidebar-post-info {}
.sidebar-post-title {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post-title a { color: inherit; }
.sidebar-post-title a:hover { color: var(--color-accent); }
.sidebar-post-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Widget: Categories */
.sidebar-cat-list { list-style: none; padding: 0; }
.sidebar-cat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--color-border);
  font-family: var(--font-ui); font-size: 0.85rem;
}
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a { color: var(--color-dark-text); font-weight: 500; }
.sidebar-cat-list a:hover { color: var(--color-accent); }
.sidebar-cat-list .count {
  background: var(--color-bg); color: var(--color-muted);
  font-size: 0.72rem; padding: 2px 7px; border-radius: 10px;
  border: 1px solid var(--color-border);
}

/* Widget: Tags */
.tagcloud { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.tagcloud a {
  display: inline-block; padding: 4px 10px;
  background: var(--color-bg); color: var(--color-primary);
  font-family: var(--font-ui); font-size: 0.78rem !important;
  border: 1px solid var(--color-border); border-radius: 20px;
  transition: all var(--transition);
}
.tagcloud a:hover {
  background: var(--color-accent); color: var(--color-white);
  border-color: var(--color-accent);
}

/* Widget: Social */
.sidebar-social { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.sidebar-social a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-md);
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600;
  color: var(--color-white); transition: opacity var(--transition);
}
.sidebar-social a:hover { opacity: 0.85; color: var(--color-white); }
.social-facebook { background: #1877F2; }
.social-twitter  { background: #000000; }
.social-instagram{ background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-pinterest{ background: #E60023; }
.social-youtube  { background: #FF0000; }

/* Widget: Newsletter */
.newsletter-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.newsletter-form input[type="email"] {
  padding: 10px 14px; border: 2px solid var(--color-border);
  border-radius: var(--radius-md); font-family: var(--font-ui);
  font-size: 0.875rem; outline: none; transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--color-accent); }
.newsletter-form button {
  padding: 10px; background: var(--color-accent); color: var(--color-white);
  border: none; border-radius: var(--radius-md); font-family: var(--font-ui);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--color-accent-hover); }

/* ============================================================
   POST CARDS (Homepage & Archives)
   ============================================================ */
.post-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.post-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-border);
}

.post-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-cat {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}

.post-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: var(--space-sm);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.homepage-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3557 100%);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.hero-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
}

.hero-featured img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero-featured-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.hero-featured-overlay .category-badge { margin-bottom: var(--space-sm); }

.hero-featured-overlay h2 {
  color: var(--color-white);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.2;
}

.hero-featured-overlay .post-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-sm);
}

.hero-sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-small-post {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  align-items: flex-start;
  transition: background var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-small-post:hover { background: rgba(255,255,255,0.12); }

.hero-small-post-thumb {
  width: 80px; height: 60px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
}
.hero-small-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.hero-small-post-title {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-small-post-title a { color: inherit; }

/* Category Section (Homepage blocks) */
.category-section {
  margin-bottom: var(--space-xl);
}

.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-accent);
}

.category-section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.category-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.4rem;
  background: var(--color-accent);
  border-radius: 2px;
}

.view-more-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.view-more-link:hover { gap: 8px; }
.view-more-link::after { content: "→"; }

.posts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.view-more-bar {
  margin-top: var(--space-lg);
  text-align: center;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-wrap {
  max-width: var(--content-max);
}

.post-header { margin-bottom: var(--space-lg); }

.post-header .post-cats { margin-bottom: var(--space-sm); }

.post-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--color-muted);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.post-meta-bar .author { color: var(--color-primary); font-weight: 600; }
.post-meta-bar a { color: var(--color-muted); }
.post-meta-bar a:hover { color: var(--color-accent); }

.post-featured-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  aspect-ratio: 16/9;
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* Content */
.entry-content { color: var(--color-dark-text); }

.entry-content h2 {
  font-size: 1.5rem;
  margin: var(--space-lg) 0 var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.entry-content h3 {
  font-size: 1.2rem;
  margin: var(--space-md) 0 var(--space-sm);
}

.entry-content ul, .entry-content ol {
  margin: var(--space-md) 0;
  padding-left: 1.75rem;
}

.entry-content li { margin-bottom: var(--space-sm); }

.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: rgba(194,24,91,0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-primary);
}

/* Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

.social-share-label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-white);
  transition: opacity var(--transition), transform var(--transition);
}

.share-btn:hover { opacity: 0.88; transform: translateY(-1px); color: var(--color-white); }

.share-facebook { background: #1877F2; }
.share-twitter  { background: #000; }
.share-whatsapp { background: #25D366; }
.share-pinterest{ background: #E60023; }
.share-copy     { background: var(--color-muted); }

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs .sep { color: var(--color-border); }
.breadcrumbs .current { color: var(--color-primary); font-weight: 500; }

/* Related Posts */
.related-posts {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--color-accent);
}

.related-posts-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.archive-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
}

.archive-header h1 { color: var(--color-white); margin-bottom: var(--space-sm); }
.archive-header p { color: rgba(255,255,255,0.65); font-family: var(--font-ui); font-size: 0.9rem; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}

.footer-top {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand .site-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--color-white) !important;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-md);
}

.footer-social { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  font-size: 0.9rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-accent); color: var(--color-white); }

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }

/* Footer Newsletter */
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.footer-newsletter-form input {
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-form input:focus { border-color: var(--color-accent); }
.footer-newsletter-form button {
  padding: 10px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.footer-newsletter-form button:hover { background: var(--color-accent-hover); }

/* Footer Bottom Bar */
.footer-bottom {
  padding: var(--space-md) 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copyright { color: rgba(255,255,255,0.4); }
.footer-copyright strong { color: rgba(255,255,255,0.7); }

.footer-menu { display: flex; gap: var(--space-md); list-style: none; padding: 0; flex-wrap: wrap; }
.footer-menu a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-menu a:hover { color: var(--color-accent); }

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--color-primary);
  z-index: 999;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: var(--space-lg);
}

.mobile-menu-panel.open { right: 0; }

.mobile-close-btn {
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 1.4rem;
  cursor: pointer;
  margin-bottom: var(--space-lg);
}

.mobile-nav { list-style: none; padding: 0; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a {
  display: block; padding: 12px 0;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--color-accent); }

.mobile-sub-menu { list-style: none; padding-left: var(--space-md); }
.mobile-sub-menu a { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
}

.comment-list { list-style: none; padding: 0; }

.comment { margin-bottom: var(--space-lg); }

.comment-body {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.comment-author { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-family: var(--font-ui); font-size: 0.875rem; font-weight: 700; }
.comment-meta { font-family: var(--font-ui); font-size: 0.75rem; color: var(--color-muted); margin-bottom: var(--space-sm); }

/* Comment Form */
.comment-respond { margin-top: var(--space-xl); }
.comment-reply-title { font-size: 1.2rem; margin-bottom: var(--space-md); }

.comment-form label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--color-white);
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-accent); }

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form .form-submit { margin-top: var(--space-md); }

/* No comments / moderation messages */
.no-comments {
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
}

.comment-awaiting {
  font-style: italic;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.comment-notes {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.comment-form-field {
  margin-bottom: var(--space-md);
}

/* ============================================================
   NOTHING FOUND (empty archives / search / 404)
   ============================================================ */
.nothing-found {
  padding: 60px 0;
  text-align: center;
}

.nothing-found h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.nothing-found p {
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto 16px;
}

.nothing-found-btn {
  margin-top: 16px;
  display: inline-block;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 80px 0;
}

.error-404-code {
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.error-404-desc {
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.error-404-home {
  display: inline-block;
  margin-bottom: 48px;
}

.error-404-categories h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.error-404-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* ============================================================
   SEARCH FORM (inline used in 404 / search page header)
   ============================================================ */
.search-form-inline {
  display: flex;
  max-width: 420px;
  margin: 0 auto 40px;
  gap: 8px;
}

.search-form-inline input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
}

/* Search page specific form inside archive header */
.search-page-form {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  max-width: 480px;
}

.search-page-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.search-page-input::placeholder {
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   AUTHOR ARCHIVE HEADER
   ============================================================ */
.author-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.author-avatar-img {
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  flex-shrink: 0;
}

.author-name {
  margin-bottom: 4px;
  color: var(--color-white);
}

.author-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  max-width: 560px;
}

.author-post-count {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* Category post count (below description) */
.category-post-count {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ============================================================
   HERO & HOME TWEAKS (from index.php)
   ============================================================ */
.hero-featured-placeholder {
  background: #1a3557;
  height: 100%;
}

.hero-featured-link {
  color: inherit;
}

.hero-side-cat {
  margin-bottom: 4px;
  display: inline-block;
}

.hero-small-post-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.category-title-link {
  color: inherit;
  text-decoration: none;
}

.category-title-link:hover {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   POST META LABELS (replaced Font Awesome icons)
   ============================================================ */
.meta-label {
  font-weight: 700;
  color: var(--color-muted);
  margin-right: 4px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Post tags section */
.post-tags {
  margin: 24px 0;
}

.post-tags-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 8px;
  display: inline-block;
}

.post-tags-cloud {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  vertical-align: middle;
}

/* Related loader */
#related-loader {
  text-align: center;
  padding: 20px;
  color: var(--color-muted);
}

/* ============================================================
   PAGE TEMPLATES TWEAKS
   ============================================================ */
/* Full-width page template (centered, no sidebar) */
.full-width-page {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Page entry footer spacing */
.page-entry-footer {
  margin-top: 24px;
}

/* ============================================================
   CARD PLACEHOLDER (no thumbnail)
   ============================================================ */
.no-thumb-placeholder {
  background: var(--color-border);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  opacity: 0.6;
  font-family: var(--font-ui);
}

/* ============================================================
   SIDEBAR DEFAULT COMPONENTS (trending, comments, author, etc.)
   ============================================================ */
/* Trending numbered posts (no image) */
.trending-number {
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trending-digit {
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Recent comments list */
.sidebar-comment-list {
  list-style: none;
  padding: 0;
}

.sidebar-comment-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
}

/* Author widget */
.sidebar-author-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sidebar-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-author-info { /* inner content flows */ }

.sidebar-author-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.sidebar-author-bio {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* Archives list */
.sidebar-archive-list {
  list-style: none;
  padding: 0;
}

.sidebar-archive-item {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

/* Newsletter widget description */
.newsletter-widget-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

/* ============================================================
   FOOTER SOCIAL BUTTONS (text-based)
   ============================================================ */
.footer-social .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  transition: all var(--transition);
}

.footer-social .social-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Optional network colours */
.footer-social .social-facebook:hover { background: #1877F2; }
.footer-social .social-twitter:hover  { background: #1DA1F2; }
.footer-social .social-instagram:hover{ background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-social .social-pinterest:hover{ background: #E60023; }
.footer-social .social-youtube:hover  { background: #FF0000; }
.footer-social .social-tiktok:hover   { background: #000000; }

.footer-logo-img {
  margin-bottom: 12px;
}

.newsletter-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

/* ============================================================
   HEADER SEARCH SUBMIT & MOBILE TOGGLES
   ============================================================ */
.search-submit-btn {
  background: transparent;
  border: none;
  padding: 9px 14px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.search-submit-btn:hover { color: var(--color-accent); }

.topbar-social-link {
  color: rgba(255,255,255,0.5);
  margin-left: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color var(--transition);
}
.topbar-social-link:hover { color: var(--color-accent); }

.mobile-header-toggles {
  display: none;
  align-items: center;
  gap: 8px;
}

.header-search-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .mobile-header-toggles {
    display: flex;
  }
  .header-search-toggle {
    display: block;
  }
  .header-search.visible {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .content-area-wrap,
  .content-area-wrap.sidebar-left {
    grid-template-columns: 1fr;
  }

  #secondary {
    position: static;
    max-height: none;
    overflow-y: visible;
    order: 2;
  }

  .hero-grid { grid-template-columns: 1fr; }

  #primary-menu { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 6px; }
}

@media (max-width: 768px) {
  .posts-grid-3,
  .archive-grid { grid-template-columns: 1fr 1fr; }

  .header-search { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-menu { justify-content: center; }

  .post-meta-bar { font-size: 0.75rem; gap: var(--space-sm); }
}

@media (max-width: 480px) {
  .posts-grid-3,
  .archive-grid { grid-template-columns: 1fr; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }

  .header-main .container { flex-wrap: wrap; }

  .social-share { gap: 6px; }
  .share-btn { padding: 7px 10px; font-size: 0.72rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #masthead, #secondary, .social-share, .related-posts, #colophon,
  .ad-container, .news-ticker { display: none !important; }

  body { font-size: 12pt; }
  .entry-content { max-width: 100%; }
}