/* style/index.css */
:root {
  --primary-color: #0A2239;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #0A2239;
  --border-color: #e0e0e0;
}

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

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

.page-index section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-index h1, .page-index h2, .page-index h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-index h1 {
  font-size: 3.2em;
  color: var(--text-light);
}

.page-index h2 {
  font-size: 2.5em;
}

.page-index h3 {
  font-size: 1.8em;
  color: var(--primary-color);
}

.page-index p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-index .text-center {
  text-align: center;
}

.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index .cta-button.small-button {
  padding: 10px 25px;
  font-size: 0.95em;
}

/* HERO Section */
.page-index .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 100px;
  background-color: var(--background-dark);
  overflow: hidden;
}

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

.page-index .hero-image {
  width: 100%;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.page-index .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  margin-top: -80px; /* Overlap with image slightly for visual appeal */
}

.page-index .hero-content h1 {
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.page-index .hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-index .hero-actions .cta-button {
  margin: 0 15px;
}

.page-index .hero-actions .secondary-cta {
  background: none;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.page-index .hero-actions .secondary-cta:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* Intro Section */
.page-index .intro-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

.page-index .intro-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index .intro-text {
  flex: 2;
}

.page-index .intro-image {
  flex: 1;
}

.page-index .intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Quick Access Section */
.page-index .quick-access-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-index .quick-access-section h2 {
  color: var(--secondary-color);
}

.page-index .quick-access-section p {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

.page-index .access-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-index .access-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-color);
}

.page-index .access-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.5em;
}

.page-index .access-card p {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Games Section */
.page-index .games-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

.page-index .games-section > p {
  text-align: center;
  margin-bottom: 50px;
}

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

.page-index .game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-index .game-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index .game-card p {
  font-size: 0.95em;
  color: #666;
  padding: 0 20px;
  margin-bottom: 25px;
}

/* Promotions Section */
.page-index .promotions-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-index .promotions-section h2 {
  color: var(--secondary-color);
}

.page-index .promotions-section > p {
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-light);
}

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

.page-index .promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-index .promo-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-color);
}

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

.page-index .promo-card h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index .promo-card p {
  font-size: 0.95em;
  color: var(--text-light);
  padding: 0 20px;
  margin-bottom: 25px;
}

/* Security & Customer Service Section */
.page-index .security-customer-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

.page-index .security-customer-section > p {
  text-align: center;
  margin-bottom: 50px;
}

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

.page-index .security-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .security-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index .security-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index .security-item h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-index .security-item p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 0;
}

/* FAQ Section */
.page-index .faq-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-index .faq-section h2 {
  color: var(--secondary-color);
}

.page-index .faq-section > p {
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-light);
}

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

.page-index .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a3d52;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index .faq-question:hover {
  background: #3a506b;
}

.page-index .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--text-light);
  text-align: left;
}

.page-index .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-index .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #ffffff;
  color: var(--text-dark);
}

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 25px;
  background: #ffffff;
}

.page-index .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Blog Section */
.page-index .blog-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

.page-index .blog-section > p {
  text-align: center;
  margin-bottom: 50px;
}

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

.page-index .blog-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-index .blog-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 20px;
  text-align: left;
  color: var(--primary-color);
}

.page-index .blog-card p {
  font-size: 0.9em;
  color: #666;
  padding: 0 20px;
  margin-bottom: 15px;
  text-align: left;
}

.page-index .blog-card span {
  display: block;
  font-size: 0.85em;
  color: #999;
  padding: 0 20px 20px;
  text-align: left;
}

/* Floating Buttons */
.page-index .floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-index .floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  font-size: 1.1em;
}

.page-index .floating-btn:hover {
  transform: scale(1.05);
  background-color: #e6c200;
}

.page-index .floating-btn.login-btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-index .floating-btn.login-btn:hover {
  background-color: #1a3c5a;
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index h1 {
    font-size: 2.8em;
  }
  .page-index h2 {
    font-size: 2em;
  }
  .page-index h3 {
    font-size: 1.6em;
  }
  .page-index .hero-content p {
    font-size: 1.1em;
  }
  .page-index .intro-grid {
    flex-direction: column;
    text-align: center;
  }
  .page-index .intro-text, .page-index .intro-image {
    flex: none;
    width: 100%;
  }
  .page-index .intro-image img {
    max-width: 80%;
    margin: 0 auto;
  }
  .page-index .hero-actions .cta-button {
    margin: 10px;
  }
}

@media (max-width: 768px) {
  .page-index section {
    padding: 40px 0;
  }
  .page-index h1 {
    font-size: 2.2em;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
  .page-index p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index .hero-image {
    margin-bottom: 20px;
  }
  .page-index .hero-content {
    margin-top: -60px;
  }
  .page-index .hero-content p {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index .quick-access-grid, .page-index .games-grid, .page-index .promotions-grid, .page-index .security-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index .game-card img, .page-index .promo-card img, .page-index .blog-card img {
    height: 180px;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-toggle {
    font-size: 20px;
  }
  .page-index .faq-item.active .faq-answer {
    padding: 20px;
  }
  .page-index .floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 10px;
    width: auto;
  }
  .page-index .floating-btn {
    width: 120px;
    height: 45px;
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-index .hero-section {
    padding: 60px 15px 80px;
  }
  .page-index h1 {
    font-size: 1.8em;
  }
  .page-index h2 {
    font-size: 1.6em;
  }
  .page-index h3 {
    font-size: 1.2em;
  }
  .page-index .hero-content {
    margin-top: -40px;
  }
  .page-index .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index .hero-actions .cta-button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index .intro-image img {
    max-width: 100%;
  }
  .page-index .quick-access-grid {
    grid-template-columns: 1fr;
  }
  .page-index .floating-buttons {
    bottom: 15px;
    right: 15px;
  }
  .page-index .floating-btn {
    width: 100px;
    height: 40px;
    font-size: 0.9em;
  }
}