/**
 * EduZMS Shared System CSS
 * Synced from _shared/system.css — do not edit locally.
 * Load order: Tailwind CDN → system.css → styles.css
 */

:root {
  --color-accent: #3b82f6;
}

/* Skip to content — visible on focus only (required by shared header) */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid #334155;
  border-radius: 0 0 0.25rem 0;
  transform: translateY(-100%);
  transition: transform 0.15s ease-out;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Subtle infrastructure-style background texture (shared across eduzms.com, exams, aielts) */
.bg-blueprint-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Shared micro-tokens to prevent drift */
.card-shell {
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.6);
}

.card-shell-soft {
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.4);
}

.section-py {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 0.5rem;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.btn-secondary:hover {
  border-color: #64748b;
  background: #1e293b;
  color: #f8fafc;
}

.nav-link {
  color: #94a3b8;
  transition: color 0.15s;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.25rem;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link-active {
  color: #ffffff;
  border-bottom: 2px solid #3b82f6;
}

/* ================================
   Credentials - Stable Cert Thumbs
   ================================= */

.cert-thumb {
  height: 9rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .cert-thumb {
    height: 10rem;
  }
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================================
   Credentials - profile card accent bars (no Tailwind)
   ========================================= */

/* mark the profile cards */
.cred-profile-card {
  position: relative;
  overflow: hidden;
}

/* accent bar base */
.cred-profile-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  z-index: 5;               /* ensure it sits above background */
  opacity: 0.9;
}

/* specific colors */
.cred-profile-james::before { background: #38bdf8; }   /* sky-ish */
.cred-profile-anna::before  { background: #34d399; }   /* emerald-ish */

/* ensure profile cards can stretch equally on desktop */
@media (min-width: 768px) {
  .cred-person { align-self: start; }
  .cred-profile-card { height: auto; }
}

/* Credentials - portrait framing (taller, no head chop) */
.cred-portrait {
  width: 112px;
  height: 136px;         /* taller than wide */
  flex: 0 0 112px;
  overflow: hidden;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.04);
}

.cred-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* keep nice fill */
  object-position: 50% 15%; /* bias toward top so heads stay visible */
  display: block;
}

/* =========================================
   Credentials - brute-force layout (no Tailwind reliance)
   ========================================= */

.cred-people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cred-people-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.cred-person {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* Heading between profile + certs */
.cred-subhead {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* The cert grid MUST be nested per-person */
.cred-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Compact cert card: removes the "full width list" feel */
.cred-cert-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

/* Your stable thumb */
.cert-thumb {
  height: 9rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .cert-thumb { height: 10rem; }
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
