.hero-carousel {
    position: relative;
    color: #f8f9fa;
    background-color: #1b1f24;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 19, 36, 0.75), rgba(17, 24, 39, 0.5));
}

.hero-carousel > * {
    position: relative;
}

.custom-jumbotron {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.main-modal-carousel {
    position: relative;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-modal-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
}

.main-modal-carousel > * {
    position: relative;
}

.carousel-paused {
    background-image: var(--carousel-freeze-image) !important;
}

.modal-footer p {
    font-weight: bold;
    margin-bottom: 0 !important;
    line-height: 1.2;
}

.bookmarks-tree .bookmark-item {
    padding: 2px 0;
}

.bookmarks-tree .bookmark-folder {
    font-weight: bold;
}

.bookmarks-tree .bookmark-link {
    color: #007bff;
    text-decoration: none;
}

.bookmarks-tree .bookmark-link:hover {
    text-decoration: underline;
}

.donation-option {
    margin: 10px 0;
}

.donation-btn {
    width: 100%;
    max-width: 200px;
    margin: 5px;
}

#card-element {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 12px;
    background-color: white;
}

#shop-card-element {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 12px;
    background-color: white;
}

#shopCartItems .shop-cart-thumb {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    overflow: hidden;
    flex: 0 0 48px;
}

#shopCartItems .shop-cart-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

#shopCartItems img {
    width: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    object-fit: cover;
    display: block;
}

#shopProductsContainer img.card-img-top {
    height: 180px !important;
    object-fit: cover;
}

#systemHelpModal .modal-header,
#systemHelpModal .modal-footer {
    background-color: #d4af37;
}

#contentModal .modal-body,
#resourceModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#card-errors {
    color: #dc3545;
    margin-top: 10px;
}

body.modal-open {
    overflow: hidden !important;
}

#articleModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

#articleModal.show {
    display: block !important;
}

#articleModal .modal-dialog {
    max-width: 1100px !important;
    width: 1100px !important;
    margin: 1.75rem auto !important;
    position: relative;
    pointer-events: none;
}

#articleModal .modal-content {
    max-width: 1100px !important;
    width: 1100px !important;
    background-color: #ffffff !important;
    position: relative;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    background-clip: padding-box;
    outline: 0;
}

#articleModal .modal-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

#articleModal .modal-body {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
    background-color: #ffffff !important;
    position: relative;
}

#articleModal .modal-footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.show {
    opacity: 0.5;
}

#articleModal .modal-header,
#articleModal .modal-footer {
    background-color: #f8f9fa !important;
}

#shop-card-errors {
    color: #dc3545;
    margin-top: 10px;
}

.stripe-form {
    max-width: 500px;
    margin: 20px auto;
}

.contact-form {
    max-width: 600px;
    margin: 20px auto;
}

.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.benefit-section {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #0d6efd;
}

.benefit-title {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-form {
    max-width: 400px;
    margin: 20px auto;
}

.auth-link {
    cursor: pointer;
    color: #0d6efd;
    text-decoration: underline;
}

.auth-link:hover {
    color: #0a58ca;
}

.user-dropdown {
    cursor: pointer;
}

.role-badge {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.admin-only {
    border-left: 3px solid #dc3545;
    padding-left: 1rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.tox-tinymce.is-invalid {
    border: 1px solid #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

