:root {
  --primary: #ffc107;
  --dark-bg: #0a0a0a;
}

#penghargaan {
  background: #000000 !important;
  color: #f0f0f0;
  padding: 60px 20px;
  position: relative;
}

#penghargaan::before {
  display: none;
}

#penghargaan .heading-section p {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 700px;
  margin: 0 auto;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 45px auto 0;
  max-width: 1200px;
}

.award-card {
  background: linear-gradient(145deg, #1a1a1a, #151515);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 1px solid #333;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.award-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--primary);
}

.award-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.award-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.award-card:hover .award-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
}

.award-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary);
  color: #0a0a0a;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.award-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.award-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.award-date {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.award-date i {
  font-size: 0.85rem;
}

.award-excerpt {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex: 1;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: auto;
  justify-content: center;
}

.award-card:hover .view-btn {
  background-color: var(--primary);
  color: #0a0a0a;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.modal-content {
  background: linear-gradient(145deg, #1a1a1a, #151515);
  width: 100%;
  max-width: 550px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border: 2px solid var(--primary);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-content.show {
  transform: scale(1);
  opacity: 1;
}

.modal-content.hide {
  transform: scale(0.9);
  opacity: 0;
}

.modal-header {
  padding: 25px 25px 15px;
  border-bottom: 1px solid #333;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 193, 7, 0.1);
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background-color: var(--primary);
  color: #0a0a0a;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--primary);
  line-height: 1.3;
  padding-right: 50px;
}

.modal-date {
  font-size: 1rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-date i {
  color: var(--primary);
}

.modal-body {
  padding: 0;
}

.modal-text-container {
  padding: 25px;
}

.modal-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ddd;
}

.modal-footer {
  padding: 20px 25px 25px;
  border-top: 1px solid #333;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 30px;
  background: var(--primary);
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.modal-link:hover {
  background: #ff9800;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.authenticity-note {
  color: #aaa;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.authenticity-note i {
  color: #4caf50;
}

@media (max-width: 992px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #penghargaan {
    padding: 40px 15px;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }

  .modal-content {
    max-width: 100%;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-footer {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .modal-link {
    justify-content: center;
  }

  .authenticity-note {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #penghargaan {
    padding: 30px 10px;
  }

  .awards-grid {
    gap: 15px;
  }

  .award-image {
    height: 170px;
  }

  .award-content {
    padding: 16px;
  }

  .award-title {
    font-size: 1.15rem;
  }

  .modal-header {
    padding: 20px 20px 12px;
  }

  .modal-text-container {
    padding: 16px 20px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .close-btn {
    width: 36px;
    height: 36px;
    top: 14px;
    right: 14px;
  }
}
