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

.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, as body is dark */
    background-color: var(--deep-navy); /* Ensure consistency if body bg is not applied via shared */
}

.page-download__section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

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

.page-download__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-download__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.page-download__text-block {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__cta-button,
.page-download__download-button,
.page-download__promo-button,
.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-download__cta-button,
.page-download__download-button,
.page-download__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__cta-button:hover,
.page-download__download-button:hover,
.page-download__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-download__promo-button,
.page-download__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-download__promo-button:hover,
.page-download__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    background-color: var(--deep-navy); /* Ensure consistency */
}

.page-download__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width for flex item */
}

.page-download__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-download__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-download__hero-title {
    font-size: clamp(28px, 4vw, 56px); /* Responsive font size */
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(79, 168, 255, 0.5); /* Glow effect */
}

.page-download__hero-description {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Module 1: Intro Section */
.page-download__intro-section {
    background-color: var(--deep-navy);
}

/* Module 2: Download Guide Section */
.page-download__download-guide-section {
    background-color: var(--card-bg); /* Card BG color for light section */
    color: var(--text-main);
}

.page-download__light-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-download__dark-bg {
    background-color: var(--deep-navy);
    color: var(--text-main);
}

.page-download__guide-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-download__guide-steps {
    flex: 2;
    min-width: 300px;
}

.page-download__step-item {
    background-color: var(--deep-navy); /* Darker background for step item */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.page-download__step-item:hover {
    transform: translateY(-5px);
}

.page-download__step-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-download__step-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: left;
}

.page-download__guide-image {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__guide-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-download__download-buttons {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Module 3: Benefits Section */
.page-download__benefits-section {
    background-color: var(--deep-navy);
}

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

.page-download__benefit-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-download__benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-download__card-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-download__card-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Module 4: Games Section */
.page-download__games-section {
    background-color: var(--deep-navy);
}

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

.page-download__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-download__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-download__image-center {
    text-align: center;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__image-center img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Module 5: Promotions Section */
.page-download__promotions-section {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-download__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-download__promo-item {
    background-color: var(--deep-navy);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.page-download__promo-item:hover {
    transform: translateY(-5px);
}

.page-download__promo-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-download__promo-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-download__button-center {
    text-align: center;
    margin-top: 40px;
}

/* Module 6: Security & Support Section */
.page-download__security-support-section {
    background-color: var(--deep-navy);
}

.page-download__security-support-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-download__security-text {
    flex: 2;
    min-width: 300px;
}

.page-download__security-text .page-download__text-block {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-download__security-image {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__security-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Module 7: FAQ Section */
.page-download__faq-section {
    background-color: var(--card-bg);
    color: var(--text-main);
}

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

details.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--deep-navy);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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;
    color: var(--text-main);
}

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: rgba(var(--primary-color-rgb), 0.2); /* Using RGB for transparency */
}

.page-download__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--gold-color);
}

.page-download__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-download__faq-item .page-download__faq-answer {
    padding: 0 20px 20px;
    background: var(--card-bg);
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Module 8: Disclaimer Section */
.page-download__disclaimer-section {
    background-color: var(--deep-navy);
}

.page-download__disclaimer-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-download__disclaimer-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    color: var(--text-main);
}

.page-download__disclaimer-item:hover {
    transform: translateY(-5px);
}

.page-download__disclaimer-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-download__disclaimer-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* General image styling */
.page-download img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-download__section-title {
        font-size: 32px;
    }
    .page-download__hero-title {
        font-size: clamp(24px, 5vw, 48px);
    }
    .page-download__hero-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-download__section {
        padding: 40px 0;
    }
    .page-download__container {
        padding: 0 15px;
    }
    .page-download__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-download__text-block {
        font-size: 15px;
    }
    .page-download__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__hero-image {
        margin-bottom: 20px;
    }
    .page-download__hero-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 15px;
    }
    .page-download__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-download__cta-button,
    .page-download__download-button,
    .page-download__promo-button,
    .page-download__btn-primary,
    .page-download__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Add margin between stacked buttons */
    }
    .page-download__download-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-download__guide-content,
    .page-download__security-support-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-download__guide-image,
    .page-download__security-image {
        order: -1; /* Image appears first on mobile */
    }
    .page-download__step-item,
    .page-download__benefit-card,
    .page-download__game-card,
    .page-download__promo-item,
    .page-download__disclaimer-item {
        padding: 20px;
    }
    .page-download__step-title,
    .page-download__card-title,
    .page-download__promo-title,
    .page-download__disclaimer-title {
        font-size: 20px;
    }
    .page-download__step-description,
    .page-download__card-description,
    .page-download__promo-description,
    .page-download__disclaimer-description {
        font-size: 15px;
    }
    details.page-download__faq-item summary.page-download__faq-question {
        padding: 15px;
    }
    .page-download__faq-qtext {
        font-size: 16px;
    }
    .page-download__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-download__faq-item .page-download__faq-answer {
        padding: 0 15px 15px;
    }

    /* Mobile image responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__download-buttons,
    .page-download__button-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__hero-section {
        padding-top: 10px !important;
    }
}

/* Ensure all images in content areas are not too small */
.page-download__guide-image img,
.page-download__image-center img,
.page-download__security-image img {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure card images are large enough */
.page-download__benefit-card img,
.page-download__game-card img,
.page-download__promo-item img,
.page-download__disclaimer-item img {
    min-width: 200px;
    min-height: 200px;
}