/* ===== NUSGS “Saved” Overlay ===== */

/* Overlay must be fixed and above everything */
.nusgs-overlay {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(17, 24, 39, 0.55) !important;
    z-index: 9999 !important;
    padding: 18px !important;
}

/* Dialog box */
.nusgs-overlay .nusgs-dialog {
    position: relative;
    background: #fff !important;
    border-radius: 14px !important;
    padding: 22px 22px 18px !important;
    width: min(520px, 96vw) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important;
}

@keyframes nusgsPop {
    from { transform: translateY(8px) scale(0.98); opacity: 0.6; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.nusgs-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(17, 90, 166, 0.06);
    color: #115AA6;
    font-size: 22px;
    line-height: 36px;
    cursor: pointer;
}

.nusgs-close:hover {
    background: rgba(17, 90, 166, 0.12);
}

.nusgs-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(17, 90, 166, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px auto 12px;
}

.nusgs-icon {
    width: 46px;
    height: 46px;
}

.nusgs-title {
    margin: 0;
    text-align: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #0f2f5a;
    letter-spacing: 0.2px;
}

.nusgs-desc {
    margin: 10px auto 16px;
    text-align: center;
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.35rem;
    max-width: 46ch;
}

.nusgs-actions {
    display: grid;
    grid-template-columns: 1fr 1fr; /* equal width */
    gap: 12px;
    width: 100%;
    max-width: 420px; /* keeps it neat */
    margin: 0 auto;
}
/*
************************ general ************************
*/

.custom-text-area-wrapper {
    font-size: 14px !important;
    overflow-wrap: break-word !important;
    line-height: 1.5;
}
.custom-text-area-wrapper h1 {
    font-size: 22px !important;
    line-height: 1.8;
}
.custom-text-area-wrapper h2 {
    font-size: 20px !important;
    line-height: 1.7;
}
.custom-text-area-wrapper h3 {
    font-size: 18px !important;
    line-height: 1.6;
}
.custom-text-area-wrapper h4 {
    font-size: 17px !important;
}
.custom-text-area-wrapper h5 {
    font-size: 16px !important;
}
.custom-text-area-wrapper h6 {
    font-size: 15px !important;
}
.multiline-ellipsis {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* start showing ellipsis when 3rd line is reached */
    white-space: pre-wrap; /* let the text wrap preserving spaces */
}
br {
    display: block; /* makes it have a width */
    content: ""; /* clears default height */
    margin-top: 0; /* change this to whatever height you want it */
}
img {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}
a {
    text-decoration: none;
}

ul {
    margin: 0;
}
