/* Policy grid + PDF modal + logo sizing */

/* ══════════════ POLICY GRID ══════════════ */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.policy-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.policy-card::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-300));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s ease; border-radius: 3px 0 0 3px;
}
.policy-card:hover::after { transform: scaleY(1); }
.policy-card:hover {
  box-shadow: 0 8px 32px rgba(var(--brand-blue-900-rgb),0.13);
  transform: translateY(-3px);
  border-color: rgba(var(--brand-blue-600-rgb),0.35);
}
.policy-card-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 13px;
}
.policy-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--grad-icon); border: 1px solid var(--brand-blue-200); border-radius: 8px; flex-shrink: 0; }
.policy-icon svg { color: var(--brand-blue-700); display: block; }
.policy-cat {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold);
  background: var(--gold-pale); border: 1px solid rgba(var(--brand-blue-600-rgb),0.22);
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.policy-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem; font-weight: 600; color: var(--navy);
  margin-bottom: 6px; line-height: 1.35; flex: 1;
}
.policy-desc {
  font-size: 0.76rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.5;
}
.policy-footer {
  margin-top: auto; display: flex;
  align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--gray-200);
}
.policy-size { font-size: 0.7rem; color: var(--text-light); font-family: 'DM Mono', monospace; }
.policy-open-btn {
  font-size: 0.76rem; font-weight: 600; color: var(--navy);
  background: var(--gray-100); padding: 5px 12px; border-radius: var(--radius);
  transition: var(--transition); white-space: nowrap;
}
.policy-card:hover .policy-open-btn {
  background: var(--navy); color: var(--white);
}

/* ══════════════ PDF MODAL ══════════════ */
.pdf-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(var(--brand-blue-900-rgb),0.88); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 16px;
}
.pdf-modal.open { display: flex; }
.pdf-modal-inner {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 960px; height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(24px); }
  to { opacity: 1; transform: none; }
}
.pdf-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--navy-dark);
  flex-shrink: 0; gap: 16px;
}
.pdf-modal-title-wrap {
  display: flex; align-items: center; gap: 10px; flex: 1; overflow: hidden;
}
.pdf-modal-icon { font-size: 1.1rem; flex-shrink: 0; }
.pdf-modal-title {
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
  color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdf-modal-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pdf-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius); font-size: 0.78rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  letter-spacing: 0.02em; text-decoration: none; border: none;
  font-family: 'DM Sans', sans-serif;
}
.pdf-newtab { background: var(--brand-blue-600); color: var(--white); }
.pdf-newtab:hover { background: var(--brand-blue-500); }
.pdf-close { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.18); }
.pdf-close:hover { background: rgba(255,255,255,0.2); }
.pdf-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; flex: 1; color: var(--text-light); font-size: 0.88rem;
}
.pdf-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--gray-200); border-top-color: var(--navy);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pdf-frame {
  flex: 1; border: none; width: 100%; background: #f5f5f5;
  display: none;
}
.pdf-frame.loaded { display: block; }

@media (max-width: 900px) {
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .policy-grid { grid-template-columns: 1fr; }
  .pdf-modal { padding: 8px; }
  .pdf-modal-inner { height: 96vh; border-radius: var(--radius); }
  .pdf-modal-title { font-size: 0.8rem; }
  .pdf-action-btn { padding: 6px 10px; font-size: 0.72rem; }
}

/* ── Logo image ── */
.nav-logo-img { height: 160px; width: auto; display: block; }
.footer-logo-wrap-bg { display: inline-block; background: #fff; border-radius: 6px; padding: 1px 2px; margin-bottom: 18px; box-shadow: 0 2px 12px rgba(0,0,0,0.10); }
.footer-logo-img { height: 120px; width: auto; display: block; }

/* ── Grievance Redressal Flow ── */
.grf-wrap { margin-top: 48px; }
.grf-header { text-align: center; margin-bottom: 36px; }
.grf-flow { display: grid; grid-template-columns: 1fr 76px 1fr 76px 1fr; align-items: stretch; }
.grf-step {
  border-radius: var(--radius-lg); padding: 28px 22px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.grf-step::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; border-radius:3px 3px 0 0; }
.grf-step-1::before { background: var(--brand-blue-700); }
.grf-step-2::before { background: var(--brand-blue-500); }
.grf-step-3::before { background: #C0392B; }
.grf-badge { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.grf-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: #fff;
}
.grf-step-1 .grf-num { background: var(--brand-blue-700); }
.grf-step-2 .grf-num { background: var(--brand-blue-500); }
.grf-step-3 .grf-num { background: #C0392B; }
.grf-lbl { font-size: 0.63rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.grf-step-1 .grf-lbl { color: var(--brand-blue-700); }
.grf-step-2 .grf-lbl { color: var(--brand-blue-600); }
.grf-step-3 .grf-lbl { color: #C0392B; }
.grf-title { font-size: 0.92rem; font-weight: 700; color: var(--gray-800); margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--hairline); line-height: 1.35; }
.grf-items { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.grf-item { display: flex; align-items: flex-start; gap: 9px; font-size: 0.8rem; color: var(--text-body); line-height: 1.5; }
.grf-item svg { flex-shrink: 0; margin-top: 2px; color: var(--navy-soft); }
.grf-tl { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 7px; }
.grf-tl-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.76rem; gap: 8px; }
.grf-tl-row span { color: var(--text-light); }
.grf-tl-row strong { color: var(--navy); font-weight: 600; white-space: nowrap; }
.grf-note { margin-top: 18px; padding: 10px 14px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius); font-size: 0.77rem; color: #991B1B; line-height: 1.55; }
.grf-conn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0 4px; }
.grf-conn-lbl { font-size: 0.6rem; font-weight: 700; color: var(--gold); text-align: center; text-transform: uppercase; letter-spacing: 0.06em; }
.grf-conn-sub { font-size: 0.58rem; color: var(--text-muted); text-align: center; }
@media (max-width: 900px) {
  .grf-flow { grid-template-columns: 1fr; }
  .grf-conn { flex-direction: row; padding: 10px 0; gap: 10px; }
  .grf-conn svg { transform: rotate(90deg); }
}
