/* style/fishing-games.css */

/* --- Base Styles --- */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #000 (dark), so text should be light */
    background-color: transparent; /* Main content background is transparent, relying on body's #000 */
    padding-top: var(--header-offset, 120px); /* Apply header offset here if shared doesn't set it on body */
}

/* Ensure sections have some padding for content */
.page-fishing-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-fishing-games__section-title {
    font-size: 36px;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-fishing-games__text-block {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for readability on dark */
}

/* --- Buttons --- */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-fishing-games__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #000000; /* Black for contrast on gold */
    border: 2px solid #FFD700;
}

.page-fishing-games__btn-primary:hover {
    background-color: #e0b800; /* Darker gold */
    border-color: #e0b800;
    color: #000000;
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #FFD700;
    color: #000000;
}

.page-fishing-games__btn-link {
    background-color: #8B0000; /* Dark Red */
    color: #ffffff; /* White */
    border: 2px solid #8B0000;
    padding: 10px 20px;
    font-size: 16px;
}

.page-fishing-games__btn-link:hover {
    background-color: #a00000; /* Lighter red */
    border-color: #a00000;
}

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* --- Hero Section --- */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 0; /* shared.css should handle body padding-top, so hero is 0 */
    margin-top: 0;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
    filter: brightness(0.7); /* Slightly darken image to make text pop */
}

.page-fishing-games__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    max-width: 900px;
    width: 90%;
}

.page-fishing-games__hero-title {
    font-size: 56px;
    color: #FFD700; /* Gold for hero title */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-fishing-games__hero-description {
    font-size: 24px;
    color: #ffffff; /* White for hero description */
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* --- Introduction Section --- */
.page-fishing-games__introduction-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter black for section */
}

.page-fishing-games__image-wrapper {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* --- Features Section --- */
.page-fishing-games__features-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Another dark shade */
}

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

.page-fishing-games__feature-card {
    background-color: #222222;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.page-fishing-games__feature-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__card-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__card-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* --- Guide Section --- */
.page-fishing-games__guide-section {
    padding: 80px 0;
    background-color: #0d0d0d;
}

.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-fishing-games__guide-item {
    background-color: #222222;
    border-left: 5px solid #FFD700;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-fishing-games__guide-step-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__guide-item p {
    font-size: 17px;
    color: #f0f0f0;
}

.page-fishing-games__guide-item a {
    color: #FFD700;
    text-decoration: underline;
}

.page-fishing-games__guide-item a:hover {
    color: #e0b800;
}

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

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

.page-fishing-games__promo-card {
    background-color: #222222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-fishing-games__promo-card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #333;
}

.page-fishing-games__promo-card .page-fishing-games__card-title {
    margin-top: 20px;
    font-size: 20px;
    color: #FFD700;
}

.page-fishing-games__promo-card .page-fishing-games__card-description {
    padding: 0 20px 20px;
    font-size: 16px;
    flex-grow: 1;
    color: #f0f0f0;
}

.page-fishing-games__promo-card .page-fishing-games__btn-link {
    margin: 0 20px 20px;
    align-self: center;
    width: calc(100% - 40px);
}

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

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

.page-fishing-games__reason-card {
    background-color: #222222;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.page-fishing-games__reason-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

/* --- FAQ Section --- */
.page-fishing-games__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  overflow: hidden;
  background-color: #222222; /* Dark background for FAQ item */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* FAQ默认状态 - 答案隐藏 */
.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 20px; /* Adjust padding for consistency */
  opacity: 0;
  color: #f0f0f0; /* Light text for answer */
  background-color: #2a2a2a; /* Slightly darker background for answer */
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important; /* Adjust padding for consistency */
  opacity: 1;
  border-top: 1px solid #333333;
}

/* 问题样式 */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #222222; /* Dark background */
  border: 1px solid #333333; /* Darker border */
  border-radius: 8px; /* Match item radius */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-fishing-games__faq-question:hover {
  background: #2a2a2a; /* Slightly darker on hover */
  border-color: #FFD700; /* Gold border on hover */
}

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

/* 问题标题样式 */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #FFD700; /* Gold for question text */
}

/* 切换图标 */
.page-fishing-games__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger toggle area */
  height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: #ffffff; /* White icon when active */
  transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 48px;
    }
    .page-fishing-games__hero-description {
        font-size: 20px;
    }
    .page-fishing-games__section-title {
        font-size: 30px;
    }
    .page-fishing-games__features-grid,
    .page-fishing-games__promotions-grid,
    .page-fishing-games__why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* Main content padding for mobile */
    .page-fishing-games {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset if not set on body */
    }
    .page-fishing-games__container {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Hero Section Mobile */
    .page-fishing-games__hero-section {
        padding-top: 0 !important; /* Ensure no double padding if body has it */
    }
    .page-fishing-games__hero-content {
        max-width: 95%;
        width: 95%;
    }
    .page-fishing-games__hero-title {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    .page-fishing-games__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-fishing-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
    }

    /* Section Titles Mobile */
    .page-fishing-games__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* Text Blocks Mobile */
    .page-fishing-games__text-block {
        font-size: 16px;
    }

    /* Image Responsiveness for all images */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Card Layouts Mobile */
    .page-fishing-games__features-grid,
    .page-fishing-games__promotions-grid,
    .page-fishing-games__why-choose-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-fishing-games__feature-card,
    .page-fishing-games__promo-card,
    .page-fishing-games__reason-card {
        padding: 20px;
    }

    .page-fishing-games__card-title {
        font-size: 20px;
    }
    .page-fishing-games__card-description {
        font-size: 15px;
    }

    /* Guide List Mobile */
    .page-fishing-games__guide-item {
        padding: 20px;
    }
    .page-fishing-games__guide-step-title {
        font-size: 18px;
    }
    .page-fishing-games__guide-item p {
        font-size: 15px;
    }

    /* FAQ Mobile */
    .page-fishing-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-fishing-games__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-fishing-games__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure no filter on images */
.page-fishing-games img {
    filter: none !important;
}