/* ===== HOW TO BUY GOLD PAGE ===== */

/* Remove default padding */
body.page-template-how-to-buy-gold .site-main {
  padding: 0 !important;
  max-width: none !important;
}

/* ===== HERO SECTION (PARALLAX) ===== */
.htbg-hero {
  position: relative;
  background-color: var(--gb-navy);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 450px;
  display: flex;
  align-items: center;
}

.htbg-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 40, 79, 0.85);
  display: flex;
  align-items: center;
}

.htbg-hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  text-align: center;
}

.htbg-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gb-white);
  margin-bottom: 1.5rem;
}

.htbg-hero .hero-subheading {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.htbg-hero .hero-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  max-width: 900px;
  margin: 0 auto;
}

.htbg-hero .hero-intro p {
  margin-bottom: 1rem;
}

.htbg-hero .hero-intro a {
  color: var(--gb-gold);
  text-decoration: underline;
}

/* ===== SECTION COMMON STYLES ===== */
.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 2.5rem;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gb-gold);
  margin-top: 1rem;
}

/* ===== INVESTMENT PRODUCTS SECTION ===== */
.htbg-products {
  background: var(--gb-white);
  padding: 4rem 0;
}

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

.product-card {
  background: var(--gb-white);
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gb-navy);
  border-radius: 50%;
}

.product-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 1rem;
}

.product-content {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gb-text);
  text-align: left;
}

.product-content p {
  margin-bottom: 0.75rem;
}

.product-content a {
  color: var(--gb-navy);
  text-decoration: underline;
  text-decoration-color: var(--gb-gold);
  text-underline-offset: 2px;
}

.product-content a:hover {
  color: var(--gb-gold);
}

/* ===== WHERE TO BUY SECTION ===== */
.htbg-where {
  background: var(--gb-gray);
  padding: 4rem 0;
}

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

.where-option {
  background: var(--gb-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.where-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.where-content {
  padding: 2rem;
}

.where-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-color: var(--gb-gold);
  text-underline-offset: 4px;
}

.where-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gb-text);
  margin-bottom: 0.75rem;
}

.where-content a {
  color: var(--gb-navy);
  font-weight: 600;
}

.where-content a:hover {
  color: var(--gb-gold);
}

/* ===== BEST TIME TO BUY SECTION ===== */
.htbg-timing {
  background: var(--gb-white);
  padding: 4rem 0;
}

.timing-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gb-text);
  max-width: 900px;
}

.timing-content p {
  margin-bottom: 1rem;
}

.timing-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

.timing-content strong {
  color: var(--gb-navy);
}

/* ===== SUMMARY CHECKLIST SECTION ===== */
.htbg-summary {
  background: var(--gb-navy);
  padding: 4rem 0;
}

.htbg-summary .section-heading {
  color: var(--gb-white);
}

.summary-checklist {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.checklist-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  background: var(--gb-gold);
  border-radius: 50%;
}

.check-icon::before {
  content: '\2713';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gb-navy);
}

.checklist-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gb-gold);
  margin-bottom: 0.5rem;
}

.checklist-item p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* ===== COMPARISON TABLE SECTION ===== */
.htbg-comparison {
  background: var(--gb-white);
  padding: 4rem 0;
}

.comparison-table {
  max-width: 900px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border: 1px solid var(--gb-border);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--gb-navy);
  color: var(--gb-white);
  font-weight: 700;
  font-size: 1rem;
}

.comparison-table tr:nth-child(even) td {
  background: var(--gb-gray);
}

.comparison-table td:first-child {
  color: var(--gb-navy);
  font-weight: 600;
}

/* Green checkmark for physical gold column */
.comparison-table td:first-child::before {
  content: '\2713';
  display: inline-block;
  margin-right: 0.5rem;
  color: #28a745;
  font-weight: 700;
}

/* Red X for paper gold column */
.comparison-table td:last-child::before {
  content: '\2717';
  display: inline-block;
  margin-right: 0.5rem;
  color: #dc3545;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-checklist {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .where-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .htbg-hero {
    background-attachment: scroll;
    min-height: 350px;
  }

  .htbg-hero h1 {
    font-size: 1.75rem;
  }

  .htbg-hero .hero-subheading {
    font-size: 1.1rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

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

  .product-card {
    padding: 1.5rem;
  }

  .summary-checklist {
    grid-template-columns: 1fr;
  }

  .htbg-products,
  .htbg-where,
  .htbg-timing,
  .htbg-summary,
  .htbg-comparison {
    padding: 3rem 0;
  }

  .htbg-hero-inner {
    padding: 3rem 0;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-table table {
    min-width: 500px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}
