/* EaSee credentials section — follows the existing section rhythm and theme. */
.ea-credentials {
  --ea-cred-navy: var(--primary, #1b2660);
  --ea-cred-cyan: var(--accent, #10b0ca);
  --ea-cred-muted: #53688d;
  position: relative;
  isolation: isolate;
  background: var(--bg2, #eef2f9);
  color: var(--ink, #1b2660);
  scroll-margin-top: 112px;
}
.ea-credentials * { box-sizing: border-box; }
.ea-credentials-wrap { position: relative; }
/* Use a div for this heading: the site's global header selector is sticky. */
.ea-credentials-head.section-head {
  position: relative;
  top: auto;
  z-index: auto;
  display: block;
  max-width: 880px;
  margin: 0 auto 24px;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}
.ea-credentials-head .eyebrow {
  display: inline-block;
  color: var(--ea-cred-cyan);
  font-family: var(--font, 'Poppins', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.ea-credentials-head h2 {
  margin: 8px 0 10px;
  color: var(--ea-cred-navy);
  font-family: var(--font, 'Poppins', sans-serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}
.ea-credentials-head.in h2 { opacity: 1; transform: translateX(0); }

.ea-credentials-head p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ea-cred-muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
}
.ea-credential-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, .82fr) 1px minmax(0, 1.18fr);
  gap: clamp(24px, 3.3vw, 48px);
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(18px, 2.3vw, 28px);
  border: 1px solid rgba(177, 222, 241, .82);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(29, 58, 105, .07);
  transition: transform .35s ease, box-shadow .35s ease, border-color .3s ease;
}
.ea-credential-card:hover {
  transform: translateY(-3px);
  border-color: #b5e5f4;
  box-shadow: 0 22px 56px rgba(29, 58, 105, .11);
}
.ea-credential-preview-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(12px, 1.8vw, 22px);
  border: 1px solid #e0edf5;
  border-radius: 14px;
  background: #f5f8fd;
}
.ea-credential-preview-frame {
  width: min(100%, 290px);
  padding: 7px;
  border: 1px solid #d7e5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 75, 112, .10);
  transition: transform .35s ease, box-shadow .35s ease;
}
.ea-credential-preview-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(27, 75, 112, .14);
}
.ea-credential-document {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1072 / 1516;
  max-height: 390px;
  object-fit: contain;
  margin-inline: auto;
  background: #fff;
}
.ea-preview-caption { color: #6c7e99; font-size: 11px; letter-spacing: .04em; text-align: center; }
.ea-credential-divider { width: 1px; background: #e0eaf3; }
.ea-credential-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; align-self: center; min-width: 0; padding: 5px 0; }
.ea-credential-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #e5f7fb;
  color: #078ba9;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.ea-credential-tag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ea-credential-content h3 {
  margin: 12px 0 18px;
  color: var(--ea-cred-navy);
  font-family: var(--font, 'Poppins', sans-serif);
  font-size: clamp(22px, 2.15vw, 32px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.ea-credential-meta { display: grid; gap: 11px; width: 100%; margin: 0 0 18px; }
.ea-credential-meta > div { display: grid; grid-template-columns: minmax(105px, .72fr) minmax(0, 1.28fr); gap: 14px; align-items: start; }
.ea-credential-meta dt { color: #405c86; font-size: 13px; font-weight: 650; }
.ea-credential-meta dd { margin: 0; color: #526b90; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.ea-view-certificate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  padding: 14px 20px;
  border: 0;
  border-radius: 11px;
  background: #172f87;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(23, 47, 135, .13);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.ea-view-certificate svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ea-view-certificate:hover { background: #10236d; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(23, 47, 135, .2); }
.ea-view-arrow { margin-left: 3px; font-size: 24px; line-height: 1; transition: transform .2s ease; }
.ea-view-certificate:hover .ea-view-arrow { transform: translateX(4px); }
.ea-view-certificate:focus-visible, .ea-certificate-close:focus-visible { outline: 3px solid var(--ea-cred-cyan); outline-offset: 4px; }

/* Accessible modal PDF viewer; no website download action. */
.ea-no-scroll { overflow: hidden !important; }
.ea-certificate-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: clamp(12px, 3vw, 34px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
.ea-certificate-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.ea-certificate-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(9, 20, 48, .76); cursor: default; }
.ea-certificate-dialog { position: relative; display: flex; flex-direction: column; width: min(100%, 1050px); height: min(90vh, 900px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .7); border-radius: 15px; background: #fff; box-shadow: 0 30px 100px rgba(0, 0, 0, .3); transform: translateY(12px) scale(.99); transition: transform .25s ease; }
.ea-certificate-modal.is-open .ea-certificate-dialog { transform: translateY(0) scale(1); }
.ea-certificate-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid #e6eef5; background: #fbfdff; }
.ea-certificate-modal-head h2 { margin: 0; color: var(--ea-cred-navy); font-size: 16px; font-weight: 600; line-height: 1.4; }
.ea-certificate-close { flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #dbe7ef; border-radius: 50%; background: #fff; color: #23365c; font-size: 27px; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.ea-certificate-close:hover { background: #eaf8fc; transform: rotate(90deg); }
.ea-certificate-viewer { flex: 1; min-height: 0; background: #e9eef4; }
.ea-certificate-viewer iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 900px) {
  .ea-credential-card { grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr); gap: 24px; }
  .ea-credential-divider { display: none; }
  .ea-credential-meta > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .ea-credentials { padding: 36px 0 40px; }
  .ea-credentials-head.section-head { margin-bottom: 28px; }
  .ea-credentials-head .eyebrow { font-size: 10px; letter-spacing: .13em; }
  .ea-credentials-head h2 { font-size: clamp(30px, 8vw, 40px); line-height: 1.12; }
  .ea-credentials-head p { font-size: 15px; }
  .ea-credential-card { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 16px; border-radius: 16px; }
  .ea-credential-preview-area { padding: 15px; }
  .ea-credential-preview-frame { width: min(72%, 280px); }
  .ea-credential-content { padding: 0 2px 3px; }
  .ea-credential-content h3 { margin: 15px 0 20px; font-size: 24px; }
  .ea-credential-meta { gap: 13px; margin-bottom: 22px; }
  .ea-credential-meta > div { grid-template-columns: minmax(100px, .72fr) minmax(0, 1.28fr); gap: 10px; }
  .ea-credential-meta dt { font-size: 12px; }
  .ea-credential-meta dd { font-size: 13px; }
  .ea-view-certificate { min-height: 54px; font-size: 15px; }
  .ea-certificate-modal { padding: 8px; }
  .ea-certificate-dialog { height: 92vh; border-radius: 12px; }
  .ea-certificate-modal-head { padding: 12px; }
  .ea-certificate-modal-head h2 { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ea-credential-card, .ea-credential-preview-frame, .ea-view-certificate, .ea-certificate-modal, .ea-certificate-dialog { animation: none !important; transition: none !important; }
}

/* Keep the credentials section compact enough to read in a standard desktop viewport. */
@media (min-width: 641px) {
  .ea-credentials-head h2 { max-width: 900px; margin-inline: auto; }
  .ea-credential-card { min-height: 0; }
  .ea-credential-preview-area { padding: 14px; }
  .ea-credential-preview-frame { width: min(100%, 280px); }
  .ea-credential-document { max-height: 360px; }
}
@media (max-height: 820px) and (min-width: 641px) {
  .ea-credentials { padding-top: 28px; padding-bottom: 30px; }
  .ea-credentials-head.section-head { margin-bottom: 18px; }
  .ea-credentials-head h2 { font-size: clamp(28px, 3vw, 38px); margin: 6px 0 8px; }
  .ea-credentials-head p { font-size: 15px; line-height: 1.45; }
  .ea-credential-card { padding: 18px 24px; }
  .ea-credential-document { max-height: 315px; }
  .ea-credential-content h3 { font-size: clamp(21px, 2vw, 28px); margin: 10px 0 14px; }
  .ea-credential-meta { gap: 9px; margin-bottom: 14px; }
  .ea-view-certificate { min-height: 46px; }
}
