/* style/resources-tech-analysis.css */
.page-resources-tech-analysis {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-resources-tech-analysis__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-tech-analysis__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
}

.page-resources-tech-analysis__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources-tech-analysis__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-tech-analysis__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources-tech-analysis__btn-primary,
.page-resources-tech-analysis__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;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow on small screens */
}

.page-resources-tech-analysis__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #C30808;
}

.page-resources-tech-analysis__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources-tech-analysis__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources-tech-analysis__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-resources-tech-analysis__intro-section,
.page-resources-tech-analysis__sports-tech-section,
.page-resources-tech-analysis__ux-optimization-section,
.page-resources-tech-analysis__future-tech-section,
.page-resources-tech-analysis__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for these sections */
  color: #333333; /* Dark text for light background */
}

.page-resources-tech-analysis__intro-section .page-resources-tech-analysis__section-title,
.page-resources-tech-analysis__sports-tech-section .page-resources-tech-analysis__section-title,
.page-resources-tech-analysis__ux-optimization-section .page-resources-tech-analysis__section-title,
.page-resources-tech-analysis__future-tech-section .page-resources-tech-analysis__section-title,
.page-resources-tech-analysis__faq-section .page-resources-tech-analysis__section-title {
  color: #017439;
}

.page-resources-tech-analysis__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources-tech-analysis__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-resources-tech-analysis__image-text-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-resources-tech-analysis__text-block {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-resources-tech-analysis__text-block p {
    margin-bottom: 15px;
}

.page-resources-tech-analysis__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-resources-tech-analysis__image--full-width {
    max-width: 100%;
    margin-top: 20px;
}

.page-resources-tech-analysis__core-tech-section,
.page-resources-tech-analysis__casino-innovation-section,
.page-resources-tech-analysis__commitment-section,
.page-resources-tech-analysis__video-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color dark background */
  color: #ffffff; /* White text for dark background */
}

.page-resources-tech-analysis__core-tech-section .page-resources-tech-analysis__section-title,
.page-resources-tech-analysis__casino-innovation-section .page-resources-tech-analysis__section-title,
.page-resources-tech-analysis__commitment-section .page-resources-tech-analysis__section-title,
.page-resources-tech-analysis__video-section .page-resources-tech-analysis__section-title {
  color: #ffffff;
}

.page-resources-tech-analysis__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-tech-analysis__grid--three-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources-tech-analysis__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  box-sizing: border-box;
}

.page-resources-tech-analysis__intro-section .page-resources-tech-analysis__card,
.page-resources-tech-analysis__sports-tech-section .page-resources-tech-analysis__card,
.page-resources-tech-analysis__ux-optimization-section .page-resources-tech-analysis__card,
.page-resources-tech-analysis__future-tech-section .page-resources-tech-analysis__card {
    background-color: #f8f8f8;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-resources-tech-analysis__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
}

.page-resources-tech-analysis__intro-section .page-resources-tech-analysis__card-title,
.page-resources-tech-analysis__sports-tech-section .page-resources-tech-analysis__card-title,
.page-resources-tech-analysis__ux-optimization-section .page-resources-tech-analysis__card-title,
.page-resources-tech-analysis__future-tech-section .page-resources-tech-analysis__card-title {
    color: #017439;
}

.page-resources-tech-analysis__card-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

.page-resources-tech-analysis__card-link {
    display: inline-block;
    margin-top: 15px;
    color: #C30808;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources-tech-analysis__card-link:hover {
    color: #a00606;
}

.page-resources-tech-analysis__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
}

.page-resources-tech-analysis__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-resources-tech-analysis__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-resources-tech-analysis__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-resources-tech-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-resources-tech-analysis__faq-question:hover {
  background-color: #e5e5e5;
}

.page-resources-tech-analysis__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-resources-tech-analysis__faq-item.active .page-resources-tech-analysis__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-tech-analysis__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-resources-tech-analysis__faq-item.active .page-resources-tech-analysis__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-resources-tech-analysis__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-tech-analysis__hero-title {
    font-size: 3em;
  }
  .page-resources-tech-analysis__hero-description {
    font-size: 1.1em;
  }
  .page-resources-tech-analysis__section-title {
    font-size: 2em;
  }
  .page-resources-tech-analysis__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-resources-tech-analysis__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-resources-tech-analysis__image {
    max-width: 80%;
    margin-bottom: 20px;
  }
  .page-resources-tech-analysis__image-text-block {
    align-items: center;
  }
}