/* style/fishing-games.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-button-color: #EA7C07;
}

.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding for content separation */
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-fishing-games__hero-content {
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-fishing-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-description {
  font-size: clamp(1em, 1.8vw, 1.25em);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-video-cta,
.page-fishing-games__btn-play,
.page-fishing-games__btn-step,
.page-fishing-games__btn-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-fishing-games__btn-primary {
  background-color: var(--login-button-color); /* Use login color for primary CTA */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
}

.page-fishing-games__btn-primary:hover {
  background-color: darken(var(--login-button-color), 10%);
  border-color: darken(var(--login-button-color), 10%);
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-fishing-games__btn-large {
    min-width: 200px;
}

.page-fishing-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--secondary-color);
  color: var(--text-dark);
  box-sizing: border-box;
}

.page-fishing-games__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-fishing-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  background-color: #000;
  border-radius: 10px;
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-fishing-games__video-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1em;
}

.page-fishing-games__btn-video-cta {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    margin-top: 15px;
}

.page-fishing-games__btn-video-cta:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-fishing-games__section {
  padding: 60px 0;
  box-sizing: border-box;
}

.page-fishing-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-fishing-games__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-fishing-games__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-fishing-games__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-fishing-games__dark-section .page-fishing-games__section-title,
.page-fishing-games__dark-section .page-fishing-games__section-description {
    color: var(--text-light);
}

.page-fishing-games__text-block {
    margin-bottom: 30px;
}

.page-fishing-games__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-fishing-games__image-container {
    text-align: center;
    margin-top: 30px;
}

.page-fishing-games__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

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

.page-fishing-games__card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark section */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-fishing-games__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-fishing-games__card p {
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-light);
}

.page-fishing-games__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.page-fishing-games__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__game-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
}

.page-fishing-games__game-thumbnail {
    width: 100%;
    height: 180px; /* Fixed height for thumbnails */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-fishing-games__game-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-fishing-games__game-card p {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-fishing-games__btn-play {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.page-fishing-games__btn-play:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-fishing-games__step-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    color: var(--text-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-light);
    background-color: var(--login-button-color);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 20px;
    display: inline-block;
}

.page-fishing-games__step-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-fishing-games__step-item p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-fishing-games__btn-step {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-fishing-games__btn-step:hover {
    background-color: darken(var(--secondary-color), 5%);
    color: darken(var(--primary-color), 10%);
}

.page-fishing-games__tips-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-fishing-games__tip-item {
    background-color: var(--text-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.page-fishing-games__tip-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-fishing-games__tip-item p {
    font-size: 1em;
    line-height: 1.5;
}

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

.page-fishing-games__promo-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-fishing-games__promo-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-fishing-games__promo-card p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-fishing-games__btn-promo {
    background-color: var(--login-button-color);
    color: var(--text-light);
    border: 2px solid var(--login-button-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-fishing-games__btn-promo:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

.page-fishing-games__faq-section {
    padding-bottom: 80px;
}

.page-fishing-games__faq-list {
    margin-top: 40px;
}

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

.page-fishing-games__faq-item summary {
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    list-style: none; /* Hide default marker */
}

.page-fishing-games__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-fishing-games__faq-answer p {
    margin-bottom: 10px;
}

.page-fishing-games__cta-content {
    text-align: center;
}

.page-fishing-games__cta-title {
    font-size: clamp(2em, 3.8vw, 2.8em);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-fishing-games__cta-description {
    font-size: 1.15em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

/* Utility for darkening color */
@function darken($color, $percentage) {
  @return mix(black, $color, $percentage);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    padding: 15px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.8em);
  }
  .page-fishing-games__hero-description {
    font-size: clamp(0.95em, 2vw, 1.15em);
  }
  .page-fishing-games__section-title {
    font-size: clamp(1.6em, 3.8vw, 2.2em);
  }
  .page-fishing-games__card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-item,
  .page-fishing-games__tip-item,
  .page-fishing-games__promo-card {
    padding: 25px;
  }
  .page-fishing-games__game-thumbnail {
    height: 160px;
  }
  .page-fishing-games__promo-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fishing-games__content-area {
    padding: 0 15px;
  }

  .page-fishing-games__hero-section {
    padding-bottom: 30px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 10px;
  }
  .page-fishing-games__hero-description {
    font-size: clamp(0.9em, 3.5vw, 1em);
    margin-bottom: 25px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-video-cta,
  .page-fishing-games__btn-play,
  .page-fishing-games__btn-step,
  .page-fishing-games__btn-promo {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto;
  }

  .page-fishing-games__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__section {
    padding: 40px 0;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.4em, 5.5vw, 2em);
    margin-bottom: 25px;
  }

  .page-fishing-games__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-fishing-games__grid,
  .page-fishing-games__game-list,
  .page-fishing-games__steps-list,
  .page-fishing-games__tips-list,
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-item,
  .page-fishing-games__tip-item,
  .page-fishing-games__promo-card {
    padding: 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-fishing-games__game-thumbnail {
    height: 150px;
  }

  .page-fishing-games__promo-image {
    height: 160px;
  }

  .page-fishing-games__faq-item summary {
    padding: 15px 20px;
    font-size: 1.05em;
  }

  .page-fishing-games__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* All images must be responsive */
  .page-fishing-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images must ensure no overflow */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__image-container,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure content area does not cause horizontal scroll */
  .page-fishing-games__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__cta-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }
  .page-fishing-games__cta-description {
    font-size: 1em;
  }
}