/* style/index.css */

:root {
    --page-index-primary-color: #1A1A2E;
    --page-index-accent-color: #E9B824;
    --page-index-text-light: #E5E5D1; /* For dark backgrounds */
    --page-index-text-dark: #1A1A2E; /* For light backgrounds */
    --page-index-background-dark: #1A1A2E;
    --page-index-background-light: #F8F8F8;
    --page-index-golden-gradient: linear-gradient(90deg, #E9B824, #FFD700);
    --page-index-button-hover-darken: #C89F1D;
}

.page-index {
    font-family: 'Arial', sans-serif;
    color: var(--page-index-text-light);
    background-color: var(--page-index-background-dark);
    line-height: 1.6;
}

.page-index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-index-section:nth-of-type(even) {
    background-color: rgba(233, 184, 36, 0.05); /* Light tint of accent color */
}

.page-index-section-title {
    font-size: 2.8em;
    color: var(--page-index-accent-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-section-description {
    font-size: 1.1em;
    color: var(--page-index-text-light);
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* Hero Section */
.page-index-hero-section {
    background: linear-gradient(135deg, var(--page-index-primary-color) 0%, #3a3a5e 100%);
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.page-index-hero-section .page-index-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
    position: relative;
}

.page-index-hero-title {
    font-size: 3.8em;
    color: var(--page-index-accent-color);
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-index-hero-description {
    font-size: 1.3em;
    color: var(--page-index-text-light);
    max-width: 700px;
    margin-bottom: 40px;
}

.page-index-hero-actions {
    display: flex;
    gap: 20px;
}

.page-index-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-index-btn-primary {
    background: var(--page-index-accent-color);
    color: var(--page-index-primary-color);
    box-shadow: 0 4px 15px rgba(233, 184, 36, 0.4);
}

.page-index-btn-primary:hover {
    background-color: var(--page-index-button-hover-darken);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 184, 36, 0.6);
}

.page-index-btn-secondary {
    background: none;
    color: var(--page-index-accent-color);
    border: 2px solid var(--page-index-accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-btn-secondary:hover {
    background-color: var(--page-index-accent-color);
    color: var(--page-index-primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 184, 36, 0.6);
}

.page-index-hero-image-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.page-index-hero-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    filter: brightness(1.2);
}

/* General Content Grid */
.page-index-content-grid, .page-index-features-grid, .page-index-promo-grid, .page-index-steps-grid, .page-index-detail-list {
    display: grid;
    gap: 40px;
    margin-top: 40px;
}

.page-index-content-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index-grid-item, .page-index-feature-item, .page-index-promo-item, .page-index-step-item, .page-index-detail-item {
    background-color: #2A2A4A;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-grid-item:hover, .page-index-feature-item:hover, .page-index-promo-item:hover, .page-index-step-item:hover, .page-index-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index-grid-image, .page-index-feature-icon, .page-index-promo-image, .page-index-step-icon {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(233, 184, 36, 0.5));
}

.page-index-feature-icon, .page-index-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
}

.page-index-grid-title, .page-index-feature-title, .page-index-promo-title, .page-index-step-title {
    font-size: 1.8em;
    color: var(--page-index-accent-color);
    margin-bottom: 15px;
}

.page-index-grid-text, .page-index-feature-text, .page-index-promo-text, .page-index-step-text {
    font-size: 1em;
    color: var(--page-index-text-light);
}

/* Why Choose Section */
.page-index-why-choose {
    background-color: var(--page-index-background-dark);
}

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

/* Promotions Section */
.page-index-promotions {
    background-color: rgba(233, 184, 36, 0.05);
}

.page-index-promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index-cta-center {
    margin-top: 60px;
    text-align: center;
}

/* How to Join Section */
.page-index-how-to-join {
    background-color: var(--page-index-background-dark);
}

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

.page-index-btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Winners Inspiration Section */
.page-index-winners-inspiration {
    background: linear-gradient(135deg, #1A1A2E 0%, #3a3a5e 100%);
}

/* Detail Pages List */
.page-index-detail-pages {
    background-color: rgba(233, 184, 36, 0.05);
}

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

.page-index-detail-item {
    text-align: left;
}

.page-index-detail-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

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

.page-index-detail-title a:hover {
    color: var(--page-index-button-hover-darken);
    text-decoration: underline;
}

.page-index-detail-description {
    font-size: 0.95em;
    color: var(--page-index-text-light);
    margin-bottom: 20px;
}

.page-index-btn-link {
    background: none;
    border: 1px solid var(--page-index-accent-color);
    color: var(--page-index-accent-color);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-index-btn-link:hover {
    background-color: var(--page-index-accent-color);
    color: var(--page-index-primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-hero-section {
        flex-direction: column;
        text-align: center;
        padding: 80px 0;
        min-height: auto;
    }
    .page-index-hero-section .page-index-container {
        align-items: center;
    }
    .page-index-hero-title {
        font-size: 3em;
    }
    .page-index-hero-description {
        font-size: 1.1em;
        max-width: 90%;
    }
    .page-index-hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-hero-image-wrapper {
        position: relative;
        width: 80%;
        margin-top: 40px;
    }
    .page-index-section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-index-hero-title {
        font-size: 2.5em;
    }
    .page-index-hero-description {
        font-size: 1em;
    }
    .page-index-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index-section {
        padding: 60px 0;
    }
    .page-index-section-title {
        font-size: 2em;
    }
    .page-index-section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-index-grid-item, .page-index-feature-item, .page-index-promo-item, .page-index-step-item, .page-index-detail-item {
        padding: 25px;
    }
    .page-index-grid-title, .page-index-feature-title, .page-index-promo-title, .page-index-step-title {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .page-index-hero-title {
        font-size: 2em;
    }
    .page-index-hero-description {
        font-size: 0.9em;
    }
    .page-index-btn {
        width: 100%;
        text-align: center;
    }
    .page-index-section-title {
        font-size: 1.8em;
    }
    .page-index-grid-title, .page-index-feature-title, .page-index-promo-title, .page-index-step-title {
        font-size: 1.3em;
    }
    .page-index-container {
        padding: 0 15px;
    }
}