@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

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

:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation (compact) ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== Section ===== */
.section {
  padding: 4rem 0;
}

.border-top {
  border-top: 1px solid var(--border);
}

/* ===== Hero (compact - no illustration, no grid) ===== */
.hero {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--foreground);
}

.icon {
  width: 1rem;
  height: 1rem;
}

/* ===== Typography ===== */
.title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.description {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 680px;
}

/* ===== Diplomas - side by side grid ===== */
.diplomas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.diploma-card {
  padding: 2rem;
  border: 2px solid var(--border);
}

.diploma-card.featured {
  border-color: var(--foreground);
}

.diploma-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.diploma-icon {
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diploma-icon.bg-primary {
  background-color: var(--foreground);
  color: var(--background);
}

.diploma-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.diploma-info {
  flex: 1;
  min-width: 200px;
}

.diploma-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.diploma-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.badge-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.badge {
  padding: 0.4rem 1.25rem;
  border: 2px solid var(--foreground);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-primary {
  background-color: var(--foreground);
  color: var(--background);
}

.badge-meta {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.diploma-desc {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.diploma-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.detail-card {
  padding: 1.25rem;
  border: 2px solid var(--border);
}

.detail-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.detail-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ===== Checklist ===== */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.checklist li::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--foreground);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.125rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E")
    center / 70% no-repeat;
}

/* ===== Certifications with PDF viewer ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  border: 2px solid var(--foreground);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cert-card-header {
  padding: 1.5rem;
}

.cert-info {
  display: flex;
  flex-direction: column;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cert-org {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.cert-desc {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.cert-year {
  font-size: 0.8rem;
  font-weight: 700;
}

/* Button to open PDF in new window */
.btn-open-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--foreground);
  color: var(--background);
  border: 2px solid var(--foreground);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
  margin-top: 0.75rem;
}

.btn-open-pdf:hover {
  background-color: var(--background);
  color: var(--foreground);
}

.btn-open-pdf svg {
  width: 1rem;
  height: 1rem;
}

/* PDF Viewer area */
.pdf-viewer {
  flex: 1;
  min-height: 360px;
  border-top: 1px solid var(--border);
  background-color: var(--muted);
  position: relative;
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
}

.pdf-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.pdf-placeholder svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.4;
}

.pdf-placeholder span {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .diploma-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }

  .nav-container {
    padding: 0 3rem;
  }
}

@media (max-width: 1023px) {
  .diplomas-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 3.25rem;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .menu-btn {
    display: block;
  }

  .title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
