/* style/game-guides.css */

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

.page-game-guides {
    font-family: Arial, sans-serif;
    color: var(--k89-win-text-main); /* Light text on dark body background */
    background-color: var(--k89-win-background);
}

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

.page-game-guides__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-game-guides__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--k89-win-gold);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

.page-game-guides__description {
    font-size: 1.1rem;
    color: var(--k89-win-text-main);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.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;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-game-guides__btn-primary {
    background: var(--k89-win-button-gradient);
    color: var(--k89-win-text-main);
    border: 2px solid var(--k89-win-glow);
    box-shadow: 0 0 15px var(--k89-win-glow);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--k89-win-glow);
}

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

.page-game-guides__btn-secondary:hover {
    background: var(--k89-win-glow);
    color: var(--k89-win-background);
    transform: translateY(-3px);
}

.page-game-guides__section {
    padding: 60px 0;
    box-sizing: border-box;
}

.page-game-guides__introduction {
    background-color: var(--k89-win-background);
}

.page-game-guides__sports-betting-guide,
.page-game-guides__slot-fishing-guide,
.page-game-guides__cockfighting-guide,
.page-game-guides__security-support {
    background-color: var(--k89-win-deep-green);
}

.page-game-guides__casino-guide {
    background-color: var(--k89-win-card-bg);
}

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

.page-game-guides__dark-bg {
    background-color: var(--k89-win-card-bg);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--k89-win-gold);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-game-guides__subsection-title {
    font-size: 1.8rem;
    color: var(--k89-win-glow);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-game-guides p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--k89-win-text-secondary);
}

.page-game-guides__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-game-guides__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--k89-win-text-secondary);
}

.page-game-guides__list li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.page-game-guides__list li strong {
    color: var(--k89-win-text-main);
}

.page-game-guides__btn-text-link {
    display: inline-block;
    color: var(--k89-win-glow);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    border-bottom: 2px solid var(--k89-win-glow);
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-game-guides__btn-text-link:hover {
    color: var(--k89-win-gold);
    border-color: var(--k89-win-gold);
}

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

.page-game-guides__card {
    background-color: var(--k89-win-card-bg);
    border: 1px solid var(--k89-win-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-game-guides__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--k89-win-gold);
    padding: 15px 20px 5px;
}

.page-game-guides__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-game-guides__card-title a:hover {
    text-decoration: underline;
}

.page-game-guides__card-description {
    font-size: 0.95rem;
    color: var(--k89-win-text-secondary);
    padding: 0 20px 20px;
    line-height: 1.5;
}

.page-game-guides__faq-section {
    background-color: var(--k89-win-background);
}

.page-game-guides__faq-list {
    margin-top: 30px;
}

.page-game-guides__faq-item {
    background-color: var(--k89-win-card-bg);
    border: 1px solid var(--k89-win-divider);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--k89-win-text-main);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15rem;
    color: var(--k89-win-text-main);
    background-color: var(--k89-win-deep-green);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: var(--k89-win-primary);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
    background-color: var(--k89-win-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
}

.page-game-guides__faq-answer {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--k89-win-text-secondary);
    border-top: 1px solid var(--k89-win-divider);
}

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

.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-game-guides__faq-item summary {
    list-style: none;
}

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

/* --- Responsive Styles --- */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

    .page-game-guides__subsection-title {
        font-size: 1.6rem;
    }

    .page-game-guides__game-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: 10px 15px 40px 15px;
    }

    .page-game-guides__hero-content {
        padding: 30px 15px;
    }

    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

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

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .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 {
        padding: 40px 0;
    }

    .page-game-guides__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-game-guides__subsection-title {
        font-size: 1.4rem;
    }

    .page-game-guides p,
    .page-game-guides li,
    .page-game-guides__card-description {
        font-size: 0.9rem;
    }

    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__video-section {
        padding-top: 10px !important; 
    }

    .page-game-guides video,
    .page-game-guides__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-game-guides__video-section,
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-game-guides__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    .page-game-guides__game-cards {
        grid-template-columns: 1fr;
    }

    .page-game-guides__card-image {
        height: auto;
    }

    .page-game-guides__dark-bg {
        padding: 30px 15px;
    }
}