/* style/index.css */

/* --- General Page Styles --- */
.page-index {
    /* Body background is #0a0a0a (dark), so default text color is light */
    color: #ffffff;
    background-color: #0a0a0a; /* Ensure consistency with body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-index__section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-index h1,
.page-index h2,
.page-index h3 {
    color: #ffffff; /* Ensure headings are visible on dark background */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-index h1 {
    font-size: 48px;
    font-weight: bold;
}

.page-index h2 {
    font-size: 36px;
    font-weight: bold;
}

.page-index h3 {
    font-size: 24px;
    font-weight: 600;
}

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

.page-index__dark-section {
    background-color: #1a1a1a; /* Slightly lighter than body for contrast */
    color: #ffffff;
}

/* --- CTA Button Base Styles --- */
.page-index__cta-button,
.page-index__faq-app-download-button,
.page-index__view-all-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
}

.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    overflow: hidden; /* Prevent overflow */
    box-sizing: border-box;
}

/* Specific button colors based on requirements */
.page-index__cta-button--register {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
}

.page-index__cta-button--register:hover {
    background-color: #a00606;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--promotions {
    background-color: #017439; /* Primary color */
    color: #ffffff; /* Auxiliary color */
}

.page-index__cta-button--promotions:hover {
    background-color: #005628;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__faq-app-download-button,
.page-index__view-all-button {
    background-color: #017439;
    color: #ffffff;
    margin-top: 20px;
}

.page-index__faq-app-download-button:hover,
.page-index__view-all-button:hover {
    background-color: #005628;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}


/* --- 1. Video Area 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-color: #0a0a0a; /* Match body background */
}

.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;
    border-radius: 8px;
    overflow: hidden;
}

.page-index__video-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px 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; /* Prevent video controls from interfering with 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.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.7);
    padding: 12px 25px;
    background: rgba(1, 116, 57, 0.8); /* Using primary color */
    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: 18px 50px;
    background: #C30808; /* Login/Register button color */
    color: #FFFF00; /* Login/Register font color */
    text-decoration: none;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
}

.page-index__play-now-button:hover {
    background: #a00606;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

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


/* --- 2. H1 Title + Activity Promotion Buttons Section --- */
.page-index__hero-section {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); /* Subtle dark gradient */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-index__hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-index__main-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: #ffffff; /* Ensure high contrast */
}

.page-index__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
    color: #f0f0f0;
}


/* --- 3. FAQ Section Styles --- */
.page-index__faq-section {
    padding: 80px 20px;
    background-color: #1a1a1a; /* Dark background for FAQ */
    color: #ffffff;
}

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

.page-index__faq-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
}

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #2a2a2a; /* Slightly lighter than section for items */
    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: 20px 25px;
    background: #3a3a3a; /* Darker background for question header */
    border: 1px solid #4a4a4a;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-index__faq-question:hover {
    background: #4a4a4a;
    border-color: #5a5a5a;
}

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

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

.page-index__faq-item.active .page-index__faq-toggle {
    color: #C30808; /* Accent color when active */
    transform: rotate(45deg); /* Example: rotate for 'x' effect */
}

.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 25px;
    opacity: 0;
    background-color: #2a2a2a; /* Same as item background */
    color: #e0e0e0;
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #4a4a4a;
}

.page-index__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #e0e0e0;
}

.page-index__faq-app-download-button {
    margin-top: 20px;
    background-color: #C30808;
    color: #FFFF00;
}

.page-index__faq-app-download-button:hover {
    background-color: #a00606;
}


/* --- 4. Brand Introduction Section --- */
.page-index__brand-section {
    padding: 80px 20px;
    background-color: #0a0a0a; /* Match body background */
    color: #ffffff;
}

.page-index__brand-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__brand-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
}

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

.page-index__brand-item {
    background-color: #1a1a1a; /* Darker background for brand items */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-index__brand-item-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #017439; /* Primary color for sub-titles */
}

.page-index__brand-item p {
    font-size: 16px;
    color: #e0e0e0;
    flex-grow: 1; /* Make paragraphs take available space */
}

.page-index__brand-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}


/* --- 5. Blog List Section --- */
.page-index__blog-section {
    padding: 80px 20px;
    background-color: #1a1a1a; /* Dark background for blog section */
    color: #ffffff;
}

.page-index__blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__blog-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
}

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

.page-index__blog-item {
    background-color: #2a2a2a; /* Darker background for blog items */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index__blog-item-image {
    width: 100%;
    height: 200px; /* Fixed height for blog thumbnails */
    object-fit: cover;
    display: block;
}

.page-index__blog-link {
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-index__blog-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffffff; /* White for title on dark background */
    flex-grow: 1;
}

.page-index__blog-item-excerpt {
    font-size: 15px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.page-index__blog-item-date {
    font-size: 14px;
    color: #999999;
    display: block;
    margin-top: auto; /* Push date to bottom */
}

.page-index__view-all-blogs {
    text-align: center;
    margin-top: 50px;
}


/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-index {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-index__section,
    .page-index__hero-section,
    .page-index__faq-section,
    .page-index__brand-section,
    .page-index__blog-section {
        padding: 40px 15px !important; /* Adjust padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-index__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

    .page-index__container,
    .page-index__video-container,
    .page-index__hero-container,
    .page-index__faq-container,
    .page-index__brand-container,
    .page-index__blog-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }

    .page-index h1 {
        font-size: 32px;
    }

    .page-index h2 {
        font-size: 28px;
    }

    .page-index h3 {
        font-size: 20px;
    }

    .page-index p {
        font-size: 16px;
    }

    /* --- Images Responsive --- */
    .page-index img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* --- Videos Responsive --- */
    .page-index video,
    .page-index__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important; /* Ensure video fits without cropping */
        box-sizing: border-box !important;
    }

    .page-index__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- Buttons Responsive --- */
    .page-index__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px !important; /* Add horizontal padding to container */
    }

    .page-index__cta-button,
    .page-index__play-now-button,
    .page-index__faq-app-download-button,
    .page-index__view-all-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 !important; /* Reset margin for stacking */
    }

    .page-index__video-cta {
        padding: 0 15px !important;
    }

    .page-index__play-now-button {
        font-size: 18px !important;
        padding: 15px 30px !important;
    }

    /* FAQ specific mobile styles */
    .page-index__faq-question {
        padding: 15px 20px !important;
    }

    .page-index__faq-question h3 {
        font-size: 16px !important;
    }

    .page-index__faq-toggle {
        font-size: 24px !important;
        width: 26px !important;
        height: 26px !important;
    }

    .page-index__faq-answer {
        padding: 0 20px !important;
    }

    .page-index__faq-item.active .page-index__faq-answer {
        padding: 15px 20px !important;
    }

    /* Brand section specific mobile styles */
    .page-index__brand-content {
        grid-template-columns: 1fr !important; /* Stack brand items */
    }

    .page-index__brand-item {
        padding: 20px !important;
    }

    .page-index__brand-item-title {
        font-size: 20px !important;
    }

    /* Blog section specific mobile styles */
    .page-index__blog-list {
        grid-template-columns: 1fr !important; /* Stack blog items */
    }

    .page-index__blog-item {
        margin-bottom: 20px !important;
    }

    .page-index__blog-item-image {
        height: 180px !important;
    }

    .page-index__blog-item-title {
        font-size: 18px !important;
    }
}