/* style/resources.css */

/* --- General Page Styling --- */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f4f4f4; /* Inherited from shared, but for clarity */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Dark red for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Banner Section --- */
.page-resources__hero-banner {
    position: relative;
    overflow: hidden;
    background-color: #000; /* Fallback */
}

.page-resources__hero-banner-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.page-resources__hero-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-resources__hero-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #ffffff;
    text-align: center;
    max-width: 90%;
}

.page-resources__hero-banner-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFD700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-banner-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-banner-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #ffffff;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border-color: #FFD700; /* Gold border */
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700; /* Gold background */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* --- Latest News Section --- */
.page-resources__latest-news {
    background-color: #f9f9f9;
}

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

.page-resources__news-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources__news-card-content {
    padding: 25px;
}

.page-resources__news-card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-resources__news-card-title a {
    color: #8B0000; /* Dark red for news titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-card-title a:hover {
    color: #FFD700; /* Gold on hover */
}

.page-resources__news-card-excerpt {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

.page-resources__read-more {
    color: #FFD700; /* Gold */
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.page-resources__read-more:hover {
    color: #8B0000; /* Dark red on hover */
}

.page-resources__arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.page-resources__read-more:hover .page-resources__arrow {
    transform: translateX(5px);
}

/* --- Betting Guides Section --- */
.page-resources__betting-guides {
    background-color: #FFD700; /* Gold background */
    color: #ffffff; /* White text for contrast */
}

.page-resources__betting-guides .page-resources__section-title,
.page-resources__betting-guides .page-resources__section-description {
    color: #ffffff; /* White text */
}

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

.page-resources__guide-card {
    background: #8B0000; /* Dark red card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* White text */
}

.page-resources__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__guide-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-resources__guide-card-content {
    padding: 25px;
}

.page-resources__guide-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-resources__guide-card-title a {
    color: #FFD700; /* Gold for guide titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__guide-card-title a:hover {
    color: #ffffff; /* White on hover */
}

.page-resources__guide-card-excerpt {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-resources__betting-guides .page-resources__read-more {
    color: #ffffff; /* White */
}

.page-resources__betting-guides .page-resources__read-more:hover {
    color: #e6c200; /* Slightly darker gold on hover */
}

/* --- Game Strategies Section --- */
.page-resources__game-strategies {
    background-color: #f4f4f4;
}

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

.page-resources__strategy-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__strategy-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-resources__strategy-title {
    font-size: 1.3em;
    color: #8B0000;
    padding: 15px 20px 0;
}

.page-resources__strategy-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 20px;
}

/* --- FAQ Section --- */
.page-resources__faq {
    background-color: #f9f9f9;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__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;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Ensure content can expand fully */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    text-align: left;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #FFD700; /* Gold background for question */
    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;
    color: #ffffff; /* White text for question */
}

.page-resources__faq-question:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    border-color: #d0d0d0;
}

.page-resources__faq-question:active {
    background: #d4af37; /* Even darker gold on active */
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #ffffff; /* White text for h3 */
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff; /* White toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #ffffff; /* Still white when active */
    transform: rotate(45deg); /* Rotate for 'x' effect from '+' */
}

/* --- Call to Action Section --- */
.page-resources__cta-section {
    background-color: #8B0000; /* Dark red background */
    color: #ffffff; /* White text */
    padding: 80px 0;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold title */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__hero-banner-title {
        font-size: 3em;
    }
    .page-resources__hero-banner-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__hero-banner-title {
        font-size: 2em;
    }

    .page-resources__hero-banner-description {
        font-size: 1em;
    }

    .page-resources__hero-banner-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__cta-button,
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-resources__news-grid,
    .page-resources__guides-grid,
    .page-resources__strategies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__news-card-image,
    .page-resources__guide-card-image,
    .page-resources__strategy-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-resources__news-card-title,
    .page-resources__guide-card-title {
        font-size: 1.2em;
    }

    .page-resources__strategy-title {
        font-size: 1.1em;
    }

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

    .page-resources__cta-title {
        font-size: 1.8em;
    }

    .page-resources__cta-description {
        font-size: 1em;
    }

    /* Enforce image max-width for mobile */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__news-card,
    .page-resources__guide-card,
    .page-resources__strategy-item,
    .page-resources__faq-item,
    .page-resources__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no filter is used on images */
.page-resources img {
    filter: none; /* Explicitly remove any potential filter */
}