/* =============================================
   CS Programme Cards Widget
   ============================================= */

/* — Reset & Container — */
.cs-pc {
  width: 100%;
}

/* — Section Heading — */
.cs-pc__heading {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 40px 0;
  text-align: center;
  color: #0d1b2a;
}

/* — Grid Layout — */
.cs-pc__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, 1fr);
}

.cs-pc__grid--1 {
  grid-template-columns: 1fr;
  max-width: 260px;
  margin: 0 auto;
}

.cs-pc__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cs-pc__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cs-pc__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cs-pc__grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

/* — Card — */
.cs-pc__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  background: transparent;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease;
}

.cs-pc__card:hover {
  transform: translateY(-6px);
}

/* — SVG Shape (fills the card) — */
.cs-pc__shape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cs-pc__shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* — Text Content — */
.cs-pc__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 120px auto;
  padding: 24px 18px 16px;
  flex: 1;
}

.cs-pc__subtitle {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.3;
}

h4.cs-pc__subtitle {
  margin-bottom: 0 !important;
  font-size: 20px;
  line-height: 125%;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.15px;
}

/* — Title — */
h3.cs-pc__title {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 12px;
  word-break: break-word;
}

/* Title size: small (when subtitle is present) */
.cs-pc__card--has-subtitle .cs-pc__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0;
  color: #ffffff;
}

/* Title size: large (when no subtitle) */
.cs-pc__card--no-subtitle .cs-pc__title {
  font-size: 72px;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 0;
  color: #ffffff;
  line-height: 1;
}

/* — Description — */
.cs-pc__desc {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cs-pc__desc p {
  margin: 0 0 4px 0;
}

.cs-pc__desc p:last-child {
  margin-bottom: 0;
}

/* — Arrow Button — */
.cs-pc__btn {
  position: absolute;
  bottom: 4px;
  right: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: #3de8e0;
  color: #ffffff;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
  outline: none;
}

.cs-pc__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
}

.cs-pc__btn:hover {
  background-color: #2dd4cc;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(61, 232, 224, 0.4);
}

.cs-pc__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.cs-pc__btn--static {
  cursor: default;
  pointer-events: none;
}

/* =============================================
   Responsive
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .cs-pc__grid,
  .cs-pc__grid--4,
  .cs-pc__grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cs-pc__card--no-subtitle .cs-pc__title {
    font-size: 56px;
  }

  .cs-pc__heading {
    font-size: 30px;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .cs-pc__grid,
  .cs-pc__grid--2,
  .cs-pc__grid--3,
  .cs-pc__grid--4,
  .cs-pc__grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-pc__card {
    min-height: 220px;
  }

  .cs-pc__card--no-subtitle .cs-pc__title {
    font-size: 48px;
  }

  .cs-pc__heading {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .cs-pc__content {
    grid-template-rows: 76px auto;
    padding: 18px 16px 12px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .cs-pc__grid,
  .cs-pc__grid--1,
  .cs-pc__grid--2,
  .cs-pc__grid--3,
  .cs-pc__grid--4,
  .cs-pc__grid--5 {
    grid-template-columns: 1fr 1fr;
  }

  .cs-pc__card {
    min-height: 220px;
  }

  .cs-pc__content {
    grid-template-rows: 80px auto;
    padding: 16px 14px 12px;
  }
  .cs-pc__card--no-subtitle .cs-pc__title {
    font-size: 40px !important;
  }

  .cs-pc__card:last-child .cs-pc__title {
    font-size: 32px !important;
  }

  .cs-pc__card--has-subtitle .cs-pc__title {
    font-size: 22px !important;
  }

  .cs-pc__subtitle {
    font-size: 14px !important;
  }

  #content .cs-pc__desc p {
    font-size: 14px !important;
  }

  .cs-pc__btn {
    width: 40px;
    height: 40px;
    bottom: 0px;
    right: 8px;
    border-radius: 10px;
  }

  .cs-pc__btn svg {
    width: 16px;
    height: 16px;
  }
}
