/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text on dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

/* Section titles */
.page-slot-games__section-title {
    font-size: 2.5em;
    color: #FFFFFF; /* White for main titles on dark background */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439; /* Brand color for accent */
    border-radius: 2px;
}

/* Text blocks */
.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

/* Primary Button (e.g., Đăng Ký Ngay) */
.page-slot-games__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #000000; /* Black text for WCAG AA contrast on #C30808 (6.8:1) */
    border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
    background-color: #8b0505; /* Darker red on hover */
    border-color: #8b0505;
    color: #FFFFFF; /* White text on hover for better contrast (8.4:1) */
}

/* Secondary Button (e.g., Chơi Thử Miễn Phí) */
.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-slot-games__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439; /* Brand color on hover (4.8:1) */
    border-color: #FFFFFF;
}

/* Dark background sections */
.page-slot-games__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter than body background for contrast */
    color: #ffffff;
    padding: 60px 0;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted height for better hero image display */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* padding-top already on main element */
    margin-bottom: 40px;
}

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.7); /* Darken image for text readability */
}

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: -1;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-slot-games__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Introduction Section */
.page-slot-games__introduction-section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games__image-content {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Match body background */
    color: #ffffff;
}

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

.page-slot-games__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
}

.page-slot-games__card-title {
    font-size: 1.5em;
    color: #FFFFFF; /* Changed to white for contrast on dark background */
    margin-bottom: 15px;
}

.page-slot-games__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Game Types Section */
.page-slot-games__game-types-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-slot-games__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
}

.page-slot-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__game-card .page-slot-games__card-title {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #FFFFFF; /* White for game card titles */
}

.page-slot-games__game-card .page-slot-games__card-text {
    padding: 0 20px 20px;
    font-size: 0.95em;
}

.page-slot-games__view-all-games-btn {
    margin-top: 40px;
}

/* Guide Section */
.page-slot-games__guide-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Match body background */
    color: #ffffff;
}

.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-slot-games__guide-list li {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-slot-games__guide-list li strong {
    color: #FFFFFF; /* Changed to white for contrast */
}

.page-slot-games__learn-more-btn {
    margin-top: 40px;
}

/* Tips Section */
.page-slot-games__tips-section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-slot-games__tips-list li {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    padding: 20px 30px;
    border-left: 5px solid #017439; /* Brand color accent */
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-slot-games__tips-list li strong {
    color: #FFFFFF; /* Changed to white for contrast */
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Match body background */
    color: #ffffff;
}

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

.page-slot-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
    padding-bottom: 20px;
}

.page-slot-games__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__promo-card .page-slot-games__card-title {
    font-size: 1.4em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-slot-games__promo-card .page-slot-games__card-text {
    padding: 0 20px;
    margin-bottom: 20px;
}

.page-slot-games__promo-card .page-slot-games__btn-primary {
    margin-top: 15px;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}