/* Custom Signature Site Design System */

/* Name Badge Pills */
.main-color-names {
  display: inline-block;
  margin: 5px 3px;
}

.main-color-names a {
  display: inline-block;
  padding: 7px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  color: #334155;
  font-weight: 500;
  font-size: 13.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.main-color-names a:hover {
  background: #0d6efd;
  color: #ffffff;
  border-color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

/* Alphabet Filter Grid - Dark Blue Solid Badges as in screenshot */
.alphabet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  padding: 6px 0;
}

.main-color-alphabet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #0d6efd;
  border: 1px solid #0d6efd;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.main-color-alphabet:hover {
  background: #0b5ed7;
  color: #ffffff;
  border-color: #0a58ca;
  transform: scale(1.05);
}

.pointer {
  cursor: pointer;
}

.radius {
  border-radius: 10px;
}

/* Signature Image Styling - Crisp High-Contrast Full Width Border */
.sing, .signature-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px 8px;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.card:hover .sing, .card:hover .signature-img {
  transform: scale(1.01);
}

.card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 14px;
  margin-bottom: 0;
}

/* Form Input Styling - Matches screenshot layout with separate Create and Draw buttons */
.form-create-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.form-create-wrapper .form-control {
  flex: 1;
  height: 42px;
  border: 1.5px solid #0d6efd;
  border-radius: 6px !important;
  padding: 8px 14px;
  font-size: 15px;
  color: #212529;
}

.form-create-wrapper .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.form-create-wrapper .btn-primary {
  height: 42px;
  padding: 0 22px;
  border-radius: 6px !important;
  font-weight: 500;
  font-size: 15px;
  background: #0d6efd;
  border: 1px solid #0d6efd;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.form-create-wrapper .btn-primary:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
  color: #ffffff;
}

/* Load More Button - Primary Solid Blue Design */
#load_more {
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 8px;
  background-color: #0d6efd !important;
  border: 1px solid #0d6efd !important;
  color: #ffffff !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

#load_more:hover {
  background-color: #0b5ed7 !important;
  border-color: #0a58ca !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

#load_more:active, #load_more:focus {
  background-color: #0a58ca !important;
  border-color: #0a58ca !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5) !important;
}

/* Download Buttons for Signature Images */
.btn-download-img {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-download-img i {
  font-size: 14px;
}

.btn-download-normal {
  color: #0d6efd;
  background: #ffffff;
  border: 1.5px solid #0d6efd;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.1);
}

.btn-download-normal:hover {
  background: #0d6efd;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-download-tp {
  color: #ffffff;
  background: #0d6efd;
  border: 1.5px solid #0d6efd;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

.btn-download-tp:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

/* Fullscreen Image Lightbox Modal */
.image-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.image-lightbox-modal.active {
  display: flex;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  text-align: center;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  height: auto;
  object-fit: contain;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 28px;
  color: #ffffff;
  font-size: 38px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 100000;
  line-height: 1;
}

.lightbox-close:hover {
  color: #0d6efd;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Table of Contents Styling */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-item i {
  color: #0d6efd;
  font-size: 18px;
  transition: color 0.2s ease;
}

.toc-item:hover {
  background: #0d6efd;
  color: #ffffff;
  border-color: #0d6efd;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.toc-item:hover i {
  color: #ffffff;
}

/* Twitter-like Smart Sticky Right Sidebar — JS controls the top value */
@media (min-width: 992px) {
  /* Parent row must be flex-start — required for position:sticky inside flex */
  .dashboard .row {
    align-items: flex-start !important;
  }

  .dashboard .col-lg-4 {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 85px;                     /* JS will override this dynamically */
    align-self: flex-start !important;
  }

  /* Inner wrapper — no overflow needed, JS handles smart sticky */
  .right-sidebar-inner {
    /* intentionally no overflow or max-height here */
  }
}


/* =========================================================
   F.A.Q Section Styles
   ========================================================= */

/* Card wrapper */
.faq-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

/* Title icon next to card-title */
.faq-title-icon {
  color: #0d6efd;
  font-size: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Subtitle below the card-title */
.faq-subtitle {
  color: #64748b;
  font-size: 13.5px;
  margin-bottom: 16px;
  margin-top: -6px;
}

/* Accordion wrapper — remove flush border artifacts */
.faq-accordion {
  border: none;
}

/* Each accordion item */
.faq-item {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

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

.faq-item:hover {
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.1);
}

/* Accordion button */
.faq-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14.5px;
  color: #1e293b;
  padding: 16px 18px;
  background: #f8fafc !important;
  border: none;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-btn:not(.collapsed) {
  background: #eef4ff !important;
  color: #0d6efd !important;
  box-shadow: none !important;
}

.faq-btn:focus {
  box-shadow: none !important;
  outline: none;
}

/* The icon circle badge on the left of each question */
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #dbeafe;
  border-radius: 50%;
  color: #0d6efd;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-btn:not(.collapsed) .faq-icon {
  background: #0d6efd;
  color: #ffffff;
}

/* Accordion answer body */
.faq-body {
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
  padding: 14px 18px 18px 62px; /* left indent aligns with question text */
  background: #ffffff;
}

/* Ordered list inside FAQ answers */
.faq-steps {
  margin: 0;
  padding-left: 20px;
}

.faq-steps li {
  margin-bottom: 8px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.faq-steps li:last-child {
  margin-bottom: 0;
}

.faq-steps li strong {
  color: #1e293b;
}



