/* ============================================================
   VEXON7 MASTER TEMPLATE
   Variables set per-template — everything below is shared
   ============================================================ */

/* TEMPLATE VARIABLES — REPLACE THIS BLOCK PER TEMPLATE
   bold-dark:   --primary:#1a2f4e  --accent:#ff6600  font:Montserrat/Open Sans
   clean-light: --primary:#1b4332  --accent:#40916c  font:Playfair Display/Source Serif 4
   outdoors:    --primary:#2d4739  --accent:#e76f51  font:Bebas Neue/Lato
   minimal:     --primary:#0f0f0f  --accent:#2563eb  font:DM Sans
*/

:root {
  --primary:    #0f172a;
  --primary-dk: #070d1a;
  --primary-lt: #1e293b;
  --accent:     #3b82f6;
  --accent-dk:  #2563eb;
  --light:      #f8fafc;
  --white:      #ffffff;
  --text:       #2a2a2a;
  --text-lt:    #6b6b6b;
  --border:     #e2e8f0;
  --radius:     12px;
  --shadow:     0 4px 20px rgba(15,23,42,0.1);
  --shadow-lg:  0 12px 40px rgba(15,23,42,0.16);
  --font-head:  'DM Sans', 'Arial Black', sans-serif;
  --font-body:  'DM Sans', Arial, sans-serif;
  --font-ui:    'DM Sans', Arial, sans-serif;
  --max-w:      1160px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; }

/* ── UTILITIES ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section:nth-child(even) { background: var(--light); }

/* ── HEADER ── */
.site-header {
  background: var(--primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  color: var(--white); white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-ui); font-size: 0.88rem; font-weight: 600;
  color: rgba(255,255,255,0.85); padding: 8px 14px; border-radius: 6px;
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.btn-nav-cta {
  background: var(--accent) !important; color: var(--white) !important;
  padding: 9px 18px !important; border-radius: var(--radius) !important;
  font-weight: 700 !important; white-space: nowrap;
  transition: background 0.2s !important;
}
.btn-nav-cta:hover { background: var(--accent-dk) !important; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0; border-radius: 2px;
}
.mobile-nav { display: none; background: var(--primary-dk); padding: 12px 24px 20px; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: rgba(255,255,255,0.88);
  font-family: var(--font-ui); font-weight: 600;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
}
.mobile-nav a:last-child { border-bottom: none; color: var(--accent); }

main { display: block; width: 100%; overflow-x: hidden; }

/* ── HERO — FULL BLEED ── */
.hero {
  position: relative; min-height: 540px;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 680px; padding: 80px 24px 80px 60px;
}
.hero-badge {
  display: inline-block; background: var(--accent); color: var(--white);
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900;
  color: var(--white); line-height: 1.1; margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero p {
  color: rgba(255,255,255,0.88); font-size: 1.1rem;
  line-height: 1.7; margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── HERO — SPLIT (clean-light only) ── */
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 520px;
}
.hero-split .hero-text {
  background: var(--white); padding: 80px 56px 80px 60px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero-split h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800;
  color: var(--primary); line-height: 1.15; margin-bottom: 18px;
}
.hero-split p {
  color: var(--text-lt); font-size: 1.05rem; line-height: 1.7; margin-bottom: 32px;
}
.hero-img {
  background-size: cover; background-position: center; min-height: 400px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--white);
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white); }
.btn-outline {
  display: inline-block; border: 2px solid rgba(255,255,255,0.8); color: var(--white);
  padding: 11px 26px; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem; transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-outline-dark {
  display: inline-block; border: 2px solid var(--primary); color: var(--primary);
  padding: 11px 26px; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem; transition: all 0.2s;
}
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--primary-dk);
  padding: 18px 24px;
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-ui); font-size: 0.88rem; font-weight: 600;
}
.trust-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 48px; }
.eyebrow {
  display: inline-block;
  background: var(--light); border: 1px solid var(--border);
  color: var(--accent); font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--primary); margin-bottom: 12px;
}
.section-header p { color: var(--text-lt); font-size: 1rem; max-width: 540px; margin: 0 auto; }

/* ── ARTICLE CARDS ── */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px;
}
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: all 0.25s; display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img-link { display: block; overflow: hidden; height: 200px; }
.card-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img-link img { transform: scale(1.04); }
.card-img-placeholder {
  height: 200px; background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--text-lt);
}
.card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  display: inline-block; background: rgba(231,111,81,0.12); color: var(--accent);
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
  border: 1px solid rgba(231,111,81,0.3);
}
.card h3 { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 10px; line-height: 1.4; font-family: var(--font-body); }
.card h3 a:hover { color: var(--accent); }
.card-excerpt { color: var(--text-lt); font-size: 0.88rem; line-height: 1.6; flex: 1; margin-bottom: 12px; }
.card-meta { font-size: 0.78rem; color: var(--text-lt); font-family: var(--font-ui); margin-bottom: 14px; }
.read-more { color: var(--accent); font-family: var(--font-ui); font-size: 0.88rem; font-weight: 700; }
.read-more:hover { text-decoration: underline; }
.articles-footer { text-align: center; margin-top: 8px; }

/* ── VIDEO + RSS ── */
.video-rss-section { background: var(--light); padding: 72px 0; }
.video-rss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.video-rss-grid h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 16px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.rss-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.rss-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.rss-list { display: flex; flex-direction: column; gap: 12px; }
.rss-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; background: var(--white); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); transition: box-shadow 0.2s; }
.rss-item:hover { box-shadow: var(--shadow); }
.rss-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.rss-thumb-placeholder { width: 72px; height: 54px; background: var(--light); border-radius: 6px; border: 1px solid var(--border); }
.rss-content h4 { font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; line-height: 1.35; }
.rss-content p { font-size: 0.78rem; color: var(--text-lt); line-height: 1.4; margin-bottom: 6px; }
.rss-link { font-size: 0.78rem; color: var(--accent); font-weight: 700; font-family: var(--font-ui); }
.rss-empty { color: var(--text-lt); font-size: 0.9rem; font-style: italic; padding: 20px 0; }

/* ── CTA BANNER ── */
.cta-banner { background: var(--primary); padding: 72px 24px; text-align: center; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.site-footer { background: var(--primary-dk); padding: 48px 0 24px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px 32px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.footer-brand .logo { font-size: 1.1rem; margin-bottom: 8px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.85rem; max-width: 260px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(255,255,255,0.6); font-family: var(--font-ui); font-size: 0.83rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.78rem; font-family: var(--font-ui); }

/* ── PAGE HERO (articles, category pages) ── */
.page-hero {
  position: relative;
  left: 0; right: 0;
  width: 100vw;
  min-height: 480px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: center;
  margin: 0; padding: 0;
  box-sizing: border-box;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%);
}
.page-hero-content { position: relative; z-index: 1; width: 100%; padding: 0; }
.page-hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem,4vw,3rem); font-weight: 900;
  color: var(--white); margin-bottom: 8px; line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.page-hero-content p { color: rgba(255,255,255,0.85); font-family: var(--font-ui); font-size: 0.95rem; margin: 0; }

/* ── SINGLE ARTICLE PAGE ── */
/* article hero now uses .hero class directly — all styles inherited */
.article-hero-breadcrumb {
  font-family: var(--font-ui); font-size: 0.82rem;
  color: rgba(255,255,255,0.8); margin-bottom: 16px;
}
.article-hero-breadcrumb a { color: rgba(255,255,255,0.9); }
.article-hero-breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.article-hero-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-ui); font-size: 0.88rem;
}
.article-body { max-width: 960px; margin: 0 auto; padding: 48px 32px 80px; }
.breadcrumb { font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-lt); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.article-cat-badge {
  display: inline-block; background: var(--accent); color: var(--white);
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 4px; margin-bottom: 16px;
}
.article-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 20px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-lt); font-family: var(--font-ui); font-size: 0.82rem; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid var(--border); }
.article-content { font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.article-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin: 36px 0 14px; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 28px 0 10px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content blockquote { border-left: 4px solid var(--accent); padding: 16px 24px; margin: 28px 0; background: var(--light); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-lt); }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem; }
.article-content th { background: var(--primary); color: var(--white); padding: 10px 14px; text-align: left; font-family: var(--font-ui); font-size: 0.82rem; }
.article-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-content tr:nth-child(even) td { background: var(--light); }

/* ── SHARE BUTTONS ── */
.share-bar { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--border); flex-wrap: wrap; }
.share-bar > span { font-weight: 700; font-family: var(--font-ui); font-size: 0.9rem; color: var(--primary); }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 8px; font-size: 0.84rem; font-weight: 700; font-family: var(--font-ui); color: var(--white); transition: all 0.2s; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); color: var(--white); }
.share-fb  { background: #1877f2; }  .share-fb:hover  { background: #1464d8; }
.share-tw  { background: #000000; }  .share-tw:hover  { background: #333; }
.share-pin { background: #e60023; }  .share-pin:hover { background: #c0001e; }
.share-wa  { background: #25d366; }  .share-wa:hover  { background: #1ebe5a; }

/* ── RELATED ARTICLES ── */
.related-section { border-top: 2px solid var(--border); margin-top: 48px; padding-top: 40px; }
.related-section h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card { background: var(--light); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all 0.2s; }
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.related-card img { width: 100%; height: 140px; object-fit: cover; }
.related-card-body { padding: 14px; }
.related-card-body h4 { font-size: 0.9rem; font-weight: 700; color: var(--primary); line-height: 1.3; margin-bottom: 8px; }
.related-card-body a { color: var(--accent); font-size: 0.82rem; font-weight: 700; font-family: var(--font-ui); }

/* ── STATIC PAGES (about, privacy etc) ── */
.page-body { max-width: 760px; margin: 40px auto 80px; }
.page-body h1 { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; color: var(--primary); margin-bottom: 24px; }
.page-body h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin: 32px 0 12px; }
.page-body p  { font-size: 1rem; line-height: 1.8; color: var(--text); margin-bottom: 16px; }
.page-body a  { color: var(--accent); text-decoration: underline; }
.page-body strong { font-weight: 700; }


/* ── COMMENTS ── */
.comments-section { background: var(--light); padding: 56px 0 72px; }
.comments-section > .container { max-width: 960px; margin: 0 auto; padding: 0 32px; }
.comments-section h3 { font-family: var(--font-head); font-size: 1.8rem; color: var(--primary); margin-bottom: 6px; }
.comments-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.comment { display: flex; gap: 16px; align-items: flex-start; }
.comment-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
}
.comment-body { background: var(--white); border-radius: var(--radius); padding: 16px 20px; flex: 1; border: 1px solid var(--border); box-shadow: var(--shadow); }
.comment-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; font-family: var(--font-ui); font-size: 0.82rem; }
.comment-meta strong { color: var(--primary); font-size: 0.95rem; }
.comment-meta span { color: var(--text-lt); }
.comment-body p { color: var(--text); font-size: 0.95rem; line-height: 1.7; margin: 0; }
.comment-form { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.comment-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.comment-form label { display: block; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: var(--white); transition: border-color 0.2s; box-sizing: border-box;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231,111,81,0.15); }
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form .comment-body-field { margin-bottom: 20px; }

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .related-grid  { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .articles-grid { grid-template-columns: 1fr; }
  .video-rss-grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .hero-content { padding: 60px 24px; }
  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-text { padding: 48px 28px; }
  .hero-img { min-height: 260px; }
  .trust-bar { gap: 16px; justify-content: flex-start; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-body { padding: 32px 20px 48px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content { padding: 48px 16px; }
  .hero h1 { font-size: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .share-btn { padding: 8px 12px; font-size: 0.78rem; }
}
