/* style/download.css */
.page-download {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

.page-download__hero-section {
    background-color: #CC0000; /* Main brand color */
    color: #ffffff; /* White text on red background */
    padding: 80px 20px 40px; /* Adjusted padding, header offset is already on main */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-download__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-download__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Accent color for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.page-download__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-download__button--primary {
    background-color: #FFD700; /* Accent color */
    color: #CC0000; /* Main color for text */
    border: 2px solid #FFD700;
}

.page-download__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-download__button--secondary {
    background-color: transparent;
    color: #FFD700; /* Accent color */
    border: 2px solid #FFD700;
}

.page-download__button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

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

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

.page-download__section-title {
    font-size: 2.2em;
    color: #CC0000; /* Main brand color */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-download__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #FFD700; /* Accent color */
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-download__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-download__card-image {
    width: 100%;
    height: auto;
    max-height: 250px; /* Max height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-download__card-title {
    font-size: 1.4em;
    color: #CC0000; /* Main brand color */
    margin-bottom: 15px;
}

.page-download__card-text {
    color: #555555;
    font-size: 0.95em;
}

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

.page-download__method-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-download__method-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain; /* Use contain for QR codes/device images */
    margin-bottom: 25px;
    border-radius: 8px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-download__method-title {
    font-size: 1.6em;
    color: #CC0000; /* Main brand color */
    margin-bottom: 20px;
}

.page-download__method-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-download__method-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #444444;
}

.page-download__method-list li::before {
    content: '✔️'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #FFD700; /* Accent color */
    font-size: 1.1em;
    top: 0;
}

.page-download__button--download {
    background-color: #CC0000; /* Main brand color */
    color: #ffffff;
    border: 2px solid #CC0000;
    width: 100%;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-download__button--download:hover {
    background-color: #a30000;
    border-color: #a30000;
    transform: translateY(-2px);
}

.page-download__notes-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    background-color: #fffaf0; /* Light yellow background for notes */
    border-left: 5px solid #FFD700; /* Accent color border */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-download__notes-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #333333;
    font-size: 1.05em;
}

.page-download__notes-list li:last-child {
    margin-bottom: 0;
}

.page-download__notes-list li::before {
    content: '⚠️'; /* Warning icon */
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: 0;
}

.page-download__button--center {
    display: block;
    margin: 40px auto 0;
    max-width: 300px;
    background-color: #CC0000;
    color: #ffffff;
    border: 2px solid #CC0000;
}

.page-download__button--center:hover {
    background-color: #a30000;
    border-color: #a30000;
    transform: translateY(-2px);
}

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

.page-download__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #CC0000; /* Main brand color */
    cursor: pointer;
    background-color: #fefefe;
    transition: background-color 0.3s ease;
}

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

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

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' when open */
}

.page-download__faq-answer {
    padding: 0 25px 20px;
    color: #555555;
    font-size: 1em;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.5em;
    }
    .page-download__hero-description {
        font-size: 1.1em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-download {
        padding-top: var(--header-offset, 80px); /* Adjust padding for mobile header */
    }
    .page-download__hero-section {
        padding: 60px 15px 30px;
    }
    .page-download__hero-title {
        font-size: 2em;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .page-download__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__button {
        width: 100%;
        min-width: unset;
    }
    .page-download__content-area {
        padding: 40px 15px;
    }
    .page-download__section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }
    .page-download__grid,
    .page-download__method-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-download__card,
    .page-download__method-card {
        padding: 25px;
    }
    .page-download__card-image,
    .page-download__method-image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-height: 200px; /* Minimum height for content images */
        object-fit: cover; /* Use cover for card images to fill space */
    }
    .page-download__notes-list {
        padding: 20px;
    }
    .page-download__notes-list li {
        font-size: 0.95em;
    }
    .page-download__faq-question {
        font-size: 1.05em;
        padding: 15px 20px;
    }
    .page-download__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image overflow prevention */
    .page-download img {
        max-width: 100%;
        height: auto;
        /* Enforce minimum size for content images if not explicitly set larger */
        min-width: 200px;
        min-height: 200px;
        object-fit: cover; /* Ensure images scale appropriately without overflowing */
    }
    .page-download__hero-image {
        max-width: 100%; /* Override the 80% max-width for smaller screens */
    }
}

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 1.8em;
    }
    .page-download__hero-description {
        font-size: 0.95em;
    }
    .page-download__section-title {
        font-size: 1.6em;
    }
    .page-download__card-title {
        font-size: 1.2em;
    }
    .page-download__method-title {
        font-size: 1.4em;
    }
}