:root {
  --arrow-size: 3.125rem; /* 50px = 3.125rem */
  --career-text-size: 2.1875rem; /* 35px = 2.1875rem */
  --right-box-text-size: 1.875rem; /* 30px = 1.875rem */
  --header-size: 7.5rem; /* 90px = 5.625rem */
}

#careers-section {
  font-family: "GothamBold", sans-serif;
  background-color: #edebde;
}

#head-careers {
  display: flex;
  place-content: center;
  background-color: #1a1a1a;
  height: 40vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#head-careers h1 {
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  font-size: var(--header-size);
}

.arrow-head {
  width: var(--arrow-size);
  height: var(--arrow-size);
}

.arrow-head img {
  max-width: 100%;
  width: 3.125rem; /* 50px = 3.125rem */
}

.careers-container {
  margin: 3.3rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.725rem; /* 10px = 0.625rem */
  justify-content: center;
  align-items: center;
  color: white;
}
.careers-item:before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 0.3em;
  background: linear-gradient(
    90deg,
    #ffc502,
    #88d04a,
    #028dfe,
    #425cf8,
    #8336cd,
    #fc7c0b,
    #f93f14
  );
  border-radius: inherit;
  --m: conic-gradient(#000 0 0);
  mask: var(--m) content-box exclude, var(--m);
  pointer-events: none;
  outline: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.careers-item {
  width: 100%;
  height: 10rem; /* 160px = 10rem */
  display: grid;
  grid-template-columns: 0.2fr 2fr 1fr;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  background-color: #333333;
  border-radius: 1.25rem; /* 20px = 1.25rem */
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.careers-item:hover::before {
  opacity: 1;
}
.careers-item:hover {
  background-color: transparent;
}
.left-box {
  width: 6.25rem; /* 100px = 6.25rem */
  margin: 1.25rem; /* 20px = 1.25rem */
  transition: all 0.3s ease;
}

.left-box img {
  width: 100%;
  height: auto;
  -webkit-filter: invert(100%);
  filter: invert(100%);
}

.careers-name {
  padding-left: 1.25rem; /* 20px = 1.25rem */
  width: 100%;
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 0.3125rem; /* 5px = 0.3125rem */
  font-size: var(--career-text-size);
  border-right: 2px solid #666;
}

.right-box {
  display: flex;
  font-size: var(--right-box-text-size);
  justify-content: center;
}

.right-box > p {
  padding: 0;
  margin: 0;
  font-family: "GothamBook", sans-serif;
}
.careers-name span,
.right-box p {
  transition: color 0.3s ease;
}

.arrow-bottom {
  width: 100%;
  height: 10vh;
  padding: 3.125rem 0; /* 50px = 3.125rem */
  display: grid;
  place-content: center;
}

.arrow-bottom img {
  width: var(--arrow-size);
}

.careers-item:hover .left-box img {
  content: url("https://wyndigitalgroup.com/wp-content/uploads/2025/03/wyn.png");
  -webkit-filter: invert(0%); /* Safari/Chrome */
  filter: invert(0%);
  width: 7.5rem; /* 120px = 7.5rem */
  height: 7.5rem; /* 120px = 7.5rem */
}

.careers-item:hover .careers-name span {
  color: #1a1a1a;
}

.careers-item:hover .right-box p {
  color: #1a1a1a;
}
.popup-content {
  background-color: #edebde;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.popup-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(
    0.25turn,
    #ffc502,
    #88d04a,
    #028dfe,
    #425cf8,
    #8336cd,
    #fc7c0b,
    #f93f14
  );
  border-image-slice: 1;
  width: 100%;
}

.popup-header h5 {
  margin: 0 auto;
  text-align: center;
  font-size: 2rem;
}
.popup-header h6 {
  font-size: 1rem;
}
.popup-header button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.popup-content {
  font-family: "GothamBold", sans-serif;
  padding: 10px;
  z-index: 2050 !important;
}

.popup-content p {
  font-family: "GothamBook", sans-serif;
}
.popup-content form {
  display: grid;
}
.popup-content form div {
  font-family: "GothamBook", sans-serif;
}
.popup-content form button {
  place-self: center;
  background-color: #000000 !important;
}
.upload-text {
  position: relative;
}

.file-size-note {
  display: block;
  margin-top: 5px; /* เพิ่มระยะห่างระหว่างข้อความ */
}

.upload-box {
  position: relative;
  border: 1px solid #666;
  border-radius: 10px;
  padding: 40px 20px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  min-height: 100px;
}

.upload-label {
  position: absolute;
  top: 12px;
  left: 16px;
  color: #888;
}

.upload-icon {
  background-color: #cbcbcb;
  border-radius: 50%;
  padding: 12px;
  font-size: 20px;
  color: #888; /* สีของไอคอน, ปรับตามใจเลย */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.upload-text {
  margin-top: 10px;
  font-size: 1rem;
  color: #888;
}
