.acf-layout-select-category .main-heading {
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1571rem + 0.381vw, 1.5rem);
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  padding-bottom: 52px;
}

/* ===========================
   Card
=========================== */
.box-sc {
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.box-sc-inner {
  background: #ffeeea;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  padding: 32px 0;
  transition: background-color 0.35s ease;
}

.box-sc .box-sc-content {
  position: relative;
  z-index: 2;
}

.box-sc .heading {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1571rem + 0.381vw, 1.5rem);
  line-height: 120%;
  letter-spacing: -1.1%;
  text-align: center;
  color: #000;
  transition: color 0.35s ease;
}

.box-sc .svg-illustration {
  position: absolute;
  left: 0;
  bottom: 16%;
  width: 126px;
  height: 120px;
  z-index: 1;
}

/* ===========================
   Button
=========================== */
.btn-know-more {
  position: relative;
  overflow: hidden;
  padding: 2px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  border: 1.22px solid #ef4129;
  border-radius: 54px;
  background: #ef4129;
  text-decoration: none;
  z-index: 1;
}

/* White loading background */
.btn-know-more::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: #fff;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

/* Keep content above animation */
.btn-know-more span,
.btn-know-more svg {
  position: relative;
  z-index: 2;
}

.btn-know-more span {
  color: #fff;
  font-size: 11px;
  line-height: 190%;
  transition: color 0.35s ease;
}

.btn-know-more svg {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.btn-know-more svg path {
  fill: #fff;
  transition: fill 0.35s ease;
}

/* Hover Effects */
.btn-know-more:hover::before {
  width: 100%;
}

.btn-know-more:hover span {
  color: #ef4129 !important;
}

.btn-know-more:hover svg {
  transform: rotate(35deg);
}

.btn-know-more:hover svg path {
  fill: #ef4129 !important;
}

.btn-know-more:hover svg {
  animation: arrowTilt 0.45s ease forwards;
}

/* ===========================
   Hover & Active Effects
=========================== */
.box-sc:hover .box-sc-inner,
.box-sc.active .box-sc-inner {
  background: #ef4129;
}

.box-sc:hover .heading,
.box-sc.active .heading {
  color: #fff;
}

.box-sc:hover .btn-know-more,
.box-sc.active .btn-know-more {
  border-color: #fff;
}

.box-sc:hover .btn-know-more span,
.box-sc.active .btn-know-more span {
  color: #fff;
}

.box-sc:hover .btn-know-more svg path,
.box-sc.active .btn-know-more svg path {
  fill: #fff;
}

.box-sc .svg-illustration {
  position: absolute;
  left: 0;
  bottom: 16%;
  width: 126px;
  height: 120px;
  transition: opacity 0.35s ease;
}

/* Default state */
.box-sc .svg-illustration-1 {
  opacity: 1;
}

.box-sc .svg-illustration-2 {
  opacity: 0;
}

/* Hover & Active state */
.box-sc:hover .svg-illustration-1,
.box-sc.active .svg-illustration-1 {
  opacity: 0;
}

.box-sc:hover .svg-illustration-2,
.box-sc.active .svg-illustration-2 {
  opacity: 1;
}

/* ===========================
   Arrow Pointer for Active Card
=========================== */
.box-sc-arrow {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.92);
  width: 100px;
  height: auto;
  max-width: 85%;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
}

.box-sc.active .box-sc-arrow {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.img-container-sc {
  border: 11.25px solid #f2f2f2;
  background-color: #f2f2f2;
  box-shadow: 0px 0px 23.63px 0px #00000040;
  border-radius: 12px;
  margin: 40px 0 36px 0;
  overflow: hidden;
  position: relative;
  left: 20%;
}

.img-container-sc img {
  width: auto;
  height: 284px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.box-sc:hover .img-container-sc img {
  transform: scale(1.08);
}

/* ===========================
   Tab Content
=========================== */

.tab-content-sc {
  display: none;
}

.tab-content-sc.active {
  display: block;
}

/* ===========================
   Inner Content
=========================== */

.inner-tab-content-sc {
  display: none;
}

.inner-tab-content-sc.active {
  display: block;
}

.tab-contents-sc {
  background: #ffeeea;
  border-radius: 22.93px;
  padding: 33px 30px;
  margin-top: 30px;
  height: 586px;
}

.tab-nav-sc {
  padding: 6px;
  background-color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -1.1%;
  text-align: center;
  /* margin-bottom: 50px; */
  position: absolute;
  width: 45%;
}

.tab-nav-sc .tab-btn-sc {
  color: #ef4129;
  cursor: pointer;
  padding: 12px;
  border-radius: 50px;
}

.tab-btn-sc.active {
  background-color: #ef4129;
  color: #fff;
}

.inner-tab-content-sc-heading {
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1571rem + 0.381vw, 1.5rem);
  line-height: 120%;
  letter-spacing: -1.1%;
  color: #ef4129;
  margin: 0;
  padding-bottom: 10px;
}

.inner-tab-content-sc-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inner-tab-content-sc-ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #ef412933;
  cursor: pointer;
}

.inner-tab-content-sc-ul li span {
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #000;
}

/* 3rd tab  */
/* Left Tabs */

.inner-tab-list-sc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inner-tab-item-sc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #f2c8bf;
  cursor: pointer;
  transition: 0.35s ease;
}

.inner-tab-item-sc span {
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  transition: 0.35s ease;
}

.inner-tab-item-sc svg {
  transition: 0.35s ease;
}

.inner-tab-item-sc svg path {
  transition: 0.35s ease;
}

/* Hover & Active */

.inner-tab-item-sc:hover,
.inner-tab-item-sc.active {
  color: #eb5757;
}

.inner-tab-item-sc:hover span,
.inner-tab-item-sc.active span {
  color: #eb5757;
}

.inner-tab-item-sc:hover svg path,
.inner-tab-item-sc.active svg path {
  fill: #eb5757;
}

.g-tab-content-sc {
  display: none;
  animation: fadeSc 0.35s ease;
  position: relative;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
}

.g-tab-content-sc.active {
  display: inline-flex;
}

.img-container-sc-2 {
  width: 385px;
  height: 324px;
  position: absolute;
  left: 30px;
  top: 100px;
  z-index: 1;
  margin: 0;
}

.g-tab-content-sc .img-container-sc img {
  height: 300px;
}

.links-container {
  position: relative;
  z-index: 2;
  background: #ef4129;
  color: #fff;
  width: 433px;
  height: 525px;
  border-radius: 10px;
  padding: 36px 0;
}

.links-container .absolute-img {
  position: absolute;
  bottom: 0;
  right: 0;
  height: auto;
  width: 68%;
}

.links-container .heading {
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1571rem + 0.381vw, 1.5rem);
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;
  text-decoration: underline;
  text-decoration-style: solid;
  padding-bottom: 70px;
}

.inner-tab-content-sc-left {
  padding-top: 100px;
}

.links-container ul {
  padding-left: 74px;
  list-style: none;
}

.links-container ul li {
  padding-bottom: 30px;
}

.links-container ul li svg {
  flex-shrink: 0;
}

@media (min-width: 992px) and (max-width: 1439px) {
  .tab-nav-sc .tab-btn-sc,
  .links-container .heading {
    font-size: 18px;
  }
  .acf-layout-select-category .main-heading,
  .box-sc .heading,
  .inner-tab-content-sc-heading {
    font-size: 22px;
  }
  .links-container {
    width: 350px;
  }
}

/* ===========================
   Responsive Media Queries
=========================== */

/* Laptop Screens (max-width: 1200px) */
@media (max-width: 1200px) {
  .tab-nav-sc {
    width: 55%;
  }

  .img-container-sc-2 {
    width: 320px;
    height: 270px;
    left: -10px;
  }

  .links-container {
    width: 360px;
    height: 500px;
    padding: 28px 0;
  }

  .links-container ul {
    padding-left: 40px;
  }
}

/* Tablet Screens (max-width: 991px) */
@media (max-width: 991px) {
  .tabs-row-sc {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 24px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .tabs-row-sc::-webkit-scrollbar {
    height: 6px;
  }

  .tabs-row-sc::-webkit-scrollbar-track {
    background: transparent;
  }

  .tabs-row-sc::-webkit-scrollbar-thumb {
    background: #ef412966;
    border-radius: 10px;
  }

  .box-sc .img-container-sc {
    display: none;
  }

  .box-sc .heading {
    padding-bottom: 16px;
  }

  .tabs-row-sc .col-md-3 {
    margin-bottom: 24px;
    flex: 0 0 260px;
    max-width: 260px;
  }

  .box-sc-arrow {
    width: 80px;
    top: calc(100% - 6px);
  }

  .tab-contents-sc {
    height: auto;
    min-height: auto;
    padding: 24px 20px;
  }

  .tab-nav-sc {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem);
  }

  .inner-tab-content-sc-left {
    padding-top: 0;
    margin-bottom: 30px;
  }

  .g-tab-content-sc {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .img-container-sc-2 {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 360px;
    height: 240px;
    margin-bottom: 24px;
  }

  .links-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    padding: 28px 24px;
  }

  .links-container ul {
    padding-left: 24px;
  }
}

/* Mobile Screens (max-width: 575px) */
@media (max-width: 575px) {
  .acf-layout-select-category .main-heading {
    padding-bottom: 24px;
  }

  .box-sc-inner {
    padding: 24px 12px;
    border-radius: 16px;
  }

  .box-sc-arrow {
    width: 65px;
    top: calc(100% - 5px);
  }

  .tab-contents-sc {
    padding: 18px 14px;
    border-radius: 16px;
    margin-top: 20px;
  }

  .tab-nav-sc .tab-btn-sc {
    padding: 8px 12px;
    font-size: 14px;
  }

  .inner-tab-content-sc-heading {
    font-size: 18px;
  }

  .inner-tab-item-sc span {
    font-size: 16px;
  }

  .links-container .heading {
    font-size: 20px;
    padding-bottom: 30px;
  }

  .links-container ul {
    padding-left: 16px;
  }

  .links-container ul li {
    padding-bottom: 18px;
  }
}
