/* style/card-poker-mahjong-rules.css */
.page-card-poker-mahjong-rules {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f8f8f8;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-card-poker-mahjong-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-card-poker-mahjong-rules__hero {
    background-color: #0A1931; /* Dark blue main color */
    color: #f8f8f8; /* Light text for contrast */
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid #FFD700;
}

.page-card-poker-mahjong-rules__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 49, 0.9), rgba(255, 215, 0, 0.2)); /* Gradient with main and accent color */
    z-index: 1;
}

.page-card-poker-mahjong-rules__hero > .page-card-poker-mahjong-rules__container {
    position: relative;
    z-index: 2;
}

.page-card-poker-mahjong-rules__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold accent color for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.page-card-poker-mahjong-rules__hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #e0e0e0;
    font-weight: 300;
}

.page-card-poker-mahjong-rules__hero-image {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
    transition: transform 0.5s ease;
}

.page-card-poker-mahjong-rules__hero-image:hover {
    transform: scale(1.02);
}

/* General Section Styling */
.page-card-poker-mahjong-rules__section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.page-card-poker-mahjong-rules__section:nth-of-type(even) {
    background-color: #f0f2f5; /* Light grey for alternating sections */
}

.page-card-poker-mahjong-rules__section-title {
    font-size: 2.5em;
    color: #0A1931; /* Dark blue for section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-weight: bold;
}

.page-card-poker-mahjong-rules__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-card-poker-mahjong-rules p {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: #444;
}

.page-card-poker-mahjong-rules strong {
    color: #0A1931;
    font-weight: bold;
}

.page-card-poker-mahjong-rules__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 1.5em;
    color: #555;
}

.page-card-poker-mahjong-rules__list ul {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 0.5em;
}

.page-card-poker-mahjong-rules__list li {
    margin-bottom: 0.8em;
    font-size: 1.05em;
}

.page-card-poker-mahjong-rules__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
}

.page-card-poker-mahjong-rules__image:hover {
    transform: translateY(-5px);
}

/* Call to Action Button */
.page-card-poker-mahjong-rules__button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #0A1931; /* Dark blue text for contrast */
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-card-poker-mahjong-rules__button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* FAQ Accordion */
.page-card-poker-mahjong-rules__faq .page-card-poker-mahjong-rules__accordion {
    margin-top: 30px;
}

.page-card-poker-mahjong-rules__accordion-item {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.page-card-poker-mahjong-rules__accordion-header {
    background-color: #0A1931; /* Dark blue header */
    color: #FFD700; /* Gold text for contrast */
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.page-card-poker-mahjong-rules__accordion-header:hover {
    background-color: #1a3050;
}

.page-card-poker-mahjong-rules__accordion-header::after {
    content: '+';
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-card-poker-mahjong-rules__accordion-header.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation for minus sign */
}

.page-card-poker-mahjong-rules__accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #fff;
    color: #444;
}

.page-card-poker-mahjong-rules__accordion-content.open {
    max-height: 500px; /* Generous height for content, JS will adjust */
    padding: 15px 20px;
}

/* Copyright */
.page-card-poker-mahjong-rules__copyright {
    background-color: #0A1931; /* Dark blue footer */
    color: #e0e0e0;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-card-poker-mahjong-rules__hero {
        padding: 60px 0;
    }
    .page-card-poker-mahjong-rules__hero-title {
        font-size: 2.5em;
    }

    .page-card-poker-mahjong-rules__hero-subtitle {
        font-size: 1.2em;
    }

    .page-card-poker-mahjong-rules__section {
        padding: 40px 0;
    }

    .page-card-poker-mahjong-rules__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-card-poker-mahjong-rules p, .page-card-poker-mahjong-rules__list li {
        font-size: 1em;
    }

    .page-card-poker-mahjong-rules__button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .page-card-poker-mahjong-rules__accordion-header {
        font-size: 1.1em;
        padding: 12px 15px;
    }
    .page-card-poker-mahjong-rules__container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-card-poker-mahjong-rules__hero {
        padding: 40px 0;
    }
    .page-card-poker-mahjong-rules__hero-title {
        font-size: 2em;
    }

    .page-card-poker-mahjong-rules__hero-subtitle {
        font-size: 1em;
    }

    .page-card-poker-mahjong-rules__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-card-poker-mahjong-rules__hero-image {
        max-width: 95%;
    }

    .page-card-poker-mahjong-rules__accordion-header {
        font-size: 1em;
        padding: 10px 15px;
    }
    .page-card-poker-mahjong-rules__accordion-content.open {
        padding: 10px 15px;
    }
}