/* Custom Styles */

/* Custom color variables */
:root {
  --primary-color: #0e7f00;
  --primary-hover: #0c6b00;
  --primary-light: #e8f5e8;
  --primary-dark: #0a5700;
  --cyan-color: #0e7f00; /* Using the same green color as primary */
}

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

/* Dropdown smooth scroll offset for fixed navbar */
[id] {
  scroll-margin-top: 120px;
}

/* Header styles */
.top-header {
  height: 48px;
}

header {
  transition: all 0.3s ease;
  height: 48px;
  display: flex;
  align-items: center;
}

header.scrolled {
  background-color: rgba(14, 127, 0, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Navigation items perfect centering */
header .container {
  height: 100%;
}

header .flex {
  height: 100%;
}

/* Menu items vertical alignment and Navigation styles */
.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  transition: all 0.15s ease;
}

.nav-item:hover {
  transform: translateY(-1px);
}

/* Remove any default margins that might cause gaps */
body {
  margin: 0;
  padding: 0;
}

/* Reset section margins */
section {
  margin: 0;
}

/* Navbar fade-in animation after preloader */
header {
  opacity: 0;
  animation: fadeInNavbar 0.3s ease-out forwards;
}

/* Nav items will be animated by JavaScript */
.nav-item {
  opacity: 1; /* Default visible, JavaScript will handle animation */
}

@keyframes fadeInNavbar {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInNavItem {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown styles */
.dropdown-container {
  position: relative;
}

.dropdown-menu {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(0.95);
  transition: opacity 0.1s ease, transform 0.1s ease, visibility 0.1s ease;
  z-index: 1000;
  pointer-events: none;
}

.dropdown-menu.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.dropdown-toggle.active i {
  transform: rotate(180deg);
}

.dropdown-menu a {
  border-bottom: 1px solid #e5e7eb;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

/* Specific styling for about dropdown */
#aboutDropdownMenu {
  z-index: 1001;
  min-width: 200px;
}

/* Hero Background Slider Styles */
.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #1a5a1a; /* Fallback color */
}

/* Preload optimization */
.bg-slide img[src] {
  content-visibility: auto;
  contain-intrinsic-size: 100vw 100vh;
}

.bg-slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1000ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout style;
}

.bg-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  backface-visibility: hidden;
}

.bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Hero section full height with navbar offset */
section[style*="padding-top: 96px"] {
  position: relative;
}

.bg-dot {
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.bg-dot:hover {
  opacity: 0.8 !important;
  transform: scale(1.1);
}

.bg-dot.opacity-100 {
  opacity: 1 !important;
  transform: scale(1.2);
}

/* Hero Slider Styles */
.hero-slider {
  width: 100%;
  aspect-ratio: 1/1; /* Square 1:1 aspect ratio */
  overflow: hidden;
  border-radius: 0.5rem;
  position: relative;
}

.slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slider-item {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Responsive Slider Styles */
@media (max-width: 767px) {
  .hero-slider {
    aspect-ratio: 1/1; /* Keep 1:1 aspect ratio for mobile */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
  }

  .md\:w-1\/2.w-full.mb-4.md\:mb-0 {
    margin-bottom: 1rem !important;
  }
}

@media (min-width: 768px) {
  .hero-slider {
    width: 90%;
    max-width: 400px;
    aspect-ratio: 1/1; /* Square 1:1 aspect ratio for tablet */
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  .hero-slider {
    max-width: 450px;
    aspect-ratio: 1/1; /* Square 1:1 aspect ratio for desktop */
  }
}

/* Media query for mobile display */
@media (max-width: 767px) {
  .hero-slider {
    width: 100%;
    aspect-ratio: 1/1; /* Keep 1:1 aspect ratio */
    position: relative;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Removing the problematic absolute positioning */
  .slider-container {
    position: relative;
    height: 100%;
    width: 100%;
  }

  /* Mengurangi padding pada hero section untuk tampilan mobile */
  section.pt-16 {
    padding-top: 4rem !important; /* 64px */
  }

  /* Mengurangi margin pada container slider */
  .md\:w-1\/2.w-full.mb-4 {
    margin-bottom: 0.5rem !important;
  }

  /* Mengurangi padding pada container utama */
  .container.mx-auto.px-4.py-8 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* Slider Dots Styles */
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  cursor: pointer;
  border: none;
}

.slider-dot.active {
  opacity: 1;
}

/* Wave container - final fixes */
.wave-container {
  position: relative;
  height: 150px;
  overflow: hidden;
  margin-bottom: -7px; /* Increased to eliminate any possible gap */
  margin-top: -1px; /* Fix gap with previous section */
  z-index: 1;
  line-height: 0; /* Remove any line-height gaps */
  font-size: 0; /* Remove any font-size gaps */
  display: block; /* Ensure block display */
}

.wave-container svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block; /* Ensure proper rendering */
  vertical-align: bottom; /* Remove any potential gap */
}

/* Fix for all device sizes */
@media (max-width: 1024px) {
  .wave-container {
    margin-bottom: -7px; /* Ensure no gaps on all devices */
  }

  /* Fix for sections after wave container */
  .wave-container + section {
    position: relative;
    z-index: 2; /* Higher z-index to overlap any potential gap */
    margin-top: -2px !important;
  }
}

/* Tablet-specific fixes */
@media (min-width: 768px) and (max-width: 1023px) {
  .wave-container {
    height: 100px;
    margin-bottom: -6px; /* Fix gap between wave and next section */
    margin-top: -1px; /* Fix gap with previous section */
  }

  /* Fix for hero section on tablets */
  .pt-24.md\:pt-24.pt-16.bg-green-900 {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Fix for sections with background colors on tablets */
  section.bg-white,
  section.bg-gray-100,
  section.bg-gray-50,
  section.bg-green-900 {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: none;
    border-bottom: none;
  }

  /* Fix for section transitions on tablets */
  section + section {
    margin-top: 0;
  }
}

/* Fix for specific sections with wave transitions */
.pt-24.md\:pt-24.pt-16.bg-green-900 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Fix for wave container on mobile */
@media (max-width: 767px) {
  .wave-container {
    height: 80px; /* Even smaller height on mobile */
    margin-bottom: -5px;
    margin-top: -1px;
  }
}

/* Testimonial slider */
.testimonial-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

.testimonial-slider::-webkit-scrollbar {
  height: 8px;
}

.testimonial-slider::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.testimonial-slider::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.testimonial-slide {
  flex: 0 0 auto;
  width: 100%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .testimonial-slide {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    width: 33.333%;
  }
}

/* Hover effects */
.hover-grow {
  transition: transform 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

/* Mobile dropdown */
.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.15s ease;
}

.mobile-dropdown-content.active {
  max-height: 200px;
}

.mobile-dropdown-content.hidden {
  max-height: 0;
}

/* Product card hover effect */
.product-card {
  transition: all 0.3s ease;
}

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

/* Button hover animations */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

/* CTA Gradient Section Styles */
.bg-gradient-to-r.from-yellow-400.to-yellow-600 {
  background: linear-gradient(90deg, #fbbf24, #d97706);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.bg-gradient-to-r.from-yellow-400.to-yellow-600 a {
  transform: translateY(0);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bg-gradient-to-r.from-yellow-400.to-yellow-600 a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.bg-gradient-to-r.from-yellow-400.to-yellow-600 i {
  transition: transform 0.3s ease;
}

.bg-gradient-to-r.from-yellow-400.to-yellow-600 a:hover i {
  transform: scale(1.2);
}

.bg-gradient-to-r.from-yellow-400.to-yellow-600 a.block {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Image hover zoom effect */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom {
  transition: transform 0.5s ease;
}

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

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-shake {
  animation: shake 3s infinite;
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-slide-left {
  animation: slideInFromLeft 1s ease forwards;
}

.animate-slide-right {
  animation: slideInFromRight 1s ease forwards;
}

.animate-slide-up {
  animation: slideInFromBottom 1s ease forwards;
}

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

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Custom color overrides - Green Theme */
.text-green-800,
.text-blue-800 {
  color: var(--primary-color) !important;
}

.bg-green-800,
.bg-blue-800 {
  background-color: var(--primary-color) !important;
}

.hover\:bg-green-900:hover,
.hover\:bg-blue-900:hover {
  background-color: var(--primary-hover) !important;
}

.hover\:text-green-800:hover,
.hover\:text-blue-800:hover {
  color: var(--primary-color) !important;
}

.bg-green-900,
.bg-blue-900 {
  background-color: var(--primary-dark) !important;
}

.bg-green-100,
.bg-blue-100 {
  background-color: var(--primary-light) !important;
}

.border-green-800,
.border-blue-800 {
  border-color: var(--primary-color) !important;
}

.from-green-900,
.from-blue-900 {
  --tw-gradient-from: var(--primary-dark) !important;
}

.to-green-700,
.to-blue-700 {
  --tw-gradient-to: var(--primary-color) !important;
}

.hover\:text-green-900:hover,
.hover\:text-blue-900:hover {
  color: var(--primary-dark) !important;
}

/* Additional green color overrides */
.text-green-700,
.text-blue-700 {
  color: var(--primary-color) !important;
}

.bg-green-700,
.bg-blue-700 {
  background-color: var(--primary-color) !important;
}

.border-green-200,
.border-blue-200 {
  border-color: var(--primary-light) !important;
}

/* Focus states - Green Theme */
.focus\:ring-green-500:focus,
.focus\:ring-blue-500:focus {
  --tw-ring-color: var(--primary-color) !important;
}

.focus\:border-green-500:focus,
.focus\:border-blue-500:focus {
  border-color: var(--primary-color) !important;
}

/* Gradient overrides - Green Theme */
.gradient-to-r.from-green-900.to-green-700,
.gradient-to-r.from-blue-900.to-blue-700 {
  background: linear-gradient(
    to right,
    var(--primary-dark),
    var(--primary-color)
  ) !important;
}

/* Hero section specific - Green Theme */
.bg-gradient-to-r.from-green-900.to-green-700,
.bg-gradient-to-r.from-blue-900.to-blue-700 {
  background: linear-gradient(
    to right,
    var(--primary-dark),
    var(--primary-color)
  ) !important;
}

/* Button overrides - Green Theme */
.bg-green-600,
.bg-blue-600 {
  background-color: var(--primary-color) !important;
}

.hover\:bg-green-700:hover,
.hover\:bg-blue-700:hover {
  background-color: var(--primary-hover) !important;
}

.bg-yellow-600 {
  background-color: #f59e0b !important;
}

.hover\:bg-yellow-700:hover {
  background-color: #d97706 !important;
}

/* Green color overrides - Complete blue to green mapping */
.bg-green-600 {
  background-color: #0e7f00 !important;
}

/* Additional blue to green overrides for animations/highlights */
.text-blue-500,
.text-green-500 {
  color: var(--primary-color) !important;
}

.bg-blue-500,
.bg-green-500 {
  background-color: var(--primary-color) !important;
}

.border-blue-500,
.border-green-500 {
  border-color: var(--primary-color) !important;
}

.text-blue-600,
.text-green-600 {
  color: var(--primary-color) !important;
}

.border-blue-600,
.border-green-600 {
  border-color: var(--primary-color) !important;
}

.hover\:text-blue-600:hover,
.hover\:text-green-600:hover {
  color: var(--primary-color) !important;
}

.hover\:bg-blue-600:hover,
.hover\:bg-green-600:hover {
  background-color: var(--primary-hover) !important;
}

.hover\:border-blue-600:hover,
.hover\:border-green-600:hover {
  border-color: var(--primary-hover) !important;
}

/* Ring colors for focus states */
.ring-blue-500,
.ring-green-500 {
  --tw-ring-color: var(--primary-color) !important;
}

.focus\:ring-blue-600:focus,
.focus\:ring-green-600:focus {
  --tw-ring-color: var(--primary-color) !important;
}

/* Shadow colors */
.shadow-blue-500,
.shadow-green-500 {
  --tw-shadow-color: var(--primary-color) !important;
}

/* Outline colors */
.outline-blue-500,
.outline-green-500 {
  outline-color: var(--primary-color) !important;
}

/* Accent colors */
.accent-blue-500,
.accent-green-500 {
  accent-color: var(--primary-color) !important;
}

/* Caret colors */
.caret-blue-500,
.caret-green-500 {
  caret-color: var(--primary-color) !important;
}

/* Animation and transition overrides */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

.transition-colors {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke !important;
}

/* Custom pulse animation with green colors */
@keyframes greenPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.pulse-green {
  animation: greenPulse 2s ease-in-out infinite;
}

/* Additional comprehensive blue-to-green overrides */
.bg-blue-50,
.bg-green-50 {
  background-color: #f0fdf4 !important;
}

.bg-blue-300,
.bg-green-300 {
  background-color: #86efac !important;
}

.bg-blue-400,
.bg-green-400 {
  background-color: #4ade80 !important;
}

.text-blue-400,
.text-green-400 {
  color: #4ade80 !important;
}

.border-blue-400,
.border-green-400 {
  border-color: #4ade80 !important;
}

/* Scroll button override */
.scroll-to-top,
.scroll-btn {
  background-color: var(--primary-color) !important;
}

.scroll-to-top:hover,
.scroll-btn:hover {
  background-color: var(--primary-hover) !important;
}

/* Any remaining blue overrides */
*[style*="blue"],
*[style*="#1bb1dc"],
*[style*="#2563eb"] {
  color: var(--primary-color) !important;
}

*[style*="background"] *[style*="blue"],
*[style*="background"] *[style*="#1bb1dc"],
*[style*="background"] *[style*="#2563eb"] {
  background-color: var(--primary-color) !important;
}

.text-green-600 {
  color: #0e7f00 !important;
}

.text-green-700 {
  color: #0c6b00 !important;
}

.bg-green-100 {
  background-color: #e8f5e8 !important;
}

.border-green-400 {
  border-color: #0e7f00 !important;
}

.hover\:bg-green-700:hover {
  background-color: #0c6b00 !important;
}

.border-green-600 {
  border-color: #0e7f00 !important;
}

/* Floating CTA Buttons */
.floating-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  z-index: 100;
  display: flex;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.floating-cta-mobile a {
  flex: 1;
  text-align: center;
  padding: 10px 5px;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--cyan-color) 0%,
    var(--primary-light) 150%
  );
  transition: all 0.3s;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-cta-mobile a:last-child {
  border-right: none;
}

.floating-cta-mobile a:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--cyan-color) 150%
  );
}

.floating-cta-mobile i {
  font-size: 18px;
  margin-bottom: 5px;
}

.floating-cta-desktop {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: none;
  flex-direction: column;
}

.floating-cta-desktop a {
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--cyan-color) 0%,
    var(--primary-light) 150%
  );
  color: #fff;
  text-decoration: none;
  margin-bottom: 5px;
  text-align: center;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  width: 60px;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.floating-cta-desktop a:hover {
  width: 180px;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--cyan-color) 150%
  );
  box-shadow: -6px 2px 15px rgba(0, 0, 0, 0.2);
}

.floating-cta-desktop a i {
  margin-right: 10px;
}

.floating-cta-desktop a span {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-cta-desktop a:hover span {
  opacity: 1;
}

/* Icon Animation */
@keyframes pulseIcon {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Specific animations for each icon */
.floating-cta-mobile a:nth-child(1) i,
.floating-cta-desktop a:nth-child(1) i {
  animation: bounceIcon 2s infinite;
}

.floating-cta-mobile a:nth-child(2) i,
.floating-cta-desktop a:nth-child(2) i {
  animation: pulseIcon 2s infinite;
}

.floating-cta-mobile a:nth-child(3) i,
.floating-cta-desktop a:nth-child(3) i {
  animation: shakeIcon 2s infinite;
}

@keyframes bounceIcon {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

@keyframes shakeIcon {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-3px) rotate(-5deg);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(3px) rotate(5deg);
  }
}

/* Media Queries for CTA buttons */
@media (min-width: 768px) {
  .floating-cta-mobile {
    display: none;
  }

  .floating-cta-desktop {
    display: flex;
  }
}

@media (max-width: 767px) {
  /* Add padding to body to prevent content from being hidden under the navbar on mobile */
  body {
    padding-bottom: 60px;
  }
}

/* Hero Section Styles */
.pt-24.md\:pt-24.pt-16 {
  padding-top: 4.5rem !important; /* Mengurangi padding top */
}

@media (min-width: 768px) {
  .pt-24.md\:pt-24.pt-16 {
    padding-top: 4rem !important; /* Mengurangi padding top untuk tablet */
  }

  .container.mx-auto.px-4.py-8.md\:py-16 {
    padding-top: 1rem !important; /* Mengurangi padding container */
    padding-bottom: 2rem !important;
    max-width: 1200px;
  }

  .flex.flex-col-reverse.md\:flex-row.items-center {
    align-items: center;
    justify-content: space-between;
  }

  .md\:w-1\/2.mb-6.md\:mb-0.md\:pr-8 {
    padding-right: 2rem;
  }

  .md\:w-1\/2.mb-6.md\:mb-0.md\:pr-8 h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .md\:w-1\/2.w-full.mb-4.md\:mb-0 {
    display: flex;
    justify-content: flex-end;
  }

  .hero-slider {
    width: 95%;
    max-width: 460px;
    aspect-ratio: 1/1;
    margin-left: auto;
    border-radius: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .container.mx-auto.px-4.py-8.md\:py-16 {
    padding-top: 0.5rem !important; /* Mengurangi padding container untuk desktop */
    padding-bottom: 2rem !important;
  }

  .md\:w-1\/2.mb-6.md\:mb-0.md\:pr-8 h1 {
    font-size: 3rem;
  }

  .hero-slider {
    max-width: 500px;
    aspect-ratio: 1/1;
  }
}

/* Header Styles */
header.bg-white {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .text-2xl.font-bold.text-green-800.uppercase.tracking-wider,
header .text-2xl.font-bold.text-blue-800.uppercase.tracking-wider {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
  header .text-2xl.font-bold.text-green-800.uppercase.tracking-wider,
  header .text-2xl.font-bold.text-blue-800.uppercase.tracking-wider {
    font-size: 1.75rem;
  }
}

/* Mobile Hero Section Styles */
@media (max-width: 767px) {
  .pt-24.md\:pt-24.pt-16 {
    padding-top: 5rem !important;
  }

  .container.mx-auto.px-4.py-8.md\:py-16 {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }

  .flex.flex-col-reverse.md\:flex-row.items-center {
    gap: 1.5rem;
  }

  .hero-slider {
    aspect-ratio: 1/1;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
  }

  .slider-item {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
  }

  .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .md\:w-1\/2.mb-6.md\:mb-0.md\:pr-8 h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .md\:w-1\/2.mb-6.md\:mb-0.md\:pr-8 p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Slider Navigation Buttons */
.slider-prev,
.slider-next {
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.hero-slider:hover .slider-prev,
.hero-slider:hover .slider-next {
  opacity: 1;
}

.slider-prev:focus,
.slider-next:focus {
  outline: none;
}

@media (max-width: 640px) {
  .slider-prev,
  .slider-next {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3 {
  padding: 1rem;
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.product-category {
  padding: 0.5rem 1rem;
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.product-description {
  padding: 0 1rem 1rem;
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.product-buttons {
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

.btn-detail,
.btn-contact {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.btn-detail {
  background-color: #f0f0f0;
  color: #333;
}

.btn-contact {
  background-color: #25d366;
  color: white;
}

.btn-detail:hover {
  background-color: #e0e0e0;
}

.btn-contact:hover {
  background-color: #20bd5a;
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: #333;
  color: white;
  border-color: #333;
}

.filter-btn:hover {
  background-color: #f0f0f0;
}

.filter-btn.active:hover {
  background-color: #444;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5vh auto;
  padding: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

.modal-details h2 {
  margin-top: 0;
  color: #333;
}

.category-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: #f0f0f0;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.description,
.specifications,
.advantages {
  margin-bottom: 2rem;
}

.description h3,
.specifications h3,
.advantages h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.specifications ul,
.advantages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specifications li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.advantages li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.advantages li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #25d366;
}

.modal-contact {
  display: inline-block;
  margin-top: 1rem;
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message p {
  margin: 0.5rem 0;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .category-filter {
    justify-content: center;
  }

  .filter-btn {
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  /* Product modal mobile styles */
  #productModal {
    padding-bottom: 60px; /* Add space for the bottom navbar */
  }

  .modal-content {
    margin: 0;
    padding: 15px;
    width: 100%;
    max-height: 85vh;
    border-radius: 0;
  }

  #modalImageSlider {
    height: 250px;
  }

  .close-modal {
    right: 10px;
    top: 10px;
    font-size: 24px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .product-buttons {
    flex-direction: column;
  }

  .modal-content {
    padding: 12px;
    margin: 0;
  }

  .close-modal {
    right: 8px;
    top: 8px;
    font-size: 20px;
  }

  #modalImageSlider {
    height: 200px;
  }

  #modalTitle {
    font-size: 18px;
    margin-top: 8px;
  }

  #modalDescription,
  #modalSpecifications li,
  #modalAdvantages li {
    font-size: 14px;
  }
}

/* Modal Image Slider */
.modal-image-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.slider-prev,
.slider-next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-dot.active {
  background: rgba(0, 0, 0, 0.7);
}

/* Product Card Image */
.product-card .product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Modal Image */
.modal-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

/* Section transitions */
section {
  position: relative;
}

/* Ensure smooth transitions between sections */
section + section {
  margin-top: 0;
}

/* Fix for green background sections */
.bg-green-900,
.bg-blue-900 {
  position: relative;
  z-index: 1;
}

/* Fix for CTA section */
section.py-16.bg-green-900,
section.py-16.bg-blue-900 {
  margin-top: 0;
  margin-bottom: 0;
}

/* Fix for footer */
footer.bg-gray-800 {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* Fix for mobile view */
@media (max-width: 767px) {
  /* Ensure no gaps between sections */
  section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Fix for hero section and wave container */
  .pt-24.md\:pt-24.pt-16.bg-green-900 + .wave-container,
  .pt-24.md\:pt-24.pt-16.bg-blue-900 + .wave-container {
    margin-top: -1px;
  }

  /* Fix for sections with background colors */
  section.bg-white,
  section.bg-gray-100,
  section.bg-gray-50,
  section.bg-green-900,
  section.bg-blue-900 {
    position: relative;
    z-index: 1;
    border-top: none;
    border-bottom: none;
  }
}

/* Global section fixes to prevent gaps */
html,
body {
  overflow-x: hidden;
}

body {
  line-height: 1.5;
  min-height: 100vh;
}

/* Ensure all sections connect properly */
section {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Specific fixes for green sections */
.bg-green-900,
.bg-blue-900 {
  position: relative;
  z-index: 1;
  border-top: 0;
  border-bottom: 0;
}

/* Fix for wave container to connect with other sections */
.wave-container + section {
  margin-top: -2px !important; /* Ensure connection with wave */
}

section + .wave-container {
  margin-top: -1px !important; /* Ensure connection with previous section */
}

#scrollTopBtn {
  position: fixed;
  bottom: 80px; /* Increased bottom spacing to avoid navbar overlap on mobile */
  right: 20px;
  display: none;
  background-color: rgba(14, 127, 0, 0.8); /* Green color instead of blue */
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  z-index: 49; /* Below the fixed navbar */
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  #scrollTopBtn {
    bottom: 20px; /* Reset for desktop */
  }
}

/* Responsive text handling */
@media (min-width: 768px) {
  .text-center h2 > div {
    display: inline;
  }
  .text-center h2 > div:not(:last-child)::after {
    content: " ";
  }
}

/* Custom animations */
.animate__fadeInUp {
  animation-duration: 0.8s !important;
}

.animate__delay-1s {
  animation-delay: 0.3s !important;
}

/* Our Media Section Styles - New Layout */
.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.news-header {
  background: linear-gradient(135deg, #0e7f00, #0e7f00);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-news {
  transition: all 0.3s ease;
}

.featured-news:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.featured-news img {
  transition: transform 0.3s ease;
}

.featured-news:hover img {
  transform: scale(1.02);
}

.news-item {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.news-item:hover {
  background-color: #f8fafc;
  border-left-color: #0e7f00;
  transform: translateX(4px);
}

.news-item img {
  transition: transform 0.3s ease;
}

.news-item:hover img {
  transform: scale(1.05);
}

.news-title {
  color: #0e7f00;
  font-weight: bold;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.news-item:hover .news-title {
  color: #0c6b00;
}

.news-meta {
  color: #6b7280;
  font-size: 0.75rem;
}

/* Scroll indicator styling */
.scroll-indicator {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

/* Responsive design for news layout */
@media (max-width: 1024px) {
  .news-content {
    flex-direction: column;
  }

  .featured-news {
    margin-bottom: 2rem;
  }

  .news-list {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .news-item {
    padding: 0.75rem;
  }

  .news-item img {
    width: 60px;
    height: 48px;
  }

  .news-title {
    font-size: 0.875rem;
  }

  .news-meta {
    font-size: 0.6875rem;
  }

  .featured-news img {
    height: 240px;
  }
}

/* Line clamp utility for text truncation */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal Styles */
#mediaModal {
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

#mediaModal .bg-white {
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal content styling */
.modal-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
}

.modal-meta {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.modal-content {
  color: #374151;
  line-height: 1.7;
  font-size: 1.1rem;
  white-space: pre-wrap; /* Preserve whitespace and line breaks */
  word-wrap: break-word; /* Break long words if needed */
}

.modal-content p {
  margin-bottom: 1rem;
  white-space: pre-wrap; /* Preserve whitespace in paragraphs */
}

/* Responsive modal */
@media (max-width: 768px) {
  #mediaModal .bg-white {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }

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

  .modal-content {
    font-size: 1rem;
  }
}

/* Mobile text wrapping */
@media (max-width: 640px) {
  .leading-snug {
    line-height: 1.375;
  }
}

/* News List Scrollable */
#news-list {
  max-height: 400px; /* Height for approximately 4 items, more items will scroll */
  overflow-y: auto;
  overflow-x: hidden; /* Hide horizontal scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #0e7f00 #f3f4f6;
}

/* Media content container - prevent horizontal overflow */
#media-content {
  overflow-x: hidden;
  /* Ensure content is visible even if JavaScript fails */
  min-height: 200px;
}

/* Fallback styles for first-time visitors */
.first-time-visitor #media-content {
  /* Show content after reasonable delay even if JS doesn't load */
  animation: showContentFallback 0.5s ease-in-out 8s both;
}

@keyframes showContentFallback {
  from {
    opacity: 0;
    visibility: hidden;
  }
  to {
    opacity: 1;
    visibility: visible;
    display: flex !important;
  }
}

/* Emergency content visibility */
.content-emergency-visible {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Noscript fallback styles */
noscript {
  display: block !important;
}

noscript > div {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Media section container - prevent any horizontal overflow */
.bg-white.rounded-b-lg.shadow-lg.p-6 {
  overflow-x: hidden;
}

/* News items - ensure they don't cause overflow */
.news-item {
  max-width: 100%;
  word-wrap: break-word;
}

/* Custom scrollbar for webkit browsers */
#news-list::-webkit-scrollbar {
  width: 6px;
}

#news-list::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

#news-list::-webkit-scrollbar-thumb {
  background: #0e7f00;
  border-radius: 3px;
}

#news-list::-webkit-scrollbar-thumb:hover {
  background: #0c6b00;
}

/* ===== COMPREHENSIVE BLUE COLOR ELIMINATION ===== */
/* Force all blue colors to green across the entire site */

/* Text colors - All blue variants to green */
.text-blue-50,
.text-blue-100,
.text-blue-200,
.text-blue-300,
.text-blue-400,
.text-blue-500,
.text-blue-600,
.text-blue-700,
.text-blue-800,
.text-blue-900 {
  color: #0e7f00 !important;
}

/* Background colors - All blue variants to green */
.bg-blue-50,
.bg-blue-100,
.bg-blue-200,
.bg-blue-300,
.bg-blue-400,
.bg-blue-500,
.bg-blue-600,
.bg-blue-700,
.bg-blue-800,
.bg-blue-900 {
  background-color: #0e7f00 !important;
}

/* Border colors - All blue variants to green */
.border-blue-50,
.border-blue-100,
.border-blue-200,
.border-blue-300,
.border-blue-400,
.border-blue-500,
.border-blue-600,
.border-blue-700,
.border-blue-800,
.border-blue-900 {
  border-color: #0e7f00 !important;
}

/* Hover states - All blue hover variants to green */
.hover\:text-blue-50:hover,
.hover\:text-blue-100:hover,
.hover\:text-blue-200:hover,
.hover\:text-blue-300:hover,
.hover\:text-blue-400:hover,
.hover\:text-blue-500:hover,
.hover\:text-blue-600:hover,
.hover\:text-blue-700:hover,
.hover\:text-blue-800:hover,
.hover\:text-blue-900:hover {
  color: #0c6b00 !important;
}

.hover\:bg-blue-50:hover,
.hover\:bg-blue-100:hover,
.hover\:bg-blue-200:hover,
.hover\:bg-blue-300:hover,
.hover\:bg-blue-400:hover,
.hover\:bg-blue-500:hover,
.hover\:bg-blue-600:hover,
.hover\:bg-blue-700:hover,
.hover\:bg-blue-800:hover,
.hover\:bg-blue-900:hover {
  background-color: #0c6b00 !important;
}

.hover\:border-blue-50:hover,
.hover\:border-blue-100:hover,
.hover\:border-blue-200:hover,
.hover\:border-blue-300:hover,
.hover\:border-blue-400:hover,
.hover\:border-blue-500:hover,
.hover\:border-blue-600:hover,
.hover\:border-blue-700:hover,
.hover\:border-blue-800:hover,
.hover\:border-blue-900:hover {
  border-color: #0c6b00 !important;
}

/* Focus states - All blue focus variants to green */
.focus\:text-blue-50:focus,
.focus\:text-blue-100:focus,
.focus\:text-blue-200:focus,
.focus\:text-blue-300:focus,
.focus\:text-blue-400:focus,
.focus\:text-blue-500:focus,
.focus\:text-blue-600:focus,
.focus\:text-blue-700:focus,
.focus\:text-blue-800:focus,
.focus\:text-blue-900:focus {
  color: #0e7f00 !important;
}

.focus\:bg-blue-50:focus,
.focus\:bg-blue-100:focus,
.focus\:bg-blue-200:focus,
.focus\:bg-blue-300:focus,
.focus\:bg-blue-400:focus,
.focus\:bg-blue-500:focus,
.focus\:bg-blue-600:focus,
.focus\:bg-blue-700:focus,
.focus\:bg-blue-800:focus,
.focus\:bg-blue-900:focus {
  background-color: #0e7f00 !important;
}

.focus\:border-blue-50:focus,
.focus\:border-blue-100:focus,
.focus\:border-blue-200:focus,
.focus\:border-blue-300:focus,
.focus\:border-blue-400:focus,
.focus\:border-blue-500:focus,
.focus\:border-blue-600:focus,
.focus\:border-blue-700:focus,
.focus\:border-blue-800:focus,
.focus\:border-blue-900:focus {
  border-color: #0e7f00 !important;
}

/* Ring colors - All blue ring variants to green */
.ring-blue-50,
.ring-blue-100,
.ring-blue-200,
.ring-blue-300,
.ring-blue-400,
.ring-blue-500,
.ring-blue-600,
.ring-blue-700,
.ring-blue-800,
.ring-blue-900 {
  --tw-ring-color: #0e7f00 !important;
}

.focus\:ring-blue-50:focus,
.focus\:ring-blue-100:focus,
.focus\:ring-blue-200:focus,
.focus\:ring-blue-300:focus,
.focus\:ring-blue-400:focus,
.focus\:ring-blue-500:focus,
.focus\:ring-blue-600:focus,
.focus\:ring-blue-700:focus,
.focus\:ring-blue-800:focus,
.focus\:ring-blue-900:focus {
  --tw-ring-color: #0e7f00 !important;
}

/* Gradient overrides - All blue gradients to green */
.from-blue-50,
.from-blue-100,
.from-blue-200,
.from-blue-300,
.from-blue-400,
.from-blue-500,
.from-blue-600,
.from-blue-700,
.from-blue-800,
.from-blue-900 {
  --tw-gradient-from: #0e7f00 !important;
}

.to-blue-50,
.to-blue-100,
.to-blue-200,
.to-blue-300,
.to-blue-400,
.to-blue-500,
.to-blue-600,
.to-blue-700,
.to-blue-800,
.to-blue-900 {
  --tw-gradient-to: #0e7f00 !important;
}

.via-blue-50,
.via-blue-100,
.via-blue-200,
.via-blue-300,
.via-blue-400,
.via-blue-500,
.via-blue-600,
.via-blue-700,
.via-blue-800,
.via-blue-900 {
  --tw-gradient-via: #0e7f00 !important;
}

/* Comprehensive wildcard overrides for any remaining blue */
*[style*="color: blue"],
*[style*="color:blue"],
*[style*="color: #1bb1dc"],
*[style*="color:#1bb1dc"],
*[style*="background: blue"],
*[style*="background:blue"],
*[style*="background: #1bb1dc"],
*[style*="background:#1bb1dc"],
*[style*="background-color: blue"],
*[style*="background-color:blue"],
*[style*="background-color: #1bb1dc"],
*[style*="background-color:#1bb1dc"],
*[style*="border-color: blue"],
*[style*="border-color:blue"],
*[style*="border-color: #1bb1dc"],
*[style*="border-color:#1bb1dc"] {
  color: #0e7f00 !important;
  background-color: #0e7f00 !important;
  border-color: #0e7f00 !important;
}

/* Service card specific overrides */
.service-card,
.about-card-animated {
  transition: all 0.3s ease !important;
}

.service-card:hover,
.about-card-animated:hover {
  box-shadow: 0 10px 25px rgba(14, 127, 0, 0.3) !important;
  transform: translateY(-5px) !important;
}

/* Icon overrides for service cards */
.service-card i,
.about-card-animated i {
  color: #0e7f00 !important;
}

/* Animation and transition overrides */
@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse {
  animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

/* Button animation overrides */
button:hover,
.btn:hover,
a[class*="bg-"]:hover {
  transition: all 0.3s ease !important;
}

/* Universal blue color override - Last resort */
* {
  --tw-text-blue-400: #0e7f00 !important;
  --tw-text-blue-500: #0e7f00 !important;
  --tw-text-blue-600: #0e7f00 !important;
  --tw-text-blue-700: #0e7f00 !important;
  --tw-text-blue-800: #0e7f00 !important;
  --tw-text-blue-900: #0e7f00 !important;
  --tw-bg-blue-400: #0e7f00 !important;
  --tw-bg-blue-500: #0e7f00 !important;
  --tw-bg-blue-600: #0e7f00 !important;
  --tw-bg-blue-700: #0e7f00 !important;
  --tw-bg-blue-800: #0e7f00 !important;
  --tw-bg-blue-900: #0e7f00 !important;
}

/* Ensure scroll button is green */
#scrollTopBtn,
.scroll-to-top,
.scroll-btn {
  background-color: rgba(14, 127, 0, 0.8) !important;
  color: white !important;
}

#scrollTopBtn:hover,
.scroll-to-top:hover,
.scroll-btn:hover {
  background-color: rgba(12, 107, 0, 0.9) !important;
}

/* About card title and animation overrides */
.about-card-animated:hover h3 {
  color: #0e7f00 !important;
}

.about-card-animated:hover .text-4xl {
  color: #0e7f00 !important;
  text-shadow: 0 0 20px rgba(14, 127, 0, 0.3) !important;
}

/* Icon hover animation - NO COLOR CHANGE, only transform */
.about-card-animated:hover i.fas {
  /* Remove color and text-shadow to prevent conflict with original icon colors */
  transform: scale(1.2) rotate(10deg) !important;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Exception: Icons inside bg-green-100 containers can turn white when background changes */
.about-card-animated:hover .bg-green-100 i {
  color: white !important;
  transform: scale(1.1) !important;
  transition: all 0.6s ease !important;
}

/* Exception: Icons inside bg-green-800 containers can stay white */
.about-card-animated:hover .bg-green-800 i {
  color: white !important;
}

.about-card-animated:hover h4 {
  color: #0e7f00 !important;
}

/* Service icons override - NO COLOR CHANGE for about cards */
.about-card-animated:hover .text-green-800 i.fas,
.about-card-animated:hover .text-blue-800 i.fas {
  /* Keep original icon color, only animate transform */
  transform: scale(1.2) rotate(10deg) !important;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Background icon containers override */
.about-card-animated:hover .bg-green-100,
.about-card-animated:hover .bg-blue-100 {
  background: linear-gradient(135deg, #0e7f00 0%, #0c6b00 100%) !important;
}

/* Button hover overrides for about cards */
.about-card-animated:hover .bg-green-800,
.about-card-animated:hover .bg-blue-800 {
  background: linear-gradient(135deg, #0e7f00 0%, #0c6b00 100%) !important;
  box-shadow: 0 0 20px rgba(14, 127, 0, 0.3) !important;
}

.about-card-animated:hover a.bg-green-800,
.about-card-animated:hover a.bg-blue-800 {
  background: linear-gradient(135deg, #0e7f00 0%, #0c6b00 100%) !important;
  box-shadow: 0 4px 12px rgba(14, 127, 0, 0.3) !important;
}

/* Force all card titles to green on hover */
.about-card-animated:hover h3,
.service-card:hover h3 {
  color: #0e7f00 !important;
  transition: color 0.6s ease !important;
}

/* Force green hover for Integritas card and all value cards */
.about-card-animated h3:hover,
.about-card-animated:hover h3[class*="text-"] {
  color: #0e7f00 !important;
}

/* Card hover shadow animation override */
.about-card-animated:hover {
  box-shadow: 0 10px 25px rgba(14, 127, 0, 0.3) !important;
  transform: translateY(-5px) !important;
}

/* Service card hover shadow override */
.service-card:hover {
  box-shadow: 0 10px 25px rgba(14, 127, 0, 0.3) !important;
  transform: translateY(-5px) !important;
}

/* Comprehensive card shadow override */
.bg-white.rounded-lg.shadow-md:hover {
  box-shadow: 0 10px 25px rgba(14, 127, 0, 0.3) !important;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.8em;
}
