/* style/download.css */
/* Body background is assumed to be dark (e.g., #08160F from custom palette) */
/* Therefore, text colors will be light for contrast */

.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
}

.page-download__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-download__hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.page-download__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-download__description {
    font-size: 1.2rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure responsiveness */
}

.page-download__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow */
    border: 2px solid #2E7A4E; /* Border color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1); /* Slight background on hover */
    color: #F2FFF6; /* Text Main */
    border-color: #57E38D; /* Glow */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-download__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    min-width: 200px;
}

.page-download__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-download__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #11A84E, #22C768);
    border-radius: 2px;
}

.page-download__text-block {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Why App Section */
.page-download__why-app-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-download__feature-card {
    background-color: #11271B; /* Card BG */
    border-radius: 15px;
    padding: 30px;
    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-download__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__feature-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-download__feature-description {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
}

/* How To Download Section */
.page-download__how-to-download-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

.page-download__download-steps {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-download__platform-guide {
    flex: 1;
    min-width: 350px;
    background-color: #11271B; /* Card BG */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__platform-title {
    font-size: 1.8rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 30px;
    text-align: center;
}

.page-download__step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: left;
    width: 100%;
}

.page-download__step-list li {
    background-color: rgba(17, 168, 78, 0.1); /* Subtle green background */
    border-left: 4px solid #11A84E;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1rem;
    color: #F2FFF6; /* Text Main */
}

.page-download__step-list li strong {
    color: #F2C14E; /* Gold */
    display: block;
    margin-bottom: 5px;
}

.page-download__qr-code-wrapper {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-download__qr-code {
    display: block;
    width: 200px;
    height: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 15px auto;
    border: 5px solid #F2FFF6;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-download__qr-text {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95rem;
}

.page-download__btn-download {
    margin-top: auto; /* Push button to bottom */
}

/* Games Section */
.page-download__games-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-download__game-card {
    background-color: #11271B; /* Card BG */
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__game-title {
    font-size: 1.6rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-download__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-download__game-description {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-download__btn-link {
    background-color: transparent;
    color: #57E38D; /* Glow */
    border: 1px solid #2E7A4E; /* Border color */
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto; /* Push button to bottom */
}

.page-download__btn-link:hover {
    background-color: #11A84E;
    color: #F2FFF6;
    border-color: #11A84E;
}

/* Security Section */
.page-download__security-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

.page-download__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.page-download__security-text {
    flex: 1;
    min-width: 300px;
}

.page-download__security-text .page-download__text-block {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-download__security-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-download__security-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 1rem;
}

.page-download__security-list li strong {
    color: #F2FFF6; /* Text Main */
}

.page-download__security-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #57E38D; /* Glow */
    font-size: 1.2em;
    line-height: 1;
}

.page-download__security-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-download__security-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border color */
}

/* Promotions Section */
.page-download__promotions-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-download__promo-item {
    background-color: #11271B; /* Card BG */
    border-radius: 15px;
    padding: 30px;
    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-download__promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__promo-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-download__promo-description {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
}

.page-download__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-download__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
    list-style: none; /* Hide default marker for details */
}

.page-download__faq-item[open] .page-download__faq-question {
    background-color: #0A4B2C; /* Deep Green */
    border-bottom-color: #2E7A4E; /* Border color */
}

.page-download__faq-question::-webkit-details-marker {
    display: none;
}

.page-download__faq-qtext {
    flex-grow: 1;
}

.page-download__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #57E38D; /* Glow */
    margin-left: 20px;
    transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
    padding: 15px 25px 25px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

.page-download__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-download__final-cta-section {
    padding: 80px 0;
    background: linear-gradient(90deg, #11A84E, #22C768);
    text-align: center;
}

.page-download__final-cta-section .page-download__section-title {
    color: #F2FFF6; /* Text Main */
}

.page-download__final-cta-section .page-download__description,
.page-download__final-cta-section .page-download__text-block {
    color: #F2FFF6; /* Text Main */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-download__hero-content {
        padding: 0 40px;
    }
    .page-download__download-steps {
        flex-direction: column;
        align-items: center;
    }
    .page-download__platform-guide {
        width: 100%;
        max-width: 600px;
    }
    .page-download__security-content {
        flex-direction: column;
    }
    .page-download__security-image-wrapper {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-download__container {
        padding: 0 15px;
    }
    .page-download__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-download__hero-content {
        padding: 0 15px;
    }
    .page-download__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .page-download__description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__btn-large {
        padding: 15px 25px;
        font-size: 1.1rem;
    }

    .page-download__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-download__text-block {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-download__why-app-section,
    .page-download__how-to-download-section,
    .page-download__games-section,
    .page-download__security-section,
    .page-download__promotions-section,
    .page-download__faq-section,
    .page-download__final-cta-section {
        padding: 50px 0;
    }

    .page-download__features-grid,
    .page-download__game-types,
    .page-download__promo-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-download__platform-guide {
        padding: 30px 20px;
    }

    .page-download__platform-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .page-download__step-list li {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .page-download__game-title,
    .page-download__promo-title {
        font-size: 1.3rem;
    }

    .page-download__game-image {
        height: 180px;
    }

    .page-download__faq-list {
        margin-top: 30px;
    }
    .page-download__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-download__faq-toggle {
        font-size: 1.3rem;
    }
    .page-download__faq-answer {
        padding: 10px 20px 20px 20px;
        font-size: 0.9rem;
    }

    /* Image responsiveness */
    .page-download img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-download__hero-image-wrapper,
    .page-download__qr-code-wrapper,
    .page-download__security-image-wrapper,
    .page-download__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-download__game-image,
    .page-download__qr-code,
    .page-download__security-image {
        border-radius: 8px;
    }

    /* Ensure containers for images/buttons are responsive */
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__cta-buttons,
    .page-download__button-group,
    .page-download__btn-container,
    .page-download__hero-content,
    .page-download__why-app-section .page-download__container,
    .page-download__how-to-download-section .page-download__container,
    .page-download__games-section .page-download__container,
    .page-download__security-section .page-download__container,
    .page-download__promotions-section .page-download__container,
    .page-download__faq-section .page-download__container,
    .page-download__final-cta-section .page-download__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-download__hero-section {
        padding-top: 10px !important;
    }
}