/* ===== BASE LAYOUT ===== */
body {
  font-family: "Georgia", serif;
  background-color: #f8f6f2;
  color: #222;
  max-width: 900px;
  margin: auto;
  padding: 40px;
  line-height: 1.6;
}

/* ===== HEADINGS ===== */
h1, h2, h3 {
  text-align: center;
  font-weight: normal;
}

h1 {
  letter-spacing: 2px;
  margin-bottom: 5px;
}

h2 {
  margin-top: 40px;
}

/* ===== NAVIGATION ===== */
nav {
  text-align: center;
  margin-bottom: 30px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* ===== GENERAL ELEMENTS ===== */
hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #ccc;
}

p {
  margin-bottom: 15px;
}

/* ===== ENTRY META INFO ===== */
.entry-meta {
  text-align: center;
  font-size: 0.9em;
  color: #555;
}

/* ===== COAT IMAGE ===== */
.coat-img {
  display: block;
  margin: 30px auto;
  max-width: 280px;
}

/* ===== SECTIONS ===== */
.section {
  margin-bottom: 30px;
}

/* ===== REGISTER LIST ===== */
ul {
  list-style: none;
  padding: 0;
}

li {
  margin: 10px 0;
  text-align: center;
}

li a {
  text-decoration: none;
  color: #222;
}

li a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  margin-top: 60px;
  font-size: 0.8em;
  color: #777;
}
.breadcrumbs {
  font-size: 14px;
  margin-bottom: 15px;
  color: #666;
}

.breadcrumbs a {
  color: #444;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}
.nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 16px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
}

.nav-links a:hover {
  text-decoration: underline;
}
.coat-img {
  max-width: 300px;
  display: block;
  margin: 20px auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.coat-img:hover {
  transform: scale(1.05);
}

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.coat-img {
  max-width: 300px;
  height: auto;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  text-align: center;
  text-decoration: none;
  color: #222;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.card h3 {
  margin: 5px 0;
  font-size: 18px;
}

.card p {
  font-size: 14px;
  color: #666;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.search-bar {
  width: 100%;
  padding: 10px;
  margin: 20px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.filter-bar {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.az-filter {
  text-align: center;
  margin: 20px 0;
}

.az-filter button {
  margin: 3px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.az-filter button:hover {
  background: #eaeaea;
}

.az-filter button.active {
  background: #333;
  color: #fff;
  border-color: #333;
}
.certificate-btn {
  text-align: center;
  margin: 15px 0 25px 0;
}

.certificate-btn button {
  padding: 10px 18px;
  font-size: 15px;
  font-family: Georgia, serif;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  
}

.certificate-btn button:hover {
  background: #333;
  color: #fff;
}
.script {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
}

.signature-title {
  font-size: 13px;
  margin-top: 5px;
}
.issue-date {
  margin-top: 25px;
  font-style: italic;
}
.seal-img {
  width: 110px;
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.4));
}

.heading h1 {
  font-size: 30px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.latin {
  font-style: italic;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}
.formal-text {
  margin: 20px auto;
  max-width: 600px;
  font-size: 14px;
  line-height: 1.6;
}
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  color: rgba(0,0,0,0.05);
  pointer-events: none;
  user-select: none;
  font-weight: bold;
}
.corner {
  width: 40px;
  height: 40px;
  border: 2px solid #bfa76a;
  position: absolute;
}

.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }
/* Latin heading */
.heading h1 {
  font-size: 30px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.latin {
  font-style: italic;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* Script signature */
.script {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
}

/* Watermark */
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  color: rgba(0,0,0,0.05);
  pointer-events: none;
  font-weight: bold;
}

/* Corners */
.corner {
  width: 40px;
  height: 40px;
  border: 2px solid #bfa76a;
  position: absolute;
}

.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Seal image */
.seal-img {
  width: 110px;
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.4));
}
.divider {
  width: 120px;
  height: 1px;
  background: #bfa76a;
  margin: 20px auto;
}
.seal-img {
  width: 130px;
  opacity: 0.95;
}
.signature-name {
  font-family: 'Great Vibes', cursive;
  font-size: 30px;
  transform: rotate(-2deg);
}
.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: 22px;
  letter-spacing: 1px;
  color: #3b2f1a;
}
@media print {
  @page {
    size: letter;
    margin: 0.5in;
  }

  body {
    margin: 0;
    background: white;
  }

  .certificate {
    width: 7.5in;
    height: 10in;
    padding: 40px;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .print-btn {
    display: none;
  }
}
.certificate {
  width: 8in;
  min-height: 10.5in;
  margin: auto;
  page-break-inside: avoid;
}
@page {
  size: letter;
  margin: 0.5in;
}

.nav {
  text-align: center;
  margin-bottom: 25px;
  font-size: 14px;
}

.nav a {
  color: #5b3a1a;
  text-decoration: none;
  margin: 0 5px;
}

.nav a:hover {
  text-decoration: underline;
}
