/* FOF Buyer's Guides Site — Custom Styles */
/* Override FOF base CSS which sets html font-size to 10px — restore to 16px so rem units work correctly */
html { font-size: 16px !important; }

:root {
  --fof-orange: #F37121;
  --fof-charcoal: #505050;
  --fof-light-orange: #FFF3E8;
  --fof-blue: #0088CC;
  --fof-dark: #333333;
  --fof-mid: #666666;
  --fof-light: #F5F5F5;
  --fof-border: #E0E0E0;
}

/* ── General ── */
body { font-family: 'Poppins', sans-serif; color: var(--fof-dark); }
a { color: var(--fof-blue); }
a:hover { color: var(--fof-orange); }

/* ── Hero banner ── */
.guides-hero {
  background: linear-gradient(135deg, var(--fof-charcoal) 0%, #333 100%);
  color: #fff;
  padding: 44px 0 36px;
  margin-bottom: 36px;
  border-bottom: 4px solid var(--fof-orange);
}
.guides-hero h1 { font-size: 2rem; font-weight: 700; margin: 0 0 8px; }
.guides-hero p  { font-size: 1.05rem; margin: 0; opacity: .85; }

/* ── Search ── */
.guide-search-wrap { margin: 0 0 32px; }
.guide-search-wrap input {
  width: 100%; padding: 12px 16px; font-size: 1rem;
  border: 2px solid var(--fof-border); border-radius: 4px;
  outline: none; transition: border-color .2s;
}
.guide-search-wrap input:focus { border-color: var(--fof-orange); }

/* ── Grid ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* ── Cards ── */
.guide-card {
  background: #fff;
  border: 1px solid var(--fof-border);
  border-radius: 6px;
  padding: 20px 20px 16px;
  transition: box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.guide-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); border-color: var(--fof-orange); }
.guide-card-icon {
  width: 40px; height: 40px;
  background: var(--fof-light-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: var(--fof-orange); font-size: 1.1rem;
}
.guide-card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--fof-charcoal); }
.guide-card-title a { color: inherit; text-decoration: none; }
.guide-card-title a:hover { color: var(--fof-orange); }
.guide-card-desc { font-size: .875rem; color: var(--fof-mid); line-height: 1.5; flex: 1; margin: 0 0 14px; }
.guide-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-read {
  background: var(--fof-orange); color: #fff !important;
  padding: 6px 14px; border-radius: 4px; font-size: .8rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.btn-read:hover { background: #d9601a; }
.btn-pdf {
  border: 1.5px solid var(--fof-charcoal); color: var(--fof-charcoal) !important;
  padding: 5px 10px; border-radius: 4px; font-size: .78rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.btn-pdf:hover { background: var(--fof-charcoal); color: #fff !important; }
.badge-pages {
  font-size: .75rem; color: var(--fof-mid);
  border: 1px solid var(--fof-border);
  padding: 3px 8px; border-radius: 12px; white-space: nowrap;
}

/* ── Guide page layout ── */
.guide-page-wrap { padding: 32px 0 64px; }
.guide-content-col { padding-right: 28px; }
.guide-page-title { font-size: 1.85rem; font-weight: 800; color: var(--fof-charcoal); margin-bottom: 6px; }
.guide-intro-desc { font-size: 1.05rem; color: var(--fof-mid); margin-bottom: 24px; border-left: 4px solid var(--fof-orange); padding-left: 14px; }
.guide-section { margin-bottom: 28px; }
.guide-section h2 {
  font-size: 1.2rem; font-weight: 700; color: var(--fof-charcoal);
  border-bottom: 2px solid var(--fof-orange);
  padding-bottom: 6px; margin-bottom: 12px;
}
.guide-section p { line-height: 1.7; font-size: .95rem; }

/* ── Sidebar ── */
.guide-sidebar { position: sticky; top: 20px; }
.sidebar-box {
  background: #fff; border: 1px solid var(--fof-border);
  border-radius: 6px; padding: 18px 16px; margin-bottom: 16px;
}
.sidebar-box h3 { font-size: .9rem; font-weight: 700; color: var(--fof-charcoal); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; }

/* sidebar buttons */
.btn-download-pdf, .btn-download-qa, .btn-pro-tips, .btn-sales-sheet {
  display: block; padding: 10px 14px; border-radius: 4px;
  font-size: .875rem; font-weight: 700; text-align: center;
  text-decoration: none; margin-bottom: 8px;
}
.btn-download-pdf { background: var(--fof-orange); color: #fff !important; }
.btn-download-pdf:hover { background: #d9601a; }
.btn-download-qa  { color: var(--fof-blue) !important; border: 2px solid var(--fof-blue); }
.btn-download-qa:hover  { background: var(--fof-blue); color: #fff !important; }
.btn-pro-tips     { color: var(--fof-charcoal) !important; border: 2px solid var(--fof-charcoal); }
.btn-pro-tips:hover     { background: var(--fof-charcoal); color: #fff !important; }
.btn-sales-sheet  { color: var(--fof-mid) !important; border: 2px solid var(--fof-border); }
.btn-sales-sheet:hover  { background: var(--fof-light); }

.btn-shop {
  display: block; background: var(--fof-orange); color: #fff !important;
  padding: 11px 14px; border-radius: 4px; font-size: .9rem;
  font-weight: 700; text-align: center; text-decoration: none;
}
.btn-shop:hover { background: #d9601a; }
.expert-phone {
  display: block; font-size: 1.25rem; font-weight: 800;
  color: var(--fof-orange) !important; text-decoration: none; margin-bottom: 4px;
}
.expert-hours { font-size: .8rem; color: var(--fof-mid); }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { border-bottom: 1px solid var(--fof-border); }
.related-list li:last-child { border-bottom: none; }
.related-list li a { display: block; padding: 7px 0; font-size: .875rem; color: var(--fof-blue); text-decoration: none; }
.related-list li a:hover { color: var(--fof-orange); }

/* ── Breadcrumb ── */
.breadcrumb-row { margin: 16px 0; font-size: .82rem; color: var(--fof-mid); }
.breadcrumb-row a { color: var(--fof-blue); text-decoration: none; }
.breadcrumb-row a:hover { color: var(--fof-orange); }

/* ── Hidden for search ── */
.guide-card[style*="display: none"] { display: none !important; }

/* ── Guide tables ── */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}
.guide-table th {
  background: #F37121;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
}
.guide-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}
.guide-table tr:nth-child(even) td {
  background: #f5f5f5;
}
.guide-table tr:hover td {
  background: #FFF3E8;
}

/* ── Guide lists ── */
.guide-section ul {
  margin: 8px 0 14px 0;
  padding-left: 1.4em;
}
.guide-section ul li {
  margin-bottom: 4px;
  line-height: 1.6;
  font-size: .95rem;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .guide-content-col { padding-right: 0; margin-bottom: 24px; }
  .guide-sidebar { position: static; }
  .guides-hero h1 { font-size: 1.5rem; }
}


/* -- Q&A Pages: !important overrides to beat fof.all.min.css specificity -- */
.qa-series-label {
  font-size: 12px !important; font-weight: 700 !important; text-transform: uppercase !important;
  letter-spacing: .06em !important; color: #F37121 !important; margin-bottom: 6px !important;
  display: block !important;
}
.qa-list {
  display: flex !important; flex-direction: column !important; gap: 0 !important;
  list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.qa-item {
  border-bottom: 1px solid #e5e5e5 !important; padding: 20px 0 !important;
  background: transparent !important;
}
.qa-item:first-child { padding-top: 0 !important; }
.qa-question {
  font-size: 17px !important; font-weight: 700 !important; color: #333 !important;
  margin-bottom: 10px !important; display: flex !important;
  align-items: flex-start !important; gap: 12px !important;
  text-decoration: none !important;
}
.qa-num {
  flex-shrink: 0 !important;
  background-color: #F37121 !important;
  color: #ffffff !important;
  font-size: 12px !important; font-weight: 800 !important;
  padding: 2px 7px !important; border-radius: 3px !important;
  margin-top: 3px !important; display: inline-block !important;
  line-height: 1.5 !important; text-decoration: none !important;
}
.qa-answer { display: flex !important; gap: 12px !important; align-items: flex-start !important; }
.qa-label {
  flex-shrink: 0 !important;
  background-color: #505050 !important;
  color: #ffffff !important;
  font-size: 12px !important; font-weight: 800 !important;
  padding: 2px 8px !important; border-radius: 3px !important;
  margin-top: 2px !important; display: inline-block !important;
  line-height: 1.5 !important; text-decoration: none !important;
}
.qa-answer-text { font-size: 15px !important; line-height: 1.65 !important; color: #444 !important; }

/* -- Pro Tips Pages: !important overrides to beat fof.all.min.css specificity -- */
.tips-grid {
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 14px !important;
}
.tip-card {
  background-color: #FFF3E8 !important; border: 1px solid #F37121 !important;
  border-radius: 5px !important; padding: 14px !important;
  display: flex !important; gap: 10px !important; align-items: flex-start !important;
}
.tip-num {
  font-size: 26px !important; font-weight: 800 !important;
  color: #F5C89A !important; line-height: 1 !important;
  flex-shrink: 0 !important; min-width: 28px !important;
  background-color: transparent !important; text-decoration: none !important;
}
.tip-content { display: block !important; flex: 1 !important; }
.tip-headline {
  font-size: 14px !important; font-weight: 700 !important;
  color: #505050 !important; margin-bottom: 5px !important;
  line-height: 1.3 !important; display: block !important;
  text-decoration: none !important;
}
.tip-body {
  font-size: 13px !important; line-height: 1.5 !important;
  color: #555 !important; display: block !important;
  text-decoration: none !important;
}
@media (max-width: 600px) { .tips-grid { grid-template-columns: 1fr !important; } }
