/* BK Planet Website Premium Styling System */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  /* Curated HSL Color System */
  --navy-h: 233;
  --navy-s: 53%;
  --navy-l: 25%;
  
  --navy: hsl(var(--navy-h), var(--navy-s), var(--navy-l));        /* #1E2761 - Deep Blue */
  --navy-2: hsl(var(--navy-h), var(--navy-s), 32%);      /* Medium Deep Blue */
  --navy-dark: #0f1435;
  --ice: #CADCFC;                                        /* Accent Light Blue */
  --ice-bg: #F3F7FD;                                     /* Soft Section BG */
  --amber: #E8A33D;                                      /* Brand Amber Button */
  --amber-hover: #D08A27;
  --text: #1E2229;                                       /* Near Black for readability */
  --muted: #64748B;                                      /* Slate Cool Gray */
  --white: #FFFFFF;
  --border: rgba(226, 232, 240, 0.8);
  
  --max-width: 1200px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(30, 39, 97, 0.08), 0 10px 10px -5px rgba(30, 39, 97, 0.04);
  --font: 'Pretendard', -apple-system, sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Common Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Navigation Header */
header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-weight: 900;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-red {
  color: #E31937;
  position: relative;
}

.logo-blue {
  color: #00B2FF; /* Vivid electric sky blue for SmartCore WMS title accent */
  position: relative;
}

.logo-red::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--amber);
}

/* Desktop Navigation Menu */
nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  gap: 36px;
  height: 100%;
  align-items: center;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  padding: 12px 0;
  position: relative;
  opacity: 0.85;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--navy);
  transition: var(--transition);
}

.nav-link:hover {
  opacity: 1;
  color: var(--navy);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--navy);
  opacity: 1;
}

/* Elegant Dropdown Animation */
.dropdown {
  position: absolute;
  top: calc(var(--header-height) - 10px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 16px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.dropdown-link:hover {
  background-color: var(--ice-bg);
  color: var(--navy);
  padding-left: 28px;
}

/* Mobile Toggle Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  position: absolute;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Hero Section with Mesh Gradient & Subtle Animation */
.hero {
  background-color: var(--navy-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(30, 39, 97, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(232, 163, 61, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0d122e 0%, #1a2356 100%);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(202, 220, 252, 0.05) 0%, transparent 60%);
  animation: rotateBg 40s linear infinite;
  pointer-events: none;
}

@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-subtitle {
  color: var(--ice);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  display: inline-block;
  background-color: rgba(202, 220, 252, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(202, 220, 252, 0.15);
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.25;
  letter-spacing: -1.5px;
}

.hero-desc {
  font-size: 19px;
  color: rgba(226, 232, 240, 0.9);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Premium Buttons Styling */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--amber);
  color: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(232, 163, 61, 0.35);
}

.btn-primary:hover {
  background-color: var(--amber-hover);
  box-shadow: 0 6px 20px rgba(232, 163, 61, 0.45);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(30, 39, 97, 0.15);
}

/* Premium Subpage Hero */
.sub-hero {
  background-color: var(--navy-dark);
  background-image: linear-gradient(135deg, #0d122e 0%, #1f2756 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: left;
  position: relative;
  border-bottom: 4px solid var(--amber);
}

.sub-hero::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at right, rgba(232, 163, 61, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.sub-hero .hero-title {
  font-size: 38px;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.sub-hero .hero-desc {
  margin: 0;
  max-width: 800px;
  font-size: 16px;
  color: var(--ice);
}

/* Global Section Settings */
section {
  padding: 100px 0;
  position: relative;
}

.section-bg {
  background-color: var(--ice-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Modern Card & Grid System */
.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(202, 220, 252, 0.8);
}

.card-icon {
  width: 64px;
  height: 64px;
  background-color: var(--ice-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 28px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background-color: var(--navy);
  color: var(--white);
  transform: scale(1.05);
}

.card-title {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.card-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* Performance Metric Cards in Index */
.card h3 {
  transition: var(--transition);
}

.card:hover h3 {
  color: var(--navy);
}

/* Call to Action Band */
.cta-band {
  background-color: var(--navy-2);
  background-image: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 50%, rgba(202, 220, 252, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.cta-band p {
  color: var(--ice);
  font-size: 17px;
  margin-bottom: 30px;
}

/* Footer Styling */
footer {
  background-color: var(--navy-dark);
  color: #94A3B8;
  padding: 80px 0 40px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-logo {
  font-weight: 900;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-info p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-title {
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 13px;
}

.footer-family-site select {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
}

.footer-family-site select:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-family-site select option {
  background-color: #0f1435; /* Dark navy matching footer background */
  color: var(--white);       /* High-contrast white text color */
}

/* Floating Glass-morphic Mobile Fixed CTA */
.mobile-fixed-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.mobile-fixed-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mobile-cta-btn {
  text-align: center;
  padding: 16px;
  font-weight: 800;
  font-size: 15px;
  transition: var(--transition);
}

.mobile-cta-btn.call {
  color: var(--navy);
  background-color: transparent;
}

.mobile-cta-btn.call:hover {
  background-color: rgba(30, 39, 97, 0.05);
}

.mobile-cta-btn.inquiry {
  background-color: var(--amber);
  color: var(--navy-dark);
}

.mobile-cta-btn.inquiry:hover {
  background-color: var(--amber-hover);
}

/* Responsiveness & Cross-browser QA Adjustments */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
  }
  
  .footer-grid > div:nth-child(3),
  .footer-grid > div:nth-child(4) {
    grid-column: span 1;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .features-anchor-bar {
    top: var(--header-height);
    padding: 10px 0;
  }
  
  .anchor-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
  
  .accordion-content-inner {
    padding: 0 20px 24px 20px; /* remove left indent to fit mobile screen */
  }
  
  .accordion-header {
    padding: 20px;
  }
  
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 15px;
  }
  
  .timeline-left, .timeline-right {
    left: 0;
    text-align: left;
  }
  
  .timeline-item::after {
    left: 11px;
    right: auto;
  }
  
  .timeline-content {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }
  
  .hero-desc {
    font-size: 15px;
    margin-bottom: 28px;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
  }
  
  .section-title {
    font-size: 24px;
    letter-spacing: -0.5px;
  }
  
  .section-desc {
    font-size: 15px;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card {
    padding: 28px 20px;
    border-radius: var(--radius-sm);
  }
  
  .card-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .card-title {
    font-size: 19px;
  }
  
  /* Mobile Hamburger navigation Drawer */
  .menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #0f1435; /* Dark navy background for high contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    gap: 0;
    padding: 24px 20px;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    align-items: flex-start;
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white divider */
  }
  
  .nav-link {
    padding: 16px 0;
    font-size: 16px;
    width: 100%;
    color: var(--white) !important; /* Force high-contrast white text */
    opacity: 0.95;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 16px 20px;
    opacity: 1;
    visibility: visible;
    display: none;
    width: 100%;
    min-width: unset;
    background-color: transparent !important;
  }

  .dropdown-link {
    color: rgba(255, 255, 255, 0.75) !important; /* Semi-transparent white for sub-items */
    padding: 12px 16px;
    display: block;
    font-size: 14px;
    font-weight: 500;
  }

  .dropdown-link:hover {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    padding-left: 20px;
  }
  
  .nav-item.active .dropdown {
    display: block;
  }
  
  .mobile-fixed-cta {
    display: block;
  }
  
  body {
    padding-bottom: 84px; /* Space to prevent layout overlap with bottom CTA */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-top: 28px;
  }
  
  .header-container .logo img {
    height: 30px !important;
  }
}

/* WMS Features Specific Styles */
.features-anchor-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
  position: sticky;
  top: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.anchor-btn {
  padding: 10px 24px;
  background-color: var(--ice-bg);
  color: var(--navy);
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.anchor-btn:hover, .anchor-btn.active {
  background-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(30, 39, 97, 0.2);
}

/* Accordion Item Styling */
.accordion-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(202, 220, 252, 0.8);
}

.accordion-header {
  padding: 24px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background-color: var(--white);
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--ice-bg);
}

.accordion-header-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.accordion-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--ice-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy);
  transition: var(--transition);
}

.accordion-item.active .accordion-icon-box {
  background-color: var(--navy);
  color: var(--white);
}

.accordion-title-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.accordion-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

/* Smooth Accordion Expand/Collapse */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--white);
}

.accordion-content-inner {
  padding: 0 32px 32px 92px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}

.accordion-summary {
  font-weight: 700;
  color: var(--navy-2);
  margin-bottom: 12px;
  font-size: 16px;
}

.accordion-details-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.accordion-details-list li {
  position: relative;
  padding-left: 16px;
}

.accordion-details-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: bold;
}

/* Timeline Styling */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--navy);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 15px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  right: -9px;
  background-color: var(--white);
  border: 4px solid var(--amber);
  top: 26px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover::after {
  background-color: var(--navy);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(232, 163, 61, 0.4);
}

.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-right {
  left: 50%;
  text-align: left;
}

.timeline-right::after {
  left: -9px;
}

.timeline-content {
  padding: 28px 30px;
  background-color: var(--white);
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: rgba(202, 220, 252, 0.6);
  transform: translateY(-4px);
}

.timeline-date {
  font-size: 22px;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
  }
  
  .timeline-left, .timeline-right {
    left: 0;
    text-align: left;
  }
  
  .timeline-item::after {
    left: 22px;
    right: auto;
  }
}

/* Header Logo Hover Effect (Rise and Gold Aura) */
.header-logo-img {
  height: 34px !important;
  width: 100px !important; /* Explicit width constraint to prevent Edge/Chromium rendering width stretch bug with filter drop-shadow */
  object-fit: contain;
  opacity: 0.85;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.header-logo-img:hover {
  opacity: 1;
  transform: translateY(-3px);
  filter: drop-shadow(0 4px 10px rgba(232, 163, 61, 0.65)); /* BK Planet gold brand color aura */
}

@media (max-width: 640px) {
  .header-logo-img {
    height: 30px !important;
    width: 89px !important; /* Mobile proportional width constraint */
  }
}

/* ==========================================================================
   Hero Slider Section CSS
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 75px 0 80px 0;
  z-index: 5;
  background-color: var(--navy-dark);
}

.hero-bg-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%; /* Combined width of 3 slides */
  height: 100%;
  display: flex;
  z-index: 1;
  transition: transform 1.0s cubic-bezier(0.77, 0, 0.175, 1); /* Hardware-accelerated sliding transition */
  transform: translateX(0); /* Default shows Slide 1 (Index 0) on the left side of flex container */
}

.hero-bg-slide {
  width: 33.333%; /* Exactly 100vw viewport width per slide */
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Client Logos - Color Preservation & Gold Aura on Hover */
.client-logo-img {
  height: auto;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  filter: none; /* Preserve original colors */
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.35s ease, opacity 0.35s ease;
}

.client-logo-img:hover {
  opacity: 1;
  transform: translateY(-5px);
  filter: drop-shadow(0 6px 12px rgba(232, 163, 61, 0.8)); /* Amber gold neon aura glow */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 29, 58, 0.92) 0%, rgba(11, 29, 58, 0.8) 50%, rgba(11, 29, 58, 0.65) 100%);
  z-index: 3;
}

.hero-slider-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 200px);
  width: 100%;
}

.hero-slide-contents {
  flex-grow: 1;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: -55px; /* Shifted up by another 25% (from -30px to -55px) */
}

.hero-slide-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  width: 100%;
  max-width: 800px;
}

.hero-slide-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hero-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  background-color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.hero-slide-menu {
  display: flex;
  gap: 30px;
  margin-top: 15px; /* Reduced by an additional 25% (from 20px to 15px) */
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  width: 100%;
}

.slide-menu-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}

.slide-menu-item:hover, .slide-menu-item.active {
  opacity: 1;
}

.slide-menu-item.active {
  border-bottom-color: var(--amber);
}

.slide-menu-item .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
}

.slide-menu-item .txt {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

@media (max-width: 768px) {
  .hero-slider-section {
    min-height: auto;
    padding: 120px 0 60px 0;
  }
  .hero-slider-container {
    min-height: auto;
  }
  .hero-slide-menu {
    flex-direction: column;
    gap: 15px;
  }
  .slide-menu-item {
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 15px;
    padding-bottom: 0;
  }
  .slide-menu-item.active {
    border-left-color: var(--amber);
  }
}


