/* style/resources-f8bet8-advantages.css */

/* Base styles for the page content */
.page-resources-f8bet8-advantages {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text color for dark body background */
    background-color: var(--dark-bg); /* Inherits from shared.css */
}

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

/* Section common styles */
.page-resources-f8bet8-advantages__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources-f8bet8-advantages__sub-section-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-f8bet8-advantages__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #cccccc;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-f8bet8-advantages__text-block p,
.page-resources-f8bet8-advantages__feature-text,
.page-resources-f8bet8-advantages__game-text,
.page-resources-f8bet8-advantages__promo-text,
.page-resources-f8bet8-advantages__faq-answer p {
    color: #e0e0e0;
    margin-bottom: 15px;
}

.page-resources-f8bet8-advantages__text-block a,
.page-resources-f8bet8-advantages__faq-answer a {
    color: #FFD700; /* Link color */
    text-decoration: none;
}

.page-resources-f8bet8-advantages__text-block a:hover,
.page-resources-f8bet8-advantages__faq-answer a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-resources-f8bet8-advantages__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    background: linear-gradient(135deg, #8B0000, #FFD700); /* Blend brand colors for hero background */
}

.page-resources-f8bet8-advantages__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-resources-f8bet8-advantages__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly transparent to allow text readability */
    filter: brightness(0.7); /* Darken image for better text contrast */
}

.page-resources-f8bet8-advantages__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #ffffff;
}

.page-resources-f8bet8-advantages__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources-f8bet8-advantages__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources-f8bet8-advantages__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Button styles */
.page-resources-f8bet8-advantages__btn-primary,
.page-resources-f8bet8-advantages__btn-secondary,
.page-resources-f8bet8-advantages__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    max-width: 100%; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-f8bet8-advantages__btn-primary {
    background-color: #FFD700; /* Primary brand color */
    color: #8B0000; /* Dark text for contrast */
    border: 2px solid #FFD700;
}

.page-resources-f8bet8-advantages__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #6a0000;
}

.page-resources-f8bet8-advantages__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Primary brand color */
    border: 2px solid #FFD700;
}

.page-resources-f8bet8-advantages__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
}

.page-resources-f8bet8-advantages__btn-tertiary {
    background-color: #8B0000; /* Secondary brand color */
    color: #ffffff;
    border: 2px solid #8B0000;
    padding: 10px 20px;
    font-size: 1em;
}

.page-resources-f8bet8-advantages__btn-tertiary:hover {
    background-color: #6a0000;
    border-color: #6a0000;
}

/* Content Area */
.page-resources-f8bet8-advantages__content-area {
    padding: 60px 20px;
    background-color: #1a1a1a; /* A slightly lighter dark background */
    color: #e0e0e0;
}

/* Feature Section */
.page-resources-f8bet8-advantages__features-section {
    padding: 60px 20px;
    background-color: #0d0d0d; /* Darker background */
    color: #f0f0f0;
}

.page-resources-f8bet8-advantages__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-f8bet8-advantages__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light for contrast */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources-f8bet8-advantages__feature-icon {
    width: 100%; /* Ensure images take full width of card */
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block; /* Important for max-width/height auto to work */
}

.page-resources-f8bet8-advantages__feature-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Game Showcase Section */
.page-resources-f8bet8-advantages__game-showcase {
    padding: 60px 20px;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

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

.page-resources-f8bet8-advantages__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources-f8bet8-advantages__game-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    display: block;
}

.page-resources-f8bet8-advantages__game-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-f8bet8-advantages__game-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-resources-f8bet8-advantages__game-title a:hover {
    text-decoration: underline;
}

/* Promotion Section */
.page-resources-f8bet8-advantages__promotion-section {
    padding: 60px 20px;
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-resources-f8bet8-advantages__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.page-resources-f8bet8-advantages__promo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    display: block;
}

.page-resources-f8bet8-advantages__promo-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-f8bet8-advantages__promo-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-resources-f8bet8-advantages__promo-title a:hover {
    text-decoration: underline;
}

.page-resources-f8bet8-advantages__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* CTA Section */
.page-resources-f8bet8-advantages__cta-section {
    padding: 60px 20px;
    background-color: #1a1a1a;
    text-align: center;
    color: #e0e0e0;
}

/* FAQ Section */
.page-resources-f8bet8-advantages__faq-section {
    padding: 60px 20px;
    background-color: #0d0d0d;
    color: #f0f0f0;
}

.page-resources-f8bet8-advantages__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-resources-f8bet8-advantages__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-f8bet8-advantages__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-resources-f8bet8-advantages__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-resources-f8bet8-advantages__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-f8bet8-advantages__faq-item.active .page-resources-f8bet8-advantages__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-f8bet8-advantages__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-resources-f8bet8-advantages__faq-item.active .page-resources-f8bet8-advantages__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

/* General image styling for content area */
.page-resources-f8bet8-advantages img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources-f8bet8-advantages__hero-title {
        font-size: 3em;
    }
    .page-resources-f8bet8-advantages__section-title {
        font-size: 2em;
    }
    .page-resources-f8bet8-advantages__sub-section-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-resources-f8bet8-advantages__hero-section {
        flex-direction: column;
        min-height: auto;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header on mobile */
    }
}