/* style/download.css */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--black-color); /* Inherited from shared.css, assuming dark */
}

/* Color contrast enforcement */
.page-download__dark-bg {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
}

.page-download__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* For responsiveness */
}

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

.page-download__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.page-download__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-download__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-download__download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Important for responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-download__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-download__btn-primary:hover {
    background-color: #1a8cc2;
    border-color: #1a8cc2;
}

.page-download__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a8cc2;
    border-color: #1a8cc2;
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.1; /* Subtle background image */
    z-index: 0;
}

.page-download__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 1920px; /* Use large dimensions for image requests */
    max-height: 1080px;
}

/* General Section Styles */
.page-download__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section background */
}

.page-download__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: inherit;
}

/* Features Section */
.page-download__features-section,
.page-download__games-section,
.page-download__how-to-download-section,
.page-download__video-section,
.page-download__promotions-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-section {
    padding: 80px 0;
}

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

.page-download__card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333; /* Dark text for light card background */
}

.page-download__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-download__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-download__card-title a:hover {
    text-decoration: underline;
}

.page-download__card-text {
    font-size: 1em;
    color: #555555;
}

/* Games Section (Card specific for dark background) */
.page-download__games-section .page-download__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__games-section .page-download__card-title {
    color: #ffffff;
}

.page-download__games-section .page-download__card-title a {
    color: #ffffff;
}

.page-download__games-section .page-download__card-text {
    color: #f0f0f0;
}

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

.page-download__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 600px; /* Request large image, display smaller */
    max-height: 400px;
}

/* How to Download Section */
.page-download__platform-guide {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-download__guide-block {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-download__guide-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #26A9E0;
    text-align: center;
}

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

.page-download__qr-code-wrapper img {
    width: 250px;
    height: 250px;
    border: 5px solid #26A9E0;
    border-radius: 10px;
    max-width: 400px;
    max-height: 400px;
    display: block; /* Ensure it centers */
    margin: 0 auto 10px auto;
}

.page-download__qr-text {
    font-size: 1.1em;
    color: #555555;
    margin-top: 10px;
}

.page-download__btn-download {
    margin: 0 auto 20px auto;
    display: block;
    max-width: 250px; /* Limit width for download buttons */
    background-color: #EA7C07; /* Login color for download buttons */
    border-color: #EA7C07;
}

.page-download__btn-download:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

.page-download__steps-list {
    list-style-type: decimal;
    padding-left: 20px;
    text-align: left;
    margin-bottom: 20px;
}

.page-download__steps-list li {
    margin-bottom: 10px;
    font-size: 1em;
    color: #444444;
}

.page-download__steps-list strong {
    color: #26A9E0;
}

.page-download__note-text {
    font-style: italic;
    color: #777777;
    text-align: center;
    font-size: 0.9em;
}

/* Video Section */
.page-download__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto 0 auto;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-download__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure video does not overflow */
    display: block;
}

/* Promotions Section */
.page-download__promo-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-download__promo-list li {
    background-color: #f0f8ff;
    border-left: 5px solid #26A9E0;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    color: #333333;
}

.page-download__promo-list strong {
    color: #26A9E0;
}

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

/* Security Section */
.page-download__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-download__security-item {
    text-align: center;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 10px;
    color: #ffffff;
}

.page-download__security-item img {
    
    
    margin-bottom: 20px;
    max-width: 200px; /* Enforce min size of 200px for images. This is for content, not icons. */
    max-height: 200px;
}

.page-download__item-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-download__item-title a {
    color: #ffffff;
    text-decoration: none;
}

.page-download__item-title a:hover {
    text-decoration: underline;
}

.page-download__item-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-download__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

.page-download__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: #f0f0f0;
}

.page-download__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px; /* Expanded padding */
}

.page-download__faq-answer p {
    margin: 0;
    color: #555555;
    font-size: 1em;
}

.page-download__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-download__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-download__cta-section {
    text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.8em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__hero-section {
        padding-top: var(--header-offset, 120px); /* Ensure offset is maintained */
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        flex-direction: column;
    }
    .page-download__hero-content {
        order: 2;
    }
}