﻿/* ═══════════════════════════════════════════════════════
   NGO DOCUMENTS & TRUST PAGE
═══════════════════════════════════════════════════════ */

/* HERO */
.doc-hero {
  background: linear-gradient(135deg, #0d2b5e 0%, #1565c0 55%, #2e7d32 100%);
  padding: 90px 28px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.doc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1400&q=60') center/cover;
  opacity: 0.08;
}
.doc-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: #f4f7fb;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.doc-hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.doc-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 7px 22px; border-radius: 40px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 24px; backdrop-filter: blur(8px);
}
.doc-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 18px;
}
.doc-hero h1 span { color: var(--gold); }
.doc-hero p { font-size: 1.08rem; color: rgba(255,255,255,0.85); line-height: 1.75; margin-bottom: 34px; }
.doc-hero-tags { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.doc-hero-tag {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 9px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 600; backdrop-filter: blur(6px);
}
.doc-hero-tag i { color: var(--gold); }

/* TRUST STATS BAR */
.trust-stats {
  background: #fff;
  border-bottom: 1px solid #e8eef8;
  box-shadow: 0 4px 20px rgba(21,101,192,0.07);
}
.ts-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.ts-item {
  padding: 26px 20px; text-align: center;
  border-right: 1px solid #e8eef8;
  transition: background 0.3s;
}
.ts-item:last-child { border-right: none; }
.ts-item:hover { background: var(--blue-pale); }
.ts-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900; color: var(--blue-primary);
}
.ts-label { font-size: 12px; color: var(--text-mid); font-weight: 600; margin-top: 4px; }
.ts-icon { font-size: 20px; color: var(--green); margin-bottom: 6px; }

/* SECTIONS */
.docs-section { padding: 70px 28px; }
.docs-section.bg-grey { background: var(--gray-bg); }
.docs-inner { max-width: 1240px; margin: 0 auto; }

/* SECTION TITLE */
.docs-section-title {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--blue-pale);
}
.dst-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; flex-shrink: 0;
}
.dst-icon.blue { background: linear-gradient(135deg, var(--blue-primary), #42a5f5); }
.dst-icon.green { background: linear-gradient(135deg, var(--green), #66bb6a); }
.dst-icon.gold { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.dst-icon.navy { background: linear-gradient(135deg, var(--blue-bar), var(--blue-primary)); }
.dst-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; font-weight: 800; color: var(--text-dark);
}
.dst-text p { font-size: 14px; color: var(--text-mid); margin-top: 4px; }

/* CERTIFICATE CARDS GRID */
.cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

.cert-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.35s;
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid #e8eef8;
}
.cert-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.cert-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f0f4ff;
  cursor: pointer;
}
.cert-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.cert-card:hover .cert-img-wrap img { transform: scale(1.04); }

/* PDF Preview */
.cert-pdf-preview {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8eef8 0%, #f4f7fb 100%);
  cursor: pointer;
}
.cert-pdf-preview i { font-size: 52px; color: #c62828; margin-bottom: 12px; }
.cert-pdf-preview span { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.cert-pdf-preview small { font-size: 11px; color: var(--text-mid); margin-top: 4px; }

.cert-overlay {
  position: absolute; inset: 0;
  background: rgba(13,43,94,0.82);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  gap: 14px;
}
.cert-card:hover .cert-overlay { opacity: 1; }
.cert-ov-btn {
  padding: 10px 22px; border-radius: 8px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  transition: all 0.2s; border: none; text-decoration: none;
}
.cert-ov-btn.view-btn { background: #fff; color: var(--blue-primary); }
.cert-ov-btn.view-btn:hover { background: var(--gold); color: #111; }
.cert-ov-btn.dl-btn { background: var(--green); color: #fff; }
.cert-ov-btn.dl-btn:hover { background: #1b5e20; }

.cert-status {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  display: flex; align-items: center; gap: 5px;
}
.cert-status.verified { background: #e8f5e9; color: #2e7d32; border: 1.5px solid #a5d6a7; }
.cert-status.valid { background: #e3f2fd; color: #1565c0; border: 1.5px solid #90caf9; }
.cert-status.pdf { background: #ffebee; color: #c62828; border: 1.5px solid #ef9a9a; }

.cert-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.cert-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 800;
  color: var(--text-dark); margin-bottom: 8px; line-height: 1.4;
}
.cert-body p { font-size: 13px; color: var(--text-mid); line-height: 1.7; flex: 1; margin-bottom: 16px; }

.cert-meta { display: flex; flex-direction: column; gap: 6px; }
.cert-meta-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-mid);
}
.cert-meta-row i { color: var(--blue-primary); width: 14px; text-align: center; }
.cert-meta-row strong { color: var(--text-dark); }

.cert-footer {
  padding: 14px 22px;
  border-top: 1px solid #f0f4fc;
  display: flex; gap: 10px;
  background: #fafcff;
}
.cert-btn {
  flex: 1; padding: 10px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; transition: all 0.25s; border: none; text-decoration: none;
}
.cert-btn.primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--green));
  color: #fff;
}
.cert-btn.primary:hover { opacity: 0.9; transform: translateY(-1px); }
.cert-btn.secondary {
  background: var(--gray-bg); color: var(--text-dark);
  border: 2px solid #e4e9f0;
}
.cert-btn.secondary:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

/* REGISTRATION INFO TABLE */
.reg-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.reg-table th {
  background: var(--blue-bar); color: #fff;
  padding: 16px 22px; font-size: 13.5px; font-weight: 700;
  text-align: left;
}
.reg-table td {
  padding: 15px 22px; font-size: 14px;
  border-bottom: 1px solid #f0f4fc;
  vertical-align: middle;
}
.reg-table tr:last-child td { border-bottom: none; }
.reg-table tr:nth-child(even) td { background: #fafcff; }
.reg-table .badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700;
}
.badge-active { background: #e8f5e9; color: #2e7d32; }
.badge-valid { background: #e3f2fd; color: #1565c0; }
.badge-pending { background: #fff8e1; color: #e65100; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.lightbox.active { display: flex; }
.lb-inner {
  background: #fff; border-radius: 18px;
  max-width: 900px; width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}
.lb-header {
  padding: 20px 28px; background: var(--blue-bar);
  display: flex; align-items: center; justify-content: space-between;
}
.lb-header h3 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.lb-header p { color: rgba(255,255,255,0.7); font-size: 12.5px; margin-top: 3px; }
.lb-close {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.lb-close:hover { background: rgba(255,255,255,0.3); }
.lb-body {
  flex: 1; overflow: auto;
  display: flex; align-items: center; justify-content: center;
  background: #111; padding: 20px;
}
.lb-body img {
  max-width: 100%; max-height: 68vh;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lb-body iframe {
  width: 100%; height: 68vh; border: none; border-radius: 8px;
}
.lb-footer {
  padding: 16px 28px; background: #fafcff;
  border-top: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.lb-nav { display: flex; gap: 10px; }
.lb-nav-btn {
  padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  border: 2px solid #e4e9f0; background: #fff; color: var(--text-dark);
  transition: all 0.2s;
}
.lb-nav-btn:hover { border-color: var(--blue-primary); color: var(--blue-primary); }
.lb-dl-btn {
  padding: 10px 24px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--blue-primary), var(--green));
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.25s; text-decoration: none;
}
.lb-dl-btn:hover { opacity: 0.9; }

/* TIMELINE (Compliance) */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: '';
  position: absolute; left: 14px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--blue-primary), var(--green));
}
.tl-item { position: relative; margin-bottom: 36px; }
.tl-dot {
  position: absolute; left: -36px; top: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; font-weight: 800;
  box-shadow: 0 2px 10px rgba(21,101,192,0.3);
}
.tl-dot.blue { background: var(--blue-primary); }
.tl-dot.green { background: var(--green); }
.tl-dot.gold { background: var(--gold-dark); }
.tl-content {
  background: #fff; border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: 0 2px 16px rgba(21,101,192,0.08);
  border-left: 3px solid var(--blue-primary);
}
.tl-content.g { border-left-color: var(--green); }
.tl-content.o { border-left-color: var(--gold-dark); }
.tl-date { font-size: 12px; font-weight: 700; color: var(--blue-primary); letter-spacing: 0.5px; margin-bottom: 6px; text-transform: uppercase; }
.tl-content h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.tl-content p { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }

/* TWO-COL LAYOUT */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* TRUST BADGES */
.trust-badges-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-bottom: 60px; }
.trust-badge {
  background: #fff; border-radius: var(--radius);
  padding: 32px 20px; text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #e8eef8;
  transition: all 0.3s;
}
.trust-badge:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-pale); }
.tb-icon {
  width: 68px; height: 68px; border-radius: 18px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.tb-icon.b1 { background: linear-gradient(135deg,#e3f2fd,#bbdefb); color: var(--blue-primary); }
.tb-icon.b2 { background: linear-gradient(135deg,#e8f5e9,#c8e6c9); color: var(--green); }
.tb-icon.b3 { background: linear-gradient(135deg,#fff8e1,#ffe082); color: var(--gold-dark); }
.tb-icon.b4 { background: linear-gradient(135deg,#fce4ec,#f48fb1); color: #c2185b; }
.trust-badge h4 { font-size: 1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.trust-badge p { font-size: 13px; color: var(--text-mid); line-height: 1.65; }

/* CONTACT STRIP */
.doc-contact-strip {
  background: linear-gradient(135deg, var(--blue-bar) 0%, #1a3a6e 100%);
  padding: 56px 28px;
  text-align: center;
}
.dcs-inner { max-width: 700px; margin: 0 auto; }
.dcs-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 16px;
}
.dcs-inner p { color: rgba(255,255,255,0.82); font-size: 1rem; line-height: 1.75; margin-bottom: 30px; }
.dcs-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .cert-grid { grid-template-columns: repeat(2,1fr); }
  .trust-badges-row { grid-template-columns: repeat(2,1fr); }
  .ts-inner { grid-template-columns: repeat(2,1fr); }
  .two-col-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .doc-hero h1 { font-size: 2rem; }
  .cert-grid { grid-template-columns: 1fr; }
  .trust-badges-row { grid-template-columns: 1fr 1fr; }
  .ts-inner { grid-template-columns: repeat(2,1fr); }
}