/* ============================================= */
/*   VANGUARD ALLIANCE NETWORK - INSIGHTS CSS    */
/* ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #B8860B;
  --gold-light: #D4A017;
  --white: #FFFFFF;
  --grey: #D9D9D9;
  --card-bg: rgba(68, 65, 65, 0.3);
  --bg: #000000;
  --font: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ==================== NEURAL CANVAS ==================== */
#neural-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ==================== PAGE WRAPPER ==================== */
.page-content {
  position: relative;
  z-index: 1;
}

/* ==================== NAV ==================== */
nav {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  border-bottom: 0.5px solid #2a2a2a;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-svg { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #fafafa;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.btn-call {
  background: var(--gold);
  color: rgb(250, 250, 250);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 30px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn-call:hover { background: var(--gold-light); transform: scale(1.03); color: #000;}

/* ==================== HERO ==================== */
.hero {
  padding: 160px 120px 60px;
  max-width: 1512px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.hero::before {
  content: '';
  position: absolute;
  top: 100px; left: 60px;
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(184,134,11,0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: orbPulse 7s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.section-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: block;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero h1 {
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 32px;
}

/* ==================== FILTER TAGS ==================== */
.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-tag {
  background: transparent;
  color: var(--white);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #444;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.filter-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-tag.active {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

/* ==================== FEATURED ARTICLE ==================== */
.featured-card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 0;
  overflow: hidden;
  margin-bottom: 80px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.featured-card:hover {
  border-color: rgba(184,134,11,0.3);
  box-shadow: 0 20px 60px rgba(184,134,11,0.08);
}

.featured-img {
  width: 280px;
  min-height: 240px;
  flex-shrink: 0;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-img img { transform: scale(1.05); }

.featured-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.featured-body h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.featured-body p {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 560px;
}

.featured-date {
  font-size: 13px;
  color: #666;
}

/* ==================== RECENT ARTICLES SECTION ==================== */
.recent-section {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 120px 80px;
  width: 100%;
  box-sizing: border-box;
}

.recent-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 36px;
  display: block;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==================== ARTICLE CARD ==================== */
.article-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,134,11,0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.article-card:hover::before { opacity: 1; }

.article-card:hover {
  transform: translateY(-8px);
  border-color: rgba(184,134,11,0.25);
  box-shadow: 0 20px 50px rgba(184,134,11,0.12);
}

.card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .card-img img { transform: scale(1.06); }

.card-body {
  padding: 20px 20px 24px;
  position: relative;
  z-index: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.card-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--white);
}

.card-meta {
  font-size: 12px;
  color: #555;
}

/* ==================== NEWSLETTER ==================== */
.newsletter-section {
  margin: 20px 120px 80px;
  background: rgba(20, 20, 20, 0.8);
  border-radius: 20px;
  padding: 70px 40px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(184,134,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-section h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
}

.newsletter-section p {
  font-size: 15px;
  color: var(--grey);
  margin-bottom: 36px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #333;
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form input::placeholder { color: #555; }

.newsletter-form button {
  padding: 14px 28px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover { background: var(--gold-light); }

/* ==================== FOOTER ==================== */
footer {
  background: rgba(0,0,0,0.9);
  border-top: 0.5px solid #222;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1286px;
  margin: 0 auto;
  padding: 80px 112px 40px;
  display: flex;
  gap: 100px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.footer-brand { max-width: 280px; }
.footer-brand .logo { margin-bottom: 20px; }

.footer-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: #D9D9D9;
  margin-bottom: 28px;
}

.footer-socials { display: flex; gap: 12px; }

.footer-socials a {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(184,134,11,0.1);
  border: 1px solid rgba(184,134,11,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
}
.footer-socials img {
  width: 18px;
  height: 18px;
}

.footer-socials a:hover {
  background: rgba(184,134,11,0.25);
  transform: scale(1.15);
}

.footer-links-wrap {
  display: flex;
  gap: 80px;
  flex: 1;
  justify-content: flex-end;
}

.footer-col h5 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: white; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 14px; color: #ccc6c6; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-copyright {
  border-top: 0.5px solid #222;
  padding: 24px 112px;
  font-size: 15px;
  color: #f0f0f0;
  max-width: 1512px;
  margin: 0 auto;
}

/* ==================== FLOATING PARTICLES ==================== */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0%   { transform: translateY(100vh); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100px); opacity: 0; }
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero, .recent-section { padding-left: 40px; padding-right: 40px; }
  .newsletter-section { margin: 20px 40px 60px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== NAV TOGGLE ==================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 600;
  font-family: var(--font);
  transition: color 0.2s;
}
.mobile-menu a.active,
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn-call {
  font-size: 16px;
  padding: 12px 32px;
  display: inline-block !important;
}

/* Close button inside mobile menu */
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font);
}
.mobile-menu-close:hover {
  color: var(--gold);
  background: rgba(184,134,11,0.1);
}

/* ==================== FOOTER — full width black ==================== */
footer {
  background: #000 !important;
  border-top: 0.5px solid #222;
}
.footer-copyright {
  background: #000;
  padding: 24px 112px;
  font-size: 15px;
  color: #f0f0f0;
  max-width: 100%;
  margin: 0;
  border-top: 0.5px solid #222;
}

/* ==================== RESPONSIVE OVERRIDES ==================== */
@media (max-width: 1024px) {
  .footer-inner { padding: 60px 40px 40px; }
  .footer-copyright { padding: 20px 40px; }
}

@media (max-width: 768px) {
  /* Global overflow guard */
  html, body { max-width: 100%; overflow-x: hidden; }
  .page-content { max-width: 100%; overflow-x: hidden; }
  img, video { max-width: 100%; height: auto; }

  /* NAV */
  nav { height: 68px; padding: 0 16px; box-sizing: border-box; }
  .nav-links { display: none; }
  .nav-desktop-cta { display: none !important; }
  .btn-call:not(.mobile-menu .btn-call) { display: none; }
  .nav-toggle { display: flex; }
  .logo img { height: 40px; }

  /* HERO */
  .hero { padding: 100px 16px 40px; box-sizing: border-box; }
  .section-label { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }
  .hero h1 {
    font-size: clamp(30px, 9vw, 46px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
  }

  /* FILTER TAGS */
  .filter-tags { gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
  .filter-tag { font-size: 13px; font-weight: 600; padding: 7px 14px; }

  /* FEATURED CARD */
  .featured-card { flex-direction: column; margin-bottom: 40px; }
  .featured-img { width: 100%; height: 210px; }
  .featured-body { padding: 20px 16px; }
  .featured-label { font-size: 13px; font-weight: 700; }
  .featured-body h2 {
    font-size: clamp(18px, 5.5vw, 26px);
    font-weight: 800;
    line-height: 1.25;
  }
  .featured-body p { font-size: 14px; font-weight: 500; color: #d0d0d0; line-height: 1.65; }
  .featured-date { font-size: 13px; font-weight: 500; color: #888; }

  /* RECENT ARTICLES */
  .recent-label { font-size: 15px; font-weight: 700; margin-bottom: 24px; }
  .recent-section { padding: 0 16px 48px; box-sizing: border-box; }
  .articles-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-img { height: 170px; }
  .card-body { padding: 16px 16px 20px; }
  .card-category { font-size: 12px; font-weight: 800; letter-spacing: 0.8px; }
  .card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.4; color: #ffffff; }
  .card-meta { font-size: 13px; font-weight: 500; color: #777; }

  /* NEWSLETTER */
  .newsletter-section {
    margin: 16px 16px 48px;
    padding: 40px 16px;
    border-radius: 14px;
    box-sizing: border-box;
  }
  .newsletter-section h2 {
    font-size: clamp(20px, 6vw, 30px);
    font-weight: 800;
    margin-bottom: 10px;
  }
  .newsletter-section p {
    font-size: 14px;
    font-weight: 500;
    color: #d0d0d0;
    margin-bottom: 24px;
  }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input {
    border-right: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    font-size: 15px;
  }
  .newsletter-form button {
    border-radius: 8px;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
  }

  /* FOOTER */
  .footer-inner { flex-direction: column; gap: 28px; padding: 32px 16px 20px; box-sizing: border-box; }
  .footer-brand { max-width: 100%; }
  .footer-brand .logo img { height: 44px; }
  .footer-tagline { font-size: 14px; font-weight: 500; line-height: 1.65; margin-bottom: 16px; color: #d0d0d0; }
  .footer-socials { gap: 10px; }
  .footer-socials a { width: 32px; height: 32px; font-size: 14px; }
  .footer-links-wrap { justify-content: flex-start; gap: 20px 32px; flex-wrap: wrap; width: 100%; }
  .footer-col h5 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
  .footer-col ul { gap: 10px; }
  .footer-col ul li a { font-size: 13px; font-weight: 500; color: #c0bdbd; }
  .footer-copyright { padding: 14px 16px 20px; font-size: 13px; font-weight: 500; text-align: center; box-sizing: border-box; }
}

@media (max-width: 374px) {
  nav { padding: 0 12px; }
  .hero { padding: 88px 12px 28px; }
  .hero h1 { font-size: clamp(26px, 9vw, 34px); font-weight: 800; }
  .section-label { font-size: 13px; }
  .filter-tag { font-size: 12px; padding: 6px 11px; }
  .featured-body { padding: 16px 12px; }
  .featured-body h2 { font-size: clamp(17px, 6vw, 22px); }
  .card-body h3 { font-size: 14px; }
  .recent-section { padding: 0 12px 36px; }
  .newsletter-section { margin: 12px 12px 36px; padding: 30px 12px; }
  .newsletter-section h2 { font-size: clamp(18px, 6.5vw, 24px); }
  .newsletter-section p { font-size: 13px; }
  .footer-inner { padding: 24px 12px 14px; }
  .footer-copyright { padding: 12px 12px 16px; font-size: 12px; }
}

