/* style/fishing-games.css */

:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --btn-gradient-start: #2AD16F;
  --btn-gradient-end: #13994A;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

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

/* General Section Styling */
.page-fishing-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color);
  position: relative;
  padding-bottom: 10px;
}

.page-fishing-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--btn-gradient-start), var(--btn-gradient-end));
  border-radius: 2px;
}

.page-fishing-games__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
}

.page-fishing-games__description,
.page-fishing-games__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

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

.page-fishing-games__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

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

/* Button Styling */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
  color: var(--text-main-color);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(242, 193, 78, 0.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__btn-tertiary {
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 15px;
}

.page-fishing-games__btn-tertiary:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-fishing-games__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* Background Colors */
.page-fishing-games__dark-bg {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
}

.page-fishing-games__light-bg {
  background-color: #0A2016; /* Slightly lighter shade of green for contrast */
  color: var(--text-main-color);
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles top padding, this is for visual spacing */
  overflow: hidden;
}

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

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

.page-fishing-games__hero-content {
  position: relative; /* Ensure content is above any background effects */
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the image for better flow */
}

.page-fishing-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

/* Introduction Section */
.page-fishing-games__introduction-section,
.page-fishing-games__why-choose-us,
.page-fishing-games__featured-games,
.page-fishing-games__how-to-play,
.page-fishing-games__video-section,
.page-fishing-games__promotions-section,
.page-fishing-games__tips-section,
.page-fishing-games__safety-security,
.page-fishing-games__faq-section,
.page-fishing-games__contact-cta {
  padding: 80px 0;
}

.page-fishing-games__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-fishing-games__image-left,
.page-fishing-games__image-right {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

.page-fishing-games__text-content {
  flex: 1;
}

.page-fishing-games__image-right {
  order: 1; /* For safety section, image on right */
}

.page-fishing-games__text-content:last-child {
  order: 2;
}

/* Why Choose Us Section */
.page-fishing-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__feature-card {
  text-align: center;
}

/* Featured Games Section */
.page-fishing-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
}

/* How to Play Section */
.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__list-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-left: 80px;
}

.page-fishing-games__list-item::before {
  content: 'Bước ' counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--gold-color);
  color: #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-fishing-games__how-to-play .page-fishing-games__list-title {
  color: var(--gold-color);
  margin-top: 0;
}

/* Video Section */
.page-fishing-games__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: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  width: 100%; /* Ensure desktop width is 100% */
}

.page-fishing-games__video-wrapper a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

/* Promotions Section */
.page-fishing-games__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-fishing-games__promo-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95em;
  color: var(--text-secondary-color);
}

.page-fishing-games__promo-note a {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
}

.page-fishing-games__promo-note a:hover {
  text-decoration: underline;
}

/* Tips Section */
.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__tips-list .page-fishing-games__list-item {
  padding-left: 30px;
  text-align: left;
  counter-increment: none; /* Reset counter for this list */
}

.page-fishing-games__tips-list .page-fishing-games__list-item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 10px;
  transform: none;
  background: none;
  color: var(--gold-color);
  font-size: 2em;
  width: auto;
  height: auto;
}

.page-fishing-games__tips-list .page-fishing-games__list-title {
  color: var(--gold-color);
}

/* Safety & Security Section */
.page-fishing-games__safety-security .page-fishing-games__image-text-block {
  flex-direction: row-reverse; /* Image on right, text on left */
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
}

.page-fishing-games__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main-color);
  list-style: none; /* Remove default marker for details summary */
}

.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  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.7;
  color: var(--text-secondary-color);
}

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

.page-fishing-games__faq-answer a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-fishing-games__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    margin-top: -80px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-fishing-games__section-title {
    font-size: 2em;
  }

  .page-fishing-games__image-text-block {
    flex-direction: column;
    gap: 30px;
  }

  .page-fishing-games__image-left,
  .page-fishing-games__image-right {
    max-width: 100%;
    order: initial;
  }

  .page-fishing-games__safety-security .page-fishing-games__image-text-block {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }

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

  .page-fishing-games__sub-title {
    font-size: 1.5em;
  }

  .page-fishing-games__description,
  .page-fishing-games__text-block,
  .page-fishing-games__faq-answer p {
    font-size: 1em;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  /* Mobile image responsiveness */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__container,
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__hero-section,
  .page-fishing-games__introduction-section,
  .page-fishing-games__why-choose-us,
  .page-fishing-games__featured-games,
  .page-fishing-games__how-to-play,
  .page-fishing-games__promotions-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__safety-security,
  .page-fishing-games__faq-section,
  .page-fishing-games__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__video-section,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-fishing-games__video-section {
    padding-top: 10px !important;
  }

  .page-fishing-games__list-item {
    padding-left: 20px;
  }

  .page-fishing-games__list-item::before {
    left: 10px;
    top: 15px;
    transform: none;
  }
}