.scroll-container {
    background: #fdf5e6;
    border: 20px solid #8b4513;
    border-image: linear-gradient(to right, #8b4513 0%, #a0522d 50%, #8b4513 100%) 1;
    padding: 40px;
    margin: 50px auto;
    max-width: 800px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    position: relative;
    font-family: 'Georgia', serif;
    color: #2c1e13;
    background-image: 
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 100% 2em, 2em 100%;
}

.scroll-header {
    text-align: center;
    border-bottom: 2px solid #8b4513;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.scroll-footer {
    text-align: center;
    border-top: 2px solid #8b4513;
    margin-top: 30px;
    padding-top: 10px;
    font-size: 0.9em;
}

.scroll-content h1, .scroll-content h2, .scroll-content h3 {
    color: #8b4513;
    font-variant: small-caps;
}

.scroll-content a {
    color: #a0522d;
    text-decoration: underline dotted;
}

.scroll-content .card {
    background: transparent;
    border: none;
    border-bottom: 1px dashed #8b4513;
    border-radius: 0;
}

.scroll-content .btn-primary {
    background-color: #8b4513;
    border-color: #5d2e0d;
}

.scroll-content .btn-primary:hover {
    background-color: #a0522d;
    border-color: #8b4513;
}

.scroll-content {
    line-height: 1.8;
}

/* Pagination Styling */
.scroll-content .pagination {
    margin-bottom: 0;
}

.scroll-content .page-item .page-link {
    background-color: transparent;
    border-color: #8b4513;
    color: #8b4513;
}

.scroll-content .page-item.active .page-link {
    background-color: #8b4513;
    border-color: #8b4513;
    color: #fdf5e6;
}

.scroll-content .page-item.disabled .page-link {
    background-color: transparent;
    border-color: #8b4513;
    opacity: 0.5;
    color: #8b4513;
}

.scroll-content .page-link:hover {
    background-color: rgba(139, 69, 19, 0.1);
    color: #a0522d;
    border-color: #a0522d;
}

.scroll-content .page-item:first-child .page-link,
.scroll-content .page-item:last-child .page-link {
    border-radius: 0;
}

/* Scroll handles (mocking them with CSS) */
.scroll-container::before, .scroll-container::after {
    content: "";
    position: absolute;
    left: -30px;
    right: -30px;
    height: 40px;
    background: #8b4513;
    border-radius: 20px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.scroll-container::before {
    top: -30px;
}

.scroll-container::after {
    bottom: -30px;
}

body.public-scroll-page {
    background: #3e2723;
    min-height: 100vh;
    padding: 20px 0;
}

.public-navbar {
    background-color: #2c1e13 !important;
}
.floating-groups-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #8b4513;
    color: #fdf5e6;
    border: 3px solid #fdf5e6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 24px;
}

.floating-groups-btn:hover {
    transform: scale(1.1);
    background-color: #a0522d;
    color: #fff;
}

.offcanvas-scroll {
    background-color: #fdf5e6;
    border-left: 10px solid #8b4513;
    font-family: 'Georgia', serif;
    color: #2c1e13;
}

.offcanvas-scroll .offcanvas-header {
    border-bottom: 2px solid #8b4513;
}

.offcanvas-scroll .offcanvas-title {
    color: #8b4513;
    font-variant: small-caps;
}

.offcanvas-scroll .list-group-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px dashed #8b4513;
    color: #2c1e13;
    padding: 15px 10px;
    transition: background-color 0.2s;
}

.offcanvas-scroll .list-group-item:hover {
    background-color: rgba(139, 69, 19, 0.05);
    color: #a0522d;
}

.offcanvas-scroll .list-group-item strong {
    color: #8b4513;
}
