/* style/index.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #0a0a0a;
    --bg-light: #f9f9f9; /* Light background for sections like FAQ, Blog */
    --login-button-color: #EA7C07;
}

/* Base styles for page content, assuming dark body background */
.page-index {
    color: var(--text-light); /* Default text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark); /* Ensure main content area matches body if not overridden by sections */
}

.page-index__section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light); /* Default for dark sections */
    padding-top: 20px;
}

/* 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: 10px; /* Small top padding, header offset handled by body */
    background-color: var(--bg-dark);
}

.page-index__video-container {
    width: 100%; /* REQUIRED for desktop flex item width */
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.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; /* Prevents video controls from blocking 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.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: 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(38, 169, 224, 0.8); /* Using 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-light);
    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: #1e87b7; /* A slightly darker shade of #26A9E0 */
    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);
}

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

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

.page-index__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Using clamp for H1 font size */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-index__title-description {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.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;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-index__cta-button--primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-index__cta-button--primary:hover {
    background: #1e87b7; /* Darker primary */
    border-color: #1e87b7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
    background: var(--login-button-color); /* Specific color for Login/Secondary */
    color: var(--text-light);
    border: 2px solid var(--login-button-color);
}

.page-index__cta-button--secondary:hover {
    background: #c26700; /* Darker login color */
    border-color: #c26700;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-index__faq-section {
    background-color: var(--bg-light); /* Light background for contrast */
    padding: 80px 20px;
    color: var(--text-dark); /* Dark text for light background */
}

.page-index__faq-section .page-index__section-title {
    color: var(--text-dark); /* Override for light section */
}

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

details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: var(--secondary-color); /* White background for FAQ items */
    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 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-dark);
}
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: #f5f5f5;
}
.page-index__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}
.page-index__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
    background: #fcfcfc;
    border-radius: 0 0 8px 8px;
    color: var(--text-dark);
}
.page-index__faq-answer p {
    margin-bottom: 0;
    font-size: 15px;
}

/* Brand Section */
.page-index__brand-section {
    background-color: var(--primary-color); /* Primary color background */
    padding: 80px 20px;
    color: var(--text-light); /* Light text for primary background */
}

.page-index__brand-section .page-index__section-title {
    color: var(--text-light);
}

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

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

.page-index__brand-item {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.page-index__brand-item:hover {
    transform: translateY(-5px);
}

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

.page-index__brand-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Blog Section */
.page-index__blog-section {
    background-color: var(--bg-light); /* Light background for contrast */
    padding: 80px 20px;
    color: var(--text-dark); /* Dark text for light background */
}

.page-index__blog-section .page-index__section-title {
    color: var(--text-dark);
}

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

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

.page-index__blog-item {
    background: var(--secondary-color); /* White background for blog cards */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    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 6px 15px rgba(0, 0, 0, 0.15);
}

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

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

.page-index__blog-link {
    text-decoration: none;
    color: var(--text-dark);
    display: block; /* Make the whole content clickable */
}

.page-index__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.page-index__blog-link:hover .page-index__blog-item-title {
    color: var(--primary-color);
}

.page-index__blog-item-excerpt {
    font-size: 15px;
    color: #666666;
    margin-bottom: 15px;
    flex-grow: 1;
}

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

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

.page-index__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__view-all-button:hover {
    background: #1e87b7; /* Darker primary */
    transform: translateY(-2px);
}

/* General image responsive styles */
.page-index img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

    /* Video Section Mobile */
    .page-index__video-section {
        padding-top: 10px !important; /* Fixed small top padding */
        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; /* Container padding handled by section */
        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 {
        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; /* Ensure video scales */
        border-radius: 4px;
        object-fit: contain; /* Use contain to ensure full video is visible */
    }

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

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

    /* Title Section Mobile */
    .page-index__title-section {
        padding: 60px 15px;
    }

    .page-index__main-title {
        font-size: 32px; /* Specific size for mobile H1 */
    }

    .page-index__title-description {
        font-size: 16px;
    }

    .page-index__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    details.page-index__faq-item summary.page-index__faq-question {
        padding: 15px;
    }
    .page-index__faq-qtext {
        font-size: 15px;
    }
    .page-index__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-index__faq-item .page-index__faq-answer {
        padding: 0 15px 15px;
    }

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

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

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

    .page-index__blog-item-image {
        height: 180px; /* Adjust height for mobile */
    }

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

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

    .page-index__view-all-button-container {
        margin-top: 30px;
    }
    .page-index__view-all-button {
        padding: 10px 25px;
        font-size: 15px;
    }

    /* General responsive for containers */
    .page-index__title-container,
    .page-index__faq-container,
    .page-index__brand-container,
    .page-index__blog-container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all images are responsive in content areas */
    .page-index__blog-item-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-index__brand-item img { /* If brand items had images */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}