/* style/download.css */

/* --- General Page Styles --- */
.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body handles it */
}

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

.page-download__section {
    padding: 60px 0;
    text-align: center;
}

.page-download__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary brand color for titles */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-download__section-description {
    font-size: 1.1em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* --- 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;
    /* body handles padding-top from header, this is for visual spacing only */
    padding-top: 10px; 
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
}

.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 it takes full width within max-width */
}

.page-download__hero-image {
    width: 100%;
    margin-bottom: 30px;
    order: 1; /* Image appears first */
}

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

.page-download__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    order: 2; /* Content appears after image */
}

.page-download__main-title {
    /* No fixed font-size, use other properties for hierarchy */
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #000000; /* Darker for strong contrast */
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
}

.page-download__hero-description {
    font-size: 1.2em;
    color: #333333;
    max-width: 700px;
    margin: 0 auto 30px;
}

.page-download__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 169, 224, 0.4);
    border: none;
    cursor: pointer;
}

.page-download__cta-button:hover {
    background: #1e87b7; /* Slightly darker primary on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(38, 169, 224, 0.6);
}

/* --- Why App Section --- */
.page-download__why-app {
    background-color: #f8fcfd;
}

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

.page-download__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border-top: 4px solid #26A9E0;
}

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

.page-download__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-download__feature-item p {
    color: #555555;
    font-size: 1em;
}

/* --- Download Guide Section --- */
.page-download__download-guide {
    background-color: #26A9E0; /* Dark background from brand primary */
    color: #ffffff; /* White text for dark background */
    padding-bottom: 80px;
}

.page-download__download-guide .page-download__section-title {
    color: #ffffff;
}

.page-download__download-guide .page-download__section-description {
    color: #f0f0f0;
}

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

.page-download__step-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on blue */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-download__step-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-download__step-card p {
    color: #f0f0f0;
    margin-bottom: 10px;
}

.page-download__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff; /* White background for secondary button */
    color: #26A9E0; /* Primary color text */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.page-download__btn-secondary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-download__qr-codes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-download__qr-item {
    text-align: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__qr-item img {
    width: 200px; /* Fixed width for QR codes */
    height: 200px; /* Fixed height for QR codes */
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.page-download__qr-item p {
    color: #333333;
    font-weight: 600;
}

/* --- App Features Section --- */
.page-download__app-features {
    background-color: #fefefe;
}

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

.page-download__game-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    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.15);
}

.page-download__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
}

.page-download__game-card .page-download__game-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin: 15px 20px 10px;
    font-weight: 700;
}

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

.page-download__btn-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    padding: 0 20px 20px;
    transition: color 0.3s ease;
}

.page-download__btn-link:hover {
    color: #1e87b7;
    text-decoration: underline;
}

/* --- Security Info Section --- */
.page-download__security-info {
    background-color: #e0f7fa;
}

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

.page-download__security-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-bottom: 4px solid #26A9E0;
}

.page-download__security-item img {
     /* Adjust size for security icons */
    
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-download__security-item h3 {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-download__security-item p {
    color: #555555;
    font-size: 1em;
}

/* --- FAQ Section --- */
.page-download__faq {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.page-download__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

details.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
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: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-download__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0; /* Primary color for toggle icon */
    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 8px 8px;
    color: #555555;
    font-size: 1em;
}

/* --- Final CTA Section --- */
.page-download__cta-final {
    background: linear-gradient(135deg, #26A9E0, #1e87b7); /* Gradient background */
    color: #ffffff;
    padding: 80px 0;
}

.page-download__cta-final .page-download__section-title {
    color: #ffffff;
}

.page-download__cta-final .page-download__section-description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

.page-download__cta-final .page-download__cta-button {
    margin: 0 15px;
    background: #ffffff;
    color: #26A9E0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__cta-final .page-download__cta-button:hover {
    background: #f0f0f0;
    color: #1e87b7;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Button specific styles (from prompt) --- */
.page-download__btn-primary {
  background: #26A9E0;
  color: #ffffff; /* Button text always white */
  border: 2px solid transparent;
}

.page-download__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Use brand color ensure contrast */
  border: 2px solid #26A9E0;
}

.page-download__btn-primary:hover {
  background: #1e87b7;
  border-color: #1e87b7;
}

.page-download__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  border-color: #26A9E0;
}

/* --- Responsive Design (Mobile First Adjustments) --- */
@media (max-width: 768px) {
    .page-download {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-download__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-download__section {
        padding: 40px 0;
    }

    .page-download__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-download__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Hero Section Mobile */
    .page-download__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Fixed header spacing */
    }

    .page-download__hero-image {
        margin-bottom: 20px;
    }

    .page-download__hero-image img {
        border-radius: 8px;
    }

    .page-download__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-download__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-download__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Features Grid Mobile */
    .page-download__features-grid,
    .page-download__guide-steps,
    .page-download__games-grid,
    .page-download__security-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-download__feature-item,
    .page-download__step-card,
    .page-download__game-card,
    .page-download__security-item {
        padding: 20px;
    }

    .page-download__feature-title,
    .page-download__step-title,
    .page-download__game-title,
    .page-download__security-item h3 {
        font-size: 1.3em;
    }

    .page-download__qr-codes {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .page-download__qr-item {
        width: 100%;
        max-width: 250px; /* Limit QR item width */
    }

    .page-download__qr-item img {
        width: 200px !important; /* Ensure fixed QR size is respected */
        height: 200px !important;
    }

    .page-download__game-card img {
        
    }

    /* FAQ Mobile */
    details.page-download__faq-item summary.page-download__faq-question {
        padding: 15px;
    }
    .page-download__faq-qtext {
        font-size: 1em;
    }
    .page-download__faq-toggle {
        font-size: 1.5em;
    }
    details.page-download__faq-item .page-download__faq-answer {
        padding: 0 15px 15px;
    }

    /* Final CTA Mobile */
    .page-download__cta-final .page-download__cta-button {
        margin: 10px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Ensure all images are responsive */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Ensure all containers are responsive */
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__cta-buttons,
    .page-download__button-group,
    .page-download__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__cta-final .page-download__container { /* Override for final CTA, buttons are direct children */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__cta-final { /* Ensure section itself has no overflow */
        padding-left: 0;
        padding-right: 0;
    }
    .page-download__cta-final .page-download__cta-button {
      padding-left: 15px;
      padding-right: 15px;
    }
}