/* General styles for the fishing games page */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    background: #ffffff; /* Default background for the main content area */
    line-height: 1.6;
    padding-bottom: 40px;
}

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

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

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

.page-fishing-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #017439; /* Fallback background for hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for desktop hero image */
    overflow: hidden;
    position: relative;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    display: block;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    width: 100%;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(1, 116, 57, 0.8) 0%, rgba(1, 116, 57, 0.95) 100%);
    margin-top: -100px; /* Overlap with image slightly for visual effect */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__main-title {
    font-size: clamp(32px, 4vw, 48px); /* Responsive font size for H1 */
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFF00; /* Custom font color for H1 in hero */
}

.page-fishing-games__hero-description {
    font-size: 19px;
    margin-bottom: 30px;
    max-width: 700px;
    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 */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-fishing-games__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #FFFF00;
}

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

/* Image content for sections */
.page-fishing-games__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Grid for game types and tips */
.page-fishing-games__grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.page-fishing-games__grid--2-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-fishing-games__card,
.page-fishing-games__tip-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__card:hover,
.page-fishing-games__tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-fishing-games__card-title,
.page-fishing-games__tip-title {
    font-size: 22px;
    font-weight: 700;
    color: #017439;
    margin-bottom: 10px;
}

.page-fishing-games__card-description,
.page-fishing-games__tip-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    text-align: justify;
    flex-grow: 1;
}

.page-fishing-games__btn-card {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

.page-fishing-games__btn-card:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* Why Choose Section - Feature List */
.page-fishing-games__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-fishing-games__feature-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
    text-align: center;
}

.page-fishing-games__feature-description {
    font-size: 16px;
    color: #555555;
    text-align: justify;
}

/* Registration Section - Step List */
.page-fishing-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    counter-reset: step-counter;
}

.page-fishing-games__step-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    background-color: #017439;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-fishing-games__step-title {
    font-size: 22px;
    font-weight: 700;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-fishing-games__step-description {
    font-size: 16px;
    color: #555555;
    text-align: justify;
}

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
}
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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.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;
}
.page-fishing-games__faq-answer p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-image-wrapper {
        height: 500px;
    }
    .page-fishing-games__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(28px, 3.5vw, 42px);
    }
    .page-fishing-games__hero-description {
        font-size: 17px;
    }
    .page-fishing-games__section-title {
        font-size: 32px;
    }
    .page-fishing-games__text-block {
        font-size: 16px;
    }
    .page-fishing-games__card-title,
    .page-fishing-games__tip-title {
        font-size: 20px;
    }
    .page-fishing-games__feature-title {
        font-size: 18px;
    }
    .page-fishing-games__step-title {
        font-size: 20px;
    }
}

@media (max-width: 849px) {
    .page-fishing-games__hero-image {
        object-fit: contain !important; /* Prevents cropping on smaller screens */
        aspect-ratio: unset !important; /* Allows natural aspect ratio */
        height: auto !important; /* Adjust height automatically */
        max-height: 400px; /* Max height to avoid overly tall images */
    }
    .page-fishing-games__hero-image-wrapper {
        height: auto; /* Allow wrapper to adjust to image height */
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
        padding-bottom: 20px;
    }
    .page-fishing-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__section {
        padding: 30px 0;
    }
    .page-fishing-games__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-fishing-games__hero-section {
        padding-top: 10px;
    }
    .page-fishing-games__hero-image-wrapper {
        height: auto !important;
    }
    .page-fishing-games__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        aspect-ratio: unset !important;
        max-height: 300px;
    }
    .page-fishing-games__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__main-title {
        font-size: clamp(24px, 7vw, 36px);
        line-height: 1.3;
    }
    .page-fishing-games__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* Buttons */
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-card {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-fishing-games__btn-card {
        margin-top: auto;
    }

    /* General Images */
    .page-fishing-games__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
        box-sizing: border-box !important;
    }
    .page-fishing-games__card-image {
        height: auto !important;
        max-height: 180px;
    }

    /* Grid Layouts */
    .page-fishing-games__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-fishing-games__grid--2-col {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns for game types */
        gap: 15px; /* Adjust gap for mobile */
    }

    /* Feature List */
    .page-fishing-games__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Step List */
    .page-fishing-games__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .page-fishing-games__step-item::before {
        margin-bottom: 15px;
    }
    .page-fishing-games__step-title {
        font-size: 18px;
    }
    .page-fishing-games__step-description {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-fishing-games__faq-item summary.page-fishing-games__faq-question { padding: 15px; }
    .page-fishing-games__faq-qtext { font-size: 15px; }
    details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
        padding: 0 15px 15px;
    }
    .page-fishing-games__faq-answer p { font-size: 15px; }
}