/* ===========================
   AFFILISTA - Finance Blog
   Professional & Clean Design
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --primary: #1a3c5e;
  --primary-light: #2a5f8f;
  --accent: #c8a84b;
  --accent-light: #e2c97a;
  --text-dark: #1e1e1e;
  --text-mid: #4a4a4a;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-off: #f8f9fa;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
  --radius: 8px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --max-width: 1180px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ---- CONTAINER ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---- HEADER ---- */
.site-header {
  background: var(--primary);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -1px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.logo-text span { color: var(--accent); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--primary);
  padding: 20px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 6px;
  display: block;
  transition: background 0.2s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2540 100%);
  padding: 80px 0 70px;
  text-align: center;
  color: #fff;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto 32px;
}
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-light); color: var(--primary); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary); }

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 40px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .divider {
  width: 52px;
  height: 3px;
  background: var(--accent);
  margin: 14px auto 18px;
  border-radius: 2px;
}

/* ---- BLOG GRID ---- */
.blog-section { padding: 70px 0; background: var(--bg-off); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.blog-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #dce3ea;
}
.blog-card-img-placeholder {
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #e8edf3 0%, #d4dde8 100%);
}
.blog-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 18px;
  flex: 1;
}
.blog-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.read-more:hover { color: var(--accent); gap: 10px; }

/* ---- FEATURED / SIDEBAR LAYOUT ---- */
.featured-section { padding: 60px 0; }
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
.featured-main .blog-card { flex-direction: row; }
.featured-main .blog-card-img { width: 260px; min-width: 260px; height: auto; }

/* ---- SIDEBAR ---- */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.sidebar-links { list-style: none; }
.sidebar-links li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sidebar-links li:last-child { border: none; }
.sidebar-links a { color: var(--text-mid); }
.sidebar-links a:hover { color: var(--accent); }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary) 0%, #0f2540 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1rem; }

/* ---- POST PAGE ---- */
.post-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2540 100%);
  padding: 60px 0 40px;
  color: #fff;
}
.post-hero .post-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 14px;
}
.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
  max-width: 780px;
}
.post-hero .post-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 50px 0 80px;
}
.post-content { min-width: 0; }
.post-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 32px;
  max-height: 460px;
  object-fit: cover;
}

/* Article typography */
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  margin: 26px 0 10px;
}
.post-content p { margin-bottom: 18px; color: var(--text-mid); font-size: 1.02rem; }
.post-content ul, .post-content ol { margin: 16px 0 20px 24px; }
.post-content li { margin-bottom: 8px; color: var(--text-mid); }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  background: #f8f4ec;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-mid);
}

/* Affiliate Disclosure */
.affiliate-disclosure {
  background: #fff8e6;
  border: 1px solid #f0d580;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 30px;
  font-size: 13px;
  color: #6b5a1e;
  line-height: 1.6;
}
.affiliate-disclosure strong { color: #5a4a10; }

/* Buy Now Box */
.buy-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ea 100%);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin: 36px 0;
}
.buy-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.buy-box p { color: var(--text-mid); margin-bottom: 20px; font-size: 0.95rem; }
.buy-box .btn-buy {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
}
.buy-box .btn-buy:hover { background: var(--primary); color: #fff; }

/* ---- CATEGORIES PAGE ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2540 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
.page-hero p { color: rgba(255,255,255,0.8); max-width: 580px; margin: 0 auto; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 60px 0;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}
.category-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--accent); }
.category-icon { font-size: 36px; margin-bottom: 14px; }
.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.category-card p { font-size: 13px; color: var(--text-light); }

/* ---- ABOUT PAGE ---- */
.about-section { padding: 70px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.about-content p { color: var(--text-mid); margin-bottom: 16px; }
.values-list { list-style: none; margin-top: 20px; }
.values-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.values-list li:last-child { border: none; }
.values-list li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-top: 1px; }
.about-stats {
  background: var(--bg-off);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-light); }

/* ---- CONTACT PAGE ---- */
.contact-section { padding: 70px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.contact-info p { color: var(--text-mid); margin-bottom: 28px; }
.contact-details { list-style: none; }
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-mid);
}
.contact-details li:last-child { border: none; }
.contact-details .icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-form-box {
  background: var(--bg-off);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- PRIVACY PAGE ---- */
.privacy-section { padding: 60px 0 80px; }
.privacy-content { max-width: 820px; margin: 0 auto; }
.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  margin: 36px 0 12px;
}
.privacy-content h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 24px 0 10px;
}
.privacy-content p { color: var(--text-mid); margin-bottom: 14px; }
.privacy-content ul { margin: 12px 0 16px 22px; }
.privacy-content li { color: var(--text-mid); margin-bottom: 6px; }
.last-updated {
  background: var(--bg-off);
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 30px;
  display: inline-block;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #0f2540;
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { font-size: 20px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 14px; color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact-item {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.55); font-size: 12px; }
.footer-bottom a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- TAGS ---- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-off);
  color: var(--text-light);
  border: 1px solid var(--border);
  margin: 3px 3px 3px 0;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-mid);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 62px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 50px 0 50px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-main .blog-card { flex-direction: column; }
  .featured-main .blog-card-img { width: 100%; height: 200px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.7rem; }
}
