/* Mobile-first base styles */
.background-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center category-title vertically */
    align-items: center;
    height: calc(100dvh - var(--header-height, 110px)); /* Use dynamic viewport height */
    max-height: calc(100dvh - var(--header-height, 110px)); /* Enforce height limit */
    padding: 5px 10px; /* Reduced padding */
    margin: 0; /* Ensure no margins */
    z-index: 1;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.3);
    margin: 0 0 15px; /* Reduced margin for arrow space */
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid #ffffff;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.content-section {
    background: #ffffff;
    padding: 30px 10px;
    position: relative;
    z-index: 1;
    min-height: 100vh; /* Allow scrolling for content */
    color: #000000;
}

.lorem-container {
    max-width: 90%;
    margin: 0 auto;
    text-align: left;
}

.lorem-container p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px;
    font-family: Arial, sans-serif;
    color: #000000;
}

footer[role="contentinfo"] {
    flex-shrink: 0;
    background: #ffffff; /* White background for NewPage.html */
}

/* Override footer info text color for NewPage.html */
footer[role="contentinfo"] .footer-content {
    color: #000000; /* Black text for copyright and sections */
}

footer[role="contentinfo"] .footer-section h3 {
    color: #000000; /* Black text for section headers (Contact Info, Legal) */
}

footer[role="contentinfo"] .footer-link {
    color: #000000; /* Black text for legal links */
}

/* Larger screens */
@media (min-width: 769px) {
    :root {
        --header-height: 145px; /* Desktop, unchanged */
    }
    .background-section {
        padding: 0px 15px; /* No vertical padding */
        margin: 0; /* Ensure no margins */
    }

    .category-title {
        font-size: 3rem;
        margin: 0 0 0px; /* No margin for arrow space */
    }

    .scroll-indicator {
        bottom: 160px; /* Position at ~80% down the background section */
        width: 40px;
        height: 40px;
    }

    .content-section {
        padding: 40px 15px;
    }

    .lorem-container {
        max-width: 800px;
    }

    .lorem-container p {
        font-size: 1.1rem;
    }
}

/* Smaller screens */
@media (max-width: 768px) {
    :root {
        --header-height: 110px; /* Mobile, unchanged */
    }
    .background-section {
        padding: 5px 10px; /* Reduced padding */
    }

    .category-title {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 20px 10px;
    }

    .lorem-container p {
        font-size: 0.9rem;
    }

    .scroll-indicator {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 90px; /* Small screens, unchanged */
    }
}