/* ================================================================
   GLOBALS.CSS — Nilesh Kumar Sahu Portfolio
   Color scheme: Navy + Gold accent on warm cream
   All font sizes increased by +2px from original
   ================================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --navy: #123b7a;
  --navy-dark: #0c2a58;
  --navy-deeper: #081c3a;
  --navy-mid: #1e50a0;
  --accent: #c8a96e;
  --accent-light: #e8d5b0;
  --text: #1a2540;
  --text-muted: #4a5578;
  --text-light: #7a86a8;
  --bg: #f8f7f4;
  --bg-white: #ffffff;
  --bg-panel: #f0eeea;
  --border: #ddd9d0;
  --border-light: #eae7e0;
  --tag-bg: #e8eef8;
  --tag-color: #1a4080;

  --shadow-sm: 0 1px 2px rgba(18, 59, 122, 0.04);
  --shadow-md: 0 4px 12px rgba(18, 59, 122, 0.06);
  --shadow-lg: 0 8px 32px rgba(18, 59, 122, 0.08);

  --transition-colors: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  --transition-all: all 0.2s ease;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5rem;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  /* was 15 */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: 'Crimson Pro', 'Georgia', serif;
  color: var(--navy-deeper);
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-colors);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  /* was 14 */
  font-weight: 500;
}

.skip-link:focus {
  left: 16px;
}

/* ══════════════════════════════════════════
   TOP NAV — STICKY FIX
   Applied to the #top-nav wrapper so it
   stays fixed at the top while scrolling
   ══════════════════════════════════════════ */
#top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav {
  border-bottom: 1px solid var(--border-light);
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.top-nav__inner {
  max-width: 72rem;
  margin: 0 auto;
  overflow-x: auto;
  padding: 0 8px;
}

.top-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  gap: 1px;
  white-space: nowrap;
}

.top-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 15px;
  /* was 13 */
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted);
  border-radius: 6px;
  transition: var(--transition-all);
  letter-spacing: 0.02em;
}

.top-nav__link:hover {
  color: var(--navy);
  background: var(--tag-bg);
}

.top-nav__link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-nav__inner::-webkit-scrollbar {
  display: none;
}

.top-nav__inner {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── MAIN LAYOUT ── */
.page-layout {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .page-layout {
    flex-direction: row;
  }
}

/* ── SIDEBAR ── */
.sidebar {
  border-bottom: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg);
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 54px;
    width: 20rem;
    height: calc(100vh - 54px);
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
    padding: 2rem 2rem 2rem;
    align-items: flex-start;
    text-align: left;
  }
}

.sidebar__photo {
  width: 180px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
}

@media (min-width: 1024px) {
  .sidebar__photo {
    width: 200px;
  }
}

.sidebar__photo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #dde8f8 0%, #c4d6f0 100%);
  font-family: 'Crimson Pro', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--navy);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
  .sidebar__photo-placeholder {
    width: 200px;
    height: 200px;
  }
}

.sidebar__name {
  margin-top: 1.25rem;
  font-size: 1.375rem;
  /* was 1.25rem */
  font-weight: 600;
  font-family: 'Crimson Pro', serif;
  color: var(--navy-deeper);
  letter-spacing: 0.01em;
}

.sidebar__role {
  margin-top: 4px;
  font-size: 15px;
  /* was 13 */
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.sidebar__affiliation {
  margin-top: 4px;
  font-size: 14.5px;
  /* was 12.5 */
  color: var(--text-muted);
}

.sidebar__affiliation a {
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.sidebar__affiliation a:hover {
  border-color: var(--navy);
}

.sidebar__location {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  /* was 12 */
  color: var(--text-light);
}

.sidebar__location svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* ── Social icon row (logo buttons like reference) ── */
.sidebar__socials {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .sidebar__socials {
    justify-content: flex-start;
  }
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  transition: var(--transition-all);
}

.social-icon-btn:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--tag-bg);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ── CV Button ── */
.sidebar__cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
  padding: 10px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  /* was 13 */
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border-radius: 6px;
  border: 1px solid var(--navy);
  transition: var(--transition-all);
  letter-spacing: 0.02em;
  width: 100%;
}

@media (min-width: 1024px) {
  .sidebar__cv-btn {
    width: auto;
  }
}

.sidebar__cv-btn:hover {
  background: var(--navy-dark);
}

.sidebar__cv-btn svg {
  width: 14px;
  height: 14px;
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  min-width: 0;
}

/* ── SECTION ── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.section+.section {
  border-top: 1px solid var(--border-light);
}

.section__heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section__title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.875rem;
  /* was 1.75rem */
  font-weight: 400;
  color: var(--navy-deeper);
  letter-spacing: -0.01em;
}

.section__count {
  font-size: 14px;
  /* was 12 */
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
}

/* ── LINK UNDERLINE UTILITY ── */
.link-underline {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.link-underline:hover {
  border-color: var(--navy);
}

/* ── ABOUT ── */
.about__eyebrow {
  font-size: 14px;
  /* was 12 */
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about__tagline {
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-family: 'Crimson Pro', serif;
  font-size: 1.225rem;
  /* was 1.1rem */
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
}

.about__bio {
  margin-top: 1.5rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.about__bio p+p {
  margin-top: 1rem;
}

.about__bio strong {
  color: var(--text);
  font-weight: 500;
}

.about__interests-title {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 13px;
  /* was 11 */
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
}

.about__interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.interest-tag {
  font-size: 14px;
  /* was 12 */
  font-weight: 400;
  color: var(--tag-color);
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #c8d8f0;
  letter-spacing: 0.02em;
  font-family: 'DM Sans', sans-serif;
}

/* ── NEWS ── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: baseline;
}

.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  /* was 11 */
  color: var(--text-light);
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.news-text {
  font-size: 16px;
  /* was 14 */
  color: var(--text-muted);
  line-height: 1.65;
}

.news-text strong {
  color: var(--text);
  font-weight: 500;
}

.news-text em {
  font-style: italic;
}

.news-badge {
  display: inline-block;
  font-size: 12px;
  /* was 10 */
  font-weight: 500;
  color: var(--accent);
  background: #fdf6ec;
  border: 1px solid var(--accent-light);
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── PUBLICATIONS ── */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-venue-badge {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
}

/* Journal = teal/green */
.pub-venue-badge--journal {
  color: #0f766e;
  background: #e6f7f5;
  border: 1px solid #99e0d6;
}

/* Conference = blue/navy */
.pub-venue-badge--conference {
  color: #1e50a0;
  background: #e8eef8;
  border: 1px solid #c8d8f0;
}

/* ArXiv = purple */
.pub-venue-badge--arxiv {
  color: #7c3aed;
  background: #f3eeff;
  border: 1px solid #d4bfff;
}

/* Paper link (with icon, like reference) */
.pub-paper-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #c8d8f0;
  line-height: 1.5;
  transition: var(--transition-all);
}

.pub-paper-link:hover {
  background: #d8e4f4;
  border-color: var(--navy-mid);
}

.pub-paper-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.pub-doi {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-light);
  margin-left: 4px;
}

.pub-title {
  font-size: 16.5px;
  /* was 14.5 */
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 5px;
}

.pub-title a {
  color: inherit;
}

.pub-title a:hover {
  color: var(--navy);
}

.pub-authors {
  font-size: 15px;
  /* was 13 */
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.pub-authors strong {
  font-weight: 500;
  color: var(--navy-dark);
}

.pub-venue-text {
  font-size: 15px;
  /* was 13 */
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 8px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.pub-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  /* was 12 */
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0;
  cursor: pointer;
}

.pub-link-btn:hover {
  border-bottom-color: var(--navy);
}

.pub-link-btn svg {
  width: 12px;
  height: 12px;
}

/* Abstract toggle */
.pub-abstract-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #c8d8f0;
  cursor: pointer;
  line-height: 1.5;
  transition: var(--transition-all);
  letter-spacing: 0.02em;
}

.pub-abstract-toggle:hover {
  background: #d8e4f4;
  border-color: var(--navy-mid);
}

.pub-abstract-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.pub-abstract-toggle.open svg {
  transform: rotate(180deg);
}

.pub-abstract {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.pub-abstract.open {
  max-height: 500px;
  opacity: 1;
}

.pub-abstract__inner {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border-radius: 8px;
  border-left: 3px solid var(--navy);
  font-size: 15.5px;
  /* was 13.5 */
  line-height: 1.7;
  color: var(--text-muted);
}



/* Year group */
.year-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  /* was 12 */
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.year-label:first-child {
  margin-top: 0;
}

.year-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ── TALKS ── */
.talk-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.talk-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: baseline;
}

.talk-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  /* was 11 */
  color: var(--text-light);
  font-weight: 400;
}

.talk-text {
  font-size: 16px;
  /* was 14 */
  color: var(--text-muted);
  line-height: 1.6;
}

.talk-text strong {
  color: var(--text);
  font-weight: 500;
}

.talk-conf {
  color: var(--navy);
  font-style: italic;
}

.talk-award {
  display: inline-block;
  color: var(--accent);
  font-size: 15px;
  /* was 13 */
  margin-left: 4px;
}

/* ── EXPERIENCE ── */
.exp-timeline {
  border-left: 2px solid var(--border);
  padding-left: 24px;
}

.exp-item {
  position: relative;
  margin-bottom: 2rem;
}

.exp-item:last-child {
  margin-bottom: 0;
}

.exp-dot {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--bg);
}

.exp-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (min-width: 640px) {
  .exp-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

.exp-title {
  font-size: 17px;
  /* was 15 */
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}

.exp-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  /* was 11 */
  color: var(--text-light);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.exp-org {
  font-size: 15.5px;
  /* was 13.5 */
  color: var(--navy);
}

.exp-org a {
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.exp-org a:hover {
  border-bottom-color: var(--navy);
}

.exp-advisor {
  font-size: 15px;
  /* was 13 */
  color: var(--text-light);
}

.exp-bullets {
  margin-top: 8px;
  padding-left: 1.2rem;
  list-style: disc;
}

.exp-bullets li {
  font-size: 15.5px;
  /* was 13.5 */
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3px;
}

/* ── EDUCATION ── */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.edu-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
}

.edu-degree {
  font-size: 17px;
  /* was 15 */
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  margin-bottom: 2px;
}

.edu-inst {
  font-size: 15.5px;
  /* was 13.5 */
  color: var(--navy);
  margin-bottom: 3px;
}

.edu-field {
  font-size: 15px;
  /* was 13 */
  color: var(--text-muted);
}

.edu-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  /* was 11 */
  color: var(--text-light);
  text-align: right;
  letter-spacing: 0.04em;
  padding-top: 3px;
  flex-shrink: 0;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-group-label {
  font-size: 13px;
  /* was 11 */
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 14px;
  /* was 12 */
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition-all);
}

.skill-tag:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--tag-bg);
}

/* ── AWARDS ── */
.awards-sub-heading {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.75rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.award-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.award-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  /* was 11 */
  color: var(--accent);
  font-weight: 400;
}

.award-name {
  font-size: 16px;
  /* was 14 */
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}

.award-detail {
  font-size: 15px;
  /* was 13 */
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── COMMUNITY SERVICE ── */
.service-grid {
  columns: 2;
  gap: 2rem;
}

.service-item {
  font-size: 15.5px;
  /* was 13.5 */
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  break-inside: avoid;
  line-height: 1.55;
}

/* ── BLOG ── */
.blog-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.blog-title {
  font-size: 17px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}

.blog-title a {
  color: inherit;
  transition: color 0.2s;
}

.blog-title a:hover {
  color: var(--navy);
}

.blog-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.blog-tag {
  font-size: 13px;
  color: var(--tag-color);
  background: var(--tag-bg);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid #c8d8f0;
}

.blog-read-more {
  font-size: 14px;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.blog-read-more:hover {
  border-color: var(--navy);
}

/* Blog full page styles */
.blog-post-full {
  max-width: 900px;
  margin: 0 auto;
}

.blog-post-full h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--navy-deeper);
}

.blog-post-full p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.blog-post-full ul,
.blog-post-full ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.blog-post-full li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 4px;
}

.blog-post-full strong {
  color: var(--text);
  font-weight: 500;
}

.blog-post-full code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  background: var(--bg-panel);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--navy-dark);
}

/* ── CONTACT ── */
.contact-text {
  font-size: 17px;
  /* was 15 */
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-text a {
  color: var(--navy);
  text-decoration: none;
}

.contact-location {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  /* was 13.5 */
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.5;
}

.contact-grid {
  margin-top: 0;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  font-size: 13.5px;
  color: var(--navy);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-white);
  transition: var(--transition-all);
  text-decoration: none;
}

.contact-card:hover {
  background: var(--tag-bg);
  border-color: var(--navy);
}

.contact-card svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.contact-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 3px solid var(--navy);
}

.contact-note p {
  font-size: 16px;
  /* was 14 */
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-note strong {
  color: var(--text);
  font-weight: 500;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border-light);
}

.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer__text {
  font-size: 14.5px;
  /* was 12.5 */
  color: var(--text-light);
}

.footer__text a {
  color: var(--navy);
}

/* ── VIEW ALL BUTTON ── */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.5rem;
  padding: 9px 18px;
  font-size: 15px;
  /* was 13 */
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: transparent;
  transition: var(--transition-all);
  letter-spacing: 0.02em;
}

.view-all-btn:hover {
  background: var(--tag-bg);
}

.view-all-btn svg {
  width: 14px;
  height: 14px;
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  /* was 14 */
  color: var(--navy);
  margin-bottom: 2rem;
  transition: var(--transition-all);
}

.back-link:hover {
  gap: 8px;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ── SCHOLAR LINK ── */
.scholar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  /* was 13.5 */
  color: var(--navy);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.scholar-link:hover {
  border-color: var(--navy);
}

.scholar-link svg {
  width: 14px;
  height: 14px;
}

/* ── PAGE TITLE ── */
.page-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.875rem;
  /* was 1.75rem */
  font-weight: 400;
  color: var(--navy-deeper);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 15px;
  /* was 13 */
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2rem;
}

/* ── FADE-UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── MY PERSONAL STORY CTA ── */
.story-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--navy-deeper) 0%, var(--navy) 100%);
  border-radius: 12px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

.story-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(18, 59, 122, 0.18);
}

.story-cta__content {
  flex: 1;
}

.story-cta__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.story-cta__title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
}

.story-cta__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.story-cta__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-left: 2rem;
  transition: background 0.2s;
}

.story-cta:hover .story-cta__arrow {
  background: rgba(255, 255, 255, 0.2);
}

.story-cta__arrow svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

/* Story page */
.story-content {
  max-width: 900px;
  margin: 0 auto;
}

.story-content h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--navy-deeper);
}

.story-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.story-content strong {
  color: var(--text);
  font-weight: 500;
}

.story-content em {
  color: var(--text);
}

.story-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  border-radius: 0 8px 8px 0;
  font-family: 'Crimson Pro', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .section {
    padding: 2.5rem 1.25rem;
  }

  .edu-item {
    grid-template-columns: 1fr;
  }

  .edu-period {
    text-align: left;
  }

  .service-grid {
    columns: 1;
  }

  .contact-inner-grid {
    grid-template-columns: 1fr !important;
  }

  .story-cta {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .story-cta__arrow {
    margin-left: 0;
    margin-top: 1rem;
  }
}