/* style/fishing-games.css */

/* Custom properties for colors */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00; /* For register/login buttons */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9; /* Slightly off-white for sections */
  --border-color: #e0e0e0;
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Matches the default body white */
}

/* Header offset - applied to the first content section to prevent overlap */
.page-fishing-games__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
}

/* Sections */
.page-fishing-games__section {
  padding: 60px 20px;
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

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

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

.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Inner padding for container */
}

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-fishing-games__section-title--white {
  color: var(--text-light);
}

.page-fishing-games__text--white {
  color: var(--text-light);
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust padding-bottom for hero */
  background: linear-gradient(135deg, var(--primary-color) 0%, #30A86F 100%); /* Green gradient */
  color: var(--text-light);
}

.page-fishing-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-fishing-games__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-fishing-games__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Minimum width for buttons */
  text-align: center;
  box-sizing: border-box; /* Include padding in width */
  border: 2px solid transparent; /* Default border */
}

.page-fishing-games__btn-register {
  background: var(--register-button-bg); /* Custom color for register */
  color: var(--button-text-color); /* Custom text color */
  border-color: var(--button-text-color);
}

.page-fishing-games__btn-register:hover {
  background: #E03A3A; /* Slightly lighter red on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-login {
  background: var(--login-button-bg); /* Custom color for login */
  color: var(--button-text-color); /* Custom text color */
  border-color: var(--button-text-color);
}

.page-fishing-games__btn-login:hover {
  background: #E03A3A; /* Slightly lighter red on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Image with text block */
.page-fishing-games__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 50px 0;
  text-align: left;
  flex-wrap: wrap;
}

.page-fishing-games__image-text-block img {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure img takes full width within its flex item */
  height: auto;
  max-width: 100%;
}

.page-fishing-games__image-text-block p {
  flex: 2;
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

.page-fishing-games__image-text-block--reverse {
  flex-direction: row-reverse;
}

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

.page-fishing-games__card,
.page-fishing-games__promo-card {
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 25px;
}

.page-fishing-games__card:hover,
.page-fishing-games__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-fishing-games__card-title,
.page-fishing-games__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin: 15px 15px 10px;
  color: var(--primary-color);
}

.page-fishing-games__card-text,
.page-fishing-games__promo-text {
  font-size: 16px;
  padding: 0 15px;
  margin-bottom: 0;
}

/* Lists */
.page-fishing-games__ordered-list,
.page-fishing-games__unordered-list {
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
  padding-left: 25px;
  font-size: 18px;
  line-height: 1.8;
}

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

.page-fishing-games__ordered-list li,
.page-fishing-games__unordered-list li {
  margin-bottom: 15px;
}

.page-fishing-games__ordered-list li strong {
  color: var(--primary-color);
}

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

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

.page-fishing-games__advantage-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

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

.page-fishing-games__advantage-item p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Promotions Section */
.page-fishing-games__cta-center {
  margin-top: 40px;
}

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

/* FAQ container style */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height to ensure it expands */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: var(--primary-color); /* Ensure good contrast */
}

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Conclusion Section */
.page-fishing-games__conclusion-section {
  padding: 80px 20px;
}

.page-fishing-games__conclusion-section .page-fishing-games__section-title {
  margin-bottom: 30px;
}

.page-fishing-games__conclusion-section p {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Copyright */
.page-fishing-games__copyright {
  background-color: #000000; /* Dark background for footer copyright */
  color: #cccccc;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 40px;
  }
  .page-fishing-games__description {
    font-size: 18px;
  }
  .page-fishing-games__section-title {
    font-size: 30px;
  }
  .page-fishing-games__image-text-block {
    flex-direction: column;
    text-align: center;
  }
  .page-fishing-games__image-text-block--reverse {
    flex-direction: column;
  }
  .page-fishing-games__image-text-block img {
    margin-bottom: 20px;
  }
  .page-fishing-games__ordered-list,
  .page-fishing-games__unordered-list {
    font-size: 16px;
  }
  .page-fishing-games__advantage-title {
    font-size: 22px;
  }
  .page-fishing-games__card-title,
  .page-fishing-games__promo-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* Header offset for mobile */
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile override */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-fishing-games__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-fishing-games__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-fishing-games__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to button container */
  }

  /* Buttons must take full width on mobile */
  .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;
  }

  /* Button containers mobile adaptation */
  .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: 0px !important; /* Reset padding for internal buttons, handled by individual buttons */
    padding-right: 0px !important;
    overflow: hidden; /* Ensure no horizontal scroll */
  }


  .page-fishing-games__game-cards,
  .page-fishing-games__promo-grid,
  .page-fishing-games__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__card-image {
    height: 180px;
  }
  .page-fishing-games__card-title,
  .page-fishing-games__promo-title {
    font-size: 18px;
  }
  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-fishing-games__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-fishing-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }

  /* All images must be responsive on mobile */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* All containers with images must adapt */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__image-text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }
  .page-fishing-games__image-text-block p {
    font-size: 16px;
  }
}

/* Ensure no filter on images */
.page-fishing-games img {
  filter: none !important; /* Absolutely no filter */
}