:root {
  --navy: #112a3e;
  --navy2: #193b50;
  --teal: #247b76;
  --gold: #c69a5b;
  --cream: #f7f5f0;
  --text: #233441;
  --muted: #62717a;
  --white: #ffffff;
  --border: #e5e9e8;
  --success: #198754;
  --error: #dc3545;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

.topbar {
  background: var(--navy);
  color: #e8f1f2;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 0;
  text-align: center;
}

.nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 3px 20px rgba(17, 42, 62, 0.06);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--navy);
  font-size: 20px;
}

.brand-mark {
  height: 39px;
  width: 39px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-cta, .nav-login, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 13px;
  transition: .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.nav-cta, .nav-login, .btn-primary {
  background: var(--teal);
  color: #fff;
}

.nav-cta:hover, .nav-login:hover, .btn-primary:hover {
  background: #1c6662;
  color: #fff;
}
}

.btn-outline {
  border: 1px solid #b4c3c4;
  color: var(--navy);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
}

.hero {
  background: linear-gradient(110deg, #102b3e 0%, #173c4c 62%, #24645f 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: 50px;
  min-height: 510px;
  padding: 75px 0;
}

.eyebrow {
  color: #cda76c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.13;
  letter-spacing: -1.5px;
  margin: 0 0 15px;
}

.hero h1 span {
  color: #dfbb81;
}

.hero .subtitle {
  font-size: 20px;
  color: #e1e9e9;
  margin: 0 0 20px;
}

.hero .intro {
  max-width: 620px;
  color: #c7d8da;
  font-size: 15px;
  margin-bottom: 29px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  background: transparent;
  color: #fff;
  border-color: #77949d;
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #dfbb81;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.portrait {
  width: min(320px, 100%);
  aspect-ratio: 4/4.7;
  border-radius: 160px 160px 14px 14px;
  border: 8px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #356f73, #18374b);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 25px 25px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait svg {
  width: 65%;
  opacity: .65;
}

.portrait-note {
  position: absolute;
  bottom: 14px;
  left: -24px;
  background: #fff;
  color: var(--navy);
  padding: 13px 18px;
  border-radius: 6px;
  box-shadow: 0 10px 35px rgba(7, 29, 43, 0.25);
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: 85px 0;
}

.section-white {
  background: #fff;
}

.section-head {
  max-width: 760px;
  margin-bottom: 35px;
}

.section-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.2;
  margin: 6px 0 15px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--teal);
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 50px;
  align-items: start;
}

.about-copy p {
  margin-top: 0;
  color: #485c65;
}

.fact-card {
  background: #edf4f2;
  padding: 28px;
  border-radius: 10px;
  border-left: 4px solid var(--teal);
}

.fact-card h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 15px;
}

.fact-card div {
  padding: 12px 0;
  border-bottom: 1px solid #d5e2df;
  font-size: 14px;
}

.fact-card div:last-child {
  border: 0;
}

.fact-card strong {
  display: block;
  color: var(--navy);
}

.research-card {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 42px;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}

.research-card:after {
  content: '“';
  font-family: Georgia, serif;
  position: absolute;
  right: 22px;
  top: -45px;
  font-size: 220px;
  color: rgba(255, 255, 255, 0.04);
}

.research-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 35px);
  line-height: 1.35;
  max-width: 900px;
  margin: 12px 0 20px;
}

.research-card p {
  color: #d2e1e4;
  max-width: 900px;
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tag {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 12px;
  color: #e7f0ef;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.interest {
  background: #fff;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(16, 43, 62, 0.02);
  transition: transform .2s ease, box-shadow .2s ease;
}

.interest:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 43, 62, 0.08);
}

.interest .number {
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--gold);
}

.interest h3 {
  color: var(--navy);
  font-size: 18px;
  margin: 10px 0;
}

.interest p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.publication-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.publication {
  background: #f7faf9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  gap: 22px;
  align-items: start;
}

.pub-icon {
  background: #dcece8;
  color: var(--teal);
  border-radius: 9px;
  padding: 15px;
  font-size: 26px;
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 58px;
}

.pub-content {
  flex: 1;
}

.publication h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.publication p {
  margin: 0;
  color: var(--muted);
}

.pub-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  background: #dcece8;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.notice {
  font-size: 13px;
  color: #64747a;
  margin-top: 18px;
  font-style: italic;
}

.pub-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}
.pub-link:hover {
  text-decoration: underline;
}

/* Certificates Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(16, 43, 62, 0.03);
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(16, 43, 62, 0.08);
}

.cert-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cert-icon-box {
  width: 44px;
  height: 44px;
  background: #eef5f4;
  color: var(--teal);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cert-meta {
  flex: 1;
}

.cert-issuer {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--teal);
}

.cert-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.cert-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.3;
}

.cert-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}

.cert-preview {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 180px;
  background: #fbfbfb;
}

.cert-preview img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.cert-preview img:hover {
  transform: scale(1.03);
}

.cert-footer {
  padding-top: 14px;
  border-top: 1px solid #f0f3f3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-id {
  font-size: 12px;
  color: var(--muted);
}

.cert-id code {
  background: #edf3f2;
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.cert-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cert-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  transition: color .15s;
}

.cert-link:hover {
  color: #175a56;
  text-decoration: underline;
}

.cert-link.btn-pdf {
  background: #eef5f4;
  padding: 6px 12px;
  border-radius: 5px;
  color: var(--teal);
  text-decoration: none;
}
.cert-link.btn-pdf:hover {
  background: #dbeae7;
  text-decoration: none;
}

.cert-link.verify {
  color: var(--gold);
}
.cert-link.verify:hover {
  color: #a47631;
}

.cert-preview a {
  display: block;
  position: relative;
}

.cert-zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(17, 42, 62, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
}

/* Certificate Lightbox Modal */
.cert-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cert-modal.active {
  display: flex;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 32, 48, 0.82);
  backdrop-filter: blur(4px);
}

.cert-modal-dialog {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 12px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: certModalPop .2s ease-out;
}

@keyframes certModalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.cert-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(17, 42, 62, 0.7);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background .15s;
}
.cert-modal-close:hover {
  background: var(--navy);
}

.cert-modal-body {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.cert-modal-body img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: #112a3e0a;
}

.cert-modal-caption {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.cert-modal-caption span {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

.contact {
  background: linear-gradient(110deg, #102b3e, #1d4a51);
  color: white;
}

.contact .section-head h2 {
  color: #fff;
}

.contact .section-head p {
  color: #d1e1e2;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.contact-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-box {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  padding: 26px;
}

.contact-box h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.contact-box p {
  color: #d2e0e1;
  margin: 0 0 16px;
  font-size: 14px;
}

.contact-box .btn-outline {
  background: #fff;
  color: var(--navy);
}
.contact-box .btn-outline:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Contact Form */
.contact-form-card {
  background: #ffffff;
  color: var(--text);
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.contact-form-card h3 {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  font-size: 24px;
}

.contact-form-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccd6d6;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s;
  background: #fff;
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(36, 123, 118, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  display: none;
}
.form-alert.success {
  display: block;
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}
.form-alert.error {
  display: block;
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.footer {
  background: #0b2030;
  color: #a7bdc4;
  padding: 23px 0;
  text-align: center;
  font-size: 12px;
}

.footer strong {
  color: #fff;
}

.footer a {
  color: #dfbb81;
}

#menu-toggle {
  display: none;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 65px 0;
  }
  .hero-art {
    display: none;
  }
  .about-grid, .contact-layout {
    grid-template-columns: 1fr;
  }
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    gap: 15px;
  }
  .nav-links a {
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, 1120px);
  }
  .nav-inner {
    min-height: 68px;
  }
  .brand {
    font-size: 17px;
  }
  .menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: #fff;
    padding: 20px 24px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 14px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero .subtitle {
    font-size: 17px;
  }
  .section {
    padding: 65px 0;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .research-card {
    padding: 26px;
  }
  .publication {
    flex-direction: column;
  }
  .topbar {
    font-size: 10px;
  }
}
