/* style/index.css */

/* General page styling */
.page-index {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

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

/* Video Section - Topmost */
.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: #1a1a1a; /* Ensure dark background for this section */
    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__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 interfering with link click */
}

.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, 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: #017439; /* 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: #005f2f; /* Darker shade of 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);
}

/* Module 1: H1 Title + CTA Buttons */
.page-index__title-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

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

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

.page-index__title-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 */
}

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

.page-index__cta-button--register {
    background: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom font color for Register */
}

.page-index__cta-button--register:hover {
    background: #a10707; /* Darker shade */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-index__cta-button--explore:hover {
    background: #005f2f; /* Darker shade */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Module 3: Brand Introduction */
.page-index__brand-section {
    padding: 80px 20px;
    background-color: #242424; /* Slightly lighter dark 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: 40px;
    color: #ffffff;
}

.page-index__brand-intro-text {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #f0f0f0;
}

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

.page-index__brand-item {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

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

.page-index__faq-list {
    margin-top: 30px;
}

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #2b2b2b; /* Darker background for question */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-index__faq-question:hover {
    background: #3a3a3a;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-index__faq-question-title {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 17px;
    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 icon */
    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: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.page-index__faq-item.active .page-index__faq-toggle {
    color: #ffffff;
    background-color: #017439; /* Primary color when active */
    transform: rotate(45deg); /* Rotate for minus sign 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: #333333; /* Darker background for answer */
    border-radius: 0 0 8px 8px;
    color: #e0e0e0;
}

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

.page-index__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Module 4: Blog List Section */
.page-index__blog-section {
    padding: 80px 20px;
    background-color: #242424; /* Slightly lighter dark background */
    color: #ffffff;
}

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

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

.page-index__blog-intro-text {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #f0f0f0;
}

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

.page-index__blog-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.page-index__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #017439; /* Primary color for blog titles */
    padding: 15px 20px 10px;
    margin: 0;
}

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

.page-index__blog-item-date {
    display: block;
    font-size: 13px;
    color: #a0a0a0;
    padding: 0 20px 15px;
}

.page-index__blog-cta {
    text-align: center;
}

/* Common button styling for blog section CTA */
.page-index__blog-cta .page-index__cta-button {
    background: #017439; /* Primary color */
    color: #ffffff;
}

.page-index__blog-cta .page-index__cta-button:hover {
    background: #005f2f; /* Darker shade */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: 40px;
    }
    .page-index__brand-title,
    .page-index__faq-main-title,
    .page-index__blog-title {
        font-size: 32px;
    }
    .page-index__brand-item-title {
        font-size: 22px;
    }
}

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

    /* Video Section 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;
    }
    
    .page-index__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-index__video-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden !important;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .page-index__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
        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-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;
    }

    /* Module 1: H1 Title + CTA Buttons Mobile */
    .page-index__title-section {
        padding: 60px 15px;
    }

    .page-index__main-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .page-index__title-description {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .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: 0 15px; /* Add padding to container */
    }

    .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;
        font-size: 16px;
    }

    /* Module 3: Brand Introduction Mobile */
    .page-index__brand-section {
        padding: 60px 15px;
    }

    .page-index__brand-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-index__brand-intro-text {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .page-index__brand-content {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-index__brand-item {
        padding: 25px;
    }

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

    .page-index__brand-item p {
        font-size: 15px;
    }

    /* Module 2: FAQ Section Mobile */
    .page-index__faq-section {
        padding: 60px 15px;
    }

    .page-index__faq-main-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-index__faq-question {
        padding: 15px 20px;
    }
    
    .page-index__faq-question-title {
        font-size: 15px;
    }

    .page-index__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

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

    /* Module 4: Blog List Section Mobile */
    .page-index__blog-section {
        padding: 60px 15px;
    }

    .page-index__blog-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .page-index__blog-intro-text {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .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: 18px;
        padding: 12px 15px 8px;
    }

    .page-index__blog-item-excerpt {
        font-size: 14px;
        padding: 0 15px;
    }

    .page-index__blog-item-date {
        font-size: 12px;
        padding: 0 15px 12px;
    }
    
    .page-index__blog-cta {
        padding: 0 15px;
    }
}

/* Ensure all images are responsive and not smaller than 200x200px in content area */
.page-index img:not(.shared-header img, .shared-footer img) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}
.page-index__blog-item-image {
    min-width: 200px;
    min-height: 150px; /* Allow slightly smaller display height for blog cards, but source is large */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}


/* Ensure no CSS filter on images */
.page-index img {
    filter: none !important;
}

/* Global mobile responsiveness for images and videos */
@media (max-width: 768px) {
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Allow smaller display if needed, but source is large */
        min-height: unset !important; /* Allow smaller display if needed, but source is large */
    }
}