.page-fishing-games {
    background-color: #FFFFFF; /* Custom color rule for background */
    color: #333333; /* Default text color for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    background: linear-gradient(135deg, #017439, #005a2d); /* Main color gradient */
    color: #FFFFFF;
    text-align: center;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space between image and text */
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-fishing-games__hero-content {
    padding: 20px;
    position: relative; /* Ensure text is above any potential background elements but not overlapping the image */
    z-index: 2;
}

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__intro-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* General Buttons */
.page-fishing-games__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.page-fishing-games__btn--register {
    background-color: #C30808; /* Custom color for register */
    color: #FFFFFF; /* Auxiliary color for contrast */
}

.page-fishing-games__btn--register:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-fishing-games__btn--login {
    background-color: #C30808; /* Custom color for login */
    color: #FFFFFF; /* Auxiliary color for contrast */
}

.page-fishing-games__btn--login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-fishing-games__btn--primary {
    background-color: #017439; /* Main color */
    color: #FFFFFF; /* Auxiliary color */
}

.page-fishing-games__btn--primary:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

.page-fishing-games__btn--secondary {
    background-color: #FFFFFF; /* Auxiliary color */
    color: #017439; /* Main color */
    border: 1px solid #017439;
}

.page-fishing-games__btn--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-fishing-games__btn--small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.page-fishing-games__btn--large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Section Titles */
.page-fishing-games__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #017439; /* Main color */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-fishing-games__section-title--gradient {
    background: linear-gradient(90deg, #017439, #005a2d); /* Example gradient for titles */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}


/* About Section */
.page-fishing-games__about-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-fishing-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-fishing-games__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-fishing-games__text-content {
    flex: 1;
}

.page-fishing-games__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}


/* Why Choose Section */
.page-fishing-games__why-choose-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Custom background color */
}

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

.page-fishing-games__feature-item {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-fishing-games__feature-title {
    font-size: 1.4rem;
    color: #017439; /* Main color */
    margin-bottom: 15px;
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-fishing-games__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-fishing-games__game-card-title {
    font-size: 1.3rem;
    color: #017439;
    margin: 20px 15px 10px;
}

.page-fishing-games__game-card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fishing-games__game-card-title a:hover {
    color: #005a2d;
}

.page-fishing-games__game-card p {
    font-size: 0.95rem;
    color: #666666;
    padding: 0 15px 20px;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Custom background color */
}

.page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-fishing-games__step-item {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__step-item:last-child {
    margin-bottom: 0;
}

.page-fishing-games__step-title {
    font-size: 1.2rem;
    color: #017439;
    margin-bottom: 10px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-fishing-games__promotions-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

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

.page-fishing-games__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__promo-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-fishing-games__promo-card-title {
    font-size: 1.3rem;
    color: #017439;
    margin: 20px 15px 10px;
}

.page-fishing-games__promo-card p {
    font-size: 0.95rem;
    color: #666666;
    padding: 0 15px 20px;
}

.page-fishing-games__view-all-promotions {
    text-align: center;
    margin-top: 20px;
}

/* Call to Action Section */
.page-fishing-games__cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #017439, #005a2d); /* Main color gradient */
    color: #FFFFFF;
    text-align: center;
}

.page-fishing-games__cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-fishing-games__cta-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-fishing-games__hero-content {
        padding: 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-fishing-games__intro-description {
        font-size: 1rem;
    }
    .page-fishing-games__section-title {
        font-size: 2rem;
    }
    .page-fishing-games__content-wrapper {
        flex-direction: column;
    }
    .page-fishing-games__content-wrapper--reversed {
        flex-direction: column; /* Revert for small screens to maintain standard flow */
    }
    .page-fishing-games__image-content {
        order: -1; /* Image appears above text on mobile for reversed sections */
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: 8px; /* Adjust for smaller screens */
    }
    .page-fishing-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn {
        width: 80%;
        margin: 0 auto;
    }
    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-fishing-games__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-fishing-games__cta-title {
        font-size: 2rem;
    }
    .page-fishing-games__cta-description {
        font-size: 1rem;
    }

    /* CRITICAL: Mobile overflow prevention for images */
    .page-fishing-games img {
        max-width: 100%;
        height: auto;
    }

    .page-fishing-games__games-grid,
    .page-fishing-games__promotions-grid,
    .page-fishing-games__features-grid {
        grid-template-columns: 1fr;
    }

    .page-fishing-games__game-card-image,
    .page-fishing-games__promo-card-image {
        height: auto; /* Allow height to adjust */
        min-height: 200px; /* Still enforce minimum height */
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-buttons {
        gap: 10px;
    }
    .page-fishing-games__btn {
        width: 90%;
    }
    .page-fishing-games__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-fishing-games__section-title {
        font-size: 1.5rem;
    }
    .page-fishing-games__cta-title {
        font-size: 1.8rem;
    }
}