:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --register-login-text-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f9f9f9;
    --border-light: #e0e0e0;
}

.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Body background is white */
}

/* --- 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); /* Ensures content is below fixed header */
    background-color: var(--primary-color); /* A strong background for the hero video */
}

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

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

.page-index__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none; /* Allows click to pass through to the anchor tag */
}

.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-light);
    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); /* A distinct blue for visibility */
    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(--register-color); /* Red for CTA */
    color: var(--register-login-text-color); /* Yellow text for contrast */
    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;
}

.page-index__play-now-button:hover {
    background: #a30707; /* Darken red on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- H1 Title + CTA Section --- */
.page-index__title-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-index__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light); /* Ensure high contrast */
}

.page-index__title-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-light); /* Ensure high contrast */
}

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

.page-index__cta-button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap; /* Prevent text wrapping on buttons by default */
}

.page-index__btn-register {
    background-color: var(--register-color); /* Red */
    color: var(--register-login-text-color); /* Yellow */
}

.page-index__btn-register:hover {
    background-color: #a30707; /* Darken red */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.page-index__btn-login {
    background-color: var(--login-color); /* Red */
    color: var(--register-login-text-color); /* Yellow */
}

.page-index__btn-login:hover {
    background-color: #a30707; /* Darken red */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- Brand Introduction Section --- */
.page-index__brand-section {
    padding: 80px 20px;
    background-color: var(--secondary-color); /* White background */
}

.page-index__brand-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-dark); /* Dark text for light background */
}

.page-index__brand-title {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color); /* Use primary color for main titles */
}

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

.page-index__brand-item {
    background-color: var(--background-light); /* Light grey background for items */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__brand-subtitle {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index__brand-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-index__brand-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- FAQ Section --- */
.page-index__faq-section {
    padding: 80px 20px;
    background-color: var(--background-light); /* Light grey background */
}

.page-index__faq-container {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-dark);
}

.page-index__faq-main-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--secondary-color); /* White background */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

details.page-index__faq-item summary.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-dark); /* Dark text for question */
    font-size: 1.1em;
    font-weight: 600;
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
    display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
    background: var(--background-light);
}

.page-index__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
}

.page-index__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color); /* Primary color for toggle icon */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
    padding: 0 25px 20px;
    background: var(--background-light); /* Light grey for answer background */
    border-radius: 0 0 8px 8px;
    color: var(--text-dark);
}

.page-index__faq-answer p {
    margin: 0;
    padding: 0;
}

/* --- Blog List Section --- */
.page-index__blog-section {
    padding: 80px 20px;
    background-color: var(--primary-color); /* Primary color background */
    color: var(--text-light);
}

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

.page-index__blog-title {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-light);
}

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

.page-index__blog-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on primary background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

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

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

.page-index__blog-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: var(--text-light);
}

.page-index__blog-item-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.4;
}

.page-index__blog-item-excerpt {
    font-size: 0.95em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.page-index__blog-item-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.page-index__blog-cta {
    display: flex;
    justify-content: center;
}

.page-index__btn-secondary {
    background-color: var(--secondary-color); /* White background */
    color: var(--primary-color); /* Primary color text */
    border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}


/* --- General Responsive Styles for Images, Videos, Buttons --- */
.page-index img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-index video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-index {
        font-size: 15px;
        line-height: 1.5;
    }

    /* General sections/containers for mobile padding and overflow */
    .page-index__video-section,
    .page-index__title-section,
    .page-index__brand-section,
    .page-index__faq-section,
    .page-index__blog-section {
        padding: 40px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video Section Mobile */
    .page-index__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-index__video-container,
    .page-index__video-wrapper,
    .page-index__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-index__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain; /* Ensure video fits within bounds */
    }
    .page-index__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
    .page-index__video-cta {
        margin-top: 20px;
        padding: 0 15px; /* Add padding to CTA container */
        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 Title + CTA Section Mobile */
    .page-index__main-title {
        font-size: 2em;
    }
    .page-index__title-description {
        font-size: 1em;
    }
    .page-index__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to CTA container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .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;
    }

    /* Brand Introduction Section Mobile */
    .page-index__brand-title,
    .page-index__faq-main-title,
    .page-index__blog-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-index__brand-content {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-index__brand-item {
        padding: 20px;
    }
    .page-index__brand-subtitle {
        font-size: 1.3em;
    }

    /* FAQ Section Mobile */
    details.page-index__faq-item summary.page-index__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-index__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-index__faq-item .page-index__faq-answer {
        padding: 0 20px 15px;
    }

    /* Blog List Section Mobile */
    .page-index__blog-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-index__blog-item-image {
        height: 180px; /* Adjust height for mobile */
    }
    .page-index__blog-item-title {
        font-size: 1.2em;
    }
    .page-index__blog-item-excerpt {
        font-size: 0.9em;
    }
    .page-index__blog-cta {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-index__btn-secondary {
        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: 1em !important;
    }
}