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

.page-mahjong-beginner-guide a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-mahjong-beginner-guide a:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

.page-mahjong-beginner-guide__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-mahjong-beginner-guide__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffc107; /* Highlight with secondary color */
}

.page-mahjong-beginner-guide__hero-title a {
    color: #ffc107;
}

.page-mahjong-beginner-guide__hero-title a:hover {
    color: #ffe08a;
}

.page-mahjong-beginner-guide__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-mahjong-beginner-guide__hero-description a {
    color: #ffc107;
}

.page-mahjong-beginner-guide__hero-description a:hover {
    color: #ffe08a;
}

.page-mahjong-beginner-guide__hero-button {
    display: inline-block;
    background-color: #ffc107;
    color: #000; /* Ensure high contrast */
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-mahjong-beginner-guide__hero-button:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
    color: #000;
}

.page-mahjong-beginner-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
}

.page-mahjong-beginner-guide__section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.page-mahjong-beginner-guide__section:last-of-type {
    border-bottom: none;
}

.page-mahjong-beginner-guide__section-title {
    font-size: 2.2em;
    color: #007bff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-mahjong-beginner-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    border-radius: 2px;
}

.page-mahjong-beginner-guide__sub-title {
    font-size: 1.6em;
    color: #343a40;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-mahjong-beginner-guide__intro p, 
.page-mahjong-beginner-guide__objective p, 
.page-mahjong-beginner-guide__gameplay p, 
.page-mahjong-beginner-guide__scoring p, 
.page-mahjong-beginner-guide__strategies p, 
.page-mahjong-beginner-guide__conclusion p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.page-mahjong-beginner-guide ul, .page-mahjong-beginner-guide ol {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-mahjong-beginner-guide ol {
    list-style-type: decimal;
}

.page-mahjong-beginner-guide ul li, .page-mahjong-beginner-guide ol li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-mahjong-beginner-guide__tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-mahjong-beginner-guide__tile-category {
    background-color: #f0f8ff;
    border-left: 5px solid #007bff;
    padding: 20px;
    border-radius: 8px;
}

.page-mahjong-beginner-guide__tile-category h3 {
    color: #007bff;
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-mahjong-beginner-guide__tile-category ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.page-mahjong-beginner-guide__tile-category ul li {
    margin-bottom: 5px;
    font-size: 1em;
    color: #555;
}

.page-mahjong-beginner-guide__image-full-width {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-mahjong-beginner-guide__image-center {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-mahjong-beginner-guide__feature-item {
    background-color: #f0f8ff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid #ffc107;
}

.page-mahjong-beginner-guide__feature-item h3 {
    color: #007bff;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-mahjong-beginner-guide__feature-item h3 a {
    color: #007bff;
}

.page-mahjong-beginner-guide__feature-item h3 a:hover {
    color: #0056b3;
}

.page-mahjong-beginner-guide__feature-item p {
    font-size: 1em;
    color: #555;
}

.page-mahjong-beginner-guide__cta-text {
    text-align: center;
    font-size: 1.2em;
    margin-top: 40px;
    font-weight: bold;
    color: #343a40;
}

.page-mahjong-beginner-guide__cta-link {
    color: #ffc107;
    font-weight: bold;
}

.page-mahjong-beginner-guide__cta-link:hover {
    color: #e0a800;
}

.page-mahjong-beginner-guide__faq-item {
    background-color: #fefefe;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-mahjong-beginner-guide__faq-item h3 {
    color: #007bff;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-mahjong-beginner-guide__faq-item h3 a {
    color: #007bff;
}

.page-mahjong-beginner-guide__faq-item h3 a:hover {
    color: #0056b3;
}

.page-mahjong-beginner-guide__faq-item p {
    font-size: 1em;
    color: #555;
}

.page-mahjong-beginner-guide__action-buttons {
    text-align: center;
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-mahjong-beginner-guide__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.page-mahjong-beginner-guide__button--primary {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-mahjong-beginner-guide__button--primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
    color: #fff;
}

.page-mahjong-beginner-guide__button--secondary {
    background-color: #ffc107;
    color: #000; /* Ensure high contrast */
    border-color: #ffc107;
}

.page-mahjong-beginner-guide__button--secondary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-3px);
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-mahjong-beginner-guide__hero {
        padding: 60px 15px;
    }

    .page-mahjong-beginner-guide__hero-title {
        font-size: 2em;
    }

    .page-mahjong-beginner-guide__hero-description {
        font-size: 1.1em;
    }

    .page-mahjong-beginner-guide__section {
        padding: 40px 15px;
    }

    .page-mahjong-beginner-guide__section-title {
        font-size: 1.8em;
    }

    .page-mahjong-beginner-guide__tiles-grid,
    .page-mahjong-beginner-guide__features-grid {
        grid-template-columns: 1fr;
    }

    .page-mahjong-beginner-guide__image-center {
        max-width: 95%;
    }

    .page-mahjong-beginner-guide__action-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-mahjong-beginner-guide__button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-mahjong-beginner-guide__hero-title {
        font-size: 1.6em;
    }

    .page-mahjong-beginner-guide__hero-description {
        font-size: 1em;
    }

    .page-mahjong-beginner-guide__hero-button,
    .page-mahjong-beginner-guide__button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-mahjong-beginner-guide__section-title {
        font-size: 1.5em;
    }
}