/* style/index.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

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

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

/* 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: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-index .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
}

.page-index .hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-index .cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--primary-color);
}

.page-index .cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--text-light);
}

/* General Section Styling */
.page-index section {
  padding: 80px 0;
  margin-bottom: 20px;
}

.page-index section:nth-of-type(odd) {
  background-color: var(--background-light);
}

.page-index section:nth-of-type(even) {
  background-color: var(--text-light);
}

.page-index h2 {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

.page-index p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* Intro Section */
.page-index .intro-section .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index .intro-section .intro-content {
  flex: 1;
}

.page-index .intro-section .intro-content p {
  text-align: justify;
}

.page-index .intro-section .intro-image {
  flex: 0 0 500px;
  text-align: center;
}

.page-index .intro-section .intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Quick Access Section */
.page-index .quick-access-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
}

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

.page-index .quick-access-section p {
  color: var(--text-light);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-index .access-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.page-index .access-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-index .access-button:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--text-light);
}

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

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

.page-index .game-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index .game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.page-index .game-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index .game-card h3 a:hover {
  color: var(--primary-color);
}

.page-index .game-card p {
  padding: 0 20px;
  font-size: 1em;
  flex-grow: 1;
}

.page-index .game-card .read-more-button {
  display: inline-block;
  padding: 12px 25px;
  margin: 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.page-index .game-card .read-more-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

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

.page-index .promo-card {
  background: linear-gradient(145deg, var(--primary-color), var(--primary-color) 60%, rgba(255, 215, 0, 0.7));
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

.page-index .promo-card h3 {
  color: var(--secondary-color);
  margin: 20px 15px 10px;
}

.page-index .promo-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index .promo-card h3 a:hover {
  color: var(--text-dark);
}

.page-index .promo-card p {
  color: var(--text-dark);
  font-size: 1em;
  padding: 0 15px;
}

.page-index .promo-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-index .promo-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Security & Support Section */
.page-index .security-support-section {
  background-color: var(--background-light);
}

.page-index .security-support-section .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index .security-support-section .security-content {
  flex: 1;
}

.page-index .security-support-section .security-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-index .security-support-section .security-content ul li {
  margin-bottom: 10px;
  font-size: 1.1em;
  position: relative;
  padding-left: 30px;
}

.page-index .security-support-section .security-content ul li::before {
  content: '✅'; /* Unicode checkmark */
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 1.2em;
  line-height: 1.6;
}

.page-index .security-support-section .security-image {
  flex: 0 0 500px;
  text-align: center;
}

.page-index .security-support-section .security-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index .contact-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-index .contact-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

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

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

.page-index .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

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

.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: var(--text-light);
}

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.page-index .faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

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

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

.page-index .article-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index .article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-index .article-card h3 {
  padding: 20px 20px 0;
  margin-bottom: 10px;
  font-size: 1.4em;
}

.page-index .article-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index .article-card h3 a:hover {
  color: var(--primary-color);
}

.page-index .article-card p {
  padding: 0 20px;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-index .article-card .article-date {
  display: block;
  font-size: 0.85em;
  color: #888;
  padding: 10px 20px 20px;
}

.page-index .view-all-button {
  display: block;
  width: fit-content;
  margin: 50px auto 0;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-index .view-all-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .hero-content h1 {
    font-size: 2.8em;
  }
  .page-index .hero-content p {
    font-size: 1.2em;
  }
  .page-index h2 {
    font-size: 2.2em;
  }
  .page-index .intro-section .container,
  .page-index .security-support-section .container {
    flex-direction: column;
  }
  .page-index .intro-section .intro-image,
  .page-index .security-support-section .security-image {
    flex: none;
    width: 100%;
    margin-top: 40px;
  }
  .page-index .game-card img,
  .page-index .promo-card img,
  .page-index .article-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-content h1 {
    font-size: 2.2em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 15px 30px;
    font-size: 1.2em;
  }
  .page-index section {
    padding: 60px 0;
  }
  .page-index h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index h3 {
    font-size: 1.5em;
  }
  .page-index .quick-access-section .access-links {
    flex-direction: column;
    align-items: center;
  }
  .page-index .access-button {
    width: 80%;
  }
  .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-answer {
    padding: 0 20px;
  }
  .page-index .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 1.8em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index h2 {
    font-size: 1.6em;
  }
  .page-index h3 {
    font-size: 1.3em;
  }
  .page-index .container {
    padding: 0 15px;
  }
  .page-index .access-button {
    width: 90%;
  }
}