/* style/index.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --jackpot-color: #ffd700;
  --hot-game-tab-color: #ff0000;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-color);
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-index__text-block {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-light);
}

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

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-index__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-index__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-index__btn-tertiary {
  background: var(--login-color);
  color: var(--text-light);
  border: 2px solid var(--login-color);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 6px;
}

.page-index__btn-tertiary:hover {
  background: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__mt-40 {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__dark-section {
  background: #0d0d0d; /* Dark background for contrast */
  color: var(--text-light);
}

.page-index__dark-section .page-index__section-title,
.page-index__dark-section .page-index__text-block,
.page-index__dark-section h3 {
  color: var(--text-light);
}

/* LOGO Carousel Section */
.page-index__logo-carousel-section {
  width: 100%;
  padding: 10px 20px 30px;
  background: #1a1a1a;
}

.page-index__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-index__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.page-index__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-index__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-index__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.page-index__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-index__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Follows LOGO carousel, body handles header offset */
  margin-top: 0;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
}

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

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

/* Games Display Section */
.page-index__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #1a1a1a;
}

.page-index__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-index__featured-game-area {
  width: 100%;
}

.page-index__featured-game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: var(--jackpot-color);
  text-align: left;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.page-index__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-index__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__games-grid-area {
  width: 100%;
}

.page-index__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-index__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-index__games-tab:hover {
  color: var(--text-light);
}

.page-index__games-tab.active {
  color: var(--hot-game-tab-color);
  text-decoration: underline;
}

.page-index__games-tab.active + .page-index__games-tab {
  color: var(--text-light);
}

.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-index__games-grid.active {
  display: grid;
}

.page-index__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.page-index__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-index__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Homepage Intro Section */
.page-index__intro-section {
  padding: 80px 20px;
  text-align: center;
}

.page-index__main-title {
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: clamp(28px, 3.5vw, 48px); /* Clamp for responsive H1 */
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #cccccc;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 80px 20px;
  background: var(--background-color);
}

.page-index__quick-links-section .page-index__section-title {
  color: var(--text-dark);
}

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

.page-index__link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-index__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  color: darken(var(--primary-color), 10%);
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 80px 20px;
}

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

.page-index__category-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

.page-index__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-index__category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__category-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index__category-card p {
  font-size: 15px;
  color: #cccccc;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background: var(--background-color);
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__text-block {
  color: var(--text-dark);
}

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

.page-index__promo-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promo-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
  padding: 0 20px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 20px;
}

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

.page-index__feature-item {
  text-align: center;
  padding: 25px;
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
}

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin: 0 auto 20px;
}

.page-index__feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index__feature-item p {
  font-size: 15px;
  color: #cccccc;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background: var(--background-color);
}

.page-index__faq-section .page-index__section-title {
  color: var(--text-dark);
}

.page-index__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-dark);
}

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

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #f5f5f5;
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
}

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

.page-index__blog-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

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

.page-index__blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__blog-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-light);
  padding: 0 20px;
}

.page-index__blog-card p {
  font-size: 14px;
  color: #cccccc;
  padding: 0 20px;
  margin-bottom: 15px;
}

/* --- Responsive Styles (Mobile First) --- */

@media (max-width: 1024px) {
  .page-index__games-layout {
    grid-template-columns: 1fr;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__game-categories,
  .page-index__promotions-grid,
  .page-index__features-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__section-title {
    font-size: 28px;
  }
  .page-index__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .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__logo-carousel-section {
    padding: 10px 15px 20px;
  }
  .page-index__logo-carousel {
    gap: 12px;
  }
  .page-index__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
  }
  .page-index__logo-item a {
    padding: 8px;
  }
  .page-index__hero-section {
    padding-top: 0 !important;
  }
  .page-index__games-section {
    padding: 40px 15px;
  }
  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__featured-game-title {
    font-size: 20px;
  }
  .page-index__featured-game-image {
    height: 300px;
  }
  .page-index__games-tabs {
    gap: 15px;
  }
  .page-index__games-tab {
    font-size: 16px;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index__game-card-image {
    height: 150px;
  }
  .page-index__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }
  .page-index__intro-section {
    padding: 40px 15px;
  }
  .page-index__main-title {
    font-size: clamp(22px, 6vw, 36px);
  }
  .page-index__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-tertiary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    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__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-index__text-block {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-index__quick-links-section {
    padding: 40px 15px;
  }
  .page-index__links-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-index__link-card {
    font-size: 16px;
    padding: 20px;
  }
  .page-index__core-games-section {
    padding: 40px 15px;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__category-card h3 {
    font-size: 20px;
  }
  .page-index__category-card p {
    font-size: 14px;
  }
  .page-index__promotions-section {
    padding: 40px 15px;
  }
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__promo-card h3 {
    font-size: 18px;
  }
  .page-index__promo-card p {
    font-size: 14px;
  }
  .page-index__security-support-section {
    padding: 40px 15px;
  }
  .page-index__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__feature-item h3 {
    font-size: 18px;
  }
  .page-index__feature-item p {
    font-size: 14px;
  }
  .page-index__faq-section {
    padding: 40px 15px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 15px;
  }
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
  .page-index__blog-section {
    padding: 40px 15px;
  }
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__blog-card h3 {
    font-size: 18px;
  }
  .page-index__blog-card p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-index__games-grid {
    grid-template-columns: 1fr;
  }
  .page-index__games-tab {
    font-size: 14px;
  }
  .page-index__game-card-image {
    height: 120px;
  }
  .page-index__game-card-title {
    font-size: 12px;
  }
  .page-index__links-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-categories,
  .page-index__promotions-grid,
  .page-index__features-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
}