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

:root {
    --khin789-gold: #FFD700;
    --khin789-blue: #1E90FF;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --bg-card-dark: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(255, 255, 255, 0.2);
}

.page-resources-online-betting-guide {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherited from body */
}

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

/* Intro Section */
.page-resources-online-betting-guide__intro-section {
    padding: var(--header-offset, 120px) 0 60px 0; /* Apply header offset here if shared doesn't do it */
    background-color: var(--bg-dark);
}

.page-resources-online-betting-guide__intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-resources-online-betting-guide__main-title {
    font-size: 42px;
    color: var(--khin789-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-resources-online-betting-guide__description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-online-betting-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources-online-betting-guide__btn-primary,
.page-resources-online-betting-guide__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-online-betting-guide__btn-primary {
    background-color: var(--khin789-gold);
    color: var(--text-light);
    border: 2px solid var(--khin789-gold);
}

.page-resources-online-betting-guide__btn-primary:hover {
    background-color: darken(var(--khin789-gold), 10%);
    border-color: darken(var(--khin789-gold), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.page-resources-online-betting-guide__btn-secondary {
    background-color: transparent;
    color: var(--khin789-gold);
    border: 2px solid var(--khin789-gold);
}

.page-resources-online-betting-guide__btn-secondary:hover {
    background-color: var(--khin789-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.page-resources-online-betting-guide__intro-image {
    margin-top: 50px;
    text-align: center;
}

.page-resources-online-betting-guide__intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the image */
}

/* Sections */
.page-resources-online-betting-guide__section-title {
    font-size: 36px;
    color: var(--khin789-gold);
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
    line-height: 1.3;
}

/* Why khin789 Section */
.page-resources-online-betting-guide__why-khin789-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.page-resources-online-betting-guide__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: var(--text-light);
}

.page-resources-online-betting-guide__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources-online-betting-guide__feature-card {
    background-color: var(--bg-card-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-dark);
}

.page-resources-online-betting-guide__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources-online-betting-guide__card-title {
    font-size: 24px;
    color: var(--khin789-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-online-betting-guide__feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

/* Guide Steps Section */
.page-resources-online-betting-guide__guide-steps-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.page-resources-online-betting-guide__step-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background-color: var(--bg-card-dark);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
}

.page-resources-online-betting-guide__step-card:last-child {
    margin-bottom: 0;
}

.page-resources-online-betting-guide__step-card--reverse {
    flex-direction: row-reverse;
}

.page-resources-online-betting-guide__step-image {
    flex: 1;
    min-width: 300px;
}

.page-resources-online-betting-guide__step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-resources-online-betting-guide__step-content {
    flex: 1.5;
}

.page-resources-online-betting-guide__step-title {
    font-size: 30px;
    color: var(--khin789-blue);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-online-betting-guide__step-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-light);
}

/* Tips Section */
.page-resources-online-betting-guide__tips-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
}

.page-resources-online-betting-guide__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-resources-online-betting-guide__tip-card {
    background-color: var(--bg-card-dark);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-dark);
}

.page-resources-online-betting-guide__tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources-online-betting-guide__tip-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources-online-betting-guide__tip-card h3 {
    font-size: 22px;
    color: var(--khin789-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-resources-online-betting-guide__tip-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

/* FAQ Section */
.page-resources-online-betting-guide__faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.page-resources-online-betting-guide__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources-online-betting-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-dark);
}

.page-resources-online-betting-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-online-betting-guide__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-online-betting-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none;
}

.page-resources-online-betting-guide__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--khin789-gold);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-resources-online-betting-guide__faq-item.active .page-resources-online-betting-guide__faq-toggle {
    color: var(--khin789-blue);
    transform: rotate(45deg);
}

.page-resources-online-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 25px;
    opacity: 0;
    color: var(--text-light);
}

.page-resources-online-betting-guide__faq-item.active .page-resources-online-betting-guide__faq-answer {
    max-height: 2000px !important; /* Ensure content fits */
    padding: 20px 25px !important;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 0 0 10px 10px;
}

.page-resources-online-betting-guide__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Contact Section */
.page-resources-online-betting-guide__contact-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    text-align: center;
}

.page-resources-online-betting-guide__contact-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-online-betting-guide__main-title {
        font-size: 38px;
    }

    .page-resources-online-betting-guide__section-title {
        font-size: 32px;
    }

    .page-resources-online-betting-guide__step-card {
        gap: 30px;
        padding: 30px;
    }

    .page-resources-online-betting-guide__step-title {
        font-size: 26px;
    }

    .page-resources-online-betting-guide__faq-question h3 {
        font-size: 17px;
    }
}

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

    .page-resources-online-betting-guide__intro-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
        padding-bottom: 40px;
    }

    .page-resources-online-betting-guide__intro-content {
        margin-bottom: 30px;
    }

    .page-resources-online-betting-guide__main-title {
        font-size: 30px !important;
        margin-bottom: 15px;
    }

    .page-resources-online-betting-guide__description {
        font-size: 16px !important;
        margin-bottom: 25px;
    }

    .page-resources-online-betting-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-resources-online-betting-guide__btn-primary,
    .page-resources-online-betting-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-online-betting-guide__intro-image {
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-resources-online-betting-guide__intro-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .page-resources-online-betting-guide__section-title {
        font-size: 26px !important;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-resources-online-betting-guide__why-khin789-section,
    .page-resources-online-betting-guide__guide-steps-section,
    .page-resources-online-betting-guide__tips-section,
    .page-resources-online-betting-guide__faq-section,
    .page-resources-online-betting-guide__contact-section {
        padding: 50px 0;
    }

    .page-resources-online-betting-guide__container {
        padding: 0 15px;
    }

    .page-resources-online-betting-guide__feature-grid {
        gap: 20px;
    }

    .page-resources-online-betting-guide__feature-card {
        padding: 25px;
    }

    .page-resources-online-betting-guide__card-title {
        font-size: 20px !important;
    }

    .page-resources-online-betting-guide__feature-card p {
        font-size: 15px !important;
    }

    .page-resources-online-betting-guide__step-card {
        flex-direction: column !important;
        gap: 25px;
        padding: 25px;
        margin-bottom: 40px;
    }

    .page-resources-online-betting-guide__step-image {
        min-width: unset;
        width: 100%;
    }

    .page-resources-online-betting-guide__step-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .page-resources-online-betting-guide__step-title {
        font-size: 24px !important;
        margin-bottom: 15px;
    }

    .page-resources-online-betting-guide__step-content p {
        font-size: 15px !important;
        margin-bottom: 20px;
    }

    .page-resources-online-betting-guide__tips-grid {
        gap: 20px;
    }

    .page-resources-online-betting-guide__tip-card {
        padding: 20px;
    }

    .page-resources-online-betting-guide__tip-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 15px;
    }

    .page-resources-online-betting-guide__tip-card h3 {
        font-size: 18px !important;
    }

    .page-resources-online-betting-guide__tip-card p {
        font-size: 15px !important;
    }

    .page-resources-online-betting-guide__faq-list {
        padding: 0 15px;
    }

    .page-resources-online-betting-guide__faq-item {
        margin-bottom: 10px;
    }

    .page-resources-online-betting-guide__faq-question {
        padding: 15px 20px;
    }

    .page-resources-online-betting-guide__faq-question h3 {
        font-size: 16px !important;
        width: calc(100% - 40px);
    }

    .page-resources-online-betting-guide__faq-toggle {
        font-size: 24px !important;
        width: 26px;
        height: 26px;
        margin-left: 10px;
    }

    .page-resources-online-betting-guide__faq-answer {
        padding: 0 20px;
    }

    .page-resources-online-betting-guide__faq-item.active .page-resources-online-betting-guide__faq-answer {
        padding: 15px 20px !important;
    }

    .page-resources-online-betting-guide__faq-answer p {
        font-size: 15px !important;
    }

    .page-resources-online-betting-guide__contact-description {
        font-size: 16px !important;
        margin-bottom: 30px;
        padding: 0 15px;
    }
}