/* ==========================================================================
   MSST AI SMART SOLUTIONS - HIGH-CONTRAST SYSTEM (PRO MAX MASTERPIECE)
   ========================================================================== */

/* 1. DESIGN TOKENS & VARIABLES */
:root {
  /* Brand Palette - Metallic High Contrast */
  --color-primary: #041E5C;
  /* Navy Blue */
  --color-secondary: #00AEEF;
  /* Technology Electric Blue */
  --color-accent: #00D4FF;
  /* AI Cyan Glow */

  /* Background Blocks */
  --color-light-bg: #FFFFFF;
  /* Pure White */
  --color-light-alt: #F8FAFC;
  /* Soft Light Slate */
  --color-dark-bg: #071330;
  /* Deep Cyber Space */
  --color-dark-card: #0c1a3f;
  /* Cyber Dark Card */

  /* Text Colors */
  --color-text-dark-primary: #041E5C;
  --color-text-dark-secondary: #334155;
  /* Slate-700 for high legibility */
  --color-text-dark-muted: #64748B;

  --color-text-light-primary: #FFFFFF;
  --color-text-light-secondary: #CBD5E1;
  /* Slate-300 */
  --color-text-light-muted: #94A3B8;

  /* Typography */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Spacing & Borders */
  --border-radius-sharp: 0px;
  /* Hard Industrial Edges */
  --cyber-border-dark: rgba(0, 212, 255, 0.18);
  --cyber-border-dark-hover: rgba(0, 212, 255, 0.65);
  --cyber-border-light: rgba(4, 30, 92, 0.1);
  --cyber-border-light-hover: rgba(0, 174, 239, 0.55);
}

/* 2. GENERAL LAYER & RESET */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-light-bg);
  color: var(--color-text-dark-secondary);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--color-dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border: 1px solid var(--color-accent);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text-dark-primary);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
  color: var(--color-accent);
}

/* 3. SHARP CYBER BUTTONS */
.btn-tech {
  font-family: var(--font-headings);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 15px 25px;
  border-radius: var(--border-radius-sharp);
  border: 2px solid var(--color-secondary);
  background: transparent;
  color: var(--color-secondary);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.navbar .btn-tech {
  font-size: 1rem;
  padding: 10px;
}

.btn-tech::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-tech:hover::before {
  left: 100%;
}

.btn-tech-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.25);
}

.btn-tech-primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-accent);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.btn-tech-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.btn-tech-outline:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
}

.btn-tech-dark-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: transparent;
}

.btn-tech-dark-outline:hover {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.25);
  transform: translateY(-2px);
}

/* 4. NAVBAR HEADER (GLASSMORPHISM PRECISE) */
.navbar-custom {
  background: white;
  border-bottom: 1px solid rgba(4, 30, 92, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  padding: 15px 0;
}

.navbar-custom .nav-link {
  color: var(--color-text-dark-secondary) !important;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  position: relative;
  padding: 8px 16px !important;
  transition: all 0.3s ease;
}

/* Underline slide effect on hover */
.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: calc(100% - 32px);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--color-primary) !important;
}

/* 4.5 DROPDOWN MENU — TECH BRANDED STYLE */

/* Hover-based dropdown on desktop */
@media (min-width: 992px) {
  .dropdown-hover:hover>.dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dropdown-menu-tech {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
}

.dropdown-menu-tech {
  background: rgba(4, 30, 92, 0.97);
  border: 1px solid var(--cyber-border-dark);
  border-top: 2px solid var(--color-accent);
  border-radius: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 12px 35px rgba(4, 30, 92, 0.4), 0 0 20px rgba(0, 212, 255, 0.08);
  margin-top: 0 !important;
}

.dropdown-menu-tech .dropdown-item {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 10px 20px;
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}

.dropdown-menu-tech .dropdown-item:hover {
  color: var(--color-accent) !important;
  background: rgba(0, 212, 255, 0.06);
  border-left-color: var(--color-accent);
  padding-left: 26px;
}

.dropdown-menu-tech .dropdown-item::before {
  content: '▸';
  position: absolute;
  left: 10px;
  opacity: 0;
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.dropdown-menu-tech .dropdown-item:hover::before {
  opacity: 1;
}

/* Chevron rotation on hover */
.dropdown-hover .fa-chevron-down {
  transition: transform 0.3s ease;
  font-size: 0.65rem;
}

@media (min-width: 992px) {
  .dropdown-hover:hover .fa-chevron-down,
  .dropdown-hover.show .fa-chevron-down {
    transform: rotate(180deg);
  }
}

/* 5. SECTIONS & BLOCK ALIGNMENT */
.section-padding {
  padding: 80px 0;
  position: relative;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* Section Tagline — consistent with brand typography */
.section-tagline {
  font-family: var(--font-headings);
  color: var(--color-secondary);
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
}

.section-tagline::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  animation: taglinePulse 1.8s infinite ease-in-out;
}

@keyframes taglinePulse {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0);
  }

  100% {
    transform: scale(0.85);
    opacity: 0.5;
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 45px;
  line-height: 1.2;
}

/* Alternate block styling */
.section-light {
  background-color: var(--color-light-bg);
  color: var(--color-text-dark-secondary);
}

.section-light .section-title {
  color: var(--color-text-dark-primary);
}

.section-light .section-title span {
  color: var(--color-secondary);
}

.section-light-alt {
  background-color: var(--color-light-alt);
  color: var(--color-text-dark-secondary);
}

.section-light-alt .section-title {
  color: var(--color-text-dark-primary);
}

.section-light-alt .section-title span {
  color: var(--color-secondary);
}

.section-dark {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light-secondary);
}

.section-dark .section-title {
  color: var(--color-text-light-primary);
}

.section-dark .section-title span {
  background: linear-gradient(135deg, #ffffff 40%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.tech-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Dot grid visual background for light sections to add depth */
.light-dot-grid {
  background-image: radial-gradient(rgba(4, 30, 92, 0.05) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* 6. CYBER CARDS (TECHNICAL NOTCHES & DETAILS) */
.cyber-card {
  border-radius: var(--border-radius-sharp);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* Sliding accent underline */

/* Sliding accent underline */
.cyber-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cyber-card:hover::after {
  transform: translateX(100%);
}

/* Dark section cards */
.section-dark .cyber-card {
  background: var(--color-dark-card);
  border: 1px solid var(--cyber-border-dark);
}

.section-dark .cyber-card:hover {
  border-color: var(--cyber-border-dark-hover);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.25);
  transform: translateY(-5px);
}

/* Light section cards */
.section-light .cyber-card,
.section-light-alt .cyber-card {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.02);
}

.section-light .cyber-card:hover,
.section-light-alt .cyber-card:hover {
  border-color: var(--cyber-border-light-hover);
  box-shadow: 0 12px 35px rgba(4, 30, 92, 0.08);
}

/* --- SECTION 1: HERO SLIDESHOW (FULL-SCREEN SWIPER) --- */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: var(--color-dark-bg);
  padding-top: 0;
}

/* ---- Hero Swiper wrapper ---- */
.hero-swiper {
  width: 100%;
  height: 100vh;
  min-height: 600px;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

/* Background image fills each slide */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.swiper-slide-active .hero-slide-bg {
  transform: scale(1);
}

/* Gradient overlay for text legibility */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      rgba(4, 30, 92, 0.82) 0%,
      rgba(7, 19, 48, 0.65) 50%,
      rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
}

/* Content sits above overlay */
.hero-slide-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 90px;
}

/* Animated badge */
.hero-slide-content .hero-badge {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  display: inline-block;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.swiper-slide-active .hero-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Hero heading on slides */
.hero-slide-content h1 {
  font-size: 3.4rem;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}

.swiper-slide-active h1 {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-content h1 span {
  color: var(--color-accent);
}

/* Subtitle */
.hero-slide-content .hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 38px;
  max-width: 540px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.7s, transform 0.7s ease 0.7s;
}

.swiper-slide-active .hero-desc {
  opacity: 1;
  transform: translateY(0);
}

/* CTA buttons */
.hero-slide-content .hero-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.9s, transform 0.7s ease 0.9s;
}

.swiper-slide-active .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Hero progress bar at bottom */
.hero-swiper .swiper-pagination {
  bottom: 30px;
}

.hero-swiper .swiper-pagination-bullet {
  width: 36px !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  opacity: 1;
  transition: background 0.3s ease, width 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--color-accent) !important;
  width: 60px !important;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Prev/Next arrows */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #ffffff !important;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 1.1rem !important;
  font-weight: bold;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* --- SECTION 2: INTRO / ABOUT (LIGHT) --- */
.about-img-wrapper {
  position: relative;
  padding: 20px;
}

.about-decor-grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--color-secondary) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  z-index: 0;
  opacity: 0.25;
}

.about-cyber-frame {
  position: relative;
  z-index: 1;
  border: 1px solid var(--cyber-border-light);
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(4, 30, 92, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-cyber-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--color-secondary);
  border-left: 3px solid var(--color-secondary);
  z-index: 3;
  transition: all 0.3s ease;
}

.about-cyber-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-bottom: 3px solid var(--color-secondary);
  border-right: 3px solid var(--color-secondary);
  z-index: 3;
  transition: all 0.3s ease;
}

.about-cyber-frame:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 20px 40px rgba(0, 174, 239, 0.15);
}

.about-cyber-frame:hover::before,
.about-cyber-frame:hover::after {
  width: 32px;
  height: 32px;
  border-color: var(--color-accent);
}

.about-image {
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-cyber-frame:hover .about-image {
  transform: scale(1.04);
}

.about-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0), var(--color-accent), rgba(0, 212, 255, 0));
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.about-cyber-frame:hover .about-scan-line {
  opacity: 0.8;
  animation: aboutScan 2.5s infinite linear;
}

.about-text {
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-dark-secondary);
}

@keyframes aboutScan {
  0% {
    top: 0%;
  }

  100% {
    top: 100%;
  }
}

.about-stats-row {
  margin-top: 40px;
}

.counter-card {
  padding: 30px 20px;
}

.counter-num {
  font-family: var(--font-headings);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-size: 0.8rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-text-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- SECTION 3: PRODUCTS (LIGHT) --- */
.product-card {
  padding: 40px 30px;
  text-align: center;
}

.product-card .icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 174, 239, 0.05);
  border: 1px solid rgba(0, 174, 239, 0.15);
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin: 0 auto 25px auto;
  border-radius: var(--border-radius-accent);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .icon-box {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text-dark-primary);
}

.product-card p {
  color: var(--color-text-dark-secondary);
  font-size: 0.92rem;
  margin-bottom: 0;
  opacity: 0.85;
}

/* --- SECTION 4: AI SOLUTIONS (LIGHT-ALT) --- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.solution-img-wrap {
  height: 230px;
  overflow: hidden;
  position: relative;
}

.solution-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.solution-card:hover .solution-img-wrap img {
  transform: scale(1.08);
}

.solution-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-family: var(--font-headings);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 10;
  pointer-events: none;
}

.solution-content {
  padding: 30px;
}

.solution-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text-dark-primary);
}

.solution-content p {
  font-size: 0.92rem;
  color: var(--color-text-dark-secondary);
  margin-bottom: 0;
}

/* --- SECTION 5: OUTSTANDING AI TECH (DARK CYBER) --- */
.dark-tech-card {
  padding: 35px;
  text-align: center;
}

.dark-tech-card .tech-icon {
  font-size: 1.8rem;
  color: var(--color-accent);
  margin: 0 auto 20px auto;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--border-radius-sharp);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dark-tech-card:hover .tech-icon {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
  border-color: var(--color-accent);
}

.dark-tech-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.dark-tech-card p {
  font-size: 0.92rem;
  color: var(--color-text-light-secondary);
  opacity: 0.8;
  margin-bottom: 0;
}

/* --- SECTION 6: IMPLEMENTATION TIMELINE (LIGHT) --- */
.timeline-row {
  position: relative;
}

.timeline-col {
  position: relative;
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 40px 30px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  transition: background 0.3s ease;
}

.timeline-card:hover {
  border-color: var(--cyber-border-light-hover);
  box-shadow: 0 15px 35px rgba(4, 30, 92, 0.08);
}

.timeline-card:hover::before {
  background: var(--color-secondary);
}

.timeline-step-badge {
  width: 54px;
  height: 54px;
  line-height: 52px;
  background: rgba(0, 174, 239, 0.06);
  border: 1px solid rgba(0, 174, 239, 0.18);
  color: var(--color-secondary);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 24px;
  text-align: center;
  transition: all 0.4s ease;
}

.timeline-card:hover .timeline-step-badge {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(4, 30, 92, 0.25);
}

.timeline-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text-dark-primary);
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--color-text-dark-secondary);
  opacity: 0.85;
}

/* --- SECTION 7: FEATURED PRODUCTS (LIGHT-ALT) --- */
.featured-slider-wrap {
  padding: 20px 0 0px 0;
  position: relative;
}

/* Featured Swiper navigation buttons on outer edges and faded */
.featured-slider-wrap .swiper-button-prev,
.featured-slider-wrap .swiper-button-next {
  position: absolute;
  top: calc(50% - 20px);
  /* Align with card height center, ignoring pagination at bottom */
  transform: translateY(-50%);
  margin-top: 0;
  z-index: 10;
  opacity: 0.45;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.1);
}

.featured-slider-wrap .swiper-button-prev {
  left: -22px;
}

.featured-slider-wrap .swiper-button-next {
  right: -22px;
}

.featured-slider-wrap .swiper-button-prev:hover,
.featured-slider-wrap .swiper-button-next:hover {
  opacity: 0.95;
  background: var(--color-primary);
  color: #ffffff !important;
}

.featured-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.f-prod-img {
  height: 240px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cyber-border-light);
}

.f-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-product-card:hover .f-prod-img img {
  transform: scale(1.06);
}

.f-prod-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 322px;
}

.f-prod-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--color-text-dark-primary);
}

.f-prod-specs {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
  font-size: 0.85rem;
  color: var(--color-text-dark-secondary);
  opacity: 0.9;
}

.f-prod-specs li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.f-prod-specs li::before {
  content: '✓';
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  top: 0;
}

/* Slider Custom Navigation style [ < ] and [ > ] */
.featured-product-pagination {
  position: relative !important;
  margin-top: 40px !important;
  bottom: 0 !important;
  display: flex;
  justify-content: center;
}

.swiper-pagination-bullet {
  background: rgba(4, 30, 92, 0.2) !important;
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--color-secondary) !important;
  width: 24px;
  border-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary) !important;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(4, 30, 92, 0.05);
  transition: all 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.1rem !important;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--color-primary);
  color: #ffffff !important;
  border-color: var(--color-primary);
}

/* --- SECTION 8: CASE PROJECTS (DARK CYBER) --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.list-project-page {
  grid-template-columns: repeat(4, 1fr) !important;
}

.project-card {
  position: relative;
  height: 350px;
  overflow: hidden;
  border: 1px solid var(--cyber-border-dark);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 19, 48, 0.98) 0%, rgba(7, 19, 48, 0.5) 60%, transparent 100%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: all 0.4s ease;
}

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

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-meta {
  font-size: 0.75rem;
  font-family: var(--font-headings);
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* --- SECTION 9: CLIENTS & PARTNERS (DARK THEME TICKER) --- */
#partners {
  background-color: var(--color-dark-bg) !important;
}

.clients-slider {
  overflow: hidden;
  padding: 30px 0;
  position: relative;
}

.clients-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: tickerScroll 25s linear infinite;
  width: max-content;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 70px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0.95;
}

.client-logo-item:hover {
  opacity: 1;
  border-color: var(--color-accent);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.35);
}

.client-logo-item svg,
.client-logo-item img {
  display: block;
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

/* --- SECTION 10: NEWS & INSIGHTS (LIGHT) --- */
.news-slider-wrap {
  padding: 20px 0 0px 0;
  position: relative;
}

/* News Swiper navigation buttons on outer edges and faded */
.news-slider-wrap .swiper-button-prev,
.news-slider-wrap .swiper-button-next {
  position: absolute;
  top: calc(50% - 20px);
  /* Align with card height center, ignoring pagination at bottom */
  transform: translateY(-50%);
  margin-top: 0;
  z-index: 10;
  opacity: 0.45;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.1);
}

.news-slider-wrap .swiper-button-prev {
  left: -22px;
}

.news-slider-wrap .swiper-button-next {
  right: -22px;
}

.news-slider-wrap .swiper-button-prev:hover,
.news-slider-wrap .swiper-button-next:hover {
  opacity: 0.95;
  background: var(--color-primary);
  color: #ffffff !important;
}

.news-slide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.02);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-slide-card:hover {
  border-color: var(--cyber-border-light-hover);
  box-shadow: 0 12px 35px rgba(4, 30, 92, 0.08);
}

.news-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cyber-border-light);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-slide-card:hover .news-thumb img {
  transform: scale(1.08);
}

.news-date-tag {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 6px 14px;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(4, 30, 92, 0.25);
  display: inline-flex;
  align-items: center;
}

.news-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.news-info h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--color-text-dark-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
  transition: color 0.3s ease;
}

.news-slide-card:hover .news-info h3 {
  color: var(--color-secondary);
}

.news-info p {
  font-size: 0.9rem;
  color: var(--color-text-dark-secondary);
  opacity: 0.85;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.8em;
}

.news-info .btn-tech {
  margin-top: auto;
}

.news-swiper-pagination {
  position: relative !important;
  margin-top: 40px !important;
  bottom: 0 !important;
  display: flex;
  justify-content: center;
}

/* --- SECTION 11: CTA CONSULTATION FORM (DARK GRADIENT) --- */
.cta-form-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #030d22 0%, var(--color-primary) 70%, var(--color-dark-bg) 100%);
  color: #ffffff;
  border-top: 1px solid var(--cyber-border-dark);
}

.form-tech-container {
  background: rgba(7, 19, 48, 0.8);
  border: 1px solid var(--cyber-border-dark-hover);
  padding: 45px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.25);
}

.form-tech-control {
  background: rgba(7, 19, 48, 0.95);
  border: 1px solid rgba(0, 174, 239, 0.35);
  border-radius: var(--border-radius-sharp);
  color: #ffffff;
  padding: 15px 20px;
  font-size: 0.95rem;
}

.form-tech-control:focus {
  background: #071330;
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
  color: #ffffff;
}

.form-tech-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Custom AJAX success toast modal */
.toast-success-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-dark-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius-sharp);
  padding: 40px;
  z-index: 9999;
  text-align: center;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
}

.toast-success-modal h3 {
  color: #ffffff;
  margin-top: 15px;
}

.toast-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
}

/* --- SECTION 12: FOOTER (DARK CYBER) --- */
footer {
  background-color: #030d22;
  color: var(--color-text-light-secondary);
  font-size: 0.9rem;
}

footer h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 10px;
}

footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
  box-shadow: 0 0 5px var(--color-accent);
}

footer .footer-logo {
  max-width: 170px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.25));
}

.footer-social-links .social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-light-secondary);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 0.95rem;
}

.footer-social-links .social-icon:hover {
  background: var(--color-secondary);
  color: #ffffff !important;
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.45);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-text-light-secondary);
  opacity: 0.75;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
  opacity: 1;
}

.footer-contact-info p {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  color: var(--color-text-light-secondary);
  opacity: 0.85;
}

.footer-contact-info p i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
  color: var(--color-text-light-muted);
  font-size: 0.85rem;
}

/* --- SECTION 13: FLOATING QUICK CONTACT BAR --- */
.floating-contact-bar {
  position: fixed;
  bottom: 80px;
  right: 25px;
  z-index: 9999;
}

.contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.35rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.contact-btn:hover {
  transform: scale(1.1);
}

.zalo-btn {
  background: #0068FF;
}

.zalo-btn:hover {
  box-shadow: 0 0 20px rgba(0, 104, 255, 0.6);
}

.messenger-btn {
  background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
}

.messenger-btn:hover {
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.6);
}

.phone-btn {
  background: #10B981;
  animation: phonePulse 2s infinite ease-in-out;
}

.phone-btn:hover {
  animation: none;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.7);
}

@keyframes phonePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Slide-out labels on hover */
.contact-btn .btn-label {
  position: absolute;
  right: 64px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--border-radius-sharp);
  border: 1px solid var(--color-accent);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.35);
}

.contact-btn:hover .btn-label {
  opacity: 1;
  transform: translateX(0);
}

/* 7. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1200px) {
  .hero-slide-content h1 {
    font-size: 2.75rem;
  }

  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid .solution-item:nth-child(2) {
    transform: none;
  }

  .solution-grid .solution-item:nth-child(5) {
    transform: none;
  }
}

@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hide mobile toggle button on desktop viewports */
.mobile-toggle-btn {
  display: none;
}

@media (max-width: 991px) {

  /* Off-canvas mobile menu sliding from right */
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: -345px !important;
    width: 345px !important;
    height: 100vh !important;
    background: rgba(4, 30, 92, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 9998 !important;
    padding: 90px 24px 30px 24px !important;
    box-shadow: none !important;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  .navbar-collapse.show-menu {
    right: 0 !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25) !important;
  }

  .navbar-collapse .navbar-nav {
    width: 100% !important;
    margin-bottom: 30px !important;
  }

  .navbar-collapse .nav-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .navbar-collapse .nav-item.dropdown {
    position: relative !important;
  }

  .navbar-collapse .nav-item:last-child {
    border-bottom: none !important;
  }

  .navbar-collapse .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 15px 50px 15px 0 !important;
    /* Right padding to prevent text overlap with toggle button */
    font-size: 0.95rem !important;
    display: block !important;
    width: 100% !important;
    text-transform: uppercase !important;
  }

  .navbar-collapse .nav-link::after {
    display: none !important;
    /* Hide hover underline */
  }

  .navbar-collapse .nav-link i.fa-chevron-down {
    display: none !important;
    /* Hide default inline chevron on mobile */
  }

  /* Mobile sub-menu toggle button (chevron area) */
  .mobile-toggle-btn {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 52px !important;
    /* height of the parent menu item row */
    width: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.75) !important;
    cursor: pointer !important;
    z-index: 10 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .mobile-toggle-btn i {
    transform: rotate(0deg);
    transition: transform .3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .mobile-toggle-btn i.rotate-icon {
    transform: rotate(180deg);
  }

  /* Submenu dropdown container */
  .navbar-collapse .dropdown-menu-tech {
    position: static !important;
    float: none !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
    padding: 0 0 10px 15px !important;
    margin: 0 !important;
    display: none;
    /* Controlled by slideToggle in JS */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .navbar-collapse .dropdown-menu-tech .dropdown-item {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 10px 0 !important;
    font-size: 0.85rem !important;
    border-left: none !important;
    text-transform: uppercase !important;
  }

  .navbar-collapse .dropdown-menu-tech .dropdown-item:hover {
    color: var(--color-accent) !important;
    padding-left: 5px !important;
    background: transparent !important;
  }

  .navbar-collapse .dropdown-menu-tech .dropdown-item::before {
    display: none !important;
  }

  /* Navbar toggler must sit above the backdrop (9997) and menu (9998) */
  .navbar-toggler {
    position: relative !important;
    z-index: 10000 !important;
  }

  /* When menu is open, change the toggler icon to white so it's visible */
  .navbar-toggler .navbar-toggler-icon-custom {
    transition: color 0.3s ease !important;
  }

  /* Phone/contact button inside off-canvas menu - needs contrast against dark bg */
  .navbar-collapse .btn-tech-primary {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 10px !important;
  }

  .navbar-collapse .btn-tech-primary:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--color-primary) !important;
  }
}

/* Mobile menu overlay backdrop */
.navbar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 19, 48, 0.55);
  /* No blur - blur creates a new stacking context that traps children z-indexes */
  z-index: 1;
  /* Above content, below menu (9998) and toggler (10000) */
  display: none;
  cursor: pointer;
}

@media (max-width: 768px) {

  .container,
  .container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  main {
    overflow: hidden;
  }

  .navbar-custom .nav-link:hover,
  .navbar-custom .nav-link.active {
    color: #00d4ff !important;
  }

  .pt-5 {
    padding-top: 1.5rem !important
  }

  .mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-swiper {
    height: 70vh;
    min-height: 480px;
  }

  .hero-slide-content {
    padding-top: 70px;
  }

  .hero-slide-content h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 15px;
  }

  .hero-slide-content .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
  }

  .hero-slide-content .hero-badge {
    margin-bottom: 15px;
    padding: 4px 12px;
  }

  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    display: none !important;
  }

  .hero-swiper .swiper-pagination-bullet {
    width: 30px !important;
  }


  .about-img-wrapper {
    padding: 0px;
  }

  .about-text {
    font-size: 1rem;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .featured-product-pagination,
  .news-swiper-pagination {
    margin-top: 30px !important;
  }

  .project-grid {
    grid-template-columns: 1fr !important;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 25px;
  }

  .counter-card {
    padding: 15px 10px;
  }

  .counter-num {
    font-size: 1.85rem;
  }

  .counter-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.02em;
  }

  .timeline-card {
    padding: 20px 12px;
  }

  .timeline-step-badge {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .timeline-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .timeline-card p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .cta-form-section {
    padding: 50px 0;
  }

  .dark-tech-card {
    padding: 25px 20px;
  }

  .solution-content {
    padding: 20px 15px;
  }

  .f-prod-info {
    padding: 20px;
  }

  .form-tech-container {
    padding: 25px 20px;
  }

  .floating-contact-bar {
    bottom: 30px;
    right: 15px;
    gap: 10px !important;
  }

  .contact-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .contact-btn .btn-label {
    display: none;
    /* Hide labels on mobile to avoid overlapping */
  }

  .filter-panel {
    padding: 20px !important;
  }

  .btn-filter-tag {
    padding: 10px !important;
  }

  img.footer-logo {
    justify-content: center;
    align-items: center;
    display: flex;
    margin: 0 auto;
    margin-bottom: 25px;
    margin-top: 20px;
  }

  footer h4 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  button.navbar-toggler.border-0 {
    box-shadow: none;
  }

  nav .d-flex.align-items-center {
    width: 100%;
  }

  .map-panes-container {
    height: 400px !important;
  }

}

/* Align and balance About Us section elements vertically on desktop viewports */
@media (min-width: 992px) {
  .about-cyber-frame {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-image {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
  }
}

/* ==========================================================================
   MSST STANDALONE ABOUT PAGE (GIOI-THIEU.HTML) CUSTOM STYLING
   ========================================================================== */

/* 1. About Banner */
.about-banner {
  height: 40vh;
  min-height: 300px;
  position: relative;
  background-color: var(--color-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
  /* Header space offset */
}

.about-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: brightness(0.4) contrast(1.1);
}

.about-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 48, 0.4) 0%, rgba(7, 19, 48, 0.95) 100%);
  z-index: 1;
}

.about-banner-content {
  position: relative;
  z-index: 5;
}

.about-banner-content h1 {
  font-size: 3rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.about-banner-content h1 span {
  color: var(--color-accent);
}

.about-breadcrumbs {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light-muted);
}

.about-breadcrumbs a {
  color: var(--color-text-light-secondary);
}

.about-breadcrumbs a:hover {
  color: var(--color-accent);
}

.about-breadcrumbs span {
  margin: 0 10px;
  color: var(--color-secondary);
}

/* 2. Vision & Mission */
.vision-mission-card {
  padding: 45px 35px;
  background: var(--color-dark-card);
  border: 1px solid var(--cyber-border-dark);
  height: 100%;
  transition: all 0.4s ease;
}

.vision-mission-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.vision-mission-card .card-icon {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: 25px;
}

.vision-mission-card h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.vision-mission-card p {
  color: var(--color-text-light-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* 3. Certificate Grid & Fancybox Cards */
.cert-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.02);
  transition: all 0.4s ease;
  cursor: pointer;
}

.cert-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 12px 30px rgba(4, 30, 92, 0.08);
}

.cert-img-wrap {
  height: 320px;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.cert-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-img-wrap img {
  transform: scale(1.05);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 92, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-zoom-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-zoom-btn {
  transform: scale(1);
}

.cert-info {
  padding: 25px 20px;
  border-top: 1px solid var(--cyber-border-light);
  text-align: center;
}

.cert-info h4 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 5px;
  font-weight: 700;
}

.cert-info p {
  font-size: 0.8rem;
  color: var(--color-text-dark-muted);
  margin-bottom: 0;
  font-family: var(--font-body);
}

/* 4. Vertical Timeline */
.vertical-timeline {
  position: relative;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  padding: 20px 0;
}

.vertical-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left-aligned {
  left: 0;
  text-align: right;
}

.timeline-item.right-aligned {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 60px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--color-secondary);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
  transition: all 0.4s ease;
}

.timeline-item.left-aligned .timeline-badge {
  right: -12px;
}

.timeline-item.right-aligned .timeline-badge {
  left: -12px;
}

.timeline-item:hover .timeline-badge {
  background: var(--color-accent);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
  transform: scale(1.25);
}

.timeline-card-wrap {
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.02);
  transition: all 0.4s ease;
  position: relative;
}

.timeline-item:hover .timeline-card-wrap {
  border-color: var(--cyber-border-light-hover);
  box-shadow: 0 10px 30px rgba(4, 30, 92, 0.08);
}

.timeline-year {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 10px;
  line-height: 1;
}

.timeline-item:hover .timeline-year {
  color: var(--color-primary);
}

.timeline-card-wrap h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--color-text-dark-primary);
}

.timeline-card-wrap p {
  font-size: 0.9rem;
  color: var(--color-text-dark-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Timeline Arrow notches */
.timeline-card-wrap::before {
  content: '';
  position: absolute;
  top: 40px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item.left-aligned .timeline-card-wrap::before {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--cyber-border-light);
}

.timeline-item.right-aligned .timeline-card-wrap::before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--cyber-border-light) transparent transparent;
}

.timeline-item.left-aligned:hover .timeline-card-wrap::before {
  border-color: transparent transparent transparent var(--color-secondary);
}

.timeline-item.right-aligned:hover .timeline-card-wrap::before {
  border-color: transparent var(--color-secondary) transparent transparent;
}

/* 5. Executive Board Profiles */
.profile-card {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  transition: all 0.4s ease;
  height: 100%;
}

.profile-card:hover {
  border-color: var(--cyber-border-light-hover);
  box-shadow: 0 12px 35px rgba(4, 30, 92, 0.08);
}

.profile-img {
  height: 300px;
  overflow: hidden;
  position: relative;
  background: var(--color-light-alt);
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.profile-card:hover .profile-img img {
  transform: scale(1.05);
}

.profile-info {
  padding: 30px;
}

.profile-role {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.profile-name {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.profile-desc {
  font-size: 0.9rem;
  color: var(--color-text-dark-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.profile-contacts {
  display: flex;
  gap: 15px;
  border-top: 1px solid var(--cyber-border-light);
  padding-top: 15px;
}

.profile-contact-link {
  color: var(--color-text-dark-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.profile-contact-link:hover {
  color: var(--color-secondary);
}

/* 6. About Responsive Overrides */
@media (max-width: 768px) {
  .about-banner {
    height: 30vh;
  }

  .about-detail-page {
    height: 40vh !important;
  }

  .about-detail-page h1 {
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    ;
  }

  .about-banner-content h1 {
    font-size: 1.75rem;
  }

  .vertical-timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding: 15px 15px 15px 45px;
  }

  .timeline-item.left-aligned {
    text-align: left;
  }

  .timeline-item.left-aligned,
  .timeline-item.right-aligned {
    left: 0;
  }

  .timeline-item.left-aligned .timeline-badge,
  .timeline-item.right-aligned .timeline-badge {
    left: 8px;
    right: auto;
  }

  .timeline-badge {
    top: 54px !important;

  }

  .timeline-item.left-aligned .timeline-card-wrap::before,
  .timeline-item.right-aligned .timeline-card-wrap::before {
    left: -10px;
    right: auto;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--cyber-border-light) transparent transparent;
  }

  .timeline-item.left-aligned:hover .timeline-card-wrap::before {
    border-color: transparent transparent transparent var(--color-secondary);
  }

  .download-box {
    padding: 15px !important;
  }
}

/* 7. Technical Swiper Layout and Navigation Controls */
.tech-slider-wrap {
  padding: 20px 0 0px 0;
  position: relative;
}

/* Sync tech swiper navigation buttons on outer edges and faded */
.tech-slider-wrap .swiper-button-prev,
.tech-slider-wrap .swiper-button-next {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  margin-top: 0;
  z-index: 10;
  opacity: 0.45;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.1);
}

.tech-slider-wrap .swiper-button-prev {
  left: -22px;
}

.tech-slider-wrap .swiper-button-next {
  right: -22px;
}

.tech-slider-wrap .swiper-button-prev:hover,
.tech-slider-wrap .swiper-button-next:hover {
  opacity: 0.95;
  background: var(--color-primary);
  color: #ffffff !important;
}

.tech-swiper-pagination {
  position: relative !important;
  margin-top: 40px !important;
  bottom: 0 !important;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   8. PRODUCT LIST & DETAIL PAGE STYLES (PREMIUM STYLE)
   ========================================================================== */

/* --- A. Product List Filters --- */
.filter-section {
  position: relative;
  background-color: var(--color-light-alt);
  border-bottom: 1px solid var(--cyber-border-light);
}

.filter-panel {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 30px;
  box-shadow: 0 4px 25px rgba(4, 30, 92, 0.03);
}

.filter-search-group {
  position: relative;
  width: 100%;
}

.filter-search-group .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-dark-muted);
  font-size: 1rem;
}

.filter-search-group .form-control {
  padding-left: 50px;
  height: 50px;
  background: #f8fafc;
  border: 1px solid var(--cyber-border-light);
  border-radius: var(--border-radius-sharp);
  color: var(--color-text-dark-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.filter-search-group .form-control:focus {
  background: #ffffff;
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.15);
}

.filter-select {
  height: 50px;
  background: #f8fafc;
  border: 1px solid var(--cyber-border-light);
  border-radius: var(--border-radius-sharp);
  color: var(--color-text-dark-primary);
  font-size: 0.95rem;
  padding: 0 20px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.filter-select:focus {
  background: #ffffff;
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.15);
  outline: none;
}

.filter-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-filter-tag {
  background: #f8fafc;
  border: 1px solid var(--cyber-border-light);
  border-radius: var(--border-radius-sharp);
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-dark-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.btn-filter-tag:hover {
  background: #f1f5f9;
  color: var(--color-primary);
}

.btn-filter-tag.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.25);
}

/* --- B. Product Detail Page --- */

/* Image Gallery */
.detail-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-main-wrap {
  height: 480px;
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.02);
}

.gallery-main-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.gallery-main-wrap:hover img {
  transform: scale(1.03);
}

.gallery-thumbs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.gallery-thumb-item {
  width: 90px;
  height: 80px;
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.gallery-thumb-item:hover img,
.gallery-thumb-item.active img {
  opacity: 1;
}

.gallery-thumb-item.active {
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.3);
}

/* Specs Table */
.specs-table-card {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 0;
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.02);
  overflow: hidden;
}

.specs-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.specs-table th {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 16px 24px;
  font-size: 0.95rem;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.specs-table td {
  padding: 15px 24px;
  font-size: 0.92rem;
  color: var(--color-text-dark-secondary);
  border-bottom: 1px solid var(--cyber-border-light);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:nth-child(even) {
  background: #f8fafc;
}

.specs-table-label {
  font-weight: 700;
  color: var(--color-primary);
  width: 35%;
}

/* AI Feature list details */
.ai-detail-card {
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  height: 100%;
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.02);
  transition: all 0.3s ease;
}

.ai-detail-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(4, 30, 92, 0.08);
}

.ai-detail-card .ai-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.08);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.ai-detail-card h4 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.ai-detail-card p {
  font-size: 0.88rem;
  color: var(--color-text-dark-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Downloads Section */
.download-box {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.02);
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.download-box:last-child {
  margin-bottom: 0;
}

.download-box:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.08);
}

.download-icon {
  font-size: 2.2rem;
  color: #ef4444;
  /* PDF Red */
  margin-right: 25px;
}

.download-icon.icon-zip {
  color: var(--color-secondary);
}

.download-info {
  flex-grow: 1;
  text-align: left;
  margin-right: 10px;
}

.download-info h4 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 5px;
  font-weight: 700;
}

.download-info p {
  font-size: 0.82rem;
  color: var(--color-text-dark-muted);
  margin-bottom: 0;
}

.btn-download {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Video Embed container */
.video-responsive-wrap {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border: 1px solid var(--cyber-border-light);
  box-shadow: 0 8px 30px rgba(4, 30, 92, 0.05);
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Related Products Slider */
.related-slider-wrap {
  position: relative;
  padding: 20px 0 0 0;
}

.related-slider-wrap .swiper-button-prev,
.related-slider-wrap .swiper-button-next {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  margin-top: 0;
  z-index: 10;
  opacity: 0.45;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.1);
}

.related-slider-wrap .swiper-button-prev {
  left: -22px;
}

.related-slider-wrap .swiper-button-next {
  right: -22px;
}

.related-slider-wrap .swiper-button-prev:hover,
.related-slider-wrap .swiper-button-next:hover {
  opacity: 0.95;
  background: var(--color-primary);
  color: #ffffff !important;
}

.related-swiper-pagination {
  position: relative !important;
  margin-top: 40px !important;
  bottom: 0 !important;
  display: flex;
  justify-content: center;
}

/* --- C. Dropdown Navigation Hover & Menu styles --- */
.navbar-nav .dropdown-hover {
  position: relative;
}

/* Fade and slide transition on hover */
.navbar-nav .dropdown-hover:hover .dropdown-menu-tech {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-tech {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: #030d22;
  /* High-tech dark background */
  border: 1px solid rgba(0, 174, 239, 0.3);
  border-radius: var(--border-radius-sharp);
  padding: 10px 0;
  min-width: 210px;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.12);
  z-index: 1000;
}

.dropdown-menu-tech .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-headings);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  transition: all 0.25s ease;
  background: transparent;
  border-left: 3px solid transparent;
}

.dropdown-menu-tech .dropdown-item:hover {
  background-color: rgba(0, 174, 239, 0.08);
  color: var(--color-accent) !important;
  padding-left: 24px;
  border-left-color: var(--color-accent);
}

/* Dropdown arrow toggle icon size adjustment */
.navbar-nav .dropdown-hover .dropdown-toggle::after {
  display: none;
  /* Hide default bootstrap caret */
}

.navbar-nav .dropdown-hover .dropdown-toggle i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

@media (min-width: 992px) {
  .navbar-nav .dropdown-hover:hover .dropdown-toggle i {
    transform: rotate(180deg);
    color: var(--color-secondary);
  }
}

/* Mobile responsive dropdown fixes */
@media (max-width: 991px) {
  .dropdown-menu-tech {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: rgba(7, 19, 48, 0.5);
    border: none;
    box-shadow: none;
    padding-left: 20px;
    transition: none;
  }

  .navbar-nav .dropdown-hover:hover .dropdown-menu-tech {
    display: none;
    /* Disable hover menu on mobile */
  }

  .navbar-nav .dropdown-hover.show .dropdown-menu-tech {
    display: block;
  }
}

/* --- D. High-Tech Pagination --- */
.pagination-tech .page-item {
  margin: 0;
}

.pagination-tech .page-item .page-link {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  color: var(--color-text-dark-secondary);
  font-weight: 700;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--border-radius-sharp) !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination-tech .page-item:hover .page-link {
  background: #f1f5f9;
  color: var(--color-primary);
  border-color: var(--cyber-border-light-hover);
}

.pagination-tech .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.2);
}

.pagination-tech .page-item.disabled .page-link {
  background: #f8fafc;
  color: var(--color-text-dark-muted);
  border-color: var(--cyber-border-light);
  cursor: not-allowed;
  opacity: 0.6;
}

/* --- E. Product Card Details UI Refinements --- */
.hover-push {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.hover-push:hover {
  transform: translateX(3px);
  color: var(--color-secondary) !important;
}

.uppercase-text {
  text-transform: uppercase;
}

.btn-tech-primary.uppercase-text {
  border-radius: var(--border-radius-sharp);
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-tech-primary.uppercase-text:hover {
  background: var(--color-secondary) !important;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.3);
}

/* Grid layout pagination adjustment container */
#productsCatalogGrid {
  min-height: 480px;
  /* Preserve height while paginating to avoid content jumps */
}

/* Ensure high contrast and smooth transitions for product card buttons */
.featured-product-card .btn-tech-dark-outline {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  background: transparent !important;
  transition: all 0.3s ease !important;
}

.featured-product-card .btn-tech-dark-outline:hover {
  color: #ffffff !important;
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.3) !important;
}

.featured-product-card .btn-tech-primary {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

.featured-product-card .btn-tech-primary:hover {
  background-color: var(--color-secondary) !important;
  /* Bright electric blue */
  border-color: var(--color-accent) !important;
  /* Cyan glow */
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.4) !important;
}

/* ==========================================================================
   HIGH-TECH DESIGN SYSTEM OPTIMIZATIONS
   ========================================================================== */

/* 1. Synchronized Headings Color */
.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
  color: rgb(51 65 85) !important;
}

.font-weight-bold {
  font-weight: bold;
}

/* 2. Premium High-Tech Tabs styling */
.nav-tabs-tech {
  border-bottom: 2px solid var(--cyber-border-light);
  gap: 15px;
}

.nav-tabs-tech .nav-item {
  margin-bottom: -2px;
}

.nav-tabs-tech .nav-link {
  font-family: var(--font-headings);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-text-dark-muted);
  border: none;
  background: transparent;
  padding: 12px 20px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: var(--border-radius-sharp) !important;
}

.nav-tabs-tech .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-secondary);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-tabs-tech .nav-link:hover {
  color: var(--color-primary);
  background: rgba(0, 174, 239, 0.03);
}

.nav-tabs-tech .nav-link.active {
  color: var(--color-primary) !important;
  background: transparent;
}

.nav-tabs-tech .nav-link.active::after {
  width: 100%;
  background-color: var(--color-primary);
}

/* AI Feature Article Styling */
.ai-feature-article {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 35px;
  box-shadow: 0 4px 25px rgba(4, 30, 92, 0.03);
  min-height: 420px;
  /* Align height with technical specs table */
  transition: all 0.3s ease;
  text-align: left;
}

.ai-feature-article:hover {
  border-color: var(--cyber-border-light-hover);
  box-shadow: 0 8px 30px rgba(4, 30, 92, 0.06);
}

.ai-feature-article h4 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ai-feature-article h5 {
  font-size: 1.05rem;
  color: var(--color-secondary);
  margin-top: 22px;
  margin-bottom: 12px;
  font-weight: 700;
}

.ai-feature-article p {
  font-size: 0.95rem;
  color: var(--color-text-dark-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

.ai-feature-article ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.ai-feature-article li {
  font-size: 0.92rem;
  color: var(--color-text-dark-secondary);
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  line-height: 1.65;
}

.ai-feature-article li::before {
  content: '✓';
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  top: 0;
}

/* 3. Optimized Download Buttons & List Box */
.btn-download {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 15px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  height: 42px !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}


.download-info h4 {
  font-size: 1.1rem !important;
  color: var(--color-primary);
}

.download-info p {
  font-size: 0.85rem !important;
  color: var(--color-text-dark-muted);
}

/* 4. Swiper Gallery Navigation Buttons */
.gallery-swiper-button-prev,
.gallery-swiper-button-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 42px !important;
  height: 42px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid var(--cyber-border-light) !important;
  color: var(--color-primary) !important;
  z-index: 10 !important;
  border-radius: 50% !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: 0 4px 10px rgba(4, 30, 92, 0.05) !important;
}

.gallery-main-wrap:hover .gallery-swiper-button-prev,
.gallery-main-wrap:hover .gallery-swiper-button-next {
  opacity: 0.85;
  visibility: visible;
}

.gallery-swiper-button-prev {
  left: 15px !important;
}

.gallery-swiper-button-next {
  right: 15px !important;
}

.gallery-swiper-button-prev::after,
.gallery-swiper-button-next::after {
  font-size: 0.9rem !important;
  font-weight: bold;
}

.gallery-swiper-button-prev:hover,
.gallery-swiper-button-next:hover {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  opacity: 1 !important;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.25) !important;
}

/* ==========================================================================
   5. SYSTEM ARCHITECTURE DIAGRAM & HUD STYLING (SOLUTION DETAILS)
   ========================================================================== */
.system-diagram-container {
  padding: 40px 0;
  overflow: hidden;
}

.system-diagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.diagram-step {
  flex: 1;
  max-width: 240px;
  position: relative;
  z-index: 2;
}

.diagram-node {
  background: rgba(12, 26, 63, 0.6);
  border: 1px solid var(--cyber-border-dark);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.05);
}

.diagram-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
}

.diagram-node::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}

.diagram-node:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.1);
  transform: translateY(-5px);
}

.node-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  border: 1px solid rgba(0, 212, 255, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s ease;
}

.diagram-node:hover .node-pulse {
  animation: nodePulseGlow 2s infinite ease-out;
}

@keyframes nodePulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0;
  }
}

.diagram-node .node-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.diagram-node:hover .node-icon {
  background: var(--color-accent);
  color: var(--color-dark-bg);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.diagram-node .node-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.diagram-node .node-desc {
  font-size: 0.78rem;
  line-height: 1.5;
}

.diagram-arrow {
  color: var(--color-accent);
  font-size: 1.5rem;
  padding: 0 10px;
  z-index: 1;
  animation: arrowFlow 1.5s infinite linear;
}

@keyframes arrowFlow {
  0% {
    transform: translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(5px);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 0.5;
  }
}

/* Specific styling for Hazard Red / Tech Cyan detail cards */
.border-hazard {
  position: relative;
  transition: all 0.4s ease;
}

.border-hazard:hover {
  border-color: #ef4444 !important;
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.08) !important;
}

.border-tech {
  position: relative;
  transition: all 0.4s ease;
}

.border-tech:hover {
  border-color: var(--color-accent) !important;
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.12) !important;
}

/* Mobile Media Queries for System Diagram */
@media (max-width: 991px) {
  .system-diagram {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .diagram-step {
    max-width: 45%;
    flex: 0 0 45%;
  }

  .diagram-arrow {
    display: none;
  }
}

@media (max-width: 575px) {
  .system-diagram {
    flex-direction: column;
    gap: 15px;
  }

  .diagram-step {
    max-width: 100%;
    flex: 0 0 100%;
    width: 100%;
  }

  .diagram-arrow {
    display: block;
    transform: rotate(90deg);
    padding: 10px 0;
    animation: arrowFlowVert 1.5s infinite linear;
  }
}

@keyframes arrowFlowVert {
  0% {
    transform: rotate(90deg) translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: rotate(90deg) translateX(5px);
    opacity: 1;
  }

  100% {
    transform: rotate(90deg) translateX(0);
    opacity: 0.5;
  }
}

/* ==========================================================================
   PROJECT PAGES CUSTOM STYLES (CYBER INDUSTRIAL THEME)
   ========================================================================== */

/* Project List page styling */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  /* margin-bottom: 40px; */
}

@media (max-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Filter Tag adjustment for projects */
.project-filter-row {
  margin-bottom: 40px;
}

/* Light Theme Card for project list */
.project-card-light {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.02);
  height: 100%;
  min-height: 440px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.project-card-light img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card-light:hover img {
  transform: scale(1.05);
}

.project-card-light .project-card-body {
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-light .project-card-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.project-card-light .project-card-body p {
  font-size: 0.85rem;
  color: var(--color-text-dark-muted);
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-card-light .project-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-headings);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  z-index: 2;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-sharp);
}

.project-card-light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card-light:hover::after {
  transform: translateX(100%);
}

.project-card-light:hover {
  border-color: var(--cyber-border-light-hover);
  box-shadow: 0 12px 30px rgba(4, 30, 92, 0.08);
  transform: translateY(-5px);
}

.project-card-light:hover .project-card-body h4,
.project-card-light:hover .project-card-body h4 a {
  color: var(--color-secondary) !important;
}

/* Project Detail Page styles */
.project-details-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 40px;
}

@media (max-width: 991px) {
  .project-details-grid {
    grid-template-columns: 1fr;
  }
}

.project-main-content {
  min-width: 0;
  /* Prevents swiper expansion breaking the grid */
}

.sidebar-tech-info {
  background: var(--color-light-alt);
  border: 1px solid var(--cyber-border-light);
  padding: 30px;
  border-radius: 0;
}

.sidebar-tech-info h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-secondary);
}

.tech-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-info-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(4, 30, 92, 0.06);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.tech-info-list li:last-child {
  border-bottom: none;
}

.tech-info-list strong {
  color: var(--color-primary);
  flex-shrink: 0;
}

.tech-info-list span {
  color: var(--color-text-dark-secondary);
  text-align: right;
  font-weight: 500;
}

@media (max-width: 575px) {
  .tech-info-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .tech-info-list span {
    text-align: left;
  }
}

/* Project Detail Gallery */
.project-detail-gallery {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--cyber-border-light);
}

.project-gallery-swiper {
  width: 100%;
  height: 480px;
}

@media (max-width: 767px) {
  .project-gallery-swiper {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .project-gallery-swiper {
    height: 240px;
  }
}

.project-gallery-swiper .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.project-gallery-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover state triggers navigation buttons visibility */
.project-detail-gallery:hover .gallery-swiper-button-prev,
.project-detail-gallery:hover .gallery-swiper-button-next {
  opacity: 0.85;
  visibility: visible;
}

.project-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.project-gallery-thumb-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.project-gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery-thumb-item.active,
.project-gallery-thumb-item:hover {
  border-color: var(--color-secondary);
  opacity: 1;
}

/* ROI Cards */
.roi-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 767px) {
  .roi-metric-row {
    grid-template-columns: 1fr;
  }
}

.roi-metric-card {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.roi-metric-card:hover {
  border-color: var(--cyber-border-light-hover);
  box-shadow: 0 8px 25px rgba(4, 30, 92, 0.06);
  transform: translateY(-3px);
}

.roi-metric-num {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.roi-metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   NEWS PAGES CUSTOM STYLES (CYBER INDUSTRIAL THEME)
   ========================================================================== */

/* News Layout Grid */
.news-layout-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 30px;
}

@media (max-width: 991px) {
  .news-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured Post Card */
.featured-post-card {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  box-shadow: 0 4px 25px rgba(4, 30, 92, 0.02);
  margin-bottom: 40px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.featured-post-card:hover {
  border-color: var(--cyber-border-light-hover);
  box-shadow: 0 12px 35px rgba(4, 30, 92, 0.08);
  transform: translateY(-3px);
}

.featured-post-card .featured-thumb {
  width: 50%;
  height: 340px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-post-card .featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-thumb img {
  transform: scale(1.06);
}

.featured-post-card .featured-info {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.featured-post-card .featured-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.featured-post-card:hover .featured-info h2 {
  color: var(--color-secondary);
}

.featured-post-card .featured-info p {
  font-size: 0.92rem;
  color: var(--color-text-dark-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
}

@media (max-width: 767px) {
  .featured-post-card {
    flex-direction: column;
  }

  .featured-post-card .featured-thumb,
  .featured-post-card .featured-info {
    width: 100%;
  }

  .featured-post-card .featured-thumb {
    height: 220px;
  }

  .featured-post-card .featured-info {
    padding: 30px;
  }
}

/* Grid layout for news list */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* News Sidebar Widgets */
.sidebar-widget {
  background: var(--color-light-alt);
  border: 1px solid var(--cyber-border-light);
  padding: 30px;
  margin-bottom: 30px;
  text-align: left;
  position: relative;
}

.sidebar-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
}

.sidebar-widget h4 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(4, 30, 92, 0.08);
  padding-bottom: 10px;
}

/* Widget: Search */
.widget-search-form {
  display: flex;
  gap: 8px;
}

.widget-search-form .form-control {
  border: 1px solid var(--cyber-border-light);
  border-radius: var(--border-radius-sharp);
  padding: 10px 15px;
  background: #ffffff;
  color: var(--color-text-dark-primary);
  font-size: 0.9rem;
}

.widget-search-form .form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.15);
  outline: none;
}

.widget-search-form .btn-search {
  background: var(--color-primary);
  border: none;
  color: #ffffff;
  padding: 0 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.widget-search-form .btn-search:hover {
  background: var(--color-secondary);
  box-shadow: 0 4px 10px rgba(0, 174, 239, 0.2);
}

/* Widget: Category List */
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cat-list li {
  border-bottom: 1px solid rgba(4, 30, 92, 0.05);
  padding: 10px 0;
}

.sidebar-cat-list li:last-child {
  border-bottom: none;
}

.sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark-secondary);
  transition: all 0.3s ease;
}

.sidebar-cat-list a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.sidebar-cat-list span {
  font-size: 0.8rem;
  background: rgba(4, 30, 92, 0.05);
  color: var(--color-text-dark-muted);
  padding: 2px 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sidebar-cat-list a:hover span {
  background: var(--color-secondary);
  color: #ffffff;
}

/* Widget: Recent Posts */
.recent-post-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(4, 30, 92, 0.05);
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-thumb {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--cyber-border-light);
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumb img {
  transform: scale(1.08);
}

.recent-post-info {
  text-align: left;
}

.recent-post-info h5 {
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text-dark-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.recent-post-item:hover .recent-post-info h5 {
  color: var(--color-secondary);
}

.recent-post-info span {
  font-size: 0.75rem;
  color: var(--color-text-dark-muted);
}

/* Widget: Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-dark-secondary);
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.btn-tag:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(4, 30, 92, 0.2);
}

/* ==========================================================================
   ARTICLE DETAIL PAGE STYLES
   ========================================================================== */
.article-detail-wrap {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  padding: 40px;
  box-shadow: 0 4px 25px rgba(4, 30, 92, 0.02);
  text-align: left;
}

@media (max-width: 575px) {
  .article-detail-wrap {
    padding: 25px;
  }
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--color-text-dark-muted);
  border-bottom: 1px solid rgba(4, 30, 92, 0.08);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item i {
  color: var(--color-secondary);
}

.article-sapo {
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 30px;
  border-left: 4px solid var(--color-secondary);
  padding-left: 20px;
}

.article-body-content {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--color-text-dark-secondary);
}

.article-body-content p {
  margin-bottom: 20px;
}

.article-body-content h2,
.article-body-content h3 {
  color: var(--color-primary);
  font-weight: 800;
  margin-top: 35px;
  margin-bottom: 15px;
}

.article-body-content h2 {
  font-size: 1.45rem;
}

.article-body-content h3 {
  font-size: 1.25rem;
}

.article-body-content img {
  width: 100%;
  height: auto;
  border: 1px solid var(--cyber-border-light);
  margin: 25px 0 10px 0;
}

.article-body-content .img-caption {
  font-size: 0.82rem;
  color: var(--color-text-dark-muted);
  text-align: center;
  display: block;
  margin-bottom: 25px;
  font-style: italic;
}

.article-blockquote {
  background: var(--color-light-alt);
  border-left: 4px solid var(--color-accent);
  padding: 25px 30px;
  margin: 30px 0;
  font-style: italic;
}

.article-blockquote p {
  font-size: 1.05rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-blockquote cite {
  font-size: 0.85rem;
  color: var(--color-text-dark-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.article-share-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(4, 30, 92, 0.08);
  padding-top: 25px;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 15px;
}

.article-share-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-links {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cyber-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark-secondary);
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--color-secondary);
  color: #ffffff !important;
  border-color: var(--color-secondary);
}

/* Author Bio Box */
.author-bio-box {
  background: var(--color-light-alt);
  border: 1px solid var(--cyber-border-light);
  padding: 30px;
  margin-top: 40px;
  display: flex;
  gap: 25px;
  align-items: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-secondary);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio-info {
  text-align: left;
}

.author-bio-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.author-bio-info .author-title {
  font-size: 0.78rem;
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.author-bio-info p {
  font-size: 0.85rem;
  color: var(--color-text-dark-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .author-bio-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .author-bio-info {
    text-align: center;
  }
}

/* ==========================================================================
   MSST STANDALONE CONTACT PAGE (LIEN-HE.HTML) CUSTOM STYLING
   ========================================================================== */

/* 1. Category Tag Filters (Also used in tin-tuc.html) */
.btn-filter-tag {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: var(--border-radius-sharp);
  border: 1px solid var(--cyber-border-light);
  background: #ffffff;
  color: var(--color-text-dark-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-filter-tag:hover {
  background: var(--color-light-alt);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

.btn-filter-tag.active {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 15px rgba(4, 30, 92, 0.2);
}

/* 2. Map Switcher & Map Panes */
#mapBranchTabs .btn-filter-tag {
  padding: 12px 15px;
}

.map-panes-container {
  border: 1px solid var(--cyber-border-light);
  box-shadow: 0 4px 20px rgba(4, 30, 92, 0.03);
  height: 530px;
}

.map-pane {
  transition: opacity 0.4s ease;
  z-index: 1;
}

.map-pane.active {
  z-index: 2;
  display: block !important;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 3. Quick Info Cards */
.contact-quick-card {
  background: #ffffff;
  border: 1px solid var(--cyber-border-light);
  border-left: 4px solid var(--color-secondary);
  transition: all 0.3s ease;
}

.contact-quick-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 10px 25px rgba(4, 30, 92, 0.06);
  transform: translateY(-2px);
}

.contact-quick-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.2);
  flex-shrink: 0;
  font-size: 1.25rem;
}

/* 4. Form Styling for White Background */
.form-contact-wrap {
  box-shadow: 0 10px 35px rgba(4, 30, 92, 0.04);
}

.form-contact-wrap .form-tech-control {
  background: #f8fafc;
  border: 1px solid rgba(4, 30, 92, 0.15);
  color: var(--color-text-dark-primary);
  font-size: 0.9rem;
  padding: 12px 18px;
}

.form-contact-wrap .form-tech-control:focus {
  background: #ffffff;
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.18);
  color: var(--color-text-dark-primary);
}

.form-contact-wrap .form-tech-control::placeholder {
  color: var(--color-text-dark-muted);
  opacity: 0.65;
}

/* Form validation error technology color (Yellow-Orange) */
.form-tech-control.is-invalid {
  border-color: #f59e0b !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25) !important;
}

/* 5. Contact Widgets */
.contact-widget {
  box-shadow: 0 10px 30px rgba(4, 30, 92, 0.03);
}

.branch-office-item h5 i {
  font-size: 0.95rem;
}

.branch-office-item p {
  line-height: 1.6;
}

/* 6. Vertical Pills Tabs Layout Custom Styling */
.contact-v-tabs {
  border: 1px solid var(--cyber-border-light);
  border-radius: var(--border-radius-sharp);
  box-shadow: 0 10px 30px rgba(4, 30, 92, 0.03);
}

.contact-v-tabs .nav-link {
  display: flex !important;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--border-radius-sharp);
  padding: 15px 20px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-v-tabs .nav-link:last-child {
  margin-bottom: 0;
}

.contact-v-tabs .nav-link .tab-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(4, 30, 92, 0.04);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-v-tabs .nav-link:hover {
  background: rgba(0, 174, 239, 0.05);
  border-color: rgba(0, 174, 239, 0.15);
}

.contact-v-tabs .nav-link .tab-sublabel {
  color: var(--color-text-dark-muted) !important;
  transition: color 0.3s ease;
}

.contact-v-tabs .nav-link .tab-label {
  color: var(--color-primary) !important;
  transition: color 0.3s ease;
}

.contact-v-tabs .nav-link.active {
  background: linear-gradient(90deg, var(--color-primary) 0%, rgba(4, 30, 92, 0.95) 100%) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 8px 20px rgba(4, 30, 92, 0.2);
}

.contact-v-tabs .nav-link.active .tab-icon-wrap {
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-accent) !important;
}

.contact-v-tabs .nav-link.active .tab-sublabel {
  color: var(--color-accent) !important;
}

.contact-v-tabs .nav-link.active .tab-label {
  color: #ffffff !important;
}

.contact-v-tabs .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-v-tabs .nav-link.active::before {
  opacity: 1;
}

.word-break-all {
  word-break: break-all;
}

/* Tab panes fade transitions */
.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active {
  display: block;
}

@media (max-width: 991px) {
  .contact-v-tabs {
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px !important;
    margin-bottom: 25px;
    gap: 10px;
  }
  
  .contact-v-tabs .nav-link {
    margin-bottom: 0;
    flex: 1;
    min-width: 220px;
    padding: 10px 15px;
  }
}
.wpcf7-form p
{
  margin-bottom: 0 !important;
}