/* Main CSS Structure for Layouts */

/* Layout logic */
body.left-sidebar .site-content {
    grid-template-columns: 300px minmax(0, 1fr);
}

body.left-sidebar .site-main {
    order: 2;
}

body.left-sidebar .widget-area {
    order: 1;
}

body.no-sidebar .site-content {
    grid-template-columns: 1fr;
    display: block;
}

body.no-sidebar .widget-area {
    display: none;
}

/* Footer Widgets */
.footer-widgets {
    background-color: #ededed;
    padding: 2rem 0;
}

.footer-widgets .inside-footer-widgets {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Scroll to Top */
.generate-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 99;
    text-decoration: none;
    font-size: 20px;
}

.generate-back-to-top:hover {
    background: #2c5282;
    /* Darker shade */
    color: #fff;
    text-decoration: none;
}

/* Sticky Navigation */
.sticky-navigation .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}