:root {
    --primary-color: #FF8C1A; /* Main */
    --secondary-color: #FFA53A; /* Accent */
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg: #17191F;
    --bg-color: #0D0E12; /* Body background from shared.css */
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

/* Base styles for the page content */
.page-fortuneox {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--bg-color); /* Inherited from body, but explicitly set for sections */
}

/* Container for consistent padding and max-width */
.page-fortuneox__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-fortuneox__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive H1/H2 font size */
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-fortuneox__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main);
}

/* HERO Section */
.page-fortuneox__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(180deg, rgba(13, 14, 18, 0.8) 0%, var(--bg-color) 100%);
    overflow: hidden;
}

.page-fortuneox__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width on desktop */
}

.page-fortuneox__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is below text if text were to overlap */
}

.page-fortuneox__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    min-height: 200px; /* Minimum image size */
}

.page-fortuneox__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.page-fortuneox__main-title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--glow-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(255, 176, 77, 0.7);
}

.page-fortuneox__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-main);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-fortuneox__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure full width on mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fortuneox__cta-button:hover {
    background: linear-gradient(180deg, var(--glow-color) 0%, var(--deep-orange) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

/* General button styles */
.page-fortuneox__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 140, 26, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fortuneox__btn-primary:hover {
    background: linear-gradient(180deg, var(--glow-color) 0%, var(--deep-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 26, 0.5);
}

.page-fortuneox__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fortuneox__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 26, 0.3);
}

.page-fortuneox__cta-button--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.page-fortuneox__cta-button--secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

/* Section specific styles */
.page-fortuneox__dark-section {
    background-color: var(--card-bg); /* Darker background for contrast */
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-fortuneox__introduction-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-fortuneox__feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-fortuneox__feature-item {
    background-color: rgba(255, 140, 26, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-fortuneox__feature-item:hover {
    transform: translateY(-5px);
}

.page-fortuneox__feature-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fortuneox__how-to-play-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-fortuneox__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fortuneox__step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-fortuneox__step-title {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fortuneox__features-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-fortuneox__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-fortuneox__card:hover {
    transform: translateY(-5px);
}

.page-fortuneox__card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-fortuneox__card-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fortuneox__why-sss-game-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-fortuneox__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fortuneox__advantage-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-fortuneox__advantage-title {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fortuneox__tips-strategy-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-fortuneox__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fortuneox__tip-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-fortuneox__tip-title {
    font-size: 26px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fortuneox__other-games-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-fortuneox__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease;
    display: block; /* Make the whole card clickable */
}

.page-fortuneox__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.4);
}

.page-fortuneox__game-card img {
    width: 100%;
     /* Consistent height for game cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-fortuneox__game-card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fortuneox__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-fortuneox__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

details.page-fortuneox__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
details.page-fortuneox__faq-item summary.page-fortuneox__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-fortuneox__faq-item summary.page-fortuneox__faq-question::-webkit-details-marker {
    display: none;
}
details.page-fortuneox__faq-item summary.page-fortuneox__faq-question:hover {
    background: rgba(255, 140, 26, 0.15);
}
.page-fortuneox__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-fortuneox__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

details.page-fortuneox__faq-item .page-fortuneox__faq-answer {
    padding: 0 25px 20px;
    background: rgba(255, 140, 26, 0.05);
    border-radius: 0 0 10px 10px;
    color: var(--text-main);
}

.page-fortuneox__cta-final-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.page-fortuneox__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-fortuneox__container {
        padding: 30px 15px;
    }
    .page-fortuneox__section-title {
        font-size: clamp(26px, 5vw, 38px);
        margin-bottom: 30px;
    }
    .page-fortuneox__main-title {
        font-size: clamp(32px, 6vw, 48px);
    }
    .page-fortuneox__hero-description {
        font-size: 18px;
    }
    .page-fortuneox__cta-button {
        padding: 14px 35px;
        font-size: 18px;
    }
    .page-fortuneox__feature-item {
        min-width: unset;
        max-width: 45%;
    }
    .page-fortuneox__card img, .page-fortuneox__game-card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-fortuneox {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-fortuneox__container {
        padding: 20px 15px;
    }
    .page-fortuneox__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fortuneox__hero-image img {
        border-radius: 4px;
        min-height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-fortuneox__hero-content {
        padding: 10px;
    }
    .page-fortuneox__main-title {
        font-size: clamp(28px, 8vw, 38px);
        margin-bottom: 15px;
    }
    .page-fortuneox__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-fortuneox__cta-button,
    .page-fortuneox__btn-primary,
    .page-fortuneox__btn-secondary,
    .page-fortuneox a[class*="button"],
    .page-fortuneox 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: 12px 20px;
        font-size: 16px;
    }
    .page-fortuneox__cta-buttons,
    .page-fortuneox__button-group,
    .page-fortuneox__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-fortuneox__feature-list,
    .page-fortuneox__card-grid,
    .page-fortuneox__game-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-fortuneox__feature-item {
        max-width: 100%;
    }
    .page-fortuneox__card img, .page-fortuneox__game-card img {
        height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-fortuneox__faq-qtext {
        font-size: 16px;
    }
    .page-fortuneox__faq-toggle {
        font-size: 24px;
    }
    .page-fortuneox__faq-item summary.page-fortuneox__faq-question {
        padding: 15px 20px;
    }
    .page-fortuneox__faq-item .page-fortuneox__faq-answer {
        padding: 0 20px 15px;
    }
    .page-fortuneox img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-fortuneox__section,
    .page-fortuneox__card,
    .page-fortuneox__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

/* Ensure all content images are responsive and minimum size */
.page-fortuneox img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: none !important; /* Ensure no filter on images */
}

/* Content area image CSS size lower limit */
.page-fortuneox__introduction-section img,
.page-fortuneox__how-to-play-section img,
.page-fortuneox__features-section img,
.page-fortuneox__why-sss-game-section img,
.page-fortuneox__tips-strategy-section img,
.page-fortuneox__other-games-section img,
.page-fortuneox__faq-section img,
.page-fortuneox__cta-final-section img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
}

/* For contrast */
.page-fortuneox__cta-final-section .page-fortuneox__section-title,
.page-fortuneox__cta-final-section .page-fortuneox__text-block {
    color: var(--text-main);
}

.page-fortuneox__cta-buttons a {
    margin-top: 0; /* Adjust margin for flex gap */
}