.right-modal .modal-dialog-right {
    position: fixed;
    margin: auto;
    width: 33.33vw;
    min-width: 300px;
    max-width: 600px;
    height: 100%;
    right: 0;
    top: 0;
    pointer-events: auto;
}

.right-modal {
    background: none !important;
    pointer-events: none;
}

.right-modal .modal-content {
    height: 100%;
    position: relative;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.right-modal.fade .modal-dialog-right {
    transform: translateX(100%);
    transition: transform 0.5s ease-out;
}

.right-modal.show .modal-dialog-right {
    transform: translateX(0);
    opacity: 1;
}

.right-modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.right-modal .modal-body {
    overflow-y: auto;
    height: calc(100% - 56px - 45px);
}

.right-modal .modal-body>div:last-child {
    padding-bottom: 50px;
}

.right-modal .modal-footer.fixed-footer {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    z-index: 1;
    padding: 0.5rem;
    margin: 0;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.right-modal .modal-footer .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.small-header {
    margin-top: 30px;
    font-weight: bold;
}

.source-link {
    color: #2ecc71;
    /* Bootstrap primary blue color */
    text-decoration: none;
}

.source-link:hover {
    text-decoration: underline;
    color: #2ecc71;
    /* Darker blue on hover */
}

/* Optional: Add an icon to indicate external links */
.source-link::after {
    content: '↗';
    /* or you could use: '⤴' or '⇗' */
    display: inline-block;
    margin-left: 3px;
    font-size: 0.8em;
}

.modal-title-circular-use {
    font-weight: bold;
    color: #2ecc71;
    position: relative;
    padding-bottom: 10px;
}

.modal-title-intelligent-product {
    font-weight: bold;
    color: #ab94e4;
    position: relative;
    padding-bottom: 10px;
}

.modal-title-utilization {
    font-weight: bold;
    color: #E69A5C;
    position: relative;
    padding-bottom: 10px;
}

.modal-title-circular-use::after,
.modal-title-intelligent-product::after,
.modal-title-utilization::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.modal-title-circular-use::after {
    background-color: #2ecc71;
}

.modal-title-intelligent-product::after {
    background-color: #ab94e4;
}

.modal-title-utilization::after {
    background-color: #E69A5C;
}

.right-modal.show .modal-title-circular-use::after,
.right-modal.show .modal-title-intelligent-product::after,
.right-modal.show .modal-title-utilization::after {
    transform: scaleX(1);
}
.modal-body {
    font-size: 1rem;
    padding-left: 2.2rem;
    padding-right: 2.2rem;
}
/* Modal width customization */
@media (min-width: 768px) {
    .modal-dialog.intro-modal-lg {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .modal-dialog.intro-modal-lg {
        max-width: 950px;
    }
}
