body {
    background-image: url('assets/images/background.jpg'); /* Updated to JPG */
    background-size: cover;
    background-position: left center; /* Default for wide screens */
    background-repeat: no-repeat;
    background-attachment: fixed; /* This fixes the background in place during scroll */
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh; /* Ensures it covers the full viewport height */
    font-size: 14px; /* Slightly smaller font size to match original */
    line-height: 1.5; /* Added for better spacing, matching original's looser text */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 20px; /* Increased by ~10% for height (from 15px) */
    position: fixed; /* Makes the header fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Ensures it stays on top of other content */
    background-color: transparent; /* Fully transparent background */
    backdrop-filter: blur(10px); /* Blurs the content behind the header for "out of focus" effect */
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px; /* Starts not from the very left edge */
    width: calc(100% - 40px); /* Doesn't span entire width, adjusted for padding */
    height: 1px;
    background: linear-gradient(to right, red 2%, rgba(255, 255, 255, 0.2) 2%); /* Shorter red on left, then faint white to match original */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white; /* Explicitly white for text, to confirm match */
}

.star {
    color: red;
    font-size: 28px;
    margin-right: 5px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    position: relative;
    padding: 5px 10px; /* Added padding for menu items */
    transition: background-color 0.3s; /* Smooth hover transition */
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Grayish rounded highlight on hover */
    border-radius: 5px; /* Rounded corners */
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: red;
}

main {
    max-width: 600px; /* Max width at 600 pixels for wide screens */
    width: min(600px, calc(45vw - 40px)); /* Dynamic width to fit with 5% right margin and padding */
    margin: 120px 5% 50px 50%; /* 50% left shift, 5% right margin */
    padding: 20px;
}

section {
    margin-bottom: 40px; /* Space between sections */
    padding-top: 70px; /* Added padding to push content below fixed header */
    margin-top: -70px; /* Negative margin to offset the padding for scroll position */
}

h1, h2 {
    font-weight: normal;
    position: relative;
    margin-bottom: 20px;
}

h1 {
    font-size: 36px; /* Larger to match original's main heading */
}

h2 {
    font-size: 24px; /* Smaller for subheadings */
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px; /* Short red line as in screenshot */
    height: 2px;
    background-color: red !important; /* Ensure it shows on all headings */
}

p {
    margin-bottom: 20px; /* Added for better paragraph spacing */
    line-height: 1.6; /* Matches original's readability */
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px; /* Added for list spacing */
}

ul li {
    position: relative;
    padding-left: 20px; /* Space for bullet, ensures multi-line text aligns to the right of bullet */
    line-height: 1.6; /* Matches original's list spacing */
    margin-bottom: 10px; /* Added space between bullet points for readability */
}

ul li::before {
    content: '• ';
    color: red;
    font-size: 1em; /* Standard size to match original */
    position: absolute;
    left: 0;
}

a {
    color: white;
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
}

button {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* Styles for FAQ box */
#faq {
    position: relative;
}

.faq-box {
    background-color: white;
    color: black;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    max-width: 700px; /* Approximate width from screenshot */
    margin: 0 auto;
    position: relative;
}

.faq-box::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white; /* Pointer triangle at top right */
}

.faq-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.faq-header .star {
    font-size: 28px;
    margin-right: 5px;
}

.red-line {
    border: 0;
    height: 2px;
    background-color: red;
    margin: 10px 0;
}

.faq-content h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.faq-content ul li {
    background-color: rgba(0, 0, 255, 0.1); /* Light blue background for product list items, matching screenshot */
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.download-btn {
    background-color: red;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 20px;
}

.bottom-star {
    color: red;
    font-size: 24px;
    text-align: center;
    margin-top: 20px;
}

/* Responsive adjustments for max-width 900px */
@media (max-width: 900px) {
    body {
        padding: 10px; /* Reduce padding */
    }

    main {
        width: 100%; /* Full width */
        margin: 100px auto 50px auto; /* Center it */
        padding: 0;
    }

    section {
        background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark box */
        border-radius: 10px; /* Rounded corners */
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    }

    h1::after, h2::after {
        width: 40px; /* Slightly shorter for mobile */
    }
}