.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Light background for the page content */
}

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

/* Hero Section */
.page-download__hero-section {
    padding-top: 10px; /* Small top padding to avoid double header offset */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #C91F17 0%, #E53935 100%); /* Brand gradient background */
    color: #FFF5E1; /* Light text for dark background */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-download__hero-section .page-download__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-download__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.page-download__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFF5E1; /* Main text color for hero */
}

.page-download__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFF5E1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container fills width for responsive buttons */
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container width */
}

.page-download__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep red text for gold button for contrast */
    border: 2px solid #F4D34D; /* Gold border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary {
    background: #7A0E0E; /* Deep Red background */
    color: #FFF5E1; /* Main text color for contrast */
    border: 2px solid #F2B544; /* Border color */
}

.page-download__btn-secondary:hover {
    background: #B71C1C; /* Background color */
    border-color: #FFCC66; /* Glow color */
}

.page-download__hero-image-wrapper {
    margin-top: 40px;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Steps Section */
.page-download__steps-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

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

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

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

.page-download__step-item {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: left;
    border: 1px solid #eee;
}

.page-download__step-item:hover {
    transform: translateY(-5px);
}

.page-download__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #C91F17;
    color: #FFF5E1;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download__step-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #C91F17;
}

.page-download__step-text {
    font-size: 1em;
    color: #666666;
}

.page-download__image-wrapper {
    margin-top: 40px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-download__product-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.page-download__features-section {
    padding: 60px 0;
    background-color: #f0f0f0;
    text-align: center;
}

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

.page-download__feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    border-left: 5px solid #E53935; /* Accent color border */
    transition: all 0.3s ease;
}

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

.page-download__feature-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #E53935; /* Accent color for feature titles */
}

.page-download__feature-text {
    font-size: 1em;
    color: #666666;
}

.page-download__feature-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 0;
    background-color: #fff;
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17; /* Brand color for toggle */
  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;
}
details.page-download__faq-item[open] .page-download__faq-question {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}


/* CTA Section (Dark Background) */
.page-download__cta-section {
    padding: 80px 0;
    background: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Light text for dark background */
    text-align: center;
}

.page-download__cta-section .page-download__section-title {
    color: #FFF5E1;
}

.page-download__cta-section .page-download__description {
    color: #FFF5E1;
    margin-bottom: 40px;
}

.page-download__btn-large {
    font-size: 1.3em;
    padding: 18px 40px;
    border-radius: 10px;
}

/* General image styling for content areas */
.page-download img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-download__main-title {
        font-size: 2.8em;
    }
    .page-download__section-title {
        font-size: 2.2em;
    }
    .page-download__feature-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

    .page-download__hero-section {
        padding-top: 10px !important; /* Fixed header offset */
        padding-bottom: 40px;
    }

    .page-download__hero-section .page-download__container {
        flex-direction: column;
        gap: 30px;
    }

    .page-download__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Use clamp for H1 */
        margin-bottom: 15px;
    }

    .page-download__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download__btn-large {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General image responsive styles */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

    .page-download__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-download__step-item {
        padding: 20px;
    }

    .page-download__step-number {
        width: 45px;
        height: 45px;
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-download__step-title {
        font-size: 1.3em;
    }

    .page-download__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-download__feature-item {
        padding: 20px;
    }

    .page-download__feature-title {
        font-size: 1.2em;
    }

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

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

    .page-download__cta-section .page-download__description {
        margin-bottom: 30px;
    }
}