/* style/mahjong.css */
.page-mahjong {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.page-mahjong__hero {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.page-mahjong__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
}

.page-mahjong__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) blur(3px);
}

.page-mahjong__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-mahjong__title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffc107; /* Highlight with auxiliary color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-mahjong__subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e9ecef;
}

.page-mahjong__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
}

.page-mahjong__button--primary {
    background-color: #ffc107;
    color: #000000;
}

.page-mahjong__button--primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.page-mahjong__button--secondary {
    background-color: #007bff;
    color: #ffffff;
    border: 1px solid #007bff;
}

.page-mahjong__button--secondary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.page-mahjong__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-mahjong__button--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-mahjong__section {
    padding: 60px 0;
    border-bottom: 1px solid #e2e6ea;
}

.page-mahjong__section:last-of-type {
    border-bottom: none;
}

.page-mahjong__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-mahjong__section-title {
    font-size: 2.5em;
    color: #007bff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-mahjong__sub-title {
    font-size: 1.6em;
    color: #343a40;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-mahjong__introduction p, .page-mahjong__how-to-play p, .page-mahjong__variants p, .page-mahjong__strategies p, .page-mahjong__detail-pages p, .page-mahjong__call-to-action p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

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

.page-mahjong__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-mahjong__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-mahjong__feature-icon {
    width: 120px; /* Adjusted size for better integration */
    height: 90px; /* Adjusted size for better integration */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-mahjong__promo-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.page-mahjong__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-mahjong__steps-list li {
    background-color: #ffffff;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-mahjong__steps-list li h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-mahjong__variant-list, .page-mahjong__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-mahjong__variant-list li, .page-mahjong__strategy-list li {
    background-color: #ffffff;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-left: 5px solid #007bff;
}

.page-mahjong__variant-list li h3, .page-mahjong__strategy-list li h3 {
    color: #343a40;
    margin-top: 0;
    margin-bottom: 10px;
}

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

.page-mahjong__detail-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-mahjong__detail-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    min-height: 50px;
}

.page-mahjong__detail-title a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

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

.page-mahjong__detail-description {
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-mahjong__call-to-action {
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-mahjong__call-to-action .page-mahjong__section-title {
    color: #ffc107;
    margin-bottom: 20px;
}

.page-mahjong__call-to-action p {
    color: #e9ecef;
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-mahjong__title {
        font-size: 2.8em;
    }
    .page-mahjong__subtitle {
        font-size: 1.1em;
    }
    .page-mahjong__section-title {
        font-size: 2em;
    }
    .page-mahjong__sub-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-mahjong__hero {
        padding: 60px 15px;
    }
    .page-mahjong__title {
        font-size: 2.2em;
    }
    .page-mahjong__subtitle {
        font-size: 1em;
    }
    .page-mahjong__section {
        padding: 40px 0;
    }
    .page-mahjong__section-title {
        font-size: 1.8em;
    }
    .page-mahjong__feature-grid, .page-mahjong__detail-list {
        grid-template-columns: 1fr;
    }
    .page-mahjong__button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .page-mahjong__hero {
        min-height: 350px;
    }
    .page-mahjong__title {
        font-size: 1.8em;
    }
    .page-mahjong__subtitle {
        font-size: 0.95em;
    }
    .page-mahjong__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-mahjong__section-title {
        font-size: 1.6em;
    }
    .page-mahjong__sub-title {
        font-size: 1.2em;
    }
    .page-mahjong__steps-list li, .page-mahjong__variant-list li, .page-mahjong__strategy-list li, .page-mahjong__feature-item, .page-mahjong__detail-item {
        padding: 20px;
    }
}