.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Deep gray for light background */
  background-color: #FFFFFF;
}

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

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border: none;
  box-shadow: none;
  filter: none; /* Ensure no image filter */
}

.page-index__access-links-section {
  padding: 30px 12px;
  box-sizing: border-box;
  background-color: #FFFFFF;
}

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

.page-index__btn-access-link {
  display: block;
  padding: 15px 20px;
  background-color: #26A9E0; /* Primary color */
  color: #FFFFFF; /* White text */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-access-link:hover {
  background-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__brand-intro-section {
  padding: 40px 12px;
  background-color: #FFFFFF;
  box-sizing: border-box;
}

.page-index__brand-intro-content {
  max-width: 1250px;
  margin: 0 auto;
  text-align: center;
}

.page-index__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-index__intro-text {
  font-size: 17px;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__intro-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-index__intro-link:hover {
  color: #1e87c0;
}

.page-index__category-lobby-section {
  padding: 50px 12px;
  background-color: #f8f8f8;
  box-sizing: border-box;
}

.page-index__category-lobby-content {
  max-width: 1250px;
  margin: 0 auto;
  text-align: center;
}

.page-index__category-lobby-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #000000;
  margin-bottom: 30px;
  position: relative;
}

.page-index__category-lobby-title::before,
.page-index__category-lobby-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background-color: #26A9E0;
}

.page-index__category-lobby-title::before {
  left: calc(50% - 100px);
}

.page-index__category-lobby-title::after {
  right: calc(50% - 100px);
}

.page-index__category-lobby-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

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

.page-index__category-card-link {
  display: block;
  text-decoration: none;
  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;
  filter: none; /* Ensure no image filter */
  transition: transform 0.2s ease;
  min-width: 200px;
  min-height: 200px;
}

.page-index__category-card-link:hover img {
  transform: scale(1.03);
}

.page-index__blog-slider-section {
  padding: 50px 12px;
  background-color: #FFFFFF;
  box-sizing: border-box;
}

.page-index__blog-slider-header {
  max-width: 1250px;
  margin: 0 auto 30px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.page-index__blog-slider-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.page-index__blog-slider-nav {
  display: flex;
  gap: 10px;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background-color: #1e87c0;
  transform: scale(1.1);
}

.page-index__blog-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px; /* Space for scrollbar */
  max-width: 1250px;
  margin: 0 auto;
}

.page-index__blog-slider-track::-webkit-scrollbar {
  height: 8px;
}

.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background-color: #26A9E0;
  border-radius: 10px;
}

.page-index__blog-slider-track::-webkit-scrollbar-track {
  background-color: #e0e0e0;
  border-radius: 10px;
}

.page-index__post-item {
  flex: 0 0 calc(33.333% - 11px); /* 3 items per row, with gap */
  scroll-snap-align: start;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 280px; /* Minimum width for card */
}

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

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

.page-index__post-image-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.page-index__post-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no image filter */
  min-width: 200px;
  min-height: 200px;
}

.page-index__post-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: bold;
}

.page-index__post-title {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  padding: 15px;
  margin: 0;
  line-height: 1.4;
  min-height: 60px; /* Ensure consistent title height */
}

.page-index__post-excerpt {
  font-size: 15px;
  color: #555555;
  padding: 0 15px 15px;
  margin: 0;
}

.page-index__why-choose-section {
  padding: 50px 12px;
  background-color: #f0f8ff; /* Light blue background */
  box-sizing: border-box;
}

.page-index__why-choose-content {
  max-width: 1250px;
  margin: 0 auto;
  text-align: center;
}

.page-index__why-choose-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #000000;
  margin-bottom: 40px;
}

.page-index__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-index__why-choose-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.2s ease;
}

.page-index__why-choose-item:hover {
  transform: translateY(-8px);
}

.page-index__why-choose-heading {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index__why-choose-text {
  font-size: 16px;
  color: #333333;
  line-height: 1.7;
}

.page-index__responsible-gaming-section {
  padding: 60px 12px;
  background-color: #26A9E0; /* Primary color background */
  color: #FFFFFF; /* White text */
  box-sizing: border-box;
}

.page-index__responsible-gaming-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.page-index__responsible-gaming-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 25px;
}

.page-index__responsible-gaming-text {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
}

.page-index__responsible-gaming-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__responsible-gaming-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.page-index__responsible-gaming-item::before {
  content: '✓';
  color: #FFFFFF;
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

.page-index__btn-responsible-gaming {
  display: inline-block;
  padding: 15px 30px;
  background-color: #EA7C07; /* Login custom color for CTA */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-responsible-gaming:hover {
  background-color: #c96806;
  transform: translateY(-3px);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-index__category-lobby-title::before,
  .page-index__category-lobby-title::after {
    width: 30px;
    left: calc(50% - 80px);
    right: calc(50% - 80px);
  }

  .page-index__post-item {
    flex: 0 0 calc(50% - 8px); /* 2 items per row */
  }

  .page-index__why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@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) {
  /* General content area padding for mobile */
  .page-index__hero-section,
  .page-index__access-links-section,
  .page-index__brand-intro-section,
  .page-index__category-lobby-section,
  .page-index__blog-slider-section,
  .page-index__why-choose-section,
  .page-index__responsible-gaming-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}