/* Guides Hub & Authority Content CSS System */
:root {
  --gh-primary: #4f46e5;
  --gh-primary-dark: #2f116f;
  --gh-accent: #7c3aed;
  --gh-teal: #0d9488;
  --gh-blue: #0284c7;
  --gh-emerald: #059669;
  --gh-amber: #d97706;
  --gh-rose: #e11d48;
  --gh-bg: #f8fafc;
  --gh-card-bg: #ffffff;
  --gh-border: #e2e8f0;
  --gh-text-main: #0f172a;
  --gh-text-muted: #64748b;
}

body.guides-body {
  background-color: var(--gh-bg) !important;
  font-family: "Celias", "Inter", system-ui, -apple-system, sans-serif !important;
  color: var(--gh-text-main);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.gh-hero-title,
.gh-section-title,
.gh-card-title,
.guide-content-card h2,
.guide-content-card h3,
.guide-cta-banner h3,
.guide-faq-header {
  font-family: "Celias", "Inter", system-ui, -apple-system, sans-serif !important;
}

strong, b {
  font-weight: 600;
}

/* Premium Hero Header */
.gh-hero-section {
  background: linear-gradient(135deg, #18093d 0%, #2f116f 40%, #431898 80%, #5b21b6 100%);
  color: #ffffff;
  padding: 4.5rem 1.5rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gh-hero-section::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.gh-hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}

.gh-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.gh-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gh-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: none;
}

.gh-breadcrumb .sep {
  color: #94a3b8;
}

.gh-breadcrumb .current {
  color: #c4b5fd;
  font-weight: 600;
}

.gh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f3e8ff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.gh-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.gh-hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gh-hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #e2e8f0;
  font-weight: 400;
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 2rem;
}

/* Floating Search Bar */
.gh-search-container {
  max-width: 1140px;
  margin: -2.75rem auto 2.5rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
}

.gh-search-card {
  background: #ffffff;
  border: 1px solid var(--gh-border);
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gh-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gh-search-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  font-size: 1.2rem;
  pointer-events: none;
}

.gh-search-input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  font-size: 1.05rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
}

.gh-search-input:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.gh-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.gh-tab-btn {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gh-tab-btn:hover {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}

.gh-tab-btn.active {
  background: #6b21a8;
  color: #ffffff;
  border-color: #6b21a8;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.25);
}

/* Main Hub Container */
.gh-main-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Grid & Cards */
.gh-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gh-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .gh-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gh-grid-3, .gh-grid-2 { grid-template-columns: 1fr; }
}

.gh-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
}

.gh-card:hover {
  border-color: #a78bfa;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.12);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.gh-card-top {
  margin-bottom: 1.25rem;
}

.gh-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.gh-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.gh-card-readtime {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
}

.gh-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.gh-card-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0;
}

.gh-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.9rem;
  font-weight: 700;
  color: #6b21a8;
}

.gh-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-purple { background: #f3e8ff; color: #6b21a8; }
.tag-blue { background: #e0f2fe; color: #0369a1; }
.tag-amber { background: #fef3c7; color: #b45309; }
.tag-emerald { background: #dcfce7; color: #15803d; }
.tag-rose { background: #ffe4e6; color: #be123c; }

/* Article Guide Styling (Used by individual guide templates) */
.guide-article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.guide-notice-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.guide-notice-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.guide-notice-text {
  font-size: 0.95rem;
  color: #1e40af;
  margin-bottom: 0;
  line-height: 1.6;
}

.guide-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.guide-content-card h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.guide-content-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.75rem 0 1rem;
}

.guide-content-card p {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.guide-content-card ul {
  list-style-type: disc !important;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.7;
}

.guide-content-card ol {
  list-style-type: decimal !important;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.7;
}

.guide-content-card li {
  margin-bottom: 0.5rem;
}

.guide-cta-banner {
  background: linear-gradient(135deg, #2f116f 0%, #4c1d95 60%, #1e1b4b 100%);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  color: #ffffff;
  margin: 3rem 0;
  box-shadow: 0 16px 36px rgba(47, 17, 111, 0.25);
}

.guide-cta-banner h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.guide-cta-banner p {
  font-size: 1.1rem;
  color: #e0e7ff;
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.guide-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #2f116f;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px 36px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.guide-btn-primary:hover {
  background: #f8fafc;
  color: #1e084d;
  transform: translateY(-2px);
  text-decoration: none;
}

/* FAQ Accordion Styling for Guides */
.guide-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}

.guide-faq-card {
  background: #ffffff;
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.guide-faq-card:hover {
  border-color: #cbd5e1;
}

.guide-faq-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gh-text-main);
  user-select: none;
}

.guide-faq-header:hover {
  background: #f8fafc;
}

.guide-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.guide-faq-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
}

