:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --register-login-font-color: #FFFF00;
    --body-bg-color: #1a1a2e; /* From shared.css */
    --text-on-dark-bg: #ffffff;
    --text-on-light-bg: #333333;
    --header-offset: 120px; /* Default value, will be overridden by shared.css */
}

/* Base styles for the page content area */
.page-index {
    background-color: var(--body-bg-color); /* Inherit from shared.css body background */
    color: var(--text-on-dark-bg); /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Space above footer */
}

/* General container for content sections */
.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* --- 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); /* Fixed header offset */
    background-color: var(--body-bg-color);
}

.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 on parent <a> */
}

.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.4);
    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: var(--text-on-dark-bg);
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    background: rgba(1, 116, 57, 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;
}

.page-index__play-now-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-on-dark-bg);
    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;
    min-width: 180px; /* Ensure button is not too small */
}

.page-index__play-now-button:hover {
    background: #00562c; /* Manually darkened primary color */
    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 (H1 Title + CTA Buttons) --- */
.page-index__hero-section {
    background-color: var(--body-bg-color); /* Ensure consistent background */
    padding: 80px 20px;
    text-align: center;
    color: var(--text-on-dark-bg);
}

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

.page-index__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-on-dark-bg);
    line-height: 1.2;
}

.page-index__hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

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

.page-index__cta-button {
    display: inline-block;
    padding: 15px 35px;
    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;
    min-width: 180px;
}

.page-index__btn-register {
    background: var(--register-color);
    color: var(--register-login-font-color);
}

.page-index__btn-register:hover {
    background: #a30707; /* Manually darkened */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-login {
    background: var(--login-color); /* Same as register for consistency */
    color: var(--register-login-font-color);
}

.page-index__btn-login:hover {
    background: #a30707; /* Manually darkened */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-index__faq-area {
    background-color: var(--body-bg-color); /* Consistent background */
    padding: 60px 20px;
    color: var(--text-on-dark-bg);
}

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

.page-index__faq-main-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-on-dark-bg);
}

.page-index__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-index__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible on dark bg */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-on-dark-bg);
}

.page-index__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-index__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-on-dark-bg);
}

.page-index__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color); /* Use primary color for toggle */
    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: 30px;
    height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate to form 'x' or use '-' */
}

.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: rgba(255, 255, 255, 0.03); /* Lighter than question area */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

/* --- Brand Introduction Section --- */
.page-index__brand-section {
    background-color: var(--primary-color); /* Use primary color for this section */
    padding: 60px 20px;
    color: var(--text-on-dark-bg);
    text-align: center;
}

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

.page-index__brand-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--text-on-dark-bg);
}

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

.page-index__brand-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on primary bg */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-index__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-index__brand-item-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-on-dark-bg);
}

.page-index__brand-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Blog List Section --- */
.page-index__blog-section {
    background-color: var(--body-bg-color); /* Consistent body background */
    padding: 60px 20px;
    color: var(--text-on-dark-bg);
}

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

.page-index__blog-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-on-dark-bg);
}

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

.page-index__blog-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    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 20px rgba(0, 0, 0, 0.2);
}

.page-index__blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-index__blog-item-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-index__blog-item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-index__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-on-dark-bg);
}

.page-index__blog-item-excerpt {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    flex-grow: 1; /* Push date to bottom */
}

.page-index__blog-item-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    align-self: flex-end; /* Align date to bottom right */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: 42px;
    }
    .page-index__hero-description {
        font-size: 17px;
    }
    .page-index__faq-main-title,
    .page-index__brand-title,
    .page-index__blog-title {
        font-size: 32px;
    }
    .page-index__faq-question h3 {
        font-size: 17px;
    }
    .page-index__brand-item-title {
        font-size: 22px;
    }
    .page-index__blog-item-title {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    /* General mobile adaptations */
    .page-index {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-index__container,
    .page-index__hero-section,
    .page-index__faq-area,
    .page-index__brand-section,
    .page-index__blog-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 40px;
        padding-bottom: 40px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Fixed header offset for mobile */
    .page-index__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-index__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    /* Video specific mobile adaptations */
    .page-index__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-index__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 4px;
        overflow: hidden !important;
    }
    
    .page-index__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
        object-fit: contain; /* Ensure video is fully visible */
    }

    .page-index__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }

    .page-index__video-cta {
        margin-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-index__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 30px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* H1 and Description */
    .page-index__main-title {
        font-size: 32px;
    }
    .page-index__hero-description {
        font-size: 16px;
    }

    /* CTA Buttons */
    .page-index__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-index__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 25px !important;
        font-size: 16px !important;
    }

    /* FAQ Section */
    .page-index__faq-main-title {
        font-size: 28px;
    }
    .page-index__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-index__faq-question h3 {
        font-size: 15px;
        width: calc(100% - 40px);
    }
    .page-index__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-index__faq-answer {
        padding: 0 15px;
    }
    .page-index__faq-item.active .page-index__faq-answer {
        padding: 15px !important;
    }

    /* Brand Section */
    .page-index__brand-title {
        font-size: 28px;
    }
    .page-index__brand-grid {
        grid-template-columns: 1fr; /* Stack brand items vertically */
    }
    .page-index__brand-item {
        padding: 25px;
    }
    .page-index__brand-image {
        max-width: 180px;
        min-height: 180px;
        min-width: 180px;
    }
    .page-index__brand-item-title {
        font-size: 20px;
    }

    /* Blog Section */
    .page-index__blog-title {
        font-size: 28px;
    }
    .page-index__blog-list {
        grid-template-columns: 1fr; /* Stack blog items vertically */
    }
    .page-index__blog-item-image {
        height: 180px;
        min-height: 180px;
        min-width: 200px;
    }
    .page-index__blog-item-title {
        font-size: 18px;
    }
    .page-index__blog-item-excerpt {
        font-size: 14px;
    }

    /* Ensure all images are responsive */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-index__main-title {
        font-size: 28px;
    }
    .page-index__hero-description {
        font-size: 15px;
    }
    .page-index__play-now-button {
        font-size: 15px !important;
        padding: 10px 25px !important;
    }
    .page-index__cta-button {
        font-size: 15px !important;
        padding: 10px 25px !important;
    }
    .page-index__faq-main-title,
    .page-index__brand-title,
    .page-index__blog-title {
        font-size: 24px;
    }
    .page-index__faq-question h3 {
        font-size: 14px;
    }
    .page-index__brand-item-title {
        font-size: 18px;
    }
    .page-index__blog-item-title {
        font-size: 16px;
    }
}