/* body {
    font-family: 'poppins', Arial, sans-serif;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.popup-left {
    flex: 1;
    padding: 20px;
}

.popup-left h1 {
    margin-top: 0;
}

.popup-left p {
    margin: 10px 0;
}

.apply-link {
    display: inline-block;
    margin: 10px 0;
    padding: 10px;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}

.apply-link:hover {
    background-color: #333;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info a {
    color: #000;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.popup-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-right img {
    max-width: 100%;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
    }
}
 */
 body {
    font-family: 'poppins', Arial, sans-serif;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Ensure scrolling when content is too tall */
}

.popup-content {
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh; /* Restrict popup height to viewport height */
    overflow-y: auto; /* Enable content scrolling within the popup */
}

.close {
    position: fixed; /* Fix position so it's always visible */
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001; /* Ensure it stays above the popup content */
    color: red;
}

.popup-left {
    flex: 1;
    padding: 20px;
}

.popup-left h1 {
    margin-top: 0;
}

.popup-left p {
    margin: 10px 0;
}

.apply-link {
    display: inline-block;
    margin: 10px 0;
    padding: 10px;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}

.apply-link:hover {
    background-color: #333;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info a {
    color: #000;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.popup-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-right img {
    max-width: 100%;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
        max-width: 95%;
        padding: 10px;
    }
    .close {
        top: 5px;
        right: 10px;
        font-size: 25px; /* Smaller close button for mobile */
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 10px;
    }
    .apply-link {
        font-size: 14px;
        padding: 8px;
    }
    .popup-left p {
        font-size: 14px;
    }
}
