/* Root variables for easy theming */
:root {
  --brand-font: "Plus Jakarta Sans", sans-serif;
  --brand-color: #0d6efd; /* Bootstrap primary */
  --text-color: #1f2937; /* Slate-800 */
  --muted-color: #64748b; /* Slate-500 */
  --bg-subtle: #f8fafc; /* Slate-50 */
  --radius-lg: 1rem;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--brand-font);
  color: var(--text-color);
  background-color: #fff;
  background-image: linear-gradient(
    160deg,
    #eef2ff 0%,
    #f0f9ff 40%,
    #ecfdf5 100%
  );
}

.site-header .navbar-brand span {
  letter-spacing: 0.2px;
}

/* DCS header */
.logo-box {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background-color: #fff; /* indigo-600 */
  box-shadow: 2px 2px 10px rgba(152, 220, 122, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.brand-title {
  font-weight: 600;
}
.brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted-color);
}

.btn-pill {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  margin: 0.5rem 0.2rem;
  font-size: 0.875rem;
}

.btn-pill:hover {
  background: #dff7cc;
}

.btn-pill.active {
  background: #0d5933;
  color: #fff;
  border: none;
}

.navbar .nav-link {
  color: var(--text-color);
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--brand-color);
}

.hero {
  background-image: radial-gradient(
    1200px 600px at 20% -10%,
    #e7f1ff 0%,
    rgba(231, 241, 255, 0) 60%
  );
}

/* Docs */
.page-main {
  padding-top: 1rem;
}
.docs-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}
.docs-ol {
  margin-left: 1.25rem;
  color: #334155;
  font-size: 0.95rem;
}
.docs-ol li {
  margin-bottom: 0.35rem;
}

.section {
  scroll-margin-top: 80px; /* for anchor offset below sticky header */
}

.icon-circle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
}

.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.pricing-featured {
  box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.15) !important;
}

.site-footer .nav-link {
  color: var(--muted-color);
}
.site-footer .nav-link:hover {
  color: var(--text-color);
}

/* Helpers */
.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}

/* Better image fit utility for Bootstrap ratios */
.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

.loading-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 41, 55, 0.6); /* semi-transparent dark */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050; /* above most elements */
}

.loading-card {
  background: white;
  padding: 2rem 3rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 0 20px rgb(0 0 0 / 0.15);
  font-family: var(--brand-font, sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-color, #0d6efd);
}
.doc-wrapper {
  width: 70%; /* Maintain the 60% width */
  min-height: 800px; /* Set minimum height to 500px */
  display: flex;
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
  justify-content: center; /* Center iframe horizontally within .doc-wrapper */
  align-items: center; /* Center iframe vertically within .doc-wrapper */
  margin: 0px auto; /* Center .doc-wrapper itself horizontally within its parent */
  padding: 0;
  text-align: center; /* Ensure text content (if any) is centered */
  box-sizing: border-box; /* Ensure padding/borders don't affect width */
}

@media (max-width: 768px) {
  .doc-wrapper {
    width: 100%; /* Full width on mobile */
    aspect-ratio: 4 / 3; /* Disable aspect ratio on mobile for flexibility */
  }
}

.doc-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  /* allow wrapping for clamping */
}

/* Keep column widths reasonable so clamping is visible */
.col-issue-desc {
  max-width: 420px;
}

.col-solution {
  max-width: 420px;
}

@media (max-width: 992px) {
  .col-issue-desc,
  .col-solution {
    max-width: 260px;
  }
}

.thumb-40 {
  height: 40px;
  width: auto;
  cursor: pointer;
}
