/* =========================
   Careers Page Base
========================= */

.careers-page {
  width: 100%;
  overflow-x: hidden;
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  margin-bottom: 3rem;
}

/* Why Join Us spacing tweak */
.why-join-us-section {
  padding-top: 3rem; /* 比其他 section 稍微紧一点 */
}

.why-join-us-container {
    display: flex;
    align-items: center;

    justify-content: space-between; /* ⭐ 改这里 */
    max-width: 1200px;
    margin: 2rem auto 0;             /* ⭐ 改这里 */
    gap: 3rem;                        /* ⭐ 稍微拉开 */

    flex-wrap: wrap;
}

.why-join-us-container img {
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
}

.why-join-us-container p {
    flex: 1;
    text-align: justify;
    line-height: 1.7;
}

#why-join-us {
  margin: 0;
}

.hr-email {
	text-decoration: none;
}

.hr-email:hover {
	text-decoration: underline;
}

/* 影片外层容器 */
.video-wrapper {
    position: relative;
    max-width: 900px;      /* ⭐恢复成你截图大小 */
    margin: 0 auto;
    width: 100%;           /* 让它在小萤幕可以自动缩小 */
    border-radius: 12px;
    overflow: hidden;      /* 水印文字不会溢出 */
}

/* 影片本体 */
#corporateVideo {
    width: 100%;           /* ⭐保持比例自动缩放 */
    height: auto;
    border-radius: 12px;
}

/* ============================
   水印：放左上角（更大、更亮）
============================ */
.video-watermark-text {
    position: absolute;
    top: 12px;
    left: 14px;

    font-size: 18px;               /* ⭐更大字体 */
    font-weight: 700;              /* 加粗一点更明显 */
    color: rgba(194, 212, 255, 0.65);
    
    text-shadow: 
        0px 0px 6px rgba(0,0,0,0.8),  /* ⭐强阴影，确保任何画面都看得见 */
        0px 0px 12px rgba(0,0,0,0.4);

    pointer-events: none;   /* 不挡住影片按钮 */
    z-index: 20;
}


/* 禁用右键、防选中 */
#corporateVideo {
    --webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* =============================
   NEW EMPLOYEE BENEFITS GRID
   (No Scrollbar, No Track, No Arrows)
   3D Auto Pop-out Animation
============================= */

/* Main grid layout */
/* Smaller Employee Benefits Grid */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* ← 固定一行五个 */
    gap: 28px;
    padding: 30px 40px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.benefit-grid.benefit-bgpattern {
    background-color: #f5f7fa; /* 比白再深 4% */
    background-image: radial-gradient(circle at 1px 1px, #d2d9e6 1.2px, transparent 1.2px);
    background-size: 20px 20px;
}

/* Smaller cards */
.benefit-card {
    border-radius: 14px;
    padding: 16px 8px;  /* 卡片变小 */
    text-align: center;
    display: flex;              /* ⭐ 新增 */
    flex-direction: column;     /* ⭐ 新增 */
    align-items: center;        /* ⭐ 新增 */
    justify-content: center;    /* ⭐ 新增 */ 
    border: 2px solid rgba(0,0,0,0.06);     /* 轻微边框 */
    box-shadow: inset 0 0 12px rgba(0,0,0,0.03),    /* 内阴影 • 增加深度 */
                      0 6px 16px rgba(0,0,0,0.15);        /* 外阴影 • 更明显 */
    transition: transform .45s ease, box-shadow .45s ease;
    transform-style: preserve-3d;
}

/* HEALTH: Light Blue */
.benefit-health {
    background: 
        linear-gradient(145deg, rgba(255,255,255,0.15), rgba(215,227,248,0.90)),
        rgba(255,255,255,0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    /* 高光反射 */
    box-shadow: inset 0 1px 6px rgba(255,255,255,0.55),
                inset 0 -1px 4px rgba(0,0,0,0.08);
}

/* WORKPLACE: Light Lavender (B option) */
.benefit-work {
    background: 
        linear-gradient(145deg, rgba(255,255,255,0.15), rgba(224,216,248,0.90)),
        rgba(255,255,255,0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    box-shadow: inset 0 1px 6px rgba(255,255,255,0.55),
                inset 0 -1px 4px rgba(0,0,0,0.08);
}

/* REWARD: Soft Gold */
.benefit-reward {
    background: 
        linear-gradient(145deg, rgba(255,255,255,0.15), rgba(247,239,220,0.90)),
        rgba(255,255,255,0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    box-shadow: inset 0 1px 6px rgba(255,255,255,0.55),
                inset 0 -1px 4px rgba(0,0,0,0.08);
}

/* CULTURE: Soft Coral */
.benefit-culture {
    background: 
        linear-gradient(145deg, rgba(255,255,255,0.15), rgba(254,212,245,0.90)),
        rgba(255,255,255,0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    box-shadow: inset 0 1px 6px rgba(255,255,255,0.55),
                inset 0 -1px 4px rgba(0,0,0,0.08);
}

/* Smaller icon */
.benefit-card img {
    width: 70px;
    height: 70px;   /* 图标缩小 */
    object-fit: contain;
    margin-bottom: 10px;
}

/* Smaller text */
.benefit-card p {
    margin: 0;
}

/* Smaller pop animation */
.benefit-card.pop {
    transform: translateY(-12px) scale(1.07) rotateX(5deg) rotateY(-4deg);
    box-shadow: 0 14px 30px rgba(0,0,0,0.20);
}

/* Hover - also缩小 */
.benefit-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.20);
}

.benefit-card.benefit-gradient {
    background: linear-gradient(145deg, #ffffff, #f4f7ff);
}

@keyframes softBreath {
    0%   { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    50%  { box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
    100% { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
}

.benefit-card.benefit-breath {
    animation: softBreath 5s ease-in-out infinite;
}

.benefit-card.benefit-spotlight.pop {
    box-shadow:
        0 18px 40px rgba(0,0,0,0.22),
        0 0 40px rgba(86,117,214,0.65),
        0 0 70px rgba(86,117,214,0.45);
}


@keyframes floatIcon {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.benefit-card.benefit-float img {
    animation: floatIcon 3s ease-in-out infinite;
}

/*Corporate video*/
.cor-vi {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    padding: 0 20px;
	max-width: 100%;
}

.cor-vi video {
    width: 95vw;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}   

/* ================================
   TESTIMONIAL — CARD DESIGN VERSION
   Testimonial Container
============================ */
.testimonial-container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 120px;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

/* ================================
   Premium Testimonial Card Style
================================ */
.testimonial-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff, #e1e8ff);
    padding: 90px 50px 60px 50px; 
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 90%;
}

/* Left Quote Background */
.testimonial-card::before {
    content: "“";
    position: absolute;
    top: -25px;
    left: 25px;
    font-size: 220px;
    color: rgba(0,0,0,0.07);
    font-family: Georgia, serif;
    font-weight: bold;
    pointer-events: none;
    z-index: 0;
}

/* Right Quote Background */
.testimonial-card::after {
    content: "”";
    position: absolute;
    bottom: -40px;
    right: 40px;
    font-size: 200px;
    color: rgba(0,0,0,0.10);
    font-family: Georgia, serif;
    font-weight: bold;
    pointer-events: none;
    z-index: 0;
}

/* ============================
   Text Overlays
============================ */
.testimonial-text,
.testimonial-text .quote,
.testimonial-text .name,
.testimonial-text .department {
    position: relative;
    z-index: 2;
}

.quote {
    font-style: italic;
    margin-bottom: 25px;
}

.name {
    margin-bottom: 5px;
}

/* ============================
   Navigation Buttons
============================ */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.6);
}

.prev { left: 15px; }
.next { right: 15px; }

#why-join-us,
#employee-benefit,
#corporate-video,
#available-vacancy,
#testimonial {
	scroll-margin-top: 120px;
}

