/* style/fishing-games.css */

/* Variables (if any specific to this page, otherwise shared.css handles global ones) */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f8f8f8;
    --background-dark: #017439; /* Using primary color for dark sections */
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-font-color: #FFFF00;
}

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

/* 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 space for fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background for visual appeal */
    min-height: 600px;
}

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

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: none !important; /* Ensure no filter is used */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent background for text readability */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__main-title {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-fishing-games__description {
    font-size: 1.3em;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: normal; /* Allow text wrapping for buttons */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button adapts to container width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-fishing-games__btn-register {
    background: var(--button-register-bg); /* #C30808 */
    color: var(--button-font-color); /* #FFFF00 */
    border: 2px solid var(--button-register-bg);
}

.page-fishing-games__btn-register:hover {
    background: #a80707;
    border-color: #a80707;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-login {
    background: var(--button-login-bg); /* #C30808 */
    color: var(--button-font-color); /* #FFFF00 */
    border: 2px solid var(--button-login-bg);
}

.page-fishing-games__btn-login:hover {
    background: #a80707;
    border-color: #a80707;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-primary:hover {
    background: #005a2e;
    border-color: #005a2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-fishing-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    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(--primary-color);
    border-radius: 2px;
}

.page-fishing-games__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Backgrounds */
.page-fishing-games__light-bg {
    background-color: var(--background-light); /* #f8f8f8 */
    color: var(--text-color-dark); /* #333333 */
}

.page-fishing-games__dark-bg {
    background-color: var(--background-dark); /* #017439 */
    color: var(--text-color-light); /* #ffffff */
}

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

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

.page-fishing-games__dark-bg .page-fishing-games__card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-fishing-games__dark-bg .page-fishing-games__card-title a {
    color: var(--button-font-color); /* #FFFF00 for links in dark cards */
}

.page-fishing-games__dark-bg .page-fishing-games__card-title a:hover {
    color: var(--secondary-color);
}


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

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

.page-fishing-games__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
    filter: none !important; /* Ensure no filter is used */
}

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

.page-fishing-games__card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-fishing-games__card-title a:hover {
    color: #005a2e;
}

.page-fishing-games__card-description {
    font-size: 1em;
    line-height: 1.6;
    padding: 0 20px 20px;
    text-align: justify;
}

/* Guide Section */
.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-fishing-games__guide-list li {
    background: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    line-height: 1.7;
}

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

.page-fishing-games__guide-list li a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-fishing-games__guide-list li a:hover {
    color: #005a2e;
}

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

/* Tips Section */
.page-fishing-games__tips-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color-light);
}

.page-fishing-games__tips-list li {
    margin-bottom: 10px;
}

.page-fishing-games__tips-list li strong {
    color: var(--button-font-color); /* #FFFF00 for emphasis in dark sections */
}

.page-fishing-games__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 40px auto 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    filter: none !important; /* Ensure no filter is used */
}

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

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

.page-fishing-games__advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

/* Promotions Section */
.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-fishing-games__promo-list li {
    background: rgba(255, 255, 255, 0.15);
    border-left: 5px solid var(--button-font-color); /* #FFFF00 for accent */
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-color-light);
}

.page-fishing-games__promo-list li strong {
    color: var(--button-font-color);
}

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

/* FAQ container styles */
.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 expansion */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to contain all content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark); /* Ensure text is dark on light background */
}

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

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

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

/* Question title styles */
.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 events */
  color: inherit;
}

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Use primary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--text-color-dark);
  border-color: var(--text-color-dark);
  transform: rotate(45deg); /* Rotate for minus sign */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: 2.8em;
    }
    .page-fishing-games__description {
        font-size: 1.2em;
    }
    .page-fishing-games__section-title {
        font-size: 2.2em;
    }
    .page-fishing-games__container {
        padding: 50px 20px;
    }
    .page-fishing-games__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding top */
        padding-bottom: 40px;
        min-height: auto;
    }
    .page-fishing-games__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-fishing-games__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__cta-button {
        width: 100% !important; /* Ensure buttons take full width on mobile */
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-fishing-games__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-fishing-games__text-block {
        font-size: 0.95em;
    }

    .page-fishing-games__game-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__card img {
        height: 200px; /* Adjust card image height for mobile */
    }

    .page-fishing-games__card-title {
        font-size: 1.3em;
    }

    .page-fishing-games__guide-list li,
    .page-fishing-games__tips-list li,
    .page-fishing-games__promo-list li,
    .page-fishing-games__advantage-item p {
        font-size: 0.95em;
    }

    .page-fishing-games__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-fishing-games__content-image {
        margin: 20px auto;
        border-radius: 8px;
    }

    /* FAQ Mobile */
    .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;
    }

    /* Enforce image responsiveness for all images */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all containers with images also adapt */
    .page-fishing-games__hero-container,
    .page-fishing-games__game-cards,
    .page-fishing-games__card,
    .page-fishing-games__advantages-grid,
    .page-fishing-games__advantage-item,
    .page-fishing-games__faq-list,
    .page-fishing-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* For flex/grid containers, ensure items wrap */
        flex-wrap: wrap !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

/* Ensure all links within main content are readable */
.page-fishing-games a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games a:hover {
    text-decoration: underline;
    color: #005a2e;
}

/* Ensure strong tags in dark sections are visible */
.page-fishing-games__dark-bg strong {
    color: var(--button-font-color); /* #FFFF00 */
}

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