html,
body {
  overscroll-behavior-y: auto;
  overscroll-behavior-x: none;
}

/* Hide scrollbar but still scrollable */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none; /* IE & Edge */
  scrollbar-width: none; /* Firefox */
}

/* Global Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDelay {
  0%,
  30% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes radialExpand {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInStagger {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
  animation: fadeInDelay 1.5s ease-out forwards;
}

/* Navbar Glassmorphism */
.navbar {
  padding: 1.5rem 0;
  backdrop-filter: blur(0px);
  background: transparent;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.7);
  /* border-bottom: 1px solid rgba(37, 37, 37, 0.1); */
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    0 0 20px 0 rgba(85, 196, 247, 0.1);
}

.navbar-container {
  transition: all 0.3s ease;
}

/* Logo */
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: auto;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo-icon {
  width: 7.5rem;
  height: auto;
}

.navbar.scrolled .logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.logo-text {
  transition: all 0.3s ease;
}

.navbar.scrolled .logo-text {
  font-size: 1.125rem;
}

/* Navigation Links */
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  display: inline-block;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1478eb, #478af5);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 1);
}

.nav-link:hover::after {
  width: 100%;
}

/* Active State - Same as Hover */
.nav-link.active {
  color: rgba(255, 255, 255, 1) !important;
}

.nav-link.active::after {
  width: 100%;
}

.nav-link.active::before {
  width: 120%;
}

/* Active state when navbar is scrolled - Higher specificity */
.navbar.scrolled .nav-link.active {
  color: rgba(255, 255, 255, 1) !important;
}

.navbar.scrolled .nav-link.active::after {
  width: 100% !important;
}

.navbar.scrolled .nav-link.active::before {
  width: 120% !important;
}

/* Force active state even when scrolled - Ultimate specificity */
#navbar.scrolled .nav-link.active,
#navbar.scrolled #nav-home.active,
#navbar.scrolled #nav-about.active,
#navbar.scrolled #nav-products.active,
#navbar.scrolled #nav-brands.active,
#navbar.scrolled #nav-news.active,
#navbar.scrolled #nav-career.active,
#navbar.scrolled #nav-contact.active {
  color: rgba(255, 255, 255, 1) !important;
}

#navbar.scrolled .nav-link.active::after {
  width: 100% !important;
}

/* Liquid Ink Bar Effect */
.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(168, 85, 247, 0.3);
  transform: translateX(-50%);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: blur(2px);
  border-radius: 2px;
}

.nav-link:hover::before {
  width: 120%;
}

/* CTA Button */

.cta-desktop {
  display: flex;
}

@media (max-width: 886px) {
  .cta-desktop {
    display: none;
  }
}

.cta-button {
  position: relative;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  color: white;
  font-weight: 600;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.navbar.scrolled .cta-button {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.cta-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-button:hover .cta-shine {
  left: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

/* Saat mobile menu aktif, MATIKAN efek navbar scroll */
body.menu-open .navbar.scrolled {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

/* middle line hidden by default */
.hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:first-child {
  transform: rotate(45deg) translateY(4px);
}

.mobile-menu-btn.active .hamburger-line:last-child {
  transform: rotate(-45deg) translateY(-4px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;

  /* overlay selalu full dari awal */
  width: 100vw;
  height: 100vh;

  /* transisi */
  opacity: 0;
  pointer-events: none;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  background: rgba(10, 11, 20, 0);
  backdrop-filter: blur(0px);

  transition:
    opacity 0.6s ease,
    background 0.6s ease,
    backdrop-filter 1s ease;
}

/* ACTIVE */
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;

  background: rgba(10, 11, 20, 0.72);
  backdrop-filter: blur(2px);
}

.mobile-menu-content {
  position: relative;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 50%;
}

.mobile-menu.active .mobile-menu-content {
  transform: scale(1);
  border-radius: 0;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0;
  transition:
    opacity 0.3s ease 0.3s,
    transform 0.3s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.mobile-menu.active .close-btn {
  opacity: 1;
}

.close-btn-fixed {
  position: fixed;
  top: env(safe-area-inset-top, 1rem);
  right: env(safe-area-inset-right, 1rem);
  z-index: 110;
  padding: 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.close-btn-fixed:hover {
  transform: rotate(90deg) scale(1.05);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 90px 0 0;
  text-align: left;
}

.mobile-nav-item {
  opacity: 0;
  transform: none;
  margin: 1rem 2rem 3rem;
  transition: opacity 0.6s ease;
}

/* pas overlay active */
.mobile-menu.active .mobile-nav-item {
  opacity: 1;
}

/* keyframes fade */
@keyframes fadeInStagger {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* biar about + chevron satu baris */
.mobile-drop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* tombol chevron kanan */
.mobile-drop-toggle {
  background: transparent;
  border: none;
  cursor: pointer;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 1.6rem;

  transition: transform 0.35s ease;
}

/* rotate dari bawah ke atas */
.mobile-dropdown.open .mobile-drop-toggle {
  transform: rotate(180deg);
}

/* dropdown menu */
.mobile-drop-menu {
  list-style: none;
  margin: 0;
  padding: 0;

  /* animasi open/close */
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height 0.5s ease,
    opacity 0.4s ease;
}

/* saat open */
.mobile-dropdown.open .mobile-drop-menu {
  max-height: 500px; /* aman buat isi dropdown */
  opacity: 1;
}

/* link dropdown lebih kecil */
.mobile-drop-link {
  display: block;
  margin-top: 30px;
  text-decoration: none;

  color: rgba(255, 255, 255, 0.75);
  font-size: 1.2rem;
  font-weight: 400;

  padding: 0.6rem 0;
}

.mobile-drop-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

/* selaras sama margin item kamu */
.mobile-dropdown .mobile-drop-menu {
  margin-top: 0;
  padding-left: 0;
}

.mobile-nav-link,
.mobile-nav-drop-link {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

.mobile-nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1478eb, #478af5);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.mobile-nav-link:hover {
  color: #ffffff;
}

.mobile-nav-link:hover::after {
  width: 100%;
}

/* Active State - Same as Hover */
.mobile-nav-link.active {
  color: #ffffff !important;
}

.mobile-nav-link.active::after {
  width: 100%;
}

/* Active State for Mobile Dropdown Header */
.mobile-drop-trigger.active {
  color: #ffffff !important;
  font-weight: 600;
}

/* Active state when navbar is scrolled - Mobile */
.navbar.scrolled .mobile-nav-link.active {
  color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 0;
  }

  .navbar.scrolled {
    padding: 0.75rem 0;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1478eb, #478af5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3892f8, #73a8fd);
}

/* =========================
   DESKTOP DROPDOWN
========================= */

.desktop-dropdown-menu {
  position: absolute;
  top: 117%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;

  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  /* border-radius: 1rem; */
  padding: 0.75rem 0;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: all 0.3s ease;
  z-index: 60;
}

/* connector */
/* .desktop-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: rgba(15, 23, 42, 0.75);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
} */

/* Hover open */
.desktop-dropdown:hover .desktop-dropdown-menu,
.desktop-dropdown:focus-within .desktop-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.desktop-drop-toggle {
  margin: 1rem 0;
  cursor: pointer;
}

.desktop-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 14px;
}

/* Dropdown item */
.dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: linear-gradient(
    90deg,
    rgba(168, 85, 247, 0.15),
    rgba(59, 130, 246, 0.15)
  );
  color: #fff;
  padding-left: 1.75rem;
}

/* Chevron animation - SVG chevron styling */
.desktop-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.desktop-dropdown:hover .desktop-chevron,
.desktop-dropdown:focus-within .desktop-chevron {
  transform: rotate(180deg);
}

/* default dropdown (hidden) */
.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* saat dibuka */
.dropdown-menu.open {
  max-height: 500px; /* harus cukup besar */
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.25 ease;
}

.drop-item {
  margin: 0.5rem;
}

.chevron-fixed {
  position: fixed;
  top: 4px;
  right: 33px;
}

.htmlcss-arrow {
  transition: transform 0.3s ease;
}

/* Saat dropdown OPEN */
.dropdown.open .htmlcss-arrow {
  transform: rotate(180deg);
}

.mobile-nav-list .arrow {
  transition: all 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] .htmlcss-arrow {
  transform: rotate(180deg);
}

/* Default: MOBILE */
.desktop-menu {
  display: none;
}

.mobile-menu-btn {
  display: flex;
}

/* DESKTOP >= 900px */
@media (min-width: 886px) {
  .desktop-menu {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

.hero-img {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 800px) {
  .hero-img {
    object-fit: contain;
  }
}

/* BASE STATE */
.hero-logo,
.hero-text,
.hero-text-2 {
  opacity: 0.001;
  transform: translateY(40px);
  filter: blur(6px);

  will-change: transform, opacity, filter;
}

.leading-custom {
  line-height: 1.05;
}

.riyadi-text-1 {
  font-family: "montserrat";
}

@media (max-width: 768px) {
  .riyadi-text-1 {
    font-size: 36px;
  }
}

@media (max-width: 425px) {
  .riyadi-text-1 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .riyadi-text-3 {
    font-size: 12px;
  }
}

.hero-slide {
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
}

.riyadi-circle {
  z-index: 0;
  transition: opacity 4s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

/* ENTER (fade in dari bawah) */
.hero-slide.is-enter .hero-logo,
.hero-slide.is-enter .hero-text,
.hero-slide.is-enter .hero-text-2,
.hero-slide.is-enter .riyadi-circle {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);

  transition:
    opacity 0.8s ease-out,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease-out;
}

.hero-slide.is-enter .hero-logo .riyadi-circle {
  transition-delay: 0.25s;
}

.hero-slide.is-enter .hero-text .riyadi-circle {
  transition-delay: 0.45s;
}

/* EXIT (fade out ke atas) */
.hero-slide.is-exit .hero-logo,
.hero-slide.is-exit .hero-text,
.hero-slide.is-exit .hero-text-2,
.hero-slide.is-exit .riyadi-circle {
  opacity: 0;
  transform: translateY(-24px);
  filter: blur(4px);

  transition:
    opacity 0.45s ease-in,
    transform 0.45s ease-in,
    filter 0.3s ease-in;
}

/*Bar Progress */

#heroProgress {
  width: 0%;
  height: 3px;
  background: #fff;
  transition: none;
}

/* Customer Home */

.customer-swiper {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.customer-swiper.is-ready {
  opacity: 1;
}

.customer-slide {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.customer-logo:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .customer-logo {
    height: 60px;
  }
}

.section-title-wrap {
  text-align: center;
}

.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 64px;
}

/* divider */

.section-divider {
  position: absolute;
  left: 25%;
  bottom: -35px;
  width: 50%;
  height: 4px;
  background: linear-gradient(90deg, #1478eb, #478af5);
  border-radius: 4px;

  clip-path: inset(0 50% 0 50%);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* aktif */
.section-divider.is-visible {
  clip-path: inset(0 0 0 0);
}

/* News Home */

.news-skeleton-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.skeleton-img {
  height: 180px;
  background: linear-gradient(100deg, #eee 40%, #f5f5f5 50%, #eee 60%);
  background-size: 200% 100%;
  animation: skeleton 1.4s infinite;
}

.skeleton-body {
  padding: 22px 20px 24px;
}

.skeleton-meta,
.skeleton-title,
.skeleton-text,
.skeleton-readmore {
  height: 12px;
  background: #eee;
  border-radius: 6px;
  margin-bottom: 12px;
  animation: skeleton 1.4s infinite;
}

.skeleton-title {
  height: 18px;
  width: 80%;
}

.skeleton-text {
  height: 14px;
  width: 100%;
}

.skeleton-readmore {
  width: 90px;
  margin-top: 30px;
}

@keyframes skeleton {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.news-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-heading {
  padding-bottom: 30px;
}

.news-card {
  background: #fff;
  border-radius: 14px;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 10px rgba(21, 19, 19, 0.12);
}

.news-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between; /* ⬅️ INI KUNCI */
  margin-bottom: 14px;
  font-size: 13px;
}

.news-date {
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.news-category {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
}

@media (min-width: 640px) and (max-width: 748px) {
  .news-category {
    font-size: 7px;
  }
}

/* WARNA BERDASARKAN KATEGORI */
.news-category.exhibition {
  background: #0ea5e9;
}

.news-category.csr {
  background: #22c55e;
}

.news-category.event {
  background: #6366f1;
}

.news-category.news {
  background: #f59e0b;
}

.news-category.tournament {
  background: #0be5f5;
}

.news-card:hover .news-category {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .news-title {
    font-size: 16px;
  }
}

.news-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-readmore {
  margin-top: auto;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.readmore-text {
  font-family: "roboto", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}

.readmore-icon {
  width: 18px;
  height: 18px;
  background-color: #0ea5e9;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    background-color 0.45s ease-in-out,
    transform 0.45s ease-in-out;
}

/* SVG */
.chevron-svg {
  transition:
    transform 0.45s ease-in-out,
    color 0.45s ease-in-out;
  color: white;
}

/* HOVER CARD */
.news-card:hover .readmore-icon {
  opacity: 0.8;
  transform: translateX(2px);
}

.news-card:hover .chevron-svg {
  color: #fff;
  transform: translateX(1px);
}

/* OPTIONAL: underline text */
.readmore-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease-in-out;
}

.news-card:hover .readmore-text::after {
  width: 100%;
}

/* ===============================
   INTERSECTION OBSERVER ANIMATION
================================= */

.observe {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for cards */
.news-card.observe {
  transition-delay: var(--delay, 0s);
}

/* ===============================
   PRODUCTS PAGE - SIDEBAR CUSTOM SCROLLBAR
================================ */

/* Custom scrollbar for category sidebar - unique style */
.category-scroll-container {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Firefox */
.category-scroll-container {
  scrollbar-width: thin;
  scrollbar-color: #64748b #f1f5f9;
}

/* Chrome, Safari, Edge */
.category-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.category-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #64748b, #94a3b8);
  border-radius: 3px;
}

.category-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #475569, #64748b);
}

/* Product card fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.4s ease-out forwards;
}

/* 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;
}

/* ===============================
   VIEW ALL NEWS CTA
================================= */

.news-cta-wrap {
  margin: 0 10px;
  text-align: center;
}

.news-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #111;
  border: 2px solid #111;
  transition: all 0.3s ease;
}

.news-cta-btn span {
  transition: transform 0.3s ease;
}

.news-cta-btn:hover {
  background: #111;
  color: #fff;
}

.news-cta-btn:hover span {
  transform: translateX(6px);
}

/* Mobile Cart CTA */
.mobile-cart-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.mobile-cart-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.mobile-cart-cta svg {
  color: #fff;
}

.news-swiper-wrap {
  position: relative;
}

.news-pagination {
  margin-top: 16px;
  text-align: center;
}

.news-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  margin: 0 6px;
}

.news-pagination .swiper-pagination-bullet-active {
  background: #000;
}

.riyadi-text {
  font-family: "montserrat";
}

.ri-icon {
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.group:hover .ri-icon {
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.8));
}

.hero-gradient {
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 55%) 0%,
    rgb(80 75 75 / 45%) 10%,
    rgb(75 75 75 / 22%) 25%,
    rgb(0 0 0 / 0%) 40%
  );
}

/* Bubble */
#wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.wa-bubble {
  background: white;
  color: #111;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Pulse animation */
.wa-pulse {
  position: relative;
}

.wa-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.wa-bubble {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.news-item {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.news-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.news-item.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.news-filter-btn.active {
  background-color: #0f172a; /* slate-900 */
  color: #ffffff;
  border-color: #0f172a;
}

/* ===============================
   NEWS DETAIL CONTENT STYLES
================================== */
.news-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #374151;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #111827;
}

.news-content h1 {
  font-size: 2rem;
}
.news-content h2 {
  font-size: 1.75rem;
}
.news-content h3 {
  font-size: 1.5rem;
}
.news-content h4 {
  font-size: 1.25rem;
}
.news-content h5 {
  font-size: 1.125rem;
}
.news-content h6 {
  font-size: 1rem;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.news-content a {
  color: #c41e3a;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.news-content a:hover {
  color: #991b1b;
}

.news-content ul,
.news-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.news-content ul {
  list-style-type: disc;
}

.news-content ol {
  list-style-type: decimal;
}

.news-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.news-content blockquote {
  border-left: 4px solid #c41e3a;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
}

.news-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.news-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.news-content table th,
.news-content table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.news-content table th {
  background-color: #f9fafb;
  font-weight: 600;
}

.news-content pre,
.news-content code {
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  font-family: monospace;
}

.news-content code {
  padding: 0.125rem 0.25rem;
  font-size: 0.875em;
}

.news-content pre {
  padding: 1rem;
  overflow-x: auto;
}

.news-content pre code {
  padding: 0;
  background: none;
}

/* ==================== TIMELINE SECTION ==================== */
.timeline-section {
  background: #ffffff;
}

/* ==================== TIMELINE SLIDER ==================== */
.timeline-slider {
  position: relative;
}

/* ==================== NAVIGATION BUTTONS ==================== */
.timeline-nav-btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-nav-btn:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ==================== TIMELINE SWIPER STYLES ==================== */
.timeline-swiper-container {
  overflow: hidden !important;
}

.timeline-swiper-container .swiper-wrapper {
  padding-bottom: 20px;
}

.timeline-slide {
  height: auto;
  display: flex;
}

.timeline-slide .timeline-item {
  width: 100%;
  height: 100%;
}

/* Ensure timeline line is visible with Swiper */
.timeline-swiper .timeline-line {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 20px;
  height: 2px;
  background: #bfdbfe;
  z-index: 0;
  pointer-events: none;
}

/* Progress bar styling - position correctly */
.timeline-pagination.swiper-pagination {
  position: relative;
  top: auto;
  bottom: auto;
  margin-top: 24px;
}

/* Ensure section has proper overflow */
.timeline-section {
  overflow: hidden;
}

/* Progress bar styling */
.timeline-pagination {
  transition: width 0.3s ease;
}

/* Navigation button positioning */
.timeline-button-prev,
.timeline-button-next {
  z-index: 20;
}

/* ==================== TIMELINE TRACK WRAPPER ==================== */
.timeline-track-wrapper {
  position: relative;
}

/* ==================== TIMELINE TRACK ==================== */
/* No longer needed - handled by Swiper */

/* ==================== HORIZONTAL LINE ==================== */
.timeline-line {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 20px;
  height: 2px;
  background: #bfdbfe;
  z-index: 0;
  pointer-events: none;
}

/* Mobile - adjust line position */
@media (max-width: 768px) {
  .timeline-line {
    left: 50px !important;
    right: 50px !important;
  }
}

/* ==================== TIMELINE ITEM ==================== */
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex-shrink: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

/* ==================== DOT ==================== */
.timeline-dot {
  width: 16px;
  height: 16px;
  position: relative;
  top: 12px;
  background: #ffffff;
  border: 4px solid #1e3a8a;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 20px;
  z-index: 5;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.timeline-dot:hover {
  transform: scale(1.2);
  background: #dbeafe;
}

.timeline-dot-last {
  background: #ffffff;
  border-color: #059669;
}

.timeline-dot-last:hover {
  background: #d1fae5;
}

/* ==================== YEAR BADGE ==================== */
.timeline-year-badge {
  background: #dbeafe;
  color: #1e3a8a;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.timeline-item:hover .timeline-year-badge {
  background: #bfdbfe;
}

/* ==================== TITLE ==================== */
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ==================== DESCRIPTION ==================== */
.timeline-desc {
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 0 45px;
  margin: 0;
}

/* ==================== PROGRESS BAR ==================== */
#timelineProgress {
  transition: width 0.5s ease-out;
}

/* ==================== AWARDS SWIPER CUSTOM STYLES ==================== */
.awards-swiper-button-next,
.awards-swiper-button-prev {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: white !important;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  z-index: 10;
}

.awards-swiper-button-next::after,
.awards-swiper-button-prev::after {
  font-size: 1rem !important;
  font-weight: 700;
}

.awards-swiper-button-next:hover,
.awards-swiper-button-prev:hover {
  background: #0f172a !important;
  color: white !important;
  border-color: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3);
  transform: scale(1.1);
}

.awards-swiper-button-next:active,
.awards-swiper-button-prev:active {
  transform: scale(0.95);
}

/* Custom Pagination Styles */
.awards-slider-controls {
  margin-top: 1.5rem;
}

.awards-slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: white;
  color: #334155;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.awards-slider-btn:hover {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3);
  transform: scale(1.1);
}

.awards-slider-btn:active {
  transform: scale(0.95);
}

.awards-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.awards-slider-dot.active {
  background: #0f172a;
  width: 10px;
  border-radius: 50%;
}

.awards-slider-dot:hover {
  background: #64748b;
}

/* Lightbox Custom Styles */
#lightboxOverlay {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

#lightboxImage {
  max-width: 90vw;
  max-height: 90vh;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .timeline-nav-btn {
    width: 36px;
    height: 36px;
  }

  /* Timeline container - x-2 padding */
  .timeline-section .overflow-hidden {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Mobile - handled by Swiper */
  .timeline-line {
    left: 25px;
    right: 25px;
  }

  .timeline-desc {
    font-size: 0.75rem;
    padding: 0 35px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet: 2 items per slide - handled by Swiper */
  .timeline-desc {
    font-size: 0.75rem;
    padding: 0 25px;
  }
}

@media (min-width: 1025px) {
  /* Desktop - handled by Swiper */
  .timeline-desc {
    font-size: 0.875rem;
  }
}

/* Fade-in on scroll animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Font Riyadi */
.font-riyadi {
  font-family: "montserrat";
}

/* Infinite Marquee - Premium Customer Slider */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 3%,
    #000 97%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 3%,
    #000 97%,
    transparent
  );
}

.marquee-content {
  display: flex;
  flex-direction: row;
  width: max-content;
}

.marquee-item {
  flex: 0 0 auto;
  width: 180px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-item img {
  max-height: 55px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.marquee-item:hover img {
  transform: scale(1.08);
}

/* Marquee Animation - Scroll Left */
.marquee-left {
  animation: marquee-left 30s linear infinite;
}

/* Marquee Animation - Scroll Right */
.marquee-right {
  animation: marquee-right 35s linear infinite;
}

@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .marquee-item {
    width: 150px;
    padding: 0 15px;
  }
  .marquee-item img {
    max-height: 45px;
  }
}

@media (max-width: 768px) {
  .marquee-item {
    width: 140px;
    padding: 0 12px;
  }
  .marquee-item img {
    max-height: 40px;
  }
}

@media (max-width: 480px) {
  .marquee-item {
    width: 120px;
    padding: 0 10px;
  }
  .marquee-item img {
    max-height: 32px;
  }
}
