/* style/fishing-games.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color: #333333;
    --light-gray: #f9f9f9;
    --border-color: #e0e0e0;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-text: #FFFF00;
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color); /* Matches body background */
}

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

.page-fishing-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-fishing-games__section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-fishing-games__section-description {
    font-size: 18px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFFFFF 100%);
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-fishing-games__main-title {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__description {
    font-size: 20px;
    color: var(--secondary-color);
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-register {
    background: var(--register-btn-bg);
    color: var(--register-login-text);
}

.page-fishing-games__btn-login {
    background: var(--login-btn-bg);
    color: var(--register-login-text);
    margin-left: 20px;
}

.page-fishing-games__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Advantages Section */
.page-fishing-games__advantages-section {
    background-color: var(--light-gray);
}

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

.page-fishing-games__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    min-height: 380px; /* Ensure cards have similar height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

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

.page-fishing-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-fishing-games__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__card-text {
    font-size: 16px;
    color: #555555;
}

/* Popular Games Section */
.page-fishing-games__popular-games {
    background-color: var(--secondary-color);
}

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

.page-fishing-games__game-card {
    background: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-fishing-games__game-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-fishing-games__game-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__game-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-fishing-games__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-fishing-games__btn-primary:hover {
    background: #005a2e;
}

/* How To Play Section */
.page-fishing-games__how-to-play-section {
    background-color: var(--light-gray);
}

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

.page-fishing-games__step-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-fishing-games__step-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-fishing-games__tips-box {
    background: #e6ffe6; /* Light green background for tips */
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    margin-top: 60px;
    text-align: left;
}

.page-fishing-games__tips-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-fishing-games__tips-list li {
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-fishing-games__tips-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    background-color: var(--secondary-color);
}

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

.page-fishing-games__promo-card {
    background: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-fishing-games__promo-title {
    font-size: 22px;
    color: var(--primary-color);
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-fishing-games__promo-text {
    font-size: 16px;
    color: #555555;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 20px 20px 20px;
}

.page-fishing-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.page-fishing-games__cta-bottom {
    margin-top: 60px;
}

/* Security Section */
.page-fishing-games__security-section {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 0;
}

.page-fishing-games__security-section .page-fishing-games__section-title,
.page-fishing-games__security-section .page-fishing-games__section-description {
    color: var(--secondary-color);
}

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

.page-fishing-games__security-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.page-fishing-games__security-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-fishing-games__security-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__security-text {
    font-size: 16px;
    color: #f0f0f0;
}

.page-fishing-games__cta-support {
    margin-top: 60px;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    background-color: var(--light-gray);
}

.page-fishing-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  text-align: left;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--secondary-color);
  border-radius: 0 0 5px 5px;
}

.page-fishing-games__faq-answer p {
    margin: 0;
    color: #555555;
    font-size: 16px;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
  background: #eeeeee;
}

.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
  color: #c30808;
}

/* Final CTA Section */
.page-fishing-games__cta-final {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 0;
}

.page-fishing-games__cta-final .page-fishing-games__section-title,
.page-fishing-games__cta-final .page-fishing-games__section-description {
    color: var(--secondary-color);
}

.page-fishing-games__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* General Image styles */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: 42px;
    }
    .page-fishing-games__section-title {
        font-size: 32px;
    }
    .page-fishing-games__description {
        font-size: 18px;
    }
    .page-fishing-games__card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__main-title {
        font-size: 32px;
    }
    .page-fishing-games__description {
        font-size: 16px;
    }
    .page-fishing-games__section {
        padding: 40px 0;
    }
    .page-fishing-games__section-title {
        font-size: 28px;
    }
    .page-fishing-games__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-fishing-games__grid, .page-fishing-games__game-list, .page-fishing-games__steps-grid, .page-fishing-games__promotions-grid, .page-fishing-games__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-fishing-games__card, .page-fishing-games__game-card, .page-fishing-games__step-item, .page-fishing-games__promo-card, .page-fishing-games__security-item {
        padding: 20px;
        text-align: center;
        align-items: center;
    }
    .page-fishing-games__card-image, .page-fishing-games__game-image, .page-fishing-games__promo-image, .page-fishing-games__security-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-fishing-games__card-title, .page-fishing-games__game-title, .page-fishing-games__step-title, .page-fishing-games__promo-title, .page-fishing-games__security-title {
        font-size: 20px;
    }
    .page-fishing-games__game-info {
        padding: 15px;
    }
    .page-fishing-games__btn-primary, .page-fishing-games__btn-secondary {
        align-self: center;
    }
    .page-fishing-games__tips-box {
        margin-top: 40px;
        padding: 20px;
    }
    .page-fishing-games__tips-title {
        font-size: 20px;
    }
    .page-fishing-games__tips-list li {
        font-size: 15px;
    }
    .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;
        gap: 10px;
    }
    .page-fishing-games__faq-question {
        padding: 15px;
    }
    .page-fishing-games__faq-question h3 {
        font-size: 16px;
    }
    .page-fishing-games__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }
    .page-fishing-games__cta-bottom {
        margin-top: 40px;
    }
    .page-fishing-games__cta-support {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__main-title {
        font-size: 28px;
    }
    .page-fishing-games__section-title {
        font-size: 24px;
    }
    .page-fishing-games__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-fishing-games__btn-login {
        margin-left: 0;
    }
    .page-fishing-games__button-group {
        flex-direction: column;
    }
}