/* css styles */

/* ============================= */
/* Global button classes         */
/* ============================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  background: #2c3e50;
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px;
  border: 1px solid #2c3e50;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: #1e2d3d;
  color: white !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  background: transparent;
  color: #2c3e50 !important;
  text-decoration: none !important;
  border: 1px solid #2c3e50;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn-outline:hover {
  background: rgba(44, 62, 80, 0.07);
}

/* ============================= */
/* Homepage course cards         */
/* ============================= */

.ae-course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem 0;
}

@media (max-width: 768px) {
  .ae-course-grid { grid-template-columns: 1fr; }
}

.ae-course-card {
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  padding: 1.6rem 1.75rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.ae-course-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #2c3e50;
  opacity: 0.55;
  margin-bottom: 0.4rem;
}

.ae-course-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a252f;
  margin: 0 0 0.65rem 0;
  line-height: 1.3;
}

.ae-course-desc {
  font-size: 0.93rem;
  color: #4b5563;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.55;
}

.ae-course-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ============================= */
/* Homepage instructor strip     */
/* ============================= */

.ae-instructor {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
  margin: 0.5rem 0 2rem 0;
  padding: 1.75rem 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

@media (max-width: 640px) {
  .ae-instructor { grid-template-columns: 1fr; }
}

.ae-instructor-photo {
  width: 100%;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  display: block;
}

.ae-instructor-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  color: #1a252f;
}

.ae-instructor-title {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.ae-instructor-bio {
  font-size: 0.94rem;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

/* ============================= */
/* About page profile header     */
/* ============================= */

.ae-profile-header {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .ae-profile-header { grid-template-columns: 1fr; }
}

.ae-profile-photo {
  width: 100%;
  border-radius: 12px;
  border: 3px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  display: block;
}

@media (max-width: 640px) {
  .ae-profile-photo { max-width: 180px; margin: 0 auto; }
}

.ae-profile-name {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #1a252f;
}

.ae-profile-tagline {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.ae-credential-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ae-credential-pill {
  font-size: 0.79rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* ============================= */
/* Publication list              */
/* ============================= */

.ae-pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ae-pub-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #374151;
}

.ae-pub-list li:last-child {
  border-bottom: none;
}

.ae-pub-authors {
  color: #6b7280;
  font-size: 0.88rem;
  display: block;
  margin-top: 0.2rem;
}

#quarto-header .navbar {
  padding-top: 0.1rem !important;
  padding-bottom: 0.1rem !important;
}

.navbar-brand > img {
  max-height: 40px;   /* try 48–60 */
  height: auto;
  width: auto;
}

/* Center the page footer */
.nav-footer {
  text-align: center;
  width: 100%;
  display: block;
}

/* Optional: center each line inside the footer */
.nav-footer .nav-footer-left,
.nav-footer .nav-footer-center,
.nav-footer .nav-footer-right {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}


/* ============================= */
/* Certificate page styles       */
/* ============================= */

.cert-controls {
  margin-bottom: 2rem;
}

.cert-controls input {
  min-width: 320px;
  padding: 0.6rem 0.75rem;
  margin-right: 0.75rem;
}

.cert-controls button {
  padding: 0.6rem 1rem;
}

.cert-page-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.certificate-box {
  border: 8px solid #1f2937;
  padding: 48px;
  text-align: center;
  background: #fff;
  max-width: 1000px;
  margin: 0 auto;
}

.cert-logo {
  display: block;
  max-width: 260px;
  margin: 0 auto 24px auto;
}

.cert-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.cert-text {
  font-size: 1.2rem;
  color: #4b5563;
  margin: 0.75rem 0;
}

.cert-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0 1.25rem 0;
  color: #111827;
}

.cert-course {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #111827;
}

.cert-footer-line {
  font-size: 1.05rem;
  margin-top: 0.4rem;
  color: #374151;
}


/* ============================= */
/* Print cleanup for certificate */
/* ============================= */

@media print {
  @page {
    size: letter landscape;
    margin: 0.5in;
  }

  body {
    background: white !important;
  }

  /* Hide normal site chrome */
  header,
  footer,
  nav,
  .navbar,
  .nav-footer,
  .sidebar,
  #quarto-sidebar,
  #quarto-margin-sidebar,
  .toc,
  .quarto-title-banner,
  .quarto-search-button,
  .aa-DetachedSearchButton {
    display: none !important;
  }

  /* Hide certificate input controls */
  .cert-controls {
    display: none !important;
  }

  /* Hide likely overlays/badges/widgets */
  iframe,
  [id*="memberstack"],
  [class*="memberstack"],
  [data-memberstack],
  [class*="badge"],
  [id*="badge"] {
    display: none !important;
  }

  main.content,
  .content,
  #quarto-content,
  .page-columns,
  .page-layout-article,
  .page-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #certificate {
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Hide floating widgets (Memberstack dev badge, etc.) */
  *[style*="position: fixed"],
  *[style*="position:fixed"] {
    display: none !important;
  }
}