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

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --background-color: #FFFFFF;
    --dark-bg-1: #0d0d0d; /* Assuming this is a dark background from shared.css */
}

.page-resources-betting-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-1);
}

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

.page-resources-betting-guide__hero-section {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources-betting-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--light-text-color);
}

.page-resources-betting-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-betting-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

.page-resources-betting-guide__content-area {
    background-color: var(--background-color);
    color: var(--dark-text-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    padding: 40px 20px;
}

.page-resources-betting-guide__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-resources-betting-guide__content-area .page-resources-betting-guide__section-title {
    color: var(--primary-color);
}

.page-resources-betting-guide__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

.page-resources-betting-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources-betting-guide__content-area .page-resources-betting-guide__text-block {
    color: var(--dark-text-color);
}

.page-resources-betting-guide__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

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

.page-resources-betting-guide__strategy-section {
    background-color: var(--dark-bg-1);
    color: var(--light-text-color);
}

.page-resources-betting-guide__strategy-section .page-resources-betting-guide__section-title,
.page-resources-betting-guide__strategy-section .page-resources-betting-guide__text-block {
    color: var(--light-text-color);
}

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

.page-resources-betting-guide__card {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources-betting-guide__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-resources-betting-guide__card-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 5px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources-betting-guide__btn-text {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-resources-betting-guide__btn-text:hover {
    color: #1a7bb5; /* A slightly darker shade of primary color */
}

.page-resources-betting-guide__responsible-gambling-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
}

.page-resources-betting-guide__responsible-gambling-section .page-resources-betting-guide__section-title,
.page-resources-betting-guide__responsible-gambling-section .page-resources-betting-guide__text-block {
    color: var(--light-text-color);
}

.page-resources-betting-guide__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-betting-guide__list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--light-text-color);
}

.page-resources-betting-guide__list li strong {
    color: var(--secondary-color);
}

.page-resources-betting-guide__promotions-section {
    background-color: var(--background-color);
    color: var(--dark-text-color);
    padding: 60px 0;
}

.page-resources-betting-guide__promotions-section .page-resources-betting-guide__section-title {
    color: var(--primary-color);
}

.page-resources-betting-guide__promotions-section .page-resources-betting-guide__text-block {
    color: var(--dark-text-color);
}

.page-resources-betting-guide__promotions-section .page-resources-betting-guide__list li {
    background-color: #f5f5f5;
    color: var(--dark-text-color);
}

.page-resources-betting-guide__video-section {
    background-color: var(--dark-bg-1);
    color: var(--light-text-color);
    text-align: center;
}

.page-resources-betting-guide__video-section .page-resources-betting-guide__section-title,
.page-resources-betting-guide__video-section .page-resources-betting-guide__text-block {
    color: var(--light-text-color);
}

.page-resources-betting-guide__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-betting-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

.page-resources-betting-guide__faq-section {
    background-color: var(--background-color);
    color: var(--dark-text-color);
    padding: 60px 0;
    text-align: center;
}

.page-resources-betting-guide__faq-section .page-resources-betting-guide__section-title {
    color: var(--primary-color);
}

.page-resources-betting-guide__faq-list {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-resources-betting-guide__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources-betting-guide__faq-question {
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--dark-text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.page-resources-betting-guide__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-betting-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-toggle {
    transform: rotate(0deg); /* '−' is already a horizontal line */
}

.page-resources-betting-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark-text-color);
    background-color: #ffffff;
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure override */
    padding: 15px 25px;
}

.page-resources-betting-guide__faq-answer p {
    margin: 0;
    color: var(--dark-text-color);
    font-size: 1em;
}

.page-resources-betting-guide__cta-bottom {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 80px 20px;
}

.page-resources-betting-guide__cta-bottom .page-resources-betting-guide__section-title,
.page-resources-betting-guide__cta-bottom .page-resources-betting-guide__text-block {
    color: var(--light-text-color);
}

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

.page-resources-betting-guide__btn-primary,
.page-resources-betting-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-resources-betting-guide__btn-primary {
    background-color: var(--login-color); /* Login color #EA7C07 */
    color: var(--light-text-color);
    border: 2px solid var(--login-color);
}

.page-resources-betting-guide__btn-primary:hover {
    background-color: #c76706; /* Slightly darker */
    border-color: #c76706;
}

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

.page-resources-betting-guide__btn-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

/* Ensure contrast for elements on dark background */
.page-resources-betting-guide__dark-bg {
  color: var(--light-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-betting-guide__hero-title {
        font-size: 2.8em;
    }
    .page-resources-betting-guide__section-title {
        font-size: 2em;
    }
    .page-resources-betting-guide__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-resources-betting-guide__hero-section {
        padding: 60px 15px;
    }
    .page-resources-betting-guide__hero-title {
        font-size: 2.2em;
    }
    .page-resources-betting-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-betting-guide__section {
        padding: 40px 0;
    }
    .page-resources-betting-guide__content-area {
        padding: 30px 15px;
        margin: 20px auto;
    }
    .page-resources-betting-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-betting-guide__sub-title {
        font-size: 1.4em;
    }
    .page-resources-betting-guide__text-block {
        font-size: 0.95em;
    }
    .page-resources-betting-guide__principles-grid, 
    .page-resources-betting-guide__strategy-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-betting-guide__list li {
        padding: 15px;
        font-size: 1em;
    }
    .page-resources-betting-guide__video-wrapper {
        margin: 20px auto;
    }
    .page-resources-betting-guide__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources-betting-guide__faq-answer {
        padding: 0 20px;
    }
    .page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
        padding: 10px 20px;
    }
    .page-resources-betting-guide__cta-bottom {
        padding: 50px 15px;
    }
    .page-resources-betting-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources-betting-guide__btn-primary, 
    .page-resources-betting-guide__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .page-resources-betting-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Mobile video responsiveness */
    .page-resources-betting-guide video,
    .page-resources-betting-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-betting-guide__video-section,
    .page-resources-betting-guide__video-container,
    .page-resources-betting-guide__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-resources-betting-guide__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-resources-betting-guide__faq-section .page-resources-betting-guide__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources-betting-guide__faq-list {
        padding: 0 15px;
    }
    .page-resources-betting-guide__faq-item {
        margin-left: 0;
        margin-right: 0;
    }
}