/* style/resources-betting-guide.css */

/* --- General Styles --- */
.page-resources-betting-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Use shared background color */
}

.page-resources-betting-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-resources-betting-guide__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: var(--background-color, #FFFFFF); /* Default section background */
}

.page-resources-betting-guide__section:nth-of-type(even) {
    background-color: #f9f9f9; /* Slightly different background for alternating sections */
}

.page-resources-betting-guide__heading {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for headings */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-betting-guide__sub-heading {
    font-size: 1.8em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-betting-guide__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

.page-resources-betting-guide__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-resources-betting-guide__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-resources-betting-guide__list-item-title {
    color: #26A9E0; /* Primary color for list item titles */
}

/* --- CTA Button Styles --- */
.page-resources-betting-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px; /* Limit button width */
    width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-betting-guide__cta-button:hover {
    background: #EA7C07; /* Login color for hover, good contrast */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__mt-30 {
    margin-top: 30px;
}

/* --- Image Styles --- */
.page-resources-betting-guide img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin: 20px auto; /* Center images */
}

.page-resources-betting-guide__image-content {
    width: 100%; /* Ensure content images take full width of container */
    max-width: 800px; /* Max width for content images */
    height: auto;
    margin-bottom: 30px;
}

.page-resources-betting-guide__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card images */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: 0;
    margin-bottom: 15px;
}

/* --- Hero Section --- */
.page-resources-betting-guide__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); /* Fixed header offset */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand color gradient */
    color: #ffffff; /* White text for hero section */
}

.page-resources-betting-guide__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources-betting-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is behind overlay if any */
}

.page-resources-betting-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-betting-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    padding: 30px;
    border-radius: 10px;
    margin-top: -80px; /* Overlap with image slightly */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-betting-guide__hero-title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources-betting-guide__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Adjust button for hero section to match hero white text */
.page-resources-betting-guide__hero-content .page-resources-betting-guide__cta-button {
    background: #EA7C07; /* Login color for CTA */
    color: #FFFFFF;
}
.page-resources-betting-guide__hero-content .page-resources-betting-guide__cta-button:hover {
    background: #FF9800; /* Lighter orange on hover */
}


/* --- Game Types Grid --- */
.page-resources-betting-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources-betting-guide__card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-resources-betting-guide__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-betting-guide__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-resources-betting-guide__card-link {
    display: inline-block;
    padding: 10px 20px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.page-resources-betting-guide__card-link:hover {
    background: #1e87c0;
}

/* For multiple links in a card */
.page-resources-betting-guide__card .page-resources-betting-guide__card-link:not(:last-child) {
    margin-right: 10px;
}

/* --- Promotions List --- */
.page-resources-betting-guide__promo-list {
    list-style-type: none;
    padding: 0;
    margin: 30px 0;
}

.page-resources-betting-guide__promo-list li {
    background-color: #f0f8ff; /* Light blue background */
    border-left: 5px solid #26A9E0;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    color: #333333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Betting Tips Grid --- */
.page-resources-betting-guide__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-betting-guide__tip-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #26A9E0;
    transition: transform 0.3s ease;
}

.page-resources-betting-guide__tip-item:hover {
    transform: translateY(-5px);
}

.page-resources-betting-guide__tip-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-betting-guide__tip-text {
    font-size: 1em;
    color: #555555;
}

/* --- Support & Security Features --- */
.page-resources-betting-guide__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-betting-guide__feature-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 5px solid #26A9E0;
    text-align: center;
}

.page-resources-betting-guide__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-betting-guide__feature-text {
    font-size: 1em;
    color: #555555;
}

/* --- FAQ Section --- */
.page-resources-betting-guide__faq-list {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-resources-betting-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources-betting-guide__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;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và max-height đủ lớn để đảm bảo có thể mở rộng */
.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__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;
  opacity: 1;
  background: #f0f8ff; /* Nền xanh nhạt cho câu trả lời */
  border-radius: 0 0 8px 8px;
  color: #333333;
}

/* Question style */
.page-resources-betting-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.page-resources-betting-guide__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-betting-guide__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-resources-betting-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
}

/* Toggle icon */
.page-resources-betting-guide__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Màu chính cho biểu tượng chuyển đổi */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-toggle {
  color: #EA7C07; /* Màu đăng nhập khi hoạt động */
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng dấu trừ */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources-betting-guide__hero-title {
        font-size: 2.5em;
    }
    .page-resources-betting-guide__hero-description {
        font-size: 1.1em;
    }
    .page-resources-betting-guide__heading {
        font-size: 2em;
    }
    .page-resources-betting-guide__sub-heading {
        font-size: 1.6em;
    }
    .page-resources-betting-guide__paragraph,
    .page-resources-betting-guide__list li,
    .page-resources-betting-guide__card-text,
    .page-resources-betting-guide__tip-text,
    .page-resources-betting-guide__feature-text {
        font-size: 1em;
    }
    .page-resources-betting-guide__card-title,
    .page-resources-betting-guide__tip-title,
    .page-resources-betting-guide__feature-title {
        font-size: 1.3em;
    }
    .page-resources-betting-guide__cta-button {
        font-size: 1.1em;
        padding: 12px 30px;
    }
}

@media (max-width: 768px) {
    .page-resources-betting-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-betting-guide__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-betting-guide__section {
        padding: 40px 0;
    }

    .page-resources-betting-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-betting-guide__hero-image {
        margin-bottom: 20px;
    }

    .page-resources-betting-guide__hero-content {
        margin-top: -60px; /* Adjust overlap */
        padding: 20px;
    }

    .page-resources-betting-guide__hero-title {
        font-size: 2em;
    }

    .page-resources-betting-guide__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources-betting-guide__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 1em;
        padding: 12px 25px;
    }

    .page-resources-betting-guide__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-betting-guide__sub-heading {
        font-size: 1.4em;
    }

    .page-resources-betting-guide__grid,
    .page-resources-betting-guide__tips-grid,
    .page-resources-betting-guide__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-betting-guide__card {
        padding: 15px;
    }

    .page-resources-betting-guide__card-image {
        height: 200px; /* Smaller fixed height for mobile cards */
    }

    .page-resources-betting-guide__card .page-resources-betting-guide__card-link {
        margin-right: 0 !important; /* Reset margin for single column layout */
        margin-bottom: 10px; /* Add vertical space between buttons */
    }
    .page-resources-betting-guide__card .page-resources-betting-guide__card-link:last-child {
        margin-bottom: 0;
    }


    /* Mobile image adaptation */
    .page-resources-betting-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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