/* ───── Process Widget ───── */

.rg-process-section {
  font-family: "General Sans", sans-serif;
}

/* Tabs */
.rg-process-tabs {
  display: flex;
  border-bottom: 4px solid #FFFFFF33;
  margin-bottom: 40px;
  position: relative;
}

.rg-process-tabs-inner {
  display: flex;
  flex: 1;
}

.rg-process-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: color 0.3s ease;
  color: #727272;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.72px;
}

.rg-process-tab sup {
  color: #727272;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -0.28px;
  margin-left: 3px;
}

.rg-process-tab.active sup {
    color: #fff !important;
}

.rg-process-tab:hover {
  color: #aaaaaa;
}

.rg-process-tab.active {
  color: #ffffff;
	background-color:#565656;
	border-radius: 14px 14px 0 0;
}

.rg-process-tab::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.rg-process-tab.active::after {
  background-color: #565656 !important;
}

/* Content */
.rg-process-content {
  display: flex;
  gap: 240px;
}

.rg-process-number {
  color: #535353;
  font-family: "General Sans", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.48px;
  width: 35px;
  flex-shrink: 0;
}

.rg-process-main {
  flex: 1;
  position: relative;
  margin-right: 370px;
}

.rg-process-title {
  color: #FFF;
  font-family: "General Sans", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -1.28px;
  margin-bottom: 16px;
}

.rg-process-desc {
  color: rgba(255, 255, 255, 0.80);
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  margin-bottom: 44px;
}

/* Image */
.rg-process-image-wrapper {
  width: 100%;
  position: relative;
  overflow: visible;
}

.rg-process-image-clip {
  aspect-ratio: 90/53;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.rg-process-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) contrast(1.1);
}

/* Bottom Nav */
.rg-process-bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  position: absolute;
  /* Place arrows outside image (desktop/tablet) */
  left: -90px;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  pointer-events: none;
}

.rg-process-nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #222222;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  pointer-events: auto;
}

.rg-process-nav-arrow:hover {
  background-color: #383838;
}

.rg-process-nav-arrow svg {
  width: 20px;
  height: 20px;
}

/* ───── Tablet (max-width: 1024px) ───── */
@media (max-width: 1024px) {
  .rg-process-content {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
  }

  .rg-process-tabs {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    border-bottom: none;
    position: relative;
  }

  .rg-process-tabs::-webkit-scrollbar {
    display: none;
  }

  .rg-process-tabs-inner {
    flex: 0 0 auto;
    width: max-content;
    position: relative;
  }

  .rg-process-tabs-inner::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #FFFFFF33;
    z-index: 0;
  }

  .rg-process-tab {
    flex: 0 0 auto;
    padding: 15px 50px;
    position: relative;
    z-index: 1;
  }

  .rg-process-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 1;
  }

  .rg-process-tab.active::after {
    background-color: #ffffff;
  }
}

/* ───── Mobile (max-width: 768px) ───── */
@media (max-width: 768px) {
  .rg-process-tabs {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    border-bottom: none;
    position: relative;
  }

  .rg-process-tabs-inner {
    flex: 0 0 auto;
    width: max-content;
    position: relative;
  }

  .rg-process-tabs-inner::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #FFFFFF33;
    z-index: 0;
  }

  .rg-process-tabs::-webkit-scrollbar {
    display: none;
  }

  .rg-process-tab {
    flex: 0 0 auto;
    padding: 15px 30px;
    position: relative;
    z-index: 1;
  }

  .rg-process-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 1;
  }

  .rg-process-tab.active::after {
    background-color: #ffffff;
  }

  .rg-process-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .rg-process-number {
    flex: 0 0 auto;
    color: #535353;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.32px;
    padding: 0;
    width: 23px;
  }

  .rg-process-main {
    flex: 1;
    margin:0;
  }

  .rg-process-bottom-nav {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    padding: 0;
    pointer-events: auto;
  }

  .rg-process-image-clip {
    height: 193px;
    aspect-ratio: auto;
  }

  .rg-process-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.72px;
    margin-bottom: 16px;
  }

  .rg-process-desc {
    font-size: 14px;
    font-weight: 500;
    line-height: 130%;
    margin-bottom: 16px;
  }
}

.rg-process-tab:hover{
	background-color:transparent;
}

.rg-process-tab.active{
		background-color:transparent;
}

.rg-process-nav-arrow svg {
	min-width: 20px;
}

.rg-process-image-wrapper img.rg-process-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-content h2.rg-process-title {
  margin-bottom: 16px !important;
}

.rsc-story-card .rsc-story-image {
    height: 100%;
}
