:root {
  --color-primary: #0067b8;
  --color-secondary: #0067b8;
  --color-accent: #ffb900;

  --color-bg-light: #f0f8fa;
  --color-bg-soft: #e6f4f7;

  --color-text-dark: #083845;
  --color-text-muted: #5b6b73;

  --color-border: rgba(23, 138, 170, 0.25);

  --shadow-primary: rgba(23, 138, 170, 0.3);
  --shadow-strong: rgba(23, 138, 170, 0.4);
}

/* ========== Loader CSS ========== */

.loader-overlay {
  background: rgba(255, 255, 255) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  /* min-height: 120px; */
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.loader-overlay.transparent {
  background: transparent !important;
}

@media (max-width: 640px) {

  .loader-overlay {
    min-height: 90px;
    padding: 6px 4px;
    width: 78%;
    background: none !important;
  }
}

/* Contact card container */
.contact-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-primary);
  border-radius: 1.25rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(var(--color-accent), 0.1),
      rgba(var(--color-accent), 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 20px 60px #ffb90033;
  background: var(--color-bg-light);
}

.contact-card:hover::before {
  opacity: 1;
}

/* Contact card inner layout */
.contact-card-inner {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Icon container */
.contact-icon-box {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.5rem;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-sub-icon-box {
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Contact details wrapper */
.contact-details {
  flex: 1;
}

/* Contact card heading */
.contact-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Contact link */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--color-accent);
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Social Card */
.social-card {
  background: var(--color-bg-light);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-primary);
  border-radius: 1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: block;
}

/* Expanding circle effect on hover */
.social-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, #ffb90033, #ffb9001a);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.social-card:hover::before {
  width: 200%;
  height: 200%;
}

.social-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 40px #ffb9001a;
}

/* Social Icon */
.social-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  font-size: 2rem;
}

/* Social Icon */
.social-svg-icon {
  margin: 0 auto 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-card:hover .social-icon {
  transform: scale(1.1);
}

/* Form container */
.form-container {
  background: #ffffff;
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 0.5rem 1.7rem;
  box-shadow: 0 12px 30px (var(--shadow-primary), 0.15), 0 4px 10px (var(--shadow-primary), 0.1);
}

/* Form header */
.form-header {
  margin-bottom: 1rem;
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--color-primary);
}

/* Form label */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Required asterisk */
.required {
  color: #dc3545;
}

/* Form input and textarea */
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.25rem 1rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-primary);
  border-radius: 0.5rem;
  color: var(--color-text-dark);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #71717a;
}

.form-input:focus,
.form-textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--color-secondary);
  backdrop-filter: blur(4px);
}

/* Textarea specific */
.form-textarea {
  resize: none;
  min-height: 80px;
}

/* Submit button */
.form-submit-btn {
  width: 100%;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px var(--shadow-primary);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-submit-btn:hover {
  background-color: var(--color-accent);
  box-shadow: 0 10px 20px var(--shadow-primary);
}

.form-submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent), 0 10px 20px ((var(--color-bg-soft)), 0.4);
}

.form-submit-btn i {
  margin-right: 0.5rem;
}

.medium-icon {
  content: url('images/medium-contact-us.svg');
  transition: transform 0.3s ease;
}

.group:hover .medium-icon {
  content: url('images/medium-amber.svg');
}

/* Icon box background becomes amber when parent <a> is hovered */
.group:hover .contact-icon-box {
  background-color: #f59e0b;
  transform: scale(1.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Toaster Css  */

/* Toast Animation & Visibility */
.toast-notification {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  opacity: 0;
  transform: translateY(-20px);
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure 'hidden' class from Tailwind works as expected */
.toast-notification.hidden {
  display: none;
}

.toast-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Error Page css */
.error-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.error-code {
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.error-title {
  font-size: 28px;
  font-weight: 600;
}

.error-message {
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 25px;
}

.error-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.error-wrapper {
  text-align: center;
}

@media screen and (min-width: 992px) {
  .error-content {
    position: absolute;
    bottom: 22%;
    left: 70%;
    transform: translate(-50%);
    text-align: center;
    color: #0d6816;
    width: 100%;
    max-width: 450px;
  }

  .error-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .error-code {
    font-size: 150px;
  }
}

/* Minimal, safe breadcrumb fixes */
[aria-label="Breadcrumb"] ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* spacing between li items */
  flex-wrap: nowrap;
  /* keep crumbs in one line */
  white-space: nowrap;
  /* avoid per-letter wrapping like "B l o g" */
  min-width: 0;
  /* allow shrinking without overflow */
}

[aria-label="Breadcrumb"] li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  /* icon ↔ text spacing inside each li */
}

/* Keep anchors inline, do not change color/hover */
[aria-label="Breadcrumb"] a {
  display: inline;
  /* inline is enough; avoids block stacking */
  white-space: nowrap;
  letter-spacing: normal;
  writing-mode: horizontal-tb;
}

/* Preserve your explicit icon sizes from HTML; don't override width/height */
[aria-label="Breadcrumb"] i {
  display: inline-block;
  vertical-align: middle;
  /* align nicely with text */
  /* No forced width/height here so your HTML width/height (w-4 h-4, 20x20) win */
}

/* On narrow screens, truncate ONLY the last crumb text (article title) */
@media (max-width: 640px) {
  [aria-label="Breadcrumb"] li:last-child a {
    display: inline-block;
    /* needed for ellipsis */
    max-width: 50vw;
    /* adjust to taste */
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
}

tooltip-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

/* (above arrow) */
.tooltip-top::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  max-width: 500px;
  width: max-content;
  padding: 0.45rem 0.65rem;
  color: #fff;
  font-weight: normal;
  font-size: 14px;
  line-height: 1.3;
  background-color: var(--color-primary);
  border-radius: 8px;
  box-shadow:
    0 2px 6px rgba(17, 24, 39, 0.10),
    0 12px 24px rgba(17, 24, 39, 0.12);
  text-align: left;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 2;
}

/* Arrow */
.tooltip-top::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + -5px);
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: var(--color-primary) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s;
  z-index: 1;
}

.tooltip-top:hover::after,
.tooltip-top:focus-visible::after {
  opacity: 0.98;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

.tooltip-top:hover::before,
.tooltip-top:focus-visible::before {
  opacity: 0.98;
  visibility: visible;
}

/* If any ancestor clips, let tooltip escape */
.tooltip-no-clip {
  overflow: visible !important;
  position: relative;
  z-index: 0;
}

.toggle-seg.active {
  background: white;
  color: #0067b8;
  /* primary */

  border: 1px solid #0067b8;

  /* outer dotted ring */
  outline: 2px dashed #0067b8;
  outline-offset: 2px;
}

/* Mobile card layout for tables */
@media (max-width: 640px) {

  table.cmp-table,
  .cmp-table thead,
  .cmp-table tbody,
  .cmp-table th,
  .cmp-table td,
  .cmp-table tr {
    display: block;
    width: 100%;
  }

  .cmp-table thead {
    display: none;
    /* hide header on mobile */
  }

  .cmp-table tr {
    margin-bottom: 0.75rem;
    /* spacing between cards */
    border: 1px solid #e5e7eb;
    /* match border-zinc-200 */
    border-radius: 0.75rem;
    /* rounded-2xl feel */
    overflow: hidden;
    /* clip corners */
  }

  .cmp-table td {
    display: grid;
    grid-template-columns: 48% 52%;
    /* label and value */
    align-items: center;
    gap: 0.5rem;
    border: 0;
    /* remove inner table borders to avoid clutter */
    border-bottom: 1px solid #f4f4f5;
    /* subtle separator */
  }

  .cmp-table td:last-child {
    border-bottom: 0;
  }

  /* Show the heading before each value */
  .cmp-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #374151;
    /* neutral-700-ish */
  }

  /* Preserve your color badges and chips; let their bg colors show */
  .cmp-table td span {
    justify-self: end;
    /* aligns values to the right column */
  }

  .cmp-table td span.no-justify-end {
    justify-self: start;
  }

  .cmp-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }

  .cmp-table td::before {
    content: attr(data-label);
    font-weight: 600;
    text-align: left;
  }
}

.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background-color: rgba(34, 197, 94, 0.12);
  border: 1px solid #16a34a;
  color: #16a34a;
  font-size: 16px;
  font-weight: 700;
}

.cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background-color: rgba(239, 68, 68, 0.08);
  border: 0.5px solid #dc2626;
  color: #dc2626;
  font-size: 8px;
  font-weight: 600;
}

/* Home Page */

/* Report preview — back-card transforms */
.report-shadow-one { transform: rotate(-4deg) translate(-28px, 12px); }
.report-shadow-two { transform: rotate(6deg)  translate(35px, 22px); }

/* ===================== Security page ===================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity .8s ease,
    transform .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .reveal {
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
  }
}

/* Secure Score conic ring */
.score-ring {
  --score: 0;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: conic-gradient(var(--color-primary) calc(var(--score) * 1%), rgba(0, 103, 184, .12) 0);
}
.score-ring::after { content: ""; position: absolute; inset: 6px; border-radius: inherit; background: #fff; }
.score-ring > * { position: relative; z-index: 1; }

/* Security page — large Secure Score ring (thicker band than the hero ring) */
.score-ring-lg::after { inset: 14px; }

/* Floating card drift (gentle up/down) — reusable */
.float-card { animation: float-card 4s ease-in-out infinite; }
.float-card-delay { animation-delay: -1.3s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Pulsing glow dot — effect only */
.pulse-glow { animation: pulse-glow 2s ease-out infinite; }
@keyframes pulse-glow {
  0%   { box-shadow: 0 0 0 0 rgba(var(--glow), .55); }
  70%  { box-shadow: 0 0 4px 6px rgba(var(--glow), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--glow), 0); }
}
/* color modifiers — add more as needed */
.glow-emerald { --glow: 16,185,129; }
.glow-red     { --glow: 239,68,68; }
.glow-amber   { --glow: 245,158,11; }

/* Sample report — horizontal fill bars (pass --bar as the fill %) */
.report-bar {
  height: 13px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-primary) var(--bar), #e3e9f2 var(--bar));
}

/* Shield rings — expanding pulse (scale + fade), staggered via delay */
.ring-pulse { animation: ring-pulse 4s ease-out infinite; }
@keyframes ring-pulse {
  0%   { transform: scale(.88); opacity: .2; }
  50%  { opacity: .6; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* Governance page */
@keyframes pulse-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes pulse-highlight {
  0%,
  22% {
    border-color: #0067b8;
    box-shadow: 0 0 0 2px rgba(0, 103, 184, 0.15);
  }
  27%,
  100% {
    border-color: #e2e8f0;
    box-shadow: none;
  }
}

@keyframes pulse-dot-active {
  0%,
  22% {
    background-color: #0067b8;
  }
  27%,
  100% {
    background-color: #cbd5e1;
  }
}

@keyframes workflow-cycle {
  0%,
  16% {
    background-color: #ffb900;
    border-color: #ffb900;
    color: #4a3400;
    box-shadow: 0 0 0 4px rgba(255, 185, 0, 0.2);
    transform: scale(1.08);
  }
  20%,
  100% {
    background-color: #ffffff;
    border-color: #0067b8;
    color: #0067b8;
    box-shadow: none;
    transform: scale(1);
  }
}

.stat-counter-value {
  font-size: 30px;
  font-weight: 800;
  color: #0067b8;
  line-height: 1;
}

.stat-counter-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.stat-counter-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
}

.stat-counter-danger {
  color: #e24b4a;
}

.stat-counter-accent {
  color: #ffb900;
}

.ob-table {
  border-collapse: separate;
  border-spacing: 0;
}

.ob-table thead th:first-child {
  border-top-left-radius: 0.75rem;
}

.ob-table thead th:last-child {
  border-top-right-radius: 0.75rem;
}

@media (max-width: 767px) {
  .ob-table thead {
    display: none;
  }

  .ob-table,
  .ob-table tbody,
  .ob-table tr,
  .ob-table td {
    display: block;
    width: 100%;
  }

  .ob-table tr {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    box-shadow: 0 10px 25px -8px rgba(15, 23, 42, 0.08);
    background-color: #ffffff !important;
  }

  .ob-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: none !important;
    padding: 6px 2px;
  }

  .ob-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0067b8;
    flex-shrink: 0;
  }
}