/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a6ef5;
  --primary-dark: #1452c0;
  --accent: #f5a623;
  --dark: #111827;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --border: #e5e7eb;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1160px;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAV ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul li a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav ul li a:hover { color: var(--primary); text-decoration: none; }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--primary-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1a6ef5 100%);
  color: var(--white);
  padding: 80px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  background: rgba(245,166,35,0.12);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  background: rgba(26,110,245,0.18);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(245,166,35,0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(245,166,35,0.35);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #111;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s;
  display: inline-block;
}

.btn-secondary:hover { background: rgba(255,255,255,0.2); text-decoration: none; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--light-gray);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray);
  font-weight: 500;
}

.trust-item svg { flex-shrink: 0; }

/* ===== SECTION COMMON ===== */
section { padding: 72px 0; }

.section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 52px;
}

/* ===== FEATURED ARTICLES ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.25s, transform 0.25s;
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  text-decoration: none;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a6ef5, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 22px; }

.card-tag {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-excerpt {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--gray);
}

.read-more {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

/* ===== CATEGORIES ===== */
.categories { background: var(--light-gray); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.cat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.cat-icon { font-size: 2.2rem; margin-bottom: 12px; }

.cat-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.cat-count { font-size: 0.8rem; color: var(--gray); }

/* ===== AD UNIT PLACEHOLDER ===== */
.ad-unit {
  background: var(--light-gray);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
  margin: 32px 0;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: var(--white);
  text-align: center;
}

.newsletter h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.newsletter p { opacity: 0.85; margin-bottom: 28px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.newsletter-form button {
  background: var(--accent);
  color: #111;
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter-form button:hover { opacity: 0.9; }

.newsletter-disclaimer { font-size: 0.78rem; opacity: 0.55; margin-top: 14px; }

/* ===== TOP PICKS / TABLE ===== */
.picks-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.picks-table thead th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}

.picks-table tbody tr { border-bottom: 1px solid var(--border); }
.picks-table tbody tr:hover { background: #f8faff; }
.picks-table tbody td { padding: 14px 16px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-gold { background: #fef3c7; color: #92400e; }
.badge-silver { background: #f3f4f6; color: #374151; }
.badge-green { background: #d1fae5; color: #065f46; }

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #94a3b8; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: #1e293b;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

/* ===== ARTICLE PAGE ===== */
.article-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: var(--white);
  padding: 60px 0;
}

.article-hero .breadcrumb {
  font-size: 0.82rem;
  opacity: 0.65;
  margin-bottom: 16px;
}

.article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 780px;
  margin-bottom: 18px;
}

.article-hero .article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  opacity: 0.75;
  flex-wrap: wrap;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 52px 0;
}

.article-content h2 { font-size: 1.55rem; font-weight: 800; margin: 36px 0 14px; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; }
.article-content p { margin-bottom: 18px; line-height: 1.8; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; line-height: 1.7; }

.article-content .callout {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 26px 0;
  font-size: 0.95rem;
}

.article-content .callout strong { color: var(--primary); }

.sidebar { position: sticky; top: 80px; height: fit-content; }

.sidebar-widget {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  color: var(--dark);
}

.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list li a { font-size: 0.88rem; color: var(--gray); }
.toc-list li a:hover { color: var(--primary); }
.toc-list li a.active { color: var(--primary); font-weight: 600; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  padding: 70px 0;
  text-align: center;
}

.about-hero h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 16px; }
.about-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 540px; margin: 0 auto; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
}

.team-name { font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.85rem; color: var(--gray); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  nav ul { display: none; }
  nav ul.open { 
    display: flex; 
    flex-direction: column; 
    position: absolute; 
    top: 64px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 14px;
  }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .picks-table { font-size: 0.82rem; }
  .picks-table thead th, .picks-table tbody td { padding: 10px 12px; }
}