/* Universal Guide Article Styles */


/* Layout Wrapper for Guide + Sidebar */
.guide-layout-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 0 1.5rem;
  justify-content: center;
}

/* Container */
.guide-article {
  flex: 1;
  max-width: 850px;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
}

@media (max-width: 1199px) {
  .guide-layout-wrapper {
    display: block;
  }
  
  .guide-article {
    max-width: 1000px;
    margin: 2rem auto;
  }
}

/* Header */
.guide-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #E6E3DF;
}

.guide-article h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #299E81 0%, #1f7d68 50%, #63638F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.guide-intro {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 0;
}

/* Table of Contents + CTA Grid */
.toc-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .toc-cta-grid {
    grid-template-columns: 1fr;
  }
}

/* Table of Contents */
.guide-toc {
  background: #f7fafc;
  border-left: 4px solid #299E81;
  padding: 1.5rem 2rem;
  border-radius: 8px;
}

.guide-toc h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
}

.guide-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.guide-toc a {
  color: #299E81;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.guide-toc a:hover {
  color: #1f7d68;
  text-decoration: underline;
}

/* Content */
.guide-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
  border-top: 1px solid #E6E3DF;
  border-left: 4px solid #299E81;
}

.guide-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.guide-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid #CBC4BD;
}

.guide-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.guide-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.guide-content ul,
.guide-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style-position: outside;
}

.guide-content ul {
  list-style-type: disc;
}

.guide-content ol {
  list-style-type: decimal;
}

.guide-content li {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.guide-content strong {
  font-weight: 600;
  color: #000;
}

.guide-content em {
  font-style: italic;
  color: #4a5568;
}

.guide-content a {
  color: #299E81;
  text-decoration: underline;
  transition: color 0.2s;
}

.guide-content a:hover {
  color: #1f7d68;
}

/* Code blocks */
.guide-content code {
  background: #f7fafc;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e91e63;
}

.guide-content pre {
  background: #2d3748;
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.guide-content pre code {
  background: none;
  padding: 0;
  color: #fff;
}

/* Blockquotes */
.guide-content blockquote {
  border-left: 4px solid #299E81;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4a5568;
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
}

/* Example boxes */
.example-box,
.tip-box,
.warning-box {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem auto;
  border-left: 4px solid;
  max-width: 75%;
}

.example-box {
  background: #e6fffa;
  border-color: #299E81;
}

.tip-box {
  background: #fef3c7;
  border-color: #f59e0b;
}

.warning-box {
  background: #fee2e2;
  border-color: #ef4444;
}

.example-box h4,
.tip-box h4,
.warning-box h4 {
  margin-top: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Tables */
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.guide-content th,
.guide-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #E6E3DF;
}

.guide-content th {
  background: #f7fafc;
  font-weight: 600;
  color: #000;
}

/* Images */
.guide-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Back to guides link */
.back-to-guides {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #299E81;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-to-guides:hover {
  color: #1f7d68;
}

/* Related Guides Section */
.guide-related {
  background: #fff;
  padding: 3rem 1.5rem;
  margin: 3rem 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guide-related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.guide-related h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 2rem;
  text-align: center;
}

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

.guide-related-card {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.guide-related-card:hover {
  border-color: #299E81;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(41, 158, 129, 0.2);
}

.guide-related-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #299E81;
  margin: 0 0 0.75rem 0;
}

.guide-related-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
}

/* CTA Section */
.section-cta-final {
  background: linear-gradient(135deg, #299E81 0%, #1f7d68 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  color: #fff;
  margin: 3rem 0;
  border-radius: 12px;
}

.section-cta-final .container {
  max-width: 800px;
  margin: 0 auto;
}

.section-cta-final h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.section-cta-final p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: #fff;
  color: #299E81;
}

.btn-primary:hover {
  background: #f7fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Footer */
.site-footer {
  background: #2d3748;
  color: #cbd5e0;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #a0aec0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #4a5568;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #299E81;
}

/* Guide callouts (for success/tip boxes) */
.guide-callout {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem auto;
  border-left: 4px solid;
  max-width: 75%;
}

.guide-callout-success {
  background: #e6fffa;
  border-color: #299E81;
}

.guide-callout strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  color: #299E81;
}

.guide-callout p {
  margin: 0;
  color: #2d3748;
}

/* ========== INTERNAL CTAs (House Ads) ========== */

/* CTA 1: Next to TOC - Learning Angle */
.cta-toc-side {
  background: linear-gradient(135deg, #299E81 0%, #1f7d68 100%);
  border-radius: 8px;
  padding: 1.5rem;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-shadow: 0 4px 12px rgba(41, 158, 129, 0.3);
  transition: transform 0.3s;
}

.cta-toc-side:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(41, 158, 129, 0.4);
}

.cta-toc-side .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.cta-toc-side h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #fff;
  border: none;
  padding: 0;
}

.cta-toc-side p {
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  opacity: 0.95;
}

.cta-toc-side .cta-btn {
  display: inline-block;
  background: #fff;
  color: #299E81;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-toc-side .cta-btn:hover {
  background: #f7fafc;
  transform: scale(1.05);
}

/* CTA 2: Mid-Content Banner - Test Skills Angle */
.cta-banner {
  background: #fff;
  border: 2px solid #299E81;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s;
}

.cta-banner:hover {
  border-color: #1f7d68;
  box-shadow: 0 4px 12px rgba(41, 158, 129, 0.2);
}

.cta-banner .icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.cta-banner-content {
  flex-grow: 1;
}

.cta-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 0.5rem 0;
  border: none;
  padding: 0;
}

.cta-banner p {
  font-size: 1rem;
  color: #4a5568;
  margin: 0;
}

.cta-banner .cta-btn {
  display: inline-block;
  background: #299E81;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}

.cta-banner .cta-btn:hover {
  background: #1f7d68;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* CTA 3: Feature Box - Earnings Angle */
.cta-feature {
  background: linear-gradient(135deg, #63638F 0%, #7a7aa8 100%);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(99, 99, 143, 0.3);
}

.cta-feature::before {
  content: '🪙';
  position: absolute;
  font-size: 10rem;
  opacity: 0.1;
  top: -2rem;
  right: -2rem;
  transform: rotate(-20deg);
}

.cta-feature .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.cta-feature h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #fff;
  border: none;
  padding: 0;
}

.cta-feature p {
  font-size: 1.125rem;
  margin: 0 0 1.5rem 0;
  opacity: 0.95;
}

.cta-feature .stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.cta-feature .stat-item {
  text-align: center;
}

.cta-feature .stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.cta-feature .stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

.cta-feature .cta-btn {
  display: inline-block;
  background: #fff;
  color: #63638F;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s;
}

.cta-feature .cta-btn:hover {
  background: #f7fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* CTA 4: Sticky Sidebar - FOMO Angle (Desktop Only) */
.cta-sidebar {
  flex-shrink: 0;
  width: 320px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  background: #fff;
  border: 2px solid #299E81;
  border-radius: 12px;
  padding: 0.875rem;
  box-shadow: 0 4px 12px rgba(41, 158, 129, 0.15);
  margin-top: 2rem;
}

@media (max-width: 1199px) {
  .cta-sidebar {
    display: none;
  }
}

.cta-sidebar .icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.75rem;
  display: block;
}

.cta-sidebar h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 0.75rem 0;
  text-align: center;
  border: none;
  padding: 0;
}

/* Countdown List */
.countdown-list {
  margin-bottom: 0.75rem;
  max-height: 45vh;
  overflow-y: auto;
}

.countdown-item {
  background: #f7fafc;
  padding: 0.625rem;
  border-radius: 6px;
  margin-bottom: 0.375rem;
  border-left: 3px solid #299E81;
}

.countdown-item:nth-child(2) {
  border-left-color: #a0aec0; /* Silver */
}

.countdown-item:nth-child(3) {
  border-left-color: #f59e0b; /* Gold */
}

.countdown-item:nth-child(4) {
  border-left-color: #63638F; /* Platinum */
}

.countdown-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.25rem;
}

.countdown-prize {
  font-size: 0.8rem;
  color: #000;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.countdown-entry {
  font-size: 0.7rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.countdown-time {
  font-size: 1rem;
  font-weight: 700;
  color: #299E81;
  font-family: monospace;
}

/* Sidebar Stats */
.sidebar-stats {
  background: #fff;
  border: 1px solid #E6E3DF;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.stat-row:not(:last-child) {
  border-bottom: 1px solid #E6E3DF;
}

.stat-label {
  font-size: 0.75rem;
  color: #4a5568;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #299E81;
}

.cta-sidebar .cta-btn {
  display: block;
  width: 100%;
  background: #299E81;
  color: #fff;
  padding: 0.875rem;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-sidebar .cta-btn:hover {
  background: #1f7d68;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .guide-article {
    padding: 2rem 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 0;
  }
  
  .guide-article h1 {
    font-size: 2rem;
  }
  
  .guide-intro {
    font-size: 1.125rem;
  }
  
  .guide-content h2 {
    font-size: 1.75rem;
  }
  
  .guide-content h3 {
    font-size: 1.375rem;
  }
  
  .guide-content p,
  .guide-content li {
    font-size: 1rem;
  }
  
  .guide-related-grid {
    grid-template-columns: 1fr;
  }
  
  .section-cta-final h2 {
    font-size: 2rem;
  }
  
  .section-cta-final p {
    font-size: 1.125rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Make tip boxes full width on mobile */
  .example-box,
  .tip-box,
  .warning-box,
  .guide-callout {
    max-width: 100%;
  }
}
