/* PT Kanaya Multi Solusindo - Corporate Stylesheet
   Color Palette matched 100% with Design Mockup:
   - Primary Corporate Blue: #123E78 (Vibrant Corporate Cobalt)
   - Secondary Ocean Blue: #165394
   - Deep Navy Blue: #0B2347
   - Accent Warm Amber / Gold: #F59E0B / #EAB308
   - Soft Surface: #F0F6FC & #FFFFFF
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --color-primary: #123E78;
  --color-primary-dark: #0B2347;
  --color-primary-light: #165394;
  --color-accent: #F59E0B;
  --color-accent-hover: #D97706;
  --color-accent-light: #FEF3C7;
  --color-surface: #FFFFFF;
  --color-surface-muted: #F8FAFC;
  --color-surface-blue: #F0F6FC;
  --color-border: #E2E8F0;
  --color-text-main: #0E294B;
  --color-text-muted: #64748B;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-surface);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Glass Header Effect */
.glass-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
}

/* Top bar style */
.top-bar-corporate {
  background-color: #0B2347;
  color: #E2E8F0;
}

/* Nav Link Hover & Active */
.nav-link {
  position: relative;
  transition: all 0.2s ease-in-out;
  color: #334155;
  font-weight: 500;
  font-size: 0.935rem;
}
.nav-link:hover, .nav-link.active {
  color: #123E78;
  font-weight: 700;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: #F59E0B;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}
.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

/* Corporate Buttons */
.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #EAB308 100%);
  color: #0F172A;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #D97706 0%, #CA8A04 100%);
  color: #000000;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.38);
  transform: translateY(-1px);
}

.btn-navy {
  background-color: #123E78;
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-navy:hover {
  background-color: #0B2347;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(18, 62, 120, 0.3);
  transform: translateY(-1px);
}

.btn-outline-navy {
  border: 1.5px solid #123E78;
  color: #123E78;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-outline-navy:hover {
  background-color: #123E78;
  color: #FFFFFF;
}

/* ==================== HERO SLIDESHOW STYLES ==================== */
.hero-slider-container {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #F0F6FC;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 10;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  object-fit: cover;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent, black 25%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25%);
}

@media (max-width: 1024px) {
  .hero-slide-bg {
    width: 100%;
    opacity: 0.22;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Slide Arrow Controls */
.slide-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #E2E8F0;
  color: #123E78;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(18, 62, 120, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}
.slide-arrow-btn:hover {
  background: #123E78;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}
.slide-arrow-btn.prev {
  left: 20px;
}
.slide-arrow-btn.next {
  right: 20px;
}

/* Slide Indicator Dots */
.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #CBD5E1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-dot.active {
  width: 32px;
  background: #F59E0B;
}

/* Slide Progress Bar */
.slide-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #F59E0B;
  width: 0%;
  z-index: 25;
  transition: width linear;
}

/* ==================== SUBPAGE BANNER STYLES ==================== */
.subpage-banner {
  background: linear-gradient(135deg, #0B2347 0%, #123E78 55%, #165394 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.subpage-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background-image: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Card Hover Elevation */
.card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #E2E8F0;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(18, 62, 120, 0.1), 0 4px 10px -2px rgba(18, 62, 120, 0.04);
  border-color: #93C5FD;
}

/* Floating WhatsApp widget */
.wa-float-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  background-color: #25D366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}
.wa-float-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #0B2347;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  pointer-events: none;
}
.wa-float-btn:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
  right: 76px;
}

/* Category Sidebar Item Active */
.cat-pill {
  transition: all 0.2s ease;
}
.cat-pill.active {
  background-color: #123E78 !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

/* Breadcrumb Styling */
.breadcrumb-container {
  background: #F0F6FC;
  border-bottom: 1px solid #E2E8F0;
}

/* Modal backdrop */
.modal-backdrop {
  background-color: rgba(11, 35, 71, 0.65);
  backdrop-filter: blur(4px);
}

/* Table specs style */
.specs-table tr:nth-child(even) {
  background-color: #F8FAFC;
}

/* ==================== CMS ADMIN DASHBOARD STYLES ==================== */
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94A3B8;
  transition: all 0.2s ease;
}
.admin-sidebar-link:hover, .admin-sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-weight: 600;
}
.admin-sidebar-link.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: #FBBF24;
  border-left: 3px solid #F59E0B;
}

.cms-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
