/* =========================================================
CPIP | PROTECTED OFFICIAL ENDORSEMENT CSS STYLESHEET
========================================================= */

:root {
  --gold: #c5a021;
  --dark-gold: #8e6d13;
  --black: #0a0a0a;
  --white: #ffffff;
  --text-gray: #bbbbbb;
}

body {
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
}

#certificate-area {
  width: 297mm;
  height: 210mm;
  background: var(--black);
  position: relative;
  border: 5px solid var(--gold);
  color: var(--white);
  box-sizing: border-box;
  overflow: hidden;

  padding: 60px 0;
}

.certificate-border {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  right: 15px;
  border: 2px solid var(--dark-gold);
  outline: 10px solid var(--gold);
  outline-offset: -30px;
  pointer-events: none;
}

.inner-content {
  text-align: center;
  z-index: 10;
  width: 80%;
  margin: 0 auto;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.header-logo {
  font-family: "Cinzel", serif;
  font-size: 3.5rem;
  letter-spacing: 12px;
  color: var(--gold);
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
}

.sub-header {
  font-family: "Cinzel", serif;
  letter-spacing: 4px;
  font-size: 0.9rem;
  color: var(--white);
  border-bottom: 1.5px solid var(--dark-gold);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.doctor-name {
  font-family: "Cinzel", serif;
  font-size: 3.5rem;
  color: var(--gold);
  margin: 5px 0;
}

.doctor-affiliation {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  color: var(--text-gray);
  font-style: italic;
  margin-bottom: 10px;
}

.model-badge {
  font-size: 0.8rem;
  color: var(--white);
  background: rgba(197, 160, 33, 0.15);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid var(--dark-gold);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--white);
  margin: 10px 0;
  font-style: italic;
}

.description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

.sig-box {
  width: 280px;
  border-top: 2px solid var(--gold);
  padding-top: 15px;
}

.sig-name {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 4px;
}

.sig-title {
  font-size: 0.75rem;
  color: #fdfdfd;
  font-weight: 600;
  text-transform: uppercase;
}

.badge {
  width: 110px;
  height: 110px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--black);
  font-weight: 900;
  font-family: "Cinzel";
  font-size: 0.7rem;
}

.copyright-tag {
  font-size: 0.6rem;
  color: #555;
  font-family: Arial;
  position: absolute;
  bottom: -40px;
  width: 100%;
}

.no-print {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}
.download-btn {
  background: var(--gold);
  color: var(--black);
  padding: 16px 40px;
  border: none;
  font-weight: 900;
  cursor: pointer;
  border-radius: 50px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
SEMANTIC STRUCTURE WRAPPERS
========================================================================== */

.semantic-structure {
  display: contents;
}

@media screen and (max-width: 1200px) {
  body {
    min-height: 100svh;
    padding: 16px 12px 110px;
    align-items: flex-start;
    overflow-x: hidden;
  }

  #certificate-area {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 34px 18px;
    border-width: 3px;
    overflow: visible;
  }

  .certificate-border {
    inset: 9px;
    outline-width: 5px;
    outline-offset: -16px;
  }

  .inner-content {
    width: 88%;
    height: auto;
    gap: 20px;
  }

  .header-logo,
  .doctor-name {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
    letter-spacing: 4px;
    overflow-wrap: anywhere;
  }

  .sub-header {
    font-size: 0.68rem;
    letter-spacing: 2px;
  }

  .description {
    font-size: 0.78rem;
  }

  .footer-info {
    padding: 0;
    gap: 14px;
    flex-direction: column;
    align-items: center;
  }

  .sig-box {
    width: 100%;
  }

  .badge {
    width: 82px;
    height: 82px;
  }

  .copyright-tag {
    position: static;
  }

  .no-print {
    right: 50%;
    bottom: 18px;
    transform: translateX(50%);
  }

  .download-btn {
    padding: 13px 22px;
    white-space: nowrap;
  }
}
.endorsement-label {
  color: #999;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
