/* ===============================
   CUSTOM HOMEPAGE OVERRIDES
   =============================== */

/* === LAYOUT WRAPPERS === */
.home-hero-wrapper,
.features-wrapper {
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* ===============================
   HERO / HEADER
   =============================== */
.hero-header {
  text-align: center;
  padding: 8rem 2rem 6rem;
  background: var(--color-bg, #fff);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--color-text, #111);
}

.hero-subtitle {
  font-size: 2rem;
  line-height: 1.4;
  margin: 0 auto 3.5rem;
  color: #000;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: #1a73e8;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.75rem;
  padding: 1.75rem 4rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #155fc0;
}

.hero-link {
  color: #1a73e8;
  text-decoration: underline;
  font-weight: 500;
  font-size: 1rem;
}

.hero-link:hover {
  text-decoration: none;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { font-size: 1.35rem; }
  .btn-primary { font-size: 1.25rem; padding: 1.25rem 3rem; }
}

/* ===============================
   FEATURES
   =============================== */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.feature-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  padding: 5rem 0;
}

.feature-text h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1.8rem;
}

.feature-text p {
  font-size: 2rem;
  line-height: 1.5;
  color: var(--color-secondary-text, #444);
}

.feature img {
  max-width: 600px;
  width: 100%;
  border-radius: 12px;
}

@media (min-width: 900px) {
  .feature:nth-child(even) { flex-direction: row-reverse; }
}

@media (max-width: 768px) {
  .feature-section {
    flex-direction: column;
    gap: 2.5rem;
  }
  .feature-text h3 { margin-bottom: 1.4rem; }
}

/* "Scan & Identify" override */
.scan-identify-text {
  font-size: 2rem;
  line-height: 1.5;
  color: var(--color-secondary-text, #444);
}

/* ===============================
   LEARN SECTION (3 BOXES)
   =============================== */
.learn-section {
  width: 100%;
  padding: 6rem 2rem;
  background-color: #fafafa;
  text-align: center;
}

.learn-section h2 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.learn-section p {
  font-size: 2rem;
  line-height: 1.5;
  color: var(--color-secondary-text, #444);
  max-width: 900px;
  margin: 0 auto 4rem;
}

.learn-features {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.learn-box {
  flex: 1 1 30%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learn-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.learn-box img {
  margin-bottom: 1rem;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.learn-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.learn-box p {
  color: #555;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .learn-features { flex-direction: column; align-items: center; }
  .learn-box { width: 100%; max-width: 500px; }
}

/* ===============================
   FAQ SECTION
   =============================== */
.faq-section {
  background: #fff;
  padding: 6rem 2rem;
  border-top: 1px solid #eee;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-title {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.1;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-bottom: 1px solid #ddd; /* Divider line */
  padding-bottom: 1rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 0;
  text-align: left;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--color-text, #111);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  font-size: 1.75rem;
  line-height: 1.6;
  color: var(--color-secondary-text, #444);
  margin: 0.75rem 0 0;
}

/* ===============================
   SUBSCRIBE SECTION
   =============================== */
.subscribe {
  background-color: #1a73e8 !important;
  color: #fff;
}

.subscribe h3,
.subscribe p { color: #fff; }

.subscribe input,
.subscribe button { border: none; outline: none; }

.subscribe button {
  background-color: #fff !important;
  color: #1a73e8 !important;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.subscribe button:hover {
  background-color: #f2f2f2 !important;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  .learn-section h2,
  .faq-title { font-size: 2.5rem; }
  .learn-section p { font-size: 1.4rem; }
}

/* === FIX: Feature Layout Alignment === */
@media (min-width: 900px) {
  .feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    text-align: left;
  }

  .feature:nth-child(even) {
    flex-direction: row-reverse;
  }

  .feature-image {
    flex: 1 1 48%;
  }

  .feature-text {
    flex: 1 1 48%;
  }
}

/* === LEARN SECTION FONT ADJUSTMENTS === */
.learn-box h3 {
  font-size: 2rem; /* Match hero subtitle / feature headers */
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--color-text, #111);
}

.learn-box p {
  font-size: 2rem; /* Match "Use credit spreads..." */
  line-height: 1.5;
  color: var(--color-secondary-text, #444);
}

/* === SECTION SPACING ADJUSTMENTS === */

/* General layout spacing */
section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Hero section — a little more breathing room */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 8rem;
}

/* Feature sections — ensure enough gap between image/text and next section */
.features-section {
  margin-top: 5rem;
  margin-bottom: 5rem;
  display: flex;
  align-items: center;
  gap: 4rem; /* space between image and text */
}

.features-section img {
  flex: 1;
  max-width: 50%;
}

.features-section .feature-text {
  flex: 1;
}

/* Learn section (Find & Trade Profitable Credit Spreads) */
.learn-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  margin-top: 4rem;
  margin-bottom: 6rem;
}

.learn-box {
  padding: 3rem 2rem;
}

/* FAQ section */
.faq-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.faq-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

/* Subscribe section above footer */
.subscribe-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: var(--ghost-accent-color);
  color: #fff;
}

.subscribe-section h2,
.subscribe-section p {
  color: #fff;
}

/* Responsive spacing adjustments */
@media (max-width: 992px) {
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .features-section {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .features-section img {
    max-width: 100%;
  }
}
/* === FEATURE HEADER & TEXT SPACING === */
.features-section .feature-text h3 {
  margin-bottom: 1.25rem; /* Add spacing between header and description */
}

.features-section .feature-text p {
  margin-top: 0.5rem; /* Maintain gentle space above text */
  line-height: 1.6;   /* Slightly improve readability */
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 1rem;
}

.report-table th,
.report-table td {
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: center;
}

.report-table th {
  background-color: #f3f6fb;
  font-weight: 700;
}
