.testemonial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Ensure spacing on smaller screens */
}

.testemonial-modal.show {
    opacity: 1;
    visibility: visible;
}

.testemonial-modal-content {
    position: relative;
    width: 100%;
    max-width: 700px; /* Default max width for larger screens */
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
    max-height: 90vh; /* Ensure it fits on smaller screens */
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.05),
        0 2px 2px rgba(0,0,0,0.05),
        0 4px 4px rgba(0,0,0,0.05),
        0 8px 8px rgba(0,0,0,0.05),
        0 16px 16px rgba(0,0,0,0.05),
        0 32px 32px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.testemonial-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.testemonial-modal-header {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.testemonial-modal-image-wrapper {
    flex: 0 0 auto;
    width: 150px; /* Default size for larger screens */
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.testemonial-modal-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fit;
}

.testemonial-modal-profile-info {
    flex: 1;
    padding-top: 10px;
}

.testemonial-modal-name {
    font-size: var(--ssbond-m-h2);
    font-weight: 600;
    margin-bottom: var(--ssbond-d-b1);
    color: #333;
}

.testemonial-modal-role {
    font-size: var(--ssbond-d-desc2);
    color: #666;
    margin-bottom: 15px;
}

.testemonial-modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.testemonial-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    color: var(--ssbond-blue);
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.testemonial-modal-close:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .testemonial-modal-content {
        max-width: 600px; /* Slightly narrower modal for tablets */
    }
    .testemonial-modal-image-wrapper {
        width: 120px; /* Adjust image size */
    }
    .testemonial-modal-name {
        font-size: var(--ssbond-d-desc1);
    }
    .testemonial-modal-text {
        font-size: var(--ssbond-d-desc2);
    }
}

@media (max-width: 768px) {
    .testemonial-modal-content {
        max-width: 90%; /* Take most of the screen width on smaller devices */
        max-height: 85vh; /* Reduce height for smaller devices */
    }
    .testemonial-modal-image-wrapper {
        width: 100%; /* Smaller image size */
    }
    .testemonial-modal-name {
        font-size: 18px;
    }
    .testemonial-modal-text {
        font-size: 13px;
    }
}
@media (max-width: 576px) {
    .testemonial-modal-header{
        flex-direction: column;
        margin-top: 35px;
    }
    .testemonial-modal-image-wrapper {
        width: calc(100%- 80px) !important; /* Smaller width */
        height: 100px !important; /* Match height to width */
    }
}
@media (max-width: 480px) {
    .testemonial-modal-content {
        max-width: 95%; /* Almost full width for small phones */
        max-height: 80vh; /* Reduce further for small screens */
    }
    .testemonial-modal-image-wrapper {
        /* width: 80px;  */
        width: calc(100%- 80px); 
    }
    .testemonial-modal-name {
        font-size: 16px;
    }
    .testemonial-modal-text {
        font-size: var(--ssbond-d-btn-card);
    }
    .testemonial-modal-close {
        font-size: var(--ssbond-m-h2); /* Smaller close icon */
    }
}
body.modal-open {
    overflow: hidden; /* Prevent background scrolling when modal is open */
}
.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center; /* Center the content vertically */
    justify-content: center; /* Center the content horizontally */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px; /* Ensure spacing on smaller screens */
}


.job-modal.show {
    opacity: 1;
    visibility: visible;
}

.job-modal-content {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 900px; /* Adjust for larger screens */
    max-height: 90vh; /* Restrict height for smaller screens */
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;

}

.job-modal-detail {
    flex: 1;
    max-width: 50%;
    margin-top: var(--ssbond-d-t2);
}

.job-modal-form {
    flex: 1;
    max-width: 50%;
    margin-top: var(--ssbond-d-t2);
}
.job-modal-detail h2{
    margin-bottom: var(--ssbond-d-b2);
    
    
}
.job-modal-detail .mainLocation{
    display: flex;
    border-bottom: 2px solid var(--ssbond-black);
    margin-bottom: var(--ssbond-d-b2);
}
.job-modal-detail p{
    margin-bottom: var(--ssbond-d-b2);
    
}
.job-modal-content-mobile {
    flex-direction: column; /* Stack items vertically on small screens */
}
.job-modal-detail,
.job-modal-form {
    padding: 20px;
    overflow-y: auto; /* Enable scrolling inside the modal */
    flex: 1;
}
.job-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    color: var(--ssbond-blue);
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.job-modal-close:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .job-modal-content {
        max-width: 700px;
    }
    .job-modal-detail, .job-modal-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .job-modal-content {
        flex-direction: column; /* Stack content vertically on smaller devices */
    }
    .job-modal-detail, .job-modal-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .job-modal-content {
        max-width: 95%;
        max-height: 80vh;
    }
    .job-modal-detail {
        font-size: 14px;
    }
    .job-modal-form {
        font-size: 14px;
    }
    .job-modal-close {
        font-size: 18px;
    }
    
}
