.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 80vh;
}

.slide {
  position: relative;
  width: 100%;
  display: none;
  animation: fade 1.5s ease-in-out;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.slide-content {
  font-family: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 80%;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.6s ease-out;
}


.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dot {
  height: 15px;
  width: 15px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dot.active {
  background-color: #2563eb;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 50%;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.next {
  right: 20px;
}

.prev {
  left: 20px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.visi,
.misi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.visi h2 {
  font-size: 35px;
}

.visi p {
  font-size: 20px;
}

.visi img {
  width: 40%;
  margin: 0;
}

.misi h2 {
  font-size: 35px;
}

.misi p {
  font-size: 20px;
}

.misi img {
  width: 40%;
  margin: 0;
}

.berita-terbaru {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  margin-top: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.berita-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.berita-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.berita-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.placeholder-image {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 3rem;
}

.kategori-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.kategori-badge i {
  font-size: 0.7rem;
}

.berita-content {
  padding: 1.5rem;
}

.berita-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.berita-date {
  color: #94a3b8;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.berita-date i {
  font-size: 0.8rem;
}

.no-berita {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #94a3b8;
}

.no-berita i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-berita p {
  font-size: 1.1rem;
}

.berita-actions {
  text-align: center;
}

.berita-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.berita-actions .btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.berita-actions .btn-primary i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .slide-content {
    width: 90%;
    padding: 1.5rem;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .prev,
  .next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .berita-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .berita-card {
    margin: 0 1rem;
  }

  .berita-image {
    height: 180px;
  }

  .berita-content {
    padding: 1.25rem;
  }

  .berita-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .visi,
  .misi {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .visi img,
  .misi img {
    width: 80%;
  }

  .visi h2,
  .misi h2 {
    font-size: 28px;
  }

  .visi p,
  .misi p {
    font-size: 16px;
  }

  .berita-terbaru {
    padding: 2rem 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .berita-card {
    margin: 0 0.5rem;
  }
}

.berita-terbaru {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.berita-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.berita-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.berita-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.berita-card:hover .berita-image img {
  transform: scale(1.1);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.kategori-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-size: 2rem;
  backdrop-filter: blur(10px);
}

.berita-content {
  padding: 25px;
}

.berita-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #999;
  font-size: 0.85rem;
}

.berita-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.berita-actions {
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
  color: white;
}

.no-berita {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  grid-column: 1 / -1;
}

.no-berita i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #ddd;
}

.no-berita p {
  font-size: 1.2rem;
  margin: 0;
}

@media (max-width: 768px) {
  .berita-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
    padding: 0 20px;
  }

  .berita-image {
    height: 200px;
  }

  .berita-content {
    padding: 20px;
  }

  .berita-title {
    font-size: 1.1rem;
  }
}
