:root {
    --primary-color: #017439; /* Main brand color */
    --secondary-color: #FFFFFF; /* Accent/Background color */
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808; /* Specific color for register button */
    --button-login: #C30808; /* Specific color for login button */
    --font-register-login: #FFFF00; /* Specific font color for register/login */
    --border-color: #e0e0e0;
    --background-light: #f9f9f9;
}

/* Base styles for the page content */
.page-resources-ku-casino-popular-games-guide {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background: var(--secondary-color); /* White background as per instructions */
    padding: 0;
    margin: 0;
}

/* Hero Section */
.page-resources-ku-casino-popular-games-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: var(--primary-color); /* A solid background color for hero section */
    color: var(--text-light);
    overflow: hidden; /* Prevent content overflow */
}

.page-resources-ku-casino-popular-games-guide__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-resources-ku-casino-popular-games-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-resources-ku-casino-popular-games-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-resources-ku-casino-popular-games-guide__hero-image img:hover {
    transform: scale(1.03);
}

.page-resources-ku-casino-popular-games-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-resources-ku-casino-popular-games-guide__hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--font-register-login); /* Highlight H1 with yellow for impact */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.page-resources-ku-casino-popular-games-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-ku-casino-popular-games-guide__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources-ku-casino-popular-games-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure buttons are not too small */
}

.page-resources-ku-casino-popular-games-guide__btn-primary {
    background: var(--button-register); /* Specific color for register/primary action */
    color: var(--font-register-login); /* Yellow text for contrast */
    border: 2px solid var(--button-register);
}

.page-resources-ku-casino-popular-games-guide__btn-primary:hover {
    background: #a30707;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-ku-casino-popular-games-guide__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-ku-casino-popular-games-guide__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-resources-ku-casino-popular-games-guide__section {
    padding: 60px 20px;
    margin-bottom: 0; /* No margin between sections */
    background-color: var(--secondary-color); /* Default light background */
    color: var(--text-dark);
}

.page-resources-ku-casino-popular-games-guide__section:nth-of-type(odd) {
    background-color: var(--background-light); /* Alternate background for better visual separation */
}

.page-resources-ku-casino-popular-games-guide__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-ku-casino-popular-games-guide__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-resources-ku-casino-popular-games-guide__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-ku-casino-popular-games-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--button-register);
    border-radius: 2px;
}

.page-resources-ku-casino-popular-games-guide__dark-bg .page-resources-ku-casino-popular-games-guide__section-title {
    color: var(--font-register-login);
}
.page-resources-ku-casino-popular-games-guide__dark-bg .page-resources-ku-casino-popular-games-guide__section-title::after {
    background-color: var(--font-register-login);
}

.page-resources-ku-casino-popular-games-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: justify;
}

.page-resources-ku-casino-popular-games-guide__center-text {
    text-align: center;
}

/* Game Categories */
.page-resources-ku-casino-popular-games-guide__game-category {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.page-resources-ku-casino-popular-games-guide__section:nth-of-type(odd) .page-resources-ku-casino-popular-games-guide__game-category {
    background-color: var(--secondary-color); /* Ensure cards are white on light grey section */
}

.page-resources-ku-casino-popular-games-guide__game-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.page-resources-ku-casino-popular-games-guide__game-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

.page-resources-ku-casino-popular-games-guide__game-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 25px;
    font-size: 1.05em;
    color: var(--text-dark);
}

.page-resources-ku-casino-popular-games-guide__game-list li {
    margin-bottom: 10px;
}

.page-resources-ku-casino-popular-games-guide__game-list ul,
.page-resources-ku-casino-popular-games-guide__game-list ol {
    margin-top: 10px;
    margin-left: 20px;
    list-style: decimal;
}

/* Strategies List */
.page-resources-ku-casino-popular-games-guide__strategy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources-ku-casino-popular-games-guide__strategy-list li {
    background-color: var(--secondary-color);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-size: 1.1em;
    line-height: 1.6;
    border-left: 5px solid var(--primary-color);
}

.page-resources-ku-casino-popular-games-guide__section:nth-of-type(odd) .page-resources-ku-casino-popular-games-guide__strategy-list li {
    background-color: var(--secondary-color); /* Ensure cards are white on light grey section */
}

/* FAQ Section */
.page-resources-ku-casino-popular-games-guide__faq-list {
    margin-top: 30px;
}

.page-resources-ku-casino-popular-games-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-resources-ku-casino-popular-games-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1; /* Ensure question is above answer for clickability */
}

.page-resources-ku-casino-popular-games-guide__faq-item.active .page-resources-ku-casino-popular-games-guide__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--background-light);
    border-color: var(--primary-color);
}

.page-resources-ku-casino-popular-games-guide__faq-question:hover {
    background: var(--background-light);
    border-color: #d0d0d0;
}

.page-resources-ku-casino-popular-games-guide__faq-question:active {
    background: #eeeeee;
}

.page-resources-ku-casino-popular-games-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources-ku-casino-popular-games-guide__faq-toggle {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: 30px;
    height: 30px;
}

.page-resources-ku-casino-popular-games-guide__faq-item.active .page-resources-ku-casino-popular-games-guide__faq-toggle {
    color: var(--button-register);
    transform: rotate(45deg); /* Visual cue for open state */
}

.page-resources-ku-casino-popular-games-guide__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 25px; /* Initial padding */
    opacity: 0;
    background: var(--background-light);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-sizing: border-box;
}

/* FAQ expanded state - IMPORTANT */
.page-resources-ku-casino-popular-games-guide__faq-item.active .page-resources-ku-casino-popular-games-guide__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important; /* Final padding */
    opacity: 1;
    background: var(--background-light);
}

.page-resources-ku-casino-popular-games-guide__faq-answer p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-resources-ku-casino-popular-games-guide__faq-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

/* Call to Action Section specific styling */
.page-resources-ku-casino-popular-games-guide__call-to-action {
    padding: 80px 20px;
    text-align: center;
}

.page-resources-ku-casino-popular-games-guide__call-to-action .page-resources-ku-casino-popular-games-guide__section-title {
    color: var(--font-register-login);
    margin-bottom: 30px;
}

.page-resources-ku-casino-popular-games-guide__call-to-action .page-resources-ku-casino-popular-games-guide__text-block {
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}