:root {
  --accent: #0055B7;      /* UBC secondary blue */
  --accent-dark: #002145; /* UBC blue */
  --text: #212529;
  --muted: #6c757d;
  --border: #e9ecef;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
}

h1, h2, h3, .post-title {
  font-family: 'Roboto Slab', serif;
}

/* Navbar */
#navbar {
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
  font-family: 'Roboto Slab', serif;
  color: var(--accent-dark) !important;
  font-size: 1.15rem;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-left: 0.5rem;
}

.nav-item.active .nav-link,
.nav-link:hover {
  color: var(--accent) !important;
}

.nav-item.active .nav-link {
  border-bottom: 2px solid var(--accent);
}

/* Page content */
.page-content {
  margin-top: 6rem;
  max-width: 880px;
}

.post-title {
  font-size: 2.2rem;
  font-weight: 300;
}

.post-title .font-weight-bold {
  font-weight: 700 !important;
}

.desc,
.post-description {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: -0.4rem;
  margin-bottom: 1.5rem;
}

/* Profile block on home page */
.profile {
  width: 200px;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.profile img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.profile .address,
.profile .social {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.profile .address p {
  margin-bottom: 0.2rem;
}

.contact-icons a {
  color: var(--accent-dark);
  margin: 0 6px;
  font-size: 1.25rem;
  transition: color 0.15s ease;
}

.contact-icons a:hover {
  color: var(--accent);
}

/* Body text */
article p {
  line-height: 1.75;
  font-size: 1.05rem;
}

article a {
  color: var(--accent-dark);
  text-decoration: underline;
}

article a:hover {
  color: var(--accent);
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

article h2,
article h3 {
  margin-top: 2rem;
  font-weight: 500;
  color: var(--accent-dark);
}

article hr {
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

article ul {
  padding-left: 1.2rem;
}

article li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.pub-note {
  color: var(--muted);
  font-size: 0.92rem;
}

/* CV page */
.cv-download-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: var(--accent-dark);
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 500;
  margin-bottom: 2rem;
}

.cv-download-btn:hover {
  background-color: var(--accent);
}

.cv-contact-line {
  color: var(--muted);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.cv-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}

@media (max-width: 700px) {
  .cv-section-grid {
    grid-template-columns: 1fr;
  }
}

.cv-preview {
  width: 100%;
  max-width: 800px;
  height: 80vh;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.cv-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  margin-top: 4rem;
  background-color: #fff;
  border-top: 1px solid var(--border);
  padding: 0.8rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 576px) {
  .profile {
    float: none !important;
    margin: 0 auto 1.5rem;
  }
}
