/* style/fishing-games.css */
/* body đã padding-top: var(--header-offset); trang này không cần thêm */

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color, fallback to F2FFF6 */
  background-color: var(--background, #08160F); /* Default background color */
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background, #08160F);
  overflow: hidden; /* Ensure no overflow issues */
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height for better content visibility */
}

.page-fishing-games__hero-content {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--card-bg, #11271B); /* Use card background for content block */
  width: 100%;
  box-sizing: border-box;
}

.page-fishing-games__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  color: var(--gold, #F2C14E); /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__cta-buttons--center {
    justify-content: center;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--main-color, #11A84E); /* Main color for text */
  border: 2px solid var(--border, #2E7A4E); /* Border color */
}

.page-fishing-games__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: #ffffff;
}

/* General Section Styling */
.page-fishing-games__about-section,
.page-fishing-games__game-types-section,
.page-fishing-games__strategy-section,
.page-fishing-games__guide-section,
.page-fishing-games__faq-section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
}

.page-fishing-games__dark-section {
  background-color: var(--deep-green, #0A4B2C); /* Deep green background for contrast */
  color: var(--text-main, #F2FFF6);
  padding: 60px 0;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  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: var(--glow, #57E38D);
  border-radius: 2px;
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-fishing-games__image-center {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

/* Features Grid */
.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-item {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-fishing-games__feature-item:hover {
  transform: translateY(-5px);
}

.page-fishing-games__feature-title {
  font-size: 1.5em;
  color: var(--glow, #57E38D);
  margin-bottom: 15px;
}

.page-fishing-games__feature-text {
  color: var(--text-secondary, #A7D9B8);
}

/* Game List / Strategy List / Tech List */
.page-fishing-games__game-list,
.page-fishing-games__strategy-list,
.page-fishing-games__tech-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 30px;
}

.page-fishing-games__game-item,
.page-fishing-games__strategy-item,
.page-fishing-games__tech-item {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider, #1E3A2A);
}

.page-fishing-games__game-title,
.page-fishing-games__strategy-title,
.page-fishing-games__tech-title {
  font-size: 1.4em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__game-text,
.page-fishing-games__strategy-text,
.page-fishing-games__tech-text {
  color: var(--text-secondary, #A7D9B8);
}

/* Guide List */
.page-fishing-games__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-counter;
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__guide-item {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-fishing-games__guide-item::before {
  counter-increment: guide-counter;
  content: "Bước " counter(guide-counter);
  font-size: 1.2em;
  font-weight: bold;
  color: var(--glow, #57E38D);
  margin-bottom: 15px;
  background-color: var(--deep-green, #0A4B2C);
  padding: 5px 15px;
  border-radius: 5px;
}

.page-fishing-games__guide-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__guide-text {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

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

.page-fishing-games__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-fishing-games__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 1px solid var(--divider, #1E3A2A);
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-item summary:hover {
  background-color: var(--main-color, #11A84E);
}

.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;
  color: var(--glow, #57E38D);
}

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1em;
  background-color: var(--card-bg, #11271B);
}

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

/* Video Section */
.page-fishing-games__video-section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
  text-align: center;
}

.page-fishing-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 1000px; /* Limit video width for better presentation */
}

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

.page-fishing-games__video-description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    margin-top: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-fishing-games__section-title {
    font-size: 2em;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 7vw, 3em);
  }
}

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

  .page-fishing-games__main-title {
    font-size: clamp(1.5em, 8vw, 2.5em);
  }

  .page-fishing-games__intro-text,
  .page-fishing-games__section-description,
  .page-fishing-games__video-description {
    font-size: 1em;
    padding: 0 10px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding: 0 15px;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 300px !important; /* Max width for buttons */
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-fishing-games__about-section,
  .page-fishing-games__features-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__strategy-section,
  .page-fishing-games__technology-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__video-section {
    padding: 40px 0;
  }

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

  .page-fishing-games__features-grid {
    grid-template-columns: 1fr;
  }

  .page-fishing-games__game-list,
  .page-fishing-games__strategy-list,
  .page-fishing-games__tech-list,
  .page-fishing-games__guide-list {
    gap: 20px;
  }

  .page-fishing-games__feature-item,
  .page-fishing-games__game-item,
  .page-fishing-games__strategy-item,
  .page-fishing-games__tech-item,
  .page-fishing-games__guide-item,
  .page-fishing-games__faq-item {
    padding: 20px;
  }

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

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

  /* Image responsiveness */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important; /* Ensure padding/border included in width */
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__about-section,
  .page-fishing-games__features-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__strategy-section,
  .page-fishing-games__technology-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__video-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-fishing-games__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }

  /* Video responsiveness */
  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .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;
    padding-left: 0; /* Already handled by section padding */
    padding-right: 0; /* Already handled by section padding */
  }
  .page-fishing-games__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
  }

  /* Button responsiveness */
  .page-fishing-games__cta-button,
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
}

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

/* Ensure text color for main content sections */
.page-fishing-games__about-section p,
.page-fishing-games__features-section p,
.page-fishing-games__game-types-section p,
.page-fishing-games__strategy-section p,
.page-fishing-games__technology-section p,
.page-fishing-games__guide-section p,
.page-fishing-games__faq-answer p,
.page-fishing-games__video-description {
  color: var(--text-secondary, #A7D9B8);
}

.page-fishing-games__faq-item summary {
    color: var(--text-main, #F2FFF6);
}