/* style/index.css */

/* Custom Properties for Colors */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Deep Red */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #222222;
    --border-color: #e0e0e0;
}

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

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

.page-index section {
    padding: 60px 0;
    margin-bottom: 30px;
}

.page-index .section-title {
    font-size: 3em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.page-index .cta-button,
.page-index .btn-game-detail,
.page-index .btn-promo-detail,
.page-index .btn-read-more {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-dark); /* Ensure contrast */
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index .cta-button:hover,
.page-index .btn-game-detail:hover,
.page-index .btn-promo-detail:hover,
.page-index .btn-read-more:hover {
    background: var(--secondary-color);
    color: var(--text-light); /* Ensure contrast */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 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: var(--bg-dark); /* Dark background for hero to make gold text pop */
    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 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-index .hero-title {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--primary-color); /* Gold title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Module 1: Introduction */
.page-index .intro-section {
    background-color: var(--bg-light);
}

.page-index .intro-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-index .intro-text {
    flex: 2;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-index .intro-text p {
    margin-bottom: 15px;
}

.page-index .intro-image {
    flex: 1;
    min-width: 300px;
}

.page-index .intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Module 2: Quick Access Links */
.page-index .quick-access-section {
    background: linear-gradient(135deg, var(--secondary-color), #a00000); /* Darker red background */
    color: var(--text-light);
}

.page-index .quick-access-section .section-title {
    color: var(--primary-color); /* Gold title on red background */
}

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

.page-index .quick-link-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .quick-link-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index .quick-link-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px; /* Ensure images are not small icons */
}

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

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

/* Module 3: Core Game/Service Introduction */
.page-index .games-section {
    background-color: var(--bg-light);
}

.page-index .game-tabs {
    margin-top: 40px;
}

.page-index .tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.page-index .tab-button {
    background-color: var(--border-color);
    color: var(--text-dark);
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

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

.page-index .tab-button.active {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .tab-content {
    display: none;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index .tab-content.active {
    display: block;
}

.page-index .game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-index .game-item img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index .game-item .game-title {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index .game-item p {
    font-size: 1.1em;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Module 4: Promotions */
.page-index .promotions-section {
    background-color: #f0f0f0;
}

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

.page-index .promo-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-index .promo-card img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index .promo-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index .promo-card p {
    font-size: 1em;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* Module 5: Security & Customer Service */
.page-index .security-cs-section {
    background: var(--bg-dark); /* Dark background for this section */
    color: var(--text-light);
}

.page-index .security-cs-section .section-title,
.page-index .security-cs-section .section-description {
    color: var(--primary-color); /* Gold text on dark background */
}

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

.page-index .security-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .security-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px; /* Ensure images are not small icons */
}

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

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

.page-index .contact-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-index .contact-link:hover {
    color: var(--text-light);
}

/* Module 6: FAQ */
.page-index .faq-section {
    background-color: var(--bg-light);
}

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

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

.page-index .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-index .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background: #f9f9f9;
    color: var(--text-dark);
}

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

.page-index .faq-answer p {
    margin: 0;
}

/* Module 7: Latest Blog Content */
.page-index .blog-section {
    background-color: #f0f0f0;
}

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

.page-index .blog-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

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

.page-index .blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-index .blog-card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.page-index .blog-excerpt {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-index .blog-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index .hero-title {
        font-size: 3.5em;
    }
    .page-index .hero-description {
        font-size: 1.3em;
    }
    .page-index .section-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-index section {
        padding: 40px 0;
    }
    .page-index .hero-section {
        padding: 40px 15px;
    }
    .page-index .hero-title {
        font-size: 2.5em;
    }
    .page-index .hero-description {
        font-size: 1.1em;
    }
    .page-index .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-index .intro-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-index .intro-text,
    .page-index .intro-image {
        flex: none;
        width: 100%;
    }
    .page-index .quick-links-grid,
    .page-index .promo-grid,
    .page-index .security-cs-grid,
    .page-index .blog-grid {
        grid-template-columns: 1fr;
    }
    .page-index .tab-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index .tab-button {
        width: 100%;
    }
    .page-index .game-item img {
        max-width: 100%;
    }
    .page-index .game-item .game-title {
        font-size: 1.8em;
    }
    .page-index .faq-question {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .page-index .faq-question h3 {
        margin-bottom: 10px;
    }
    .page-index .faq-toggle {
        align-self: flex-end;
        margin-top: -30px; /* Adjust to position correctly */
    }
    .page-index .faq-item.active .faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-index .hero-title {
        font-size: 2em;
    }
    .page-index .hero-description {
        font-size: 1em;
    }
    .page-index .section-title {
        font-size: 2em;
    }
}