:root {
  --red: #9f1d2f;
  --red-dark: #781421;
  --ink: #222;
  --muted: #656565;
  --line: #d9d9d9;
  --soft: #f5f5f3;
  --paper: #fff;
  --max: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: var(--red-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--red);
}
img {
  max-width: 100%;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.content-narrow {
  max-width: 840px;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 20px;
  top: 12px;
  z-index: 1000;
  background: #fff;
  padding: 10px 14px;
  border: 2px solid var(--red);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.institutional-bar {
  background: #262626;
  color: #eee;
  font-size: 13px;
}
.institutional-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.institutional-bar a {
  color: #fff;
  text-decoration: none;
}
.institutional-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  text-decoration: none;
}
.hu-mark {
  width: 58px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 2px solid var(--red);
  color: var(--red);
  font: 700 18px var(--serif);
  letter-spacing: 0.04em;
}
.wordmark-text {
  display: flex;
  flex-direction: column;
}
.wordmark-text strong {
  font: 700 clamp(19px, 2.1vw, 27px)/1.25 var(--serif);
  max-width: 720px;
}
.wordmark-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.03em;
}
.site-nav {
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--red);
}
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 14px 18px 12px;
  color: #292929;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--red-dark);
  border-bottom-color: var(--red-dark);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 10px;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 4px;
}
.home-intro {
  padding: 62px 0 56px;
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 70px;
  align-items: start;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 9px;
}
.home-intro h1,
.page-heading h1 {
  font: 700 clamp(24px, 5vw, 42px)/1.09 var(--serif);
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 930px;
}
.lead {
  font-size: 20px;
  line-height: 1.55;
  color: #3d3d3d;
  max-width: 850px;
}
.home-intro p:not(.eyebrow):not(.lead) {
  max-width: 770px;
}
.plain-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.plain-actions a {
  font-weight: 700;
}
.fact-panel {
  border-top: 4px solid var(--red);
  padding-top: 18px;
}
.fact-panel h2 {
  font: 700 22px var(--serif);
  margin: 0 0 12px;
}
.fact-panel dl {
  margin: 0;
}
.fact-panel dl div {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.fact-panel dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.fact-panel dd {
  margin: 2px 0 0;
}
.home-section,
.content-section {
  padding: 58px 0;
}
.home-section.muted {
  background: var(--soft);
}
.home-section.bordered {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  max-width: 780px;
  margin-bottom: 30px;
}
.section-title h2,
.home-section h2,
.prose h2,
.people-section h2 {
  font: 700 28px/1.25 var(--serif);
  margin: 0 0 14px;
}
.prose h1 {
  font: 700 33px/1.25 var(--serif);
  margin: 0 0 14px;
}
.section-title p:not(.eyebrow) {
  color: var(--muted);
}
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 72px;
}
.announcement-list article {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.announcement-list time,
.news-list time {
  font-size: 13px;
  color: var(--muted);
}
.announcement-list h3,
.news-list h2 {
  font: 700 21px/1.3 var(--serif);
  margin: 0 0 6px;
}
.announcement-list p {
  margin: 0;
  color: #494949;
}
.quick-links {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.quick-links h2 {
  font-size: 24px;
}
.quick-links ul,
.side-nav,
.contact-panel {
  list-style: none;
  margin: 0;
  padding: 0;
}
.quick-links li {
  border-top: 1px solid var(--line);
}
.quick-links a,
.side-nav a,
.contact-panel a {
  display: block;
  padding: 11px 0;
  text-decoration: none;
}
.text-link {
  margin-top: 24px;
  font-weight: 700;
}
.academic-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.academic-columns > div {
  padding: 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.academic-columns h3 {
  font: 700 20px var(--serif);
  margin-top: 0;
}
.academic-columns ul {
  padding-left: 19px;
}
.name-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.name-columns h3 {
  font: 700 22px var(--serif);
}
.name-columns li {
  padding: 4px 0;
}
.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.topic-list li {
  width: 33.333%;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-heading {
  padding: 46px 0 40px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.page-heading h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 14px;
}
.page-heading .lead {
  margin-bottom: 0;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.breadcrumbs span {
  margin: 0 9px;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 76px;
  align-items: start;
}
.prose h2 {
  margin-top: 38px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font: 700 21px var(--serif);
  margin: 28px 0 8px;
}
.prose li {
  margin: 7px 0;
}
.side-nav {
  border-top: 4px solid var(--red);
  position: sticky;
  top: 20px;
}
.side-nav h2 {
  font: 700 21px var(--serif);
  margin: 15px 0 4px;
}
.side-nav a {
  border-top: 1px solid var(--line);
}
.side-nav hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.link-box {
  margin-top: 35px;
  border: 1px solid var(--line);
}
.link-box a {
  display: block;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.link-box a:first-child {
  border-top: 0;
}
.notice {
  background: #faf8f2;
  border-left: 4px solid #ab872d;
  padding: 16px 19px;
  margin: 0 0 30px;
}
.curriculum-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px 60px;
}
.curriculum-groups section:last-child {
  grid-column: 1/-1;
}
.curriculum-groups h2 {
  font: 700 26px var(--serif);
  border-bottom: 2px solid var(--red);
  padding-bottom: 9px;
}
.course-list {
  margin: 0;
}
.course-list > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.course-list dt {
  font-weight: 700;
  color: var(--red-dark);
}
.course-list dd {
  margin: 0;
}
.course-list strong,
.course-list span {
  display: block;
}
.course-list span {
  color: var(--muted);
  margin-top: 3px;
}
.people-section {
  margin-bottom: 65px;
}
.people-section h2 {
  margin-bottom: 10px;
}
.section-intro {
  max-width: 850px;
  color: var(--muted);
  margin-bottom: 25px;
}
.person-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 19px 0;
}
.person-row:last-of-type {
  border-bottom: 1px solid var(--line);
}
.person-row h3 {
  font: 700 20px var(--serif);
  margin: 0 0 4px;
}
.person-row p {
  margin: 0;
  color: var(--muted);
}
.person-row > a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.research-index,
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 55px;
}
.research-index section,
.resource-grid section {
  padding: 25px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.research-index h2,
.resource-grid h2 {
  font: 700 24px var(--serif);
  margin: 0 0 12px;
}
.research-index ul,
.resource-grid ul {
  padding-left: 20px;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font: 700 20px var(--serif);
  color: #292929;
}
.faq details p {
  padding-left: 23px;
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
}
.news-list article {
  padding: 0 0 32px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.news-list h2 {
  font-size: 27px;
  margin: 5px 0 10px;
}
.editor-note {
  background: var(--soft);
  padding: 25px;
  align-self: start;
}
.editor-note h2 {
  font: 700 22px var(--serif);
  margin-top: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 75px;
}
.contact-panel {
  border-top: 4px solid var(--red);
  padding-top: 12px;
}
.contact-panel h2 {
  font: 700 24px var(--serif);
}
.contact-panel a {
  border-top: 1px solid var(--line);
}
.site-footer {
  background: #282828;
  color: #e8e8e8;
  margin-top: 35px;
  padding: 42px 0 18px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
}
.site-footer strong {
  font: 700 17px var(--serif);
  color: #fff;
}
.site-footer a {
  color: #fff;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.site-footer li {
  padding: 3px 0;
}
.footer-bottom {
  border-top: 1px solid #4c4c4c;
  margin-top: 30px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #bbb;
  font-size: 12px;
}
@media (max-width: 900px) {
  .intro-grid,
  .two-column,
  .page-grid,
  .news-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .side-nav {
    position: static;
  }
  .academic-columns {
    grid-template-columns: 1fr 1fr;
  }
  .curriculum-groups {
    grid-template-columns: 1fr;
  }
  .curriculum-groups section:last-child {
    grid-column: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topic-list li {
    width: 50%;
  }
  .quick-links {
    border-left: 0;
    border-top: 3px solid var(--red);
    padding: 18px 0 0;
  }
  .name-columns {
    gap: 35px;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .container {
    width: min(100% - 28px, var(--max));
  }
  .institutional-inner > span {
    display: none;
  }
  .masthead {
    padding: 16px 0;
  }
  .hu-mark {
    width: 45px;
    height: 51px;
    font-size: 15px;
  }
  .wordmark-text strong {
    font-size: 17px;
  }
  .wordmark-text small {
    font-size: 12px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    display: block;
    padding: 7px 0;
  }
  .site-nav a {
    padding: 11px 4px;
    border: 0;
    margin: 0;
  }
  .home-intro {
    padding: 38px 0;
  }
  .home-intro h1,
  .page-heading h1 {
    font-size: 37px;
  }
  .lead {
    font-size: 18px;
  }
  .home-section,
  .content-section {
    padding: 42px 0;
  }
  .academic-columns,
  .name-columns,
  .research-index,
  .resource-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .topic-list li {
    width: 100%;
  }
  .announcement-list article {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .person-row {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    display: block;
  }
  .footer-bottom span {
    display: block;
    margin-top: 6px;
  }
  .curriculum-groups {
    gap: 20px;
  }
  .course-list > div {
    grid-template-columns: 68px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Language switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.9rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.language-switcher a {
  min-width: 1.8rem;
  text-align: center;
  color: #ddd;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (max-width: 720px) {
  .institutional-links {
    display: none;
  }
  .language-switcher {
    margin-left: auto;
  }
}

/* ==========================================================================
   Hacettepe University corporate identity alignment
   CSS-only visual layer based on the University's corporate identity guide.
   Primary palette: Pantone 186 red, black, grey, white.
   Typography: Interstate where installed, with Arial as the approved fallback.
   ========================================================================== */

:root {
  --hacettepe-red: #c8102e;
  --hacettepe-red-bright: #ec1c24;
  --hacettepe-maroon: #782f40;
  --hacettepe-purple: #2e1a47;
  --hacettepe-teal: #003b49;
  --hacettepe-lilac: #7c6992;
  --hacettepe-lilac-light: #c5b9d5;
  --hacettepe-black: #231f20;
  --hacettepe-grey-65: #595959;
  --hacettepe-grey-20: #cccccc;

  --red: var(--hacettepe-red);
  --red-dark: var(--hacettepe-maroon);
  --ink: var(--hacettepe-black);
  --muted: var(--hacettepe-grey-65);
  --line: #d6d4d4;
  --soft: #f4f4f3;
  --paper: #ffffff;
  --accent: var(--hacettepe-red);
  --border: var(--line);
  --surface-subtle: #f5f5f4;
  --text-muted: var(--muted);
  --max: 1180px;
  --serif: "Interstate", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --sans: "Interstate", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

html {
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: var(--hacettepe-red);
}

a {
  color: var(--hacettepe-maroon);
  text-decoration-color: rgba(120, 47, 64, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--hacettepe-red);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.34);
  outline-offset: 3px;
}

/* Institutional header --------------------------------------------------- */
.institutional-bar {
  background: var(--hacettepe-red);
  color: #fff;
  border-top: 3px solid var(--hacettepe-black);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.institutional-inner {
  min-height: 40px;
}

.institutional-bar a {
  color: #fff;
}

.institutional-bar a:hover,
.institutional-bar a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.institutional-links {
  gap: 20px;
}

.language-switcher {
  border-left-color: rgba(255, 255, 255, 0.55);
}

.language-switcher a {
  color: rgba(255, 255, 255, 0.82);
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a.active {
  color: #fff;
}

.masthead {
  min-height: 100px;
  padding: 17px 0 16px;
}

.wordmark {
  gap: 15px;
  color: var(--hacettepe-black);
}

.hu-logo {
  flex: 0 0 auto;
  width: 49px;
  height: auto;
}

.wordmark-text {
  gap: 3px;
}

.wordmark-text small {
  order: -1;
  margin: 0;
  color: var(--hacettepe-black);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.wordmark-text strong {
  max-width: 760px;
  color: var(--hacettepe-black);
  font-family: var(--sans);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.site-nav {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 4px solid var(--hacettepe-red);
  box-shadow: 0 2px 0 rgba(35, 31, 32, 0.04);
}

.site-nav a {
  margin-bottom: 0;
  padding: 13px 16px 12px;
  color: var(--hacettepe-black);
  border-bottom: 0;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition:
    color 140ms ease,
    background-color 140ms ease;
}

.site-nav a:hover {
  color: var(--hacettepe-maroon);
  background: rgba(200, 16, 46, 0.065);
  border-bottom-color: transparent;
}

.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--hacettepe-red);
  border-bottom-color: transparent;
}

.menu-toggle {
  border: 1px solid var(--hacettepe-grey-20);
  background: #fff;
}

.menu-toggle span:not(.sr-only) {
  background: var(--hacettepe-black);
}

/* Typography and editorial hierarchy ------------------------------------ */
.home-intro h1,
.page-heading h1,
.section-title h2,
.home-section h2,
.prose h1,
.prose h2,
.prose h3,
.people-section h2,
.fact-panel h2,
.side-nav h2,
.quick-links h2,
.academic-columns h3,
.name-columns h3,
.research-index h2,
.resource-grid h2,
.faq summary,
.news-list h2,
.announcement-list h3,
.editor-note h2,
.contact-panel h2,
.site-footer strong {
  font-family: var(--sans);
}

.home-intro h1,
.page-heading h1 {
  color: var(--hacettepe-black);
  font-weight: 700;
  letter-spacing: -0.018em;
}

.eyebrow {
  color: var(--hacettepe-red);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.145em;
}

.lead {
  color: #403d3e;
}

.section-title h2,
.prose > h2,
.people-section > h2,
.curriculum-page > h2,
.official-note > h2,
.prerequisite-notes > h2 {
  position: relative;
  padding-bottom: 0.48rem;
  border-bottom: 1px solid var(--line);
}

.section-title h2::after,
.prose > h2::after,
.people-section > h2::after,
.curriculum-page > h2::after,
.official-note > h2::after,
.prerequisite-notes > h2::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 68px;
  height: 4px;
  background: var(--hacettepe-red);
  content: "";
}

/* Page bands inspired by the guide's red bars and grey line pattern ------ */
.home-intro {
  position: relative;
  padding: 58px 0 54px;
  background:
    linear-gradient(90deg, rgba(200, 16, 46, 0.06), rgba(200, 16, 46, 0) 43%),
    #fff;
  border-bottom: 1px solid var(--line);
}

.home-intro::before,
.page-heading::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--hacettepe-red);
  content: "";
}

.page-heading {
  position: relative;
  padding: 45px 0 38px;
  background-color: #f4f4f3;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(35, 31, 32, 0.028) 0,
    rgba(35, 31, 32, 0.028) 1px,
    transparent 1px,
    transparent 4px
  );
  border-bottom: 1px solid var(--line);
}

.home-section.muted {
  background-color: #f5f5f4;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(35, 31, 32, 0.018) 0,
    rgba(35, 31, 32, 0.018) 1px,
    transparent 1px,
    transparent 5px
  );
}

.home-section.bordered {
  border-top-color: var(--hacettepe-grey-20);
  border-bottom-color: var(--hacettepe-grey-20);
}

/* Calls to action -------------------------------------------------------- */
.plain-actions {
  gap: 12px;
}

.plain-actions a,
.primary-action,
.candidate-actions a {
  display: inline-block;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--hacettepe-red);
  background: #fff;
  color: var(--hacettepe-maroon);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
}

.plain-actions a:first-child,
.primary-action {
  background: var(--hacettepe-red);
  color: #fff;
}

.plain-actions a:hover,
.primary-action:hover,
.candidate-actions a:hover {
  border-color: var(--hacettepe-maroon);
  background: var(--hacettepe-maroon);
  color: #fff;
}

.text-link a,
.person-profile-link,
.administration-profile {
  font-weight: 750;
}

/* Information panels and navigation ------------------------------------- */
.fact-panel,
.side-nav,
.contact-panel,
.quick-links {
  border-color: var(--hacettepe-red);
}

.fact-panel,
.contact-panel {
  padding: 19px 20px 8px;
  border-top-width: 5px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(35, 31, 32, 0.065);
}

.fact-panel dl div,
.side-nav a,
.quick-links li,
.contact-panel a {
  border-color: var(--line);
}

.fact-panel dt,
.person-contact dt {
  color: var(--hacettepe-maroon);
}

.side-nav {
  padding: 0 17px 10px;
  border-top-width: 5px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(35, 31, 32, 0.055);
}

.side-nav a:hover,
.quick-links a:hover,
.contact-panel a:hover,
.link-box a:hover {
  color: var(--hacettepe-red);
  background: rgba(200, 16, 46, 0.045);
}

.quick-links {
  border-left-width: 4px;
}

.link-box {
  border-color: var(--line);
  background: #fff;
}

.notice,
.preference-notice {
  padding: 17px 20px;
  border-left: 5px solid var(--hacettepe-red);
  background: rgba(200, 16, 46, 0.055);
}

/* Grids, cards and structured content ----------------------------------- */
.academic-columns,
.topic-list,
.research-index,
.resource-grid {
  border-color: var(--hacettepe-grey-20);
  background: #fff;
}

.academic-columns > div,
.topic-list li,
.research-index section,
.resource-grid section {
  border-color: var(--hacettepe-grey-20);
}

.academic-columns > div,
.research-index section,
.resource-grid section {
  position: relative;
}

.academic-columns > div::before,
.research-index section::before,
.resource-grid section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--hacettepe-red);
  content: "";
}

.topic-list li {
  font-weight: 650;
}

.history-milestones section,
.administration-card,
.prospective-feature-grid section,
.curriculum-summary div {
  border-top-color: var(--hacettepe-red) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(35, 31, 32, 0.045);
}

.administration-card,
.prospective-feature-grid section {
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.administration-card:hover,
.prospective-feature-grid section:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.085);
}

.lab-card,
.semester-card,
.elective-group,
.evidence-callout,
.chair-letter {
  border-radius: 0 !important;
  border-color: var(--line) !important;
  background: #fff !important;
}

.lab-card,
.elective-group,
.evidence-callout {
  border-top: 4px solid var(--hacettepe-red) !important;
}

.chair-letter {
  border-left-color: var(--hacettepe-red) !important;
  box-shadow: 0 8px 24px rgba(35, 31, 32, 0.05);
}

.partnership-card {
  border-left-color: var(--hacettepe-maroon) !important;
}

.person-portrait,
.administration-photo,
.news-photo img,
.ranking-figure img {
  border-color: var(--hacettepe-grey-20) !important;
}

.person-roles,
.person-scholar-link {
  color: var(--hacettepe-maroon) !important;
}

.people-section .people-grid .person-card {
  border-top-color: var(--line);
}

.people-section .people-grid .person-card:hover h3 {
  color: var(--hacettepe-maroon);
}

/* Curriculum and data tables -------------------------------------------- */
.curriculum-groups h2 {
  border-bottom-color: var(--hacettepe-red);
}

.course-list dt,
.course-code {
  color: var(--hacettepe-maroon);
}

.semester-card {
  border-top: 4px solid var(--hacettepe-red) !important;
  box-shadow: 0 5px 18px rgba(35, 31, 32, 0.045);
}

.semester-card > h3 {
  background: #f1f0f0 !important;
  color: var(--hacettepe-black);
  border-bottom-color: var(--line) !important;
}

.curriculum-table thead th,
.elective-table thead th,
.comparison-table thead th {
  background: var(--hacettepe-maroon) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

.curriculum-table tbody tr:nth-child(even),
.elective-table tbody tr:nth-child(even),
.comparison-table tbody tr:nth-child(even) {
  background: #faf9f9;
}

.curriculum-table th,
.curriculum-table td,
.elective-table th,
.elective-table td,
.comparison-table th,
.comparison-table td {
  border-color: #e1dfdf !important;
}

.semester-total th {
  background: rgba(200, 16, 46, 0.09) !important;
  color: var(--hacettepe-black);
  border-top-color: var(--hacettepe-red) !important;
}

.curriculum-summary dt {
  color: var(--hacettepe-maroon);
}

/* FAQ ------------------------------------------------------------------- */
.faq details {
  border-color: var(--line);
}

.faq summary {
  color: var(--hacettepe-black);
}

.faq summary:hover {
  color: var(--hacettepe-maroon);
}

/* Popup ----------------------------------------------------------------- */
.prospective-popup-dialog {
  border-top-color: var(--hacettepe-red) !important;
  border-radius: 0 !important;
}

.prospective-popup-eyebrow {
  color: var(--hacettepe-red) !important;
}

.prospective-popup-primary {
  background: var(--hacettepe-red) !important;
}

.prospective-popup-primary:hover,
.prospective-popup-primary:focus-visible {
  background: var(--hacettepe-maroon) !important;
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
  margin-top: 35px;
  padding-top: 38px;
  border-top: 8px solid var(--hacettepe-red);
  background: var(--hacettepe-black);
  color: #e7e5e5;
}

.site-footer strong {
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.site-footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.38);
}

.site-footer a:hover {
  color: #fff;
  text-decoration-color: var(--hacettepe-red-bright);
}

.footer-bottom {
  border-top-color: #555051;
  color: #c6c2c3;
}

/* Mobile refinements ---------------------------------------------------- */
@media (max-width: 900px) {
  .quick-links {
    border-top-color: var(--hacettepe-red);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .institutional-bar {
    border-top-width: 2px;
  }

  .masthead {
    min-height: 82px;
    padding: 13px 0;
  }

  .hu-logo {
    width: 40px;
  }

  .wordmark {
    gap: 11px;
  }

  .wordmark-text small {
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }

  .wordmark-text strong {
    max-width: min(68vw, 440px);
    font-size: 14.5px;
    line-height: 1.16;
  }

  .site-nav a {
    padding: 11px 12px;
    font-size: 12px;
  }

  .home-intro h1,
  .page-heading h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .fact-panel,
  .contact-panel,
  .side-nav {
    box-shadow: none;
  }

  .plain-actions a,
  .primary-action,
  .candidate-actions a {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .administration-card,
  .prospective-feature-grid section {
    transition: none;
  }
}

/* Collapse the expanded navigation before the institutional labels become crowded. */
@media (max-width: 980px) {
  .institutional-links {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    display: block;
    padding: 7px 0;
  }

  .site-nav a {
    margin: 0;
    padding: 11px 12px;
    border: 0;
  }
}

.faculty-talks {
  margin-top: 3.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border, #d8d8d8);
}

.faculty-talks .section-intro {
  max-width: 74ch;
}

.faculty-talk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.faculty-talk-card {
  overflow: hidden;
  border-top: 4px solid var(--accent, #d71920);
  background: #fff;
  box-shadow: 0 0 0 1px var(--border, #dedede);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.faculty-talk-content {
  padding: 1.2rem 1.25rem 1.35rem;
}

.faculty-talk-content h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.talk-type {
  margin: 0;
  color: var(--accent, #d71920);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.talk-speakers {
  margin: 0 0 0.8rem;
  font-weight: 700;
}

.faculty-talk-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .faculty-talk-grid {
    grid-template-columns: 1fr;
  }
}
