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

/* Base styles for the page content, ensuring contrast with body background */
.page-index {
    background-color: var(--bg-color); /* Body background is dark, so text should be light */
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Card styling */
.page-index__card {
    background-color: var(--card-bg);
    color: var(--text-main);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Headings colors */
.page-index h1,
.page-index h2,
.page-index h3,
.page-index h4,
.page-index h5,
.page-index h6 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-index p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-index a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index a:hover {
    color: var(--glow-color);
}

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

/* --- 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, body handles header offset */
    box-sizing: border-box;
}

.page-index__video-container {
    position: relative;
    width: 100%; /* Must be 100% for desktop */
    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;
    border-radius: 10px;
    overflow: hidden;
}

.page-index__video-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px 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: 10px;
    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: 10px;
    object-fit: cover;
    pointer-events: none; /* Prevents video controls from interfering with 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.4);
    border-radius: 10px;
    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: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 12px 25px;
    background: rgba(42, 209, 111, 0.8); /* Using a lighter green from button gradient */
    border-radius: 8px;
    white-space: nowrap;
}

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

.page-index__play-now-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-index__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Module 1: H1 Title + Promotion Buttons --- */
.page-index__title-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-color);
    box-sizing: border-box;
}

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

.page-index__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive H1 font size */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.2;
}

.page-index__title-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
}

.page-index__cta-button--primary {
    background: var(--button-gradient);
    color: var(--text-main);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-index__cta-button--secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(34, 199, 104, 0.1); /* Lighter secondary for hover */
}

/* --- General Content Section --- */
.page-index__content-section {
    padding: 80px 20px;
    background-color: var(--bg-color);
    box-sizing: border-box;
}

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

.page-index__content-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
}

.page-index__content-text {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: justify;
    margin-bottom: 30px;
}

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

.page-index__feature-item {
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-index__feature-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-index__feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-index__feature-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--button-gradient);
    color: var(--text-main);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-index__feature-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

.page-index__cta-buttons--centered {
    margin-top: 50px;
}

/* --- Module 2: FAQ Section --- */
.page-index__faq-section {
    padding: 80px 20px;
    background-color: var(--bg-color);
    box-sizing: border-box;
}

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

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

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

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: var(--deep-green-color); /* Slightly lighter dark green */
}

.page-index__faq-qtext {
    flex: 1;
    font-size: 18px;
    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(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
    padding: 0 25px 25px;
    background: var(--deep-green-color);
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
}

/* --- Module 3: Brand Introduction --- */
.page-index__brand-section {
    padding: 80px 20px;
    background-color: var(--bg-color);
    box-sizing: border-box;
}

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

.page-index__brand-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 40px;
}

.page-index__brand-intro-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index__brand-item {
    text-align: left;
    display: flex;
    flex-direction: column;
}

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

.page-index__brand-item-description {
    font-size: 16px;
    color: var(--text-secondary);
    flex-grow: 1;
}

.page-index__brand-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Module 4: Blog List Display --- */
.page-index__blog-section {
    padding: 80px 20px;
    background-color: var(--bg-color);
    box-sizing: border-box;
}

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

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

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

.page-index__blog-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%; /* Ensure cards have equal height */
}

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

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

.page-index__blog-item-image {
    width: 100%;
    height: 200px; /* Fixed height for blog images */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid var(--border-color);
}

.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: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-index__blog-item-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-index__blog-item-date {
    font-size: 14px;
    color: var(--gold-color);
    text-align: right;
}

.page-index__view-all-button-container {
    text-align: center;
}

.page-index__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--button-gradient);
    color: var(--text-main);
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-index__view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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