/* style/download.css */

/* General page styles for .page-download scope */
.page-download {
    color: #ffffff; /* Light text for dark body background #0a0a0a */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

.page-download__section {
    padding: 60px 0;
    text-align: center;
}

.page-download__section-title {
    font-size: 2.8em;
    font-weight: 700;
    color: #26A9E0; /* Brand primary color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-download__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background: #0a0a0a; /* Ensure dark background for hero section */
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    width: 1200px; /* Actual display width in layout */
    height: 675px; /* Actual display height in layout */
}

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

.page-download__main-title {
    /* No fixed font-size for H1. Use font-weight, line-height, max-width */
    font-weight: 800;
    line-height: 1.2;
    color: #26A9E0; /* Brand primary color */
    margin-bottom: 20px;
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
}

.page-download__description {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 40px;
}

/* CTA Buttons */
.page-download__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

.page-download__cta-buttons--center {
    margin-top: 40px;
}

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button itself is responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

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

.page-download__btn-primary:hover {
    background-color: #1a8cc7;
    transform: translateY(-3px);
}

.page-download__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-3px);
}

.page-download__btn-tertiary {
    background-color: #EA7C07; /* Custom color for 'Đăng Ký' */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-download__btn-tertiary:hover {
    background-color: #c46405;
    transform: translateY(-3px);
}

.page-download__btn-full-width {
    width: 100%; /* For download buttons in guide sections */
    margin-top: 20px;
}

/* Why App Section */
.page-download__why-app-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-download__advantage-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for card background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-download__advantage-card p {
    color: #e0e0e0;
}

/* How To Download Section */
.page-download__how-to-download-section {
    background-color: #0a0a0a;
}

.page-download__download-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.page-download__platform-guide {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-download__download-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 25px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

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

.page-download__download-steps li {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #e0e0e0;
    border-left: 3px solid #26A9E0;
}

.page-download__download-steps li strong {
    color: #26A9E0;
}

/* Games Section */
.page-download__games-section {
    background-color: #26A9E0; /* Brand primary color for dark section */
    color: #ffffff; /* White text for primary color background */
}

.page-download__games-section .page-download__section-title {
    color: #ffffff; /* White title for primary color background */
}

.page-download__games-section .page-download__section-description {
    color: #f0f0f0;
}

.page-download__game-showcase-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

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

.page-download__game-item {
    background: rgba(0, 0, 0, 0.3); /* Darker background for game items */
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-download__game-item p {
    color: #f0f0f0;
}

/* Promotions Section */
.page-download__promotions-section {
    background-color: #1a1a1a;
}

.page-download__promotions-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-download__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__promotion-list li {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #e0e0e0;
    border-left: 4px solid #EA7C07; /* Login color for emphasis */
}

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

/* FAQ Section */
.page-download__faq-section {
    background-color: #0a0a0a;
}

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

.page-download__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    margin-left: 15px;
}

.page-download__faq-item[open] .page-download__faq-toggle {
    content: "−"; /* Changed by JS */
}

.page-download__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: #e0e0e0;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Lighter border for answer */
}

/* Conclusion Section */
.page-download__conclusion-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 80px 0;
}

.page-download__conclusion-section .page-download__section-title {
    color: #ffffff;
}

.page-download__conclusion-content .page-download__description {
    color: #f0f0f0;
    font-size: 1.2em;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-download__section-title {
        font-size: 2.2em;
    }
    .page-download__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-download__download-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-download__container {
        padding: 0 15px; /* Add padding for mobile content areas */
    }
    .page-download__hero-section {
        padding-bottom: 40px;
    }
    .page-download__hero-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    .page-download__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-download__description {
        font-size: 1em;
    }
    .page-download__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Ensure button container also has padding */
    }
    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download__btn-tertiary,
    .page-download a[class*="button"],
    .page-download a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-download__section {
        padding: 40px 0;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-download__advantages-grid,
    .page-download__game-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__platform-guide {
        padding: 20px;
    }
    .page-download__platform-title {
        font-size: 1.5em;
    }
    .page-download__download-image,
    .page-download__game-showcase-image,
    .page-download__promotions-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-download__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-download__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    .page-download__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .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;
    }
}

/* Ensure images meet minimum size requirements */
.page-download img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Specific overrides for small icon sizes if they were somehow generated, though forbidden */
/* This is a safeguard; AI must not generate small icons */
.page-download img[width="32"], .page-download img[height="32"],
.page-download img[width="40"], .page-download img[height="40"],
.page-download img[width="48"], .page-download img[height="48"],
.page-download img[width="60"], .page-download img[height="60"],
.page-download img[width="64"], .page-download img[height="64"],
.page-download img[width="80"], .page-download img[height="80"],
.page-download img[width="100"], .page-download img[height="100"] {
    min-width: 200px !important;
    min-height: 200px !important;
    width: auto !important; /* Allow auto scaling up */
    height: auto !important;
}