/* style/fishing-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Assuming shared.css sets body background to secondary-color (white) */
}

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

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

.page-fishing-games__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
    min-height: 500px;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
    overflow: hidden;
}

.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.6);
    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;
    font-weight: bold;
}

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

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-fishing-games__btn-primary {
    background-color: var(--register-button-color); /* Custom register color */
    color: var(--register-login-font-color); /* Custom font color */
    border: 2px solid var(--register-button-color);
}

.page-fishing-games__btn-primary:hover {
    background-color: darken(var(--register-button-color), 10%);
    border-color: darken(var(--register-button-color), 10%);
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--register-button-color);
}

/* Introduction Section */
.page-fishing-games__introduction-section {
    padding: 80px 0;
}

.page-fishing-games__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-fishing-games__intro-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-fishing-games__intro-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Features Section */
.page-fishing-games__features-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-fishing-games__features-section .page-fishing-games__section-title,
.page-fishing-games__features-section .page-fishing-games__section-subtitle {
    color: var(--text-light);
}

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

.page-fishing-games__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__feature-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-fishing-games__feature-description {
    font-size: 1em;
    opacity: 0.9;
}

/* Guide Section */
.page-fishing-games__guide-section {
    padding: 80px 0;
}

.page-fishing-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-fishing-games__step-item {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background-color: var(--secondary-color);
}

.page-fishing-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-fishing-games__step-description {
    font-size: 1em;
    color: var(--text-dark);
}

.page-fishing-games__guide-cta {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-fishing-games__promotions-section .page-fishing-games__section-title,
.page-fishing-games__promotions-section .page-fishing-games__section-subtitle {
    color: var(--text-light);
}

.page-fishing-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-fishing-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-fishing-games__promo-card h3,
.page-fishing-games__promo-card p {
    padding: 0 20px;
}

.page-fishing-games__promo-title {
    font-size: 1.4em;
    margin: 20px 0 10px;
    color: var(--text-light);
}

.page-fishing-games__promo-description {
    font-size: 1em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.page-fishing-games__promo-cta {
    text-align: center;
}

/* Why Choose Us Section */
.page-fishing-games__why-choose-us {
    padding: 80px 0;
}

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

.page-fishing-games__reason-item {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background-color: var(--secondary-color);
    transition: box-shadow 0.3s ease;
}

.page-fishing-games__reason-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__reason-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
}

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

.page-fishing-games__reason-description {
    font-size: 1em;
    color: var(--text-dark);
}

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

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

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

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.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 25px;
    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 25px 25px;
}

.page-fishing-games__faq-answer p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

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

.page-fishing-games__cta-bottom-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

.page-fishing-games__cta-bottom-section .page-fishing-games__section-subtitle {
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* General Dark/Light Background Classes */
.page-fishing-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

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

.page-fishing-games__light-bg .page-fishing-games__section-title,
.page-fishing-games__light-bg .page-fishing-games__section-subtitle {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__hero-description {
        font-size: 1.1em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__intro-grid {
        grid-template-columns: 1fr;
    }
    .page-fishing-games__intro-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        height: 60vh;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-fishing-games__hero-title {
        font-size: 2.5em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__introduction-section,
    .page-fishing-games__features-section,
    .page-fishing-games__guide-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__why-choose-us,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-bottom-section {
        padding: 40px 0;
    }
    .page-fishing-games__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__promo-image {
        height: 200px; /* Adjust height for mobile promo images */
    }
    .page-fishing-games__feature-icon,
    .page-fishing-games__reason-icon {
        max-width: 100px;
        height: auto;
    }
    .page-fishing-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-fishing-games__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 10px 20px 20px !important;
    }
    /* Ensure content area images maintain min-size or larger */
    .page-fishing-games__introduction-section img,
    .page-fishing-games__features-section img,
    .page-fishing-games__guide-section img,
    .page-fishing-games__promotions-section img,
    .page-fishing-games__why-choose-us img,
    .page-fishing-games__faq-section img {
      min-width: 200px; /* Enforce minimum size for content images */
      min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 2em;
    }
    .page-fishing-games__hero-description {
        font-size: 0.9em;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 10px 15px;
    }
}