/************************************************
   == Main Content Spacing (Fixed Header Support) ==
*************************************************/

/* 
 * Industry-standard solution for fixed headers:
 * Add padding to main content containers to prevent
 * content from hiding behind the fixed header
 */

/* Main content wrapper - applies to all pages */
.listpgWraper,
.container-fluid,
main,
.main-content {
    padding-top: 100px; /* Increased space below fixed header */
}

/* Home page specific adjustments */
body.home .listpgWraper,
body.home main {
    padding-top: 0; /* Home page usually has hero section */
}

/* Pages that previously had pageTitle now need top spacing */
.pageTitle + * {
    margin-top: 0; /* Remove any existing margin */
}

/* Ensure first content section has proper spacing */
.content-section:first-of-type,
.page-content:first-of-type {
    padding-top: 30px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .listpgWraper,
    .container-fluid,
    main,
    .main-content {
        padding-top: 80px; /* Increased padding on mobile */
    }
}

/* 
 * Alternative approach using CSS custom property
 * This allows for easy adjustments across the site
 */
:root {
    --content-top-spacing: 100px;
    --content-top-spacing-mobile: 80px;
}

/* Apply spacing using custom property */
body > .listpgWraper:first-of-type,
body > main:first-of-type {
    padding-top: var(--content-top-spacing);
}

@media screen and (max-width: 768px) {
    body > .listpgWraper:first-of-type,
    body > main:first-of-type {
        padding-top: var(--content-top-spacing-mobile);
    }
}
