:root {
  --navy: #031a35;
  --navy-dark: #021022;
  --navy-2: #05264c;
  --blue: #1088ff;
  --blue-hover: #0072e0;
  --blue-soft: #7dc1ff;
  --blue-glow: rgba(16, 136, 255, 0.25);
  --ink: #071426;
  --muted: #5c6b80;
  --line: #dbe5ef;
  --panel: #ffffff;
  --soft: #f6f9fc;
  --shadow-sm: 0 4px 12px rgba(8, 31, 58, 0.06);
  --shadow-md: 0 12px 34px rgba(8, 31, 58, 0.1);
  --shadow-lg: 0 20px 45px rgba(8, 31, 58, 0.16);
  --header-height: 120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  color: #fff;
  background: rgba(2, 16, 34, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.logo {
  height: 90px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  transition: height 0.3s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  opacity: 0.9;
  padding: 6px 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  color: #55b4ff;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(5, 18, 37, 0.5);
}

.language-switch button {
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: #dcecff;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-switch button.active {
  color: #08213d;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.header-cta,
.button.primary {
  background: linear-gradient(135deg, #219cff, #0076e8);
  color: #fff;
  box-shadow: 0 8px 24px var(--blue-glow);
}

.header-cta:hover,
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 126, 255, 0.4);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(5, 18, 37, 0.35);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.button.light {
  color: #09213d;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.button.light:hover {
  background: #f0f7ff;
  transform: translateY(-1px);
}

/* Mobile Hamburger Toggle Button */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  background-image:
    linear-gradient(
      90deg,
      rgba(2, 20, 40, 0.96) 0%,
      rgba(2, 20, 40, 0.92) 40%,
      rgba(2, 20, 40, 0.65) 75%,
      rgba(2, 20, 40, 0.35) 100%
    ),
    url("images/datacenter.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 62%, rgba(255, 255, 255, 0.04) 62% 63%, transparent 63%),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(255, 255, 255, 0.03) 58px 59px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0 80px;
}

.hero-copy h1 {
  color: #fff;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
  margin: 0;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-copy h1 span {
  display: inline-block;
  color: var(--blue-soft);
}

.hero-copy p {
  max-width: 580px;
  margin: 24px 0 32px;
  color: #d9e8f8;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
}

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

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  max-width: 580px;
  color: #dcecff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.hero-badges span {
  position: relative;
  padding-left: 26px;
  display: flex;
  align-items: center;
}

.hero-badges span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 136, 255, 0.25);
  border: 1px solid var(--blue-soft);
  color: var(--blue-soft);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */

.portfolio-strip,
.section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.section h2,
.why h2,
.portfolio-strip h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}

.underline {
  width: 40px;
  height: 4px;
  margin: 14px auto 36px;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  border-radius: 2px;
}

/* ==========================================================================
   PORTFOLIO STRIP
   ========================================================================== */

.portfolio-strip {
  padding: 64px 0;
}

.portfolio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.portfolio-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 136, 255, 0.3);
}

.portfolio-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-photo {
  transform: scale(1.04);
}

.portfolio-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}

.portfolio-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

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

.service-detail {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  scroll-margin-top: 100px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.service-detail:hover {
  border-color: rgba(16, 136, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.service-detail:target {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16, 136, 255, 0.15);
}

.service-detail h3 {
  margin: 0 0 10px;
  font-size: 19px;
  color: var(--ink);
}

.service-detail p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.service-detail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #20344d;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Icons */
.icon {
  display: inline-block;
  width: 44px;
  height: 44px;
  color: var(--blue);
  border: 2.5px solid currentColor;
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.monitor::before { left: 7px; right: 7px; bottom: -9px; height: 3px; }
.monitor::after { left: 17px; bottom: -18px; width: 8px; height: 10px; }
.shield { border-radius: 21px 21px 10px 10px; }
.shield::before { left: 14px; top: 17px; width: 13px; height: 3px; transform: rotate(-45deg); }
.shield::after { left: 20px; top: 15px; width: 15px; height: 3px; transform: rotate(-45deg); }
.file { border-radius: 4px; }
.file::before { right: -3px; top: -3px; width: 14px; height: 14px; background: #fff; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; }
.file::after { left: 10px; top: 17px; width: 20px; height: 3px; box-shadow: 0 8px 0 currentColor; }
.truck::before { left: 5px; top: 24px; width: 45px; height: 13px; border: 3px solid currentColor; background: transparent; }
.truck::after { left: 6px; bottom: -7px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 30px 0 0 currentColor; }

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */

.why {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(12, 131, 239, 0.26), transparent 28%),
    linear-gradient(135deg, #02152b, #06244a 60%, #03152a);
  padding: 72px max(24px, calc((100% - 1200px) / 2));
}

.why h2 {
  color: #fff;
}

.why .eyebrow {
  color: #55b4ff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.why-grid article {
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.why-grid article:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.why .icon {
  color: #66bfff;
  margin-bottom: 12px;
}

.why h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  color: #fff;
}

.why p {
  margin: 0;
  color: #c4d7ed;
  font-size: 13px;
  line-height: 1.5;
}

.team::before { left: 5px; top: 10px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 13px 0 0 currentColor, 26px 0 0 currentColor; }
.team::after { left: 3px; bottom: 10px; width: 35px; height: 14px; border: 3px solid currentColor; border-radius: 12px 12px 4px 4px; background: transparent; }
.value { border-radius: 50%; }
.value::before { content: "$"; inset: 0; display: grid; place-items: center; background: transparent; font-size: 25px; font-weight: 800; }
.report::before { left: 9px; bottom: 9px; width: 5px; height: 15px; box-shadow: 10px -8px 0 currentColor, 20px -17px 0 currentColor; }

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.timeline li {
  position: relative;
  text-align: center;
}

.timeline li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 14px;
  color: #9cb8d6;
  font-size: 20px;
  font-weight: bold;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #3ab0ff, #086ed0);
  border: 4px solid #d5ecff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(16, 136, 255, 0.25);
}

.timeline h3 {
  margin: 14px 0 6px;
  font-size: 15px;
  color: var(--ink);
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ==========================================================================
   INDUSTRIES SERVED
   ========================================================================== */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.industry-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 130px;
  padding: 20px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.industry-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 136, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.industry-grid h3 {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.3;
}

.bank::before, .gov::before { left: 6px; top: 13px; width: 28px; height: 4px; box-shadow: 0 14px 0 currentColor; }
.bank::after, .gov::after { left: 10px; top: 19px; width: 4px; height: 12px; box-shadow: 8px 0 0 currentColor, 16px 0 0 currentColor; }
.health::before { left: 18px; top: 8px; width: 6px; height: 25px; }
.health::after { left: 8px; top: 18px; width: 26px; height: 6px; }
.factory::before { left: 6px; bottom: 8px; width: 30px; height: 20px; clip-path: polygon(0 40%, 27% 20%, 27% 40%, 54% 20%, 54% 40%, 100% 18%, 100% 100%, 0 100%); }
.enterprise::before { left: 10px; bottom: 8px; width: 22px; height: 29px; box-shadow: inset 0 -5px 0 #fff; }
.education::before { left: 7px; top: 13px; width: 28px; height: 18px; transform: skewY(-18deg); }

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 54px max(24px, calc((100% - 1200px) / 2));
  color: #fff;
  background: linear-gradient(135deg, #02152b, #06244a 60%, #03152a);
}

.stats article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stats article:last-child {
  border-right: 0;
}

.stats strong {
  color: #8ac4ff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.stats span {
  margin-top: 8px;
  font-size: 14px;
  color: #d1e5fa;
}

/* ==========================================================================
   FAQ & ASSESSMENT SECTION
   ========================================================================== */

.faq-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.faq {
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.faq h2 {
  text-align: left;
  margin-bottom: 24px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease, background 0.2s ease;
}

details[open] summary::after {
  content: "−";
  background: var(--blue);
  color: #fff;
}

details p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.assessment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 44px 38px;
  color: #fff;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(3, 33, 83, 0.96), rgba(0, 73, 153, 0.88)),
    url("images/datacenter.jpg") center/cover;
  box-shadow: var(--shadow-md);
}

.assessment h2 {
  color: #fff;
  text-align: left;
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 34px);
}

.assessment p {
  margin: 0 0 28px;
  color: #d8eaff;
  font-size: 15px;
  line-height: 1.65;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 14px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  font-size: 14px;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65);
  color: #fff;
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  fill: #fff;
  flex-shrink: 0;
}

.whatsapp-text {
  white-space: nowrap;
}

/* Pulsing aura effect */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid #25d366;
  opacity: 0.7;
  animation: wa-pulse 2.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(0.96);
    opacity: 0;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #021022, #041b38 60%, #021022);
  padding: 60px max(24px, calc((100% - 1200px) / 2)) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}

.footer-logo {
  height: 88px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
}

.footer-grid h3 {
  margin: 0 0 18px;
  font-size: 16px;
  color: #fff;
  font-weight: 800;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 10px;
  color: #b8cbdc;
  font-size: 13.5px;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #55b4ff;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  color: #08203f;
  background: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  background: #55b4ff;
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  color: #9cb3c9;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.footer-bottom a {
  margin-left: 20px;
  color: #9cb3c9;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-legal {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal p {
  margin: 0;
  color: #7f99b3;
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE FIRST APPROACH)
   ========================================================================== */

/* Tablet Breakpoint (max-width: 992px) */
@media (max-width: 992px) {
  :root {
    --header-height: 110px;
  }

  .site-header {
    padding: 0 20px;
  }

  .logo {
    height: 80px;
    max-width: 350px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: rgba(3, 23, 48, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    font-size: 16px;
    width: 100%;
    padding: 8px 0;
  }

  .main-nav a.active::after,
  .main-nav a:hover::after {
    bottom: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
    text-align: center;
  }

  .hero-copy h1,
  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

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

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline li:nth-child(4)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 96px;
  }

  .logo {
    height: 70px;
    max-width: 300px;
  }

  .portfolio-strip,
  .section,
  .hero-inner {
    width: min(100% - 32px, 1200px);
  }

  .header-right .header-cta {
    display: none; /* Hide top CTA on small header to prevent clutter */
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 30px 0 50px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7vw, 36px);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-badges {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portfolio-row {
    grid-template-columns: 1fr;
  }

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

  .service-detail {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .why {
    padding: 50px 16px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .why-grid article {
    text-align: left;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
  }

  .why-grid article .icon {
    margin-bottom: 0;
  }

  .why-grid article div {
    display: flex;
    flex-direction: column;
  }

  .why h3 {
    margin: 0 0 4px;
  }

  /* Transform Timeline to Vertical on Mobile */
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 20px;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 43px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: #d0e4f7;
    z-index: 0;
  }

  .timeline li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    position: relative;
    z-index: 1;
  }

  .timeline li:not(:last-child)::after {
    display: none;
  }

  .timeline span {
    margin: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .timeline div {
    flex: 1;
  }

  .timeline h3 {
    margin: 2px 0 4px;
  }

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
    padding: 40px 16px;
  }

  .stats article {
    border-right: 0;
  }

  .stats article:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .faq-cta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq {
    padding: 24px 18px;
  }

  .assessment {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom a {
    margin-left: 0;
    margin-right: 16px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 16px;
    padding: 10px 16px;
  }

  .whatsapp-text {
    font-size: 13px;
  }
}

/* Extra Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 86px;
  }

  .logo {
    height: 60px;
    max-width: 250px;
  }

  .site-header {
    padding: 0 16px;
  }

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

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

  .stats article:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
  }

  .stats article:last-child {
    border-bottom: 0;
  }

  .whatsapp-float {
    padding: 12px;
    border-radius: 50%;
  }

  .whatsapp-text {
    display: none; /* Icon-only floating button on ultra-small viewports */
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   ASSESSMENT PAGE STYLES
   ========================================================================== */

.page-assessment main {
  background: #f4f7fb;
  min-height: 100vh;
}

/* Assessment Hero */
.assessment-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(16, 136, 255, 0.25), transparent 45%),
    linear-gradient(135deg, #021022, #042147 60%, #021226);
  color: #fff;
  padding: calc(var(--header-height) + 40px) 24px 60px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.assessment-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 136, 255, 0.2);
  border: 1px solid rgba(125, 193, 255, 0.4);
  color: #7dc1ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.assessment-hero h1 {
  font-size: clamp(28px, 3.8vw, 44px);
  margin: 0 0 16px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
}

.assessment-hero p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: #cce3fc;
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 720px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  font-weight: 600;
  color: #e3f0ff;
}

.icon-check {
  color: #38b6ff;
  font-weight: 900;
}

/* Assessment Form Container */
.assessment-form-section {
  padding: 48px 24px 80px;
}

.form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(8, 31, 58, 0.08);
  border: 1px solid #dce6f2;
  padding: 40px;
}

/* Form Steps Timeline */
.form-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8eff7;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaf2fb;
  color: #4b6280;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.3s ease;
}

.step-item.active {
  color: var(--navy);
}

.step-item.active .step-num {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--blue-glow);
}

.step-item.completed .step-num {
  background: #10b981;
  color: #ffffff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e2ebf5;
  margin: 0 16px;
  border-radius: 2px;
}

.step-item.completed + .step-line,
.step-item.active + .step-line {
  background: #9bcaf7;
}

/* Step Header */
.step-header {
  margin-bottom: 32px;
}

.step-header h2 {
  text-align: left;
  font-size: 22px;
  color: var(--navy-dark);
  margin: 0 0 8px;
}

.step-header p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* Form Step Displays */
.form-card-step {
  display: none;
}

.form-card-step.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

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

/* Grid & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.form-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a2e45;
}

.required {
  color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d8e8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfdff;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 136, 255, 0.15);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ef4444;
  background: #fff5f5;
}

.error-msg {
  display: none;
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
}

.form-group.has-error .error-msg {
  display: block;
}

.field-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e8eff7;
}

/* Asset Cards Grid */
.asset-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.asset-card {
  border: 1.5px solid #d8e5f2;
  border-radius: 12px;
  padding: 18px;
  background: #fbfdff;
  transition: all 0.25s ease;
}

.asset-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(16, 136, 255, 0.08);
}

.asset-card.active {
  border-color: var(--blue);
  background: #f0f7ff;
  box-shadow: 0 4px 16px rgba(16, 136, 255, 0.12);
}

.asset-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

.asset-title {
  font-size: 15px;
  color: var(--navy);
}

.asset-badge {
  font-size: 11px;
  font-weight: 800;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 999px;
}

.asset-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 14px 28px;
  line-height: 1.4;
}

.asset-inputs {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2ebf5;
}

.mini-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-input-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.qty-input,
.cond-select {
  padding: 8px 10px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}

/* Total Units Box */
.total-units-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #021a38, #052a57);
  color: #ffffff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.total-units-summary strong {
  font-size: 20px;
  color: #60a5fa;

}

/* Services Checkbox Section */
.services-selection {
  margin-bottom: 24px;
}

.form-label-section {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

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

.service-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid #d8e5f2;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-checkbox-card:hover {
  border-color: #93c5fd;
}

.service-checkbox-card.selected {
  border-color: var(--blue);
  background: #f4f9ff;
}

.service-checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  margin-top: 2px;
}

.icon-box {
  font-size: 20px;
}

.service-checkbox-card strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 2px;
}

.service-checkbox-card p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Action Buttons Custom */
.btn-wa {
  background: #25d366 !important;
  color: #ffffff !important;
  border: 0 !important;
}

.btn-wa:hover {
  background: #1eb956 !important;
}

.margin-top-24 {
  margin-top: 24px;
}

/* Trust Banner */
.trust-banner {
  background: #ffffff;
  border-top: 1px solid #e2ebf5;
  padding: 60px 24px;
}

.trust-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trust-card {
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.trust-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.trust-card h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 8px;
}

.trust-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Confirmation Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 16, 34, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  padding: 40px 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  font-size: 32px;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.modal-card h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.ticket-box {
  background: #f0f7ff;
  border: 1.5px dashed var(--blue);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.ticket-label {
  display: block;
  font-size: 12px;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ticket-code {
  font-size: 24px;
  color: var(--blue);
  letter-spacing: 0.08em;
  font-family: monospace;
}

.modal-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: #475569;
}

.summary-row strong {
  color: var(--navy);
}

.badge-success {
  background: #d1fae5;
  color: #047857;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

.modal-note {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Responsive Assessment Form */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 20px 14px;
    border-radius: 12px;
  }

  .form-steps-nav {
    gap: 8px;
  }

  .step-text {
    display: none; /* Hide text on small screens, keep numbers */
  }

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

  .asset-selection-grid {
    grid-template-columns: 1fr;
  }

  .asset-card {
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .asset-card-header {
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
  }

  .custom-checkbox {
    flex: 1;
    min-width: 0;
  }

  .asset-title {
    font-size: 14px;
    word-break: break-word;
  }

  .asset-desc {
    margin-left: 0;
    margin-top: 6px;
    font-size: 12px;
  }

  .asset-inputs {
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
  }

  .mini-input-group label {
    font-size: 11px;
  }

  .qty-input,
  .cond-select {
    font-size: 12px !important;
    padding: 6px 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .modal-actions {
    flex-direction: column;
  }

  .step-actions {
    flex-direction: column-reverse;
  }

  .step-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .asset-inputs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   BLOG & ARTICLE DESIGN SYSTEM (MATCHES MAIN SITE THEME)
   ========================================================================== */

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-2) 100%);
  color: #ffffff;
  padding: calc(var(--header-height) + 50px) 24px 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.blog-hero h1 span {
  color: var(--blue-soft);
}

.blog-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Search & Filter Bar */
.blog-controls {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.blog-search-box {
  width: 100%;
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  outline: none;
}

.blog-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.blog-search-input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--blue-soft);
  box-shadow: 0 0 20px var(--blue-glow);
}

.blog-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 2;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.category-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.category-pill:hover,
.category-pill.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(16, 136, 255, 0.4);
}

/* Blog Layout Container */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Featured Article Card */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-post-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  background: var(--navy);
}

.featured-post-content {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 14px;
  background: rgba(16, 136, 255, 0.1);
  color: var(--blue);
}

.featured-post-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--navy);
}

.featured-post-content h2 a:hover {
  color: var(--blue);
}

.featured-post-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Blog Grid */
.blog-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--soft);
}

.blog-grid-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.blog-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-soft);
}

.blog-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--navy);
}

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

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

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

.blog-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 10px 0;
  color: var(--navy);
}

.blog-card-body h3 a {
  color: inherit;
  transition: color 0.2s ease;
}

.blog-card-body h3 a:hover {
  color: var(--blue);
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* No results state */
.no-results-box {
  text-align: center;
  padding: 60px 20px;
  background: var(--soft);
  border-radius: 16px;
  grid-column: 1 / -1;
}

.no-results-box h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.no-results-box p {
  color: var(--muted);
}

/* Single Article Layout */
.article-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: calc(var(--header-height) + 40px) 24px 60px;
  position: relative;
}

.article-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--blue-soft);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.article-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Main Article Container */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

.article-main-body {
  min-width: 0;
}

/* Table of Contents */
.toc-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-box summary {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
}

.toc-list {
  margin: 14px 0 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  color: var(--ink);
  font-size: 14px;
  transition: color 0.2s ease;
}

.toc-list a:hover {
  color: var(--blue);
}

/* Article Reading Content Styling */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1e293b;
}

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

.article-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  background: #f0f7ff;
  border-left: 4px solid var(--blue);
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--navy);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Code Snippets */
.article-body pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.article-body code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Callout Alerts */
.callout {
  padding: 20px 24px;
  border-radius: 12px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 15px;
}

.callout-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.callout-warning {
  background: #fffbebf;
  border: 1px solid #fef08a;
  color: #854d0e;
}

.callout-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.callout-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* Flowchart / Diagram container */
.article-diagram-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.article-diagram-box img,
.article-diagram-box svg {
  max-width: 100%;
  height: auto;
}

.article-diagram-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* Author Box at Article Bottom */
.article-author-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin: 48px 0 32px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-big-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-details h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--navy);
}

.author-details p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-sticky-wrap {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-cta-card {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #ffffff;
  border: none;
}

.sidebar-cta-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.sidebar-cta-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .featured-post-img {
    min-height: 240px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky-wrap {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-cards-grid {
    grid-template-columns: 1fr;
  }
  .article-author-card {
    flex-direction: column;
    text-align: center;
  }
  .blog-hero {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 40px;
  }
  .featured-post-content {
    padding: 24px 20px;
  }
  .article-layout {
    padding: 30px 16px;
  }
}

/* Responsive Content Protection & Table Formatting */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  display: block;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  display: block;
  overflow-x: auto;
}

.article-body th, .article-body td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.article-body th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.article-body tr:nth-child(even) {
  background: var(--soft);
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  word-wrap: normal;
}




