.academics-header {
  padding-top: 28px;
  text-align: center;
}
.academics-header h1 {
  font-size: 2.7rem;
  color: #0d3a80;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 14px;
  line-height: 1.18;
  user-select: none;
}
.decor-line {
  display: block;
  width: 84px;
  height: 6px;
  margin: 0 auto 26px auto;
  background-color: #ffcc00;
  border-radius: 6px;
  box-shadow: 0 5px 16px rgba(255, 204, 0, 0.6);
}

.academics-container {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.cards-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.curriculum-card {
  position: relative;
  background-color: #fff;
  border-left: 8px solid #ffcc00;
  border-radius: 16px;
  flex: 1 1 320px;
  padding: 28px;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  color: #092c5c;
  box-sizing: border-box;
  min-height: 220px;
  max-width: 410px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  outline-offset: 4px;
  transition:
    transform 0.3s cubic-bezier(.18,.85,.43,1),
    box-shadow 0.3s cubic-bezier(.18,.74,.45,1.03);
}
.curriculum-card.hovered,
.curriculum-card:hover,
.curriculum-card:focus {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    0 22px 42px rgba(168, 92, 249, 0.21),
    0 10px 32px rgba(9, 44, 92, 0.18);
  outline: 2px solid #a85cf9;
  outline-offset: 6px;
  z-index: 10;
}

.curriculum-card-title {
  font-size: 1.45rem;
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  user-select: none;
  color: #092c5c;
  text-align: left;
}

.curriculum-card-text {
  font-size: 1.18rem;
  line-height: 1.6;
  color: #2c324f;
  font-weight: 500;
  user-select: text;
  white-space: pre-line;
  text-align: left;
  margin: 0;
  flex-grow: 1;
  user-select: text;
  overflow-wrap: break-word;
}

/* Ripple style */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(168, 92, 249, 0.32);
  pointer-events: none;
  transform: scale(0);
  animation: none;
  z-index: 1000;
  transition: none;
}

.ripple.show {
  animation: ripple 600ms linear;
  transform: scale(4);
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .academics-header h1 {
    font-size: 2.1rem;
  }
  .decor-line {
    width: 60px;
    height: 5px;
    margin-bottom: 20px;
  }
  .academics-container {
    padding: 8px;
  }
  .cards-wrapper {
    gap: 18px;
  }
  .curriculum-card {
    flex: 1 1 100%;
    min-height: 190px;
    max-width: 100%;
    padding: 18px;
  }
  .curriculum-card-title {
    font-size: 1.18rem;
  }
  .curriculum-card-text {
    font-size: 1.08rem;
  }
}
