/* ========================================
   GUIDE PAGE STYLES
   ======================================== */

/* Breadcrumb */
.breadcrumb {
  background: #f8fafc;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: #64748b;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.breadcrumb li:last-child {
  color: #64748b;
}

/* Guide Page Layout */
.guide-page {
  padding: 3rem 0;
  background: white;
}

.guide-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
}

.guide-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.guide-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.95rem;
}

.guide-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Guide Content */
.guide-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}

.guide-section {
  margin-bottom: 3rem;
}

.guide-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

.guide-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.guide-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.guide-section p {
  margin-bottom: 1.5rem;
}

.guide-section ul,
.guide-section ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.guide-section li {
  margin-bottom: 0.75rem;
}

.guide-section strong {
  color: var(--text);
  font-weight: 600;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.cta-box h3 {
  color: white !important;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.cta-box p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Info Box */
.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.info-box strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* Formula Box */
.formula-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  padding: 2rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
}

.formula-box p {
  margin-bottom: 1rem;
}

.formula-box ul {
  list-style: none;
  padding-left: 0;
}

.formula-box li {
  margin-bottom: 0.5rem;
}

/* Calculator Embed */
.calculator-embed {
  margin: 2rem 0;
}

.embed-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.embed-link:hover {
  transform: scale(1.02);
}

.embed-preview {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.embed-preview:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.embed-icon {
  font-size: 3rem;
}

.embed-preview h4 {
  color: var(--text);
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}

.embed-preview p {
  color: #64748b;
  margin: 0;
}

/* Loan Types Grid */
.loan-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.loan-type-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.loan-type-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.loan-type-card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.loan-type-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.loan-type-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.loan-type-card a:hover {
  color: #1e40af;
}

/* Tips List */
.tips-list {
  margin: 2rem 0;
}

.tip-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tip-item:hover {
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tip-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.tip-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.tip-item p {
  margin: 0;
  color: #64748b;
}

/* FAQ List */
.faq-list {
  margin: 2rem 0;
}

.faq-item {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  background: #f8fafc;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-item summary:hover {
  background: #eff6ff;
}

.faq-item[open] summary {
  background: var(--primary);
  color: white;
  border-bottom: 2px solid #1e40af;
}

.faq-item p {
  padding: 1.5rem;
  margin: 0;
  background: white;
  color: #334155;
  line-height: 1.7;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.final-cta h3 {
  color: white !important;
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.final-cta p {
  margin-bottom: 2rem;
  font-size: 1.15rem;
  opacity: 0.95;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

/* Related Tools */
.related-tools {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e2e8f0;
}

.related-tools h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.related-card span {
  font-size: 2.5rem;
}

.related-card strong {
  color: var(--text);
  text-align: center;
  font-size: 1rem;
}

/* Ad Slots */
.ad-slot {
  margin: 2rem auto;
  padding: 2rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  text-align: center;
  min-height: 100px;
}

.ad-bottom {
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .guide-header h1 {
    font-size: 1.75rem;
  }

  .guide-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .guide-content {
    font-size: 1rem;
  }

  .guide-section h2 {
    font-size: 1.5rem;
  }

  .guide-section h3 {
    font-size: 1.25rem;
  }

  .cta-box,
  .final-cta {
    padding: 2rem 1.5rem;
  }

  .loan-types-grid {
    grid-template-columns: 1fr;
  }

  .tip-item {
    flex-direction: column;
    gap: 1rem;
  }

  .embed-preview {
    flex-direction: column;
    text-align: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .breadcrumb,
  .cta-box,
  .final-cta,
  .related-tools,
  .ad-slot {
    display: none;
  }
}
