/* style/index.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #26A9E0;
  --button-login-color: #EA7C07;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--secondary-color); /* Body background is light, so default text is dark */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* 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, header offset handled by body */
  background-color: var(--bg-dark); /* Using brand color for hero background */
  color: var(--text-color-light);
  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%; /* Ensure full width within max-width */
}

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

.page-index__hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-color-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.page-index__hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 40px;
  color: var(--text-color-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login-color); /* Using login color for primary CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  background: #e06c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
}

/* General Section Styling */
.page-index__intro-section, 
.page-index__games-section, 
.page-index__promotions-section, 
.page-index__security-support-section, 
.page-index__faq-section, 
.page-index__blog-section {
  padding: 80px 0;
}

.page-index__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

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

/* Quick Access Section */
.page-index__access-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-index__access-card {
  background: var(--secondary-color);
  color: var(--text-color-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-index__access-card h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__access-card p {
  font-size: 16px;
  color: #666666;
}

/* Games Section */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-card {
  background: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-card h3 {
  font-size: 22px;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

.page-index__game-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-index__game-card h3 a:hover {
  text-decoration: underline;
}

.page-index__game-card p {
  font-size: 16px;
  color: #666666;
  padding: 0 20px 20px;
}

/* Promotions Section */
.page-index__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__promo-card {
  background: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid #e0e0e0;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-index__promo-card h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

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

.page-index__promo-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-index__promo-button:hover {
  background: #1e87b8;
  transform: translateY(-2px);
}

/* Security & Support Section */
.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-index__feature-card {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__feature-card img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); /* Ensure icons are white on dark background */
}

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

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

.page-index__cta-button--outline {
  background: transparent;
  color: var(--text-color-light);
  border: 2px solid var(--text-color-light);
}

.page-index__cta-button--outline:hover {
  background: var(--text-color-light);
  color: var(--primary-color);
  border-color: var(--text-color-light);
}

/* FAQ Section */
.page-index__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  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;
}

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

.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 8px 8px;
}

details.page-index__faq-item .page-index__faq-answer p {
  font-size: 16px;
  color: #555555;
}

/* Blog Section */
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__blog-card {
  background: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-index__blog-card img {
  width: 100%;
  height: 220px; /* Fixed height for blog images */
  object-fit: cover;
  display: block;
}

.page-index__blog-card h3 {
  font-size: 20px;
  margin: 20px 20px 10px;
}

.page-index__blog-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  line-height: 1.3;
}

.page-index__blog-card h3 a:hover {
  text-decoration: underline;
}

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

.page-index__blog-date {
  display: block;
  font-size: 14px;
  color: #999999;
  padding: 0 20px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-index__hero-content p {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  }
  .page-index__games-grid, .page-index__promotions-grid, .page-index__access-links-grid, .page-index__features-grid, .page-index__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .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 h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-index__hero-content p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin: 8px auto;
    display: block;
    max-width: 90%;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-index__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__intro-section, 
  .page-index__games-section, 
  .page-index__promotions-section, 
  .page-index__security-support-section, 
.page-index__faq-section, 
.page-index__blog-section {
    padding: 50px 0;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__game-card img, .page-index__promo-card img, .page-index__blog-card img {
    
  }
  .page-index__game-card h3, .page-index__promo-card h3, .page-index__blog-card h3 {
    font-size: 18px;
  }
  .page-index__access-links-grid, .page-index__games-grid, .page-index__promotions-grid, .page-index__features-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  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: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
  .page-index__feature-card img {
    
    
  }
}

@media (max-width: 480px) {
  .page-index__hero-content h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-index__hero-content p {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__section-description {
    font-size: 15px;
  }
  .page-index__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
}