:root {
  --ivt-phd-blue: #0b5ed7;
  --ivt-phd-blue-dark: #063b88;
  --ivt-phd-cyan: #27b4f6;
  --ivt-phd-text: #172033;
  --ivt-phd-muted: #64748b;
  --ivt-phd-soft: #f3f8ff;
  --ivt-phd-border: #dbe8f8;
  --ivt-phd-white: #ffffff;
  --ivt-phd-shadow: 0 18px 50px rgba(15, 72, 138, 0.14);
  --ivt-phd-radius: 24px;
}

/* ===== Base ===== */

.ivt-phd-page {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  clear: both !important;
  color: var(--ivt-phd-text);
  background: #ffffff;
  overflow: hidden;
}

.ivt-phd-page * {
  box-sizing: border-box;
}

.ivt-phd-container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===== Hide default theme elements on this page ===== */

body.ivt-vstup-asp-page .page-title-area,
body.ivt-vstup-asp-page .page-title-wrapper,
body.ivt-vstup-asp-page .page-title,
body.ivt-vstup-asp-page .page-header,
body.ivt-vstup-asp-page .entry-header,
body.ivt-vstup-asp-page .breadcrumb-area,
body.ivt-vstup-asp-page .breadcrumb-wrapper,
body.ivt-vstup-asp-page .breadcrumbs,
body.ivt-vstup-asp-page .site-breadcrumb,
body.ivt-vstup-asp-page .banner-area,
body.ivt-vstup-asp-page .inner-banner,
body.ivt-vstup-asp-page .page-banner,
body.ivt-vstup-asp-page .featured-image,
body.ivt-vstup-asp-page .post-thumbnail {
  display: none !important;
}

/* ===== Theme layout reset for this page ===== */

body.ivt-vstup-asp-page .site-content,
body.ivt-vstup-asp-page .content-area,
body.ivt-vstup-asp-page .container,
body.ivt-vstup-asp-page .container-fluid,
body.ivt-vstup-asp-page .row,
body.ivt-vstup-asp-page .content-wrapper {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.ivt-vstup-asp-page #primary,
body.ivt-vstup-asp-page .primary,
body.ivt-vstup-asp-page .site-main,
body.ivt-vstup-asp-page .main-content,
body.ivt-vstup-asp-page article,
body.ivt-vstup-asp-page .hentry,
body.ivt-vstup-asp-page .entry-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ivt-vstup-asp-page #secondary,
body.ivt-vstup-asp-page .sidebar,
body.ivt-vstup-asp-page .widget-area {
  display: none !important;
}

/* ===== Hero ===== */

.ivt-phd-hero {
  position: relative;
  padding: 86px 0 76px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(39, 180, 246, 0.42), transparent 30%),
    linear-gradient(135deg, #062e69 0%, #0b5ed7 54%, #0aa6e8 100%);
}

.ivt-phd-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -26% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  pointer-events: none;
}

.ivt-phd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 42px;
  align-items: center;
}

.ivt-phd-kicker,
.ivt-phd-section-label,
.ivt-phd-card-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ivt-phd-kicker {
  color: #dff5ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.ivt-phd-section-label {
  color: var(--ivt-phd-blue);
  background: #e9f5ff;
}

.ivt-phd-card-label {
  color: #ffffff;
  background: rgba(39, 180, 246, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ivt-phd-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.ivt-phd-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.ivt-phd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ivt-phd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ivt-phd-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.ivt-phd-btn-primary {
  color: var(--ivt-phd-blue-dark);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.ivt-phd-btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ivt-phd-btn-light {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.ivt-phd-hero-card {
  padding: 28px;
  border-radius: var(--ivt-phd-radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.ivt-phd-hero-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ivt-phd-hero-card li {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ivt-phd-hero-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ivt-phd-hero-card span {
  color: rgba(255, 255, 255, 0.72);
}

.ivt-phd-hero-card strong {
  color: #ffffff;
  text-align: right;
}

/* ===== Sticky nav ===== */

.ivt-phd-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--ivt-phd-border);
  backdrop-filter: blur(14px);
}

.admin-bar .ivt-phd-nav {
  top: 32px;
}

.ivt-phd-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
}

.ivt-phd-nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ivt-phd-blue-dark);
  background: #f6faff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.ivt-phd-nav a:hover {
  color: #ffffff;
  background: var(--ivt-phd-blue);
  text-decoration: none;
}

/* ===== Sections ===== */

.ivt-phd-section {
  padding: 74px 0;
}

.ivt-phd-section-soft {
  background: var(--ivt-phd-soft);
}

.ivt-phd-section-dark {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(39, 180, 246, 0.2), transparent 28%),
    linear-gradient(135deg, #061f47 0%, #07377f 100%);
}

.ivt-phd-section h2 {
  max-width: 860px;
  margin: 0 0 20px;
  color: var(--ivt-phd-text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ivt-phd-section h3 {
  margin: 0 0 12px;
  color: var(--ivt-phd-text);
  font-size: 21px;
  line-height: 1.25;
}

.ivt-phd-section p {
  color: var(--ivt-phd-muted);
  font-size: 17px;
  line-height: 1.72;
}

.ivt-phd-section-dark h2,
.ivt-phd-section-dark h3 {
  color: #ffffff;
}

.ivt-phd-section-dark p,
.ivt-phd-section-dark .ivt-phd-section-label {
  color: rgba(255, 255, 255, 0.82);
}

.ivt-phd-section-dark .ivt-phd-section-label {
  background: rgba(255, 255, 255, 0.12);
}

.ivt-phd-section-intro {
  max-width: 820px;
  margin: 0 0 34px;
}

.ivt-phd-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: start;
}

/* ===== Cards ===== */

.ivt-phd-info-panel,
.ivt-phd-card {
  padding: 28px;
  border: 1px solid var(--ivt-phd-border);
  border-radius: var(--ivt-phd-radius);
  background: #ffffff;
  box-shadow: var(--ivt-phd-shadow);
}

.ivt-phd-card {
  box-shadow: none;
}

.ivt-phd-check-list,
.ivt-phd-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ivt-phd-check-list li,
.ivt-phd-card li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
  color: var(--ivt-phd-muted);
  line-height: 1.55;
}

.ivt-phd-check-list li::before,
.ivt-phd-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ivt-phd-blue);
  font-weight: 900;
}

.ivt-phd-card-grid {
  display: grid;
  gap: 22px;
}

.ivt-phd-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ivt-phd-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ivt-phd-blue), var(--ivt-phd-cyan));
  font-weight: 900;
}

.ivt-phd-note {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 18px;
  color: var(--ivt-phd-blue-dark);
  background: #ffffff;
  border: 1px solid var(--ivt-phd-border);
  font-size: 17px;
  line-height: 1.55;
}

/* ===== Compact exams ===== */

body.ivt-vstup-asp-page #exams {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

body.ivt-vstup-asp-page #exams .ivt-phd-section-intro {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.65;
}

body.ivt-vstup-asp-page #exams .ivt-phd-card-grid {
  gap: 18px;
}

body.ivt-vstup-asp-page #exams .ivt-phd-card {
  min-height: auto !important;
  padding: 24px 24px 22px !important;
  border-radius: 18px;
}

body.ivt-vstup-asp-page #exams .ivt-phd-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-size: 17px;
}

body.ivt-vstup-asp-page #exams .ivt-phd-card h3 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.2;
}

body.ivt-vstup-asp-page #exams .ivt-phd-card p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.65;
}

body.ivt-vstup-asp-page #exams .ivt-phd-card ul {
  margin-top: 10px;
}

body.ivt-vstup-asp-page #exams .ivt-phd-card li {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.55;
}

body.ivt-vstup-asp-page #exams .ivt-phd-note {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.55;
}

/* Optional compact exams list if section HTML was replaced */

.ivt-phd-exam-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.ivt-phd-exam-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--ivt-phd-border);
  border-radius: 20px;
  background: #ffffff;
}

.ivt-phd-exam-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ivt-phd-blue), var(--ivt-phd-cyan));
  font-weight: 900;
}

.ivt-phd-exam-item h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.ivt-phd-exam-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

/* ===== Timeline ===== */

.ivt-phd-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin-top: 34px;
}

.ivt-phd-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--ivt-phd-border);
}

.ivt-phd-timeline-item {
  position: relative;
  padding: 24px 24px 24px 62px;
  border: 1px solid var(--ivt-phd-border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 72, 138, 0.08);
}

.ivt-phd-timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 28px;
  width: 18px;
  height: 18px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--ivt-phd-blue);
  box-shadow: 0 0 0 1px var(--ivt-phd-blue);
}

.ivt-phd-timeline-item time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ivt-phd-blue);
  font-weight: 900;
}

.ivt-phd-timeline-item p {
  margin: 0;
}

/* ===== Funding ===== */

.ivt-phd-funding-grid {
  display: grid;
  gap: 16px;
}

.ivt-phd-funding-grid div {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ivt-phd-funding-grid h3 {
  color: #ffffff;
}

/* ===== Science chips ===== */

.ivt-phd-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ivt-phd-chip-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ivt-phd-blue-dark);
  background: #f0f7ff;
  border: 1px solid var(--ivt-phd-border);
  font-weight: 700;
}

/* ===== Steps ===== */

.ivt-phd-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.ivt-phd-steps div {
  min-height: 158px;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--ivt-phd-border);
}

.ivt-phd-steps strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--ivt-phd-blue);
}

.ivt-phd-steps span {
  display: block;
  color: var(--ivt-phd-muted);
  line-height: 1.5;
  font-weight: 650;
}

/* ===== Links ===== */

.ivt-phd-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.ivt-phd-link-list a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--ivt-phd-blue-dark);
  background: #ffffff;
  border: 1px solid var(--ivt-phd-border);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(15, 72, 138, 0.06);
  transition: transform 0.2s ease, color 0.2s ease;
}

.ivt-phd-link-list a::before {
  content: "↗";
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--ivt-phd-blue);
}

.ivt-phd-link-list a:hover {
  transform: translateY(-2px);
  color: var(--ivt-phd-blue);
  text-decoration: none;
}

/* ===== Contacts section ===== */

/* ===== HARD FIX CONTACTS LAYOUT — put at the VERY END of CSS ===== */

body.ivt-vstup-asp-page .ivt-phd-contacts-section {
  padding: 64px 0 70px !important;
  overflow: visible !important;
}

body.ivt-vstup-asp-page .ivt-phd-contacts-head {
  max-width: 980px !important;
  margin-bottom: 28px !important;
}

body.ivt-vstup-asp-page .ivt-phd-contacts-head h2 {
  margin-bottom: 12px !important;
  font-size: 34px !important;
  line-height: 1.15 !important;
}

body.ivt-vstup-asp-page .ivt-phd-contacts-head p {
  max-width: 1040px !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

body.ivt-vstup-asp-page .ivt-phd-contacts-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: start !important;
}

body.ivt-vstup-asp-page .ivt-phd-contact-box {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 24px !important;
  overflow: visible !important;
  align-self: start !important;
}

body.ivt-vstup-asp-page .ivt-phd-contact-box h3 {
  margin: 0 0 10px !important;
  font-size: 24px !important;
  line-height: 1.22 !important;
}

body.ivt-vstup-asp-page .ivt-phd-contact-box p {
  margin: 0 0 16px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

body.ivt-vstup-asp-page .ivt-phd-contact-list {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid #e2e8f0 !important;
  list-style: none !important;
}

body.ivt-vstup-asp-page .ivt-phd-contact-list li {
  display: block !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

body.ivt-vstup-asp-page .ivt-phd-contact-list li:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.ivt-vstup-asp-page .ivt-phd-contact-list span {
  display: block !important;
  margin: 0 0 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

body.ivt-vstup-asp-page .ivt-phd-contact-list a {
  display: inline !important;
  color: #0b5ed7 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

@media (max-width: 1100px) {
  body.ivt-vstup-asp-page .ivt-phd-contacts-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Responsive ===== */

@media (max-width: 1100px) {
  body.ivt-vstup-asp-page .ivt-phd-contacts-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.ivt-vstup-asp-page .ivt-phd-contact-box-main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .ivt-phd-hero-grid,
  .ivt-phd-two-col {
    grid-template-columns: 1fr;
  }

  .ivt-phd-card-grid-3 {
    grid-template-columns: 1fr;
  }

  .ivt-phd-link-list {
    grid-template-columns: 1fr;
  }

  .ivt-phd-hero {
    padding: 64px 0;
  }
}

@media (max-width: 720px) {
  body.ivt-vstup-asp-page .ivt-phd-contacts-section {
    padding: 58px 0 64px;
  }

  body.ivt-vstup-asp-page .ivt-phd-contacts-grid {
    grid-template-columns: 1fr;
  }

  body.ivt-vstup-asp-page .ivt-phd-contact-box-main {
    grid-column: auto;
  }

  body.ivt-vstup-asp-page .ivt-phd-contact-box {
    padding: 22px;
    border-radius: 20px;
  }
}

@media (max-width: 700px) {
  .ivt-phd-container {
    width: min(100% - 22px, 1160px);
  }

  .ivt-phd-section {
    padding: 54px 0;
  }

  .ivt-phd-actions {
    flex-direction: column;
  }

  .ivt-phd-btn {
    width: 100%;
  }

  .ivt-phd-hero-card {
    padding: 22px;
  }

  .ivt-phd-hero-card li {
    flex-direction: column;
    gap: 4px;
  }

  .ivt-phd-hero-card strong {
    text-align: left;
  }

  .ivt-phd-nav {
    top: 0;
  }

  .admin-bar .ivt-phd-nav {
    top: 46px;
  }

  .ivt-phd-timeline::before {
    left: 15px;
  }

  .ivt-phd-timeline-item {
    padding-left: 52px;
  }

  .ivt-phd-timeline-item::before {
    left: 7px;
  }

  .ivt-phd-exam-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}