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

.page-download {
    background-color: var(--fly88-background);
    color: var(--fly88-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
    background-color: var(--fly88-deep-green);
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.page-download__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.page-download__main-title {
    color: var(--fly88-text-main);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.page-download__description {
    color: var(--fly88-text-secondary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    max-width: 700px;
}

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.page-download__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-download__btn-primary {
    background: var(--fly88-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-download__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-download__btn-secondary:hover {
    background-color: var(--fly88-primary);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

/* General Section Styling */
.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-download__section-title {
    color: var(--fly88-text-main);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.page-download__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--fly88-button-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-download__text-block {
    color: var(--fly88-text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.page-download__highlight {
    color: var(--fly88-primary);
    font-weight: 600;
}

/* Introduction Section */
.page-download__introduction-section {
    padding: 80px 0;
    background-color: var(--fly88-background);
}

.page-download__introduction-section .page-download__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Download Guide Section */
.page-download__download-guide-section {
    padding: 80px 0;
    background-color: var(--fly88-card-bg);
}

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

.page-download__download-card {
    background-color: var(--fly88-background);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--fly88-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-download__card-title {
    color: var(--fly88-text-main);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.page-download__qr-code-wrapper {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    border: 5px solid var(--fly88-primary);
    border-radius: 8px;
    overflow: hidden;
}

.page-download__qr-code {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

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

.page-download__list-item {
    color: var(--fly88-text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
}

.page-download__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--fly88-primary);
}

/* Register on App Section */
.page-download__register-app-section {
    padding: 80px 0;
    background-color: var(--fly88-background);
}

.page-download__numbered-list {
    counter-reset: list-counter;
    max-width: 900px;
    margin: 0 auto 30px;
}

.page-download__numbered-list .page-download__list-item {
    padding-left: 35px;
    margin-bottom: 15px;
}

.page-download__numbered-list .page-download__list-item::before {
    counter-increment: list-counter;
    content: counter(list-counter) ".";
    left: 0;
    font-weight: bold;
    color: var(--fly88-gold);
    font-size: 1.1rem;
}

/* Games Showcase Section */
.page-download__games-showcase-section {
    padding: 80px 0;
    background-color: var(--fly88-card-bg);
}

.page-download__game-showcase-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid var(--fly88-border);
}

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

.page-download__game-card {
    background-color: var(--fly88-background);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--fly88-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-download__game-card .page-download__card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.page-download__game-card .page-download__text-block {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promotions & Support Section */
.page-download__promotions-support-section {
    padding: 80px 0;
    background-color: var(--fly88-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-color: var(--fly88-card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--fly88-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__feature-card .page-download__card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.page-download__support-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--fly88-border);
}

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

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

.page-download__faq-item {
    background-color: var(--fly88-background);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--fly88-border);
    overflow: hidden;
}

.page-download__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fly88-text-main);
    transition: background-color 0.3s ease;
}

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

.page-download__faq-item summary:hover {
    background-color: var(--fly88-deep-green);
}

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

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

.page-download__faq-item[open] .page-download__faq-toggle {
    content: '−';
}

.page-download__faq-answer {
    padding: 0 25px 20px;
    color: var(--fly88-text-secondary);
    font-size: 1rem;
    text-align: justify;
}

.page-download__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Design */
/* All images responsive by default */
.page-download img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-download__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-download__main-title {
        font-size: 2.2rem;
    }

    .page-download__description {
        font-size: 1rem;
    }

    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-download__cta-button,
    .page-download__btn-primary,
    .page-download__btn-secondary,
    .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-left: 15px;
        padding-right: 15px;
    }

    .page-download__container,
    .page-download__download-guide-section,
    .page-download__register-app-section,
    .page-download__games-showcase-section,
    .page-download__promotions-support-section,
    .page-download__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-download__section-title {
        font-size: 1.8rem;
    }

    .page-download__download-platforms,
    .page-download__game-categories,
    .page-download__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-download__qr-code-wrapper {
        width: 150px;
        height: 150px;
    }

    .page-download__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-download__faq-answer {
        padding: 0 20px 15px;
    }
}