:root {
  --primary-color: #991b1b;
  --secondary-color: #212121;
  --accent-color: #dc2626;
  --text-primary: #0b1220;
  --text-secondary: #556680;
  --surface: #ffffff;
  --surface-light: #f2f2f2;
  --shadow: 0 8px 28px rgba(211, 47, 47, 0.1);
  --jurusan-primary: #991b1b;
  --jurusan-accent: #dc2626;
  --jurusan-light: #fef2f2;
}

/* Base Styles */
.detail-hero {
  background: linear-gradient(
    135deg,
    var(--jurusan-light) 0%,
    rgba(220, 38, 38, 0.04) 100%
  );
  background-color: #ffffff;
  background-attachment: fixed;
  padding: 40px 0;
  border-bottom: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.detail-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.detail-hero .container {
  position: relative;
  z-index: 1;
}

.detail-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--jurusan-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -1px;
}

.detail-hero h1 i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.detail-hero p {
  font-size: 1.1rem;
  color: var(--jurusan-accent);
  margin: 0;
  font-weight: 600;
}

/* Hero Image Section */
.hero-image-section {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero-image-section > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-image-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(211, 47, 47, 0.2);
  border: 4px solid var(--primary-color);
  background: var(--secondary-color);
  padding: 0;
}

.hero-image-wrapper img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.hero-text-section {
  display: none;
}

.hero-text-section h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Back Button */
.btn-kembali {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 4px;
  background: rgba(211, 47, 47, 0.1);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-kembali:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(-6px);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.4);
}

/* Content Sections */
.content-section {
  background: var(--surface);
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
  position: relative;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  border-radius: 4px 0 0 4px;
}

.content-section:nth-child(1) {
  animation-delay: 0.1s;
}
.content-section:nth-child(2) {
  animation-delay: 0.2s;
}
.content-section:nth-child(3) {
  animation-delay: 0.3s;
}
.content-section:nth-child(4) {
  animation-delay: 0.4s;
}
.content-section:nth-child(5) {
  animation-delay: 0.5s;
}

.content-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(211, 47, 47, 0.2);
  border-color: var(--primary-color);
}

.content-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--jurusan-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.content-section h2 i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.content-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* List Items */
.list-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.06),
    rgba(33, 33, 33, 0.04)
  );
  border-radius: 4px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.list-item:hover {
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.15),
    rgba(33, 33, 33, 0.1)
  );
  border-left-color: var(--accent-color);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.15);
}

.list-item i {
  font-size: 1.5rem;
  color: var(--jurusan-accent);
  flex-shrink: 0;
  margin-top: 2px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.list-item:hover i {
  transform: scale(1.2) translateX(4px);
}

.list-item strong {
  color: var(--text-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.list-item small {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Alert */
.alert {
  border: 3px solid var(--primary-color);
  border-radius: 4px;
  padding: 20px 24px;
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.1),
    rgba(33, 33, 33, 0.04)
  );
  transition: all 0.3s ease;
}

.alert i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 12px;
}

.alert a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

.alert a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.alert:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(211, 47, 47, 0.2);
}

main.container {
  padding-top: 40px;
  padding-bottom: 60px;
  max-width: 900px;
  background-color: #ffffff;
  position: relative;
  z-index: 5;
}

/* Responsive */
@media (max-width: 768px) {
  .detail-hero h1 {
    font-size: 1.8rem;
  }
  .content-section {
    padding: 24px;
  }
  .content-section h2 {
    font-size: 1.4rem;
  }
  .list-item {
    gap: 12px;
    padding: 14px;
  }
  .hero-image-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-image-wrapper img {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .detail-hero {
    padding: 20px 0;
  }
  .detail-hero h1 {
    font-size: 1.5rem;
  }
  .btn-kembali {
    padding: 8px 14px;
  }
  .content-section {
    padding: 18px;
  }
  .content-section h2 {
    font-size: 1.2rem;
  }
  main.container {
    padding-top: 20px;
  }
}
