/* style/download.css */
:root {
    --kbet-primary: #2F6BFF;
    --kbet-secondary: #6FA3FF;
    --kbet-card-bg: #FFFFFF;
    --kbet-background: #F4F7FB;
    --kbet-text-main: #1F2D3D;
    --kbet-text-black: #000000;
    --kbet-border: #D6E2FF;
    --kbet-glow: #A5C4FF;
    --kbet-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-download {
    font-family: 'Arial', sans-serif;
    color: var(--kbet-text-main);
    background-color: var(--kbet-background);
}

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

.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--kbet-primary);
    color: #ffffff;
    overflow: hidden;
}

.page-download__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-download__hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px; /* Max width for video */
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.page-download__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-download__hero-video-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-download__hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.page-download__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-download__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-download__download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-download__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary {
    background-color: #ffffff;
    color: var(--kbet-primary);
    border: 2px solid var(--kbet-primary);
}

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

.page-download__why-download-section,
.page-download__app-features-section,
.page-download__faq-section {
    padding: 80px 0;
    background-color: var(--kbet-background);
    color: var(--kbet-text-main);
}

.page-download__how-to-download-section,
.page-download__cta-section {
    padding: 80px 0;
    background-color: var(--kbet-primary);
    color: #ffffff;
}

.page-download__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
    color: inherit; /* Inherit color from parent section */
}

.page-download__light-bg .page-download__section-title {
    color: var(--kbet-text-main);
}

.page-download__dark-bg .page-download__section-title {
    color: #ffffff;
}

.page-download__benefits-grid,
.page-download__download-steps-grid,
.page-download__features-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.page-download__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-download__benefit-item {
    background-color: var(--kbet-card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--kbet-text-main);
}

.page-download__benefit-item:hover {
    transform: translateY(-10px);
}

.page-download__benefit-item img {
    
    
    margin-bottom: 20px;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-download__benefit-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--kbet-text-main);
}

.page-download__download-steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__download-platform {
    background-color: var(--kbet-secondary);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__platform-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

.page-download__qr-code-img {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

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

.page-download__download-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.5;
}

.page-download__download-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

.page-download__download-btn {
    margin-top: auto; /* Push button to bottom */
}

.page-download__download-note {
    text-align: center;
    font-size: 0.95em;
    opacity: 0.8;
    max-width: 800px;
    margin: 20px auto 0 auto;
}

.page-download__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-download__feature-card {
    background-color: var(--kbet-card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--kbet-text-main);
}

.page-download__feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-download__feature-title {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--kbet-text-main);
}

.page-download__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    color: var(--kbet-text-main);
    user-select: none;
}

.page-download__faq-question:hover {
    background-color: #f9f9f9;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg);
}

.page-download__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--kbet-text-main);
}

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

.page-download__cta-section {
    text-align: center;
    padding: 100px 20px;
}

.page-download__cta-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-download__cta-button {
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    background: var(--kbet-button-gradient);
    color: #ffffff;
    border: none;
}

.page-download__cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-download__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }
    .page-download__hero-container {
        gap: 30px;
    }
    .page-download__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-download__section-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
    .page-download__benefits-grid,
    .page-download__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-download__how-to-download-section,
    .page-download__why-download-section,
    .page-download__app-features-section,
    .page-download__faq-section,
    .page-download__cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-download__hero-section {
        padding: 30px 0;
        padding-top: 10px !important;
    }
    .page-download__hero-container {
        padding: 0 15px !important;
        gap: 20px;
    }
    .page-download__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-download__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-download__download-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-download__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 30px;
    }
    .page-download__benefits-grid,
    .page-download__features-grid {
        grid-template-columns: 1fr;
    }
    .page-download__download-steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .page-download__download-platform {
        padding: 30px 20px;
    }
    .page-download__qr-code-img {
        width: 200px;
        height: 200px;
    }
    .page-download__download-list {
        max-width: none;
    }
    .page-download__feature-card img {
        height: auto !important;
    }
    .page-download__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-download__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-download__cta-section {
        padding: 60px 15px;
    }
    .page-download__cta-description {
        font-size: 1.05em;
        margin-bottom: 30px;
    }
    .page-download__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Mobile image responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__benefit-item,
    .page-download__feature-card,
    .page-download__download-platform {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-download__hero-video-wrapper,
    .page-download__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__hero-video-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-download__main-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }
    .page-download__section-title {
        font-size: clamp(1.3em, 6vw, 1.8em);
    }
    .page-download__download-platform {
        padding: 25px 15px;
    }
    .page-download__qr-code-img {
        
        
    }
}