/* Shared CSS for PrepForCerts Static Pages */
/* Self-hosted Inter font — eliminates render-blocking Google Fonts round-trips */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-medium.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-semibold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-bold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --foreground: 222 47% 11%;
  --muted-foreground: 215 16% 47%;
  --border: 220 14% 88%;
  --radius: 0.75rem;
  --link: 217 91% 60%;
  --stat: 215 25% 27%;
  --bullet: 215 16% 47%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: linear-gradient(135deg, hsl(210 40% 98%) 0%, hsl(220 30% 96%) 100%);
  min-height: 100vh;
}

/* Navigation */
nav, .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: hsl(0 0% 100% / 0.7);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid hsl(215 20% 88% / 0.5);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header (alternative nav style) */
header {
  background: hsl(0 0% 100% / 0.7);
  backdrop-filter: blur(24px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(215 20% 88% / 0.5);
}

header nav {
  position: static;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  padding: 0;
}

/* Breadcrumb */
.breadcrumb {
  background: hsl(0 0% 100% / 0.5);
  padding: 15px 0;
  border-bottom: 1px solid hsl(220 14% 88% / 0.5);
}

.breadcrumb-list {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb-list a {
  color: hsl(var(--link));
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: hsl(0 0% 100% / 0.5);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.hero p, .subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: #0f172a;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 14px hsl(222 47% 11% / 0.25);
}

/* Main Content */
main, .content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

main.content {
  max-width: 900px;
}

.content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 2rem 0 1rem;
}

.content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 1.5rem 0 0.75rem;
}

.content p {
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content ul, .content ol {
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
  margin: 1rem 0 1rem 2rem;
}

.content li {
  margin-bottom: 0.5rem;
}

section p {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Stats */
.stats {
  display: flex;
  gap: 1.25rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 1rem 1.5rem;
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius);
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08), inset 0 1px 0 hsl(0 0% 100% / 0.9);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--stat));
}

.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
}

/* Glass Card Elements */
.feature, .features > div {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08), inset 0 1px 0 hsl(0 0% 100% / 0.9);
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.feature p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0;
}

/* Topics Section */
.topics {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08), inset 0 1px 0 hsl(0 0% 100% / 0.9);
  margin: 2.5rem 0;
}

.topics h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.topics ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.topics li {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  padding-left: 1.5rem;
  position: relative;
  margin: 0;
}

.topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: hsl(var(--bullet));
  border-radius: 50%;
}

/* Info Card */
.info-card {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08), inset 0 1px 0 hsl(0 0% 100% / 0.9);
  margin: 2.5rem 0;
}

/* Related Links */
.related-links {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08), inset 0 1px 0 hsl(0 0% 100% / 0.9);
  margin: 2.5rem 0;
}

.related-links h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.related-links ul {
  list-style: none;
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
}

.related-links a {
  color: hsl(var(--link));
  text-decoration: none;
  font-weight: 500;
}

/* Related Links Grid Style */
.related-links.grid-style {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  border: none;
  box-shadow: none;
}

.related-link {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: hsl(var(--foreground));
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.related-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px hsl(0 0% 0% / 0.1);
}

.related-link h4 {
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.related-link p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin: 0;
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
}

.faq-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius);
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08), inset 0 1px 0 hsl(0 0% 100% / 0.9);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--foreground));
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  background: hsl(0 0% 100% / 0.5);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  line-height: 1.7;
}

.faq-item h3 {
  color: hsl(var(--foreground));
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Tip Box */
.tip-box {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  border-left: 4px solid hsl(var(--link));
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08);
}

.tip-box h4 {
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tip-box p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Warning Box */
.warning-box {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  border-left: 4px solid #fb923c;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08);
}

.warning-box h4 {
  color: #ea580c;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.warning-box p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Study Phase */
.study-phase {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08), inset 0 1px 0 hsl(0 0% 100% / 0.9);
}

.study-phase h4 {
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Domain Box / Domain Card */
.domain-box, .domain-card {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.5rem 0;
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08);
}

.domain-box h4, .domain-card h3, .domain-card h4 {
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.domain-box p, .domain-card p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Domain Card with border-left */
.domain-card {
  border-left: 4px solid hsl(var(--link));
  padding: 1.25rem;
  margin: 1rem 0;
}

/* Command Box */
.command-box {
  background: #0f172a;
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.5rem 0;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.command-box code {
  color: #7ee787;
}

/* Step Card */
.step-card {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08), inset 0 1px 0 hsl(0 0% 100% / 0.9);
}

.step-card h3 {
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Timeline */
.timeline-content {
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08), inset 0 1px 0 hsl(0 0% 100% / 0.9);
}

/* CTA Section */
.cta-section {
  background: hsl(0 0% 100% / 0.7);
  backdrop-filter: blur(16px);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: hsl(var(--foreground));
  margin-bottom: 15px;
}

.cta-section p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 20px;
}

/* Internal Links Section */
.internal-links {
  background: hsl(0 0% 100% / 0.5);
  padding: 40px 0;
  border-top: 1px solid hsl(220 14% 88% / 0.5);
}

.internal-links h2 {
  color: hsl(var(--foreground));
  margin-bottom: 20px;
  font-weight: 600;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.links-grid a {
  color: hsl(var(--link));
  text-decoration: none;
  padding: 10px;
  background: hsl(0 0% 100% / 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius);
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05);
  font-weight: 500;
}

/* Footer */
footer, .footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid hsl(220 14% 88% / 0.5);
  text-align: center;
}

footer p, .footer p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

footer a, .footer a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  margin: 0 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
}

/* Content Sections with border-left */
.content h2.bordered {
  border-left: 4px solid hsl(var(--link));
  padding-left: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 50px 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  main, .content {
    padding: 2rem 1rem;
  }
  
  .stats {
    justify-content: center;
  }
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: hsl(0 0% 100% / 0.75);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(220 14% 88%);
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 4px 12px -2px hsl(0 0% 0% / 0.08);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(220 14% 88% / 0.5);
}

.comparison-table th {
  background: hsl(220 14% 96%);
  font-weight: 600;
  color: hsl(var(--foreground));
}

.comparison-table td {
  color: hsl(var(--muted-foreground));
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ============= STANDARDIZED FOOTER STYLES ============= */

/* Full Footer (5-column for main pages) */
.footer {
  background: hsl(0 0% 100% / 0.7);
  backdrop-filter: blur(24px);
  border-top: 1px solid hsl(220 14% 88% / 0.5);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section h4 {
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: hsl(var(--link));
}

.footer-about {
  max-width: 250px;
}

.footer-about p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-email a {
  color: hsl(var(--link));
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid hsl(220 14% 88% / 0.5);
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Compact Footer (for SEO content pages) */
.footer-compact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.footer-compact p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0.5rem 0;
}

.footer-compact a {
  color: hsl(var(--link));
  text-decoration: none;
  margin: 0 0.25rem;
}

.footer-compact a:hover {
  text-decoration: underline;
}

.footer-compact .footer-email {
  justify-content: center;
  margin-top: 0.75rem;
}

/* 3-column footer layout */
.footer-3col {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 1rem;
  }
  
  .footer-3col {
    grid-template-columns: 1fr;
  }
  
  .footer-about {
    grid-column: 1 / -1;
    max-width: none;
  }
}
