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

/* Global styles for the page content */
.page-resources-online-betting-safety-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Default white background */
}

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

.page-resources-online-betting-safety-guide__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources-online-betting-safety-guide__section:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.page-resources-online-betting-safety-guide__heading {
    font-size: 36px;
    color: #017439; /* Primary color for headings */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources-online-betting-safety-guide__sub-heading {
    font-size: 24px;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-online-betting-safety-guide__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    color: #333333;
    text-align: left;
}

.page-resources-online-betting-safety-guide__list {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 20px;
    text-align: left;
    color: #333333;
}

.page-resources-online-betting-safety-guide__list li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Hero Section */
.page-resources-online-betting-safety-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); /* Ensure space for fixed header */
    background-color: #ffffff;
}

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

.page-resources-online-betting-safety-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-resources-online-betting-safety-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-resources-online-betting-safety-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources-online-betting-safety-guide__hero-content h1 {
    font-size: 48px;
    color: #017439; /* Primary color for hero title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources-online-betting-safety-guide__hero-content p {
    font-size: 20px;
    color: #333333;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-resources-online-betting-safety-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources-online-betting-safety-guide__cta-button:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dark Section Styling */
.page-resources-online-betting-safety-guide__dark-section {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-resources-online-betting-safety-guide__dark-section .page-resources-online-betting-safety-guide__heading,
.page-resources-online-betting-safety-guide__dark-section .page-resources-online-betting-safety-guide__sub-heading,
.page-resources-online-betting-safety-guide__dark-section .page-resources-online-betting-safety-guide__paragraph,
.page-resources-online-betting-safety-guide__dark-section .page-resources-online-betting-safety-guide__list li,
.page-resources-online-betting-safety-guide__dark-section .page-resources-online-betting-safety-guide__card-title,
.page-resources-online-betting-safety-guide__dark-section .page-resources-online-betting-safety-guide__card-text,
.page-resources-online-betting-safety-guide__dark-section .page-resources-online-betting-safety-guide__card-sub-title {
    color: #ffffff;
}

/* Grid Layout for Cards */
.page-resources-online-betting-safety-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-resources-online-betting-safety-guide__card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #333333;
}

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

.page-resources-online-betting-safety-guide__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-resources-online-betting-safety-guide__card-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-online-betting-safety-guide__card-text {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555555;
}

.page-resources-online-betting-safety-guide__card-sub-title {
    font-size: 18px;
    color: #017439;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Primary Button */
.page-resources-online-betting-safety-guide__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #017439; /* Primary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources-online-betting-safety-guide__btn-primary:hover {
    background: #005f2f;
}

/* FAQ Section */
.page-resources-online-betting-safety-guide__faq {
    text-align: left;
}

.page-resources-online-betting-safety-guide__faq .page-resources-online-betting-safety-guide__heading {
    text-align: center;
}

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

/* FAQ默认状态 - 答案隐藏 */
.page-resources-online-betting-safety-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 15px;
    opacity: 0;
    background: #f9f9f9;
    color: #333333;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-resources-online-betting-safety-guide__faq-item.active .page-resources-online-betting-safety-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 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

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

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

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

/* Question title style */
.page-resources-online-betting-safety-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 tag from blocking click events */
    color: #333333;
}

/* Toggle icon */
.page-resources-online-betting-safety-guide__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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: 28px;
    height: 28px;
}

.page-resources-online-betting-safety-guide__faq-item.active .page-resources-online-betting-safety-guide__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Changed to rotate for a consistent look */
}

/* Conclusion Section */
.page-resources-online-betting-safety-guide__conclusion .page-resources-online-betting-safety-guide__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-online-betting-safety-guide__hero-content h1 {
        font-size: 40px;
    }
    .page-resources-online-betting-safety-guide__hero-content p {
        font-size: 18px;
    }
    .page-resources-online-betting-safety-guide__heading {
        font-size: 30px;
    }
    .page-resources-online-betting-safety-guide__sub-heading {
        font-size: 22px;
    }
    .page-resources-online-betting-safety-guide__card-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-resources-online-betting-safety-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-online-betting-safety-guide__hero-content h1 {
        font-size: 32px;
    }
    .page-resources-online-betting-safety-guide__hero-content p {
        font-size: 16px;
    }
    .page-resources-online-betting-safety-guide__cta-button {
        padding: 12px 30px;
        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-resources-online-betting-safety-guide__section {
        padding: 40px 0;
    }
}