/* ==========================================================================
   N.I.M. Co., Ltd. - Modern Industrial Light Theme Stylesheet
   ========================================================================== */

:root {
  /* Color Palette - Clean Industrial White & Slate Aesthetic */
  --bg-dark: #f8fafc;
  --bg-navy: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-tinted: #f1f5f9;
  
  --glass-border: #e2e8f0;
  --glass-border-hover: #cbd5e1;
  
  --primary-orange: #ea580c;
  --primary-orange-glow: rgba(234, 88, 12, 0.25);
  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.2);
  --accent-blue: #2563eb;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --success: #059669;
  --warning: #d97706;
  
  --font-heading: 'Prompt', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
  --shadow-orange: 0 10px 25px -5px rgba(234, 88, 12, 0.25);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
    radial-gradient(circle at 15% 15%, rgba(2, 132, 199, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 85% 65%, rgba(234, 88, 12, 0.045) 0%, transparent 60%);
  background-size: 36px 36px, 36px 36px, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sticky Header Wrapper */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* WordPress Admin Bar Compatibility */
.admin-bar .sticky-header-wrapper,
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .sticky-header-wrapper,
  .admin-bar .site-header {
    top: 46px;
  }
}
@media screen and (max-width: 600px) {
  .admin-bar .sticky-header-wrapper,
  .admin-bar .site-header {
    top: 0;
  }
}

/* Top Notification / Terminal Live Status Bar */
.top-status-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--glass-border);
  padding: 6px 0;
  font-size: 0.82rem;
  position: relative;
  z-index: 1000;
  transition: all 0.25s ease;
}

.top-status-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 150, 105, 0.08);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-weight: 500;
}

.top-contact-item:hover {
  color: var(--accent-cyan);
}

.lang-switch {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary-orange);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-orange-glow);
}

/* Header & Navigation */
.site-header {
  position: relative;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #0f172a;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), #c2410c);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -5px rgba(234, 88, 12, 0.4);
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-glass:hover {
  background: #000000;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  color: var(--accent-cyan);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 8px 20px -5px rgba(2, 132, 199, 0.35);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -3px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0369a1, #075985);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Container Layout */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 20px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #0f172a;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 48px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 80px 0 110px;
  overflow: hidden;
  background-color: #f8fafc;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(1.1);
  image-rendering: -webkit-optimize-contrast;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 45%,
    rgba(255, 255, 255, 0.45) 80%,
    rgba(255, 255, 255, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-text-side {
  max-width: 840px;
}

.hero-badge-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge-cert {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-cert i {
  color: var(--primary-orange);
}

.hero-heading {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #0f172a;
}

.hero-heading span.gradient-text {
  color: var(--accent-cyan);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 650px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Quick Tracking / Service Finder Bar */
.quick-finder {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 45px -10px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
}

.finder-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.finder-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.finder-select, .finder-input {
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  color: #0f172a;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.finder-select:focus, .finder-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
  background: #ffffff;
}

/* STATS HIGHLIGHT COUNTER */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.counter-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.counter-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.counter-number {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.counter-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

/* SERVICES GRID SECTION */
.infra-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.infra-header-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.infra-mini-stat {
  display: flex;
  flex-direction: column;
}

.infra-mini-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-orange);
  line-height: 1.2;
}

.infra-mini-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.infra-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--glass-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), var(--shadow-glow);
}

.service-img-wrap {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.04) saturate(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.infra-badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.infra-badge-cat i {
  color: var(--primary-orange);
}

.service-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 700;
  z-index: 2;
}

.service-body {
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
  line-height: 1.35;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Infrastructure Spec Chips */
.infra-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.infra-spec-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: #334155;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.infra-spec-chip i {
  color: var(--primary-orange);
  font-size: 0.7rem;
}

.service-footer.infra-card-footer {
  display: flex;
  justify-content: stretch;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.service-link-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  padding: 4px 0;
}

.service-card:hover .service-link-btn {
  color: var(--primary-orange);
  gap: 8px;
}

.infra-quick-blog-btn {
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.22);
  color: var(--primary-orange);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  width: 100%;
}

.infra-quick-blog-btn:hover {
  background: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

/* Infrastructure Action Hub Section */
.infra-action-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.infra-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.infra-hub-card:hover {
  border-color: var(--primary-orange);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.infra-hub-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.infra-hub-text {
  flex-grow: 1;
}

.infra-hub-text h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.infra-hub-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .infra-action-hub {
    grid-template-columns: 1fr;
  }
  .infra-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .infra-hub-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* INTERACTIVE TANK CALCULATOR SECTION */
.calculator-wrapper {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.calc-val-badge {
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(2, 132, 199, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.calc-select {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.calc-select:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
  background: #ffffff;
}

.chem-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chem-preset-chip {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chem-preset-chip:hover {
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary-orange);
  border-color: rgba(234, 88, 12, 0.3);
}

.chem-preset-chip.active {
  background: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
}

.chem-fact-box {
  background: #f8fafc;
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  font-size: 0.8rem;
  margin-top: 4px;
}

.chem-fact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chem-fact-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
}

.chem-fact-val {
  font-weight: 700;
  color: #0f172a;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-orange);
  box-shadow: 0 2px 8px var(--primary-orange-glow);
  cursor: pointer;
  transition: var(--transition);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.opt-btn {
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.opt-btn.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Calculator Output Panel */
.calc-results-panel {
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-res-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.chem-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary-orange);
  border: 1px solid rgba(234, 88, 12, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 6px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-row:last-child {
  border-bottom: none;
}

.result-name {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-name i {
  color: var(--accent-cyan);
  width: 16px;
}

.result-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.tank-visual-meter {
  margin: 14px 0 8px 0;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary-orange));
  border-radius: 5px;
  transition: width 0.5s ease-out;
}

/* QUOTATION RFQ MODAL STYLES */
dialog.quote-modal-dialog {
  max-width: 1040px;
  width: 95vw;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.quote-modal-header {
  padding: 24px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--glass-border);
}

.modal-header-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.quote-header-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.25);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.quote-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.quote-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.quote-modal-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.quote-modal-subheading {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.quote-modal-body {
  padding: 28px 32px;
  background: #ffffff;
  max-height: 78vh;
  overflow-y: auto;
}

/* Specs Highlight Banner */
.quote-specs-banner {
  background: #f8fafc;
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.spec-banner-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.spec-banner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.spec-banner-title.text-cyan {
  color: var(--accent-cyan);
}

.spec-banner-title.text-orange {
  color: var(--primary-orange);
}

.spec-banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.spec-chip.active-n2 {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

.spec-chip.active-heat {
  background: rgba(234, 88, 12, 0.1);
  border-color: rgba(234, 88, 12, 0.3);
  color: #ea580c;
}

/* 2-Column Quote Modal Grid */
.quote-modal-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: flex-start;
}

.quote-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.quote-col-header h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-step-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-cyan);
}

.quote-step-pill-orange {
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary-orange);
}

/* Quote Form Inputs */
.quote-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-input-group .form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
}

.required-star {
  color: #ef4444;
  font-weight: 700;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
  transition: var(--transition);
}

.input-with-icon .form-input {
  padding-left: 40px;
  width: 100%;
}

.input-with-icon .form-input:focus + .input-icon,
.input-with-icon .form-input:focus-within ~ .input-icon {
  color: var(--accent-cyan);
}

.quote-inputs-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quote-input, .quote-textarea {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.quote-input:focus, .quote-textarea:focus {
  background: #ffffff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.quote-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Service Selection Chips */
.rfq-services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rfq-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.rfq-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.rfq-chip.active {
  background: rgba(2, 132, 199, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

/* Email Dispatch Card (Right Column) */
.email-actions-card {
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.dispatch-help-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.email-platform-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-btn {
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.email-btn-icon-col {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.email-btn-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.email-btn-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.email-btn-sub {
  font-size: 0.72rem;
  opacity: 0.85;
}

.email-btn-arrow {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.email-btn:hover .email-btn-arrow {
  transform: translateX(2px) translateY(-2px);
  opacity: 1;
}

.email-btn-gmail {
  background: #ffffff;
  color: #c5221f;
  border: 1.5px solid rgba(234, 67, 53, 0.35);
  box-shadow: 0 2px 8px rgba(234, 67, 53, 0.08);
}

.email-btn-gmail .email-btn-icon-col {
  background: rgba(234, 67, 53, 0.1);
  color: #ea4335;
}

.email-btn-gmail:hover {
  background: #fef2f2;
  border-color: #ea4335;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 67, 53, 0.18);
}

.email-btn-outlook {
  background: #ffffff;
  color: #0078d4;
  border: 1.5px solid rgba(0, 120, 212, 0.35);
  box-shadow: 0 2px 8px rgba(0, 120, 212, 0.08);
}

.email-btn-outlook .email-btn-icon-col {
  background: rgba(0, 120, 212, 0.1);
  color: #0078d4;
}

.email-btn-outlook:hover {
  background: #f0f7ff;
  border-color: #0078d4;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 120, 212, 0.18);
}

.email-btn-app {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
}

.email-btn-app .email-btn-icon-col {
  background: #f1f5f9;
  color: #475569;
}

.email-btn-app:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.email-btn-copy {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid var(--glass-border);
}

.email-btn-copy .email-btn-icon-col {
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-cyan);
}

.email-btn-copy:hover {
  background: #f0f9ff;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

/* Hotline Fast Card */
.quote-hotline-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.quote-hotline-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(234, 88, 12, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-orange);
  font-size: 1.1rem;
}

.quote-hotline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-hotline-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quote-hotline-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-hotline-number:hover {
  text-decoration: underline;
}

/* Expandable Live Preview */
.quote-preview-accordion {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quote-preview-summary {
  padding: 10px 14px;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  user-select: none;
  list-style: none;
}

.quote-preview-summary::-webkit-details-marker {
  display: none;
}

.preview-summary-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-preview-accordion[open] .summary-arrow {
  transform: rotate(180deg);
}

.summary-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.quote-preview-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-target-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
}

.email-preview-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: monospace;
  font-size: 0.76rem;
  line-height: 1.6;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CERTIFICATES & SAFETY SECTION */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cert-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-6px);
  box-shadow: 0 20px 32px -8px rgba(234, 88, 12, 0.16), 0 0 0 1px rgba(234, 88, 12, 0.3);
}

.cert-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-badge-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--primary-orange);
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-badge-icon {
  transform: scale(1.08);
}

.cert-tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary-orange);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.cert-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-info h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0f172a;
}

.cert-org {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.cert-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.cert-click-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--glass-border);
  color: var(--primary-orange);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cert-click-hint span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-card:hover .cert-click-hint i.fa-arrow-right {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}

/* CERTIFICATE POPUP MODAL DIALOGS */
dialog.cert-modal-dialog {
  max-width: 940px;
  width: 92%;
}

.cert-badge-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.cert-modal-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.cert-modal-image-col {
  position: sticky;
  top: 0;
}

.cert-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.cert-image-frame a {
  display: block;
  position: relative;
  text-decoration: none;
}

.cert-popup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin-bottom: 0 !important;
  transition: transform 0.3s ease;
}

.cert-image-frame:hover .cert-popup-img {
  transform: scale(1.02);
}

.cert-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cert-modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0;
}

.cert-modal-subtitle {
  font-size: 0.92rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin: 0;
}

.cert-spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.cert-spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
}

.cert-spec-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-spec-label i {
  color: var(--primary-orange);
  font-size: 0.85rem;
}

.cert-spec-value {
  color: #0f172a;
}

.cert-description-box {
  background: rgba(2, 132, 199, 0.04);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
}

.cert-description-box h5 {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-description-box p {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

.cert-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* CONTACT & LOCATION HUB */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location-tab-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.tab-btn {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--primary-orange);
  color: #fff;
  border-color: var(--primary-orange);
}

.location-details-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(2, 132, 199, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.contact-text h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

.contact-text p {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 600;
}

/* Terminal Direct Action & RFQ Inquiry Card (Replaces old static form) */
.contact-action-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-action-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(2, 132, 199, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.contact-action-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.contact-action-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.contact-action-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.02rem;
}

.w-full {
  width: 100%;
}

.contact-quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.contact-quick-link:hover {
  background: #ffffff;
  border-color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.quick-link-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.quick-link-icon.phone {
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary-orange);
}

.quick-link-icon.mail {
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-cyan);
}

.quick-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-link-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quick-link-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

/* Terminal Hours Info */
.terminal-hours-box {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.hours-row i {
  font-size: 1rem;
  margin-top: 2px;
  width: 18px;
  text-align: center;
}

.hours-row strong {
  color: #0f172a;
  display: block;
  font-size: 0.84rem;
}

.hours-row span {
  color: #64748b;
}

/* Map Embed Wrapper */
.map-wrapper {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  height: 250px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* NATIVE DIALOG MODALS */
dialog {
  border: 1px solid var(--glass-border);
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 650px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: #0f172a;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal-btn:hover {
  color: var(--primary-orange);
}

.modal-body {
  padding: 32px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body img {
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

/* FOOTER (White Theme) */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 64px 0 28px;
  margin-top: 60px;
  color: #475569;
  box-shadow: 0 -4px 24px -2px rgba(15, 23, 42, 0.03);
}

.site-footer h4, .site-footer .brand-name {
  color: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 12px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #64748b;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-orange);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-cyan);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.footer-cert-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-cert-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--accent-cyan);
  color: #0f172a;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-content {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-heading {
    font-size: 2.8rem;
  }
  .quick-finder {
    grid-template-columns: 1fr 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }
  .quote-modal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .cert-modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cert-modal-image-col {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    border-bottom: 2px solid var(--primary-orange);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9998;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu .nav-link {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    display: block;
    font-size: 0.95rem;
  }
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: #f8fafc;
    color: var(--primary-orange);
  }
  .top-status-bar {
    display: none;
  }
  .quick-finder {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* App Page View Routing */
.app-page {
  display: none;
  animation: fadeInPage 0.35s ease forwards;
}

.app-page.active {
  display: block;
}

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

/* Dedicated Sub-Page Hero Banner */
.page-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.page-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.15) 0%, rgba(2, 132, 199, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.page-banner-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.page-breadcrumb a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.page-breadcrumb i {
  font-size: 0.7rem;
  color: #64748b;
}

.page-banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-banner-subtitle {
  font-size: 1.02rem;
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.6;
}

/* Dedicated Service Detail Cards */
.service-detail-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.service-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  transition: var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-glow);
  border-color: rgba(234, 88, 12, 0.25);
}

.service-detail-card.reversed {
  grid-template-columns: 1.25fr 1fr;
}

.service-detail-img-wrap {
  position: relative;
  min-height: 300px;
  background: #0f172a;
}

.service-detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary-orange);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.service-detail-body {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.service-detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.service-detail-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.service-spec-chip {
  background: var(--bg-tinted);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-spec-chip i {
  color: var(--primary-orange);
  font-size: 0.8rem;
}

.service-detail-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-detail-checklist li {
  font-size: 0.88rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.service-detail-checklist li i {
  color: #059669;
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Engineering Capability Matrix Table */
.tech-table-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.tech-table-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 20px 24px;
}

.tech-table-header h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
}

.tech-table-header p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.tech-table-responsive {
  overflow-x: auto;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.tech-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 12px 18px;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

.tech-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  color: #1e293b;
  vertical-align: middle;
}

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

.tech-table tr:hover td {
  background: rgba(234, 88, 12, 0.02);
}

.table-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.table-tag-primary {
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary-orange);
}

.table-tag-cyan {
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-cyan);
}

.table-tag-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* Dedicated Page CTA Banner */
.page-cta-banner {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(2, 132, 199, 0.06) 100%);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.page-cta-banner-text h3 {
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.page-cta-banner-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 992px) {
  .service-detail-card,
  .service-detail-card.reversed {
    grid-template-columns: 1fr;
  }
  .service-detail-img-wrap {
    min-height: 220px;
  }
  .page-banner-title {
    font-size: 1.85rem;
  }
}

/* ========================================================
   BLOG OF SERVICES & TERMINAL NEWS (บริการและข่าวสาร)
   ======================================================== */
.blog-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.blog-search-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.blog-search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
}

.blog-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.blog-cat-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.blog-cat-btn:hover {
  background: #f8fafc;
  color: var(--primary-orange);
  border-color: rgba(234, 88, 12, 0.3);
}

.blog-cat-btn.active {
  background: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
  box-shadow: 0 4px 12px var(--primary-orange-glow);
}

/* Featured Blog Hero Card */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #ffffff;
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 44px;
  transition: var(--transition);
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.12);
}

.blog-featured-img-wrap {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.blog-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-featured-card:hover .blog-featured-img-wrap img {
  transform: scale(1.04);
}

.blog-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--primary-orange), #c2410c);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.blog-featured-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

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

.blog-featured-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 14px;
}

.blog-featured-desc {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.blog-tag-pill {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.blog-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

/* Blog Layout Container with Sidebar */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 36px;
  align-items: start;
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.blog-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.06);
}

.blog-card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-card-cat-badge.cat-services {
  background: rgba(234, 88, 12, 0.9);
}

.blog-card-cat-badge.cat-safety {
  background: rgba(2, 132, 199, 0.9);
}

.blog-card-cat-badge.cat-engineering {
  background: rgba(99, 102, 241, 0.9);
}

.blog-card-cat-badge.cat-news {
  background: rgba(16, 185, 129, 0.9);
}

.blog-card-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.42;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.blog-read-btn {
  background: none;
  border: none;
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.blog-read-btn:hover {
  color: #c2410c;
  transform: translateX(3px);
}

/* Sidebar Widgets */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.blog-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border-left: 3px solid var(--accent-cyan);
  font-size: 0.84rem;
}

.notice-date {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.notice-text {
  color: #334155;
  font-weight: 500;
  margin: 0;
  line-height: 1.45;
}

/* Article Reader Modal */
.article-modal-dialog {
  max-width: 860px;
  width: 92%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  border: 1px solid #cbd5e1;
  padding: 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.article-modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  max-height: calc(88vh - 70px);
}

.article-modal-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.article-modal-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-modal-text {
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-specs-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
}

.article-specs-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
}

.article-specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-specs-list li i {
  color: var(--primary-orange);
  font-size: 0.8rem;
}

/* ==========================================================================
   WordPress Theme & Post Sync Manager Modal Styles
   ========================================================================== */
.wp-manager-dialog {
  max-width: 960px;
  width: 95vw;
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  padding: 0;
  overflow: hidden;
}

.wp-manager-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.wp-modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wp-tabs-nav {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 16px;
  gap: 8px;
  overflow-x: auto;
}

.wp-tab-btn {
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.wp-tab-btn:hover {
  color: #0f172a;
}

.wp-tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
  background: #ffffff;
}

.wp-tab-content {
  padding: 24px;
  max-height: 65vh;
  overflow-y: auto;
}

.wp-posts-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.wp-posts-list-table th,
.wp-posts-list-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.wp-posts-list-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
}

.wp-post-thumbnail-mini {
  width: 50px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.wp-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.wp-badge-home {
  background: #e0f2fe;
  color: #0369a1;
}

.wp-badge-all {
  background: #f1f5f9;
  color: #475569;
}

.wp-action-icon-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.wp-action-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.wp-action-icon-btn.delete:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.wp-sync-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  font-size: 0.9rem;
  border-left: 4px solid var(--accent-cyan);
}

.wp-sync-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 992px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
  .blog-layout-grid {
    grid-template-columns: 1fr;
  }
  .blog-cards-grid {
    grid-template-columns: 1fr;
  }
  .article-specs-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Cookie Consent Banner & Privacy Policy (PDPA Compliance)
   ========================================================================== */

.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 580px;
  width: calc(100vw - 48px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 2px 10px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(226, 232, 240, 0.95);
  padding: 22px 24px 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: cookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent-banner.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

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

.cookie-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-title i {
  color: #ea580c;
  font-size: 1.1rem;
}

.cookie-close-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cookie-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.cookie-banner-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #475569;
}

.cookie-policy-link {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s;
}

.cookie-policy-link:hover {
  color: #0369a1;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.cookie-btn-settings {
  background: transparent;
  border: none;
  color: #0284c7;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.cookie-btn-settings:hover {
  background: #f0f9ff;
  color: #0369a1;
}

.cookie-btn-accept {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  font-family: var(--font-heading);
}

.cookie-btn-accept:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Cookie Preference Modal */
.cookie-modal-dialog {
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3);
  max-width: 640px;
  width: 92vw;
  background: #ffffff;
  overflow: hidden;
}

.cookie-modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.cookie-pref-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.cookie-pref-item:hover {
  border-color: #cbd5e1;
}

.cookie-pref-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.cookie-pref-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-pref-badge-req {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.cookie-pref-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* Custom Switch Toggle */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cookie-switch input:checked + .cookie-slider {
  background-color: #2563eb;
}

.cookie-switch input:focus + .cookie-slider {
  box-shadow: 0 0 1px #2563eb;
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
  background-color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 16px;
  }
  
  .cookie-banner-actions {
    justify-content: stretch;
  }
  
  .cookie-btn-settings, .cookie-btn-accept {
    width: 100%;
    text-align: center;
  }
}

