/* style/index.css */

/* Custom properties for colors */
:root {
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg: #11271B;
    --page-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* General page-index styles */
.page-index {
    background-color: var(--page-bg); /* Body background is dark, so text is light */
    color: var(--text-main); /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Section styling */
.page-index__video-section,
.page-index__title-section,
.page-index__faq-section,
.page-index__brand-section,
.page-index__blog-section {
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

/* Specific padding for video section (topmost, after header offset) */
.page-index__video-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
}

/* Headings */
.page-index h1,
.page-index h2,
.page-index h3 {
    color: var(--gold-color); /* Gold color for headings */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-index__main-title {
    color: var(--gold-color);
    margin-bottom: 25px;
    /* No fixed font-size for H1, rely on font-weight, line-height, etc. */
    font-weight: 700;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons (CTA) */
.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index__cta-button,
.page-index__play-now-button,
.page-index__view-all-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: var(--text-main);
    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.3);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-index__cta-button:hover,
.page-index__play-now-button:hover,
.page-index__view-all-button:hover {
    background: linear-gradient(180deg, var(--button-gradient-end) 0%, var(--button-gradient-start) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

/* Video Section */
.page-index__video-container {
    position: relative;
    width: 100%; /* CRUCIAL: Must have width: 100% for desktop */
    max-width: 1200px; /* Desktop max width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Crucial for desktop width */
}

.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: 8px;
    overflow: hidden;
}

.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: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.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 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.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-main);
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 12px 25px;
    background: rgba(var(--gold-color-rgb, 242, 193, 78), 0.8); /* Using gold with opacity */
    border-radius: 5px;
    white-space: nowrap;
}

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

/* FAQ Section */
.page-index__faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index__faq-main-title {
    color: var(--gold-color);
    margin-bottom: 40px;
    font-size: 32px;
}

details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg); /* Dark card background */
    color: var(--text-main); /* Light text */
}

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-main); /* Light text */
}

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 darker on hover */
}

.page-index__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main); /* Light text */
}

.page-index__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color); /* Gold toggle icon */
    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); /* Darker background for answer */
    border-radius: 0 0 8px 8px;
    color: var(--text-secondary); /* Secondary light text */
    text-align: left;
}

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