:root {
  --text-heading: #212529;
  --text-body: #6c757d;
  --bg-light: #ffffff;
  --icon-gray: #e0e0e0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-heading);
  margin: 0;
  overflow-x: hidden;
}

.text-opti-blue {
  color: #2563eb;
}

.careers-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO SECTION */
#service-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, rgba(40,40,70,0.9), rgba(60,50,110,0.85)),
        url("/wp-content/themes/arame/assets/images/careers/headimg.jpg") center/cover no-repeat;
    padding: 6rem 20px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    max-width: 850px;
    line-height: 1.25;
    margin: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: #fff;
    max-width: 700px;
    margin: 20px auto 0;
}

/*HERO SECTION*/
.hero-section {
  display: flex;
  align-items: flex-start;
  padding: 80px 25px 60px;
  gap: 20px;
}

.hero-content {
  flex: 1 1 45%;
  padding-right: 40px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1rem);
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 100%;
}

.apply-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #0081CC;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.apply-button:hover {
  background-color: #267bf4;
}

.hero-image {
  flex: 1 1 55%;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/*BENEFITS SECTION*/
.benefits-section {
  padding: 40px 25px;
  margin-bottom: 80px;
}

.benefits-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.benefit-item {
  flex: 1 1 22%;
  text-align: center;
  padding: 15px;
  min-width: 200px;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border: 1px solid var(--icon-gray);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.icon-wrapper i {
  font-size: 24px;
  color: var(--text-heading);
}

.icon-wrapper.unlimited::before {
  content: '\2731';
  font-size: 30px;
  color: var(--text-heading);
}

.icon-wrapper.creative::before {
  content: '\262C';
  font-size: 30px;
  color: var(--text-heading);
}

.icon-wrapper.remotely::before {
  content: '\2708';
  font-size: 24px;
  color: var(--text-heading);
}

.icon-wrapper.vision::before {
  content: '\25CD';
  font-size: 30px;
  color: var(--text-heading);
}

.benefit-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
}

/*VISION SECTION*/
.vision-section {
  display: flex;
  align-items: flex-start;
  padding: 60px 25px 80px;
  gap: 30px;
}

.vision-images {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.vision-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.vision-images .img-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 300px;
}

.vision-images .img-top-right,
.vision-images .img-bottom-right {
  height: 140px;
}

.vision-content {
  flex: 1 1 55%;
  padding-left: 60px;
}

.vision-content h2 {
  font-size: clamp(1.8rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.vision-content p {
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  color: var(--text-body);
  line-height: 1.6;
  max-width: 100%;
}

/*JOB LISTINGS*/
.job-openings {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.job-header {
  text-align: center;
  margin-bottom: 40px;
}

.job-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0081CC;
}

.job-header p,
.job-header span {
  font-weight: 200;
}

.job-header p { color: #0096ec; }
.job-header span { color: #002066; }

.job-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 30px;
}

.job-search, .job-department {
  padding: 10px 14px;
  border-radius: 30px;
  border: 1px solid #ddd;
  flex: 1 1 200px;
}

/* JOB ROWS */
.job-category-title {
  font-size: 1.2rem;
  margin: 40px 0 10px;
}

.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
  cursor: pointer;
  flex-wrap: wrap;
}

.job-left {
  display: flex;
  gap: 16px;
  max-width: 80%;
  flex-wrap: wrap;
}

.job-icon {
  width: 40px;
  height: 40px;
  background: #eef3ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-meta span {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 6px;
}

.apply-btn {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/*MODALS*/
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.show { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-large { max-width: 900px; }
.modal-medium { max-width: 600px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-badge {
  background: #eef3ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.modal-desc {
  margin: 20px 0;
  color: #444;
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.info-grid div span { display: block; margin-top: 6px; color: #555; }

.section-block { margin-bottom: 28px; }

.section-block h4 { margin-bottom: 12px; font-size: 1.05rem; }

.section-block ul { padding-left: 18px; color: #555; }

.section-block li { margin-bottom: 6px; }

/* APPLY FORM */
.apply-form { display: grid; gap: 14px; }

.apply-form input,
.apply-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.full-btn { width: 100%; }

.primary-btn {
  background: #000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

/*RESPONSIVE*/
@media (max-width: 1200px) {
  .hero-section { padding: 60px 20px 40px; gap: 15px; }
  .hero-content h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
  .hero-content p { font-size: clamp(0.95rem, 2vw, 1rem); }
  .vision-content { padding-left: 40px; }
}

@media(max-width: 992px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 40px;
  }

  .hero-content { padding-right: 0; }
  .hero-image { margin-bottom: 30px; }
  .benefits-row { justify-content: center; }
  .benefit-item { flex: 1 1 45%; margin-bottom: 30px; }
  .vision-section { flex-direction: column; align-items: center; text-align: center; }
  .vision-content { padding-left: 0; margin-top: 40px; }
  .vision-images { width: 90%; justify-content: center; }
  .vision-images .img-main { height: 200px; }
  .vision-images .img-top-right,
  .vision-images .img-bottom-right { height: 95px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 768px) {
  .job-filters { flex-direction: column; align-items: stretch; }
  .job-search, .job-department { flex: 1 1 100%; }
  .job-left { max-width: 100%; }
}

@media(max-width: 576px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.95rem; }
  .benefit-item { flex: 1 1 80%; }
  .vision-images .img-main { height: 180px; }
  .vision-images .img-top-right, .vision-images .img-bottom-right { height: 80px; }
}

@media(max-width: 360px) {
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p { font-size: 0.9rem; }
  .benefit-item { flex: 1 1 100%; }
}