.page-index {
  color: #333333;
}

/* Hero Section - Flatsome style banner */
.page-index__hero-section {
  padding-top: 0;
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

.page-index__hero-container {
  width: 100%;
  margin: 0;
}

.page-index__hero-link {
  display: block;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 17 / 5;
}

/* Logo Grid Section - 4+2 layout with white background */
.page-index__logo-grid-section {
  max-width: 1200px;
  margin: 16px auto 32px;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-index__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  justify-items: center;
  list-style: none;
}

.page-index__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 8px 8px 12px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.page-index__logo-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.page-index__logo-cta {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(17, 59, 122, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__logo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 95, 209, 0.5);
}

/* 4+2 layout: center the 5th and 6th items */
.page-index__logo-item:nth-child(5) {
  grid-column: 2;
}

.page-index__logo-item:nth-child(6) {
  grid-column: 3;
}

/* Guide Section - Main SEO content area */
.page-index__guide-section {
  width: 100%;
  background-color: #ffffff;
}

.page-index__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  box-sizing: border-box;
}

.page-index__guide-title {
  text-align: center;
  color: #113B7A;
  margin: 12px 0 20px;
  font-size: 1.75rem;
  line-height: 1.4;
  font-weight: 700;
}

.page-index__guide-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.page-index__guide-section h2 {
  color: #1D5FD1;
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.page-index__guide-section h3 {
  color: #113B7A;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.page-index__guide-section p {
  line-height: 1.8;
}

.page-index__guide-section ul,
.page-index__guide-section ol {
  line-height: 1.8;
  padding-left: 24px;
}

.page-index__guide-figure {
  margin: 24px auto;
  text-align: center;
  max-width: 800px;
}

.page-index__guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.page-index__guide-figure figcaption {
  font-size: 0.9rem;
  color: #666666;
  margin-top: 8px;
}

.page-index__guide-section a {
  color: #1D5FD1;
  text-decoration: underline;
}

/* FAQ Section */
.page-index__faq details {
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px;
  background-color: #fafafa;
}

.page-index__faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #113B7A;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-index__faq summary::-webkit-details-marker {
  display: none;
}

.page-index__faq summary span {
  color: #1D5FD1;
  font-size: 1.2rem;
  margin-left: 8px;
}

.page-index__guide-quote {
  border-left: 4px solid #F2C14E;
  padding: 12px 20px;
  margin: 24px 0;
  background-color: #f8f6f0;
  font-style: italic;
}

/* Responsive Styles for Tablet and Mobile */
@media (max-width: 768px) {
  .page-index__hero-image {
    aspect-ratio: 2 / 1;
  }

  .page-index__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 12px;
  }

  .page-index__logo-item {
    max-width: 100%;
    padding: 6px 4px 10px 4px;
  }

  /* Reset nth-child positioning on mobile */
  .page-index__logo-item:nth-child(5),
  .page-index__logo-item:nth-child(6) {
    grid-column: auto;
  }

  .page-index__guide-title {
    font-size: 1.4rem;
  }

  .page-index__guide-section h2 {
    font-size: 1.3rem;
  }

  .page-index__guide-section h3 {
    font-size: 1.1rem;
  }

  .page-index__guide-inner {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-index__guide-figure {
    margin: 16px auto;
  }

  .page-index__guide-figure img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure all images within content don't overflow on mobile */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-index__logo-cta {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
  }

  .page-index__logo-item {
    gap: 8px;
  }
}

/* Small phones / very narrow screens */
@media (max-width: 360px) {
  .page-index__logo-grid {
    grid-template-columns: 1fr;
  }
}