/* =========================================================
   PASSPORT PHOTO — UPLOAD PAGE
   ========================================================= */

.passport-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.passport-hero {
    background: linear-gradient(
        135deg,
        #050a19,
        #0f1e37,
        #2d4678,
        #0f1e37,
        #050a19
    );

    color: white;
    text-align: center;
    border-radius: 18px;
    padding: 45px 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
}

.passport-hero h1 {
    margin: 0 0 15px;
    font-size: 2.3rem;
}

.passport-hero p {
    margin: 0;
    font-size: 1.05rem;
}

.passport-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}

.passport-form-group {
    margin-bottom: 20px;
}

.passport-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.passport-form-group input,
.passport-form-group select {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.passport-button {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #007bff, #0056d6);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.passport-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.passport-progress {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.passport-spinner {
    width: 55px;
    height: 55px;
    border: 5px solid #ddd;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: passport-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes passport-spin {
    to {
        transform: rotate(360deg);
    }
}

.passport-error {
    display: none;
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    background: #ffe8e8;
    color: #a00000;
}

.passport-privacy {
    text-align: center;
    color: #555;
    font-size: 14px;
    margin-top: 18px;
}

@media (max-width: 600px) {

    .passport-page {
        padding: 15px 10px 40px;
    }

    .passport-hero {
        padding: 30px 18px;
    }

    .passport-hero h1 {
        font-size: 1.8rem;
    }

    .passport-card {
        padding: 20px;
    }
}




/* ════════════════════════════════════════════════════════════════
   KNOWLEDGE REGISTRY — complete content styling
   Styles every section emitted by {% render_knowledge %}:
   content sections, tables, FAQ accordion, related-tools links.
   ════════════════════════════════════════════════════════════════ */

/* Content wrapper */
.passport-page .knowledge-content {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 20px;
  color: #1f2937;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
}

/* Sections */
.passport-page .knowledge-content .content-section {
  margin: 32px 0;
}

.passport-page .knowledge-content .content-header {
  margin-bottom: 16px;
}

.passport-page .knowledge-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.passport-page .knowledge-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin: 28px 0 12px;
}

.passport-page .knowledge-content p,
.passport-page .knowledge-content .knowledge-prose {
  font-size: 1rem;
  color: #374151;
  margin: 0 0 16px;
}

.passport-page .knowledge-content ul,
.passport-page .knowledge-content ol,
.passport-page .knowledge-content .knowledge-list,
.passport-page .knowledge-content .knowledge-steps {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.passport-page .knowledge-content li {
  margin: 6px 0;
  color: #374151;
}

.passport-page .knowledge-content strong {
  color: #0f172a;
  font-weight: 600;
}

.passport-page .knowledge-content a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.passport-page .knowledge-content a:hover {
  border-bottom-color: #2563eb;
}

/* Tables */
.passport-page .knowledge-content .knowledge-table-wrap {
  margin: 20px 0;
  overflow-x: auto;
}

.passport-page .knowledge-content table.knowledge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.passport-page .knowledge-content .knowledge-table th {
  background: #f8fafc;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 2px solid #e5e7eb;
}

.passport-page .knowledge-content .knowledge-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
}

.passport-page .knowledge-content .knowledge-table tr:last-child td {
  border-bottom: none;
}

.passport-page .knowledge-content .knowledge-attr {
  color: #0f172a;
  background: #fafbfc;
  width: 35%;
}

/* Common problems (definition list) */
.passport-page .knowledge-content .knowledge-problems {
  margin: 16px 0;
}

.passport-page .knowledge-content .knowledge-problems dt {
  font-weight: 600;
  color: #0f172a;
  margin-top: 16px;
  margin-bottom: 4px;
}

.passport-page .knowledge-content .knowledge-problems dd {
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 3px solid #e5e7eb;
  color: #4b5563;
}

/* ═══ FAQ ACCORDION ═══ */
.passport-page .knowledge-content .faqs {
  margin: 40px 0 20px;
}

.passport-page .knowledge-content .faqs h2 {
  text-align: center;
  border-bottom: none;
  margin-bottom: 24px;
}

.passport-page .knowledge-content .faq-item {
  background: #ffffff;
  margin-bottom: 10px;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease;
}

.passport-page .knowledge-content .faq-item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.passport-page .knowledge-content .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  margin: 0;
}

.passport-page .knowledge-content .faq-answer {
  display: none;
  padding-top: 12px;
  padding-left: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
  border: none;
}

.passport-page .knowledge-content .faq-item.active .faq-answer {
  display: block;
}

.passport-page .knowledge-content .toggle-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1;
  transition: transform 0.15s ease;
}

/* ═══ RELATED TOOLS LINKS ═══ */
.passport-page .knowledge-content .links-section {
  margin: 40px 0 20px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.passport-page .knowledge-content .links-section h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
  padding-bottom: 0;
  border-bottom: none;
  text-align: center;
}

.passport-page .knowledge-content .links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.passport-page .knowledge-content .link-item {
  margin: 0;
}

.passport-page .knowledge-content .link-item a {
  display: block;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #2563eb;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.passport-page .knowledge-content .link-item a:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ═══ Freshness / sources ═══ */
.passport-page .knowledge-content .knowledge-freshness {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
}

/* ═══ Responsive ═══ */
@media (max-width: 640px) {
  .passport-page .knowledge-content {
    padding: 0 16px;
    margin: 24px auto 40px;
  }

  .passport-page .knowledge-content h2 {
    font-size: 1.3rem;
  }

  .passport-page .knowledge-content h3 {
    font-size: 1.1rem;
  }

  .passport-page .knowledge-content .knowledge-table {
    font-size: 0.85rem;
  }

  .passport-page .knowledge-content .knowledge-table th,
  .passport-page .knowledge-content .knowledge-table td {
    padding: 8px 12px;
  }

  .passport-page .knowledge-content .links-container {
    grid-template-columns: 1fr;
  }
}
