/* ============================================================
   Home Page Specific Styles - Minimal Theme Consistent
   Based on jekyll-theme-minimal design system
   ============================================================ */

/* ========================================
   Design Tokens (Match Minimal Theme)
   ======================================== */

:root {
  /* Colors - Direct from Minimal theme */
  --home-bg-color: #fff;
  --home-text-color: #727272;
  --home-heading-color: #222;
  --home-link-color: #267CB9;
  --home-link-hover: #069;
  --home-border-color: #e5e5e5;

  /* Typography - Enhanced for readability */
  --home-font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --home-font-size: 16px; /* Upgraded from 14px for better B2B readability */
  --home-line-height: 1.6; /* Upgraded from 1.5 for comfort */

  /* Layout */
  --home-max-width: 960px;

  /* Spacing System - 8px based grid for consistency */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;

  /* Legacy support */
  --home-spacing-unit: 20px;
}

/* ========================================
   1. Layout: Full-width, No Sidebar
   ======================================== */

.home-page {
  background-color: var(--home-bg-color);
}

.home-wrapper {
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 30px 20px;
  background-color: var(--home-bg-color);
  width: 100%;
  box-sizing: border-box;
}

/* Override default two-column layout */
.home-page .wrapper {
  width: 100% !important;
  margin: 0 !important;
}

.home-page header,
.home-page section,
.home-page footer {
  float: none !important;
  width: 100% !important;
  position: static !important;
}

/* ========================================
   2. Header: Horizontal Navigation
   ======================================== */

.home-header {
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-border-color);
}

.home-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Logo styles */
.home-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.home-logo-link:hover {
  opacity: 0.8;
}

.home-logo {
  height: 32px;  /* Updated to accommodate two-line logo */
  width: auto;
  display: block;
}

/* Legacy title styles (kept for backwards compatibility) */
.home-site-title {
  margin: 0;
  font-size: 28px;  /* Match H1 size from Minimal theme */
  font-weight: 700;
  color: var(--home-heading-color);
  line-height: var(--home-line-height);
}

.home-site-title a {
  color: var(--home-link-color);
  text-decoration: none !important;
  font-weight: 700;
}

.home-site-title a:hover {
  color: var(--home-link-hover);
  text-decoration: underline !important;
}

.home-nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.home-nav-links a {
  color: var(--home-text-color);
  text-decoration: none !important;
  font-weight: 700;
  font-size: var(--home-font-size);
  transition: color 0.2s ease;
}

.home-nav-links a:hover,
.home-nav-links a:focus {
  color: var(--home-link-color);
  text-decoration: underline !important;
}

/* ========================================
   3. Content Area: Full Width Typography
   ======================================== */

.home-content {
  max-width: 100%;
  font-family: var(--home-font-family);
  font-size: var(--home-font-size);
  line-height: var(--home-line-height);
  color: var(--home-text-color);
}

/* Hero/Intro Paragraph - First paragraph styling */
.home-content > p:first-of-type {
  font-size: 16px;  /* Slightly larger for emphasis */
  line-height: 1.6;
  color: var(--home-heading-color);
  margin-bottom: 24px;
}

/* Section Headers - Match Minimal theme H2 */
.home-content h2 {
  margin-top: 50px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--home-border-color);
  font-size: 24px;
  font-weight: 700;
  color: var(--home-heading-color);
  line-height: var(--home-line-height);
}

.home-content h2:first-of-type {
  margin-top: 0;
}

/* Guide Title Links - H3 styling */
.home-content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--home-heading-color);
  line-height: var(--home-line-height);
}

.home-content h3 a {
  color: var(--home-link-color);
  text-decoration: none !important;
}

.home-content h3 a:hover {
  color: var(--home-link-hover);
  text-decoration: underline !important;
}

/* Guide Descriptions - Paragraphs under H3 */
.home-content h3 + p,
.home-content h3 + p + p {
  margin-top: 10px;
  margin-bottom: var(--home-spacing-unit);
}

/* Emphasized Text (Italics) */
.home-content em {
  font-style: italic;
  color: var(--home-heading-color);
}

/* Regular Links in Content */
.home-content a {
  color: var(--home-link-color);
  text-decoration: underline;
}

.home-content a:hover {
  color: var(--home-link-hover);
}

/* Lists */
.home-content ul,
.home-content ol {
  margin: 0 0 var(--home-spacing-unit) 0;
  padding-left: 30px;
}

.home-content li {
  margin-bottom: 5px;
}

/* Horizontal Rules */
.home-content hr {
  border: 0;
  border-bottom: 1px solid var(--home-border-color);
  margin: 40px 0;
}

/* ========================================
   4. Footer: Centered
   ======================================== */

.home-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--home-border-color);
  text-align: center;
  font-size: var(--home-font-size);
  color: var(--home-text-color);
}

.home-footer p {
  margin: 10px 0;
}

.home-footer a {
  color: var(--home-link-color);
  text-decoration: none !important;
}

.home-footer a:hover {
  color: var(--home-link-hover);
  text-decoration: underline !important;
}

.home-footer-small {
  font-size: 12px;
  color: #999;
}

/* ========================================
   5. Responsive Design
   ======================================== */

@media screen and (max-width: 960px) {
  .home-wrapper {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 720px) {
  .home-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 20px 15px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* Clean header without borders or shadows */
  .home-header {
    margin-bottom: 30px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .home-nav-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    width: 100% !important;
  }

  .home-site-title {
    font-size: 22px !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
  }

  /* ALL navigation links in ONE horizontal row */
  .home-nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .home-nav-links a {
    padding: 8px 12px !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--home-text-color) !important;
  }

  /* Touch feedback - simple background change */
  .home-nav-links a:active {
    background: #f6f8fa !important;
  }

  /* Active state indicator */
  .home-nav-links a.active,
  .home-nav-links a[aria-current="page"] {
    background: #e3f2fd !important;
    color: #0969da !important;
  }

  .home-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-content h2 {
    font-size: 20px;
    margin-top: 40px;
  }

  .home-content h3 {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .home-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 30px 15px !important;
    box-sizing: border-box !important;
  }

  .home-header {
    margin-bottom: 40px;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .home-site-title {
    font-size: 20px;
    width: 100% !important;
  }

  /* KEEP HORIZONTAL on small screens too */
  .home-nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    width: 100% !important;
    align-items: flex-start !important;
  }

  .home-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-content h2 {
    font-size: 18px;
    margin-top: 30px;
  }

  .home-footer {
    margin-top: 60px;
    font-size: 12px;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ========================================
   6. Blog Post Grid - World-Class Card Design
   ======================================== */

.posts-grid-section {
  margin: 50px 0 50px 0;
}

.posts-grid-section h2 {
  margin-top: 0;
  margin-bottom: 28px;
  font-size: 28px;
  font-weight: 700;
  color: var(--home-heading-color);
  border-bottom: 2px solid var(--home-border-color);
  padding-bottom: 10px;
}

/* Critical override: Reset accessibility.css forced link styles for post cards */
.posts-grid-section a,
.posts-grid a,
.post-card a,
.post-card-title a {
  min-height: auto !important;
  min-width: auto !important;
  padding: 0 !important;
  display: inline !important;
  align-items: initial !important;
  justify-content: initial !important;
  box-sizing: content-box !important;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Featured posts - larger image only */
.post-card.featured .post-card-image {
  height: 220px;
}

.post-card.featured .post-card-title {
  font-size: 20px;
  font-weight: 700;
}

.post-card {
  background: transparent;
  border: none;
  padding: 0;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.post-card:hover .post-card-image {
  opacity: 0.9;
}

.post-card:hover .post-card-title a {
  color: var(--home-link-color);
}

.post-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #f6f8fa;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.post-card-content {
  padding: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-title {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--home-heading-color);
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--home-link-color);
}

.post-card-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* Remove footer and read more - title is clickable */
.post-card-footer {
  display: none;
}

/* Responsive Breakpoints for Post Grid */

@media screen and (max-width: 960px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .post-card-image {
    height: 150px;
  }

  .post-card.featured .post-card-image {
    height: 200px;
  }

  .post-card.featured .post-card-title {
    font-size: 19px;
  }

  .posts-grid-section {
    margin: 60px 0 40px 0;
  }
}

@media screen and (max-width: 720px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card-image {
    height: 180px;
  }

  .post-card.featured .post-card-image {
    height: 240px;
  }

  .post-card.featured .post-card-title {
    font-size: 19px;
  }

  .post-card-title {
    font-size: 17px;
  }

  .post-card-content {
    padding: 12px 0 0 0;
  }

  .posts-grid-section {
    margin: 40px 0 30px 0;
  }

  .posts-grid-section h2 {
    font-size: 24px;
    margin-bottom: 28px;
  }
}

@media screen and (max-width: 480px) {
  .posts-grid {
    gap: 16px;
  }

  .post-card-image {
    height: 160px;
  }

  .post-card.featured .post-card-image {
    height: 220px;
  }

  .post-card-title {
    font-size: 16px;
  }

  .post-card-description {
    font-size: 14px;
  }
}

/* ========================================
   7. Hero Product Box - Premium CTA Component
   ======================================== */

.hero-product-box {
  background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
  border: 2px solid var(--home-link-color);
  border-radius: 8px;
  padding: var(--space-xl) var(--space-lg);
  margin: var(--space-2xl) 0;
  box-shadow: 0 8px 24px rgba(38, 124, 185, 0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-product-box:hover {
  box-shadow: 0 12px 32px rgba(38, 124, 185, 0.18);
  transform: translateY(-2px);
}

/* Badge */
.hero-badge {
  display: inline-block;
  background: var(--home-link-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 3px;
  margin-bottom: var(--space-sm);
}

/* Title */
.hero-title {
  margin: 0 0 var(--space-sm) 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--home-heading-color);
  line-height: 1.2;
}

/* Description */
.hero-description {
  margin: 0 0 var(--space-lg) 0;
  font-size: 18px;
  line-height: 1.5;
  color: #494949;
}

/* Value Comparison */
.hero-value-compare {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: #f0f7ff;
  border: 1px solid var(--home-border-color);
  box-shadow: inset 0 0 4px rgba(38, 124, 185, 0.1);
  border-radius: 6px;
  margin: 0 0 var(--space-lg) 0;
  flex-wrap: wrap;
}

.value-old {
  font-size: 16px;
  color: #777;
  text-decoration: line-through;
}

.value-arrow {
  font-size: 18px;
  color: var(--home-link-color);
  font-weight: 700;
}

.value-new {
  font-size: 24px;
  color: var(--home-heading-color);
  font-weight: 700;
}

/* Features List */
.hero-features {
  margin: 0 0 var(--space-xl) 0;
  padding: 0;
  list-style: none;
}

.hero-features li {
  margin: 0 0 var(--space-sm) 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--home-text-color);
  padding-left: 24px;
  position: relative;
}

.hero-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22863a;
  font-weight: 700;
}

/* CTA Button */
.hero-cta-button {
  display: block;
  background: linear-gradient(135deg, var(--home-link-color) 0%, var(--home-link-hover) 100%);
  color: #fff !important;
  text-decoration: none !important;
  padding: var(--space-md) var(--space-lg);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(38, 124, 185, 0.2);
  margin: 0 0 var(--space-md) 0;
}

.hero-cta-button:hover {
  background: linear-gradient(135deg, var(--home-link-hover) 0%, #0550ae 100%);
  box-shadow: 0 6px 16px rgba(38, 124, 185, 0.3);
  transform: translateY(-2px);
}

.cta-main-text {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.cta-sub-text {
  display: block;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 8px; 
}

/* Trust Signals */
.hero-trust-signals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: #777;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-block;
}

.trust-separator {
  color: var(--home-border-color);
}

/* Responsive adjustments */
@media screen and (max-width: 720px) {
  .hero-product-box {
    padding: var(--space-lg) var(--space-md);
    margin: var(--space-xl) 0;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-value-compare {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .value-new {
    font-size: 20px;
  }

  .hero-cta-button {
    font-size: 16px;
    padding: var(--space-md);
  }
}

/* ========================================
   8. Professional Footer Component
   ======================================== */

.professional-footer {
  background: #f6f8fa;
  border-top: 1px solid var(--home-border-color);
  margin-top: var(--space-2xl);
  margin-bottom: 0 !important;  /* Ensure no bottom margin */
  padding: var(--space-2xl) 0 0 0;
  width: 100%;
  max-width: 100vw;  /* Prevent footer from exceeding viewport width */
  clear: both;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  overflow-x: hidden;
  flex-shrink: 0;  /* Prevent footer from shrinking in flexbox layout */
}

.footer-container {
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 0 20px var(--space-xl) 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Footer Brand Column */
.footer-brand {
  padding-right: var(--space-md);
}

.footer-heading {
  margin: 0 0 var(--space-sm) 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--home-heading-color);
}

.footer-tagline {
  margin: 0 0 var(--space-md) 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--home-text-color);
}

.footer-social-links {
  display: flex;
  gap: var(--space-sm);  /* Reduced from 24px to 16px to prevent wrapping */
  flex-wrap: nowrap;  /* Prevent wrapping - keep all links on one line */
}

.footer-social-link {
  color: var(--home-link-color);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-social-link:hover {
  color: var(--home-link-hover);
  text-decoration: underline !important;
}

/* Footer Navigation Columns */
.footer-nav {
  /* Grid column styling handled by parent */
}

.footer-subheading {
  margin: 0 0 var(--space-sm) 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--home-heading-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0 0 var(--space-xs) 0;
}

.footer-links a {
  color: var(--home-text-color);
  text-decoration: none !important;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--home-link-color);
  text-decoration: underline !important;
}

/* Newsletter Column */
.footer-newsletter {
  /* Grid column styling handled by parent */
}

.footer-newsletter-desc {
  margin: 0 0 var(--space-md) 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--home-text-color);
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-newsletter-input {
  padding: 10px 12px;
  border: 1px solid var(--home-border-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--home-font-family);
  background: #fff;
  transition: border-color 0.2s ease;
}

.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--home-link-color);
  box-shadow: 0 0 0 3px rgba(38, 124, 185, 0.1);
}

.footer-newsletter-button {
  padding: 10px 16px;
  background: var(--home-link-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--home-font-family);
  cursor: pointer;
  transition: background 0.2s ease;
}

.footer-newsletter-button:hover {
  background: var(--home-link-hover);
}

/* Footer Bottom Bar */
.footer-bottom {
  background: #f1f3f5;
  border-top: 1px solid var(--home-border-color);
  padding: var(--space-md) 0;
  margin-bottom: 0 !important;  /* Ensure no bottom margin */
}

.footer-bottom-container {
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.footer-trust {
  margin: 0;
  font-size: 13px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-icon {
  font-size: 14px;
}

/* Footer Responsive */
@media screen and (max-width: 960px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media screen and (max-width: 720px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-social-links {
    flex-wrap: wrap;  /* Allow wrapping on small screens */
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   9. Inline Grid CTA Card
   ======================================== */

.grid-cta-card {
  background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%);
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 200px;
}

.grid-cta-card:hover {
  border-color: #d97706;
  background: linear-gradient(135deg, #fff3d6 0%, #fff9e6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.grid-cta-title {
  margin: 0 0 var(--space-sm) 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--home-heading-color);
}

.grid-cta-description {
  margin: 0 0 var(--space-md) 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-text-color);
}

.grid-cta-button {
  display: inline-block;
  background: #f59e0b;
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.grid-cta-button:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ========================================
   10. Testimonials Section
   ======================================== */

.testimonials-section {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) 0;
  background: #f6f8fa;
  border-top: 1px solid var(--home-border-color);
  border-bottom: 1px solid var(--home-border-color);
}

.testimonials-container {
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--home-border-color);
  border-left: 3px solid var(--home-link-color);
  border-radius: 6px;
  padding: var(--space-lg);
  transition: all 0.2s ease;
}

.testimonial-card:hover {
  border-left-color: var(--home-link-hover);
  box-shadow: 0 4px 12px rgba(38, 124, 185, 0.1);
  transform: translateY(-2px);
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--home-text-color);
  margin: 0 0 var(--space-md) 0;
  font-style: italic;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-heading-color);
  margin: 0;
}

.testimonial-role {
  font-size: 13px;
  color: #777;
  margin: 4px 0 0 0;
}

@media screen and (max-width: 720px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile fix: stack testimonial name below photo to prevent truncation */
@media (max-width: 768px) {
  .testimonial-author {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
  .testimonial-photo {
    width: 96px !important;
    height: 96px !important;
    margin: 0 0 6px 0 !important;
  }
  .testimonial-info {
    align-items: center !important;
    text-align: center !important;
  }
}

/* Products page - Decision Guide grid and CTA responsive rules */
.products-decision-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

@media (max-width: 860px) {
  .products-decision-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

.products-mid-cta .cta-ghost {
  background: transparent;
  color: #267CB9;
  border: 1px solid #267CB9;
  border-radius: 10px;
  padding: 16px 28px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.products-mid-cta .cta-ghost:hover,
.products-mid-cta .cta-ghost:focus {
  background: #eaf4fb;
  color: #1e6ba6;
  border-color: #1e6ba6;
}

@media (max-width: 480px) {
  .products-mid-cta .cta-ghost {
    font-size: 16px !important;
    padding: 14px 32px !important;
  }
}

/* Author proof avatar sizing on mobile: reduce visual weight */
@media (max-width: 768px) {
  .author-proof-section img {
    width: clamp(96px, 28vw, 128px) !important;
    height: clamp(96px, 28vw, 128px) !important;
    margin-bottom: 12px !important;
  }
}

/* ========================================
   11. Layout Fixes for Default & Product Landing
   ======================================== */

/* Ensure footer displays correctly in all layouts */
html {
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body.full-width-layout {
  margin: 0;
  padding: 0 !important;  /* Override minimal theme's 50px padding */
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.full-width-layout .wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex: 1 0 auto;  /* Flex grow, no shrink, auto basis - push footer to bottom */
}

body.full-width-layout section {
  width: 100%;
  float: none;
  position: static;
  max-width: 100%;
  box-sizing: border-box;
  padding: 20px;  /* Add content padding here instead of body */
}

/* Override any fixed positioning from minimal theme */
body.full-width-layout footer {
  position: static !important;
  bottom: auto !important;
  width: 100% !important;
  float: none !important;
  text-align: left !important;  /* Override minimal theme's center alignment */
}

/* Ensure footer content containers maintain proper alignment */
.professional-footer,
.footer-container,
.footer-brand,
.footer-nav,
.footer-newsletter {
  text-align: left !important;  /* Force left alignment for all footer elements */
}

/* Keep footer-bottom layout intact (flex layout handles its alignment) */
.footer-bottom,
.footer-bottom-container {
  text-align: left;  /* Default left, but flex will override as needed */
}

/* Product landing specific fixes */
.product-landing-container {
  min-height: 60vh;
}

/* ========================================
   12. Print Styles
   ======================================== */

@media print {
  .home-header,
  .home-footer,
  .professional-footer {
    display: none;
  }

  .home-content {
    max-width: 100%;
  }

  .home-content a {
    text-decoration: underline;
    color: #000;
  }

  .posts-grid {
    display: block;
  }

  .post-card {
    page-break-inside: avoid;
    border: 1px solid #000;
    margin-bottom: 20px;
  }
}

/* ========================================
   13. Conversion-Optimized Homepage Sections
   Full-width backgrounds with centered content
   ======================================== */

/* Full-Width Section Container */
.full-width-section {
  width: 100%;
  padding: var(--space-2xl) 20px;
  box-sizing: border-box;
}

.section-container {
  max-width: var(--home-max-width);
  margin: 0 auto;
}

.section-container-wide {
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   14. Hero Conversion Section (1200px wide)
   Minimal theme: White background, clean layout
   ======================================== */

.hero-conversion-section {
  background: #ffffff;
  width: 100%;
  padding: 80px 20px;
  box-sizing: border-box;
  margin-bottom: 0;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-xl);
  align-items: center;
}

/* Hero Content (Left Side) */
.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--home-heading-color);
  margin: 0 0 var(--space-md) 0;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: var(--home-text-color);
  margin: 0 0 var(--space-xl) 0;
}

/* Price Comparison - Super Prominent */
.hero-price-compare {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 2px solid #e3f2fd;
  border-radius: 8px;
  margin: 0 0 var(--space-xl) 0;
  flex-wrap: wrap;
}

.price-old {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}

.price-arrow {
  font-size: 24px;
  color: var(--home-link-color);
  font-weight: 700;
}

.price-new {
  font-size: 48px;
  color: #22863a;
  font-weight: 700;
  line-height: 1;
}

.price-label {
  font-size: 16px;
  color: var(--home-text-color);
  margin-left: var(--space-sm);
}

/* Hero Features List */
.hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl) 0;
}

.hero-features li {
  font-size: 18px;
  line-height: 1.6;
  color: var(--home-text-color);
  margin: 0 0 var(--space-sm) 0;
  padding-left: 32px;
  position: relative;
}

.hero-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22863a;
  font-weight: 700;
  font-size: 20px;
}

/* CTA Buttons - Primary Large */
.cta-primary-large {
  display: block;
  background: linear-gradient(135deg, var(--home-link-color) 0%, var(--home-link-hover) 100%);
  color: #fff !important;
  text-decoration: none !important;
  padding: var(--space-lg) var(--space-xl);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(38, 124, 185, 0.25);
  margin: 0 0 var(--space-md) 0;
  border: none;
}

.cta-primary-large:hover {
  background: linear-gradient(135deg, var(--home-link-hover) 0%, #0550ae 100%);
  box-shadow: 0 12px 32px rgba(38, 124, 185, 0.35);
  transform: translateY(-2px);
}

.cta-secondary {
  display: inline-block;
  color: var(--home-text-color);
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 var(--space-lg) 0;
  transition: color 0.2s ease;
}

.cta-secondary:hover {
  color: var(--home-link-color);
  text-decoration: underline !important;
}

/* Trust Signals */
.trust-signals {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: #777;
  flex-wrap: wrap;
}

.trust-signals span:not(:last-child):after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #ccc;
  border-radius: 50%;
  margin-left: var(--space-sm);
  vertical-align: middle;
}

/* Hero Visual (Right Side) - Minimal Card List */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-modules-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.module-card:hover {
  border-color: var(--home-link-color);
  box-shadow: 0 2px 8px rgba(38, 124, 185, 0.08);
}

.module-number {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  min-width: 24px;
}

.module-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--home-heading-color);
  line-height: 1.3;
  flex: 1;
}

/* Remove all rotation and positioning - clean vertical stack */
.module-1,
.module-2,
.module-3,
.module-4,
.module-5 {
  position: static;
  transform: none;
  background: #ffffff;
}

/* Product Badge - REMOVED, info moved to left side text */
.product-badge {
  display: none;
}

/* ========================================
   15. Social Proof Section
   ======================================== */

.social-proof-section {
  background: #f6f8fa;
  border-top: 1px solid var(--home-border-color);
  border-bottom: 1px solid var(--home-border-color);
  width: 100%;
  padding: var(--space-xl) 20px;
  box-sizing: border-box;
}

.social-proof-grid {
  max-width: var(--home-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.social-proof-card {
  background: #fff;
  border: 1px solid var(--home-border-color);
  border-left: 3px solid var(--home-link-color);
  border-radius: 6px;
  padding: var(--space-lg);
  transition: all 0.2s ease;
}

.social-proof-card:hover {
  border-left-color: var(--home-link-hover);
  box-shadow: 0 4px 12px rgba(38, 124, 185, 0.1);
  transform: translateY(-2px);
}

.social-proof-quote {
  font-size: 18px;
  line-height: 1.6;
  color: var(--home-text-color);
  margin: 0 0 var(--space-md) 0;
  font-style: italic;
}

/* Testimonial author with photo */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-md);
}

.testimonial-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--home-border-color);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-proof-author {
  font-size: 16px;
  font-weight: 600;
  color: var(--home-heading-color);
  margin: 0;
}

.social-proof-role {
  font-size: 14px;
  color: #777;
  margin: 0;
}

/* ========================================
   16. Problem Statement Section
   ======================================== */

.problem-section {
  background: #fff;
  width: 100%;
  padding: var(--space-2xl) 20px;
  box-sizing: border-box;
}

.problem-section .section-container h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--home-heading-color);
  margin: 0 0 var(--space-lg) 0;
  text-align: center;
}

.problem-section .section-container ul {
  font-size: 18px;
  line-height: 1.8;
  color: var(--home-text-color);
  margin: var(--space-lg) 0;
  padding-left: 40px;
}

.problem-section .section-container li {
  margin-bottom: var(--space-md);
}

.problem-section .section-container p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--home-text-color);
  text-align: center;
}

/* ========================================
   17. Curated Guides Section (3 cards only)
   ======================================== */

.curated-guides-section {
  background: #fff;
  width: 100%;
  padding: var(--space-2xl) 20px;
  box-sizing: border-box;
}

.curated-guides-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--home-heading-color);
  margin: 0 0 var(--space-sm) 0;
  text-align: center;
}

.curated-guides-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--home-text-color);
  margin: 0 0 var(--space-xl) 0;
  text-align: center;
}

.curated-guides-grid {
  max-width: var(--home-max-width);
  margin: 0 auto var(--space-xl) auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.curated-guide-link {
  text-align: center;
  margin-top: var(--space-lg);
}

.curated-guide-link a {
  color: var(--home-text-color);
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.curated-guide-link a:hover {
  color: var(--home-link-color);
  text-decoration: underline !important;
}

/* ========================================
   18. Final CTA Section (Minimal design - Pure white)
   ======================================== */

.final-cta-section {
  background: #ffffff;
  width: 100%;
  padding: 80px 20px;
  box-sizing: border-box;
}

.final-cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--home-heading-color);
  margin: 0 0 16px 0;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  line-height: 1.3;
}

.final-cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--home-text-color);
  margin: 0 0 40px 0;
}

/* Guarantee items at bottom */
.final-cta-guarantees {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guarantee-icon {
  font-size: 20px;
  line-height: 1;
}

.guarantee-text {
  font-size: 14px;
  color: var(--home-text-color);
  line-height: 1.4;
}

/* Author Proof Section - Mobile Responsive */
@media (max-width: 768px) {
  .author-proof-section {
    padding: 60px 20px !important;
  }

  .author-proof-section blockquote {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }

  .author-proof-section > div > div {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Hide separator bullets on mobile */
  .author-proof-section > div > div > span[style*="color: #e5e5e5"] {
    display: none !important;
  }
}

/* Optimized FAQ Accordion - Compact Design */
.toolkit-accordion {
  margin-bottom: 12px !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 6px !important;
}

.toolkit-accordion .accordion-header {
  padding: 16px 20px !important;
  background: #ffffff !important;
}

.toolkit-accordion .accordion-header:hover {
  background: #f6f8fa !important;
}

.toolkit-accordion .accordion-header.active {
  background: #f6f8fa !important;
  border-bottom: 1px solid #e5e5e5 !important;
}

.toolkit-accordion .accordion-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #222 !important;
  margin: 0 !important;
}

.toolkit-accordion .accordion-chevron {
  font-size: 14px !important;
  color: #727272 !important;
}

.toolkit-accordion .accordion-content {
  padding: 0 20px !important;
}

.toolkit-accordion .accordion-content.active {
  padding: 16px 20px 20px 20px !important;
}

/* Legacy styles (to be removed) */
.final-cta-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px 0;
  text-align: left;
  display: inline-block;
}

.final-cta-features li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--home-text-color);
  margin: 0 0 8px 0;
  padding-left: 24px;
  position: relative;
}

.final-cta-features li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--home-link-color);
  font-weight: 700;
  font-size: 18px;
}

.final-cta-divider {
  width: 60px;
  height: 1px;
  background: #e5e5e5;
  margin: 32px auto;
}

.final-cta-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--home-heading-color);
  margin: 0 0 8px 0;
  line-height: 1;
}

.final-cta-price-label {
  font-size: 15px;
  color: var(--home-text-color);
  margin: 0 0 32px 0;
}

.final-cta-section .cta-primary-large {
  background: var(--home-link-color);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(38, 124, 185, 0.15);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-section .cta-primary-large:hover {
  background: var(--home-link-hover);
  box-shadow: 0 4px 12px rgba(38, 124, 185, 0.25);
}

.final-cta-guarantee {
  font-size: 13px;
  color: #999;
  margin-top: 16px;
}

/* ========================================
   19. Responsive Design for New Sections
   ======================================== */

@media screen and (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .curated-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 720px) {
  .hero-conversion-section {
    padding: 64px 20px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .price-new {
    font-size: 36px;
  }

  .hero-features li {
    font-size: 16px;
  }

  .cta-primary-large {
    font-size: 18px;
    padding: 18px 32px;
  }

  .module-card {
    padding: 14px 16px;
  }

  .module-name {
    font-size: 15px;
  }

  .social-proof-grid {
    grid-template-columns: 1fr;
  }

  .curated-guides-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-guarantees {
    gap: 20px;
  }

  .guarantee-item {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .problem-section .section-container h2,
  .curated-guides-section h2,
  .final-cta-section h2 {
    font-size: 26px;
  }

  .final-cta-section {
    padding: 64px 20px;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-price-compare {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-new {
    font-size: 32px;
  }

  .hero-visual {
    margin-top: 32px;
  }

  .module-card {
    padding: 12px 14px;
  }

  .module-number {
    font-size: 13px;
    min-width: 20px;
  }

  .module-name {
    font-size: 14px;
  }

  .final-cta-price {
    font-size: 40px;
  }

  .final-cta-section h2 {
    font-size: 24px;
  }
}
