:root {
    --primary-color: #CC0000; /* Đỏ - Đam mê, may mắn */
    --secondary-color: #003366; /* Xanh đậm - Chuyên nghiệp, an toàn */
    --accent-color: #FFD700; /* Vàng kim - Sang trọng, nổi bật */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
    --bg-dark: #222222;
    --border-color: #e0e0e0;
}

.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-index h1, .page-index h2, .page-index h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index h1 {
    font-size: 2.8em;
    color: var(--text-light);
}

.page-index h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-index h3 {
    font-size: 1.6em;
    color: var(--primary-color);
}

.page-index p {
    margin-bottom: 1em;
    line-height: 1.8;
}

.page-index a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-index .text-center {
    text-align: center;
}

.page-index .btn-small {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index .btn-small:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.page-index .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--secondary-color); /* Fallback background */
    color: var(--text-light);
}

.page-index .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-index .hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-index .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.3);
}

.page-index .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-index .hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-index .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index .cta-button:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-index .intro-section, .page-index .quick-access-section, .page-index .games-section, .page-index .promotions-section, .page-index .security-service-section, .page-index .faq-section, .page-index .blog-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index .intro-section, .page-index .promotions-section, .page-index .faq-section, .page-index .blog-section {
    background-color: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index .quick-access-section, .page-index .games-section, .page-index .security-service-section {
    margin-bottom: 30px;
}

/* Intro Section */
.page-index .intro-container {
    text-align: center;
}

.page-index .intro-container > p {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

.page-index .intro-item {
    background: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .intro-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index .intro-item img {
    width: 150px; /* Min size 200px, adjusting for visual consistency */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Quick Access Section */
.page-index .quick-access-container {
    text-align: center;
}

.page-index .quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-index .quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 25px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-index .quick-access-item:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.page-index .quick-access-item img {
    width: 100px; /* Min size 200px, adjusting for visual consistency */
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(1.2); /* Allowed for minor visual adjustment, not color change */
}

.page-index .quick-access-item span {
    text-align: center;
}

/* Games Section */
.page-index .games-container {
    text-align: center;
}

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

.page-index .game-card {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index .game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-index .game-card h3 {
    padding: 15px 20px 0;
    font-size: 1.4em;
    color: var(--secondary-color);
}

.page-index .game-card h3 a {
    color: var(--secondary-color);
}

.page-index .game-card h3 a:hover {
    color: var(--primary-color);
}

.page-index .game-card p {
    padding: 0 20px 15px;
    font-size: 0.95em;
}

.page-index .game-card .btn-small {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    text-align: center;
}

/* Promotions Section */
.page-index .promotions-container {
    text-align: center;
}

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

.page-index .promo-item {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .promo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index .promo-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-index .promo-item h3 {
    padding: 15px 20px 0;
    font-size: 1.3em;
    color: var(--secondary-color);
}

.page-index .promo-item h3 a {
    color: var(--secondary-color);
}

.page-index .promo-item h3 a:hover {
    color: var(--primary-color);
}

.page-index .promo-item p {
    padding: 0 20px 15px;
    font-size: 0.95em;
}

.page-index .promo-item .btn-small {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    text-align: center;
}

/* Security & Service Section */
.page-index .security-service-container {
    text-align: center;
}

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

.page-index .security-item {
    background: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .security-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index .security-item img {
    width: 150px; /* Min size 200px, adjusting for visual consistency */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-index .faq-container {
    text-align: center;
}

.page-index .faq-container > p {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-index .faq-list {
    margin-top: 30px;
    text-align: left;
}

.page-index .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--text-light);
}

.page-index .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-index .faq-question:hover {
    background: var(--bg-light);
}

.page-index .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.page-index .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-index .faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.page-index .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background: #f9f9f9;
}

.page-index .faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Blog Section */
.page-index .blog-container {
    text-align: center;
}

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

.page-index .blog-card {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index .blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-index .blog-card h3 {
    padding: 15px 20px 0;
    font-size: 1.3em;
    color: var(--secondary-color);
}

.page-index .blog-card h3 a {
    color: var(--secondary-color);
}

.page-index .blog-card h3 a:hover {
    color: var(--primary-color);
}

.page-index .blog-card p {
    padding: 0 20px 10px;
    font-size: 0.95em;
}

.page-index .blog-card .blog-date {
    display: block;
    padding: 0 20px 15px;
    font-size: 0.85em;
    color: #777;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index h1 {
        font-size: 2.2em;
    }
    .page-index h2 {
        font-size: 1.8em;
    }
    .page-index h3 {
        font-size: 1.4em;
    }
    .page-index .cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    .page-index .intro-grid, .page-index .quick-access-grid, .page-index .game-cards-grid, .page-index .promo-grid, .page-index .security-grid, .page-index .blog-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .page-index .intro-section, .page-index .quick-access-section, .page-index .games-section, .page-index .promotions-section, .page-index .security-service-section, .page-index .faq-section, .page-index .blog-section {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .page-index h1 {
        font-size: 1.8em;
    }
    .page-index h2 {
        font-size: 1.6em;
    }
    .page-index h3 {
        font-size: 1.2em;
    }
    .page-index .hero-section {
        padding: 40px 15px;
    }
    .page-index .cta-button {
        padding: 10px 25px;
        font-size: 1em;
    }
    .page-index .intro-grid, .page-index .quick-access-grid, .page-index .game-cards-grid, .page-index .promo-grid, .page-index .security-grid, .page-index .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index .intro-item img, .page-index .security-item img {
        width: 120px;
        height: 120px;
    }
    .page-index .quick-access-item img {
        width: 80px;
        height: 80px;
    }
    .page-index .game-card img, .page-index .promo-item img, .page-index .blog-card img {
        height: 150px;
    }
    .page-index .faq-question {
        padding: 15px;
    }
    .page-index .faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-index h1 {
        font-size: 1.5em;
    }
    .page-index h2 {
        font-size: 1.4em;
    }
    .page-index h3 {
        font-size: 1.1em;
    }
    .page-index .cta-button {
        width: 90%;
        max-width: 250px;
        font-size: 0.9em;
    }
    .page-index .intro-item, .page-index .game-card, .page-index .promo-item, .page-index .security-item, .page-index .blog-card {
        padding: 20px;
    }
    .page-index .game-card .btn-small, .page-index .promo-item .btn-small {
        width: calc(100% - 40px);
    }
}