/* style/fishing-games.css */

/* Custom Colors */
:root {
    --pg88-primary: #11A84E; /* Main */
    --pg88-secondary: #22C768; /* Aux */
    --pg88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --pg88-bg-card: #11271B; /* Card BG */
    --pg88-bg-main: #08160F; /* Background */
    --pg88-text-main: #F2FFF6; /* Text Main */
    --pg88-text-secondary: #A7D9B8; /* Text Secondary */
    --pg88-border: #2E7A4E; /* Border */
    --pg88-glow: #57E38D; /* Glow */
    --pg88-gold: #F2C14E; /* Gold */
    --pg88-divider: #1E3A2A; /* Divider */
    --pg88-deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page content */
.page-fishing-games {
    background-color: var(--pg88-bg-main); /* Dark background */
    color: var(--pg88-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Space for footer */
}

/* Fixed Header Spacing - body already handles padding-top, so only small decorative top padding here */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
    text-align: center;
    background-color: var(--pg88-deep-green);
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-fishing-games__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any decorative background elements */
}

.page-fishing-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    color: var(--pg88-gold); /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-fishing-games__description {
    font-size: 1.1rem;
    color: var(--pg88-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-fishing-games__btn-primary {
    background: var(--pg88-button-gradient);
    color: var(--pg88-text-main); /* Light text on dark button */
    border: 2px solid transparent;
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-fishing-games__btn-secondary {
    background: var(--pg88-bg-card); /* Darker green background */
    color: var(--pg88-primary); /* Primary color text */
    border: 2px solid var(--pg88-primary);
}

.page-fishing-games__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--pg88-primary);
    color: var(--pg88-text-main);
}

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

.page-fishing-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--pg88-gold);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-fishing-games__about-section,
.page-fishing-games__games-showcase-section,
.page-fishing-games__why-pg88-section,
.page-fishing-games__faq-section {
    padding: 60px 0;
    background-color: var(--pg88-bg-main);
}

.page-fishing-games__grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-fishing-games__grid--reverse {
    flex-direction: row-reverse;
}

.page-fishing-games__text-content {
    flex: 1;
    color: var(--pg88-text-secondary);
}

.page-fishing-games__text-content h3 {
    color: var(--pg88-text-main);
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-fishing-games__image-wrapper {
    flex: 1;
    text-align: center;
}

.page-fishing-games__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-fishing-games__game-card {
    background-color: var(--pg88-bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-fishing-games__card-title {
    font-size: 1.4rem;
    color: var(--pg88-text-main);
    margin: 20px 15px 10px;
}

.page-fishing-games__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fishing-games__card-title a:hover {
    color: var(--pg88-primary);
}

.page-fishing-games__card-text {
    font-size: 0.95rem;
    color: var(--pg88-text-secondary);
    padding: 0 15px;
    margin-bottom: 20px;
}

.page-fishing-games__card-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--pg88-button-gradient);
    color: var(--pg88-text-main);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: calc(100% - 30px); /* Account for padding */
}

.page-fishing-games__card-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-fishing-games__feature-item {
    background-color: var(--pg88-bg-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--pg88-primary);
}

.page-fishing-games__feature-item h3 {
    color: var(--pg88-text-main);
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-fishing-games__feature-item p {
    color: var(--pg88-text-secondary);
    font-size: 0.95rem;
}

.page-fishing-games__feature-item a {
    color: var(--pg88-primary);
    text-decoration: none;
}

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

.page-fishing-games__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--pg88-deep-green); /* Use deep green for CTA section */
    color: var(--pg88-text-main);
}

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

.page-fishing-games__cta-content .page-fishing-games__section-title {
    margin-top: 0;
    color: var(--pg88-gold);
}

.page-fishing-games__cta-content .page-fishing-games__description {
    color: var(--pg88-text-secondary);
    margin-bottom: 40px;
}

/* FAQ Section */
.page-fishing-games__faq-list {
    margin-top: 40px;
}

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--pg88-deep-green); /* Darker background for question */
    border-bottom: 1px solid var(--pg88-divider);
    color: var(--pg88-text-main);
    list-style: none; /* For details/summary */
}

/* Hide default details marker */
.page-fishing-games__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-fishing-games__faq-item summary::marker {
    display: none;
}

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

.page-fishing-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--pg88-primary);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    content: "−";
}

.page-fishing-games__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--pg88-text-secondary);
    border-top: 1px solid var(--pg88-divider);
}

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

.page-fishing-games__faq-answer a {
    color: var(--pg88-primary);
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-fishing-games__grid {
        flex-direction: column;
    }
    .page-fishing-games__grid--reverse {
        flex-direction: column; /* Revert order for mobile */
    }
    .page-fishing-games__hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-fishing-games__container {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .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,
    .page-fishing-games__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    
    /* Videos responsiveness (though not used in this specific content, keep for robustness) */
    .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 */
    }

    /* Buttons responsiveness */
    .page-fishing-games__cta-button,
    .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;
    }
    
    .page-fishing-games__cta-buttons,
    .page-fishing-games__button-group,
    .page-fishing-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-fishing-games__cta-buttons {
        display: flex; /* Ensure flex context for column direction */
    }

    .page-fishing-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding */
    }

    .page-fishing-games__main-title {
        font-size: 2rem;
    }

    .page-fishing-games__description {
        font-size: 1rem;
    }

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

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

    .page-fishing-games__feature-item {
        padding: 15px;
    }

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

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