.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* Default background, though shared.css might set body */
}

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

.page-download__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-download__section-description {
    font-size: 18px;
    color: #333333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

/* Hero Section */
.page-download__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, assuming body padding-top is handled by shared.css */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
    overflow: hidden;
}

.page-download__hero-content-wrap {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    padding: 20px;
}

.page-download__hero-title {
    font-size: clamp(32px, 5vw, 48px); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

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

.page-download__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-download__cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 220px;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-download__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-download__button-icon {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.page-download__button-icon svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.page-download__hero-image-wrap {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element */
}

/* Benefits Section */
.page-download__benefits-section {
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

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

.page-download__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-download__benefit-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.page-download__benefit-title {
    font-size: 22px;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 15px;
}

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

/* Guide Section */
.page-download__guide-section {
    background-color: #F5F7FA;
}

.page-download__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.page-download__guide-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.page-download__guide-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 30px;
}

.page-download__guide-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-download__guide-image {
    max-width: 45%; /* Adjust for flex layout */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    object-fit: cover;
}

.page-download__guide-item:nth-child(even) .page-download__guide-content {
    flex-direction: row-reverse; /* Alternate image and text */
}

.page-download__guide-list {
    flex: 1;
    list-style: decimal;
    padding-left: 20px;
    font-size: 16px;
    color: #333333;
}

.page-download__guide-list li {
    margin-bottom: 15px;
}

.page-download__guide-list strong {
    color: #E53935;
}

.page-download__important-notes {
    background: #fff8f8; /* Lighter red tint */
    border-left: 5px solid #E53935;
    padding: 25px;
    border-radius: 8px;
    margin-top: 50px;
}

.page-download__important-notes .page-download__guide-subtitle {
    font-size: 24px;
    color: #E53935;
    margin-bottom: 20px;
    text-align: left;
}

.page-download__note-list {
    list-style: disc;
    padding-left: 25px;
    font-size: 16px;
    color: #333333;
}

.page-download__note-list li {
    margin-bottom: 10px;
}

/* Games Section */
.page-download__games-section {
    background-color: #ffffff;
}

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

.page-download__game-card {
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    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.1);
}

.page-download__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-download__game-title {
    font-size: 20px;
    font-weight: 600;
    color: #E53935;
    padding: 15px 20px 10px;
}

.page-download__game-text {
    font-size: 15px;
    color: #333333;
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Promotions Section */
.page-download__promotions-section {
    background: #E53935; /* Dark background with brand color */
    color: #ffffff;
    text-align: center;
}

.page-download__promotions-section .page-download__section-title {
    color: #ffffff;
}

.page-download__promotions-section .page-download__section-description {
    color: #f0f0f0;
}

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

.page-download__promo-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__promo-title {
    font-size: 22px;
    font-weight: 600;
    color: #FF5A4F; /* Use auxiliary color for titles */
    margin-bottom: 15px;
}

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

.page-download__promotions-section .page-download__cta-button {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #ffffff;
}

.page-download__promotions-section .page-download__cta-button:hover {
    background: #f0f0f0;
    color: #E53935;
}

/* Support Section */
.page-download__support-section {
    background-color: #F5F7FA;
}

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

.page-download__channel-item {
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-download__channel-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.page-download__channel-title {
    font-size: 22px;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 15px;
}

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

.page-download__support-section .page-download__cta-button {
    background: #E53935;
    color: #ffffff;
    border: 2px solid #E53935;
}

.page-download__support-section .page-download__cta-button:hover {
    background: #FF5A4F;
    border-color: #FF5A4F;
}

/* FAQ Section */
.page-download__faq-section {
    background-color: #ffffff;
}

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

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: #333333;
}
.page-download__faq-answer p {
    margin: 0;
}

/* General image and button responsiveness */
.page-download img {
    max-width: 100%;
    height: auto;
    display: block;
}

.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__hero-buttons,
.page-download__cta-buttons,
.page-download__button-group,
.page-download__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-download__section {
        padding: 50px 15px;
    }
    .page-download__section-title {
        font-size: 32px;
    }
    .page-download__section-description {
        font-size: 17px;
    }
    .page-download__hero-section {
        padding-bottom: 50px;
        gap: 30px;
    }
    .page-download__hero-content-wrap {
        text-align: center;
    }
    .page-download__hero-buttons {
        justify-content: center;
    }
    .page-download__hero-title {
        font-size: clamp(28px, 6vw, 42px);
    }
    .page-download__hero-description {
        font-size: 17px;
    }
    .page-download__guide-content {
        flex-direction: column;
        gap: 20px;
    }
}