/* style/index-latest-ibet-news.css */

:root {
  --page-primary-color: #0A246A;
  --page-secondary-color: #E0B300;
  --page-text-light: #ffffff;
  --page-text-dark: #333333;
  --page-background-dark: #1a1a1a; /* From shared.css body background */
  --page-card-dark-bg: rgba(255, 255, 255, 0.1);
}

.page-index-latest-ibet-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-text-light); /* Default text color for dark body background */
  background-color: var(--page-background-dark);
}

.page-index-latest-ibet-news__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  overflow: hidden;
}

.page-index-latest-ibet-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index-latest-ibet-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-index-latest-ibet-news__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: var(--page-text-light);
}

.page-index-latest-ibet-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index-latest-ibet-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-text-light);
}

.page-index-latest-ibet-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-latest-ibet-news__cta-buttons--center {
  margin-top: 40px;
  justify-content: center;
}

.page-index-latest-ibet-news__btn-primary,
.page-index-latest-ibet-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-index-latest-ibet-news__btn-primary {
  background-color: var(--page-secondary-color);
  color: var(--page-primary-color);
  border: 2px solid var(--page-secondary-color);
}

.page-index-latest-ibet-news__btn-primary:hover {
  background-color: #ffc107; /* Slightly lighter gold */
  border-color: #ffc107;
}

.page-index-latest-ibet-news__btn-primary--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index-latest-ibet-news__btn-primary--large {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-index-latest-ibet-news__btn-secondary {
  background-color: transparent;
  color: var(--page-secondary-color);
  border: 2px solid var(--page-secondary-color);
}

.page-index-latest-ibet-news__btn-secondary:hover {
  background-color: var(--page-secondary-color);
  color: var(--page-primary-color);
}

.page-index-latest-ibet-news__btn-secondary--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index-latest-ibet-news__section {
  padding: 60px 20px;
  text-align: center;
}

.page-index-latest-ibet-news__section--intro {
  padding-bottom: 30px;
}

.page-index-latest-ibet-news__dark-section {
  background-color: var(--page-primary-color);
  color: var(--page-text-light);
}

.page-index-latest-ibet-news__light-bg {
  background-color: var(--page-text-light);
  color: var(--page-text-dark);
}

.page-index-latest-ibet-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-index-latest-ibet-news__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--page-primary-color);
}

.page-index-latest-ibet-news__section-title--white {
  color: var(--page-text-light);
}

.page-index-latest-ibet-news__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-text-dark);
}

.page-index-latest-ibet-news__section-text--white {
  color: var(--page-text-light);
}

.page-index-latest-ibet-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-latest-ibet-news__grid--two-columns {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  text-align: left;
}

.page-index-latest-ibet-news__card {
  background-color: var(--page-text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--page-text-dark);
}

.page-index-latest-ibet-news__card--dark-bg {
  background-color: var(--page-card-dark-bg);
  color: var(--page-text-light);
}

.page-index-latest-ibet-news__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-primary-color);
}

.page-index-latest-ibet-news__card--dark-bg .page-index-latest-ibet-news__card-title {
  color: var(--page-secondary-color);
}

.page-index-latest-ibet-news__card-text {
  margin-bottom: 20px;
}

.page-index-latest-ibet-news__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
  min-height: 200px; /* Minimum size */
}

.page-index-latest-ibet-news__steps-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-index-latest-ibet-news__step-item {
  flex: 1 1 45%;
  max-width: 500px;
  background-color: var(--page-text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: var(--page-text-dark);
}

.page-index-latest-ibet-news__step-title {
  font-size: 1.8em;
  color: var(--page-primary-color);
  margin-bottom: 15px;
}

.page-index-latest-ibet-news__step-text {
  margin-bottom: 20px;
}

.page-index-latest-ibet-news__text-content {
  padding-right: 30px;
}

.page-index-latest-ibet-news__sub-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--page-primary-color);
}

.page-index-latest-ibet-news__sub-title--white {
  color: var(--page-text-light);
}

.page-index-latest-ibet-news__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index-latest-ibet-news__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--page-text-dark);
}

.page-index-latest-ibet-news__list li::before {
  content: '✔';
  color: var(--page-secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index-latest-ibet-news__list--white li {
  color: var(--page-text-light);
}

.page-index-latest-ibet-news__list--white li::before {
  color: var(--page-secondary-color);
}

.page-index-latest-ibet-news__image-wrapper {
  text-align: center;
}

.page-index-latest-ibet-news__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Minimum size */
}

.page-index-latest-ibet-news__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-latest-ibet-news__game-card {
  background-color: var(--page-text-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--page-text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-latest-ibet-news__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index-latest-ibet-news__game-card-title {
  font-size: 1.3em;
  color: var(--page-primary-color);
  margin-bottom: 10px;
}

.page-index-latest-ibet-news__game-card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-latest-ibet-news__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-latest-ibet-news__promotion-card {
  background-color: var(--page-card-dark-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--page-text-light);
}

.page-index-latest-ibet-news__promotion-title {
  font-size: 1.4em;
  color: var(--page-secondary-color);
  margin-bottom: 15px;
}

.page-index-latest-ibet-news__promotion-description {
  font-size: 1em;
}

.page-index-latest-ibet-news__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-index-latest-ibet-news__faq-item {
  background-color: var(--page-text-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-text-dark);
}

.page-index-latest-ibet-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f8f8f8;
  color: var(--page-primary-color);
  transition: background-color 0.3s ease;
}

.page-index-latest-ibet-news__faq-question:hover {
  background-color: #f0f0f0;
}

.page-index-latest-ibet-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-index-latest-ibet-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-text-dark);
}

.page-index-latest-ibet-news__faq-item.active .page-index-latest-ibet-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
}

.page-index-latest-ibet-news__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-index-latest-ibet-news__section--conclusion {
  padding-bottom: 80px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-index-latest-ibet-news__hero-title {
    font-size: 3em;
  }
  .page-index-latest-ibet-news__hero-description {
    font-size: 1.1em;
  }
  .page-index-latest-ibet-news__section-title {
    font-size: 2em;
  }
  .page-index-latest-ibet-news__grid--two-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-index-latest-ibet-news__text-content {
    padding-right: 0;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-index-latest-ibet-news__hero-section {
    height: 60vh;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-index-latest-ibet-news__hero-title {
    font-size: 2.2em;
  }
  .page-index-latest-ibet-news__hero-description {
    font-size: 1em;
  }
  .page-index-latest-ibet-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-latest-ibet-news__btn-primary,
  .page-index-latest-ibet-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index-latest-ibet-news__section {
    padding: 40px 15px;
  }
  .page-index-latest-ibet-news__section-title {
    font-size: 1.8em;
  }
  .page-index-latest-ibet-news__section-text {
    font-size: 0.95em;
  }
  .page-index-latest-ibet-news__grid {
    grid-template-columns: 1fr;
  }
  .page-index-latest-ibet-news__steps-container {
    flex-direction: column;
  }
  .page-index-latest-ibet-news__step-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .page-index-latest-ibet-news__image-full-width,
  .page-index-latest-ibet-news__image-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-index-latest-ibet-news__section,
  .page-index-latest-ibet-news__card,
  .page-index-latest-ibet-news__container,
  .page-index-latest-ibet-news__image-wrapper,
  .page-index-latest-ibet-news__game-card,
  .page-index-latest-ibet-news__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-index-latest-ibet-news__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct padding-top */
  }
  .page-index-latest-ibet-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-latest-ibet-news video,
  .page-index-latest-ibet-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-latest-ibet-news__video-section,
  .page-index-latest-ibet-news__video-container,
  .page-index-latest-ibet-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-index-latest-ibet-news__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index-latest-ibet-news__game-cards-grid,
  .page-index-latest-ibet-news__promotion-grid {
    grid-template-columns: 1fr;
  }
  .page-index-latest-ibet-news__faq-question,
  .page-index-latest-ibet-news__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}