/* style/fishing-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #1a1a2e; /* Body background from shared.css */
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00;
  --card-bg-light: #ffffff;
  --card-border-color: #e0e0e0;
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: var(--dark-bg-color); /* Inherit from body or explicitly set if needed */
}

.page-fishing-games__text-link {
  color: #FFFF00; /* Link color for contrast */
  text-decoration: underline;
}

.page-fishing-games__text-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

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

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
}

.page-fishing-games__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-fishing-games__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--light-text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  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: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-fishing-games__btn-primary {
  background-color: var(--register-button-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFF00 */
  border-color: var(--register-button-bg);
}

.page-fishing-games__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-3px);
}

.page-fishing-games__btn-secondary {
  background-color: var(--primary-color); /* #017439 */
  color: var(--light-text-color);
  border-color: var(--primary-color);
}

.page-fishing-games__btn-secondary:hover {
  background-color: #015c2d;
  transform: translateY(-3px);
}

.page-fishing-games__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width for the video */
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* General Section Styling */
.page-fishing-games__section {
  padding: 80px 20px;
  text-align: center;
}

.page-fishing-games__content-area,
.page-fishing-games__game-showcase,
.page-fishing-games__guide-section,
.page-fishing-games__promotions-section,
.page-fishing-games__safety-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-final {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__section-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  font-weight: bold;
  color: var(--primary-color); /* Use primary color for titles on light bg */
}

.page-fishing-games__dark-bg .page-fishing-games__section-title {
  color: var(--light-text-color); /* White titles on dark bg */
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__text-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

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

.page-fishing-games__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-fishing-games__dark-bg .page-fishing-games__sub-title {
  color: var(--light-text-color);
}

.page-fishing-games__list {
  list-style: disc inside;
  text-align: left;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-fishing-games__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

/* Game Showcase Grid */
.page-fishing-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__game-card {
  background-color: var(--card-bg-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--dark-text-color);
}

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

.page-fishing-games__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__card-text {
  font-size: 0.95em;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__game-card .page-fishing-games__btn-primary {
  margin: 0 15px;
  width: calc(100% - 30px);
}

/* Safety Section */
.page-fishing-games__safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

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

.page-fishing-games__safety-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no color filters */
}

.page-fishing-games__safety-item .page-fishing-games__sub-title {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* FAQ Section */
.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-fishing-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items on dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--light-text-color);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.05); /* Even lighter for question header */
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-fishing-games__faq-question h3 {
  margin: 0;
  color: var(--light-text-color);
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.05em;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

/* Final CTA Section */
.page-fishing-games__cta-final {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 3em;
  }
  .page-fishing-games__section-title {
    font-size: 2.2em;
  }
}

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

  .page-fishing-games__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }

  .page-fishing-games__main-title {
    font-size: 2.2em;
  }

  .page-fishing-games__intro-text {
    font-size: 1em;
  }

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