/* style/index.css */
.page-index {
    color: #f0f0f0; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-index__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Primary color for titles */
}

.page-index__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Default text color, adjust for light backgrounds */
}

/* Sections with light background */
.page-index__light-bg .page-index__section-title {
    color: #26A9E0;
}

.page-index__light-bg .page-index__section-description,
.page-index__light-bg .page-index__feature-text,
.page-index__light-bg .page-index__faq-question h3,
.page-index__light-bg .page-index__faq-answer,
.page-index__light-bg .page-index__blog-item-excerpt,
.page-index__light-bg .page-index__blog-item-date {
    color: #555555;
}

.page-index__light-bg .page-index__feature-title {
    color: #26A9E0;
}

/* Sections with dark background */
.page-index__dark-bg .page-index__section-title {
    color: #FFFFFF;
}

.page-index__dark-bg .page-index__section-description,
.page-index__dark-bg .page-index__game-description,
.page-index__dark-bg .page-index__brand-item-title,
.page-index__dark-bg .page-index__brand-item-text {
    color: #f0f0f0;
}

.page-index__dark-bg .page-index__game-title a {
    color: #26A9E0;
}

.page-index__dark-bg .page-index__game-card {
    background: #2a2a2a;
}

.page-index__dark-bg .page-index__brand-item {
    background: rgba(255, 255, 255, 0.1);
}

/* Video Section */
.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);
    background-color: #0d0d0d; /* Dark background to contrast with light text */
    color: #ffffff;
}

.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__main-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-index__title-description {
    font-size: 20px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    color: #f0f0f0;
}

.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.4);
}

.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.3);
}

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

.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.5);
    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: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 12px 25px;
    background: rgba(38, 169, 224, 0.8); /* Primary color with transparency */
    border-radius: 5px;
    white-space: nowrap;
}

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

.page-index__play-now-button,
.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary brand 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.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.page-index__play-now-button:hover,
.page-index__cta-button:hover {
    background: #1e87b7; /* Darker shade of primary */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-index__cta-button--register {
    background: #EA7C07; /* Login/Register specific color */
}

.page-index__cta-button--register:hover {
    background: #c76706;
}

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

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

.page-index__feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 400px; /* Ensure sufficient height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-index__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

.page-index__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-index__feature-text {
    font-size: 16px;
    color: #555555;
}

/* Popular Games Section */
.page-index__popular-games-section {
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* Light text for dark background */
    padding: 80px 0;
}

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

.page-index__game-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-title {
    font-size: 22px;
    font-weight: bold;
    padding: 15px;
    color: #26A9E0;
}

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

.page-index__game-title a:hover {
    color: #FFFFFF;
}

.page-index__game-description {
    font-size: 15px;
    color: #cccccc;
    padding: 0 15px 15px;
}

.page-index__cta-buttons--center {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

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

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

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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;
}

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

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

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

.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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
    color: #26A9E0;
    transform: rotate(45deg);
}

.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: #ffffff;
    color: #555555;
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #fcfcfc;
    border-radius: 0 0 5px 5px;
}

/* Brand Section */
.page-index__brand-section {
    background-color: #26A9E0; /* Primary color background */
    color: #ffffff; /* White text for primary background */
    padding: 80px 0;
}

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

.page-index__brand-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__brand-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-index__brand-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

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

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

/* Blog Section */
.page-index__blog-section {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
    padding: 80px 0;
}

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

.page-index__blog-item {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-index__blog-image {
    width: 100%;
    height: 200px; /* Fixed height for blog images */
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

.page-index__blog-content {
    padding: 20px;
}

.page-index__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-index__blog-item-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__blog-item-title a:hover {
    color: #1e87b7;
}