/* style/fishing-games.css */

/* Variables (if any, though shared.css likely handles most) */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-login: #EA7C07;
}

/* Base styles for the page content area */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default to dark text for light body background */
    background-color: var(--secondary-color); /* Assuming body background is light */
}

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

.page-fishing-games__container--centered {
    text-align: center;
}

.page-fishing-games__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-fishing-games__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* 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); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a9fd8 100%); /* Blue gradient for hero */
    color: var(--text-light); /* Light text on dark/gradient background */
    overflow: hidden; /* Prevent image overflow */
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Ensure content is above any background effects */
}

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px 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 {
    text-align: center;
    width: 100%;
}

.page-fishing-games__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-fishing-games__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--button-login); /* Using specific login color for CTA */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

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

.page-fishing-games__cta-button--small {
    padding: 12px 30px;
    font-size: 18px;
}

/* About Section */
.page-fishing-games__section--about {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-fishing-games__section--about p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-fishing-games__image-gallery {
    text-align: center;
    margin: 40px 0;
}

.page-fishing-games__image-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the image */
}

/* Game Types Section */
.page-fishing-games__section--types {
    background-color: #f8fcfd; /* Light blue tint */
    padding-bottom: 80px;
}

.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;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribute space */
    min-height: 450px; /* Ensure cards have similar height */
}

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

.page-fishing-games__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%; /* Ensure image fills card width */
}

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

.page-fishing-games__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fishing-games__card-title a:hover {
    color: #1a7fb4; /* Slightly darker primary on hover */
}

.page-fishing-games__card-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-fishing-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Strategy Section */
.page-fishing-games__section--strategy {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-fishing-games__section--strategy p {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: justify;
}

.page-fishing-games__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__strategy-item {
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__strategy-item img {
    max-width: 100%;
    height: 200px; /* Consistent height for strategy images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-fishing-games__strategy-item p {
    font-size: 16px;
    color: #555;
    text-align: center;
}

/* Promotions Section */
.page-fishing-games__section--promotions {
    background-color: #f8fcfd;
    color: var(--text-dark);
}

.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__promo-list li {
    background: var(--secondary-color);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 18px;
    color: #444;
    display: flex;
    align-items: center;
}

.page-fishing-games__promo-list li strong {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 20px;
}

/* FAQ Section */
.page-fishing-games__section--faq {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

/* FAQ container styles */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 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 20px;
  opacity: 0;
  background: #f9fcfd; /* Light background for answer */
  color: #555;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.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 any content */
  padding: 20px !important;
  opacity: 1;
  background: #f9fcfd;
  border-radius: 0 0 8px 8px;
}

/* Question styles */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  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;
}

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

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 28px;
  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: 30px;
  height: 30px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--button-login); /* Change color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change to '-' in JS */
}


/* Final CTA Section */
.page-fishing-games__section--cta-final {
    background: linear-gradient(90deg, #26A9E0, #3a9fd8);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-fishing-games__section--cta-final .page-fishing-games__section-title {
    color: var(--text-light);
    font-size: 40px;
    margin-bottom: 25px;
}

.page-fishing-games__section--cta-final p {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Responsive Design (Mobile First) --- */
@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

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

    /* Hero Section Mobile */
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__main-title {
        font-size: 36px;
    }

    .page-fishing-games__intro-text {
        font-size: 17px;
    }

    .page-fishing-games__cta-button {
        padding: 14px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images Mobile */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-fishing-games__image-gallery img,
    .page-fishing-games__card-image,
    .page-fishing-games__strategy-item img {
        height: auto !important; /* Allow height to adjust */
        min-height: 200px !important; /* Maintain minimum height */
        object-fit: cover;
    }

    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__game-cards,
    .page-fishing-games__strategy-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-fishing-games__game-cards,
    .page-fishing-games__strategy-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .page-fishing-games__card {
        min-height: auto; /* Allow height to shrink on mobile */
        padding: 20px;
    }

    .page-fishing-games__card-title {
        font-size: 20px;
    }

    .page-fishing-games__card-description {
        font-size: 15px;
    }

    .page-fishing-games__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__promo-list li {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .page-fishing-games__promo-list li strong {
        font-size: 18px;
        margin-bottom: 5px;
    }

    /* FAQ Mobile */
    .page-fishing-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-fishing-games__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-fishing-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 22px;
    }
    
    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }

    /* Final CTA Mobile */
    .page-fishing-games__section--cta-final {
        padding: 50px 15px;
    }

    .page-fishing-games__section--cta-final .page-fishing-games__section-title {
        font-size: 30px;
    }

    .page-fishing-games__section--cta-final p {
        font-size: 17px;
    }
}

/* Ensure no image filters are used */
.page-fishing-games img {
    filter: none !important;
}

/* Content area image size lower limit check */
/* This rule targets all img elements within .page-fishing-games, */
/* ensuring they are not styled to be smaller than 200px. */
.page-fishing-games img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for elements that might otherwise become too small due to parent styling */
.page-fishing-games__card-image,
.page-fishing-games__strategy-item img,
.page-fishing-games__image-gallery img {
  min-width: 200px;
  min-height: 200px;
}

/* Override any potential smaller widths/heights from other rules in mobile context */
@media (max-width: 768px) {
  .page-fishing-games img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}