.page-terms-conditions {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-terms-conditions__hero-section {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.2)), url('[GALLERY:hero_background:1920x1080:luxurious_casino,golden_lights,gaming_excitement,philippines]');
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

.page-terms-conditions__hero-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold color for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: bold;
}

.page-terms-conditions__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-terms-conditions__button--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #8B0000; /* Dark red text for contrast */
  border: 2px solid #FFD700;
}

.page-terms-conditions__button--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
  transform: translateY(-3px);
}

.page-terms-conditions__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-terms-conditions__button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-3px);
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

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

.page-terms-conditions__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-terms-conditions__article-title {
  color: #FFD700; /* Gold for article titles */
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-terms-conditions__article-card p {
  color: #f0f0f0;
  font-size: 1em;
}

.page-terms-conditions__more-info {
  margin-top: 50px;
  text-align: center;
  padding: 30px;
  background-color: rgba(139, 0, 0, 0.7); /* Dark red background for info section */
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.page-terms-conditions__more-info p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-terms-conditions__more-info a {
  color: #FFD700; /* Gold for links in info section */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions__more-info a:hover {
  color: #e6c200;
}

.page-terms-conditions__button--contact {
  background-color: #8B0000; /* Dark red contact button */
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-terms-conditions__button--contact:hover {
  background-color: #6a0000;
  color: #FFD700;
  transform: translateY(-3px);
}

.page-terms-conditions__download-cta {
  background-color: #1a1a1a; /* Dark background for download CTA */
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-top: 3px solid #FFD700;
  border-bottom: 3px solid #FFD700;
}

.page-terms-conditions__download-title {
  color: #FFD700;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-terms-conditions__download-description {
  color: #f0f0f0;
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-terms-conditions__download-image {
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__button--download {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-terms-conditions__button--download:hover {
  background-color: #e6c200;
  color: #6a0000;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.8em;
  }

  .page-terms-conditions__download-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: var(--header-offset, 80px);
  }

  .page-terms-conditions__hero-section {
    padding: 60px 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }

  .page-terms-conditions__intro-text {
    font-size: 1em;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-terms-conditions__section-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-terms-conditions__article-title {
    font-size: 1.5em;
  }

  .page-terms-conditions__article-card {
    padding: 25px;
  }

  .page-terms-conditions__download-title {
    font-size: 1.8em;
  }

  .page-terms-conditions__download-description {
    font-size: 0.95em;
  }

  /* Ensure all images within .page-terms-conditions are responsive */
  .page-terms-conditions img {
    max-width: 100%;
    height: auto;
  }

  .page-terms-conditions__download-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: 1.8em;
  }

  .page-terms-conditions__intro-text {
    font-size: 0.9em;
  }

  .page-terms-conditions__button {
    font-size: 1em;
    padding: 12px 25px;
  }

  .page-terms-conditions__download-title {
    font-size: 1.5em;
  }
}