/* Fix for study pages spacing issues */
.study-hero, 
.hero-section, 
.page-hero {
    margin-top: 0 !important;
    padding-top: 80px !important; /* Adjust if needed based on header height */
}

/* Fix for any potential header overflow */
.premium-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
}

/* Additional global spacing fixes */
body {
    overflow-x: hidden;
}

/* Ensure consistent spacing after header */
header + * {
    margin-top: 0 !important;
}

/* Section Spacing Fixes */
.section-spacing {
    padding: 3rem 0;
    margin: 0;
}

.life-section {
    background-color: #ffffff;
    padding-bottom: 3rem;
    margin-bottom: 0;
}

.faq-section {
    background-color: #f8f9fa;
    padding-top: 3rem;
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 2.5rem;
}

.life-aspects {
    margin-bottom: 0;
    padding-bottom: 1rem;
}

/* Container consistency */
.container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Remove extra spacing between sections */
section + section {
    margin-top: 0;
}

/* Ensure proper vertical rhythm */
.life-section + .faq-section {
    margin-top: 0;
    padding-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-spacing {
        padding: 2rem 0;
    }
    .life-section {
        padding-bottom: 2rem;
    }
    .faq-section {
        padding-top: 2rem;
    }
}
