/* Smart Campus – Glassmorphism cards for "Why Institutions Choose" section */
/* Inspired by uiverse giant-squid-24, adapted to site blues and glass look */

:root {
  --smc-blue-1: #001c7d;
  /* primary site blue */
  --smc-blue-2: #384c6c;
  /* deep accent */
  --smc-card-bg: rgba(255, 255, 255, 0.22);
  --smc-card-border: rgba(255, 255, 255, 0.36);
  /* corner badge backgrounds for contrast (neutral glass so icons carry the blue) */
  --smc-corner-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(245, 247, 255, 0.65));
  --smc-corner-bg-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 255, 0.85));
}

.editing6 .smc-card,
.buy-sell-bottom .smc-card {
  display: block;
  position: relative;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  margin: 12px;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
  background: var(--smc-card-bg);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid var(--smc-card-border);
  box-shadow: 0 8px 24px rgba(96, 115, 255, 0.08);
}

.editing6 .smc-card:before,
.buy-sell-bottom .smc-card:before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: linear-gradient(135deg, var(--smc-blue-1), var(--smc-blue-2));
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.35s ease-out, filter 0.35s ease-out, opacity 0.35s ease-out;
  will-change: transform, opacity, filter;
  filter: saturate(130%);
  opacity: 0;
}

.editing6 .smc-card:hover:before,
.buy-sell-bottom .smc-card:hover:before {
  transform: scale(28);
  opacity: 1;
}

.editing6 .smc-card-title,
.buy-sell-bottom .smc-card-title {
  color: #262626;
  font-size: 1.25em;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.5em;
  transition: color 0.5s ease-out;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}

.editing6 .smc-card-title a {
  color: inherit;
  text-decoration: none;
}

.editing6 .smc-card-desc,
.buy-sell-bottom .smc-card-desc {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.6em;
  color: black;
  transition: color 0.5s ease-out;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 2);
  overflow-wrap: anywhere;
}

.editing6 .smc-card:hover .smc-card-desc,
.buy-sell-bottom .smc-card:hover .smc-card-desc {
  color: white;
}

.editing6 .smc-card:hover .smc-card-title,
.buy-sell-bottom .smc-card:hover .smc-card-title {
  color: white;
}

.editing6 .smc-go-corner,
.buy-sell-bottom .smc-go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 3em;
  height: 3em;
  overflow: hidden;
  top: 0;

  right: 0;
  background: var(--smc-corner-bg);
  border-radius: 0 10px 0 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  /* Keep the whole card clickable without overlay blocking */
  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  z-index: 1;
  transition: background 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.editing6 .smc-go-arrow,
.buy-sell-bottom .smc-go-arrow {
  width: 40px;
  height: 30px;
  display: block;
  opacity: 1;
  /* keep original SVG color (blue) and add subtle separation */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
  transition: transform 250ms ease, filter 250ms ease, opacity 250ms ease;
}

.editing6 .smc-card:hover .smc-go-corner,
.buy-sell-bottom .smc-card:hover .smc-go-corner {
  background: var(--smc-corner-bg-hover);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  transform: translate(-1px, 1px) scale(1.05);
}

.editing6 .smc-card:hover .smc-go-arrow,
.buy-sell-bottom .smc-card:hover .smc-go-arrow {
  transform: scale(1.12);
}

/* Ensure list text also switches to light on hover in both sections */
.editing6 .smc-card:hover .bullet-list,
.buy-sell-bottom .smc-card:hover .bullet-list {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {

  .editing6 .smc-card:before,
  .editing6 .smc-card:hover:before {
    transition: none;
  }
}

.buy-sell-bottom .smc-card {
  background-color: #d4eef7 !important;
}

.buy-sell-bottom .smc-card-title a {
  color: #111111;
  transition: color 0.5s ease-out;
}

.buy-sell-bottom .smc-card-title {
  min-height: fit-content !important;
}

.buy-sell-bottom .bullet-list li {
  color: #7c8394;
  transition: color 0.5s ease-out;
}

.buy-sell-bottom .smc-card-desc {
  color: #7c8394;
  transition: color 0.5s ease-out;
}

/* Ensure text turns white on hover */
.buy-sell-bottom .smc-card:hover .smc-card-title a,
.buy-sell-bottom .smc-card:hover .bullet-list li,
.buy-sell-bottom .smc-card:hover .smc-card-desc {
  color: #fff;
}
.buy-sell-bottom .smc-card{
  z-index: 90;
}
.buy-sell-bottom .smc_features_shape{
  z-index: 99;
}