/* style/fishing-games.css */

/* General Body Styling (Assuming shared.css handles body padding-top) */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background: #FFFFFF; /* Explicitly set for clarity, though body is white */
}

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

/* Color Contrast Helpers */
.page-fishing-games__light-bg {
    background: #ffffff;
    color: #333333;
}

.page-fishing-games__dark-bg {
    background: #017439; /* Brand primary color */
    color: #ffffff;
}

/* Section Styling */
.page-fishing-games__section {
    padding: 60px 0;
}

.page-fishing-games__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand primary color for titles */
}

.page-fishing-games__section-title--light {
    color: #ffffff;
}

.page-fishing-games__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
}

.page-fishing-games__article-body p {
    margin-bottom: 1em;
}

.page-fishing-games__article-body strong {
    color: #017439; /* Highlight keywords with brand color */
}

/* Hero Section */
.page-fishing-games__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-fishing-games__hero-image-wrap {
    width: 100%;
    max-height: 70vh; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover the area, may crop */
    min-height: 400px; /* Ensure a minimum height for visual impact */
}

.page-fishing-games__hero-content {
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    color: #333333;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05); /* Subtle shadow */
    position: relative;
    z-index: 1;
}

.page-fishing-games__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    font-weight: 800;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-fishing-games__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px; /* Limit width for button group */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-fishing-games__cta-buttons--center {
    margin-top: 40px;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-fishing-games__btn-primary {
    background: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow for text */
    border: 2px solid #C30808;
}

.page-fishing-games__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
    color: #FFFFFF;
}

.page-fishing-games__btn-secondary {
    background: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-fishing-games__btn-secondary:hover {
    background: #017439;
    color: #ffffff;
}

/* Product Grid (Game List) */
.page-fishing-games__products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 30px;
    margin-top: 40px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-fishing-games__product-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-fishing-games__product-title {
    font-size: 22px;
    font-weight: 700;
    color: #017439;
    margin: 20px 15px 10px;
}

.page-fishing-games__product-description {
    font-size: 15px;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-fishing-games__product-btn {
    margin: 20px 15px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

/* How-To-Play Section */
.page-fishing-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__step-list li {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.page-fishing-games__step-title {
    font-size: 24px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Strategy Guide Section */
.page-fishing-games__image-block {
    text-align: center;
    margin-bottom: 30px;
}

.page-fishing-games__strategy-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-fishing-games__strategy-list {
    list-style: disc;
    padding-left: 20px;
    max-width: 800px;
    margin: 30px auto 0;
    font-size: 17px;
}

.page-fishing-games__strategy-list li {
    margin-bottom: 10px;
}

/* Promotions Section */
.page-fishing-games__promotions {
    background: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-fishing-games__promotion-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.page-fishing-games__promotion-title {
    font-size: 28px;
    color: #FFFF00; /* Custom yellow for promo titles */
    margin-bottom: 15px;
}

.page-fishing-games__promotion-description {
    font-size: 17px;
    margin-bottom: 20px;
}

.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 30px auto 0;
    font-size: 17px;
}

.page-fishing-games__promo-list li {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.page-fishing-games__promo-list li::before {
    content: '✓';
    color: #FFFF00; /* Yellow checkmark */
    font-weight: bold;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.page-fishing-games__btn-view-all {
    margin-top: 30px;
    display: block; /* Make it block to center */
    margin-left: auto;
    margin-right: auto;
    width: fit-content; /* Adjust width to content */
    background: #ffffff;
    color: #017439;
    border: 2px solid #ffffff;
}

.page-fishing-games__btn-view-all:hover {
    background: #f0f0f0;
    color: #017439;
}


/* Why Choose Us Section */
.page-fishing-games__advantages-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__advantages-list li {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    font-size: 17px;
    font-weight: 600;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    padding-left: 50px;
}

.page-fishing-games__advantages-list li::before {
    content: '★'; /* Star icon */
    color: #017439;
    font-size: 24px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

/* FAQ Section (using <details> + <summary> - recommended structure) */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333; /* Ensure contrast for question text */
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439; /* Brand color for question text */
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure contrast for answer text */
}
.page-fishing-games__faq-answer p {
    margin-bottom: 1em;
}


/* --- Responsive Styles (Mobile First Approach) --- */
@media (max-width: 1024px) {
    .page-fishing-games__section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(24px, 5vw, 40px);
    }

    .page-fishing-games__description {
        font-size: 16px;
    }

    .page-fishing-games__products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
        gap: 25px;
    }

    .page-fishing-games__product-title {
        font-size: 20px;
    }

    .page-fishing-games__step-title {
        font-size: 22px;
    }

    .page-fishing-games__promotion-title {
        font-size: 24px;
    }

    .page-fishing-games__advantages-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__container {
        padding: 0 15px !important; /* Ensure padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__section {
        padding: 40px 0 !important;
    }

    /* HERO Main Image Area */
    .page-fishing-games__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }
    .page-fishing-games__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Remove aspect ratio if set by cover */
        min-height: 250px !important; /* Ensure minimum height */
    }
    .page-fishing-games__hero-content {
        padding: 30px 15px !important;
    }
    .page-fishing-games__main-title {
        font-size: clamp(24px, 6vw, 36px) !important;
        margin-bottom: 10px !important;
    }
    .page-fishing-games__description {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    /* Buttons */
    .page-fishing-games__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important; /* Add padding to container */
    }
    .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: 12px 20px !important;
        font-size: 16px !important;
    }

    /* Products Grid */
    .page-fishing-games__products-grid {
        grid-template-columns: 1fr 1fr !important; /* 2 columns for mobile */
        gap: 20px !important;
        overflow-x: hidden !important; /* Crucial for preventing horizontal scroll */
        padding: 0 15px !important; /* Add padding to container */
    }
    .page-fishing-games__product-image {
        height: 160px !important; /* Adjust height for mobile cards */
    }
}