/* style/game-guides.css */

/* Custom Properties based on Color Palette */
:root {
    --i8bet-primary: #11A84E;
    --i8bet-secondary: #22C768;
    --i8bet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --i8bet-card-bg: #11271B;
    --i8bet-background: #08160F;
    --i8bet-text-main: #F2FFF6;
    --i8bet-text-secondary: #A7D9B8;
    --i8bet-border: #2E7A4E;
    --i8bet-glow: #57E38D;
    --i8bet-gold: #F2C14E;
    --i8bet-divider: #1E3A2A;
    --i8bet-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming dark body background */
.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--i8bet-text-main); /* Default text color for dark background */
    background-color: var(--i8bet-background); /* Ensure consistent background */
    line-height: 1.6;
}

/* Ensure all images are responsive by default */
.page-game-guides img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
    border-radius: 8px; /* Soften edges */
}

/* Section styling */
.page-game-guides__section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--i8bet-background); /* Ensure section background matches body */
}

.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    padding: 10px 0 60px; /* Small top padding, larger bottom for content */
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--i8bet-background);
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Match hero image width */
    margin-bottom: 30px; /* Space between image and text */
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* Hero image often full width, no border-radius */
}

.page-game-guides__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--i8bet-gold); /* Use gold for main title highlight */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-game-guides__description {
    font-size: 1.15rem;
    color: var(--i8bet-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-game-guides__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--i8bet-button-gradient);
    color: var(--i8bet-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-secondary {
    background-color: transparent;
    color: var(--i8bet-primary);
    border: 2px solid var(--i8bet-primary);
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--i8bet-primary);
    color: var(--i8bet-text-main);
    transform: translateY(-2px);
}

.page-game-guides__btn-inline {
    margin-top: 15px;
    min-width: auto;
    padding: 10px 20px;
    font-size: 1rem;
}

.page-game-guides__btn-large {
    padding: 18px 40px;
    font-size: 1.25rem;
    min-width: 250px;
}

/* Section titles */
.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--i8bet-gold);
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.page-game-guides__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--i8bet-primary);
    border-radius: 2px;
}

.page-game-guides__sub-title {
    font-size: 1.8rem;
    color: var(--i8bet-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__paragraph {
    font-size: 1.05rem;
    color: var(--i8bet-text-main);
    margin-bottom: 15px;
    text-align: left;
}

.page-game-guides__text-center .page-game-guides__paragraph {
    text-align: center;
}

/* Content blocks with image and text */
.page-game-guides__content-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.page-game-guides__content-block--reverse {
    flex-direction: row-reverse;
}

.page-game-guides__image-left,
.page-game-guides__image-right,
.page-game-guides__text-left,
.page-game-guides__text-right {
    flex: 1;
    min-width: 300px;
}

.page-game-guides__content-image {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Feature Cards */
.page-game-guides__feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-game-guides__card {
    background-color: var(--i8bet-card-bg);
    border: 1px solid var(--i8bet-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--i8bet-text-main);
}

.page-game-guides__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-game-guides__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-game-guides__card-title {
    font-size: 1.5rem;
    color: var(--i8bet-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-guides__card-text {
    font-size: 1rem;
    color: var(--i8bet-text-secondary);
}

/* Lists */
.page-game-guides__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.page-game-guides__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--i8bet-text-main);
}

.page-game-guides__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--i8bet-primary);
    font-weight: bold;
    font-size: 1.2em;
    top: 0;
}

.page-game-guides__list-item a {
    color: var(--i8bet-primary);
    text-decoration: none;
    font-weight: bold;
}

.page-game-guides__list-item a:hover {
    text-decoration: underline;
    color: var(--i8bet-secondary);
}

.page-game-guides__list-title {
    font-size: 1.2rem;
    color: var(--i8bet-gold);
    margin-bottom: 5px;
}

.page-game-guides__list-text {
    font-size: 0.95rem;
    color: var(--i8bet-text-secondary);
}

.page-game-guides__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* FAQ Section */
.page-game-guides__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-game-guides__faq-item {
    background-color: var(--i8bet-card-bg);
    border: 1px solid var(--i8bet-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--i8bet-text-main);
    cursor: pointer;
    background-color: var(--i8bet-deep-green);
    border-bottom: 1px solid var(--i8bet-divider);
    list-style: none;
}

.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--i8bet-primary);
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg);
}

.page-game-guides__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--i8bet-text-secondary);
}

.page-game-guides__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action Bottom */
.page-game-guides__cta-bottom {
    padding: 80px 0;
    background-color: var(--i8bet-deep-green);
    border-top: 1px solid var(--i8bet-border);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        max-width: 700px;
    }
    .page-game-guides__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-game-guides__section-title {
        font-size: 2rem;
    }
    .page-game-guides__sub-title {
        font-size: 1.6rem;
    }
    .page-game-guides__feature-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-game-guides__section {
        padding: 40px 0;
    }
    .page-game-guides__hero-section {
        padding-bottom: 40px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }
    .page-game-guides__description {
        font-size: 1rem;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides a[class*="button"],
    .page-game-guides a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-game-guides__cta-buttons,
    .page-game-guides__button-group,
    .page-game-guides__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-game-guides__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-game-guides__sub-title {
        font-size: 1.4rem;
    }
    .page-game-guides__paragraph {
        font-size: 0.95rem;
    }
    .page-game-guides__content-block {
        flex-direction: column;
        gap: 30px;
    }
    .page-game-guides__content-block--reverse {
        flex-direction: column;
    }
    .page-game-guides__image-left,
    .page-game-guides__image-right,
    .page-game-guides__text-left,
    .page-game-guides__text-right {
        min-width: unset;
        width: 100%;
    }
    .page-game-guides__feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-guides__card {
        padding: 20px;
    }
    .page-game-guides__card-image {
        height: 180px;
    }
    .page-game-guides__card-title {
        font-size: 1.3rem;
    }
    .page-game-guides__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    .page-game-guides__list-item {
        font-size: 0.95rem;
    }
    .page-game-guides__list-title {
        font-size: 1.1rem;
    }

    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__content-block,
    .page-game-guides__feature-cards,
    .page-game-guides__game-categories,
    .page-game-guides__faq-list,
    .page-game-guides__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-game-guides__hero-section {
        padding-top: 10px !important;
    }
    .page-game-guides__video-section {
        padding-top: 10px !important;
    }
}