/* style/index.css */
:root {
    --primary-color: #11A84E; /* Main color: Green */
    --secondary-color: #22C768; /* Auxiliary color: Lighter Green */
    --card-bg: #11271B; /* Card Background */
    --background-dark: #08160F; /* Overall Background */
    --text-main: #F2FFF6; /* Main Text Color */
    --text-secondary: #A7D9B8; /* Secondary Text Color */
    --border-color: #2E7A4E; /* Border Color */
    --glow-color: #57E38D; /* Glow Color */
    --gold-color: #F2C14E; /* Gold Color */
    --divider-color: #1E3A2A; /* Divider Color */
    --deep-green-color: #0A4B2C; /* Deep Green */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-index {
    background-color: var(--background-dark);
    color: var(--text-main); /* Main text color for the page */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

/* General section styling */
.page-index__section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-index__title {
    font-size: 38px;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

/* CTA Button Styling */
.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    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;
    margin: 10px;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-index__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

/* 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 */
    background-color: var(--deep-green-color); /* Slightly different background for visual separation */
}

.page-index__video-container {
    position: relative;
    width: 100%; /* Crucial for desktop width */
    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.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.5);
    border: 2px solid var(--glow-color); /* Add a border for emphasis */
}

.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 blocking click event on the link */
}

.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: rgba(87, 227, 141, 0.8); /* Glow color with transparency */
    border-radius: 50px;
    white-space: nowrap;
    border: 1px solid var(--text-main);
}

.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: 18px 50px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-index__play-now-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index__play-now-button:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* H1 Title Section */
.page-index__title-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--background-dark);
}

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

.page-index__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
    line-height: 1.2;
    font-weight: 800;
}

.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;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
}

/* Brand Section */
.page-index__brand-section {
    padding: 80px 20px;
    background-color: var(--card-bg);
    color: var(--text-main);
    text-align: left;
}

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

.page-index__brand-title {
    font-size: 36px;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-index__brand-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-index__brand-text {
    flex: 2;
    min-width: 300px;
}

.page-index__brand-subtitle {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-index__brand-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-index__brand-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.page-index__brand-text ul li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--glow-color);
}

.page-index__brand-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-index__brand-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-index__brand-cta {
    margin-top: 30px;
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 20px;
    background-color: var(--background-dark);
    color: var(--text-main);
    text-align: center;
}

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

.page-index__faq-title {
    font-size: 36px;
    color: var(--gold-color);
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-index__faq-list {
    text-align: left;
}

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

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, border-color 0.3s ease;
}

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

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

.page-index__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--glow-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

details.page-index__faq-item[open] .page-index__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* Blog Section */
.page-index__blog-section {
    padding: 80px 20px;
    background-color: var(--background-dark);
    color: var(--text-main);
    text-align: center;
}

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

.page-index__blog-title {
    font-size: 36px;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

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

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

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

.page-index__blog-item-image {
    width: 100%;
    height: 200px; /* Fixed height for image consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--divider-color);
}

.page-index__blog-item-content {
    padding: 25px;
    text-align: left;
}

.page-index__blog-item-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-index__blog-item-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-index__blog-item-date {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.page-index__blog-archive-cta {
    margin-top: 40px;
}

.page-index__blog-view-all {
    padding: 12px 30px;
    font-size: 16px;
    background: var(--glow-color); /* Use glow color for blog CTA */
    color: var(--background-dark); /* Dark text on glow background */
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__blog-view-all:hover {
    background: var(--secondary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: clamp(26px, 5vw, 42px);
    }
    .page-index__brand-content {
        flex-direction: column;
    }
    .page-index__brand-text,
    .page-index__brand-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-index__blog-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index__video-section,
    .page-index__title-section,
    .page-index__brand-section,
    .page-index__faq-section,
    .page-index__blog-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-index__video-section {
        padding-top: 10px !important;
    }

    .page-index__video-container,
    .page-index__brand-container,
    .page-index__faq-container,
    .page-index__blog-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0;
        overflow: hidden !important;
    }

    .page-index__video-link,
    .page-index__video-wrapper,
    .page-index__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        border-radius: 8px;
    }
    
    .page-index__video-wrapper {
        padding-bottom: 56.25%;
    }
    
    .page-index__video {
        object-fit: contain;
    }

    .page-index__video-click-hint {
        font-size: 16px;
        padding: 10px 20px;
    }

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

    .page-index__main-title {
        font-size: 30px;
    }

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

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

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

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

    .page-index__brand-text p,
    .page-index__brand-text ul li {
        font-size: 15px;
    }

    .page-index__blog-list {
        grid-template-columns: 1fr;
    }

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

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

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

    /* Images responsive */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index__blog-item-image {
        height: 180px;
    }
}