/* style/download.css */

:root {
    --primary-color: #0A2A5C; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --accent-color: #E53935; /* Bright Red for CTA */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212; /* Body background */
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

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

/* Fixed Nav Bar Spacing */
.page-download__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

/* Common styles for sections */
.page-download__section-title {
    font-size: 3em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-download__section-description {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

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

/* Hero Section */
.page-download__hero-section {
    position: relative;
    background-image: linear-gradient(rgba(10, 42, 92, 0.9), rgba(10, 42, 92, 0.9)), url('[GALLERY:bg:ax88 vip,download hero,abstract pattern]');
    background-size: cover;
    background-position: center;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.page-download__hero-section .page-download__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-download__main-title {
    font-size: 3.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-download__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.page-download__cta-button:hover {
    background: #c22f2f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-download__hero-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Why Download Section */
.page-download__why-download-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-download__why-download-section .page-download__section-title {
    color: var(--primary-color);
}

.page-download__why-download-section .page-download__section-description {
    color: var(--text-dark);
}

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

.page-download__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-download__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-download__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.page-download__feature-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-download__feature-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* Guide Section */
.page-download__guide-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-download__guide-section .page-download__section-title {
    color: var(--secondary-color);
}

.page-download__guide-section .page-download__section-description {
    color: rgba(255, 255, 255, 0.9);
}

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

.page-download__guide-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-light);
}

.page-download__guide-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.page-download__guide-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__guide-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.page-download__guide-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 30px;
}

.page-download__guide-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.page-download__btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.page-download__btn-primary:hover {
    background: #c22f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-download__qr-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-download__qr-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__qr-description {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.page-download__qr-code-image {
    width: 250px;
    height: 250px;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-download__benefits-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-download__benefits-section .page-download__section-title {
    color: var(--primary-color);
}

.page-download__benefits-section .page-download__section-description {
    color: var(--text-dark);
}

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

.page-download__benefit-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

.page-download__benefit-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-download__benefit-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* Games Section */
.page-download__games-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-download__games-section .page-download__section-title {
    color: var(--secondary-color);
}

.page-download__games-section .page-download__section-description {
    color: rgba(255, 255, 255, 0.9);
}

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

.page-download__game-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    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.3);
}

.page-download__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__game-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 20px 15px 10px 15px;
}

.page-download__game-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 15px 25px 15px;
}

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

/* Install Login Section */
.page-download__install-login-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-download__install-login-section .page-download__section-title {
    color: var(--primary-color);
}

.page-download__install-login-section .page-download__section-description {
    color: var(--text-dark);
}

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

.page-download__step-item {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-download__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-download__step-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
}

.page-download__step-title {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-download__step-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-download__faq-section .page-download__section-title {
    color: var(--secondary-color);
}

.page-download__faq-section .page-download__section-description {
    color: rgba(255, 255, 255, 0.9);
}

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

.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: rgba(255, 255, 255, 0.8);
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 2000px !important; /* Sufficiently large value */
    padding: 20px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0 0 5px 5px;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-download__faq-question:hover {
    background: #0D3A77;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-download__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--secondary-color);
    pointer-events: none;
}

.page-download__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-download__faq-item.active .page-download__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg); /* Change to X or just change text content */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__main-title {
        font-size: 3em;
    }
    .page-download__section-title {
        font-size: 2.5em;
    }
    .page-download__platform-guide {
        grid-template-columns: 1fr;
    }
    .page-download__guide-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 50px;
    }
    .page-download__main-title {
        font-size: 2.5em;
    }
    .page-download__hero-description {
        font-size: 1.1em;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-download__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 30px;
        font-size: 1.1em;
        white-space: normal;
        word-wrap: break-word;
        box-sizing: border-box;
    }
    .page-download__hero-image {
        max-width: 100%;
        height: auto;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__section-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-download__why-download-section, 
    .page-download__guide-section, 
    .page-download__benefits-section, 
    .page-download__games-section, 
    .page-download__install-login-section, 
    .page-download__faq-section {
        padding: 60px 0;
    }
    .page-download__container {
        padding: 0 15px;
    }
    .page-download__feature-item, .page-download__benefit-card, .page-download__game-card, .page-download__step-item {
        padding: 25px;
    }
    .page-download__feature-title, .page-download__benefit-title, .page-download__game-title, .page-download__step-title {
        font-size: 1.5em;
    }
    .page-download__guide-card {
        padding: 25px;
    }
    .page-download__guide-title {
        font-size: 1.8em;
    }
    .page-download__guide-image {
        max-width: 250px;
    }
    .page-download__guide-list li {
        font-size: 0.95em;
    }
    .page-download__btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 25px;
        font-size: 1em;
        white-space: normal;
        word-wrap: break-word;
        box-sizing: border-box;
    }
    .page-download__qr-section {
        padding: 30px 15px;
    }
    .page-download__qr-title {
        font-size: 2em;
    }
    .page-download__qr-code-image {
        width: 200px;
        height: 200px;
    }
    .page-download__faq-question {
        padding: 15px;
    }
    .page-download__faq-question h3 {
        font-size: 1.1em;
    }
    .page-download__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-download__faq-item.active .page-download__faq-answer {
        padding: 15px !important;
    }
    /* Ensure all images are responsive */
    .page-download img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-download__why-download-section,
    .page-download__guide-section,
    .page-download__benefits-section,
    .page-download__games-section,
    .page-download__install-login-section,
    .page-download__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}