/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}


.modal.active {
    visibility: visible;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    padding: 3.5rem 4rem;
    border-radius: 6px;
    max-width: 95%;
    width: 800px;
    max-height: 700px;
    overflow-y: scroll;
    position: relative;
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    color: #999;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.03);
}

.modal-body {
    margin-top: 0.5rem;
    color: #333;
}

/* Content specific styles */
.modal-body h2 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.modal-body h3 {
    margin-bottom: 0.1rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #000;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

.modal-body p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 1rem;
    color: #333;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1rem;
    list-style-type: none;
}

.modal-body li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 1rem;
    color: #333;
    position: relative;
}

.modal-body li::before {
    content: "—";
    position: absolute;
    left: -1.2rem;
    color: #666;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Modal responsive styles */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        width: 95%;
        margin: 1rem;
    }

    .modal-close {
        top: 1.5rem;
        right: 1.5rem;
    }

    .modal-body h3 {
        font-size: 1.5rem;
    }

    .modal-body p,
    .modal-body li {
        font-size: 1rem;
    }
}
