:root {
    --page-download-primary: #113B7A;
    --page-download-secondary: #1D5FD1;
    --page-download-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --page-download-card-bg: #10233F;
    --page-download-text-main: #F3F8FF;
    --page-download-text-secondary: #AFC4E8;
    --page-download-border: #244D84;
    --page-download-glow: #4FA8FF;
    --page-download-gold: #F2C14E;
    --page-download-divider: #1B3357;
    --page-download-deep-navy: #08162B; /* This is the body background from shared.css */
}

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

/* General container for content width */
.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-download__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-download-text-main);
    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: var(--page-download-gold);
    border-radius: 2px;
}

/* Text blocks */
.page-download__text-block {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--page-download-text-secondary);
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: var(--page-download-primary); /* Fallback/overlay color */
    color: var(--page-download-text-main);
}

.page-download__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height of the image container */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-download__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover for desktop */
}

.page-download__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-download__main-title {
    font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-download-text-main);
}

.page-download__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--page-download-text-secondary);
}

/* CTA Buttons */
.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 600px; /* Limit overall width for aesthetics */
    margin: 0 auto;
}

.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: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.3;
}

.page-download__btn-primary {
    background: var(--page-download-button-gradient);
    color: var(--page-download-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary {
    background: transparent;
    color: var(--page-download-gold);
    border: 2px solid var(--page-download-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__btn-secondary:hover {
    background: var(--page-download-gold);
    color: var(--page-download-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Introduction Section - Light Background */
.page-download__introduction-section {
    background-color: #ffffff; /* Light background */
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

.page-download__introduction-section .page-download__section-title,
.page-download__introduction-section .page-download__text-block,
.page-download__introduction-section .page-download__card-title,
.page-download__introduction-section .page-download__feature-card p {
    color: #333333; /* Ensure dark text on light background */
}

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

.page-download__feature-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
}

.page-download__feature-card img {
    width: 100%;
    height: 267px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-download__feature-card .page-download__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 0 20px;
    color: var(--page-download-primary); /* Use primary color for titles */
}

.page-download__feature-card p {
    font-size: 16px;
    padding: 0 20px;
    color: #555555;
}

/* How To Download Section - Dark Background */
.page-download__how-to-download-section {
    background: var(--page-download-card-bg); /* Dark background */
    padding: 80px 0;
    color: var(--page-download-text-main);
}

.page-download__download-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-download__platform-guide {
    background: var(--page-download-primary);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__platform-guide .page-download__platform-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--page-download-gold);
}

.page-download__platform-guide img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

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

.page-download__step-list li {
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--page-download-text-secondary);
    counter-increment: step-counter;
}

.page-download__step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--page-download-gold);
    color: var(--page-download-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.page-download__platform-guide .page-download__btn-primary {
    margin-top: auto; /* Push button to bottom */
    width: auto;
    max-width: 300px;
}

/* Games Section - Light Background */
.page-download__games-section {
    background-color: #ffffff; /* Light background */
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

.page-download__games-section .page-download__section-title,
.page-download__games-section .page-download__text-block,
.page-download__games-section .page-download__card-title,
.page-download__games-section .page-download__game-card p {
    color: #333333; /* Ensure dark text on light background */
}

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

.page-download__game-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
}

.page-download__game-card img {
    width: 100%;
    height: 267px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-download__game-card .page-download__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 0 20px;
    color: var(--page-download-primary);
}

.page-download__game-card p {
    font-size: 15px;
    padding: 0 20px;
    color: #555555;
}

/* Security Section - Dark Background */
.page-download__security-section {
    background: var(--page-download-deep-navy); /* Dark background */
    padding: 80px 0;
    color: var(--page-download-text-main);
}

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

.page-download__security-item {
    background: var(--page-download-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.page-download__security-item .page-download__security-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--page-download-gold);
}

.page-download__security-item p {
    font-size: 16px;
    color: var(--page-download-text-secondary);
}

/* FAQ Section - Light Background */
.page-download__faq-section {
    background-color: #ffffff; /* Light background */
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

.page-download__faq-section .page-download__section-title {
    color: #333333; /* Ensure dark text on light background */
}

details.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-download__faq-item summary.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
    display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
    background: #f5f5f5;
}
.page-download__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333; /* Dark text for light background FAQ */
}
.page-download__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555; /* Dark text for FAQ answer */
}

/* CTA Bottom Section - Dark Background */
.page-download__cta-bottom-section {
    background: var(--page-download-primary); /* Dark background */
    padding: 80px 0;
    text-align: center;
    color: var(--page-download-text-main);
}

/* All images general responsive style */
.page-download img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
    .page-download__section-title {
        font-size: 32px;
    }
    .page-download__hero-description {
        font-size: 18px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        min-width: 180px;
    }
    .page-download__features-grid,
    .page-download__games-grid,
    .page-download__security-details {
        gap: 25px;
    }
    .page-download__feature-card .page-download__card-title,
    .page-download__game-card .page-download__card-title,
    .page-download__security-item .page-download__security-title {
        font-size: 22px;
    }
    .page-download__platform-guide .page-download__platform-title {
        font-size: 24px;
    }
    .page-download__container {
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    /* General container */
    .page-download__container {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-download__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .page-download__hero-image img {
        object-fit: contain !important; /* Mobile: contain, not cover */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-download__main-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 15px;
    }
    .page-download__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-download__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100%; /* Ensure full width on mobile */
        padding: 0 15px;
        box-sizing: border-box;
        flex-wrap: wrap !important;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 16px;
        padding: 12px 20px;
        min-width: unset; /* Remove min-width for full flexibility */
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Section Titles */
    .page-download__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-download__text-block {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    /* Introduction Section */
    .page-download__introduction-section,
    .page-download__how-to-download-section,
    .page-download__games-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__cta-bottom-section {
        padding: 40px 0;
    }

    /* Features Grid */
    .page-download__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__feature-card img {
        height: 200px;
    }
    .page-download__feature-card .page-download__card-title {
        font-size: 20px;
    }
    .page-download__feature-card p {
        font-size: 15px;
    }

    /* How to Download Section */
    .page-download__download-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-download__platform-guide {
        padding: 20px;
    }
    .page-download__platform-guide .page-download__platform-title {
        font-size: 22px;
    }
    .page-download__platform-guide img {
        max-width: 100%;
        min-width: 200px;
        height: auto;
    }
    .page-download__step-list {
        max-width: 100%;
    }
    .page-download__step-list li {
        font-size: 15px;
    }
    .page-download__platform-guide .page-download__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Games Section */
    .page-download__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__game-card img {
        height: 200px;
    }
    .page-download__game-card .page-download__card-title {
        font-size: 20px;
    }
    .page-download__game-card p {
        font-size: 15px;
    }

    /* Security Section */
    .page-download__security-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__security-item {
        padding: 25px;
    }
    .page-download__security-item .page-download__security-title {
        font-size: 20px;
    }
    .page-download__security-item p {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-download__faq-item summary.page-download__faq-question { padding: 15px; }
    .page-download__faq-qtext { font-size: 15px; }
    details.page-download__faq-item .page-download__faq-answer { padding: 0 15px 15px; }

    /* Ensure all images and content sections are responsive */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__hero-section,
    .page-download__introduction-section,
    .page-download__how-to-download-section,
    .page-download__games-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}