/* style/download.css */

/* --- General Styles for page-download scope --- */
.page-download {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-download__section-title {
    font-size: 2.5em; /* Using em to scale relative to base font-size */
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-download__text-block {
    margin-bottom: 20px;
    text-align: justify;
    color: #F2FFF6; /* Text Main */
}

.page-download__text-link {
    color: #2AD16F; /* Button primary start color, good contrast */
    text-decoration: underline;
}

/* --- Hero Section --- */
.page-download__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image then text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
    background-color: #08160F; /* Ensure background matches */
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-download__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-download__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-download__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-download__btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-download__btn--primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-download__btn--secondary {
    background-color: transparent;
    color: #2AD16F;
    border: 2px solid #2AD16F;
}

.page-download__btn--secondary:hover {
    background-color: #2AD16F;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* --- Introduction Section --- */
.page-download__introduction-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-download__feature-item {
    text-align: center;
    padding: 20px;
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
}

.page-download__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download__feature-title {
    font-size: 1.4em;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
}

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

/* --- Guide Section --- */
.page-download__guide-section {
    padding: 60px 0;
    background-color: #11271B; /* Card BG - dark section */
    color: #F2FFF6; /* Text Main */
}

.page-download__guide-tabs {
    margin-top: 40px;
}

.page-download__tab-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.page-download__tab-button {
    background-color: #0A4B2C; /* Deep Green */
    color: #A7D9B8; /* Text Secondary */
    padding: 12px 25px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
    max-width: 300px;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent button text from wrapping on larger screens */
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-download__tab-button--active,
.page-download__tab-button:hover {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #FFFFFF;
    border-color: #2AD16F;
}

.page-download__tab-content {
    display: none;
    padding: 30px;
    background-color: #08160F; /* Background */
    border-radius: 10px;
    border: 1px solid #2E7A4E; /* Border */
}

.page-download__tab-content--active {
    display: block;
}

.page-download__tab-title {
    font-size: 1.8em;
    color: #F2C14E; /* Gold */
    margin-bottom: 25px;
    text-align: center;
}

.page-download__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-download__guide-item {
    margin-bottom: 30px;
    padding-left: 20px;
    position: relative;
}

.page-download__guide-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: #2AD16F;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-download__guide-step-title {
    font-size: 1.3em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    padding-left: 20px; /* Offset for counter */
}

.page-download__guide-step-description {
    color: #A7D9B8; /* Text Secondary */
    padding-left: 20px; /* Offset for counter */
}

.page-download__guide-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    border: 1px solid #2E7A4E; /* Border */
}

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

.page-download__note-text {
    font-style: italic;
    text-align: center;
    color: #A7D9B8; /* Text Secondary */
    margin-top: 40px;
    padding: 0 20px;
}

/* --- Features Section --- */
.page-download__features-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-download__card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #F2FFF6; /* Text Main */
}

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

.page-download__card-title {
    font-size: 1.5em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__card-description {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-download__game-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.page-download__game-list li {
    margin-bottom: 8px;
    color: #A7D9B8; /* Text Secondary */
}

.page-download__game-list li a {
    color: #2AD16F; /* Button primary start color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-download__game-list li a:hover {
    color: #F2C14E; /* Gold */
    text-decoration: underline;
}

/* --- Why Choose Us Section --- */
.page-download__why-choose-us-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green - light-bg equivalent in this palette */
    color: #F2FFF6; /* Text Main */
}

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

.page-download__reason-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__reason-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download__reason-title {
    font-size: 1.4em;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-download__reason-description {
    color: #A7D9B8; /* Text Secondary */
}

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

.page-download__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
    list-style: none; /* For details/summary */
}

.page-download__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-download__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

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

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #F2C14E; /* Gold */
}

.page-download__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

.page-download__faq-item[open] .page-download__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
}

/* --- Conclusion Section --- */
.page-download__conclusion-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
    text-align: center;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-download__description {
        font-size: 1.1em;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-download__btn {
        width: 80%; /* Make buttons wider on smaller screens */
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 15px;
    }
    .page-download__container {
        padding: 0 15px;
    }
    .page-download__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-download__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-download__description {
        font-size: 1em;
    }
    .page-download__hero-section {
        padding-bottom: 40px;
    }
    .page-download__cta-buttons {
        gap: 15px;
    }
    .page-download__btn {
        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__tab-header {
        flex-direction: column;
        gap: 10px;
    }
    .page-download__tab-button {
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .page-download__guide-step-title,
    .page-download__guide-step-description {
        padding-left: 0;
    }
    .page-download__guide-item::before {
        position: static;
        margin-right: 10px;
        display: inline-flex;
        vertical-align: middle;
    }
    .page-download__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-download__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Mobile 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__feature-item,
    .page-download__card,
    .page-download__reason-item,
    .page-download__tab-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-download__feature-icon,
    .page-download__reason-icon {
        width: 60px;
        height: 60px;
    }
    .page-download__card-image {
        height: 180px;
    }

    /* Ensure video container responsiveness */
    .page-download__video-section,
    .page-download__video-container,
    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-download__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-download__section-title {
        font-size: 1.5em;
    }
    .page-download__main-title {
        font-size: clamp(1.4em, 8vw, 2em);
    }
    .page-download__tab-button {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .page-download__faq-question {
        font-size: 1em;
    }
}

/* Ensure no filter on images */
.page-download img {
    filter: none;
}