/* Frontend styles for site sections */

/* Base wrapper styles */
.site-section-wrapper,
.site-section-shortcode-wrapper {
    display: block;
    width: 100%;
}

/* Layout Width Classes */
.site-section-default {
    /* Uses theme's default content width */
}

.site-section-contained .site-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-section-fullwidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Responsive adjustments for contained layout */
@media (max-width: 768px) {
    .site-section-contained .site-section-container {
        padding: 0 15px;
    }
}

/* Header sections */
.site-section-wrapper[data-section-location="header"] {
    margin-bottom: 20px;
}

/* Footer sections */
.site-section-wrapper[data-section-location="footer"] {
    margin-top: 20px;
}

/* Content area sections */
.site-section-wrapper[data-section-location="before_content"],
.site-section-wrapper[data-section-location="after_content"] {
    margin: 20px 0;
}

/* Shortcode sections */
.site-section-shortcode-wrapper {
    margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-section-wrapper,
    .site-section-shortcode-wrapper {
        margin: 10px 0;
    }
}

/* Default text styling for sections */
.site-section-wrapper p:first-child,
.site-section-shortcode-wrapper p:first-child {
    margin-top: 0;
}

.site-section-wrapper p:last-child,
.site-section-shortcode-wrapper p:last-child {
    margin-bottom: 0;
}

/* Helper classes that can be applied via Custom CSS Class field */
.site-section-centered {
    text-align: center;
}

.site-section-full-width {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.site-section-no-margin {
    margin: 0;
}

.site-section-large-margin {
    margin: 40px 0;
}

.site-section-background-light {
    background-color: #f9f9f9;
    padding: 20px;
}

.site-section-background-dark {
    background-color: #333;
    color: #fff;
    padding: 20px;
}