/* Homepage BPS Style - Custom CSS */

/* Hide scrollbar for horizontal scroll */
.scrollbar-hide {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Smooth horizontal scroll */
.overflow-x-auto {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hero Section Enhancements */
.hero-bps {
  position: relative;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
  min-height: 400px;
}

.hero-bps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-quote-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Card Info Categories - BPS Style */
.info-card-bps {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card-bps::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  transition: width 0.3s ease;
}

.info-card-bps:hover {
  transform: translateY(-4px);
}

.info-card-bps:hover::before {
  width: 8px;
}

/* Icon Background Colors */
.icon-bg-blue {
  background-color: #dbeafe;
}
.icon-bg-red {
  background-color: #fee2e2;
}
.icon-bg-green {
  background-color: #dcfce7;
}
.icon-bg-yellow {
  background-color: #fef3c7;
}
.icon-bg-purple {
  background-color: #f3e8ff;
}
.icon-bg-indigo {
  background-color: #e0e7ff;
}

.dark .icon-bg-blue {
  background-color: #1e3a8a;
}
.dark .icon-bg-red {
  background-color: #7f1d1d;
}
.dark .icon-bg-green {
  background-color: #14532d;
}
.dark .icon-bg-yellow {
  background-color: #713f12;
}
.dark .icon-bg-purple {
  background-color: #581c87;
}
.dark .icon-bg-indigo {
  background-color: #312e81;
}

/* E-Form Cards with Gradient Border Effect */
.eform-card-wrapper {
  position: relative;
  padding: 3px;
  border-radius: 1rem;
  background: linear-gradient(135deg, transparent 0%, currentColor 100%);
}

.eform-card-content {
  background: white;
  border-radius: calc(1rem - 3px);
  position: relative;
  z-index: 1;
}

.dark .eform-card-content {
  background: #1f2937;
}

/* Berita Featured Card */
.berita-featured {
  position: relative;
  overflow: hidden;
}

.berita-featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.berita-featured:hover::after {
  opacity: 1;
}

/* Image Zoom Effect */
.img-zoom-hover {
  overflow: hidden;
}

.img-zoom-hover img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom-hover:hover img {
  transform: scale(1.08);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Button Pulse Effect */
@keyframes pulse-shadow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
}

.btn-pulse:hover {
  animation: pulse-shadow 1.5s infinite;
}

/* Line Clamp Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient Text */
.gradient-text-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .hero-bps h1 {
    font-size: 2rem !important;
  }

  .hero-bps h2 {
    font-size: 1.25rem !important;
  }

  .hero-quote-box p {
    font-size: 1rem !important;
  }
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}
.fade-in-delay-2 {
  animation-delay: 0.2s;
}
.fade-in-delay-3 {
  animation-delay: 0.3s;
}
.fade-in-delay-4 {
  animation-delay: 0.4s;
}
.fade-in-delay-5 {
  animation-delay: 0.5s;
}
.fade-in-delay-6 {
  animation-delay: 0.6s;
}
