/* style/index.css */

/* General Styling & Variables */
.page-index {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f5f5f5;
    --background-dark: #222222;
    --border-color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
}

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

.page-index section {
    padding: 60px 0;
    text-align: center;
}

.page-index h1,
.page-index h2,
.page-index h3 {
    color: var(--secondary-color); /* Dark red for headings */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index h1 {
    font-size: 2.8em;
    color: var(--primary-color); /* Gold for H1 in hero */
}

.page-index h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
}

.page-index h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-index p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-index .primary-button,
.page-index .secondary-button,
.page-index .cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.page-index .primary-button,
.page-index .cta-button.primary-button {
    background-color: var(--primary-color);
    color: var(--text-dark); /* Ensure contrast with gold */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .primary-button:hover,
.page-index .cta-button.primary-button:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index .secondary-button,
.page-index .cta-button.secondary-button {
    background-color: var(--secondary-color);
    color: var(--text-light); /* White text for dark red */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .secondary-button:hover,
.page-index .cta-button.secondary-button:hover {
    background-color: #6a0000; /* Slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index a {
    color: var(--secondary-color); /* Dark red for links */
    text-decoration: none;
}

.page-index a:hover {
    text-decoration: underline;
    color: var(--primary-color); /* Gold on hover */
}

/* 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: 80px 20px;
    background-color: var(--background-dark); /* Dark background for hero */
    overflow: hidden;
}

.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;
    position: relative;
    z-index: 1; /* Ensure image is behind content if content is overlaid */
}

.page-index .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index .hero-content {
    position: absolute; /* Overlay content on image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index .hero-content h1 {
    font-size: 3em;
    color: var(--primary-color); /* Gold for H1 */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index .hero-content p {
    font-size: 1.3em;
    color: var(--text-light); /* White for paragraph */
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index .hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-index .cta-button {
    font-size: 1.2em;
    padding: 15px 35px;
}

/* About Section */
.page-index .about-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-index .about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-index .about-grid .about-text {
    flex: 1;
}

.page-index .about-grid .about-image {
    flex: 1;
    text-align: center;
}

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

/* Quick Access Section */
.page-index .quick-access-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-index .quick-access-section h2 {
    color: var(--primary-color);
}

.page-index .quick-access-section p {
    color: #cccccc;
    font-size: 1.1em;
}

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

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

.page-index .quick-link-card:hover {
    transform: translateY(-10px);
    background-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-index .quick-link-card p {
    color: #cccccc;
    font-size: 0.95em;
}

/* Games Section */
.page-index .games-section {
    background-color: var(--background-light);
}

.page-index .games-section h2 {
    color: var(--secondary-color);
}

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

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

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

.page-index .game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-index .game-card h3 {
    padding: 20px 20px 10px;
    color: var(--secondary-color);
    margin-bottom: 0;
}

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

.page-index .game-card .secondary-button {
    margin: 0 20px 20px;
    display: inline-block;
    width: calc(100% - 40px);
    text-align: center;
}

/* Promotions Section */
.page-index .promotions-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-index .promotions-section h2 {
    color: var(--primary-color);
}

.page-index .promotions-section p {
    color: #cccccc;
}

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

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

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

.page-index .promotion-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.page-index .promotion-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    margin-bottom: 0;
}

.page-index .promotion-card p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #cccccc;
}

.page-index .promotion-card .primary-button {
    margin: 0 20px 20px;
    display: inline-block;
    width: calc(100% - 40px);
    text-align: center;
}

/* Security & Support Section */
.page-index .security-support-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-index .security-support-section h2 {
    color: var(--secondary-color);
}

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

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

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

.page-index .info-card img {
    width: 100%; /* Ensure image fills card width */
    max-width: 150px; /* Limit max size for visual balance */
    height: auto;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border-radius: 5px;
}

.page-index .info-card h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-index .info-card p {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-index .faq-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-index .faq-section h2 {
    color: var(--primary-color);
}

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

.page-index .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #333333;
    border: 1px solid #444444;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

.page-index .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-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.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #2a2a2a;
    color: #cccccc;
    border-radius: 0 0 8px 8px;
    font-size: 1em;
}

.page-index .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to accommodate content */
    padding: 20px 25px;
}

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

/* Blog Section */
.page-index .blog-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-index .blog-section h2 {
    color: var(--secondary-color);
}

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

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

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

.page-index .blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-index .blog-card h3 {
    padding: 20px 20px 10px;
    color: var(--secondary-color);
    margin-bottom: 0;
}

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

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

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

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

.page-index .view-all-button {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index h1 {
        font-size: 2.5em;
    }
    .page-index h2 {
        font-size: 2em;
    }
    .page-index .hero-content {
        padding: 25px;
    }
    .page-index .hero-content h1 {
        font-size: 2.5em;
    }
    .page-index .hero-content p {
        font-size: 1.1em;
    }
    .page-index .about-grid {
        flex-direction: column;
    }
    .page-index .about-grid .about-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-index section {
        padding: 40px 0;
    }
    .page-index h1 {
        font-size: 2em;
    }
    .page-index h2 {
        font-size: 1.8em;
    }
    .page-index h3 {
        font-size: 1.4em;
    }
    .page-index p {
        font-size: 1em;
    }
    .page-index .hero-section {
        padding: 60px 15px;
    }
    .page-index .hero-content {
        width: 95%;
        padding: 20px;
    }
    .page-index .hero-content h1 {
        font-size: 2em;
    }
    .page-index .hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-index .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index .cta-button {
        width: 80%;
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index .quick-access-grid,
    .page-index .game-showcase-grid,
    .page-index .promotion-grid,
    .page-index .security-support-grid,
    .page-index .blog-grid {
        grid-template-columns: 1fr;
    }
    .page-index .game-card .secondary-button,
    .page-index .promotion-card .primary-button {
        width: auto;
    }

    .page-index .faq-question {
        padding: 15px 20px;
    }
    .page-index .faq-question h3 {
        font-size: 1.1em;
    }
    .page-index .faq-toggle {
        font-size: 20px;
    }
    .page-index .faq-answer {
        padding: 0 20px;
    }
    .page-index .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-index .info-card img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .page-index h1 {
        font-size: 1.8em;
    }
    .page-index h2 {
        font-size: 1.6em;
    }
    .page-index .hero-content h1 {
        font-size: 1.8em;
    }
    .page-index .hero-content p {
        font-size: 0.9em;
    }
    .page-index .cta-button {
        width: 90%;
        padding: 10px 20px;
        font-size: 0.9em;
    }
}