/* Base Styles for Download Page */
.page-download {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
}

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

.page-download__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__light-bg {
    background-color: #ffffff;
    padding: 60px 0;
    color: #333333;
}

.page-download__dark-section {
    background-color: #26A9E0;
    padding: 60px 0;
    color: #ffffff;
}

.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__section-description {
    color: #ffffff;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-download__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-download__hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.page-download__main-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.1;
}

.page-download__hero-section .page-download__description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-download__cta-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: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-download__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

.page-download__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a8cc4;
    border-color: #1a8cc4;
}

/* Why Section */
.page-download__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-download__feature-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-download__feature-card:hover {
    transform: translateY(-5px);
}

.page-download__feature-card img {
    width: 100%;
    height: 200px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-download__feature-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

/* Guide Section */
.page-download__guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-download__guide-step {
    text-align: center;
    padding: 20px;
}

.page-download__guide-step img {
    width: 100%;
    height: 220px; /* Fixed height for guide images */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-download__guide-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-download__guide-text {
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-download__qr-code-section {
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.page-download__qr-code-section img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download__qr-text {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 30px;
}

.page-download__btn-qr {
    background-color: #EA7C07; /* Login color for download button */
    border-color: #EA7C07;
}

.page-download__btn-qr:hover {
    background-color: #c96806;
    border-color: #c96806;
}

/* Features List Section */
.page-download__features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-download__list-item {
    background: #f9f9f9;
    border-left: 5px solid #26A9E0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-download__list-title {
    font-size: 20px;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-download__list-item p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

/* Security Section */
.page-download__security-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-download__security-item {
    text-align: center;
    padding: 20px;
}

.page-download__security-item img {
    width: 100%;
    height: 200px; /* Fixed height for security images */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-download__security-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-download__security-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
}

/* FAQ Section */
details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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 5px 5px;
  color: #555555;
}

/* CTA Bottom Section */
.page-download__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

.page-download__btn-large {
    padding: 18px 40px;
    font-size: 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-download__hero-image {
        height: 500px;
    }
    .page-download__main-title {
        font-size: clamp(30px, 4.5vw, 42px);
    }
    .page-download__section-title {
        font-size: 32px;
    }
    .page-download__section-description {
        font-size: 17px;
    }
    .page-download__feature-title,
    .page-download__guide-title,
    .page-download__security-title {
        font-size: 22px;
    }
    .page-download__feature-card,
    .page-download__guide-step,
    .page-download__security-item {
        padding: 25px;
    }
    .page-download__qr-code-section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-download__container {
        padding: 0 15px;
    }

    .page-download__hero-section {
        padding-bottom: 40px;
        padding-top: 10px; /* Ensure small top padding */
    }
    .page-download__hero-image {
        height: auto !important;
        aspect-ratio: unset !important;
    }
    .page-download__hero-image img {
        object-fit: contain !important; /* Prevent cropping on mobile */
        width: 100% !important;
        height: auto !important;
    }
    .page-download__main-title {
        font-size: clamp(28px, 8vw, 36px);
    }
    .page-download__hero-section .page-download__description {
        font-size: 16px;
    }

    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-download__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-download__light-bg, .page-download__dark-section {
        padding: 40px 0;
    }

    .page-download__features-grid,
    .page-download__guide-grid,
    .page-download__security-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-download__feature-card img,
    .page-download__guide-step img,
    .page-download__security-item img {
         /* Adjust image height for mobile cards */
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-download__qr-code-section {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-download__qr-code-section img {
        width: 200px !important;
        height: 200px !important;
    }

    .page-download__features-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    details.page-download__faq-item summary.page-download__faq-question { padding: 15px; }
    .page-download__faq-qtext { font-size: 15px; }

    .page-download__cta-bottom-section {
        padding: 60px 0;
    }

    /* Ensure all images are responsive */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-download__hero-image {
        height: auto;
    }
    .page-download__main-title {
        font-size: 28px;
    }
    .page-download__section-title {
        font-size: 24px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
    }
}