/* style/fishing-games.css */
/* Custom properties for colors from the design system */
:root {
    --color-primary: #C61F1F; /* Main brand color */
    --color-secondary: #E53030; /* Auxiliary brand color */
    --color-button-gradient-start: #FFB04A;
    --color-button-gradient-end: #D86A14;
    --color-card-bg: #2A1212;
    --color-background: #140C0C;
    --color-text-main: #FFF1E8;
    --color-border: #6A1E1E;
    --color-gold: #F3C54D;
    --color-deep-red: #7E0D0D;

    /* Body background is from shared, which is --bg-color. Assuming it's dark based on --color-background */
    --text-on-dark-bg: var(--color-text-main); /* #FFF1E8 */
    --text-on-light-bg: #333333; /* Default dark text */
    --card-text-color: var(--color-text-main); /* #FFF1E8 */
}

.page-fishing-games {
    background-color: var(--color-background); /* Explicitly set page background */
    color: var(--text-on-dark-bg); /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from content */
}

/* Ensure all images are responsive by default */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space nicely */
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden;
}

.page-fishing-games__hero-image {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px; /* Space between image and content */
}

.page-fishing-games__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 15px;
    color: var(--text-on-dark-bg);
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-fishing-games__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--color-gold); /* Gold for emphasis on dark background */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

.page-fishing-games__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-fishing-games__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

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

.page-fishing-games__text-block {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--color-text-main);
}

/* Section Backgrounds */
.page-fishing-games__introduction-section,
.page-fishing-games__popular-games-section,
.page-fishing-games__strategies-section,
.page-fishing-games__faq-section {
    background-color: var(--color-background); /* Primary dark background */
    padding: 60px 0;
}

.page-fishing-games__features-section,
.page-fishing-games__guide-section,
.page-fishing-games__promotions-section,
.page-fishing-games__conclusion-section {
    background-color: var(--color-card-bg); /* Slightly different dark background */
    padding: 60px 0;
}

/* Card Styles */
.page-fishing-games__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--card-text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

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

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

.page-fishing-games__card-title a:hover {
    color: var(--color-button-gradient-start);
}

.page-fishing-games__card-description {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Button Styles */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-fishing-games__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff; /* White text on button gradient */
    border: 2px solid transparent;
}

.page-fishing-games__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    box-shadow: 0 0 15px rgba(255, 176, 74, 0.6);
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: var(--color-gold); /* Gold text for secondary button */
    border: 2px solid var(--color-gold);
}

.page-fishing-games__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background); /* Dark background text on gold hover */
    box-shadow: 0 0 15px rgba(243, 197, 77, 0.6);
}

.page-fishing-games__card-button {
    width: calc(100% - 40px); /* Adjust for card padding */
    margin-top: auto; /* Push button to bottom of card */
}

/* Feature List */
.page-fishing-games__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-fishing-games__feature-item {
    background-color: var(--color-background); /* Darker background for feature items */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: var(--text-on-dark-bg);
}

.page-fishing-games__feature-title {
    font-size: 1.3em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-fishing-games__feature-description {
    font-size: 0.95em;
}

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

/* Guide List & Strategy List */
.page-fishing-games__guide-list,
.page-fishing-games__strategy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-fishing-games__guide-item,
.page-fishing-games__strategy-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-on-dark-bg);
}

.page-fishing-games__guide-step-title,
.page-fishing-games__strategy-title {
    font-size: 1.25em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-fishing-games__image-content {
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__full-promo-cta {
    text-align: center;
    margin-top: 30px;
}

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

.page-fishing-games__faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-on-dark-bg);
    overflow: hidden;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    background-color: var(--color-card-bg); /* Darker background for question */
    border-bottom: 1px solid var(--color-border);
}

.page-fishing-games__faq-question:hover {
    background-color: var(--color-deep-red);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-fishing-games__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-on-dark-bg);
}

/* Conclusion Section */
.page-fishing-games__conclusion-section {
    text-align: center;
    padding: 60px 20px;
}

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

.page-fishing-games a {
    color: var(--color-gold);
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-fishing-games__hero-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }

    .page-fishing-games__hero-description {
        font-size: 1em;
    }

    .page-fishing-games__hero-cta-buttons,
    .page-fishing-games__conclusion-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .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; /* Add padding for mobile buttons */
        padding-right: 15px;
    }

    .page-fishing-games__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
    }

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

    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video section (if present) - ensuring no overflow */
    .page-fishing-games video,
    .page-fishing-games__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-fishing-games__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-fishing-games__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-fishing-games__feature-list,
    .page-fishing-games__game-grid,
    .page-fishing-games__promotion-grid {
        grid-template-columns: 1fr;
    }
    
    .page-fishing-games__card-image {
        height: auto; /* Allow card image height to be auto on mobile */
    }

    .page-fishing-games__faq-question {
        padding: 12px 15px;
        font-size: 1em;
    }

    .page-fishing-games__faq-answer {
        padding: 12px 15px;
        font-size: 0.9em;
    }
}