/*
Theme Name: Filzra Resource
Theme URI: https://example.com/filzra-resource
Author: Codex
Description: WordPress resource membership theme with directory-style search, categories, resource cards, and pricing sections.
Version: 2.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: filzra-resource
*/

/* ========================================================================
   Design Tokens
   ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --ink: #1a1f2e;
  --ink-secondary: #4a5568;
  --muted: #718096;
  --line: #e2e8f0;
  --line-light: #edf2f7;

  /* Filzra green brand */
  --brand: #14a38b;
  --brand-light: #e6f7f4;
  --brand-lighter: #f0faf8;
  --brand-dark: #0e8a74;
  --brand-darker: #0a6e5c;

  /* Secondary blue */
  --blue: #1967d2;
  --blue-light: #e8f0fe;

  /* Accent colors */
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --green: #10b981;
  --green-light: #d1fae5;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(25,40,75,0.1);
  --shadow-xl: 0 20px 40px rgba(25,40,75,0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
}

/* ========================================================================
   Layout
   ======================================================================== */
.wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

.section h2 {
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-link {
  white-space: nowrap;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.section-link:hover {
  gap: 8px;
  color: var(--brand-dark);
}

.section-link::after {
  content: '→';
}

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(20, 163, 139, 0.35);
  transform: translateY(-1px);
}

.btn.outline-brand {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn.outline-brand:hover {
  background: var(--brand);
  color: #fff;
}

.btn.sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn.lg {
  min-height: 50px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ========================================================================
   Eyebrow / Tags / Badges
   ======================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(20, 163, 139, 0.25);
  border-radius: var(--radius-full);
  background: var(--brand-lighter);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.eyebrow::before {
  content: '●';
  font-size: 8px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.tag-green {
  background: var(--green-light);
  color: #059669;
}

.tag-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.tag-amber {
  background: var(--amber-light);
  color: #d97706;
}

.tag-red {
  background: var(--red-light);
  color: var(--red);
}

.tag-purple {
  background: var(--purple-light);
  color: var(--purple);
}

.tag-default {
  background: #f1f5f9;
  color: var(--muted);
}

/* ========================================================================
   Site Header
   ======================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--brand);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(20, 163, 139, 0.3);
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.menu a {
  padding: 8px 14px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.menu a:hover,
.menu a.active {
  color: var(--brand);
  background: var(--brand-lighter);
}

/* Dropdown menu */
.menu-dropdown {
  position: relative;
}

.menu-dropdown > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.6;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
}

.menu-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.dropdown-content a:hover {
  background: var(--brand-lighter);
  color: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ========================================================================
   Hero Section
   ======================================================================== */
.hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(20, 163, 139, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(25, 103, 210, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 163, 139, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 600px;
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 .text-brand {
  color: var(--brand);
}

.hero p {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.hero-stat {
  text-align: left;
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}

.hero-stat span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Search box */
.search-box {
  display: flex;
  margin-top: 28px;
  max-width: 560px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(20, 163, 139, 0.12), var(--shadow-md);
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 0;
  padding: 0 20px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: 0;
  background: transparent;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box button {
  border: 0;
  padding: 0 24px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.search-box button:hover {
  background: var(--brand-dark);
}

/* Hero side panel */
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-light);
  font-weight: 800;
  font-size: 15px;
}

.panel-head .tag {
  font-size: 11px;
}

.mini-list {
  display: grid;
  gap: 0;
}

.mini-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-light);
  transition: background var(--transition);
}

.mini-item:last-child {
  border-bottom: 0;
}

.mini-item:hover {
  background: var(--bg);
}

.thumb {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-light) 0%, #dff5f0 100%);
  color: var(--brand);
  font-weight: 900;
  font-size: 14px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.mini-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.mini-item span {
  color: var(--muted);
  font-size: 12px;
}

/* ========================================================================
   Category Navigation
   ======================================================================== */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--panel);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.category-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-lighter);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.category-chip.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.category-chip .cat-icon {
  font-size: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-card .cat-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-lighter);
}

.category-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.category-card .cat-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ========================================================================
   Resource Grid & Cards
   ======================================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.resource-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
}

.resource-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.resource-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.resource-art {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(20, 163, 139, 0.08) 0%, rgba(25, 103, 210, 0.06) 100%),
    var(--bg);
  color: var(--brand);
  font-size: 36px;
  font-weight: 900;
  position: relative;
  overflow: hidden;
}

.resource-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-art .art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.resource-card:hover .art-overlay {
  opacity: 1;
}

.resource-body {
  padding: 16px;
}

.resource-body .resource-cat {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--brand-lighter);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.resource-body h3 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card:hover h3 {
  color: var(--brand);
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.meta .country-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========================================================================
   Pricing Section
   ======================================================================== */
.price-band {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.price-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 163, 139, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.price-band .section-head p {
  color: #94a3b8;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.plan {
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all var(--transition-slow);
}

.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.plan.featured {
  border-color: var(--brand);
  background: rgba(20, 163, 139, 0.1);
  position: relative;
}

.plan.featured::before {
  content: '推荐';
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
}

.plan h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 800;
}

.plan-desc {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 20px;
}

.plan-price {
  margin: 20px 0;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.plan-price .currency {
  font-size: 20px;
  vertical-align: top;
  margin-right: 2px;
}

.plan-price .period {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 4px;
}

.plan ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 8px 0;
  color: #cbd5e1;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.plan .btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

.plan.featured .btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.plan.featured .btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* ========================================================================
   Footer (footer.php)
   ======================================================================== */
.site-footer {
  padding: 60px 0 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
}

.footer-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: 30px;
}

.footer-trust-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-item .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 163, 139, 0.05);
  display: grid;
  place-items: center;
  color: var(--brand);
}

.trust-item .icon-box svg {
  width: 20px;
  height: 20px;
}

.trust-item span {
  font-size: 12px;
  color: var(--muted);
}

.footer-col-links strong {
  display: block;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.footer-col-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none;
}

.footer-col-links a svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  opacity: 0.7;
  transition: transform var(--transition);
}

.footer-col-links a:hover {
  color: var(--brand);
}

.footer-col-links a:hover svg {
  transform: translateX(4px);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-right .divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.footer-bottom-right a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom-right a:hover {
  color: var(--brand);
}

.footer-lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition);
}

.footer-lang-selector:hover {
  border-color: var(--brand);
}

.footer-lang-selector svg {
  width: 16px;
  height: 16px;
}

.footer-lang-selector .globe {
  color: var(--brand);
}

.footer-lang-selector .chevron {
  color: var(--muted);
  width: 14px;
  height: 14px;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.back-to-top:hover {
  background: var(--brand);
  color: #fff;
}

.back-to-top svg {
  width: 14px;
  height: 14px;
}

/* ========================================================================
   Single Resource (Article Detail)
   ======================================================================== */
.single-resource-page {
  padding: 32px 0 60px;
}

.single-resource-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb .sep {
  font-size: 10px;
  opacity: 0.5;
}

.article-header {
  margin-bottom: 32px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow-md);
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--ink-secondary);
  font-size: 15px;
}

.article-content h2 {
  margin: 32px 0 16px;
  font-size: 22px;
  font-weight: 800;
}

.article-content h3 {
  margin: 24px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.article-content a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(20, 163, 139, 0.3);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: var(--brand);
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}

.attachment-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 12px;
}

.attachment-status .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.attachment-status .status-dot.available {
  background: var(--green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.attachment-status .status-dot.missing {
  background: var(--red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.attachment-status .status-text {
  font-size: 13px;
  color: var(--ink-secondary);
  font-weight: 600;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.related-item:hover {
  background: var(--bg);
}

.related-item .related-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-lighter);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.related-item .related-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================================================
   Archive / Taxonomy Pages
   ======================================================================== */
.archive-header {
  padding: 40px 0 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.archive-header h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}

.archive-header .archive-desc {
  color: var(--muted);
  font-size: 15px;
}

.archive-header .archive-count {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--brand-lighter);
  color: var(--brand);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-left: 10px;
}

.archive-grid {
  padding: 40px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination .current {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* ========================================================================
   Sample Library (Shortcode)
   ======================================================================== */
.sample-library {
  padding: 48px 0;
}

.sample-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.sample-stats > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: all var(--transition);
}

.sample-stats > div:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sample-stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 30px;
  font-weight: 900;
}

.sample-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.sample-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  gap: 14px;
  align-items: end;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.sample-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sample-filters select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.sample-filters select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 163, 139, 0.12);
}

.sample-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.sample-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.sample-table th,
.sample-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.sample-table th {
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
}

.sample-table tbody tr {
  transition: background var(--transition);
}

.sample-table tbody tr:hover {
  background: var(--brand-lighter);
}

.sample-table tbody tr:last-child td {
  border-bottom: 0;
}

.sample-title-link {
  color: var(--brand);
  font-weight: 700;
  transition: color var(--transition);
}

.sample-title-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.sample-pagination-wrapper {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  gap: 20px;
}

.sample-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.sample-pagination .page-numbers {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
}

.sample-pagination a.page-numbers:hover {
  border-color: #14a38b;
  color: #14a38b;
}

.sample-pagination .page-numbers.current {
  border-color: #14a38b;
  background: #14a38b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(20,163,139,0.3);
}

.sample-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #94a3b8;
  min-width: auto;
  padding: 0 4px;
}

.sample-pagination .prev.page-numbers,
.sample-pagination .next.page-numbers {
  border-radius: 50%;
  border-color: #eaeaea;
  color: #64748b;
}

.sample-pagination .prev.page-numbers:hover,
.sample-pagination .next.page-numbers:hover {
  border-color: #14a38b;
  color: #14a38b;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pagination-info .divider {
  width: 1px;
  height: 20px;
  background: #eaeaea;
}

.pagination-info .text {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

/* ========================================================================
   Post List (index.php)
   ======================================================================== */
.post-list {
  display: grid;
  gap: 20px;
  padding: 40px 0;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--ink);
}

/* ========================================================================
   Member Gate
   ======================================================================== */
.member-gate {
  padding: 48px 0;
}

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-panel {
    max-width: 480px;
  }

  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .single-resource-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sample-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .sample-filters {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
  }

  .hero-stats {
    gap: 20px;
  }

  .article-content {
    padding: 24px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(100% - 24px, 1240px);
  }

  .nav {
    min-height: 60px;
  }

  .nav-actions .btn:not(.primary) {
    display: none;
  }

  .hero {
    padding: 40px 0 30px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .search-box {
    display: grid;
  }

  .search-box button {
    min-height: 48px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .sample-stats {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .article-content {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========================================================================
   Animations
   ======================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resource-card {
  animation: fadeInUp 0.4s ease both;
}

.resource-card:nth-child(1) { animation-delay: 0s; }
.resource-card:nth-child(2) { animation-delay: 0.05s; }
.resource-card:nth-child(3) { animation-delay: 0.1s; }
.resource-card:nth-child(4) { animation-delay: 0.15s; }
.resource-card:nth-child(5) { animation-delay: 0.2s; }
.resource-card:nth-child(6) { animation-delay: 0.25s; }
.resource-card:nth-child(7) { animation-delay: 0.3s; }
.resource-card:nth-child(8) { animation-delay: 0.35s; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ========================================================================
   Services Page (page-services.php)
   ======================================================================== */
.services-hero {
  background: linear-gradient(135deg, #0b221d 0%, #1a1f2e 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 60px;
}

.services-hero .hero-title {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 20px;
}

.services-hero .hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(20, 163, 139, 0.1);
  border-color: var(--brand);
}

.service-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(20, 163, 139, 0.08);
  display: grid;
  place-items: center;
  color: var(--brand);
  margin-bottom: 24px;
}

.service-card .icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.services-cta {
  background: rgba(20, 163, 139, 0.05);
  border-radius: 24px;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 80px;
}

.services-cta .cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.services-cta h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--ink);
}

.services-cta p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 30px;
}

.services-cta .btn {
  display: inline-flex;
  padding: 14px 32px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s;
}

.services-cta .btn:hover {
  background: var(--brand-dark);
}
