/* style/fishing-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
}

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

/* Ensure main content areas are readable against shared body background */
.page-fishing-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-fishing-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-fishing-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 800px;
    padding: 20px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Buttons */
.page-fishing-games__btn-primary {
    display: inline-block;
    background-color: var(--register-color); /* Using register color for primary action */
    color: var(--register-login-font-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-fishing-games__btn-primary:hover {
    background-color: darken(var(--register-color), 10%); /* Example darken effect */
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-fishing-games__btn-center {
    display: block;
    margin: 30px auto 0 auto;
    width: fit-content;
}

/* Sections */
.page-fishing-games__introduction-section,
.page-fishing-games__types-section,
.page-fishing-games__guide-section,
.page-fishing-games__promotions-section,
.page-fishing-games__benefits-section,
.page-fishing-games__cta-section {
    padding: 60px 0;
}

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

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

.page-fishing-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

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

.page-fishing-games__game-card,
.page-fishing-games__promo-card {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-fishing-games__game-card:hover,
.page-fishing-games__promo-card:hover {
    transform: translateY(-10px);
}

.page-fishing-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-fishing-games__card-description {
    font-size: 1em;
    color: #666;
}

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

.page-fishing-games__guide-list li {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
}

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

.page-fishing-games__guide-list ul {
    list-style: disc inside;
    margin-top: 10px;
    padding-left: 20px;
}

/* Benefits List */
.page-fishing-games__benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-fishing-games__benefits-list li {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1.1em;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 60px 0;
    color: var(--text-light);
}

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

.page-fishing-games__faq-item {
    background-color: var(--card-bg-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    color: var(--text-light);
}

.page-fishing-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px;
}

.page-fishing-games__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* CTA Section */
.page-fishing-games__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-fishing-games__cta-content {
    max-width: 900px;
}

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

    .page-fishing-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-fishing-games__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }

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

    .page-fishing-games__section-title {
        font-size: 1.8em;
    }

    .page-fishing-games__game-grid,
    .page-fishing-games__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-fishing-games__game-card,
    .page-fishing-games__promo-card,
    .page-fishing-games__guide-list li,
    .page-fishing-games__benefits-list li,
    .page-fishing-games__faq-item {
        padding: 15px;
    }

    .page-fishing-games__image-content,
    .page-fishing-games__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    
    /* All images base responsive styles */
    .page-fishing-games img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* All image containers responsive styles */
    .page-fishing-games__container,
    .page-fishing-games__game-card,
    .page-fishing-games__promo-card,
    .page-fishing-games__faq-item,
    .page-fishing-games__cta-content {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      overflow: hidden !important;
    }
    
    /* Buttons responsive styles */
    .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 !important;
      padding-right: 15px !important;
    }

    .page-fishing-games__btn-center {
        width: 100%;
    }

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

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

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

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

@media (max-width: 480px) {
    .page-fishing-games__hero-section {
        height: 400px;
    }

    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }

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

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}