
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
  background-color: #ffffff;
}

/* ===== Hero Section ===== */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  background: #ffffff;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  text-align: left;
  padding-left: 2.5rem;
  gap: 1rem;
}

.hero-text h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.hero-text p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background-color: #1e40af;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1.5rem;
  max-width: unset !important;
}

.hero-image img {
  width: 100%;
  max-width: 420px; 
  height: auto;
  transform: translateY(10px);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero-image img {
    max-width: 360px;
  }
  .hero-text {
    padding-left: 0;
  }
}


/* ========== Homepage Beginners Carousel ========== */

.guides-carousel {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
  overflow: hidden;
}

.guides-carousel h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 0 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1.5rem;
  will-change: transform;
}

/* Cards */
.guide-card {
  flex: 0 0 calc(25% - 1.125rem);
  box-sizing: border-box;
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: left;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.guide-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.guide-card p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.guide-card a {
  margin-top: auto;
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  text-align: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card a:hover {
  background-color: #1e40af;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  transition: background 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.carousel-btn:hover {
  background: #f3f4f6;
}

.prev {
  left: 0.5rem;
}

.next {
  right: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .carousel-container {
    padding: 0;
  }

  .guide-card {
    flex: 0 0 100%;
  }

  .carousel-btn {
    display: none;
  }
}

.guide-card img {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}



/* ========== Investment Calculator Promo Section (Replaces Mission) ========== */

.calculator-promo {
  background: #f9fafb;
  padding: 4rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.calculator-promo-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.calculator-promo-text {
  flex: 1;
  min-width: 300px;
  padding-left: 2.5rem;
}

.calculator-promo-text h2 {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 1rem;
}

.calculator-promo-text p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.calculator-cta {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.calculator-cta:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

.calculator-promo-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.calculator-promo-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Mobile optimisation */
@media (max-width: 768px) {
  .calculator-promo-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .calculator-cta {
    margin-top: 1rem;
  }
  .calculator-promo-text {
    flex: 1;
    min-width: 300px;
    padding-left: 0;
  }
}

/* ============= Before you invest ============= */

/* BEFORE YOU INVEST SECTION */
.before-invest {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.before-invest h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.before-invest-sub {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.before-invest-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.before-tile {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.before-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.before-tile img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.before-tile h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.before-tile p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.before-tile a {
  margin-top: auto;
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  text-align: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.before-tile a:hover {
  background-color: #1e40af;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}


