/* style/resources-online-gambling-guide.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #1a1a1a;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-dark-bg: rgba(255, 255, 255, 0.08);
  --card-light-bg: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
}

.page-resources-online-gambling-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default for dark body background */
  background-color: var(--dark-bg-color); /* Inherited from shared.css body */
}

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

.page-resources-online-gambling-guide__section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-online-gambling-guide__dark-bg {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-resources-online-gambling-guide__light-bg {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-resources-online-gambling-guide__card {
  background-color: var(--card-light-bg);
  color: var(--dark-text-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-resources-online-gambling-guide__dark-card {
  background-color: var(--card-dark-bg);
  color: var(--light-text-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-online-gambling-guide__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-online-gambling-guide__section-title {
  font-size: 2.8em;
  margin-bottom: 40px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-resources-online-gambling-guide__dark-bg .page-resources-online-gambling-guide__section-title {
  color: var(--secondary-color);
}

.page-resources-online-gambling-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-online-gambling-guide__btn-primary,
.page-resources-online-gambling-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources-online-gambling-guide__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-online-gambling-guide__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
  transform: translateY(-2px);
}

.page-resources-online-gambling-guide__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-online-gambling-guide__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-resources-online-gambling-guide__large-btn {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Hero Section */
.page-resources-online-gambling-guide__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.page-resources-online-gambling-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-resources-online-gambling-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-resources-online-gambling-guide__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-resources-online-gambling-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-resources-online-gambling-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

/* Feature Grid */
.page-resources-online-gambling-guide__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-online-gambling-guide__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources-online-gambling-guide__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-online-gambling-guide__feature-description {
  font-size: 1em;
  color: var(--dark-text-color);
}

/* Content Grid */
.page-resources-online-gambling-guide__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-resources-online-gambling-guide__content-card {
  padding: 30px;
}

.page-resources-online-gambling-guide__content-subtitle {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources-online-gambling-guide__dark-card .page-resources-online-gambling-guide__content-subtitle {
  color: var(--secondary-color);
}

.page-resources-online-gambling-guide__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-resources-online-gambling-guide__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  padding-left: 25px;
  position: relative;
  color: inherit;
}

.page-resources-online-gambling-guide__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources-online-gambling-guide__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* Game Grid */
.page-resources-online-gambling-guide__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-online-gambling-guide__game-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.page-resources-online-gambling-guide__game-card:hover .page-resources-online-gambling-guide__game-image {
  transform: scale(1.05);
}

.page-resources-online-gambling-guide__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.page-resources-online-gambling-guide__game-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-resources-online-gambling-guide__game-description {
  font-size: 1em;
  flex-grow: 1;
  color: var(--dark-text-color);
}

/* Step-by-Step Guide */
.page-resources-online-gambling-guide__step-by-step-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-resources-online-gambling-guide__step-item {
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-resources-online-gambling-guide__step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid var(--dark-bg-color);
}

.page-resources-online-gambling-guide__step-item .page-resources-online-gambling-guide__step-number {
  border-color: var(--dark-bg-color);
}

.page-resources-online-gambling-guide__step-title {
  font-size: 1.8em;
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-resources-online-gambling-guide__step-description {
  font-size: 1em;
  color: var(--light-text-color);
  margin-bottom: 20px;
}

.page-resources-online-gambling-guide__step-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: auto;
}

.page-resources-online-gambling-guide__cta-wrapper {
  margin-top: 50px;
  text-align: center;
}

/* Responsible Gaming */
.page-resources-online-gambling-guide__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-resources-online-gambling-guide__responsible-gaming-content .page-resources-online-gambling-guide__image {
  flex: 1;
  max-width: 50%;
}

.page-resources-online-gambling-guide__responsible-gaming-content .page-resources-online-gambling-guide__list {
  flex: 1;
}

.page-resources-online-gambling-guide__light-bg .page-resources-online-gambling-guide__list li::before {
  color: var(--primary-color);
}

.page-resources-online-gambling-guide__light-bg .page-resources-online-gambling-guide__list li {
  color: var(--dark-text-color);
}

/* FAQ Section */
.page-resources-online-gambling-guide__faq-list {
  margin-top: 50px;
  text-align: left;
}

.page-resources-online-gambling-guide__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
}

.page-resources-online-gambling-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--card-dark-bg);
  color: var(--light-text-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-resources-online-gambling-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-online-gambling-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-online-gambling-guide__faq-item.active .page-resources-online-gambling-guide__faq-toggle {
  transform: rotate(45deg);
  content: '−';
}

.page-resources-online-gambling-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--card-dark-bg);
  border-radius: 0 0 8px 8px;
  color: var(--light-text-color);
}

.page-resources-online-gambling-guide__faq-item.active .page-resources-online-gambling-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 30px;
}

.page-resources-online-gambling-guide__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-gambling-guide__hero-title {
    font-size: 3em;
  }
  .page-resources-online-gambling-guide__section-title {
    font-size: 2.2em;
  }
  .page-resources-online-gambling-guide__content-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-online-gambling-guide__responsible-gaming-content {
    flex-direction: column;
  }
  .page-resources-online-gambling-guide__responsible-gaming-content .page-resources-online-gambling-guide__image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources-online-gambling-guide {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-online-gambling-guide__section {
    padding: 60px 0;
  }
  .page-resources-online-gambling-guide__container,
  .page-resources-online-gambling-guide__hero-content {
    padding: 0 15px;
  }
  .page-resources-online-gambling-guide__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset is applied */
  }
  .page-resources-online-gambling-guide__hero-content {
    max-width: 100%;
  }
  .page-resources-online-gambling-guide__hero-title {
    font-size: 2.5em;
  }
  .page-resources-online-gambling-guide__hero-description {
    font-size: 1.1em;
  }
  .page-resources-online-gambling-guide__section-title {
    font-size: 2em;
  }
  .page-resources-online-gambling-guide__text-block {
    font-size: 1em;
  }
  .page-resources-online-gambling-guide__feature-grid,
  .page-resources-online-gambling-guide__game-grid,
  .page-resources-online-gambling-guide__step-by-step-guide {
    grid-template-columns: 1fr;
  }
  .page-resources-online-gambling-guide__feature-icon {
    width: 150px;
    height: 100px;
  }
  .page-resources-online-gambling-guide__feature-title,
  .page-resources-online-gambling-guide__game-title,
  .page-resources-online-gambling-guide__step-title,
  .page-resources-online-gambling-guide__content-subtitle {
    font-size: 1.5em;
  }
  .page-resources-online-gambling-guide__list li,
  .page-resources-online-gambling-guide__feature-description,
  .page-resources-online-gambling-guide__game-description,
  .page-resources-online-gambling-guide__step-description {
    font-size: 0.95em;
  }
  .page-resources-online-gambling-guide__cta-button,
  .page-resources-online-gambling-guide__btn-primary,
  .page-resources-online-gambling-guide__btn-secondary,
  .page-resources-online-gambling-guide a[class*="button"],
  .page-resources-online-gambling-guide a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px;
  }
  .page-resources-online-gambling-guide__cta-buttons,
  .page-resources-online-gambling-guide__button-group,
  .page-resources-online-gambling-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
  .page-resources-online-gambling-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-online-gambling-guide__section,
  .page-resources-online-gambling-guide__card,
  .page-resources-online-gambling-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-online-gambling-guide__responsible-gaming-content .page-resources-online-gambling-guide__image {
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-resources-online-gambling-guide__faq-question,
  .page-resources-online-gambling-guide__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources-online-gambling-guide__hero-title {
    font-size: 2em;
  }
  .page-resources-online-gambling-guide__section-title {
    font-size: 1.8em;
  }
  .page-resources-online-gambling-guide__hero-description {
    font-size: 1em;
  }
  .page-resources-online-gambling-guide__btn-primary,
  .page-resources-online-gambling-guide__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-resources-online-gambling-guide__large-btn {
    padding: 15px 25px;
    font-size: 1.1em;
  }
  .page-resources-online-gambling-guide__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
  .page-resources-online-gambling-guide__step-title {
    font-size: 1.4em;
  }
  .page-resources-online-gambling-guide__faq-question {
    font-size: 1.1em;
  }
}