/* style/download.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --card-bg: #11271B;
    --background-color: #08160F;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-download {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-color); /* Body background handled by shared.css, this is for main content area */
}

.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 20px 60px 20px; /* Small top padding, more bottom padding */
    background-color: var(--deep-green);
    overflow: hidden;
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
    padding: 0 15px;
}

.page-download__main-title {
    color: var(--gold-color);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
    text-transform: uppercase;
    /* font-size handled by inherited styles or clamp if necessary */
}

.page-download__hero-description {
    color: var(--text-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-download__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--glow-color);
}

.page-download__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(87, 227, 141, 0.5);
}

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

.page-download__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--background-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(87, 227, 141, 0.5);
}

.page-download__qr-codes {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-download__qr-item {
    text-align: center;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-download__qr-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 10px;
    padding: 5px;
}

.page-download__qr-label {
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1em;
}

.page-download__section-title {
    color: var(--gold-color);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
    text-transform: uppercase;
}

.page-download__section-description {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.05em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-download__why-download-section,
.page-download__how-to-download-section,
.page-download__app-features-section,
.page-download__security-section,
.page-download__promotions-section,
.page-download__faq-section,
.page-download__responsible-gaming-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-download__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main);
    border-radius: 15px;
    margin-bottom: 40px;
    padding: 60px 40px;
}

.page-download__dark-section .page-download__section-title {
    color: var(--glow-color);
}

.page-download__dark-section .page-download__section-description {
    color: var(--text-secondary);
}

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

.page-download__feature-item {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-download__feature-heading {
    color: var(--gold-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(87, 227, 141, 0.3);
}

.page-download__feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-download__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    box-sizing: border-box;
}

.page-download__download-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.page-download__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
    cursor: pointer;
}

.page-download__video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    pointer-events: none;
    transition: background 0.3s ease;
}

.page-download__video-link-overlay:hover .page-download__video-play-button {
    background: rgba(0, 0, 0, 0.7);
}

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

.page-download__guide-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-download__guide-title {
    color: var(--gold-color);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.page-download__guide-steps {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-download__guide-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-download__guide-steps strong {
    color: var(--text-main);
}

.page-download__app-features-section {
    background-color: var(--background-color);
}

.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-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__feature-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: var(--deep-green);
    padding: 10px;
}

.page-download__feature-card .page-download__feature-heading {
    color: var(--glow-color);
    font-size: 1.3em;
}

.page-download__feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-download__security-section {
    background-color: var(--background-color);
}

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

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

.page-download__security-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.page-download__security-list li {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.page-download__security-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--glow-color);
}

.page-download__security-list strong {
    color: var(--text-main);
}

.page-download__security-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-download__security-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-download__promotions-section {
    background-color: var(--background-color);
}

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

.page-download__promo-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-download__promo-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-download__promo-title {
    color: var(--gold-color);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.page-download__promo-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.page-download__faq-section {
    background-color: var(--background-color);
}

.page-download__faq-list {
    margin-top: 40px;
}

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

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1em;
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-download__faq-question::-webkit-details-marker {
    display: none;
}

.page-download__faq-question:hover {
    background-color: var(--primary-color);
}

.page-download__faq-qtext {
    flex-grow: 1;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-download__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-download__faq-item[open] .page-download__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 15px;
}

.page-download__responsible-gaming-section {
    background-color: var(--deep-green);
    color: var(--text-main);
    text-align: center;
    border-radius: 15px;
    margin-bottom: 40px;
    padding: 60px 40px;
}

.page-download__responsible-gaming-section .page-download__section-title {
    color: var(--gold-color);
}

.page-download__responsible-gaming-section .page-download__section-description,
.page-download__responsible-gaming-section p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-download__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-download__hero-image {
        border-radius: 10px;
    }
    .page-download__main-title {
        font-size: 2.2em;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 80%;
        max-width: 300px;
    }
    .page-download__qr-codes {
        gap: 20px;
    }
    .page-download__qr-item {
        padding: 15px;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__section-description {
        font-size: 0.95em;
    }
    .page-download__feature-item,
    .page-download__guide-card,
    .page-download__promo-card,
    .page-download__security-text,
    .page-download__security-image-wrapper {
        min-width: unset;
    }
    .page-download__security-content {
        flex-direction: column;
    }
    .page-download__security-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding: 10px 15px 40px 15px;
    }
    .page-download__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-download__hero-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .page-download__cta-buttons {
        gap: 10px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-download__qr-codes {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-download__qr-image {
        width: 150px;
        height: 150px;
    }
    .page-download__qr-item {
        width: 80%;
        max-width: 250px;
    }
    .page-download__qr-label {
        font-size: 0.9em;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .page-download__why-download-section,
    .page-download__how-to-download-section,
    .page-download__app-features-section,
    .page-download__security-section,
    .page-download__promotions-section,
    .page-download__faq-section,
    .page-download__responsible-gaming-section {
        padding: 40px 15px;
    }
    .page-download__dark-section {
        padding: 40px 20px;
    }
    .page-download__feature-list,
    .page-download__platform-guide,
    .page-download__features-grid,
    .page-download__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__feature-item,
    .page-download__guide-card,
    .page-download__promo-card,
    .page-download__faq-item {
        padding: 20px;
    }
    .page-download__guide-steps {
        padding-left: 20px;
    }
    .page-download__download-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-download__video-link-overlay {
        width: 100% !important;
    }
    .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__why-download-section, .page-download__how-to-download-section, .page-download__app-features-section, .page-download__security-section, .page-download__promotions-section, .page-download__faq-section, .page-download__responsible-gaming-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__video-section {
        padding-top: 10px !important;
    }
    .page-download__video-play-button {
        font-size: 3em;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .page-download__main-title {
        font-size: 1.5em;
    }
    .page-download__section-title {
        font-size: 1.5em;
    }
    .page-download__qr-item {
        width: 100%;
    }
    .page-download__qr-image {
        width: 120px;
        height: 120px;
    }
    .page-download__qr-label {
        font-size: 0.9em;
    }
    .page-download__feature-heading,
    .page-download__promo-title,
    .page-download__guide-title {
        font-size: 1.2em;
    }
    .page-download__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-download__faq-toggle {
        font-size: 1.2em;
    }
    .page-download__faq-answer {
        padding: 0 20px 15px 20px;
    }
}