/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Editorial Color Palette */
  --bg-primary: #fcfbf9;     /* Off-white warm background */
  --bg-secondary: #f4f2ee;   /* Soft warm gray card backgrounds */
  --text-primary: #1c1917;   /* Charcoal primary text */
  --text-secondary: #57534e; /* Muted gray text */
  --text-muted: #78716c;     /* Muted metadata text */
  
  --primary: #4338ca;        /* Deep Indigo */
  --secondary: #15803d;      /* Forest Green */
  --accent: #b45309;         /* Warm Amber/Clay */
  
  --border-color: #e7e5e4;   /* Light warm borders */
  --card-shadow: 0 4px 20px rgba(28, 25, 23, 0.03);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --max-width: 1000px;
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  position: relative;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

/* Header */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  position: relative;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo span {
  font-weight: 300;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
  outline: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    z-index: 100;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
  }
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem 0;
  background-color: var(--bg-primary);
}

.hero-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.75rem;
  font-style: italic;
}

.hero-brands {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-brands-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-brands-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.hero-brand-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.hero-brand-link:hover {
  opacity: 0.75;
}

.hero-brand-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Search bar / filter */
.search-wrapper {
  max-width: 550px;
  margin: 2.5rem auto 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--text-primary);
}

/* Grid of Guides */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.guide-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.guide-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.guide-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.guide-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

.guide-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid var(--text-primary);
  width: fit-content;
}

/* Blog/Article Page Content Styling */
.article-header {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-content {
  max-width: 750px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.article-content p {
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* Partners Directory Block */
.partners-block {
  background-color: var(--bg-secondary);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.partner-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}

.partner-name {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.partner-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Accordion FAQs */
.faq-container {
  max-width: 700px;
  margin: 2.5rem auto 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 0.75rem;
}

.faq-icon {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Forum Cards Styling */
.forum-section {
  padding: 4rem 0;
  background-color: var(--bg-primary);
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.forum-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.forum-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.forum-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  font-weight: bold;
  font-size: 9px;
  text-align: center;
  line-height: 16px;
  color: #ffffff;
}

.forum-logo.reddit {
  background-color: #ff4500;
}

.forum-logo.quora {
  background-color: #b92b27;
}

.forum-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.forum-body-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.forum-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: auto;
}

.forum-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2/rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  padding: 3rem 0 1.5rem 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.85rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  .section {
    padding: 3rem 0;
  }
}
