.page-index {
  background-color: #0f0000; /* Deep dark background */
  color: #f0e6e6; /* Light text for contrast */
  font-family: Arial, sans-serif;
}

.page-index__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-index__content-section {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__page-title {
  color: #e13923; /* Brand red for H1 */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1250px;
  margin: 24px auto 16px;
  padding: 0 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-index__page-title::before,
.page-index__page-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background-color: #e13923; /* Red lines */
  margin: 0 14px;
}

.page-index__home-content {
  max-width: 1250px;
  margin: 0 auto 36px;
  padding: 0 15px;
  box-sizing: border-box;
  line-height: 1.7;
  font-size: 16px;
}

.page-index__home-content h2,
.page-index__home-content h3 {
  color: #e13923; /* Brand red for subheadings */
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.page-index__home-content p {
  margin-bottom: 1em;
}

.page-index__home-content ul,
.page-index__home-content ol {
  margin: 0 0 1em 20px;
  padding: 0;
}

.page-index__home-content li {
  margin-bottom: 0.5em;
}

.page-index__home-content a {
  color: #2995f3; /* Auxiliary blue for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__home-content a:hover {
  color: #6FA3FF; /* Lighter blue on hover */
  text-decoration: underline;
}

.page-index__wp-caption {
  margin: 20px auto;
  text-align: center;
}

.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-index__wp-caption-text {
  font-style: italic;
  font-size: 14px;
  color: #bbb;
  margin-top: 8px;
}

.page-index__home-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.page-index__home-content td,
.page-index__home-content th {
  border: 1px solid #e13923; /* Red border for tables */
  padding: 10px 12px;
  text-align: left;
}

.page-index__home-content th {
  background-color: rgba(225, 57, 35, 0.2); /* Light red background for table headers */
}

.page-index__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Blue gradient */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Blue text */
  border: 2px solid #2F6BFF;
}

.page-index__btn-secondary:hover {
  background: #f0f8ff;
  color: #2F6BFF;
  border-color: #6FA3FF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-index__blog-section {
  max-width: 1250px;
  margin: 40px auto 60px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__blog-section-title {
  color: #e13923; /* Brand red for blog section title */
  text-align: center;
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  position: relative;
}

.page-index__blog-section-title::before,
.page-index__blog-section-title::after {
  content: '';
  width: 30px;
  height: 2px;
  background-color: #e13923;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.page-index__blog-section-title::before {
  left: calc(50% - 150px);
}

.page-index__blog-section-title::after {
  right: calc(50% - 150px);
}

.page-index__blog-slider {
  position: relative;
  overflow: hidden;
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.4s ease;
}

.page-index__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* 3 columns on desktop, accounting for gap */
  max-width: calc(33.333% - 14px);
  min-width: 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__blog-card-image {
  position: relative;
  padding-top: 56%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.page-index__blog-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-index__blog-card-link:hover .page-index__blog-card-image img {
  transform: scale(1.05);
}

.page-index__blog-card-body {
  text-align: center;
  padding: 14px 10px;
}

.page-index__blog-card-body h5 {
  color: #e13923; /* Red for blog card titles */
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.page-index__blog-card-body p {
  color: #ddd;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit text to 3 lines */
  -webkit-box-orient: vertical;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(47, 107, 255, 0.7); /* Blue translucent buttons */
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background-color: #2F6BFF;
}

.page-index__blog-slider-prev {
  left: 0;
}

.page-index__blog-slider-next {
  right: 0;
}

.page-index__blog-slider-prev::before {
  content: '‹';
}

.page-index__blog-slider-next::before {
  content: '›';
}

/* General image responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important;
  }

  .page-index__page-title {
    font-size: 24px;
    margin: 16px auto 12px;
  }

  .page-index__page-title::before,
  .page-index__page-title::after {
    width: 20px;
    margin: 0 8px;
  }

  .page-index__home-content {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
  }

  .page-index__home-content h2,
  .page-index__home-content h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-index__home-content table {
    font-size: 14px;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }

  .page-index__home-content td,
  .page-index__home-content th {
    white-space: normal;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__blog-section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .page-index__blog-section-title::before,
  .page-index__blog-section-title::after {
    display: none;
  }

  .page-index__blog-slider {
    padding: 0 10px;
  }

  .page-index__blog-slider-track {
    flex-wrap: wrap; /* Allow wrapping for vertical stack */
    justify-content: center;
  }

  .page-index__blog-slide {
    flex: 0 0 100% !important; /* Single column on mobile */
    max-width: 100% !important;
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    display: none; /* Hide slider navigation on mobile if not needed for single column */
  }

  /* Universal image and container rules for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__content-section,
  .page-index__blog-section,
  .page-index__hero-section .page-index__hero-image,
  .page-index__home-content,
  .page-index__blog-slider {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-index__hero-section {
    padding-top: 5px !important;
  }

  .page-index__page-title {
    font-size: 20px;
    margin: 12px auto 8px;
  }

  .page-index__home-content {
    font-size: 14px;
  }

  .page-index__blog-section-title {
    font-size: 20px;
  }
}