/* style/index.css */

/* Base styles for the page content, assuming dark body background */
.page-index {
    color: #ffffff; /* Default text color for the page content */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles and descriptions */
.page-index__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark background */
}

.page-index__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly lighter for readability */
}

/* Text color adjustments for light background sections */
.page-index__text-dark {
    color: #333333;
}

/* CTA Buttons */
.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    margin: 0 10px;
}

.page-index__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary {
    background: var(--primary-color, #017439);
    color: #ffffff;
}

.page-index__btn-primary:hover {
    background: #005a2d; /* Slightly darker green */
}

/* Custom colors for Register/Login buttons */
.page-index__btn-register,
.page-index__btn-login {
    background: #C30808; /* Red for register/login */
    color: #FFFF00; /* Yellow text for register/login */
}

.page-index__btn-register:hover,
.page-index__btn-login:hover {
    background: #9d0606; /* Slightly darker red */
}

/* Video Section Styles */
.page-index__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: #1a1a1a; /* Dark background for video section */
}

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

.page-index__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-index__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
    opacity: 1;
}

.page-index__video-click-hint {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    background: rgba(0, 123, 255, 0.8); /* Using a blue for contrast, can be adjusted */
    border-radius: 5px;
    white-space: nowrap;
}

.page-index__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.page-index__play-now-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color, #017439); /* Use primary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.page-index__play-now-button:hover {
    background: #005a2d; /* Slightly darker green */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.page-index__hero-section {
    padding: 80px 20px;
    text-align: center;
    background: #1a1a1a; /* Dark background for hero */
    color: #ffffff;
}

.page-index__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-index__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-index__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Games Showcase Section */
.page-index__games-showcase {
    padding: 80px 0;
    background: #1a1a1a; /* Dark background */
    color: #ffffff;
}

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

.page-index__game-card {
    background: #2a2a2a; /* Slightly lighter dark background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-index__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-index__game-title {
    font-size: 22px;
    font-weight: bold;
    padding: 15px 20px 0;
    color: #ffffff;
}

.page-index__game-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__game-title a:hover {
    color: var(--primary-color, #017439);
}

.page-index__game-text {
    font-size: 15px;
    padding: 10px 20px 20px;
    color: #cccccc;
    flex-grow: 1;
}

.page-index__more-games-cta {
    text-align: center;
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 0;
    background: #ffffff; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
}

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

/* FAQ item styles */
.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #f9f9f9; /* Light background for FAQ items */
}

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333; /* Dark text */
}

.page-index__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-index__faq-question:active {
    background: #eeeeee;
}

.page-index__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click events */
    color: #333333;
}

.page-index__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Example: rotate to become an 'X' or just change to '-' */
}

.page-index__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: #f9f9f9;
    color: #555555; /* Darker text for answers */
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-index__more-faq-text {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    color: #333333;
}

.page-index__contact-link {
    color: var(--primary-color, #017439);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-index__contact-link:hover {
    color: #005a2d;
}

/* Brand Section */
.page-index__brand-section {
    padding: 80px 0;
    background: var(--primary-color, #017439); /* Brand primary color background */
    color: #ffffff;
}

.page-index__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-index__brand-item {
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent dark for contrast */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-index__brand-item-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-index__brand-item p {
    font-size: 16px;
    color: #f0f0f0;
}