/* ============================================
   PROGRAM STUDI SECTION STYLES
   ============================================ */

.program-studi-section {
  position: relative;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
  overflow: hidden;
}

/* Wave Background */
.section-wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2301164D' fill-opacity='0.03' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   PROGRAM CARD
   ============================================ */

.program-card {
  position: relative;
  height: 100%;
  transition: all 0.4s ease;
}

.program-card .card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(1, 22, 77, 0.08);
}

.program-card .card-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(1, 22, 77, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.program-card:hover .card-link {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(1, 22, 77, 0.15);
}

.program-card:hover .card-link::before {
  opacity: 1;
}

/* ============================================
   CARD HEADER SECTION
   ============================================ */

.card-header-section {
  position: relative;
  background: linear-gradient(135deg, #01164D 0%, #063CAD 100%);
  padding: 2.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.card-header-section::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(135deg, #01164D 0%, #063CAD 100%);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

/* Icon Wrapper */
.icon-wrapper {
  margin-bottom: 1rem;
  z-index: 2;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.program-card:hover .icon-circle {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1) rotate(5deg);
}

.icon-circle i {
  font-size: 2.5rem;
  color: #ffffff;
}

/* Accreditation Badge */
.accreditation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #01164D;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: all 0.3s ease;
}

.program-card:hover .accreditation-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.accreditation-badge i {
  font-size: 1rem;
  color: #FFD700;
}

/* ============================================
   CARD BODY SECTION
   ============================================ */

.card-body-section {
  padding: 2.5rem 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

.program-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #01164D;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.program-card:hover .program-title {
  color: #063CAD;
}

.program-description {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.7;
  text-align: center;
  margin: 0;
  display: block;
  overflow: visible;
}

/* ============================================
   CARD FOOTER SECTION
   ============================================ */

.card-footer-section {
  padding: 0 2rem 2rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #063CAD;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.program-card:hover .learn-more {
  gap: 1rem;
  color: #01164D;
}

.learn-more i {
  transition: transform 0.3s ease;
}

.program-card:hover .learn-more i {
  transform: translateX(5px);
}

/* ============================================
   DECORATIVE CORNER
   ============================================ */

.decorative-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.1) 50%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.program-card:hover .decorative-corner {
  opacity: 1;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 992px) {
  .card-header-section {
    padding: 2rem 1.5rem 1.25rem;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .icon-circle i {
    font-size: 2rem;
  }

  .card-body-section {
    padding: 2rem 1.5rem 1.25rem;
  }

  .card-footer-section {
    padding: 0 1.5rem 1.5rem;
  }

  .section-wave-bg {
    height: 150px;
  }
}

@media (max-width: 768px) {
  .program-title {
    font-size: 1.25rem;
  }

  .program-description {
    font-size: 0.875rem;
  }

  .icon-circle {
    width: 65px;
    height: 65px;
  }

  .icon-circle i {
    font-size: 1.75rem;
  }

  .accreditation-badge {
    font-size: 0.8125rem;
    padding: 0.4rem 0.875rem;
  }

  .learn-more {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .card-header-section {
    padding: 1.75rem 1.25rem 1rem;
  }

  .card-body-section {
    padding: 1.75rem 1.25rem 1rem;
  }

  .card-footer-section {
    padding: 0 1.25rem 1.25rem;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }

  .icon-circle i {
    font-size: 1.5rem;
  }
}

/* ============================================
   ADDITIONAL ENHANCEMENTS
   ============================================ */

/* Focus States for Accessibility */
.program-card .card-link:focus {
  outline: 2px solid #063CAD;
  outline-offset: 4px;
}

/* Smooth Transitions */
.program-card * {
  transition: all 0.3s ease;
}

/* Print Styles */
@media print {

  .section-wave-bg,
  .decorative-corner {
    display: none;
  }

  .program-card .card-link {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .card-header-section {
    background: #01164D;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* ============================================
   GRID ALIGNMENT
   ============================================ */

/* Ensure cards in the same row have equal height */
.program-studi-section .row {
  display: flex;
  flex-wrap: wrap;
}

.program-studi-section [class*="col-"] {
  display: flex;
  flex-direction: column;
}