/* Benefits Component Styling */

/* Main Benefits Section */
.benefits-section {
  max-width: 1200px;
  padding: 64px 0;
  margin: 0 auto;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.benefits-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Benefits Grid */
.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c0c0c2;
}

.benefit-row {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #c0c0c2;
}

.benefit-row:last-child {
  border-bottom: none;
}

.benefit-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 25px 52px;
  width: 288px;
  height: 100px;
  background: #fff;
  border-right: 1px solid #c0c0c2;
}

.benefit-icon-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.benefit-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  fill: #83ff94;
  stroke: #081219;
  stroke-width: 0.75px;
}

.benefit-icon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.benefit-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  color: #060923;
  margin: 0;
}

.benefit-tags {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 34px 20px;
  flex: 1;
  background: #fff;
}

.benefit-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  height: 32px;
  background: #f2f3f5;
  border: 1px solid #dedfe0;
  border-radius: 999px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
}

/* Healthy and Joyful Life Section */
.healthy-joyful-life-title {
  font-weight: 700;
  font-size: 25px;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: left;
}
.healthy-joyful-life-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(291px, 1fr));
  gap: 12px;
  justify-items: center;
}

.healthy-joyful-life-card {
  background: #fafafa;
  border: none;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: none;
  transition: all 0.3s ease;
  min-height: 180px;
  width: 291px;
  text-align: center;
}

.benefit-card-box {
  position: relative;
}

.benefit-card-box .outline {
  content: "";
  position: absolute;
  background: var(--primary-color);
  transition: 0.3s;
}

.benefit-card-box .outline.top {
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  width: 0;
}

.benefit-card-box .outline.bottom {
  bottom: 0;
  right: 0;
  height: 3px;
  width: 0;
}

.benefit-card-box .outline.left {
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
}

.benefit-card-box .outline.right {
  right: 0;
  bottom: 0;
  width: 3px;
  height: 0;
}
.benefit-card-box:hover .outline.top {
  width: 100%;
}
.benefit-card-box:hover .outline.bottom {
  width: 100%;
}
.benefit-card-box:hover .outline.left {
  height: 100%;
}
.benefit-card-box:hover .outline.right {
  height: 100%;
}


@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

.healthy-joyful-life-card-image {
  margin: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.healthy-joyful-life-card-image img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.healthy-joyful-life-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.04rem;
  min-height: 31px;
}

.healthy-joyful-life-card-description {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  letter-spacing: 0.04rem;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word; 
  min-height: 21px;
}

/* Workplace Section */
.workplace-title {
  font-weight: 700;
  font-size: 25px;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: left;
}

.workplace-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.workplace-card {
  background: #fafafa;
  border: none;
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: none;
  transition: none;
  min-height: 180px;
  width: 291px;
}

.workplace-card:hover {
  transform: none;
  box-shadow: none;
}

.workplace-card-image {
  margin: 0;
  text-align: center;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workplace-card-image img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
}

.workplace-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.04rem;
  min-height: 31px;
}

.workplace-card-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word; 
  min-height: 21px;
}

/* Leave & Vacation Policy Section */

.leave-vacation-policy-title {
  font-weight: 700;
  font-size: 25px;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: left;
}

.leave-vacation-policy-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.leave-vacation-policy-card {
  background: #fafafa;
  border: none;
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: none;
  transition: none;
  min-height: 180px;
}

.leave-vacation-policy-card:hover {
  transform: none;
  box-shadow: none;
}

.leave-vacation-policy-card-image {
  margin: 0;
  text-align: center;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leave-vacation-policy-card-image img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
}

.leave-vacation-policy-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.04rem;
  min-height: 31px;
}

.leave-vacation-policy-card-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word; 
  letter-spacing: 0.04rem;
  min-height: 21px;
}

/* Self Development Section */

.self-development-title {
  font-weight: 700;
  font-size: 25px;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: left;
}

.self-development-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.self-development-card {
  background: #fafafa;
  border: none;
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: none;
  transition: none;
  min-height: 180px;
}

.self-development-card:hover {
  transform: none;
  box-shadow: none;
}

.self-development-card-image {
  margin: 0;
  text-align: center;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.self-development-card-image img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
}

.self-development-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.04rem;
  min-height: 31px;
}

.self-development-card-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word; 
  letter-spacing: 0.04rem;
  min-height: 21px;
}

@media (max-width: 1439px) {
  .benefits-section {
    max-width: 896px;
    padding: 56px 0;
  }

  .benefits-container {
    max-width: 896px;
    gap: 80px;
  }

  .healthy-joyful-life-cards {
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  }

  .healthy-joyful-life-card {
    min-height: 167px;
    width: 215px;
  }

  .healthy-joyful-life-title {
    font-size: 21px;
  } 

  .healthy-joyful-life-card-title {
    font-size: 16px;
    letter-spacing: 0.04rem;
    min-height: 19px;
  }

  .healthy-joyful-life-card-description {
    font-size: 14px;
    letter-spacing: 0.04rem;
    min-height: 17px;
  }

  /* Workplace Section */
  .workplace-cards {
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  }

  .workplace-card {
    min-height: 167px;
    width: 215px;
  }

  .workplace-title {
    font-size: 21px;
  } 

  .workplace-card-title {
    font-size: 16px;
    letter-spacing: 0.04rem;
    min-height: 19px;
  }

  .workplace-card-description {
    font-size: 14px;
    letter-spacing: 0.04rem;
    min-height: 17px;
  }

  /* Leave & Vacation Policy Section */
  .leave-vacation-policy-cards {
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  }

  .leave-vacation-policy-card {
    min-height: 167px;
    width: 215px;
  }

  .leave-vacation-policy-title {
    font-size: 21px;
  } 

  .leave-vacation-policy-card-title {
    font-size: 16px;
    letter-spacing: 0.04rem;
    min-height: 19px;
  }

  .leave-vacation-policy-card-description {
    font-size: 14px;
    letter-spacing: 0.04rem;
    min-height: 17px;
  }

  /* Self Development Section */
  .self-development-cards {
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  }

  .self-development-card {
    min-height: 167px;
    width: 215px;
  }

  .self-development-title {
    font-size: 21px;
  } 

  .self-development-card-title {
    font-size: 16px;
    letter-spacing: 0.04rem;
    min-height: 19px;
  }

  .self-development-card-description {
    font-size: 14px;
    letter-spacing: 0.04rem;
    min-height: 17px;
  }
}

@media (max-width: 1023px) {
  .benefits-section {
    max-width: 688px;
  }

  .benefits-container {
    max-width: 688px;
    gap: 80px;
  }

  /* Healthy & Joyful Life */
  .healthy-joyful-life-cards {
    grid-template-columns: repeat(auto-fit, minmax(338px, 1fr));
  }
  .healthy-joyful-life-card {
    width: 338px;
    min-height: 167px;
  }
  .healthy-joyful-life-card-title {
    font-size: 16px;
  }
  .healthy-joyful-life-card-description {
    font-size: 14px;
  }

  /* Workplace Section */
  .workplace-cards {
    grid-template-columns: repeat(auto-fit, minmax(338px, 1fr));
  }
  .workplace-card {
    width: 338px;
    min-height: 167px;
  }
  .workplace-card-title {
    font-size: 16px;
  }
  .workplace-card-description {
    font-size: 14px;
  }

  /* Leave & Vacation Policy Section */
  .leave-vacation-policy-cards {
    grid-template-columns: repeat(auto-fit, minmax(338px, 1fr));
  }
  .leave-vacation-policy-card {
    width: 338px;
    min-height: 167px;
  }
  .leave-vacation-policy-card-title {
    font-size: 16px;
  }
  .leave-vacation-policy-card-description {
    font-size: 14px;
  }

  /* Self Development Section */
  .self-development-cards {
    grid-template-columns: repeat(auto-fit, minmax(338px, 1fr));
  }
  .self-development-card {
    width: 338px;
    min-height: 167px;
  }
  .self-development-card-title {
    font-size: 16px;
  }
  .self-development-card-description {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .ceo-section {
    max-width: 343px;
  }

  .ceo-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }

  .ceo-image {
    width: 100%;
    height: 394.65px;
  }

  .ceo-image .green-square {
    width: 237.68px;
    height: 240.58px;
  }

  .ceo-image img {
    width: 326.05px;
    height: 378.9px;
  }

  .ceo-image {
    flex: 1 1 394.65px;
  }

  .ceo-text {
    width: 343px;
  }
}

@media (max-width: 767px) {
  .benefits-section {
    padding: 48px 0;
    max-width: 343px;
  }

  .benefits-container {
    max-width: 343px;
    gap: 48px;
  }

  /* Healthy & Joyful Life */
  .healthy-joyful-life-cards {
    grid-template-columns: repeat(auto-fit, minmax(165.5px, 1fr));
  }
  .healthy-joyful-life-card {
    width: 165.5px;
    min-height: 154px;
  }
  .healthy-joyful-life-title {
    font-size: 19px;
    min-height: 27px;
    margin-bottom: 16px;
  }
  .healthy-joyful-life-card-title {
    font-size: 16px;
  }
  .healthy-joyful-life-card-description {
    font-size: 13px;
    min-height: 16px;
  }

  /* Workplace Section */
  .workplace-cards {
    grid-template-columns: repeat(auto-fit, minmax(165.5px, 1fr));
  }
  .workplace-card {
    width: 165.5px;
    min-height: 154px;
  }
  .workplace-title {
    font-size: 19px;
    min-height: 27px;
    margin-bottom: 16px;
  }
  .workplace-card-title {
    font-size: 16px;
  }
  .workplace-card-description {
    font-size: 13px;
    min-height: 16px;
  }

  /* Leave & Vacation Policy Section */
  .leave-vacation-policy-cards {
    grid-template-columns: repeat(auto-fit, minmax(165.5px, 1fr));
  }
  .leave-vacation-policy-card {
    width: 165.5px;
    min-height: 154px;
  }
  .leave-vacation-policy-title {
    font-size: 19px;
    min-height: 27px;
    margin-bottom: 16px;
  }
  .leave-vacation-policy-card-title {
    font-size: 16px;
  }
  .leave-vacation-policy-card-description {
    font-size: 13px;
    min-height: 16px;
  }

  /* Self Development Section */
  .self-development-cards {
    grid-template-columns: repeat(auto-fit, minmax(165.5px, 1fr));
  }
  .self-development-card {
    width: 165.5px;
    min-height: 154px;
  }
  .self-development-title {
    font-size: 19px;
    min-height: 27px;
    margin-bottom: 16px;
  }
  .self-development-card-title {
    font-size: 16px;
  }
  .self-development-card-description {
    font-size: 13px;
    min-height: 16px;
  }

  .healthy-joyful-life-card-image,
  .healthy-joyful-life-card-image img,
  .workplace-card-image,
  .workplace-card-image img,
  .leave-vacation-policy-card-image,
  .leave-vacation-policy-card-image img,
  .self-development-card-image,
  .self-development-card-image img {
    width: 48px;
    height: 48px;
  }
}



.benefits-admin-overview {
  margin: 20px 0;
}
.benefits-stats {
  display: flex;
  gap: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  min-width: 120px;
}
.stat-card h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #0073aa;
}
.stat-card p {
  margin: 0;
  color: #666;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.benefit-cards-container {
  margin: 20px 0;
}
.sortable-cards {
  margin-bottom: 20px;
}
.benefit-card-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 15px;
  cursor: move;
}
.benefit-card-item.ui-sortable-helper {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}
.card-handle {
  cursor: move;
  color: #999;
}
.card-handle:hover {
  color: #333;
}
.card-title-toggle {
  margin: 0;
  color: #333;
  flex: 1;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-title-toggle:hover {
  color: #0073aa;
}
.card-title-toggle .toggle-icon {
  transition: transform 0.3s ease;
  color: #999;
}
.card-title-toggle.collapsed .toggle-icon {
  transform: rotate(-90deg);
}
.card-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
}
.card-content.collapsed {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
}
.form-row {
  display: flex;
  gap: 15px;
}
.form-col {
  flex: 1;
}
.form-col.full-width {
  flex: none;
  width: 100%;
}
.form-col label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
.icon-upload-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.icon-upload-preview {
  min-height: 80px;
  display: flex;
  align-items: center;
}
.icon-upload-preview img {
  border: 2px solid #ddd;
}
.tags-input-container {
  margin-bottom: 10px;
}
.tags-list {
  margin-bottom: 10px;
}
.tag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tag-input {
  flex: 1;
  max-width: 300px;
}
.remove-tag {
  background: #dc3232;
  border-color: #dc3232;
  color: white;
}
.remove-tag:hover {
  background: #c92626;
  border-color: #c92626;
}
.remove-card {
  background: #dc3232;
  border-color: #dc3232;
  color: white;
}
.remove-card:hover {
  background: #c92626;
  border-color: #c92626;
}
.remove-icon-button {
  background: #dc3232;
  border-color: #dc3232;
  color: white;
}
.remove-icon-button:hover {
  background: #c92626;
  border-color: #c92626;
}
