@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body.no-scroll {
    overflow: hidden; /* 禁止所有滾動 */
}

:root {
    --dark-blue: #0f2442;  /* 深暗藍（接近黑）*/
    --navy-blue: #1a1a40;  /* 啞光海軍藍 */
    --soft-blue: #2d2d5a;   /* 按鈕用藍 */
    --white: #e6e6e6;       /* 柔白 */
    --black: #1b1b1b;       /* 深黑 */
    --gray: #4e4e4e;
    --highlight: #4dff4d;   /* 柔和軍事綠 */
    --background: #111827;
    --nav: #1f2937;
}

.career-title {
    font-size: 20px;
    height: 25px;
    text-align: center;
    position: relative;
    left: 20px;
    bottom: 400px;
}

.no-jobs-container p {
    width: 240px;
    text-align: center;
    position: relative;
    left: 442px;
    bottom: 220px;
    white-space: nowrap;
}

.career-cards-container {
  display: block !important; /* 覆盖可能的隐藏样式 */
  overflow: visible !important;
}

#career-cards-container {
  display: flex;          /* 使用 Flexbox */
  flex-direction: row;    /* 由左到右排列 (預設值) */
  flex-wrap: wrap;       /* 自動換行 */
  gap: 15px;            /* 卡片間距 */
  justify-content: flex-start; /* 從左邊開始 (預設值) */
}

.job-card {
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid var(--gray);
    position: relative;
    left: 40px;
    bottom: 400px;
    min-height: 210px;
    height: auto;
    width: 300px;
    padding: 15px;
    border-radius: 10px;
    word-break: break-word;  /* 強制所有文字換行 */
    overflow-wrap: anywhere;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    box-shadow: 0 2px 10px white;
    transition: transform 0.3s ease;
    transform: translateY(-5px);
}

.job-card h3 {
    position: relative;
    left: 10px;
    bottom: 10px;
    margin-bottom: 10px;
}

.job-card p {
    position: relative;
    left: 10px;
    bottom: 10px;
    flex-grow: 1; 
    margin-bottom: 15px; 
}

.job-card a {
    position: relative;
    left: 10px;
    top: 25px;
    color: white;
    text-decoration: none;
}

.job-card small {
    position: relative;
    left: 0px;
    top: 30px;
}

.career-function-box {
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid var(--gray);
    width: 300px;
    height: 240px;
    position: relative;
    left: 400px;
    bottom: 210px;
    border-radius: 10px;
}

.career-function-box h2{
    font-size: 15px;
    position: relative;
    left: 100px;
}

.career-function-box button {
    width: 250px;
    height: 30px;
    position: relative;
    left: 25px;
    top: 20px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rbga(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.career-function-box input {
    position: relative;
    top: 10px;
    left: 45px;
    height: 20px;
    width: 200px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 0.5px solid var(--gray);
}


.career-function-box input::placeholder {
    color: #fff;
}

.career-function-box:hover {
    box-shadow: 0px 2px 10px white;
    transition: transform 0.3s ease;
    transform: translateY(-5px);
}

.career-function-box textarea {
    position: relative;
    top: 12px;
    left: 45px;
    height: 20px;
    width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    border: 0.5px solid var(--gray);
    color: #fff;
}

.career-function-box textarea::placeholder {
    color: #fff;
}

.career-function-box input {
    position: relative;
    top: 0px;
    right: 45px;
    margin-top: 20px;
    height: 20px;
    width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    border: 0.5px solid var(--gray);
    color: #fff;
}

.job-link::placeholder {
    color: #fff;
}

.current-career-function-box h2 {
    position: relative;
    bottom: 180px;
}

.current-career {
    position: relative;
    left: 10px;
    bottom: 140px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 0.5px solid var(--gray)
}