.portfolio-style2 .portfolio-row .item:not(:first-child) {
  cursor: pointer;
}

.portfolio-style2 .portfolio-row .item:not(:first-child) .img {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.portfolio-style2 .portfolio-row .item:not(:first-child) .img::after {
  content: "\f061";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0b7a6c;
  color: #fff;
  font-family: "Font Awesome 6 Free";
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  transform: translateY(4px);
  transition: transform .25s ease, background .25s ease;
  z-index: 3;
}

.portfolio-style2 .portfolio-row .item:not(:first-child):hover .img::after {
  background: #08675b;
  transform: translateY(0);
}

.interest-detail {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: #f7f8fc;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.interest-detail.open {
  transform: translateX(0);
}

.interest-detail * {
  box-sizing: border-box;
}

.interest-detail__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid #e5e9f0;
  box-shadow: 0 2px 14px rgba(10, 22, 40, .08);
}

.interest-detail__left,
.interest-detail__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.interest-detail__close {
  width: 38px;
  height: 38px;
  border: 1px solid #e5e9f0;
  border-radius: 50%;
  background: #f7f8fc;
  color: #0a1628;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.interest-detail__logo {
  width: 155px;
  max-height: 46px;
  object-fit: contain;
}

.interest-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  background: #fff;
  color: #0a1628;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.interest-detail__btn:hover {
  background: #f7f8fc;
  color: #0a1628;
}

.interest-detail__btn--whatsapp {
  border-color: #25d366;
  background: #25d366;
  color: #fff;
}

.interest-detail__btn--whatsapp:hover {
  background: #1ebe5d;
  color: #fff;
}

.interest-detail__btn--primary {
  border-color: #0b7a6c;
  background: #0b7a6c;
  color: #fff;
}

.interest-detail__btn--primary:hover {
  background: #08675b;
  border-color: #08675b;
  color: #fff;
}

.interest-detail__body {
  flex: 1;
  overflow-y: auto;
}

.interest-detail__mobile-actions {
  display: none;
}

.interest-detail__programs {
  padding: 30px 28px 36px;
}

.interest-detail__programs-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e9f0;
}

.interest-detail__programs-head h3 {
  margin: 0;
  color: #0a1628;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.interest-detail__pill {
  padding: 5px 12px;
  border-radius: 20px;
  background: #0b7a6c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.interest-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
  gap: 18px;
}

.interest-program {
  overflow: hidden;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(10, 22, 40, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.interest-program:hover {
  transform: translateY(-5px);
  border-color: #0b7a6c;
  box-shadow: 0 14px 34px rgba(10, 22, 40, .1);
}

.interest-program__img {
  position: relative;
  height: 158px;
  overflow: hidden;
}

.interest-program__img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(.72);
  transition: transform .35s ease, filter .25s ease;
}

.interest-program:hover .interest-program__img img {
  transform: scale(1.06);
  filter: brightness(.52);
}

.interest-program__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 18px;
  background: #0b7a6c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.interest-program__body {
  padding: 18px;
}

.interest-program__level {
  margin-bottom: 7px;
  color: #0b7a6c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.interest-program__name {
  min-height: 44px;
  margin: 0 0 12px;
  color: #0a1628;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.interest-program__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 12px;
}

.interest-program__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
  margin-bottom: 16px;
}

.interest-program__tag {
  padding: 4px 9px;
  border: 1px solid #e5e9f0;
  border-radius: 20px;
  background: #eef1f8;
  color: #1a3260;
  font-size: 11px;
  font-weight: 600;
}

.interest-program__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e5e9f0;
}

.interest-program__link,
.interest-program__brochure {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.interest-program__brochure {
  border: 1.5px solid #0b7a6c;
  background: transparent;
  color: #0b7a6c;
  cursor: pointer;
}

.interest-program__link {
  border: 1.5px solid #0b7a6c;
  background: #0b7a6c;
  color: #fff;
  
}

.interest-program__link:hover {
  color: #fff;
}

body.interest-detail-lock {
  overflow: hidden;
}

@media (max-width: 860px) {
  .interest-detail__bar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 16px;
  }

  .interest-detail__left {
    justify-content: space-between;
    width: 100%;
  }

  .interest-detail__actions {
    display: none;
  }

  .interest-detail__programs-head {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .interest-detail__programs {
    padding: 22px 16px 86px;
  }

  .interest-detail__mobile-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #e5e9f0;
    box-shadow: 0 -8px 24px rgba(10, 22, 40, .12);
  }

  .interest-detail__mobile-actions .interest-detail__btn {
    width: 100%;
    min-height: 42px;
    padding: 9px 8px;
    border-radius: 9px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .portfolio-style2 .portfolio-row .item:not(:first-child) .img::after {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .interest-detail__bar .interest-detail__btn {
    width: 100%;
  }

  .interest-detail__btn,
  .interest-program__link,
  .interest-program__brochure {
    justify-content: center;
  }

  .interest-program__footer {
    align-items: stretch;
    flex-direction: column;
  }
  .interest-program__link {
    text-align: center;
  
}
}
