/* Careers Modal Styles */

/* Career trigger buttons styled like service cards */
.career-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;                      /* full width of container */
    max-width: 320px;                 /* card-like width */
    min-height: 140px;                /* taller, card-like */
    padding: 20px;
    background-color: #fff !important; /* white background */
    color: #CEA259 !important;         /* gold text */
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;              /* rounded corners */
    text-align: center;
    text-decoration: none !important;
    border: 2px solid #CEA259 !important; /* gold border */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
    cursor: pointer;
}

.career-btn:hover {
    background-color: #CEA259 !important; /* gold fill on hover */
    color: #fff !important;               /* white text on hover */
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transform: translateY(-2px);          /* subtle lift */
}

.career-btn:visited {
    color: #fff !important;                /* prevent purple visited links */
}

/* Reset link styles inside modal */
.modal-footer a.apply-btn,
.modal-footer a.apply-btn:link,
.modal-footer a.apply-btn:visited,
.modal-footer a.apply-btn:hover,
.modal-footer a.apply-btn:active {
    text-decoration: none !important;
    color: #fff !important;
}

/* Apply Now button styling */
.apply-btn {
    display: inline-block;
    background-color: #CEA259;   /* gold background */
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    border: none;
}

.apply-btn:hover {
    background-color: #b38a47;   /* darker gold on hover */
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.apply-btn:visited {
    color: #fff !important;             /* prevent purple visited links */
}

/* Modal window */
.modal-window {
    max-width: 600px;       /* smaller width */
    max-height: 75vh;       /* limit height */
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: linear-gradient(to bottom, #fff, #f9f9f9);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: fadeInUp 0.35s ease-out;
    display: flex;
    flex-direction: column;
}

/* Scrollable content */
.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Sticky footer */
.modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 16px;
    text-align: right;
}

/* Circular close button */
.close-modal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f1f1;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 12px;    /* pushes it inward from the edge */
}

.close-modal:hover {
    background: #CEA259;
    color: #fff;
    border-color: #b38a47;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Header bar */
.modal-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 24px;   /* more breathing room */
}

/* Title styling */
.modal-header h4 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

/* Scrollbar styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #CEA259;
    border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #b38a47;
}
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: #CEA259 #f1f1f1;
}

.modal-overlay {
    position: fixed;
    inset: 0;                          /* full screen */
    background-color: rgba(0,0,0,0.7); /* dark shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;                       /* above page content */
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}