/* ==========================================================================
   CU Psychiartry 2026 Theme — main.css
   Organised: Custom Properties → Reset → Base → Layout →
              Components → Utilities → WordPress Core Classes
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-accent: #ffd03a !important;
  --color-accent-dark: #004d99;
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-400);
  --color-bg: var(--white);
  --color-bg-subtle: #f9fafb;
  --color-border: var(--gray-100);

  --primary-25: #fbf2fd;
  --primary-50: #f7e8fb;
  --primary-100: #edd1f7;
  --primary-200: #d9a7ee;
  --primary-300: #c380e5;
  --primary-400: #aa53d3;
  --primary-500: #8f32a9;
  --primary-600: #7a2b91;
  --primary-700: #622175;
  --primary-800: #4b1859;
  --primary-900: #350e3b;

  --white: #ffffff;

  --gray-50: #f8f8f8;
  --gray-100: #f0f0f0;
  --gray-200: #d9d9d9;
  --gray-300: #bfbfbf;
  --gray-400: #999999;
  --gray-500: #808080;
  --gray-600: #666666;
  --gray-700: #4d4d4d;
  --gray-800: #333333;
  --gray-900: #1a1a1a;

  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a1a1a1;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  --yellow-50: #fff7db;
  --yellow-100: #ffedb3;
  --yellow-200: #ffe07a;
  --yellow-300: #ffd24d;
  --yellow-400: #ffc61f;
  --yellow-500: #ffbb00;
  --yellow-600: #e6a800;
  --yellow-700: #bf8c00;
  --yellow-800: #8c6600;
  --yellow-900: #4d3800;

  --warning-50: #fff8ed;
  --warning-100: #ffefd6;
  --warning-200: #ffddb0;
  --warning-300: #ffc785;
  --warning-400: #ffae54;
  --warning-500: #ff9800;
  --warning-600: #db7f00;
  --warning-700: #b06500;
  --warning-800: #854c00;
  --warning-900: #583200;

  --error-50: #fdecec;
  --error-100: #f9d2d2;
  --error-200: #f4afaf;
  --error-300: #ec8585;
  --error-400: #e45d5d;
  --error-500: #dc3a3a;
  --error-600: #b92d2d;
  --error-700: #8f2222;
  --error-800: #671818;
  --error-900: #431010;

  --success-50: #f3fceb;
  --success-100: #e2f7cc;
  --success-200: #c6ee9e;
  --success-300: #a8e06e;
  --success-400: #8cd24a;
  --success-500: #73c232;
  --success-600: #5aa026;
  --success-700: #457a1d;
  --success-800: #315715;
  --success-900: #1f380d;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.25rem;
  --text-3xl: 1.5rem;
  --text-4xl: 1.875rem;
  --leading: 1.5;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --container-width: 1200px;
  --content-width: 720px;
  --sidebar-width: 300px;
  --gap: 2rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: 150ms ease;

  --sidebar-width: 260px;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-bg: #111827;
    --color-bg-subtle: #1f2937;
    --color-border: #374151;
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--white);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  max-height: 100%;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   3. Base Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-4);
}

p + p {
  margin-top: 32px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-700);
}

a:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul,
ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-1);
}

blockquote {
  border-left: 4px solid var(--primary-500);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

pre,
code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

code {
  background: var(--color-bg-subtle);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

pre {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

th,
td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  background: var(--color-bg-subtle);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.container,
.no-sidebar .container {
  grid-template-columns: 1fr;
  padding-inline: var(--space-4) !important;
}

.content-area {
  min-width: 0; /* prevent grid blowout */
}

.content-area--full {
  max-width: 100%;
}

#main {
  padding-top: 80px;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  width: 100%;
  top: 0px;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 80px;
  background: var(--color-bg);
  padding-block: var(--space-4);
  transition-property: transform, opacity, box-shadow, top, background;
  transition-duration: 700ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .header-container {
  display: flex;
  gap: 24px;
  width: 100%;
  padding: 0 16px;
  /* grid-template-columns: 1fr auto; */
  /* align-items: center; */
  position: relative;
  justify-content: space-between;
  align-items: flex-start;
}

.site-branding {
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
}

.site-title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.site-title a {
  /* color: var(--color-text); */
  text-decoration: none;
}

.site-title a:hover {
  color: var(--primary-500);
}

.site-description {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

.custom-logo {
  max-height: 50px;
  width: auto;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.main-navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: static;
  margin-top: 6px;
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  right: 0;
  overflow: auto;
  border-top: 1px solid var(--color-border);
  padding: var(--space-4);
  gap: var(--space-1);
}

.nav-menu.is-open {
  display: flex;
  background-color: #fff;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: var(--space-2) 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition:
    background var(--transition),
    color var(--transition);
}

.nav-menu > li > a {
  font-weight: 600;
  font-size: 16px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--primary-500);
}

.nav-menu > li {
  margin-bottom: 0;
  padding: 8px 0;
}

.nav-menu > li + li {
  border-top: 1px solid var(--gray-100);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: static;
  top: calc(100%);
  left: 0;
  min-width: 200px;
  background: var(--color-bg);
  /* border: none; */
  border-radius: var(--radius-md);
  box-shadow: none;
  z-index: 200;
  /* padding: var(--space-2); */
  /* padding-left: var(--space-4); */
  flex-direction: column;
  gap: var(--space-1);
}

.nav-menu li.is-open > .sub-menu {
  display: flex;
}

.nav-menu .sub-menu a {
  /* padding: var(--space-2) var(--space-3); */
  white-space: nowrap;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 4px;
  align-items: flex-start;
  padding: 4px 0;
}

.nav-menu .sub-menu a::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 1px;
  background-color: var(--gray-400);
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E")
    no-repeat center;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E")
    no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.nav-menu .sub-menu a:hover::before {
  background-color: var(--primary-500);
}

/* Mobile toggle */
.menu-toggle {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  display: flex;
  min-width: 46px;
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* --------------------------------------------------------------------------
   7. Page Header / Archive Header
   -------------------------------------------------------------------------- */
.page-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: var(--text-3xl);
}

.archive-description {
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   8. Post Card
   -------------------------------------------------------------------------- */
.posts-loop {
  display: grid;
  gap: var(--space-8);
}

.card {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.card:last-child {
  border-bottom: none;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.post-thumbnail img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   9. Entry Typography
   -------------------------------------------------------------------------- */
.entry-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.entry-title a {
  color: var(--color-text);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--primary-500);
}

.entry-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.entry-meta a {
  color: var(--color-text-muted);
}
.entry-meta a:hover {
  color: var(--primary-500);
}

.entry-content {
  line-height: var(--leading);
}

.entry-content > * + * {
  margin-top: var(--space-4);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: var(--space-8);
}

.entry-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.page-title,
.full-article-title {
  font-size: 32px;
  line-height: 1.3;
}

.full-article-content {
  line-height: 1.6;
  font-size: 18px;
  max-width: 100%;
}

.full-article-content .has-small-font-size {
  font-size: 14px;
}

.tags-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tags-list li a {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition);
}

.tags-list li a:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
}

.app-tag {
  font-size: 12px;
  font-weight: 500;
  border-radius: 50px;
  padding: 2px 10px;
  background-color: var(--primary-50);
  color: var(--primary-800);
  /* border: 1px solid var(--primary-800); */
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   10. Post Navigation
   -------------------------------------------------------------------------- */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}

.post-navigation .nav-links > div {
  overflow: hidden;
}

.post-navigation .nav-links .nav-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.nav-previous {
  justify-self: start;
  flex: 1;
}

.nav-next {
  justify-self: end;
  text-align: right;
  flex: 1;
}

.nav-subtitle {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.nav-title {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.nav-previous a,
.nav-next a {
  text-decoration: none;
}
.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
  color: var(--primary-500);
}

/* --------------------------------------------------------------------------
   11. Pagination
   -------------------------------------------------------------------------- */
.pagination {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-numbers a,
.page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.page-numbers a:hover {
  background: var(--color-bg-subtle);
  border-color: var(--primary-500);
}

.page-numbers .current {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
}

.app-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-pagination > li {
}

.app-pagination > li > .page-numbers {
  border: 1px solid var(--gray-300);
  min-height: 40px;
  min-width: 40px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background-color: var(--white);
}

.app-pagination > li > .page-numbers:not(.current):hover {
  background-color: var(--gray-50);
}

.app-pagination > li > .prev,
.app-pagination > li > .next {
  padding: 0 16px;
}

.app-pagination > li > .current {
  background-color: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

/* --------------------------------------------------------------------------
   12. Author Bio
   -------------------------------------------------------------------------- */
.author-bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
  padding: var(--space-8);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-top: var(--space-12);
}

.author-bio__img {
  border-radius: 50%;
  flex-shrink: 0;
}

.author-bio__name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.author-bio__name a {
  color: var(--color-text);
  text-decoration: none;
}
.author-bio__name a:hover {
  color: var(--primary-500);
}

.author-bio__description {
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. Sidebar / Widgets
   -------------------------------------------------------------------------- */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  order: 2;
}

.widget {
}

.widget-title {
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget ul li {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.widget ul li:last-child {
  border-bottom: none;
}
.widget ul a {
  color: var(--color-text);
  text-decoration: none;
}
.widget ul a:hover {
  color: var(--primary-500);
}

/* --------------------------------------------------------------------------
   14. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  min-width: 100px;
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
  border: 1px solid transparent;
  line-height: 1;
}

.btn:not(.animate):hover,
.btn.animated:hover {
  transform: scale(1.05) !important;
  transition: transform 0.15s ease-in-out;
}

.btn.btn-secondary {
  background-color: var(--gray-900);
  color: var(--white);
  font-weight: 600;
}

.dark-mode .btn.btn-secondary {
  background-color: var(--primary-500);
  color: var(--gray-900);
}

.btn.btn-gray {
  background-color: var(--gray-100);
  color: var(--gray-900);
  font-weight: 600;
}

.btn-primary {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-500);
}
.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-500);
  border-color: var(--primary-500);
}
.btn-outline:hover {
  background: var(--primary-500);
  color: #fff;
}

.row-link {
  padding: 16px 0;
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--gray-400);
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
}

.row-link .rl-arrow {
  margin-top: 3px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  height: 26px;
}

.row-link .rl-arrow > div {
  display: inline-block;
  transition:
    transform 0.3s,
    -webkit-transform 0.3s;
}

.row-link:hover .rl-arrow > div {
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* .row-link .rl-arrow > div:before {
  position: absolute;
  top: 100%;
  content: "ss";
  white-space: nowrap;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
} */

.row-link .rl-title {
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: 48px;
  background: var(--gray-900);
  color: var(--white);
  /* border-radius: 24px 24px 0 0; */
}

.site-footer .footer-logos {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.site-footer .footer-logo {
  min-width: 48px;
  height: 48px;
}

.site-footer a:hover {
  color: var(--primary-300);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  grid-template-columns: unset;
}

.site-footer .footer-menus .footer-menu-group-title {
  color: inherit;
  opacity: 0.5;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.footer-menu a {
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--primary-300);
}

.site-info {
  font-size: var(--text-sm);
}

.icon-text,
.icon-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.icon-text .it-icon,
.icon-link .il-icon {
  margin-top: 4px;
}

.icon-link .il-title {
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-25);
  color: var(--primary-300);
  border-radius: 100%;
}

.social-link > .social-icon {
  transition: filter 0.3s ease;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  filter: brightness(0) saturate(100%) invert(27%) sepia(58%) saturate(1200%) hue-rotate(272deg) brightness(90%) contrast(92%);
}

.social-link:hover {
  background-color: var(--primary-50);
}

.social-link:hover > .social-icon {
  /* filter: brightness(0) invert(1); */
}

/* --------------------------------------------------------------------------
   16. Search Form
   -------------------------------------------------------------------------- */
.search-form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-direction: column;
}

.search-field {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color var(--transition);
}

.search-field:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.search-submit {
  padding: var(--space-3) var(--space-6);
  background: var(--primary-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition);
}

.search-submit:hover {
  background: var(--primary-700);
}

/* --------------------------------------------------------------------------
   17. Accessibility
   -------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: var(--space-4);
  top: var(--space-4);
  width: auto;
  z-index: 999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-bg);
  border: 2px solid var(--primary-500);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.skip-link {
  position: absolute;
}

/* --------------------------------------------------------------------------
   18. WordPress Core Classes (required for Gutenberg/plugins)
   -------------------------------------------------------------------------- */
.alignleft {
  float: left;
  margin-right: var(--space-6);
  margin-bottom: var(--space-4);
}
.alignright {
  float: right;
  margin-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.aligncenter {
  display: block;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}
.alignwide {
  margin-inline: calc(-1 * var(--space-8));
}
.alignfull {
  margin-inline: calc(-50vw + 50%);
  max-width: 100vw;
}

.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.gallery-item img {
  width: 100%;
  border-radius: var(--radius-md);
}

.bypostauthor {
}

.page-links {
  clear: both;
  margin: var(--space-6) 0;
}

.image-square {
  height: 0;
  padding-top: 100%;
}

.image-md {
  height: 16rem;
}

.image-lg {
  height: 24rem;
}

.image-xl {
  height: 32rem;
}

.academic-program-card {
  border-radius: 24px;
  background-color: var(--primary-25);
  padding: 24px;
  transition: all 0.15s ease-in-out;
  min-height: 250px;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.academic-program-card:hover {
  background-color: var(--primary-50);
}

.academic-program-card:hover .ap-read-more {
  gap: 8px;
}

.academic-program-card .tag {
  font-size: 12px;
  font-weight: 500;
  border-radius: 50px;
  padding: 2px 10px 4px;
  background-color: var(--primary-500);
  color: white;
  display: inline-flex;
}

.academic-program-card .ap-title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin-top: 8px;
  flex: 1;
}

.academic-program-card .ap-read-more {
  font-size: 16px;
  display: inline-flex;
  color: var(--primary-500);
  gap: 4px;
  transition: all 0.15s ease-in-out;
}

.image-container {
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center center;
  border-radius: 32px;
}

.app-shadow-1 {
  box-shadow: 0 5px 20px 4px rgba(0, 0, 0, 0.08);
}

.app-shadow-2 {
  box-shadow: 0 8px 24px 8px rgba(0, 0, 0, 0.04);
}

.academic-resource-card {
  background-color: #fff;
  border-radius: 36px;
  box-shadow: 0 8px 24px 8px rgba(0, 0, 0, 0.04);
  padding: 8px;
  display: flex;
  gap: 24px;
}

.academic-resource-card .arc-image {
  width: 200px;
  height: 250px;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 32px 12px 12px 32px;
}

.academic-resource-card .arc-body {
  padding: 16px 24px 16px 0;
  flex: 1;
}

.academic-resource-card .arc-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.academic-resource-card .icon-text {
  font-size: 14px;
}

.content-card {
  background-color: #fff;
  border-radius: 36px;
  box-shadow: 0 8px 24px 8px rgba(0, 0, 0, 0.04);
  padding: 8px;
  width: 280px;
  max-width: 280px;
  display: block;
}

.content-card .cc-header .cc-image {
  border-radius: 32px;
  height: 16rem;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.content-card .cc-header .cc-no {
  font-size: 24px;
  font-weight: 700;
  border-radius: 100px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-700);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 24px;
  left: 24px;
  color: #fff;
}

.content-card .cc-body {
  padding: 16px;
  color: var(--gray-500);
}

.content-card .cc-body .cc-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.content-card .cc-description {
  display: -webkit-box;
  font-size: 14px;
}

.article-card-wrapper {
  width: 360px !important;
  max-width: 100%;
}

.article-card {
  background-color: #fff;
  border-radius: 36px;
  box-shadow: 0 8px 24px 8px rgba(0, 0, 0, 0.04);
  padding: 8px;
  max-width: 360px;
  display: block;
}

.article-card .ac-header {
}

.article-card .ac-header .ac-image {
  border-radius: 32px;
  height: 225px;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.article-card .ac-header .ac-tag {
  font-size: 12px;
  font-weight: 500;
  border-radius: 50px;
  padding: 2px 8px;
  background-color: #fff;
  display: inline-flex;
  position: absolute;
  top: 20px;
  left: 20px;
}

.article-card .ac-body {
  padding: 16px;
  color: var(--gray-500);
}

.article-card .ac-description {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card .ac-body .ac-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.article-card .ac-footer {
  padding: 16px;
}

.article-card .ac-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.event-card {
  background-color: #fff;
  border-radius: 36px;
  box-shadow: 0 8px 24px 8px rgba(0, 0, 0, 0.04);
  padding: 8px;
  max-width: 360px;
  display: block;
}

.event-card .ec-header {
  margin: 12px;
  padding: 8px 0;
}

.event-card .ec-image {
  border-radius: 12px 12px 32px 32px;
  height: 225px;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.event-card .ec-image .ec-tag {
  font-size: 12px;
  font-weight: 500;
  border-radius: 50px;
  padding: 2px 8px;
  background-color: #fff;
  display: inline-flex;
  position: absolute;
  top: 20px;
  left: 20px;
}

.event-card .ec-body {
  border-top: 1px dashed var(--gray-200);
  padding: 12px 0;
  margin: 12px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gray-500);
}

.event-card .ec-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--gray-900);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card .ec-description {
  font-size: 16px;
  color: var(--gray-500);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card .ec-location {
  display: flex;
  gap: 8px;
  font-size: 14px;
  align-items: flex-start;
  margin-top: 8px;
}

.event-card .ec-datetime {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-900);
  font-size: 12px;
}

.event-card .ec-day {
  font-size: 36px;
  font-weight: medium;
  line-height: 1;
  color: var(--primary-500);
}

.research-card {
  background-color: var(--neutral-50);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-right: 80px;
  transition: all 0.15 ease-in-out;
}

.research-card:hover {
  background-color: var(--primary-25);
}

.research-card .rc-header {
  color: var(--primary-900);
}

.research-card .rc-more {
  background-color: var(--primary-900);
  color: white;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 24px;
  right: 24px;
}

.research-card .rc-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-900);
  margin-bottom: 4px;
}

.research-card:hover .rc-title {
  color: var(--primary-800);
}

.research-card .rc-body {
  font-size: 14px;
  color: var(--gray-500);
}

.research-card .rc-tag {
  font-size: 12px;
  font-weight: 500;
  border-radius: 50px;
  padding: 2px 8px;
  background-color: #fff;
  display: inline-flex;
  border: 1px solid var(--primary-500);
}

.service-card {
  background-color: var(--primary-25);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.service-card .sc-title {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  color: var(--primary-900);
}

.service-card .sc-description {
  margin-top: 8px;
  font-size: 14px;
  flex: 1;
}

.service-card .sc-more {
  margin-top: 16px;
  font-size: 14px;
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.swiper-custom:has(.swiper-pagination:not(:empty)),
.swiper:has(.swiper-pagination:not(:empty)) {
  position: relative;
  padding-bottom: 80px;
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  top: auto !important;
  bottom: 20px !important;
}

.swiper-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 50px;
  background-color: var(--primary-500);
}

.stack-card {
  min-height: 400px;
  height: 50vh;
  max-height: 500px;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--primary-300);
  background-color: var(--primary-25);
}

.stack-card .sc-title {
  font-weight: 700;
  font-size: 24px;
}

.stack-card .sc-description {
  margin-top: 16px;
}

#footer-panel {
}

.value-box {
  background-color: var(--gray-50);
  border-radius: 24px;
  width: 100%;
  padding: 24px;
}

.value-box .vb-icon {
  height: 36px;
  width: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.value-box .vb-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.value-box .vb-icon img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(72%) saturate(1560%) hue-rotate(276deg) brightness(84%) contrast(98%);
}

.value-box .vb-icon.text-white img {
  filter: brightness(0) saturate(100%) invert(1);
}

.value-box .vb-title {
  font-size: 32px;
  line-height: 1.2;
}

.value-box .vb-header {
  font-size: 18px;
  font-weight: 700;
  margin-top: 12px;
}

.value-box .vb-description {
  font-size: 14px;
  margin-top: 4px;
}

.app-accordion {
}

.accordion-item .accordion-header {
  position: relative;
}

.accordion-item .accordion-header .icon {
  min-width: 1.5rem;
  min-height: 1.5rem;
  margin-top: 4px;
}

.accordion-item .accordion-header .icon-vertical {
  min-width: 40px;
  transform-origin: center;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.accordion-item.open .icon-vertical {
  transform: scaleY(0); /* collapse vertical line */
  opacity: 0;
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--gray-900);
}

.full-frame {
  padding: 0;
  border-radius: 0;
}

#home-hero {
  height: calc(100vh - 40px);
  margin-top: -80px;
  display: flex;
  flex-direction: column;
}

#about-home {
  min-height: calc(100vh - 80px);
}

.person-card {
  border-radius: 24px;
  box-shadow: 0 8px 24px 8px rgba(0, 0, 0, 0.04);
  padding: 12px;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: var(--gray-200);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  width: 280px;
  max-width: 100%;
  height: 280px;
  overflow: hidden;
}

.person-card .pc-content {
  padding: 12px;
  background: white;
  border-radius: 12px;
  transition: all 0.15 ease-in-out;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.person-card .pc-content .pc-title {
  font-weight: 600;
  font-size: 16px;
}

.person-card .pc-content .pc-subtitle {
  font-size: 14px;
  color: var(--primary-400);
  margin-top: 2px;
  font-style: italic;
}

.person-card .pc-description {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.2s ease;
  margin-top: 8px;
  font-size: 14px;
}

.person-card::before {
  content: "";
  transition: all 0.15s ease-in-out;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  bottom: 0;
}

.person-card:has(.pc-description):hover::before {
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.person-card:hover .pc-description {
  max-height: 200px;
  opacity: 1;
}

.paralax-image-frame {
  overflow: hidden;
}

.paralax-image-frame img {
  width: 150%;
  height: 150%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: top center;
}

.overlay-dark {
  position: relative;
  overflow: hidden;
}

.overlay-dark:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
}

.overlay-dark > * {
  position: relative;
  z-index: 5;
}

.timeline {
  position: relative;
  padding-left: 56px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 16px;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    -180deg,
    rgba(240, 240, 240, 0) 0%,
    rgba(240, 240, 240, 0.5) 10%,
    rgba(240, 240, 240, 0.5) 80%,
    rgba(240, 240, 240, 0) 100%
  );
}

.timeline > li {
  position: relative;
}

.timeline > li + li {
  margin-top: 60px;
}

.timeline-item .ti-tag {
  margin-bottom: 4px;
}

.timeline-item .ti-title {
  font-weight: bold;
  font-size: 20px;
  position: relative;
}

.timeline-item .ti-title:before {
  content: "";
  border-radius: 100%;
  position: absolute;
  top: 2px;
  left: 2px;
  margin-left: -56px;
  display: block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary-500);
  background-color: #fff;
}

.timeline-item .ti-title:after {
  content: "";
  border-radius: 100%;
  position: absolute;
  top: 14px;
  left: 14px;
  margin-left: -56px;
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--primary-500);
}

.timeline-item .ti-description {
  margin-top: 4px;
  font-size: 14px;
}

.timeline-item .ti-additional {
  margin-top: 24px;
  border-radius: 12px;
  background-color: #fff;
  padding: 16px;
  box-shadow: 0 8px 24px 8px rgba(0, 0, 0, 0.04);
  display: inline-block;
  width: 450px;
  max-width: 100%;
  text-align: left;
}

.timeline-item .ti-additional .tia-title {
  font-weight: bold;
  font-size: 14px;
}

.timeline-item .ti-additional .tia-description {
  margin-top: 4px;
  font-size: 14px;
}

.ti-activity-list {
  margin: 24px 0;
}

.ti-activity-list > li + li {
  margin-top: 8px;
}

.ti-activity-list .ti-activity-item {
  display: flex;
  width: 100%;
  text-align: left;
}

.ti-activity-list .tiai-header {
  width: 100px;
  min-width: 100px;
  font-size: 14px;
  font-weight: bold;
}

.ti-activity-list .tiai-description {
  font-size: 14px;
}

.academic-program-section {
  border-top: 1px solid var(--gray-900);
  padding-block: 32px 56px;
}

.academic-program-section .aps-header-col .aps-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-900);
}

.academic-program-section .aps-header-col .aps-no {
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary-25);
}

.prose {
  color: var(--gray-900);
}

.bg-gradient-primary {
  background: #fbf2fd;
  background: linear-gradient(180deg, rgba(251, 242, 253, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.gallery-thumb .image-container {
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: transform;
}

.gallery-thumb:hover .image-container {
  transform: scale(1.05);
}

.filter-list {
  align-items: flex-start;
  overflow: auto;
  flex-wrap: wrap;
}

.filter-item {
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--primary-500);
  padding: 6px 16px;
  color: var(--primary-700);
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-item:hover {
  background-color: var(--primary-25);
}

.filter-item.active {
  background-color: var(--primary-500);
  color: #fff;
}

.icon-input-wrapper {
  position: relative;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 4px 16px;
}

.icon-input-wrapper:has(.input-field:focus) {
  border-color: var(--primary-500);
}

.input-field {
  padding: 8px 16px;
  font-size: 16px;
}

.select-field-wrapper {
  border-radius: 50px;
  background-color: var(--primary-25);
  position: relative;
}

.select-field-wrapper select {
  appearance: none;
  background-color: transparent;
  padding: 8px 40px 8px 16px;
  outline: none !important;
  font-weight: 500;
  color: var(--primary-700);
  cursor: pointer;
}

.select-field-wrapper::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Im02IDkgNiA2IDYtNiIvPjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 480px) {
  .search-form {
    flex-direction: row;
  }
}

@media (min-width: 640px) {
}

@media (min-width: 768px) {
  :root {
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
  }

  .container--full {
    grid-template-columns: 1fr;
    max-width: var(--content-width);
  }

  /* Collapse sidebar layout when no sidebar is active */
  .no-sidebar .container {
    grid-template-columns: 1fr;
    max-width: var(--content-width);
  }

  .widget-area {
    order: unset;
  }

  .author-bio {
    flex-direction: row;
  }

  .nav-next {
    justify-self: end;
    text-align: right;
  }

  .site-header .header-container {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 1024px) {
  .lg\:container {
    padding-inline: 16px !important;
  }

  .main-navigation {
    margin-top: 0;
  }

  .nav-menu {
    gap: 0;
    border-radius: 16px;
    padding: 0;
    margin: 12px 16px;
    box-shadow: 0 8px 24px 8px rgba(0, 0, 0, 0.04);
    border: none;
  }

  .nav-menu .sub-menu {
    display: flex;
  }

  .nav-menu > li {
    display: flex;
    flex-direction: row;
    padding: 0;
  }

  .nav-menu > li > a {
    padding: 16px;
    border-radius: 0;
    min-width: 25%;
    border-right: 1px solid var(--gray-100);
  }

  .nav-menu > li:first-child > .sub-menu,
  .nav-menu > li:first-child > a {
    padding-top: 24px;
  }

  .nav-menu > li:last-child > .sub-menu,
  .nav-menu > li:last-child > a {
    padding-bottom: 24px;
  }

  .nav-menu > li > .sub-menu {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .research-card {
    flex-direction: row;
  }

  .article-card-wrapper,
  .article-card {
    width: 100% !important;
    max-width: 100%;
  }

  .site-footer {
    margin: 12px;
    border-radius: 32px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .event-card {
    max-width: 100%;
  }

  .full-frame {
    margin: 12px;
    border-radius: 32px;
  }

  #home-hero {
    height: calc(100vh - 40px);
    min-height: 700px;
  }

  #about-home {
    height: calc(100vh - 80px);
    min-height: 700px;
  }

  .academic-program-card,
  .person-card {
    width: 100%;
  }

  .timeline {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .timeline:before {
    left: 50%;
    margin-left: -2px;
  }

  .timeline > li {
    width: 45%;
  }

  .timeline > li {
    width: 100%;
  }

  .timeline > li:nth-child(2n) {
    width: 100%;
  }

  .timeline > li:nth-child(2n) .ti-title:before {
    margin-left: -66px;
  }

  .timeline > li:nth-child(2n) .ti-title:after {
    margin-left: -66px;
  }

  .timeline > li:nth-child(2n - 1) {
    text-align: right;
    align-items: flex-end;
    display: flex;
    flex-direction: column;
  }

  .timeline-item:nth-child(2n - 1) .ti-title:before {
    left: auto;
    right: 0;
    margin-right: -63px;
  }

  .timeline-item:nth-child(2n - 1) .ti-title:after {
    left: auto;
    right: 0;
    margin-right: -51px;
  }

  .timeline-item:nth-child(2n - 1) .ti-activity-list .ti-activity-item .tiai-header {
    text-align: right;
  }

  .timeline-item:nth-child(2n - 1) .ti-activity-list .ti-activity-item .tiai-description {
    text-align: right;
    flex: 1;
  }

  .page-title,
  .full-article-title {
    font-size: 44px;
    line-height: 1.4;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-menu {
    position: relative;
    list-style: none;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
    overflow: visible;
    box-shadow: none;
    border: none;
  }

  .nav-menu li:hover > .sub-menu,
  .nav-menu li:focus-within > .sub-menu {
    display: flex;
  }

  .nav-menu > li > a {
    padding: 12px 10px;
    border-radius: 0;
    min-width: unset;
    border-right: none;
  }

  .nav-menu > li:first-child > .sub-menu,
  .nav-menu > li:first-child > a {
    padding-top: 12px;
  }

  .nav-menu > li:last-child > .sub-menu,
  .nav-menu > li:last-child > a {
    padding-bottom: 12px;
  }

  .nav-menu > li > .sub-menu {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: none;
    margin-top: 0;
    border-radius: 16px;
  }

  .nav-menu > li:last-child > .sub-menu {
    left: auto;
    right: 0;
  }

  .nav-menu li + li {
    border: none;
  }

  .nav-menu a {
    padding: 12px 8px;
  }

  .nav-menu .sub-menu {
    display: none;
    position: absolute;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding-left: var(--space-2);
  }
  .nav-menu li:hover > .sub-menu {
    display: flex;
  }

  #about-home {
    max-height: 800px;
  }

  .content-card {
    /* max-width: 100%; */
  }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .main-navigation,
  .widget-area,
  .post-navigation,
  .pagination {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
