/* --- SALES PAGE SPECIFIC STYLES --- */

/* 1. COMPACT HERO SECTION */
.hero-section.sales-hero {
    padding: 2.5rem 0; /* 40px -> 2.5rem */
    background: none;
    text-align: start;
    max-width: 75rem; /* 1200px */
    box-shadow: none;
    border: 0;
    margin: 0 auto;
  }
  
  .hero-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 0.625rem 0 !important; /* 10px -> 0.625rem */
    text-align: center;
    border-bottom: 1px solid var(--border);
  }
  
  /* 2. LAYOUT GRID (Content + Sticky Sidebar) */
  .sales-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 2.5rem; /* 40px */
    padding: 2rem 0 2.5rem; /* 30px 0 40px */
    align-items: start;
  }
  
  @media (min-width: 64rem) { /* 1024px ~ 64rem */
    .sales-layout {
      grid-template-columns: 1fr 21.25rem; /* 340px */
      gap: 1.5rem; /* 24px */
    }
  }
  
  /* 3. MAIN CONTENT COLUMN */
  .sales-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem; /* 16px */
    padding: 1.25rem 1.5rem; /* 20px 30px */
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
  }
  
  @media (max-width: 48rem) { /* Mobile padding adjustment */
    .sales-content {
      padding: 1rem;
    }
  }
  
  /* Text Sections Backgrounds */
  .sales-section {
    margin-bottom: 2rem;
  }
  
  .sales-btn-container {
    margin-top: 1rem;
    width: 100%; /* Ensure full width on mobile */
    display: flex;
    justify-content: flex-start; /* Center button on mobile */
  }
  
  .sales-content p { margin-bottom: 1.5rem; }
  
  .section-title { 
    font-size: clamp(1.5rem, 4vw, 1.75rem); /* Responsive font size */
    color: var(--text-dark); 
    margin: 2rem 0 1.5rem; 
    padding-bottom: 0.5rem; 
    border-bottom: 2px solid #f1f5f9; 
  }
  
  /* 4. STICKY SIDEBAR */
  .sales-sidebar {
    display: none; 
  }
  
  @media (min-width: 64rem) { /* Show only on larger screens */
    .sales-sidebar {
      display: block;
      position: sticky;
      top: 6.25rem; /* 100px */
      height: fit-content;
    }
  }
  
  .sidebar-cta-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem; /* 12px */
    padding: 2rem; /* 32px */
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .sidebar-cta-card .sales-btn {
    margin-top: 0.25rem;
    width: 100%;
  }
  
  .sidebar-cta-card .cta-rating {
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column; /* Stack stars and text */
    align-items: center;
    gap: 0.5rem;
  }
  
  .sidebar-book-img {
    max-width: 11.25rem; /* 180px */
    width: 100%;
    height: auto;
    border-radius: 0.375rem; /* 6px */
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transform: rotate(-2deg);
    transition: transform 0.2s;
  }
  .sidebar-cta-card:hover .sidebar-book-img { transform: rotate(0deg) scale(1.02); }
  
  .price-tag-hero {
    font-size: clamp(1.5rem, 5vw, 1.75rem) !important;
    margin-bottom: 1.25rem !important;
    color: var(--text-dark) !important;
    text-align: left;
  }
  
  .sidebar-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0.5rem 0;
    display: block;
  }
  
  .sidebar-guarantee {
    font-size: 0.85rem;
    color: var(--muted);
    display: block;
    margin-bottom: 1rem;
  }
  
  /* 5. COMPONENTS */
  
  /* Blue CTA Box (Standard & Hero Override) */
  .cta-box.blue-theme {
    background: #f0f9ff;
    border-radius: 0.75rem;
    padding: 2rem; /* 32px */
    margin: 2rem 0;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr; /* Stack by default */
  }
  
  /* Hero specific override */
  .cta-box.blue-theme.hero-cta-override {
    background: none;
    border: 0;
    margin: 0;
    padding: 0; /* Remove padding for override to fit container */
  }
  
  @media (min-width: 48rem) { /* Tablet and up */
    .cta-box.blue-theme { 
      grid-template-columns: 15rem 1fr; /* 240px 1fr */
      align-items: center; 
    }
  }
  
  .cta-box.blue-theme img {
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
    border: 6px solid white;
    display: block;
  }
  
  .hero-cta-title {
    font-size: clamp(1.75rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
    line-height: 1.2;
    text-align: left;
  }
  
  .hero-cta-desc {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 1.75rem !important;
    text-align: left;
  }
  
  .hero-cta-note {
    font-size: 0.95rem;
    background: #fffbeb;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
    margin-bottom: 1.5rem;
  }
  
  /* Separate Guarantee Box at Bottom */
  .separate-guarantee-box {
    margin-bottom: 0.75rem;
    display: flex; /* Use flex for alignment */
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Center on mobile */
    gap: 0.5rem;
  }
  
  @media (min-width: 48rem) {
    .separate-guarantee-box { justify-content: flex-start; }
  }
  
  .guarantee-text-bold {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
  }
  
  /* Media Blocks (Alternating) */
  .media-block {
    display: flex; /* Use Flexbox for better stacking control */
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: center;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }
  
  @media (min-width: 48rem) {
    .media-block { 
      display: grid; /* Grid for side-by-side */
      grid-template-columns: 1fr 1fr; 
    }
    .media-block.reverse .media-image { order: 2; }
    .media-block.reverse .media-text { order: 1; }
  }
  
  .media-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: block;
    margin: 0 auto;
  }
  
  .media-text h3 {
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
  }
  
  .media-text blockquote {
    font-size: 1rem;
    font-style: italic;
    color: #475569;
    margin: 0;
    padding: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
  }
  
  /* Buttons */
  .sales-btn {
    display: inline-block;
    background: #7047eb; /* Purple accent */
    color: white !important;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(112, 71, 235, 0.25);
    transition: all 0.2s;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    width: 100%; /* Full width on mobile */
    box-sizing: border-box;
  }
  
  @media (min-width: 48rem) {
    .sales-btn { width: auto; min-width: 200px; }
  }
  
  .sales-btn.large-btn {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }
  
  .sales-btn:hover {
    background: #5b21b6;
    transform: translateY(-1px);
    box-shadow: 0 8px 12px rgba(112, 71, 235, 0.3);
    text-decoration: none;
  }
  
  /* Testimonials */
  .testimonial-grid {
    display: grid;
    gap: 1.25rem;
    /* Auto-fit columns: min 280px, expanding to fill space */
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); 
    margin: 2rem 0;
  }
  
  .testimonial-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .testimonial-text { 
    font-size: 1rem; 
    font-style: italic; 
    margin-bottom: 0.75rem; 
  }
  
  .testimonial-author { 
    font-weight: 700; 
    font-size: 0.9rem; 
    color: var(--text-dark); 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    flex-wrap: wrap; /* Allow wrapping */
  }
  
  .stars-svg { 
    color: #f59e0b; 
    letter-spacing: 1px; 
    font-size: 0.8rem; 
    flex-shrink: 0;
  }
  
  /* Lists */
  .check-list { 
    list-style: none; 
    padding: 0; 
    margin: 1.5rem 0; 
  }
  
  .check-list li {
    position: relative; 
    padding-left: 1.75rem; 
    margin-bottom: 0.625rem; 
    font-size: 1.05rem;
  }
  
  .check-list li::before {
    content: "✔"; 
    position: absolute; 
    left: 0; 
    top: 0.125rem; 
    color: #16a34a; 
    font-weight: bold;
  }
  
  .payment-icons { margin-top: 1.25rem }
  .payment-icons img { 
    max-width: 100% !important; 
    width: 18.75rem; /* 300px max width target */
    height: auto; 
    opacity: 0.8; 
    border: 0 !important; 
    box-shadow: none !important; 
  }
  
  .sales-btn.single-cta {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
  }
  
  /* Utilities */
  .text-center { text-align: center; }
  .mb-4 { margin-bottom: 1.5rem; }
  .lead-paragraph { 
    font-size: 1.25rem; 
    color: #1e293b; 
    font-weight: 500; 
    margin-bottom: 1.5rem; 
  }
  .spacer { 
    margin: 3rem 0; 
    border: 0; 
    border-top: 1px solid var(--border); 
  }
  
  /* Helper for Ratings */
  .cta-rating {
    display: flex;
    flex-direction: row; /* Row by default */
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center; /* Center on mobile */
  }
  
  @media (min-width: 48rem) {
    .cta-rating { justify-content: flex-start; }
  }