/* style/index.css */
:root {
    --primary-color: #B22222; /* Firebrick */
    --secondary-color: #FFD700; /* Gold */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f8f8f8;
    --background-dark: #222222;
    --border-color: #e0e0e0;
}

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

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

.page-index .section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.page-index .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-index .section-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 60px;
    color: var(--text-color-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
}

.page-index .cta-button:hover {
    background: var(--secondary-color);
    color: var(--text-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

/* 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: linear-gradient(135deg, var(--primary-color) 0%, #a01f1f 100%); /* Slightly darker red gradient */
    color: var(--text-color-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;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.page-index .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

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

.page-index .hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index .hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

/* Module 1: Intro Section */
.page-index .intro-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.page-index .intro-text {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 30px;
    color: var(--text-color-dark);
}

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

.page-index .feature-item {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index .feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-index .feature-item h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index .feature-item p {
    font-size: 1em;
    color: var(--text-color-dark);
}

/* Module 2: Quick Access Section */
.page-index .quick-access-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

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

.page-index .quick-link-card {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    color: var(--text-color-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index .quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index .quick-link-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-index .quick-link-card h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-index .quick-link-card p {
    font-size: 0.95em;
    color: var(--text-color-dark);
}

/* Module 3: Games & Services Section */
.page-index .games-services-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

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

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

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

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

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

.page-index .game-card h3 .page-index.game-title-link {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

.page-index .game-card p {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-color-dark);
}

.page-index .game-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-index .game-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

/* Module 4: Promotions Section */
.page-index .promotions-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

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

.page-index .promo-card {
    background-color: var(--text-color-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.page-index .promo-card h3 {
    font-size: 1.6em;
    padding: 20px 20px 0;
    color: var(--primary-color);
}

.page-index .promo-card h3 .page-index.promo-title-link {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-index .promo-card h3 .page-index.promo-title-link:hover {
    color: var(--secondary-color);
}

.page-index .promo-card p {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-color-dark);
}

.page-index .promo-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 10px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-size: 0.9em;
}

.page-index .promo-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

/* Module 5: Security & Support Section */
.page-index .security-support-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

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

.page-index .info-item {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .info-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index .info-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-index .info-item h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index .info-item p {
    font-size: 1em;
    color: var(--text-color-dark);
}

/* Module 6: FAQ Section */
.page-index .faq-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

.page-index .faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

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

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background: #fafafa;
    color: var(--text-color-dark);
}

.faq-answer p {
    padding-bottom: 15px;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

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

/* Module 7: Blog Section */
.page-index .blog-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

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

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

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

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

.page-index .blog-post-card h3 {
    font-size: 1.5em;
    padding: 20px 20px 0;
    color: var(--primary-color);
}

.page-index .blog-post-card h3 .page-index.blog-title-link {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-index .blog-post-card h3 .page-index.blog-title-link:hover {
    color: var(--secondary-color);
}

.page-index .blog-post-card p {
    padding: 0 20px 10px;
    font-size: 0.95em;
    color: var(--text-color-dark);
}

.page-index .post-date {
    display: block;
    font-size: 0.85em;
    color: #888;
    padding: 0 20px 20px;
}

.page-index .view-more-button-container {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index .hero-content h1 {
        font-size: 3em;
    }
    .page-index .hero-content p {
        font-size: 1.2em;
    }
    .page-index .section-title {
        font-size: 2em;
    }
    .page-index .section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-index .hero-section {
        padding: 40px 15px;
    }
    .page-index .hero-image img {
        border-radius: 8px;
    }
    .page-index .hero-content h1 {
        font-size: 2.5em;
    }
    .page-index .hero-content p {
        font-size: 1.1em;
    }
    .page-index .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-index .section-title {
        font-size: 1.8em;
    }
    .page-index .section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

    .page-index .intro-section, .page-index .quick-access-section, .page-index .games-services-section, .page-index .promotions-section, .page-index .security-support-section, .page-index .faq-section, .page-index .blog-section {
        padding: 60px 0;
    }

    .page-index .feature-item, .page-index .quick-link-card, .page-index .game-card, .page-index .promo-card, .page-index .info-item, .page-index .blog-post-card {
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 12px 15px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 15px;
    }
    .faq-item.active .faq-answer {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .page-index .hero-content h1 {
        font-size: 2em;
    }
    .page-index .hero-content p {
        font-size: 1em;
    }
    .page-index .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    .page-index .section-title {
        font-size: 1.5em;
    }
    .page-index .intro-features, .page-index .quick-links-grid, .page-index .games-grid, .page-index .promo-grid, .page-index .security-support-grid, .page-index .blog-grid {
        grid-template-columns: 1fr;
    }
    .page-index .feature-icon, .page-index .quick-link-icon, .page-index .info-icon {
        width: 80px;
        height: 80px;
    }
    .page-index .game-image, .page-index .promo-image, .page-index .blog-image {
        height: 180px;
    }
}