.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background: #ffffff;
}

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

.page-index__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #017439;
  border-radius: 2px;
}

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

.page-index__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-index__btn-primary:hover {
  background: #005f2e;
  border-color: #005f2e;
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

.page-index__hero-section {
  padding-top: 10px; /* Aligns with body padding-top from shared.css */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-bottom: 40px;
}

.page-index__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 810px;
}

.page-index__access-links-section {
  margin-bottom: 40px;
  padding: 30px 0;
  background: #f9f9f9;
}

.page-index__access-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-index__btn-access-link {
  background-color: #017439;
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #017439;
  font-size: 1.1em;
  padding: 15px 20px;
  border-radius: 10px;
}

.page-index__btn-access-link:hover {
  background-color: #005f2e;
  border-color: #005f2e;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__brand-intro {
  max-width: 900px;
  margin: 0 auto 60px auto;
  padding: 0 15px;
  text-align: center;
}

.page-index__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__intro-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: #555555;
  text-align: justify;
}

.page-index__brand-link,
.page-index__intro-cta,
.page-index__responsible-gaming-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-index__brand-link:hover,
.page-index__intro-cta:hover,
.page-index__responsible-gaming-link:hover {
  color: #005f2e;
}

.page-index__category-lobby {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #f9f9f9;
}

.page-index__category-lobby__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-index__category-card,
.page-index__category-card-link {
  display: block;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.page-index__category-card-link img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.page-index__category-card-link:hover img {
  transform: translateY(-5px);
}

.page-index__blog-slider-section {
  margin-bottom: 60px;
  padding: 40px 0;
}

.page-index__blog-slider-wrapper {
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-index__blog-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 15px;
}

.page-index__post-item {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 280px;
  box-sizing: border-box;
}

.page-index__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__post-link {
  text-decoration: none;
  color: #333333;
  display: block;
}

.page-index__image-cover {
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-index__image-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__post-content {
  padding: 15px;
  position: relative;
}

.page-index__post-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
  line-height: 1.4;
  min-height: 60px; /* Ensure consistent height */
}

.page-index__post-excerpt {
  font-size: 0.9em;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-index__post-date {
  font-size: 0.8em;
  color: #999999;
  display: block;
  text-align: right;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #017439;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

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

.page-index__blog-slider-prev {
  left: -5px;
}

.page-index__blog-slider-next {
  right: -5px;
}

.page-index__view-all-posts {
  text-align: center;
  margin-top: 30px;
}

.page-index__btn-view-all {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-index__btn-view-all:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-index__why-choose-us,
.page-index__featured-games,
.page-index__promotions-section,
.page-index__download-app-section,
.page-index__contact-support-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__feature-item {
  text-align: center;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__feature-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  text-align: justify;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__game-category-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index__game-category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-category-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-category-title {
  font-size: 1.3em;
  color: #017439;
  margin: 15px 0 10px;
  padding: 0 15px;
}

.page-index__game-category-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  padding: 0 15px 20px;
  text-align: justify;
}

.page-index__btn-details {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  margin-bottom: 20px;
  padding: 10px 20px;
  border-radius: 5px;
}

.page-index__btn-details:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-index__promo-intro {
  text-align: center;
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__promo-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index__promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__promo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-title {
  font-size: 1.3em;
  color: #017439;
  margin: 15px 0 10px;
  padding: 0 15px;
}

.page-index__promo-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  padding: 0 15px 20px;
  text-align: justify;
}

.page-index__cta-button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-index__responsible-gaming-section {
  background: #017439;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-index__responsible-gaming-section .page-index__section-title {
  color: #ffffff;
}

.page-index__responsible-gaming-section .page-index__section-title::after {
  background-color: #ffffff;
}

.page-index__responsible-gaming-section .page-index__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 30px auto;
  padding: 0 15px;
  text-align: justify;
}

.page-index__responsible-gaming-section .page-index__btn-primary {
  background: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

.page-index__responsible-gaming-section .page-index__btn-primary:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #005f2e;
}

.page-index__download-app-section .page-index__container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index__download-content {
  flex: 1;
  min-width: 300px;
}

.page-index__download-content .page-index__section-title {
  text-align: left;
  margin-bottom: 20px;
}

.page-index__download-content .page-index__section-title::after {
  left: 0;
  transform: translateX(0);
}

.page-index__download-content .page-index__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 30px;
  text-align: justify;
}

.page-index__download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__btn-download {
  background-color: #C30808; /* Custom color for download buttons */
  color: #FFFF00; /* Custom color for download button font */
  border: 2px solid #C30808;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-index__btn-download:hover {
  background-color: #a30707;
  border-color: #a30707;
}

/* Basic icon styling, assuming a font icon or simple char */
.page-index__icon-apple::before {
  content: '\24BE'; /* Placeholder for Apple icon */
  font-size: 1.2em;
}

.page-index__icon-android::before {
  content: '\24B6'; /* Placeholder for Android icon */
  font-size: 1.2em;
}

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

.page-index__download-image img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

.page-index__contact-support-section {
  padding: 60px 0;
  background: #f9f9f9;
  text-align: center;
}

.page-index__contact-support-section .page-index__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
  max-width: 900px;
  margin: 0 auto 30px auto;
  padding: 0 15px;
  text-align: justify;
}

.page-index__contact-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-index__copyright {
  padding: 20px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
  font-size: 0.9em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 2.5em;
  }
  .page-index__category-lobby__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    display: none;
  }
}

@media (max-width: 849px) {
  .page-index__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: none !important;
  }
}

@media (max-width: 768px) {
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-index__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-index__intro-text {
    font-size: 1em;
  }
  .page-index__access-links-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .page-index__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }
  .page-index__blog-slider-track {
    padding: 0 20px 15px;
  }
  .page-index__post-item {
    flex: 0 0 85%;
    min-width: 85%;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    display: none; /* Hide arrows on small mobile */
  }
  .page-index__cta-button-group,
  .page-index__contact-methods {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-access-link,
  .page-index__btn-view-all,
  .page-index__btn-details,
  .page-index__btn-download {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__download-app-section .page-index__container {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }
  .page-index__download-content .page-index__section-title {
    text-align: center;
  }
  .page-index__download-content .page-index__section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .page-index__download-buttons {
    flex-direction: column;
    width: 100%;
  }
  .page-index__download-image img {
    width: 80%;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section, .page-index__card, .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-section {
    margin-bottom: 20px;
  }
  .page-index__access-links-section {
    margin-bottom: 20px;
    padding: 20px 0;
  }
  .page-index__brand-intro {
    margin-bottom: 30px;
  }
  .page-index__category-lobby {
    margin-bottom: 30px;
    padding: 30px 0;
  }
  .page-index__blog-slider-section {
    margin-bottom: 30px;
    padding: 30px 0;
  }
  .page-index__why-choose-us,
  .page-index__featured-games,
  .page-index__promotions-section,
  .page-index__download-app-section,
  .page-index__contact-support-section {
    padding: 40px 0;
    margin-bottom: 20px;
  }
  .page-index__promo-intro,
  .page-index__responsible-gaming-section .page-index__text-block,
  .page-index__contact-support-section .page-index__text-block {
    padding: 0 20px;
  }
}

@media (max-width: 549px) {
  .page-index__category-lobby__grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-index__main-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
}