/* style/fishing-games.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-color: #FFFF00;
    --background-color-page: #FFFFFF;
}

body {
    background-color: var(--background-color-page);
    color: var(--text-color-dark);
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
}

/* Header Offset */
.page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px);
}

.page-fishing-games__section {
    padding: 60px 0;
    background-color: var(--background-color-page);
}

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

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

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

.page-fishing-games__section-title {
    font-size: 2.5em;
    color: inherit;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: inherit;
}

/* 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;
    background: linear-gradient(135deg, var(--primary-color), #00A650); /* Gradient for visual appeal */
    color: var(--text-color-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;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-fishing-games__hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--button-text-color); /* Use #FFFF00 for H1 text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--button-register-bg);
    color: var(--button-text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--button-text-color);
}

.page-fishing-games__cta-button:hover {
    background: #ff4d4d; /* Slightly lighter red for hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-fishing-games__intro-section p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.page-fishing-games__feature-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    color: var(--text-color-dark);
}

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

.page-fishing-games__feature-card img {
    width: 100%;
    max-width: 400px; /* Ensure images are not too small */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__feature-card p {
    font-size: 1em;
    color: var(--text-color-dark);
}

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

.page-fishing-games__guide-image {
    flex: 1;
    min-width: 300px; /* Ensure image is not too small */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-fishing-games__guide-list {
    flex: 2;
    list-style: decimal;
    padding-left: 25px;
    font-size: 1.1em;
    color: var(--text-color-dark);
}

.page-fishing-games__guide-list li {
    margin-bottom: 15px;
    line-height: 1.8;
}

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

.page-fishing-games__link-inline {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-fishing-games__link-inline:hover {
    color: #00A650;
}

.page-fishing-games__btn-primary {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 15px 40px;
    background: var(--button-register-bg);
    color: var(--button-text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--button-text-color);
}

.page-fishing-games__btn-primary:hover {
    background: #ff4d4d;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__promotion-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
}

.page-fishing-games__promotion-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
}

.page-fishing-games__promotion-card img {
    width: 100%;
    max-width: 350px; /* Ensure images are not too small */
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__promotion-card h3 {
    color: var(--button-text-color); /* Use #FFFF00 for promotion titles */
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-fishing-games__promotion-card p {
    font-size: 0.95em;
    color: var(--text-color-light);
}

.page-fishing-games__btn-secondary {
    display: block;
    width: fit-content;
    margin: 50px auto 0 auto;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Safety Section */
.page-fishing-games__safety-section p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.page-fishing-games__safety-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.page-fishing-games__safety-list li {
    background: var(--secondary-color);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 1em;
    color: var(--text-color-dark);
    border-left: 5px solid var(--primary-color);
}

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

/* Mobile Section */
.page-fishing-games__mobile-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    text-align: left;
}

.page-fishing-games__mobile-content p {
    flex: 1;
    min-width: 300px;
    font-size: 1.1em;
    color: var(--text-color-dark);
}

.page-fishing-games__mobile-image {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    background-color: #f0f0f0; /* Light background for phone image */
    padding: 20px;
}

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

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.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 20px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-color-dark);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border-radius: 8px;
  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;
}

.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-dark);
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  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);
}

/* CTA Bottom Section */
.page-fishing-games__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(90deg, #017439, #00A650);
    color: var(--text-color-light);
}

.page-fishing-games__cta-bottom-content h2 {
    color: var(--button-text-color); /* Use #FFFF00 for bottom CTA title */
    font-size: 2.8em;
    margin-bottom: 25px;
}

.page-fishing-games__cta-bottom-content p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-color-light);
}


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

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-fishing-games__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .page-fishing-games__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-fishing-games__hero-content h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-fishing-games__hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-fishing-games__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

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

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

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

    .page-fishing-games__features-grid, 
    .page-fishing-games__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__feature-card,
    .page-fishing-games__promotion-card {
        padding: 20px;
    }

    .page-fishing-games__feature-card img,
    .page-fishing-games__promotion-card img,
    .page-fishing-games__guide-image,
    .page-fishing-games__mobile-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__guide-content,
    .page-fishing-games__mobile-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-fishing-games__guide-image {
        order: -1; /* Move image above text on mobile */
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1.05em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-fishing-games__safety-list li {
        padding: 12px 15px;
        font-size: 0.95em;
    }

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

    .page-fishing-games__faq-question h3 {
        font-size: 1em;
    }

    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }

    .page-fishing-games__cta-bottom-section {
        padding: 60px 15px;
    }

    .page-fishing-games__cta-bottom-content h2 {
        font-size: 2em;
    }

    .page-fishing-games__cta-bottom-content p {
        font-size: 1em;
    }
    
    /* Ensure all containers with images/buttons are constrained */
    .page-fishing-games__section,
    .page-fishing-games__container,
    .page-fishing-games__hero-container,
    .page-fishing-games__features-grid,
    .page-fishing-games__promotions-grid,
    .page-fishing-games__guide-content,
    .page-fishing-games__mobile-content,
    .page-fishing-games__faq-list,
    .page-fishing-games__cta-bottom-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-content h1 {
        font-size: 1.8em;
    }
    .page-fishing-games__section-title {
        font-size: 1.6em;
    }
    .page-fishing-games__cta-bottom-content h2 {
        font-size: 1.8em;
    }
}