/*
Theme Name: SEJ Blue
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A professional digital marketing news theme inspired by Search Engine Journal, with Sky Blue color theme. SEO optimized, fast, and fully responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sej-blue
Tags: news, magazine, seo, digital-marketing, responsive, custom-menu, featured-images, post-formats
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --sky-blue:        #0EA5E9;
  --sky-dark:        #0284C7;
  --sky-darker:      #0369A1;
  --sky-light:       #BAE6FD;
  --sky-lighter:     #E0F2FE;
  --navy:            #0C1A2E;
  --navy-light:      #1E2D45;
  --white:           #FFFFFF;
  --gray-50:         #F8FAFC;
  --gray-100:        #F1F5F9;
  --gray-200:        #E2E8F0;
  --gray-300:        #CBD5E1;
  --gray-500:        #64748B;
  --gray-600:        #475569;
  --gray-700:        #334155;
  --gray-900:        #0F172A;
  --accent-orange:   #F97316;
  --accent-green:    #10B981;
  --accent-purple:   #8B5CF6;
  --accent-red:      #EF4444;
  --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:    'Poppins', 'Inter', sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm:       4px;
  --radius-md:       8px;
  --radius-lg:       12px;
  --radius-xl:       16px;
  --shadow-sm:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:       0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:       0 10px 30px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08);
  --shadow-blue:     0 4px 20px rgba(14,165,233,.25);
  --transition:      0.2s ease;
  --max-width:       1280px;
  --content-width:   860px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sky-darker); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--sky-blue);
  padding: 1rem 1.5rem;
  background: var(--sky-lighter);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--gray-700);
  margin: 2rem 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--gray-100);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--sky-darker);
}

pre {
  background: var(--navy);
  color: var(--sky-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

pre code { background: none; padding: 0; color: inherit; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-main { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.section-lg { padding: 5rem 0; }

/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--sky-blue);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--navy);
  color: var(--gray-300);
  font-size: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--navy-light);
}

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

.top-bar-left { display: flex; align-items: center; gap: 1.5rem; }
.top-bar-right { display: flex; align-items: center; gap: 1rem; }

.top-bar a {
  color: var(--gray-300);
  font-size: 0.75rem;
  transition: color var(--transition);
}
.top-bar a:hover { color: var(--sky-blue); }

.top-bar-date { color: var(--gray-500); }

.top-bar-social { display: flex; align-items: center; gap: 0.75rem; }
.top-bar-social a {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  transition: background var(--transition);
}
.top-bar-social a:hover { background: var(--sky-blue); color: white; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--sky-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 2rem;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  text-decoration: none;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .logo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.logo-text .logo-name span { color: var(--sky-blue); }

.logo-text .logo-tagline {
  font-size: 0.65rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.875rem;
  background: var(--gray-50);
  transition: all var(--transition);
  outline: none;
}

.header-search input:focus {
  border-color: var(--sky-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

.header-search .search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}

/* Header CTA */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--sky-blue);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--sky-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(14,165,233,.35);
}

.btn-outline {
  background: transparent;
  color: var(--sky-blue);
  border: 1.5px solid var(--sky-blue);
}
.btn-outline:hover {
  background: var(--sky-blue);
  color: white;
}

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ============================================================
   NAVIGATION / MEGA MENU
   ============================================================ */
.main-nav {
  background: var(--navy);
  position: relative;
  z-index: 999;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 1.1rem;
  color: var(--gray-200);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--sky-blue);
  background: rgba(14,165,233,.08);
}

.nav-link svg { transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 680px;
  border-top: 3px solid var(--sky-blue);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

.nav-item:hover .mega-menu { display: grid; }

.mega-menu-col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky-blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.mega-menu-col a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mega-menu-col a:hover {
  color: var(--sky-blue);
  padding-left: 0.3rem;
}

.mega-menu-col a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sky-blue);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.mega-menu-col a:hover::before { opacity: 1; }

/* Mega menu featured card */
.mega-featured {
  grid-column: span 1;
  background: var(--sky-lighter);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-featured .badge {
  background: var(--sky-blue);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  width: fit-content;
}

.mega-featured h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  border: none;
  padding: 0;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.mega-featured p {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 0;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-news {
  background: var(--sky-blue);
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
}

.breaking-news .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breaking-label {
  background: white;
  color: var(--sky-blue);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker a {
  color: white;
  font-size: 0.82rem;
  font-weight: 500;
}

.ticker a:hover { text-decoration: underline; color: white; }

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

/* ============================================================
   CATEGORY BADGES
   ============================================================ */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  color: white;
  white-space: nowrap;
}

.cat-seo       { background: var(--sky-blue); }
.cat-ppc       { background: var(--accent-orange); }
.cat-social    { background: var(--accent-purple); }
.cat-content   { background: var(--accent-green); }
.cat-ai        { background: var(--navy); }
.cat-news      { background: var(--accent-red); }
.cat-marketing { background: var(--sky-darker); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: var(--gray-50);
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--gray-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

/* Hero main article */
.hero-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--navy);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.hero-main:hover { transform: translateY(-3px); }

.hero-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.4s ease;
}

.hero-main:hover .hero-main-img { transform: scale(1.03); }

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,26,46,.98) 0%, rgba(12,26,46,.6) 50%, rgba(12,26,46,.1) 100%);
}

.hero-main-content {
  position: relative;
  padding: 2rem;
  z-index: 1;
}

.hero-main-content .cat-badge { margin-bottom: 0.75rem; }

.hero-main-content h2 {
  color: white;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.hero-main-content h2 a { color: inherit; }
.hero-main-content h2 a:hover { color: var(--sky-light); }

.hero-main-content .excerpt {
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero sidebar list */
.hero-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.hero-side-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--gray-100);
}

.hero-side-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.hero-side-card img {
  width: 100px;
  height: 80px;
  object-fit: cover;
}

.hero-side-card-body {
  padding: 0.65rem 0.75rem 0.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-side-card-body h4 {
  font-size: 0.85rem;
  line-height: 1.35;
  font-weight: 700;
}

.hero-side-card-body h4 a { color: var(--gray-900); }
.hero-side-card-body h4 a:hover { color: var(--sky-blue); }

/* ============================================================
   POST META
   ============================================================ */
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.post-meta a { color: var(--gray-500); }
.post-meta a:hover { color: var(--sky-blue); }

.post-meta .author {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--gray-700);
}

.post-meta .author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-300);
}

.read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.view-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--sky-blue);
  font-weight: 500;
}

/* ============================================================
   CONTENT TABS (Latest / Popular)
   ============================================================ */
.tabs-section { padding: 2.5rem 0; background: white; }

.tabs-header {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.tab-btn:hover { color: var(--sky-blue); }
.tab-btn.active { color: var(--sky-blue); border-bottom-color: var(--sky-blue); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   POST CARDS
   ============================================================ */
/* Standard Card */
.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

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

.post-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

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

.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.post-card-body h3 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.post-card-body h3 a { color: var(--gray-900); }
.post-card-body h3 a:hover { color: var(--sky-blue); }

.post-card-body .excerpt {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Horizontal Card */
.post-card-h {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.post-card-h .post-card-img { aspect-ratio: unset; min-height: 120px; }

.post-card-h .post-card-body { padding: 1rem 1.25rem; }

/* Popular card with rank */
.popular-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.popular-card:last-child { border-bottom: none; }

.popular-rank {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--sky-light);
  line-height: 1;
  min-width: 2.5rem;
  text-align: center;
}

.popular-card h4 {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 700;
}
.popular-card h4 a { color: var(--gray-900); }
.popular-card h4 a:hover { color: var(--sky-blue); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-100);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-900);
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.1em;
  background: var(--sky-blue);
  border-radius: 2px;
}

.section-title.cat-seo::before    { background: var(--sky-blue); }
.section-title.cat-ppc::before    { background: var(--accent-orange); }
.section-title.cat-social::before { background: var(--accent-purple); }
.section-title.cat-content::before{ background: var(--accent-green); }
.section-title.cat-ai::before     { background: var(--navy); }

.section-see-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sky-blue);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.section-see-all:hover { color: var(--sky-darker); }

/* ============================================================
   FEATURED CATEGORY ROWS
   ============================================================ */
.cat-section { padding: 2.5rem 0; }
.cat-section:nth-child(even) { background: var(--gray-50); }

.cat-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.cat-section-grid .featured {
  grid-column: span 1;
}

/* ============================================================
   NEWSLETTER / CTA BANNER
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0E3A5E 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,.15) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,.1) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-copy h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.newsletter-copy h2 span { color: var(--sky-blue); }

.newsletter-copy p {
  color: var(--gray-300);
  font-size: 1rem;
  line-height: 1.65;
}

.newsletter-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.nl-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sky-blue);
  font-family: var(--font-display);
}

.nl-stat span {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }

.newsletter-form .form-row {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.8rem 1.25rem;
  border-radius: 50px;
  border: none;
  font-size: 0.95rem;
  background: rgba(255,255,255,.1);
  color: white;
  outline: none;
  border: 1.5px solid rgba(255,255,255,.2);
  transition: all var(--transition);
}

.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }

.newsletter-form input[type="email"]:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px rgba(14,165,233,.2);
}

.newsletter-form .privacy {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.newsletter-form .privacy a { color: var(--sky-light); }

/* ============================================================
   WEBINAR SECTION
   ============================================================ */
.webinars-section {
  padding: 3rem 0;
  background: white;
  border-top: 1px solid var(--gray-100);
}

.webinar-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.webinar-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.webinar-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.webinar-card:hover .webinar-card-img img { transform: scale(1.04); }

.webinar-date-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--sky-blue);
  color: white;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  text-align: center;
  line-height: 1.2;
}

.webinar-date-badge .day {
  font-size: 1.1rem;
  font-weight: 800;
  display: block;
  font-family: var(--font-display);
}

.webinar-date-badge .month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.webinar-card-body { padding: 1.25rem; }
.webinar-card-body .by { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.4rem; }
.webinar-card-body h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.webinar-card-body h3 a { color: var(--gray-900); }
.webinar-card-body h3 a:hover { color: var(--sky-blue); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

.sidebar-widget {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.widget-header {
  padding: 1rem 1.25rem;
  background: var(--sky-blue);
  color: white;
}

.widget-header h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
}

.widget-body { padding: 1.25rem; }

/* Trending widget */
.trending-list { display: flex; flex-direction: column; gap: 0; }

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }

.trending-num {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--sky-light);
  line-height: 1.3;
  min-width: 1.5rem;
  font-family: var(--font-display);
}

.trending-item h4 { font-size: 0.85rem; line-height: 1.4; }
.trending-item h4 a { color: var(--gray-800); }
.trending-item h4 a:hover { color: var(--sky-blue); }

/* Ad widget */
.ad-widget {
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  text-align: center;
  flex-direction: column;
  gap: 0.5rem;
}

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.article-header { padding: 3rem 0 2rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }

.article-header-inner { max-width: var(--content-width); }

.article-header .cat-badge { margin-bottom: 1rem; }

.article-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.article-header .deck {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.article-header .post-meta { margin-bottom: 0; }

.article-featured-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

/* Article body */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-900);
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--gray-800);
}

.article-body ul, .article-body ol {
  list-style: disc;
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}

.article-body ol { list-style: decimal; }

.article-body li { margin-bottom: 0.4rem; }

.article-body a { color: var(--sky-blue); text-decoration: underline; }
.article-body a:hover { color: var(--sky-darker); }

.article-body img { border-radius: var(--radius-md); margin: 1.5rem 0; }

.article-body .wp-caption-text {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* Table of Contents */
.toc-box {
  background: var(--sky-lighter);
  border: 1px solid var(--sky-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc-box h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky-darker);
  margin-bottom: 0.75rem;
}

.toc-box ol {
  padding-left: 1.25rem;
  list-style: decimal;
  margin: 0;
}

.toc-box li { margin-bottom: 0.4rem; }

.toc-box a {
  color: var(--sky-darker);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.toc-box a:hover { text-decoration: underline; }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: 2rem 0;
}

.share-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  transition: opacity var(--transition);
}
.share-btn:hover { opacity: 0.85; color: white; }
.share-twitter  { background: #1DA1F2; }
.share-linkedin { background: #0A66C2; }
.share-facebook { background: #1877F2; }
.share-copy     { background: var(--gray-600); }

/* Author box */
.author-box {
  display: flex;
  gap: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin: 3rem 0;
  border: 1px solid var(--gray-200);
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sky-blue);
  flex-shrink: 0;
}

.author-box-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.author-box-info .author-title {
  font-size: 0.8rem;
  color: var(--sky-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.author-box-info p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2.5rem 0;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
}

.page-btn:hover, .page-btn.current {
  background: var(--sky-blue);
  color: white;
  border-color: var(--sky-blue);
}

/* ============================================================
   404 / SEARCH RESULTS
   ============================================================ */
.not-found-section {
  text-align: center;
  padding: 5rem 1.5rem;
}

.not-found-section h1 { font-size: 6rem; color: var(--sky-blue); margin-bottom: 0; line-height: 1; }
.not-found-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.not-found-section p  { color: var(--gray-600); max-width: 400px; margin: 0 auto 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--gray-300);
  padding-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo-name {
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-display);
}
.footer-brand .logo-name span { color: var(--sky-blue); }

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--sky-blue);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--sky-blue); }

.footer-middle {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-middle h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.footer-middle p {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-nl-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
}

.footer-nl-form input {
  flex: 1;
  padding: 0.7rem 1.25rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: white;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
}
.footer-nl-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-nl-form input:focus {
  border-color: var(--sky-blue);
  background: rgba(255,255,255,.1);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--gray-500); }
.footer-bottom a { color: var(--gray-400); font-size: 0.8rem; }
.footer-bottom a:hover { color: var(--sky-blue); }

.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ============================================================
   BREADCRUMBS (SEO)
   ============================================================ */
.breadcrumbs {
  padding: 0.75rem 0;
  background: white;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8rem;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumbs li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumbs a { color: var(--sky-blue); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--gray-400); }
.breadcrumbs .current { color: var(--gray-500); }

/* ============================================================
   CATEGORY ARCHIVE
   ============================================================ */
.archive-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky-darker) 100%);
  padding: 3rem 0;
  margin-bottom: 2.5rem;
}

.archive-header h1 { color: white; margin-bottom: 0.4rem; }
.archive-header p  { color: var(--gray-300); font-size: 1rem; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-hero {
  background: var(--sky-lighter);
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.search-hero h1 { font-size: 1.75rem; margin-bottom: 1.25rem; }

.search-hero form {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.search-hero input {
  width: 100%;
  padding: 1rem 4rem 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--sky-blue);
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-blue);
}

.search-hero button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--sky-blue);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.search-hero button:hover { background: var(--sky-darker); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  :root { --max-width: 100%; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .grid-main { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar .container { flex-direction: column; gap: 0.4rem; text-align: center; }
  .header-search { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; padding: 0.5rem 0; }
  .mega-menu { position: static; box-shadow: none; border: none; display: none; grid-template-columns: 1fr; min-width: auto; }
  .nav-item.open .mega-menu { display: grid; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .cat-section-grid { grid-template-columns: 1fr; }
  .hero-sidebar { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .newsletter-form .form-row { flex-direction: column; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .post-card-h { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { grid-template-columns: 1fr; }
  .tabs-header { overflow-x: auto; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .main-nav, .top-bar, .breaking-news,
  .sidebar, .newsletter-section, .site-footer, .share-bar { display: none !important; }
  body { font-size: 12pt; color: black; }
  a { color: black; text-decoration: underline; }
  .article-body { max-width: 100%; }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter{ display: block; margin: 1.5rem auto; }
.alignwide  { margin-left: -2rem; margin-right: -2rem; }
.alignfull  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }

.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-quote { border-left: 4px solid var(--sky-blue); padding: 1rem 1.5rem; background: var(--sky-lighter); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.wp-block-separator { border: none; border-top: 2px solid var(--gray-200); margin: 2rem 0; }

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Gutenberg */
.wp-block-cover { border-radius: var(--radius-lg); overflow: hidden; }
.has-sky-blue-color { color: var(--sky-blue) !important; }
.has-sky-blue-background-color { background: var(--sky-blue) !important; }
.has-navy-color { color: var(--navy) !important; }
.has-navy-background-color { background: var(--navy) !important; }
