/* ============================
   AeroSpace Hub — Global Styles
   ============================ */
:root {
  --bg: #0a0c14;
  --bg-card: #111520;
  --bg-dark: #070910;
  --border: #1e2535;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent2: #059669;
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* CONTAINER */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* BUTTONS */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: #3a7de0; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.logo-icon { font-size: 22px; }
.logo-accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-cta:hover { background: #3a7de0; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-mobile.open { display: flex; }
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
}

/* PAGE HERO (sub-pages) */
.page-hero {
  background: linear-gradient(135deg, #0d1220 0%, #0f172a 50%, #0a0c14 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 28px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 6px; }
.page-hero p { color: var(--text-muted); font-size: 0.95rem; }
.page-hero-premium { background: linear-gradient(135deg, #1a0d2e 0%, #0f0720 50%, #0a0c14 100%); }

/* PREMIUM BADGE */
.premium-badge {
  display: inline-block;
  background: linear-gradient(90deg, #7c3aed, #4f8ef7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* SECTIONS */
.section { padding: 72px 0; }
.section-dark { background: var(--bg-dark); }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
}
.see-all {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.see-all:hover { opacity: 0.7; }

/* POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.posts-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* POST CARD */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.post-card-body { padding: 18px; }
.post-card-tags { display: flex; gap: 8px; margin-bottom: 10px; }
.tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(79, 142, 247, 0.15);
  color: var(--accent);
}
.tag.tag-green { background: rgba(16,185,129,0.15); color: #10b981; }
.tag.tag-purple { background: rgba(124,58,237,0.15); color: #8b5cf6; }
.tag.tag-orange { background: rgba(245,158,11,0.15); color: #f59e0b; }
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--white);
}
.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}
.post-card-likes { display: flex; align-items: center; gap: 4px; }

/* VIDEOS GRID */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.videos-grid-full {
  grid-template-columns: repeat(4, 1fr);
}

/* VIDEO CARD */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #111827, #1e293b);
  overflow: hidden;
}
.video-thumb img,
.video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.2s;
}
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-body { padding: 16px; }
.video-channel {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 6px 0 4px;
}
.yt-icon {
  color: #ff0000;
  font-size: 10px;
}
.yt-icon-sm {
  color: #ff0000;
  font-size: 9px;
}
.video-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta { font-size: 12px; color: var(--text-muted); }

/* FILTERS BAR */
.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.search-bar { margin-left: auto; }
.search-bar input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--text-muted); }

/* COMPANY BAR */
.company-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.company-bar-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.company-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.company-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.company-group-sep {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.8;
}
.company-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  line-height: 1.4;
}
.company-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.company-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* EXCLUSION BAR */
.exclusion-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.exclusion-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  padding-right: 4px;
}
.excl-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  line-height: 1.4;
}
.excl-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}
.excl-btn.excluded {
  background: rgba(239,68,68,0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.pagination button.active, .pagination button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* NEWSLETTER */
.newsletter-section {
  background: linear-gradient(135deg, #0f172a, #1e1040);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-inner h2 { font-size: 1.5rem; margin-bottom: 8px; }
.newsletter-inner p { color: var(--text-muted); }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  width: 300px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* MAGAZINE */
.magazine-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.magazine-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}
.magazine-card:hover { transform: translateY(-4px); }
.magazine-cover {
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.magazine-cover-inner {
  width: 80%;
  height: 90%;
  background: linear-gradient(160deg, #1a2744, #0d1a38);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  border: 1px solid rgba(79,142,247,0.2);
}
.magazine-cover-icon { font-size: 3.5rem; }
.magazine-cover-title {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: var(--white);
}
.magazine-cover-date {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.magazine-card-body { padding: 16px; }
.magazine-card-title { font-weight: 700; margin-bottom: 8px; }
.magazine-card-desc { font-size: 13px; color: var(--text-muted); }

.magazine-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}
.paywall-overlay {
  position: relative;
  margin-top: -200px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
  background: linear-gradient(to bottom, transparent, var(--bg) 60%);
  min-height: 220px;
}
.paywall-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.paywall-box span { font-size: 2.5rem; display: block; margin-bottom: 16px; }
.paywall-box h3 { font-size: 1.2rem; margin-bottom: 10px; }
.paywall-box p { color: var(--text-muted); margin-bottom: 20px; font-size: 14px; }

/* PRICING */
.pricing-header { text-align: center; margin-bottom: 48px; }
.pricing-header h2 { font-size: 2rem; margin-bottom: 12px; }
.pricing-header p { color: var(--text-muted); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, #0f1a35, #111520);
}
.pricing-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}
.pricing-tier { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-save { font-size: 12px; color: #10b981; font-weight: 600; margin-bottom: 24px; }
.pricing-features { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 14px; color: var(--text-muted); }
.pricing-features li:not(.disabled) { color: var(--text); }
.pricing-features li.disabled { opacity: 0.4; }

/* EBOOKS GRID */
.ebooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.ebook-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.ebook-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ebook-cover {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ebook-cover-inner {
  width: 70%;
  height: 88%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  box-shadow: 6px 6px 20px rgba(0,0,0,0.5);
}
.ebook-cover-icon { font-size: 3rem; }
.ebook-cover-label {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  color: var(--white);
}
.ebook-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.ebook-badge.free { background: rgba(16,185,129,0.2); color: #10b981; }
.ebook-badge.premium { background: rgba(124,58,237,0.2); color: #8b5cf6; }
.ebook-body { padding: 16px; }
.ebook-title { font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; color: var(--white); }
.ebook-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ebook-price { font-size: 1rem; font-weight: 800; color: var(--accent); }
.ebook-price.free-price { color: #10b981; }

.ebook-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ebook-cta-banner h2 { font-size: 1.5rem; margin-bottom: 8px; }
.ebook-cta-banner p { color: var(--text-muted); }

/* FOOTER */
.footer { background: var(--bg-dark); border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo-text { font-size: 18px; font-weight: 700; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; font-size: 14px; }
.footer-links h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* YOUTUBE MODAL PLAYER */
.yt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.yt-modal-overlay.open { display: flex; }
.yt-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: min(900px, 100%);
  box-shadow: 0 32px 96px rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
}
.yt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.yt-modal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.yt-modal-close:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.yt-modal-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}
.yt-modal-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.yt-url-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.url-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s;
}
.url-input::placeholder { color: var(--text-muted); }
.url-input:focus { border-color: var(--accent); }
.url-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.url-submit:hover { background: #3a7de0; }
.url-error {
  display: block;
  font-size: 12px;
  color: #f87171;
  padding: 0 16px 10px;
  min-height: 0;
}
.url-error:empty { display: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .videos-grid { grid-template-columns: 1fr 1fr; }
  .videos-grid-full { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .videos-grid-full { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .ebook-cta-banner { flex-direction: column; }
  .search-bar { margin-left: 0; width: 100%; }
  .search-bar input { width: 100%; box-sizing: border-box; }
}

/* ==============================
   POST CARD COM FOTO
   ============================== */
.post-card-link { text-decoration: none; color: inherit; display: block; }
.post-card-link .post-card { transition: transform 0.2s, box-shadow 0.2s; }
.post-card-link:hover .post-card { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.post-card-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}

/* ==============================
   POST DETAIL PAGE
   ============================== */
.post-cover {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #0a0c14;
}
.post-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.post-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,7,15,0.92) 0%, rgba(5,7,15,0.4) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-date-label { color: rgba(255,255,255,0.6); font-size: 13px; }
.post-read-time  { color: rgba(255,255,255,0.6); font-size: 13px; }
.post-title-hero {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  max-width: 820px;
}

/* INFOGRAM */
.post-infogram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 44px 0 36px;
}
.post-infogram .infogram-heading {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 22px;
}
.infogram-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.infogram-stat { text-align: center; }
.infogram-stat .stat-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}
.infogram-stat .stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.infogram-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.infogram-facts li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.infogram-facts li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* POST BODY */
.post-container { max-width: 800px; }
.post-body { font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.post-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 40px 0 14px;
  color: var(--white);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.post-body p { margin-bottom: 18px; }
.post-body figure { margin: 28px 0 8px; }
.post-body figure img { width: 100%; border-radius: 10px; display: block; }
.post-body figcaption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 22px;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-body strong { color: var(--white); }

/* REFERÊNCIAS */
.post-references {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-references h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.post-references ol {
  padding-left: 18px;
  margin: 0;
}
.post-references li {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}
.post-references a { color: var(--accent); text-decoration: none; }
.post-references a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .post-cover { height: 320px; }
  .infogram-facts { grid-template-columns: 1fr; }
  .post-infogram { padding: 20px 18px; }
}
