/* style/fishing-games.css */

/* Variables (for consistency with shared.css and branding) */
:root {
    --primary-color: #1A202C; /* Dark Blue/Charcoal */
    --secondary-color: #FFD700; /* Gold/Amber */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #f4f4f4; /* From body background */
    --border-color: #e0e0e0;
    --card-background: #ffffff;
}

/* Base styles for the page content */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark); /* Default dark text on light body background */
    background-color: var(--background-light); /* Ensure consistency with body */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-fishing-games__section {
    padding: 80px 0;
    text-align: center;
}

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

.page-fishing-games p {
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--text-color-dark);
}

/* 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; /* Adjusted padding-top via .page-fishing-games */
    overflow: hidden;
    background-color: var(--primary-color); /* Dark background for hero */
    color: var(--text-color-light); /* Light text on dark background */
}

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

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    border-radius: 12px;
}

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

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

.page-fishing-games__main-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Gold title on dark background */
    line-height: 1.2;
}

.page-fishing-games__intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color); /* Dark text on gold button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-fishing-games__cta-button:hover {
    background: #e6c200; /* Darken secondary color */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Introduction Section */
.page-fishing-games__introduction {
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

.page-fishing-games__introduction p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Highlights Section */
.page-fishing-games__highlights {
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-color-light); /* Light text */
}

.page-fishing-games__highlights .page-fishing-games__section-title {
    color: var(--secondary-color); /* Gold title */
}

.page-fishing-games__highlights p {
    color: var(--text-color-light);
}

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

.page-fishing-games__card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark); /* Dark text on light card background */
    border: 1px solid var(--border-color);
}

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

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

.page-fishing-games__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

/* Game Types Section */
.page-fishing-games__game-types {
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

.page-fishing-games__list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__list li {
    background: var(--card-background);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-fishing-games__list li:hover {
    transform: translateX(5px);
}

.page-fishing-games__list-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-fishing-games__list li p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color-dark);
}

.page-fishing-games__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-fishing-games__btn-primary:hover {
    background: #2a3447; /* Lighten primary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* How to Play Section */
.page-fishing-games__how-to-play {
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

.page-fishing-games__numbered-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    counter-reset: step-counter;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__numbered-list li {
    background: var(--card-background);
    border-radius: 10px;
    padding: 25px 30px 25px 70px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    color: var(--text-color-dark);
}

.page-fishing-games__numbered-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 25px;
    top: 25px;
    width: 35px;
    height: 35px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-fishing-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
}

/* Promotions Section */
.page-fishing-games__promotions {
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-color-light); /* Light text */
}

.page-fishing-games__promotions .page-fishing-games__section-title {
    color: var(--secondary-color); /* Gold title */
}

.page-fishing-games__promotions p {
    color: var(--text-color-light);
}

.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-fishing-games__promo-list li {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
}

.page-fishing-games__promo-list .page-fishing-games__list-item-title {
    color: var(--secondary-color); /* Gold title */
}

/* Tips Section */
.page-fishing-games__tips {
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

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

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

.page-fishing-games__tip-card .page-fishing-games__card-title {
    font-size: 20px;
    color: var(--primary-color);
}

/* Support Section */
.page-fishing-games__support {
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-color-light);
}

.page-fishing-games__support .page-fishing-games__section-title {
    color: var(--secondary-color); /* Gold title */
}

.page-fishing-games__support p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

/* FAQ Section */
.page-fishing-games__faq {
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

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

.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--primary-color);
}

.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: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color);
}

.page-fishing-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color); /* Gold 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 event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

.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.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--text-color-dark);
    font-size: 16px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 10px 10px;
}

.page-fishing-games__faq-answer p {
    margin-bottom: 0;
    text-align: left;
    color: var(--text-color-dark);
}

/* Final CTA Section */
.page-fishing-games__cta-final {
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-color-light);
    padding: 100px 0;
}

.page-fishing-games__cta-final .page-fishing-games__section-title {
    color: var(--secondary-color); /* Gold title */
    margin-bottom: 30px;
}

.page-fishing-games__cta-final p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    font-size: 18px;
    color: var(--text-color-light);
}

.page-fishing-games__center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Copyright */
.page-fishing-games__copyright {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-fishing-games__copyright p {
    margin: 0;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-image {
        max-height: 500px;
    }
    .page-fishing-games__main-title {
        font-size: 42px;
    }
    .page-fishing-games__intro-text {
        font-size: 18px;
    }
    .page-fishing-games__section-title {
        font-size: 32px;
    }
    .page-fishing-games__card-title {
        font-size: 20px;
    }
    .page-fishing-games__list-item-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* Mobile specific styles */
    .page-fishing-games {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
        font-size: 16px;
        line-height: 1.5;
    }

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

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

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

    .page-fishing-games__hero-section {
        padding-bottom: 40px;
    }

    .page-fishing-games__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-fishing-games__hero-image img {
        border-radius: 8px;
    }

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

    .page-fishing-games__main-title {
        font-size: 34px;
        margin-bottom: 15px;
    }

    .page-fishing-games__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-fishing-games__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Button responsive fix */
        max-width: 300px !important; /* Max width for mobile buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .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;
      padding-right: 15px;
    }

    /* Images responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__grid,
    .page-fishing-games__list li,
    .page-fishing-games__numbered-list li,
    .page-fishing-games__promo-list li,
    .page-fishing-games__tip-card,
    .page-fishing-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-fishing-games__grid,
    .page-fishing-games__promo-list {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

    .page-fishing-games__card-image {
        height: auto; /* Allow height to adjust */
    }

    .page-fishing-games__faq-question {
        padding: 15px 20px;
    }
    .page-fishing-games__faq-question h3 {
        font-size: 16px;
    }
    .page-fishing-games__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-fishing-games__faq-answer {
        padding: 0 20px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px 20px !important;
    }
    
    .page-fishing-games__numbered-list li {
        padding: 20px 20px 20px 60px;
    }
    .page-fishing-games__numbered-list li::before {
        left: 15px;
        top: 20px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__main-title {
        font-size: 28px;
    }
    .page-fishing-games__section-title {
        font-size: 24px;
    }
    .page-fishing-games__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-fishing-games__card-title {
        font-size: 18px;
    }
    .page-fishing-games__list-item-title {
        font-size: 17px;
    }
    .page-fishing-games p {
        font-size: 15px;
    }
}