/* General Styling */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color from custom colors */
    background: var(--bg-color, #08160F); /* Default background from custom colors */
}

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

.page-fishing-games__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    background: var(--deep-green, #0A4B2C);
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for desktop */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-fishing-games__hero-content {
    max-width: 900px;
    padding: 20px;
    z-index: 1;
    color: var(--text-main, #F2FFF6);
}

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

.page-fishing-games__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

.page-fishing-games__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
    background: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--border, #2E7A4E);
}

.page-fishing-games__btn-secondary:hover {
    background: var(--border, #2E7A4E);
    color: #ffffff;
}

/* Intro Section */
.page-fishing-games__intro-section {
    padding: 60px 0;
    background: var(--bg-color, #08160F);
    color: var(--text-secondary, #A7D9B8);
}

.page-fishing-games__intro-section p {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-fishing-games__intro-section strong {
    color: var(--text-main, #F2FFF6);
}

.page-fishing-games__intro-section a {
    color: var(--gold, #F2C14E);
    text-decoration: none;
}

.page-fishing-games__intro-section a:hover {
    text-decoration: underline;
}

/* Game Showcase */
.page-fishing-games__game-showcase {
    padding: 60px 0;
    background: var(--card-bg, #11271B);
}

.page-fishing-games__game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-fishing-games__game-card {
    background: var(--deep-green, #0A4B2C);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-fishing-games__game-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 15px 10px;
    color: var(--text-main, #F2FFF6);
}

.page-fishing-games__game-title a {
    color: var(--gold, #F2C14E);
    text-decoration: none;
}

.page-fishing-games__game-title a:hover {
    text-decoration: underline;
}

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

.page-fishing-games__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    align-self: center;
}

.page-fishing-games__btn-small:hover {
    filter: brightness(1.1);
}

/* Features Section */
.page-fishing-games__features-section {
    padding: 60px 0;
    background: var(--bg-color, #08160F);
}

.page-fishing-games__feature-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-fishing-games__feature-item {
    text-align: center;
    background: var(--card-bg, #11271B);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-fishing-games__feature-heading {
    font-size: 20px;
    font-weight: bold;
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
}

.page-fishing-games__feature-item p {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
    padding: 60px 0;
    background: var(--card-bg, #11271B);
}

.page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    counter-reset: step-counter;
}

.page-fishing-games__step-item {
    background: var(--deep-green, #0A4B2C);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-secondary, #A7D9B8);
}

.page-fishing-games__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-fishing-games__step-heading {
    font-size: 20px;
    color: var(--gold, #F2C14E);
    margin: 0 0 10px 30px; /* Adjust margin for number */
}

.page-fishing-games__step-item p {
    font-size: 16px;
    margin-left: 30px; /* Adjust margin for number */
}

.page-fishing-games__cta-buttons--center {
    margin-top: 40px;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 60px 0;
    background: var(--bg-color, #08160F);
}

.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #F2FFF6);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: rgba(46, 122, 78, 0.2); /* Lighter hover for dark background */
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F2FFF6);
}
.page-fishing-games__faq-qtext a {
    color: var(--gold, #F2C14E);
    text-decoration: none;
}
.page-fishing-games__faq-qtext a:hover {
    text-decoration: underline;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 20px;
  background: var(--deep-green, #0A4B2C);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary, #A7D9B8);
}
.page-fishing-games__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
}
.page-fishing-games__faq-answer a {
    color: var(--gold, #F2C14E);
    text-decoration: none;
}
.page-fishing-games__faq-answer a:hover {
    text-decoration: underline;
}


/* Bottom CTA Section */
.page-fishing-games__cta-bottom-section {
    padding: 60px 0;
    background: var(--card-bg, #11271B);
    text-align: center;
}

.page-fishing-games__cta-bottom-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

.page-fishing-games__btn-primary--large {
    padding: 18px 40px;
    font-size: 20px;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-fishing-games__hero-section {
        min-height: 500px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-fishing-games__description {
        font-size: 17px;
    }
    .page-fishing-games__game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-fishing-games__feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-fishing-games__section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    /* General */
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-fishing-games__container {
        padding: 0 15px !important; /* Force padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__section-title {
        font-size: 24px;
        margin-bottom: 30px;
        padding-top: 15px;
    }

    /* Hero Section */
    .page-fishing-games__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        min-height: auto;
    }
    .page-fishing-games__hero-image-wrapper {
        max-height: 300px;
    }
    .page-fishing-games__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-fishing-games__hero-content {
        padding: 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-fishing-games__description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* Buttons and CTA */
    .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 if any from parent */
      padding-right: 0px !important; /* Reset padding if any from parent */
      flex-direction: column !important; /* Stack buttons vertically */
      gap: 15px !important;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-small,
    .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: 12px 15px !important;
        font-size: 16px !important;
    }
    .page-fishing-games__btn-primary--large {
        padding: 15px 25px !important;
        font-size: 18px !important;
    }

    /* Intro Section */
    .page-fishing-games__intro-section {
        padding: 40px 0;
    }
    .page-fishing-games__intro-section p {
        font-size: 15px;
    }

    /* Game Showcase */
    .page-fishing-games__game-showcase {
        padding: 40px 0;
    }
    .page-fishing-games__game-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-fishing-games__game-image {
        height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-fishing-games__game-title {
        font-size: 20px;
    }
    .page-fishing-games__game-description {
        font-size: 14px;
    }

    /* Features Section */
    .page-fishing-games__features-section {
        padding: 40px 0;
    }
    .page-fishing-games__feature-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-fishing-games__feature-item {
        padding: 25px 15px;
    }
    .page-fishing-games__feature-icon {
        width: 80px;
        height: 80px;
        max-width: 100% !important;
        height: auto !important;
    }
    .page-fishing-games__feature-heading {
        font-size: 18px;
    }
    .page-fishing-games__feature-item p {
        font-size: 15px;
    }

    /* How to Play Section */
    .page-fishing-games__how-to-play-section {
        padding: 40px 0;
    }
    .page-fishing-games__step-item {
        padding: 20px 20px 20px 40px; /* Adjust padding for number */
    }
    .page-fishing-games__step-item::before {
        left: 5px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .page-fishing-games__step-heading {
        font-size: 18px;
        margin-left: 15px;
    }
    .page-fishing-games__step-item p {
        font-size: 15px;
        margin-left: 15px;
    }

    /* FAQ Section */
    .page-fishing-games__faq-section {
        padding: 40px 0;
    }
    details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
        padding: 15px;
    }
    .page-fishing-games__faq-qtext {
        font-size: 16px;
    }
    .page-fishing-games__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
        padding: 0 15px 15px;
    }
    .page-fishing-games__faq-answer p {
        font-size: 15px;
    }

    /* Bottom CTA Section */
    .page-fishing-games__cta-bottom-section {
        padding: 40px 0;
    }
    .page-fishing-games__cta-bottom-section p {
        font-size: 16px;
    }
}