/* style/fishing-games.css */

/* Variables for colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --background-dark: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark sections */
  background-color: var(--background-dark);
}

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

.page-fishing-games__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
  position: relative;
  padding-bottom: 15px;
}

.page-fishing-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-fishing-games__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-fishing-games__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-fishing-games__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-fishing-games__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-fishing-games__cta-button--large {
  padding: 18px 35px;
  font-size: 20px;
  width: 100%;
  max-width: 400px;
}

.page-fishing-games__cta-wrapper {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Color contrast management */
.page-fishing-games__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-fishing-games__light-bg {
  background-color: #f5f5f5; /* Using a light grey for contrast with dark body background */
  color: #333333;
}

.page-fishing-games__light-bg .page-fishing-games__section-title {
  color: var(--deep-green);
  text-shadow: none;
}

.page-fishing-games__light-bg .page-fishing-games__text-block,
.page-fishing-games__light-bg .page-fishing-games__card-description,
.page-fishing-games__light-bg p,
.page-fishing-games__light-bg li {
  color: #555555;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding as per instructions */
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

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

.page-fishing-games__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-fishing-games__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-fishing-games__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-fishing-games__intro-section,
.page-fishing-games__guide-section,
.page-fishing-games__advantages-section,
.page-fishing-games__promotions-section,
.page-fishing-games__video-section,
.page-fishing-games__faq-section,
.page-fishing-games__conclusion-section {
  padding: 80px 0;
}

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

.page-fishing-games__game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-fishing-games__game-title {
  font-size: 22px;
  color: var(--gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-fishing-games__game-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  margin: 0 auto;
  white-space: normal;
  word-wrap: break-word;
  max-width: 90%;
  box-sizing: border-box;
}

.page-fishing-games__game-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Guide Section */
.page-fishing-games__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-fishing-games__guide-text {
  flex: 1;
}

.page-fishing-games__guide-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-fishing-games__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 20px;
  color: #555555;
}

.page-fishing-games__ordered-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.page-fishing-games__ordered-list li strong {
  color: #333333;
}

/* Strategy Section */
.page-fishing-games__unordered-list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-fishing-games__unordered-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.page-fishing-games__unordered-list li strong {
  color: var(--text-main);
}

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

.page-fishing-games__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-fishing-games__card-title {
  font-size: 24px;
  color: var(--deep-green);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-fishing-games__card-description {
  font-size: 15px;
  color: #555555;
}

/* Promotions Section */
.page-fishing-games__promotion-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-fishing-games__promotion-item {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  padding: 25px;
  border: 1px solid var(--border-color);
}

.page-fishing-games__promotion-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 25px;
  flex-shrink: 0;
}

.page-fishing-games__promotion-content {
  flex-grow: 1;
}

.page-fishing-games__promotion-title {
  font-size: 22px;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-fishing-games__promotion-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-fishing-games__promotion-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-fishing-games__promotion-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Video Section */
.page-fishing-games__video-section {
  padding-top: 10px; /* Small top padding as per instructions */
}

.page-fishing-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  width: 100%; /* Explicitly set width for desktop to ensure proper sizing */
}

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

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

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-color);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider-color);
  list-style: none;
}

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

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

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--glow-color);
  margin-left: 20px;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  content: '−';
}

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

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

/* Conclusion Section */
.page-fishing-games__conclusion-section {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-fishing-games__guide-content {
    flex-direction: column;
  }
  .page-fishing-games__promotion-item {
    flex-direction: column;
    text-align: center;
  }
  .page-fishing-games__promotion-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .page-fishing-games__card-title {
    font-size: 20px;
  }
  .page-fishing-games__game-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding: 40px 0;
    padding-top: 10px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(30px, 8vw, 45px);
  }
  .page-fishing-games__hero-description {
    font-size: clamp(16px, 4vw, 20px);
  }
  .page-fishing-games__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-fishing-games__intro-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__advantages-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__video-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__conclusion-section {
    padding: 60px 0;
  }
  .page-fishing-games__game-grid,
  .page-fishing-games__advantage-grid {
    grid-template-columns: 1fr;
  }
  .page-fishing-games__card,
  .page-fishing-games__game-card,
  .page-fishing-games__promotion-item {
    padding: 20px;
  }
  .page-fishing-games__promotion-image {
    width: 100%;
    height: auto;
  }
  .page-fishing-games__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-fishing-games__faq-answer {
    padding: 15px 20px;
  }
  
  /* Mobile responsive for images */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__guide-image-wrapper,
  .page-fishing-games__promotion-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__video-section {
    padding-top: 10px !important;
  }
  
  /* Mobile responsive for video */
  .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-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
  }

  /* Mobile responsive for buttons */
  .page-fishing-games__cta-button,
  .page-fishing-games__game-button,
  .page-fishing-games__promotion-button,
  .page-fishing-games a[class*="button"],
  .page-fishing-games 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;
  }
  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container,
  .page-fishing-games__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-fishing-games__cta-wrapper .page-fishing-games__cta-button--large {
    max-width: 100% !important;
  }
  .page-fishing-games__hero-content .page-fishing-games__cta-button {
    max-width: 300px !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-fishing-games__game-card .page-fishing-games__game-button {
    max-width: 200px !important;
  }
}