:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --section-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body background is dark from shared.css */
.page-index {
    background-color: var(--section-bg); /* Using the custom background color for the main content area */
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* General padding at the bottom of the page */
}

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

/* General section background for alternating sections */
.page-index__section-bg {
    background-color: var(--section-bg);
}

/* --- 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(--deep-green); /* A slightly different dark green for the video section */
}

.page-index__video-container {
    position: relative;
    width: 100%; /* Important for desktop flex alignment */
    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.4);
}

.page-index__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.page-index__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    object-fit: cover;
    pointer-events: none; /* Allows click events to pass through to the 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: 12px;
    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-main);
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    padding: 12px 25px;
    background: var(--button-gradient);
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
}

.page-index__play-now-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 10px;
    font-size: 20px;
    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;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-index__play-now-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Inverted gradient for hover */
    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 10px rgba(0, 0, 0, 0.2);
}

/* --- H1 Title Section --- */
.page-index__title-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--section-bg);
    border-bottom: 1px solid var(--divider-color);
}

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

.page-index__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp for responsive H1 */
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-index__title-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-index__cta-button--primary {
    background: var(--button-gradient);
    color: var(--text-main);
}

.page-index__cta-button--primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Brand Section --- */
.page-index__brand-section {
    padding: 80px 0;
    background-color: var(--section-bg);
    border-bottom: 1px solid var(--divider-color);
}

.page-index__brand-title {
    font-size: 2.5rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.page-index__brand-intro-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    line-height: 1.8;
}

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

.page-index__brand-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-index__brand-item-title {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index__brand-item-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- FAQ Section --- */
.page-index__faq-section {
    padding: 80px 0;
    background-color: var(--section-bg);
    border-bottom: 1px solid var(--divider-color);
}

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

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

details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

details.page-index__faq-item summary.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
}

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-color: var(--deep-green);
}

.page-index__faq-qtext {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-index__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 32px;
    text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
    padding: 0 25px 25px;
    background-color: var(--deep-green);
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Blog Section --- */
.page-index__blog-section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.page-index__blog-title {
    font-size: 2.5rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

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

.page-index__blog-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.page-index__blog-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-index__blog-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-index__blog-item:hover .page-index__blog-item-image {
    transform: scale(1.05);
}

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

.page-index__blog-link {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s ease;
}

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

.page-index__blog-item-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-index__blog-item-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1; /* Pushes date to bottom */
}

.page-index__blog-item-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.page-index__blog-view-all {
    margin-top: 60px;
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-index__title-description {
        font-size: 1.1rem;
    }

    .page-index__brand-title,
    .page-index__faq-main-title,
    .page-index__blog-title {
        font-size: 2.2rem;
    }

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

@media (max-width: 768px) {
    .page-index__content-area {
        padding: 30px 15px;
    }

    /* Video Section Mobile */
    .page-index__video-section {
        padding-top: 10px !important; /* body handles header offset */
        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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px;
        overflow: hidden !important;
    }
    
    .page-index__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        object-fit: contain; /* Ensure video fits within container */
    }
    
    .page-index__video-click-hint {
        font-size: 16px !important;
        padding: 10px 20px !important;
    }

    .page-index__video-cta {
        margin-top: 25px;
        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: 15px 30px !important;
        font-size: 18px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-index__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

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

    .page-index__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .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: 1rem;
    }

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

    .page-index__brand-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .page-index__brand-intro-text {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .page-index__brand-features {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

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

    .page-index__brand-item-title {
        font-size: 1.5rem;
    }

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

    .page-index__faq-main-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    details.page-index__faq-item {
        margin-bottom: 10px;
        border-radius: 8px;
    }

    details.page-index__faq-item summary.page-index__faq-question {
        padding: 15px 20px;
    }

    .page-index__faq-qtext {
        font-size: 1.05rem;
    }

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

    details.page-index__faq-item .page-index__faq-answer {
        padding: 0 20px 20px;
    }

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

    .page-index__blog-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .page-index__blog-list {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-index__blog-item {
        border-radius: 8px;
    }

    .page-index__blog-image-wrapper {
        height: 180px;
    }

    .page-index__blog-content-wrapper {
        padding: 20px;
    }

    .page-index__blog-item-title {
        font-size: 1.2rem;
    }

    .page-index__blog-item-excerpt {
        font-size: 0.9rem;
    }

    .page-index__blog-view-all {
        margin-top: 40px;
        padding: 0 15px;
    }
}

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

/* Ensure all video elements are responsive */
.page-index video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile specific overrides for all images and videos */
@media (max-width: 768px) {
    .page-index img,
    .page-index video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-index__video-section,
    .page-index__video-container,
    .page-index__video-wrapper,
    .page-index__title-section,
    .page-index__brand-section,
    .page-index__faq-section,
    .page-index__blog-section,
    .page-index__content-area,
    .page-index__brand-container,
    .page-index__faq-container,
    .page-index__blog-container,
    .page-index__blog-list,
    .page-index__blog-item,
    .page-index__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Ensure no horizontal scroll */
    }
    
    .page-index__cta-buttons {
        flex-wrap: wrap !important; /* Allow buttons to wrap */
        gap: 10px; /* Spacing for wrapped buttons */
    }
    
    .page-index__cta-button {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}