/* opportunities Styles */

.opportunities-boxes-wrapper {
    max-width: 1200px;
    margin: 40px auto;
}

.opportunities-title-image {
    text-align: center;
    margin-bottom: 30px;
}

.opportunities-title-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.opportunities-boxes {
    
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:5px;
}

.opportunities-box-inner p {
    min-height: 147px !important;
}   

.opportunities-box {
    flex: 1;
    max-width: 91%;
    min-height: 250px;
    border: 3px solid orange;
    border-radius: 15px;
   /* padding: 1.5px; */
    cursor: pointer;
    background: #00146ccf;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.opportunities-box:hover:not(.locked) {
    border-color: #333;
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.opportunities-box.locked .opportunities-box-inner{
   background:none;
}
.opportunities-box.locked {
    border-color: #27ae60;
    border-style: solid;
    background: #000a50;
    cursor: not-allowed;
    opacity: 0.9;
}

.opportunities-box.locked:hover {
    transform: none;
    box-shadow: none;
}

.opportunities-box-inner {
    text-align: center;
    width: 100%;
    min-height: 305px;
    background: url(/wp-content/uploads/2025/12/Asset-7plus-sign.png);
    background-size: inherit;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    background-size: 51px;
}

.opportunities-box-inner h3 {
    margin: 0;
    font-size: 17px;
    color: #fac127;
    background: #000a50;
    padding:3%;
    display:none;
    font-weight:800;
    border-radius: 6px 6px 0 0;

}

.opportunities-box-inner img {
    width: 100%;
    height: 220px;
    margin:0;
    border-radius:13px 13px 0 0;
}

.opportunities-box-inner p {
    margin: 0;
    color: white;
    font-size: 13px;
    line-height: 1.5;
    padding: 0 10px;
    text-align:left;
   font-weight:600; 
    font-family:'arial',sans-serif;
}

/* Edit Button */
.opportunities-box-edit {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s ease;
}
.opportunities-box-edit:hover { background: #000; }
.opportunities-box-edit svg { width: 18px; height: 18px; fill: white; }

/* Modal */
.opportunities-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Very high z-index to avoid being hidden by theme/plugin elements */
    z-index: 2147483000;
}

.opportunities-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.opportunities-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    cursor: pointer;
    z-index: 2147482999;
}

.opportunities-modal-box {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 2147483000;
}

.opportunities-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opportunities-modal-close:hover {
    color: #333;
}

.opportunities-modal-box h2 {
    margin: 0 0 25px 0;
    font-size: 22px;
    color: #333;
}

/* Use Montserrat only inside the modal box */
.opportunities-modal-box {
    font-family: 'Montserrat', sans-serif;
}

/* Actions: left-aligned buttons */
.opportunities-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 12px;
}

.opportunities-modal-select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.opportunities-modal-image {
    text-align: center;
    margin: 20px 0;
    min-height: 100px;
}

.opportunities-modal-image img {
    max-width: 100%;
    max-height: 200px;
}

.opportunities-modal-textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    min-height: 120px;
    box-sizing: border-box;
    resize: vertical;
}

.opportunities-char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.opportunities-char-current {
    font-weight: bold;
    color: #666;
}

.opportunities-modal-btn {
    padding: 12px 18px;
    background: #000e3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.opportunities-modal-btn:hover {
       padding: 12px 18px;
    background: #000e3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;

}

.opportunities-modal-cancel {
    padding: 12px 18px;
    background: #000e3c;
    color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}

.opportunities-modal-cancel:hover {
    background: #e9e9e9;
    padding: 12px 18px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;

}

/* Hide previous top-right close button if present */
.opportunities-modal-close {
    display: none !important;
}

/* Results */
.opportunities-results-wrapper {
   /* max-width: 1200px; */
   /*  margin: 40px auto; */
    padding: 0 20px;
}

.opportunities-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.opportunities-result-item {
    background: white;
    color:#000a50;
    border: 2px solid orange;
    border-radius: 15px;
    /*box-shadow: 0 2px 35px rgb(255 255 255);*/
    transition: box-shadow 0.2s ease;
}
    
.opportunities-result-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.opportunities-result-item h3 {
    margin: 0;
    padding:4%;
    font-size: 18px;
    color: #f9b348;
    background:#333;
    text-align:center;
    border-radius:5px 5px 0 0;
    display:none;
}

.opportunities-result-item img {
    max-width: 100%;
    height: 290px;
    margin:  0;
    display: block;
    border-radius: 13px 13px 0px 0px;
   
}

.opportunities-result-item p {
    margin: 0;
    color: #000a50;
    line-height: 1.6;
    font-size: 18px;
    padding:2%;
    min-height:193px;
    font-weight:600;
    font-family: "arial",sans-serif;
    text-align:center;
}

@media (max-width: 768px) {
    .opportunities-boxes {
        flex-direction: column;
        gap: 15px;
    }

    .opportunities-box {
        min-width: 100%;
    }

    .opportunities-modal-box {
        padding: 30px;
    }
}
