/* style/game-guides.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-dark: #0A0A0A;
    --card-background: #111111;
    --text-light: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-game-guides {
    background-color: var(--background-dark);
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding for visual spacing */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 700px; /* Limit height for hero image */
    object-fit: cover;
    z-index: 1;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: -100px auto 0; /* Adjust margin to slightly overlap image for visual flow */
    padding: 30px;
    background: rgba(17, 17, 17, 0.9); /* Semi-transparent dark background for text */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-50%); /* Move content up to overlap hero image */
}

.page-game-guides__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-game-guides__hero-description {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-game-guides__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-game-guides__section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-light);
    margin-bottom: 40px;
}

.page-game-guides__text-block {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: left;
}

.page-game-guides__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: #333333; /* Dark text for contrast against bright gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-game-guides__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-game-guides__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-game-guides__about-okbet .page-game-guides__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.page-game-guides__game-categories {
    background-color: var(--card-background);
    padding: 80px 0;
}

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

.page-game-guides__category-card {
    background: rgba(242, 193, 78, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px 15px;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__category-card:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: var(--background-dark);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

.page-game-guides__category-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.page-game-guides__category-card:hover .page-game-guides__category-icon {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%); /* Make icon black on hover */
}

.page-game-guides__category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.page-game-guides__strategies .page-game-guides__strategy-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    text-align: left;
}

.page-game-guides__strategies .page-game-guides__strategy-item:last-child {
    margin-bottom: 0;
}

.page-game-guides__strategy-item--reverse {
    flex-direction: row-reverse;
}

.page-game-guides__strategy-image {
    flex: 1;
    min-width: 400px; /* Ensure images are not too small */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    width: 100%;
    height: auto;
}

.page-game-guides__strategy-content {
    flex: 1;
}

.page-game-guides__strategy-heading {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-game-guides__sports-betting .page-game-guides__sports-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-game-guides__sports-betting .page-game-guides__sports-image {
    flex: 1;
    min-width: 400px; /* Ensure images are not too small */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    width: 100%;
    height: auto;
}

.page-game-guides__sports-betting .page-game-guides__text-block {
    flex: 1;
}

.page-game-guides__live-casino .page-game-guides__live-casino-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    flex-direction: row-reverse;
}

.page-game-guides__live-casino .page-game-guides__live-casino-image {
    flex: 1;
    min-width: 400px; /* Ensure images are not too small */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    width: 100%;
    height: auto;
}

.page-game-guides__live-casino .page-game-guides__text-block {
    flex: 1;
}

.page-game-guides__responsible-gaming {
    background-color: var(--card-background);
}

.page-game-guides__responsible-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-game-guides__responsible-image {
    flex: 1;
    min-width: 200px; /* Min size 200px */
    max-width: 600px; /* Max width for this section image */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    width: 100%;
    height: auto;
}

.page-game-guides__responsible-content .page-game-guides__text-block {
    flex: 1;
}

.page-game-guides__faq {
    padding-bottom: 80px;
}

.page-game-guides__faq-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background: rgba(242, 193, 78, 0.05);
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background: rgba(242, 193, 78, 0.1);
}

.page-game-guides__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-game-guides__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
}

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

.page-game-guides__faq-answer p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

.page-game-guides__media-partners {
    background-color: var(--card-background);
    padding: 80px 0;
}

.page-game-guides__partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 2x5 grid for desktop */
    gap: 20px;
    margin-top: 40px;
    justify-items: center;
    align-items: center;
}

.page-game-guides__partner-logo {
    width: 167px;
    height: 127px;
    object-fit: contain;
    filter: grayscale(100%) brightness(150%); /* Adjust for dark background */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.page-game-guides__partner-logo:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
    transform: scale(1.05);
}

.page-game-guides__cta-bottom {
    padding: 80px 0;
}

.page-game-guides__cta-container {
    background: var(--card-background);
    border-radius: 15px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        margin-top: -80px;
        transform: translateY(-40%);
    }
    .page-game-guides__strategy-item,
    .page-game-guides__sports-content,
    .page-game-guides__live-casino-content,
    .page-game-guides__responsible-content {
        flex-direction: column;
        text-align: center;
    }

    .page-game-guides__strategy-item--reverse {
        flex-direction: column;
    }

    .page-game-guides__strategy-image,
    .page-game-guides__sports-image,
    .page-game-guides__live-casino-image,
    .page-game-guides__responsible-image {
        min-width: unset;
        max-width: 80%;
        margin-bottom: 30px;
    }
    .page-game-guides__partner-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-game-guides__hero-content {
        margin-top: -60px;
        transform: translateY(-30%);
        padding: 20px;
    }

    .page-game-guides__main-title {
        font-size: 2rem;
    }

    .page-game-guides__hero-description {
        font-size: 1rem;
    }

    .page-game-guides__section-title {
        font-size: 1.8rem;
    }

    .page-game-guides__section-subtitle {
        font-size: 0.95rem;
    }

    .page-game-guides__text-block {
        font-size: 0.95rem;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-guides__container {
        padding: 0 15px;
    }

    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-game-guides__strategy-image,
    .page-game-guides__sports-image,
    .page-game-guides__live-casino-image,
    .page-game-guides__responsible-image {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .page-game-guides__partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-game-guides__partner-logo {
        width: 100%; /* Make partner logos fill grid column */
        height: auto;
        max-width: 167px; /* Maintain aspect ratio with max-width */
    }

    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-game-guides__faq-answer {
        padding: 0 20px;
    }

    .page-game-guides__faq-item.active .page-game-guides__faq-answer {
        padding: 15px 20px;
    }

    .page-game-guides__cta-container {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-content {
        margin-top: -40px;
        transform: translateY(-20%);
    }
    .page-game-guides__main-title {
        font-size: 1.8rem;
    }
    .page-game-guides__section-title {
        font-size: 1.6rem;
    }
    .page-game-guides__partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}