/* Public site styles — EPAM School of Digital Technologies
   Visual identity inspired by American University Kyiv (auk.edu.ua):
   institutional navy + red accent, geometric sans headings + Inter body. */

:root {
  --color-primary: #d01822;   /* red — CTAs, active states, accents */
  --color-primary-dark: #a91119;
  --color-secondary: #002588; /* navy — institutional, nav, stat blocks */
  --color-secondary-dark: #001c66;
  --color-text: #1c1c1e;
  --color-text-muted: #6c6c6c;
  --color-border: #e4e4e7;
  --color-surface: #fff;
  --color-surface-alt: #f6f6f6;
  --font-heading: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-surface);
  /* full-bleed sections (.epam-hero/.epam-news/.epam-partnership) use
     width:100vw, which on most browsers doesn't subtract the scrollbar
     width, making them 1 scrollbar wider than the visible viewport */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-text); }

a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-primary); text-decoration: underline; }
img { max-width: 100%; }

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 60;
}
.site-header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0.35rem 1.25rem;
  display: flex; align-items: center; gap: 2rem; min-height: 76px;
}
.site-logo {
  display: flex; align-items: center; white-space: nowrap;
}
.site-logo:hover { text-decoration: none; }
.site-logo img { height: 56px; width: auto; display: block; }

/* Menu with hover dropdowns */
.site-menu { flex: 1; }
.menu-list { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.menu-item { position: relative; height: 68px; display: flex; align-items: center; }
.menu-item > a {
  display: block; padding: 0.6rem 0.9rem; color: var(--color-text); font-weight: 400;
  font-size: 0.95rem; border-bottom: 3px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.menu-item > a:hover { color: var(--color-primary); text-decoration: none; border-color: var(--color-primary); }
.menu-dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 240px; margin: 0; padding: 0.5rem 0; list-style: none;
  background: var(--color-surface); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 40px rgba(0, 37, 136, 0.14); border-top: 3px solid var(--color-primary);
}
.menu-item.has-dropdown:hover .menu-dropdown { display: block; }
.menu-dropdown a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.95rem;
}
.menu-dropdown a:hover { background: var(--color-surface-alt); color: var(--color-primary); text-decoration: none; }

/* Language switcher */
.language-switcher { display: flex; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.language-switcher .lang { padding: 0.3rem 0.65rem; border-radius: var(--radius-pill); }
.language-switcher a.lang { color: var(--color-secondary); }
.language-switcher a.lang:hover { background: var(--color-surface-alt); color: var(--color-primary); text-decoration: none; }
.language-switcher .lang.active { background: var(--color-secondary); color: #fff; }
.language-switcher .lang.disabled { color: #b0b0b5; cursor: default; }

/* Main */
.site-main { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page-title { font-size: 2.5rem; margin: 0.5rem 0 1.25rem; }

/* Rich-text content authored via TinyMCE */
.page-text, .page-text-after, .list-item-description {
  font-size: 1.02rem;
}
.page-text h2, .page-text-after h2 { font-size: 1.7rem; margin: 2rem 0 1rem; }
.page-text h3, .page-text-after h3 { font-size: 1.35rem; margin: 1.5rem 0 0.75rem; }
.page-text p, .page-text-after p { margin: 0 0 1rem; }
.page-text blockquote, .page-text-after blockquote {
  margin: 1.5rem 0; padding: 0.75rem 1.25rem; border-left: 4px solid var(--color-primary);
  background: var(--color-surface-alt); color: var(--color-text-muted); border-radius: 0 8px 8px 0;
}
.page-text table, .page-text-after table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.page-text th, .page-text-after th { text-align: left; background: var(--color-secondary); color: #fff; padding: 0.6rem 0.9rem; }
.page-text td, .page-text-after td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--color-border); }
.page-text img, .page-text-after img { border-radius: var(--radius); }
.news-page-image {
  float: left;
  width: 40%;
  max-width: 40%;
  margin: 0.5rem 1.5rem 1.25rem 0;
}
.news-page-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.news-page-date {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-page h1 {
  margin-bottom: 0.5rem;
}
.news-page-text::after {
  content: "";
  display: block;
  clear: both;
}
@media (max-width: 720px) {
  .news-page-date {
    margin-bottom: 0.85rem;
  }
  .news-page-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}

/* Generic buttons for authored HTML (custom pages / rich text) */
.btn, .page-text a.btn, .page-text-after a.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.75rem; border-radius: var(--radius-pill); border: 2px solid var(--color-primary);
  background: var(--color-primary); color: #fff; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.btn:hover, .page-text a.btn:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; border-color: var(--color-primary-dark); }
.btn-outline { background: transparent; color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-secondary { background: var(--color-secondary); border-color: var(--color-secondary); }
.btn-secondary:hover { background: var(--color-secondary-dark); border-color: var(--color-secondary-dark); }

/* Breadcrumbs */
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0;
  margin: 0 0 1.5rem; font-size: 0.88rem; color: var(--color-text-muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: #c4c4c8; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .current { color: var(--color-secondary); font-weight: 600; }

/* Preview banner */
.preview-banner {
  background: #fff3cd; border: 1px solid #ffe69c; color: #664d03;
  padding: 0.6rem 1.1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: 0.9rem; font-weight: 500;
}

/* Tiles container */
.container-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem; margin: 2rem 0;
}
.tile {
  display: flex; flex-direction: column; gap: 0.75rem; background: var(--color-surface);
  border-radius: var(--radius); padding: 0.75rem; transition: box-shadow .2s ease, transform .2s ease;
}
.tile:hover { box-shadow: 0 16px 32px rgba(0, 37, 136, 0.14); transform: translateY(-2px); }
.tile-image {
  display: block; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: var(--color-surface-alt);
}
.tile-image img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s ease;
}
.tile:hover .tile-image img { transform: scale(1.05); }
.tile-title {
  font-family: var(--font-heading); font-weight: 700; color: var(--color-secondary); font-size: 1.05rem;
}
.tile:hover .tile-title { color: var(--color-primary); text-decoration: none; }

/* List container */
.container-list { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0; }
.list-item {
  display: flex; gap: 1.25rem; align-items: flex-start; padding: 1rem;
  border-radius: var(--radius); transition: box-shadow .2s ease;
}
.list-item:hover { box-shadow: 0 12px 28px rgba(0, 37, 136, 0.1); }
.list-item-image {
  display: block; flex-shrink: 0; border-radius: calc(var(--radius) - 4px); overflow: hidden;
}
.list-item-image img {
  width: 180px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-surface-alt); display: block;
}
.list-item-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-secondary); }
.list-item:hover .list-item-title { color: var(--color-primary); text-decoration: none; }
.list-item-description { color: var(--color-text-muted); margin-top: 0.4rem; }

/* Programs container */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
  width: 100%;
}
.program-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  box-shadow: 0 10px 28px rgba(0, 37, 136, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.program-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 37, 136, 0.14);
}
.program-card-link {
  display: block;
  color: inherit;
  height: 100%;
}
.program-card-link:hover { text-decoration: none; }
.program-card-media {
  aspect-ratio: 4 / 2.6;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.program-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.program-card:hover .program-card-media img { transform: scale(1.04); }
.program-card-body {
  padding: 1.1rem 1.1rem 1.25rem;
}
.program-card-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.45rem;
}
.program-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--color-secondary);
  line-height: 1.35;
}
.program-card:hover .program-card-title { color: var(--color-primary); }

/* Teachers container */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
}
@media (max-width: 1100px) {
  .teachers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .teachers-grid {
    grid-template-columns: 1fr;
  }
}
.teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: box-shadow .2s ease, transform .2s ease;
}
.teacher-card:hover { box-shadow: 0 14px 30px rgba(0, 37, 136, 0.12); transform: translateY(-2px); }
.teacher-card-photo {
  display: block;
  width: 180px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-surface-alt);
  border: 4px solid var(--color-surface-alt);
}
.teacher-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.teacher-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 1.02rem;
}
.teacher-card:hover .teacher-card-name { color: var(--color-primary); text-decoration: none; }
.teacher-card-position {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Custom "landing" page example — institutional hero block */
.landing-hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #fff; text-align: center; padding: 4rem 1.5rem; border-radius: var(--radius);
  margin: -0.5rem 0 2rem;
}
.landing-hero h1 { color: #fff; font-size: 2.75rem; margin: 0 0 1.5rem; }
.landing-hero img { max-width: 480px; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.landing-text, .landing-text-after { max-width: 860px; margin: 0 auto 2rem; }
.landing-children {
  display: block;
  width: 100%;
  margin: 2rem 0;
}

@media (max-width: 860px) {
  .programs-grid { grid-template-columns: 1fr; }
}

/* EPAM School of Digital Technologies — main-page landing (custom_pages/epam_landing.html) */
.epam-eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-primary); margin: 0 0 0.6rem;
}
.epam-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #fff; text-align: center; padding: 5.25rem 1.5rem; border-radius: 0;
  margin: -2rem calc(50% - 50vw) 3rem;
  width: 100vw;
  min-height: 540px;
}
.teachers-hero-shell,
.programs-hero-shell {
  position: relative;
}
.teachers-breadcrumbs,
.programs-breadcrumbs {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 5;
  margin: 0;
}
.teachers-breadcrumbs ol,
.programs-breadcrumbs ol {
  gap: 0.5rem;
}
.teachers-breadcrumbs a,
.teachers-breadcrumbs .current,
.teachers-breadcrumbs li + li::before,
.programs-breadcrumbs a,
.programs-breadcrumbs .current,
.programs-breadcrumbs li + li::before {
  color: #fff;
}
.teachers-breadcrumbs .current,
.programs-breadcrumbs .current {
  font-weight: 500;
}
.epam-hero-video,
.epam-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.epam-hero-video {
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.epam-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 10, 28, 0.72) 0%, rgba(2, 10, 28, 0.42) 44%, rgba(2, 10, 28, 0.62) 100%),
    linear-gradient(135deg, rgba(13, 31, 71, 0.22) 0%, rgba(13, 31, 71, 0.08) 100%);
}
.epam-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.25rem;
}
.epam-hero .epam-eyebrow {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.85rem;
}
.epam-hero-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 0 auto 1.1rem;
  background: var(--color-primary);
}
.epam-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1.15rem;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.epam-hero-lead {
  font-size: 1.03rem;
  color: rgba(255,255,255,0.92);
  margin: 0 auto 1.75rem;
  max-width: 680px;
}
.epam-hero .btn { border-color: #fff; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18); }

.epam-hero-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  text-align: center;
}
.epam-hero-copy {
  text-align: center;
  max-width: 760px;
}
.epam-hero-media { display: none; }

@media (max-width: 860px) {
  .epam-hero-grid { min-height: 480px; }
}

@media (max-width: 720px) {
  .epam-hero {
    margin: -2rem -1.25rem 3rem;
    width: auto;
    padding: 4.75rem 1.25rem;
    min-height: 440px;
  }
  .epam-hero-inner { padding: 0; }
}

.epam-section { margin: 3.5rem 0; }
.epam-section h2 { font-size: 2rem; margin: 0 0 1rem; }
.epam-section-lead { font-size: 1.05rem; color: var(--color-text-muted); max-width: 760px; margin: 0 0 2rem; }
/* Borderless "see all" link — right-aligned, arrow slides on hover */
.epam-section-more { margin: 2rem 0 0; text-align: right; }
.epam-more-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  color: var(--color-secondary); transition: color .15s ease, gap .15s ease;
}
.epam-more-link:hover { color: var(--color-primary); text-decoration: none; gap: 0.85rem; }
.epam-more-arrow { width: 20px; height: 20px; flex: none; }

.epam-news {
  width: 100vw;
  margin: 3.5rem calc(50% - 50vw);
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #fff;
}
.epam-news-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.epam-news .epam-eyebrow { color: rgba(255,255,255,0.85); }
.epam-news h2 { color: #fff; }
.epam-news .landing-children { margin-top: 1.75rem; }
/* navy background: the default navy link colour would be invisible here */
.epam-news .epam-more-link { color: #fff; }
.epam-news .epam-more-link:hover { color: rgba(255, 255, 255, 0.75); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.news-tile {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 20px rgba(0, 37, 136, 0.08);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.news-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 37, 136, 0.14);
}
.news-tile-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.news-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-tile-body {
  padding: 1.1rem 1.15rem 1.2rem;
  color: var(--color-text);
}
.news-tile-date {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}
.news-tile-title {
  display: block;
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
  line-height: 1.35;
  text-decoration: none;
}
.news-tile-title:hover { color: var(--color-primary); text-decoration: none; }
.news-tile-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* landing "news" section only: navy background, so cards need the white variant */
.epam-news .news-tile {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}
.epam-news .news-tile:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}
.epam-news .news-tile-body { color: #fff; }
.epam-news .news-tile-date { color: rgba(255,255,255,0.8); }
.epam-news .news-tile-title { color: #fff; }
.epam-news .news-tile-title:hover { color: #fff; }
.epam-news .news-tile-description { color: rgba(255,255,255,0.88); }

.epam-feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem; margin-top: 2rem;
}
.epam-feature {
  background: var(--color-surface-alt); border-radius: var(--radius); padding: 1.75rem;
  border-top: 3px solid var(--color-primary);
}
.epam-feature-index {
  display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem;
  color: var(--color-primary); margin-bottom: 0.5rem;
}
.epam-feature h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.epam-feature p { margin: 0; color: var(--color-text-muted); }

.epam-partnership {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin: 3.5rem calc(50% - 50vw);
  padding: 5rem 1.5rem;
  text-align: center;
  color: #fff;
  min-height: 560px;
}
.epam-partnership-bg,
.epam-partnership-overlay {
  position: absolute;
  inset: 0;
}
.epam-partnership-bg {
  background: url('/static/content/media/asu-hero.jpg') center top / cover no-repeat;
  --parallax-y: 0px;
  transform: translate3d(0, var(--parallax-y), 0) scale(1.2);
  will-change: transform;
}
.epam-partnership-overlay {
  background:
    linear-gradient(180deg, rgba(2, 10, 28, 0.72) 0%, rgba(2, 10, 28, 0.46) 40%, rgba(2, 10, 28, 0.76) 100%),
    linear-gradient(135deg, rgba(13, 31, 71, 0.2) 0%, rgba(13, 31, 71, 0.08) 100%);
}
.epam-partnership-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.epam-partnership .epam-eyebrow { color: rgba(255,255,255,0.95); }
.epam-partnership .epam-eyebrow { margin-bottom: 0; }
.epam-partnership h2 { color: #fff; }
.epam-partnership h2 {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.epam-partnership .epam-section-lead,
.epam-partnership .epam-partnership-note {
  color: rgba(255,255,255,0.92);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.epam-partnership-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem;
  margin: 1.5rem auto 0;
  text-align: center;
  max-width: 900px;
  width: 100%;
}
.epam-stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  border-top: 3px solid rgba(255,255,255,0.55);
}
.epam-stat-value {
  display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.9rem;
  color: #fff; margin-bottom: 0.35rem;
}
.epam-stat-label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.88); }
.epam-partnership-note { font-size: 0.9rem; }

.epam-research {
  background: var(--color-primary); color: #fff; border-radius: var(--radius); padding: 3rem 2rem; text-align: center;
}
.epam-research-inner { max-width: 720px; margin: 0 auto; }
.epam-research h2 { color: #fff; }
.epam-research .epam-eyebrow { color: rgba(255,255,255,0.85); }
.epam-research-lead { color: rgba(255,255,255,0.9); margin: 0 auto; }

@media (max-width: 720px) {
  .epam-hero h1 { font-size: 2rem; }
  .epam-hero { padding: 3rem 1.25rem; }
  .news-grid { grid-template-columns: 1fr; }
  .epam-partnership {
    margin: 3rem -1.25rem;
    padding: 4rem 1.25rem;
    min-height: 0;
  }
  .epam-partnership-inner {
    min-height: 0;
  }
  .epam-partnership-bg {
    background-attachment: scroll;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(160deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: rgba(255,255,255,0.9);
  margin-top: 4rem;
  border-top: 3px solid var(--color-primary);
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.75rem;
  font-size: 0.95rem;
}
.site-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
}
.site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.site-footer-logo {
  display: block;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.2));
}
.site-footer-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer-menu {
  flex: 1;
  min-width: 0;
}
.site-footer-menu-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0.35rem 0 0;
}
.site-footer .site-footer-menu-list a {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.92rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-footer .site-footer-menu-list a:hover {
  color: #fff;
  border-color: var(--color-primary);
  text-decoration: none;
}
.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.site-footer a.site-footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  transition: color .15s ease, gap .15s ease;
}
.site-footer-top-link svg { width: 16px; height: 16px; flex: none; }
.site-footer a.site-footer-top-link:hover { color: #fff; gap: 0.6rem; text-decoration: none; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-primary); }

@media (max-width: 640px) {
  .site-footer-top { flex-direction: column; }
  .site-footer-menu-list { justify-content: flex-start; }
  .site-footer-bottom { justify-content: center; text-align: center; }
}

/* Error pages */
.error-page { text-align: center; padding: 5rem 0; }
.error-page h1 {
  font-size: 6rem; margin: 0; color: var(--color-primary); font-family: var(--font-heading);
}
.error-page p { font-size: 1.1rem; color: var(--color-text-muted); }
.error-page a { color: var(--color-secondary); font-weight: 600; }
.error-page a:hover { color: var(--color-primary); }
.request-id { color: #9a9aa0; font-size: 0.85rem; }

/* Teacher profile hero — contained navy band, same convention as .landing-hero */
.teacher-hero {
  display: flex; gap: 2.5rem; align-items: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: #fff; border-radius: var(--radius);
  margin: 0 0 2.5rem;
  padding: 2.5rem;
}
.teacher-photo {
  flex: none; width: 180px; height: 180px; border-radius: 50%; overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.35); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.15); color: #fff; font-family: var(--font-heading);
  font-weight: 800; font-size: 3.5rem;
}
.teacher-heading .page-title { margin: 0 0 0.35rem; color: #fff; }
.teacher-role { color: rgba(255, 255, 255, 0.8); font-size: 1.15rem; margin: 0 0 1.25rem; }
.teacher-contacts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0; padding: 0;
  font-size: 0.9rem;
}
.teacher-contact {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12); border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem 0.4rem 0.6rem;
}
.teacher-contact a { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; font-weight: 600; }
.teacher-contact a:hover { color: #fff; text-decoration: none; opacity: 0.8; }
.teacher-contact-icon { display: inline-flex; width: 18px; height: 18px; }
.teacher-contact-icon svg { width: 100%; height: 100%; }
.teacher-contact-email { color: rgba(255, 255, 255, 0.9); }

/* Bio / Research CSS-only tabs (radio + label, no JS) */
.teacher-tabs { margin: 2.5rem 0; }
.teacher-tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.teacher-tab-labels { display: flex; gap: 0.5rem; border-bottom: 2px solid var(--color-border); margin-bottom: 1.5rem; }
.teacher-tab-labels label {
  cursor: pointer; padding: 0.75rem 1.25rem; font-weight: 700; font-family: var(--font-heading);
  color: var(--color-text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.teacher-tab-labels label:hover { color: var(--color-text); }
.teacher-tab-panel { display: none; }
.teacher-tab-radio:first-of-type:checked ~ .teacher-tab-labels label[for^="tab-bio-"],
.teacher-tab-radio:last-of-type:checked ~ .teacher-tab-labels label[for^="tab-research-"] {
  color: var(--color-primary); border-bottom-color: var(--color-primary);
}
.teacher-tab-radio:first-of-type:checked ~ .teacher-tab-panel-bio,
.teacher-tab-radio:last-of-type:checked ~ .teacher-tab-panel-research {
  display: block;
}

@media (max-width: 720px) {
  .site-header-inner { flex-wrap: wrap; padding: 0.75rem 1.25rem; gap: 0.75rem; min-height: auto; }
  .menu-list { flex-wrap: wrap; }
  .menu-item { height: auto; }
  .list-item { flex-direction: column; }
  .list-item-image img { width: 100%; }
  .landing-hero h1 { font-size: 2rem; }
  .teacher-hero { flex-direction: column; text-align: center; padding: 1.75rem; }
  .teacher-contacts { justify-content: center; }
  .teacher-tab-labels { flex-wrap: wrap; }
  .epam-partnership-bg { transform: scale(1.02); }
}
