/* style/resources-understanding-98win58.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #000000;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --bg-dark: #1a1a1a; /* Body background from shared.css */
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
}

.page-resources-understanding-98win58 {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-light); /* Default text color for dark body background */
    background-color: var(--bg-dark);
}

.page-resources-understanding-98win58 h1, .page-resources-understanding-98win58 h2, .page-resources-understanding-98win58 h3, .page-resources-understanding-98win58 h4, .page-resources-understanding-98win58 h5, .page-resources-understanding-98win58 h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources-understanding-98win58 h1 {
    font-size: 3.2em;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-understanding-98win58 h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources-understanding-98win58 h3 {
    font-size: 1.8em;
    color: var(--primary-color);
}

.page-resources-understanding-98win58 p {
    margin-bottom: 1em;
}

.page-resources-understanding-98win58 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-understanding-98win58 a:hover {
    color: #ffd000;
    text-decoration: underline;
}

/* Sections */
.page-resources-understanding-98win58__section {
    padding: 60px 20px;
    margin-bottom: 0;
}

.page-resources-understanding-98win58__dark-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-resources-understanding-98win58__light-bg {
    background-color: var(--bg-light);
    color: var(--text-color-dark);
}

.page-resources-understanding-98win58__light-bg h1, .page-resources-understanding-98win58__light-bg h2, .page-resources-understanding-98win58__light-bg h3 {
    color: var(--secondary-color);
}

.page-resources-understanding-98win58__light-bg a {
    color: var(--secondary-color);
}

.page-resources-understanding-98win58__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources-understanding-98win58__section-title {
    margin-bottom: 40px;
    font-size: 2.8em;
    color: var(--primary-color);
}

.page-resources-understanding-98win58__dark-bg .page-resources-understanding-98win58__section-title {
    color: var(--primary-color);
}

.page-resources-understanding-98win58__light-bg .page-resources-understanding-98win58__section-title {
    color: var(--secondary-color);
}

.page-resources-understanding-98win58__section-intro {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-resources-understanding-98win58__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);
    overflow: hidden;
    background: var(--secondary-color);
}

.page-resources-understanding-98win58__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-understanding-98win58__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources-understanding-98win58__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.page-resources-understanding-98win58__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    margin-top: -80px; /* Overlap with image slightly */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-resources-understanding-98win58__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-resources-understanding-98win58__description {
    font-size: 1.25em;
    margin-bottom: 30px;
    color: var(--text-color-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-understanding-98win58__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
}

.page-resources-understanding-98win58__cta-button:hover {
    background: #ffd000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    color: var(--secondary-color);
}

/* Content Wrapper with Image */
.page-resources-understanding-98win58__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-resources-understanding-98win58__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-resources-understanding-98win58__image-content {
    flex: 1;
    min-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-resources-understanding-98win58__text-block {
    flex: 1;
}

.page-resources-understanding-98win58__text-block p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

.page-resources-understanding-98win58__light-bg .page-resources-understanding-98win58__text-block p {
    color: var(--text-color-dark);
}

/* Game Grid */
.page-resources-understanding-98win58__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-understanding-98win58__game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-resources-understanding-98win58__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-understanding-98win58__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure min size */
}

.page-resources-understanding-98win58__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-resources-understanding-98win58__game-card p {
    font-size: 1em;
    color: #cccccc;
}

/* Promotions Grid */
.page-resources-understanding-98win58__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-understanding-98win58__promo-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-resources-understanding-98win58__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Feature Items (Payment & Support) */
.page-resources-understanding-98win58__features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-resources-understanding-98win58__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-color-dark);
}

.page-resources-understanding-98win58__feature-item h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-resources-understanding-98win58__feature-item p {
    color: var(--text-color-dark);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-resources-understanding-98win58__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    min-width: 200px; /* Ensure min size */
}

/* Buttons */
.page-resources-understanding-98win58__btn-primary,
.page-resources-understanding-98win58__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 10px;
    border-width: 2px;
    border-style: solid;
}

.page-resources-understanding-98win58__btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.page-resources-understanding-98win58__btn-primary:hover {
    background: #ffd000;
    border-color: #ffd000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-resources-understanding-98win58__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-resources-understanding-98win58__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-resources-understanding-98win58__button-group {
    text-align: center;
    margin-top: 20px;
}

/* FAQ Section */
.page-resources-understanding-98win58__faq-list {
    margin-top: 40px;
}

.page-resources-understanding-98win58__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-understanding-98win58__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-understanding-98win58__light-bg .page-resources-understanding-98win58__faq-question {
    background: #ffffff;
    border-color: var(--border-color);
}

.page-resources-understanding-98win58__dark-bg .page-resources-understanding-98win58__faq-question {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--text-color-light);
}

.page-resources-understanding-98win58__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-understanding-98win58__dark-bg .page-resources-understanding-98win58__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.page-resources-understanding-98win58__faq-question:active {
    background: #eeeeee;
}

.page-resources-understanding-98win58__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--secondary-color);
}

.page-resources-understanding-98win58__dark-bg .page-resources-understanding-98win58__faq-question h3 {
    color: var(--primary-color);
}

.page-resources-understanding-98win58__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-resources-understanding-98win58__dark-bg .page-resources-understanding-98win58__faq-toggle {
    color: var(--primary-color);
}

.page-resources-understanding-98win58__faq-item.active .page-resources-understanding-98win58__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Change to X or rotate */
}

.page-resources-understanding-98win58__dark-bg .page-resources-understanding-98win58__faq-item.active .page-resources-understanding-98win58__faq-toggle {
    color: var(--primary-color);
}

.page-resources-understanding-98win58__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    font-size: 1.05em;
}

.page-resources-understanding-98win58__faq-item.active .page-resources-understanding-98win58__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    color: var(--text-color-dark);
}

.page-resources-understanding-98win58__dark-bg .page-resources-understanding-98win58__faq-item.active .page-resources-understanding-98win58__faq-answer {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color-light);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-top: none;
}

/* News Grid */
.page-resources-understanding-98win58__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-understanding-98win58__news-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light);
    border: 1px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.page-resources-understanding-98win58__news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-understanding-98win58__news-card .page-resources-understanding-98win58__card-image {
    height: 220px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 15px;
}

.page-resources-understanding-98win58__news-card h3 {
    font-size: 1.4em;
    margin: 0 20px 10px;
    text-align: left;
}

.page-resources-understanding-98win58__news-card h3 a {
    color: var(--primary-color);
    display: block;
}

.page-resources-understanding-98win58__news-card h3 a:hover {
    color: #ffd000;
}

.page-resources-understanding-98win58__news-excerpt {
    font-size: 0.95em;
    color: #cccccc;
    margin: 0 20px 15px;
    text-align: left;
}

.page-resources-understanding-98win58__news-date {
    font-size: 0.85em;
    color: #888888;
    margin: 0 20px;
    display: block;
    text-align: right;
}

/* Global image settings for content area */
.page-resources-understanding-98win58 img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-understanding-98win58__main-title {
        font-size: 2.8em;
    }
    .page-resources-understanding-98win58__section-title {
        font-size: 2.2em;
    }
    .page-resources-understanding-98win58__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-resources-understanding-98win58__content-wrapper--reversed {
        flex-direction: column;
    }
    .page-resources-understanding-98win58__image-content {
        min-width: unset;
        width: 100%;
    }
    .page-resources-understanding-98win58__hero-content {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .page-resources-understanding-98win58 {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-understanding-98win58__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-understanding-98win58__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources-understanding-98win58__description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    .page-resources-understanding-98win58__cta-button {
        padding: 15px 35px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-resources-understanding-98win58__section {
        padding: 40px 15px;
    }
    .page-resources-understanding-98win58__section-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .page-resources-understanding-98win58__section-intro {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .page-resources-understanding-98win58__game-grid,
    .page-resources-understanding-98win58__promo-grid,
    .page-resources-understanding-98win58__features-grid,
    .page-resources-understanding-98win58__news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-resources-understanding-98win58__game-card,
    .page-resources-understanding-98win58__promo-card,
    .page-resources-understanding-98win58__feature-item,
    .page-resources-understanding-98win58__news-card {
        padding: 20px;
    }
    .page-resources-understanding-98win58__card-image {
        height: 180px;
    }
    .page-resources-understanding-98win58__feature-image {
        height: 200px;
    }

    .page-resources-understanding-98win58__btn-primary,
    .page-resources-understanding-98win58__btn-secondary,
    .page-resources-understanding-98win58 a[class*="button"],
    .page-resources-understanding-98win58 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;
        margin: 10px 0 !important;
    }

    .page-resources-understanding-98win58__button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images in content area */
    .page-resources-understanding-98win58 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources-understanding-98win58__section,
    .page-resources-understanding-98win58__card,
    .page-resources-understanding-98win58__container,
    .page-resources-understanding-98win58__game-grid,
    .page-resources-understanding-98win58__promo-grid,
    .page-resources-understanding-98win58__features-grid,
    .page-resources-understanding-98win58__news-grid,
    .page-resources-understanding-98win58__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-resources-understanding-98win58__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-understanding-98win58__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-understanding-98win58__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-understanding-98win58__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-understanding-98win58__faq-item.active .page-resources-understanding-98win58__faq-answer {
        padding: 15px !important;
    }

    .page-resources-understanding-98win58__news-card h3,
    .page-resources-understanding-98win58__news-excerpt,
    .page-resources-understanding-98win58__news-date {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources-understanding-98win58__main-title {
        font-size: 1.8em;
    }
    .page-resources-understanding-98win58__section-title {
        font-size: 1.8em;
    }
    .page-resources-understanding-98win58__cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
}