/* style/index.css */

:root {
    --primary-color: #003366; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-color-light: #f0f0f0;
    --text-color-dark: #333333;
    --background-light: #ffffff;
    --background-dark: #002244; /* Slightly darker than primary for contrast */
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.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: 0 20px;
}

.page-index h1,
.page-index h2,
.page-index h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.page-index h1 {
    font-size: 3em;
    font-weight: bold;
    color: #ffffff; /* White for hero section */
}

.page-index h2 {
    font-size: 2.5em;
    margin-top: 40px;
}

.page-index h3 {
    font-size: 1.8em;
}

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

.page-index .highlight {
    color: var(--secondary-color);
}

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

/* 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%, #001a33 100%); /* Darker gradient */
    color: var(--text-color-light);
    overflow: hidden; /* Ensure content stays within bounds */
}

.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;
    z-index: 1; /* Ensure content is above any background effects */
}

.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: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-index .hero-image img:hover {
    transform: translateY(-5px);
}

.page-index .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
    margin-top: -80px; /* Overlap with image slightly for better design */
}

.page-index .hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

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

.page-index .cta-button:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index .cta-small-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.page-index .cta-small-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Intro Section */
.page-index .intro-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.page-index .intro-section h2,
.page-index .intro-section p {
    text-align: center;
    margin-bottom: 25px;
}

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

.page-index .intro-item {
    background: var(--background-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--secondary-color);
}

.page-index .intro-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index .intro-icon {
    width: 80px; /* Ensure minimum size */
    height: 80px; /* Ensure minimum size */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

/* Quick Links Section */
.page-index .quick-links-section {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 80px 0;
}

.page-index .quick-links-section h2,
.page-index .quick-links-section p {
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 25px;
}

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

.page-index .quick-link-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    padding: 25px 20px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--secondary-color);
}

.page-index .quick-link-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index .quick-link-button .link-icon {
    width: 60px; /* Minimum size */
    height: 60px; /* Minimum size */
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(1.2); /* Slight brightness for better visibility on dark bg, not changing color */
}

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

.page-index .games-section h2,
.page-index .games-section p {
    text-align: center;
    margin-bottom: 25px;
}

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

.page-index .game-card {
    background: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

.page-index .game-card h3 {
    margin: 20px 15px 10px;
    font-size: 1.6em;
    color: var(--primary-color);
}

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

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

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

/* Promotions Section */
.page-index .promotions-section {
    background-color: #f0f4f8; /* Light blue-gray for distinction */
    padding: 80px 0;
}

.page-index .promotions-section h2,
.page-index .promotions-section p {
    text-align: center;
    margin-bottom: 25px;
}

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

.page-index .promo-card {
    background: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

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

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

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

.page-index .promo-card p {
    padding: 0 15px;
    font-size: 0.95em;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 20px;
}

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

.page-index .security-support-section h2,
.page-index .security-support-section p {
    text-align: center;
    margin-bottom: 25px;
}

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

.page-index .info-block {
    background: #fdfdfd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-index .info-icon {
    width: 70px; /* Minimum size */
    height: 70px; /* Minimum size */
    object-fit: contain;
    margin-bottom: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-index .faq-section h2,
.page-index .faq-section p {
    text-align: center;
    margin-bottom: 25px;
}

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

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

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

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

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

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

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

.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: #ffffff;
    color: var(--text-color-dark);
}

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

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

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

.page-index .blog-section h2,
.page-index .blog-section p {
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 25px;
}

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