/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07;
  --text-color: #333333;
  --light-bg: #FFFFFF;
  --dark-bg-text: #FFFFFF;
  --light-bg-text: #333333;
  --border-color: #e0e0e0;
}

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

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

.page-index__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-index__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 17px;
  color: #555;
}

.page-index__dark-bg {
  background-color: var(--primary-color);
  color: var(--dark-bg-text);
}

.page-index__dark-bg .page-index__section-description {
  color: rgba(255, 255, 255, 0.9);
}

.page-index__light-bg {
  background-color: var(--light-bg);
  color: var(--light-bg-text);
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__cta-button,
.page-index__quick-link-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary,
.page-index__cta-button {
  background: var(--secondary-color);
  color: var(--dark-bg-text);
  border: none;
}

.page-index__btn-primary:hover,
.page-index__cta-button:hover {
  background: #d46c06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary,
.page-index__quick-link-button {
  background: var(--dark-bg-text);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover,
.page-index__quick-link-button:hover {
  background: var(--primary-color);
  color: var(--dark-bg-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, main offset from body */
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  background-color: rgba(38, 169, 224, 0.9);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--dark-bg-text);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-index__hero-content p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
}

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

.page-index__intro-item {
  background: var(--light-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__intro-item h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__intro-item p {
  font-size: 16px;
  color: #555;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 80px 0;
  text-align: center;
}

.page-index__quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
}

.page-index__game-category {
  background: var(--light-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  padding: 30px;
  text-align: center;
}

.page-index__game-category img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-index__game-category h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__game-category p {
  font-size: 17px;
  color: #555;
  margin-bottom: 25px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
}

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

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--dark-bg-text);
}

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

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

.page-index__promotion-card h3 {
  font-size: 22px;
  color: var(--dark-bg-text);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__promotion-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
}

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

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

.page-index__info-card {
  background: var(--light-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-index__info-card h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__info-card p {
  font-size: 16px;
  color: #555;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--light-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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;
}

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color);
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

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

details.page-index__faq-item .page-index__faq-answer p {
  font-size: 16px;
  margin-bottom: 0;
}

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

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

.page-index__blog-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--dark-bg-text);
}

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

.page-index__blog-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-index__blog-content {
  padding: 25px;
}

.page-index__blog-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.page-index__blog-content h3 a {
  color: var(--dark-bg-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-content h3 a:hover {
  color: var(--secondary-color);
}

.page-index__blog-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.page-index__blog-content time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

.page-index__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-content {
    padding: 25px;
  }
  .page-index__hero-content h1 {
    font-size: clamp(28px, 4.5vw, 42px);
  }
  .page-index__hero-content p {
    font-size: clamp(15px, 2vw, 18px);
  }
  .page-index__intro-item, .page-index__promotion-card, .page-index__info-card, .page-index__blog-card {
    padding: 25px;
  }
  .page-index__intro-item h3, .page-index__info-card h3 {
    font-size: 22px;
  }
  .page-index__game-category h3 {
    font-size: 26px;
  }
  .page-index__blog-content h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 30px;
  }
  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-image img {
    border-radius: 8px;
  }
  .page-index__hero-content {
    border-radius: 8px;
    padding: 20px;
  }
  .page-index__hero-content h1 {
    font-size: clamp(26px, 7vw, 38px);
    margin-bottom: 15px;
  }
  .page-index__hero-content p {
    font-size: clamp(14px, 3.5vw, 16px);
    margin-bottom: 25px;
  }
  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-index__intro-section, .page-index__quick-links-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-support-section, .page-index__faq-section, .page-index__blog-section {
    padding: 60px 0;
  }
  
  .page-index__intro-grid, .page-index__promotions-grid, .page-index__security-support-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .page-index__intro-item, .page-index__promotion-card, .page-index__info-card, .page-index__blog-card {
    padding: 20px;
  }
  .page-index__intro-item h3, .page-index__info-card h3 {
    font-size: 20px;
  }
  .page-index__intro-item p, .page-index__info-card p {
    font-size: 15px;
  }

  .page-index__game-category {
    padding: 25px;
    margin-bottom: 30px;
  }
  .page-index__game-category h3 {
    font-size: 24px;
  }
  .page-index__game-category p {
    font-size: 16px;
  }

  .page-index__quick-links-grid {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__quick-link-button {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
  .page-index__blog-content h3 {
    font-size: 18px;
  }
  .page-index__blog-content p {
    font-size: 15px;
  }
  .page-index__view-all-button {
    margin-top: 40px;
  }

  /* Force responsive images and buttons */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-section,
  .page-index__intro-section,
  .page-index__quick-links-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section,
  .page-index__intro-item,
  .page-index__game-category,
  .page-index__promotion-card,
  .page-index__info-card,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .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__quick-links-grid {
    flex-direction: column !important;
  }
}