@font-face {
  font-family: "Cooper Hewitt";
  font-weight: 400;
  src: url('https://immediatusbiennale.orbita.space/wp-content/uploads/sites/2/2024/05/CooperHewitt-Light.otf') format('opentype');
}
@font-face {
  font-family: "Cooper Hewitt";
  font-weight: 700;
  src: url('https://immediatusbiennale.orbita.space/wp-content/uploads/sites/2/2024/05/CooperHewitt-Bold.otf') format('opentype');
}

:root {
  --primary: #00888a;
  --white: #fff;
  --black: #000;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 30px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-trailing {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: background 0.2s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-toggle-icon::before {
  top: -7px;
}

.menu-toggle-icon::after {
  top: 7px;
}

.top-bar.is-menu-open .menu-toggle-icon {
  background: transparent;
}

.top-bar.is-menu-open .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.top-bar.is-menu-open .menu-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

body.page-sub .menu-toggle {
  border-color: var(--primary);
}

body.page-sub .menu-toggle-icon,
body.page-sub .menu-toggle-icon::before,
body.page-sub .menu-toggle-icon::after {
  background: var(--primary);
}

body.page-sub .top-bar.is-menu-open .menu-toggle-icon {
  background: transparent;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--white);
}

.lang-switch {
  display: flex;
  gap: 10px;
}
.lang-switch button {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-switch button.active,
.lang-switch button:hover {
  background: var(--white);
  color: var(--primary);
}

.top-socials {
  display: flex;
  gap: 12px;
}
.top-socials a {
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.top-socials a:hover {
  color: #c4f1f2;
  transform: scale(1.1);
}

.top-bar-cta {
  background: var(--white);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--white);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.top-bar-cta:hover {
  background: transparent;
  color: var(--white);
}

body.page-sub .top-bar {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid #e0eaea;
}

body.page-sub .site-nav a {
  color: var(--primary);
}

body.page-sub .site-nav a:hover,
body.page-sub .site-nav a[aria-current="page"] {
  border-bottom-color: var(--primary);
}

body.page-sub .lang-switch button {
  border-color: var(--primary);
  color: var(--primary);
}

body.page-sub .lang-switch button.active,
body.page-sub .lang-switch button:hover {
  background: var(--primary);
  color: var(--white);
}

body.page-sub .top-socials a {
  color: var(--primary);
}

body.page-sub .top-socials a:hover {
  color: #006d6f;
}

body.page-sub .top-bar-cta {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

body.page-sub .top-bar-cta:hover {
  background: transparent;
  color: var(--primary);
}

.hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 100vh;
  background: var(--primary);
  color: var(--white);
  position: relative;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 6% 140px 10%;
}

.hero-right {
  flex: 1;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px;
}

.hero-right img {
  width: 100%;
  height: calc(100vh - 280px);
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  background: var(--white);
  animation: fadeInRight 1.2s ease;
}

.hero-text {
  max-width: 520px;
  animation: fadeInUp 1.4s ease;
}

.hero-text small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffffcc;
  margin-bottom: 10px;
}

.hero-text h1 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 2;
  color: #e6f8f8;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 16px;
}

body.page-sub main {
  padding-top: 40px;
}

.previous-year h2 {
  color: var(--primary);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.program-2024 {
  max-width: 720px;
  margin: 0 auto 48px;
  color: #222;
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.program-2024 h3 {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 16px;
  line-height: 1.35;
  text-align: center;
}

.program-2024 h3:first-child {
  margin-top: 0;
}

.program-2024 .program-workshop-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #111;
}

.program-2024 .program-meta,
.program-2024 .program-place {
  margin: 6px 0;
}

.program-2024 .program-body {
  margin: 12px 0 18px;
}

.program-2024 .program-item {
  margin-bottom: 22px;
}

.program-2024 .program-item-title {
  font-weight: 700;
  margin: 0 0 8px;
}

.program-2024 .program-divider {
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  margin: 36px 0 24px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.partners-main h1 {
  color: var(--primary);
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.partners-main .footer-logos {
  margin-bottom: 0;
}

.archy-main {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.archy-main h1 {
  color: var(--primary);
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.25;
}

.archy-main .archy-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #333;
  text-align: center;
}

.archy-main .archy-text a[href^="mailto:"] {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.archy-main .archy-text a[href^="mailto:"]:hover {
  text-decoration-thickness: 2px;
}

.archy-photos {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.archy-photos img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--primary);
  display: block;
  background: #fafafa;
}

.contact-main {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.contact-main h1 {
  color: var(--primary);
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-main .contact-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 36px;
}

.contact-team-photo {
  margin-bottom: 36px;
  text-align: center;
}

.contact-team-photo img {
  max-width: 100%;
  width: min(560px, 100%);
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: inline-block;
  vertical-align: middle;
  background: #fafafa;
}

.contact-roles {
  text-align: center;
  margin-bottom: 40px;
}

.contact-roles h2 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-roles ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.contact-channels a {
  color: var(--primary);
  font-size: 2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-channels a:hover {
  color: #006d6f;
  transform: scale(1.08);
}

.contact-channels .contact-mail {
  font-size: 1.85rem;
}

.contact-channels .contact-mail-text {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-channels .contact-channel-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.swiper {
  width: 100%;
  padding-bottom: 40px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  max-width: 400px;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--primary);
  transition: transform 0.3s ease;
  background: #fafafa;
}

.swiper-slide img:hover {
  transform: scale(1.03);
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--primary);
}

.swiper-pagination-bullet-active {
  background: var(--primary);
}

iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 8px;
}

.previous-year iframe {
  display: block;
  margin-bottom: 0;
}

.ohlasy {
  margin-top: 56px;
}

.ohlasy h3 {
  color: var(--primary);
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 36px;
}

.ohlasy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.ohlasy-card {
  background: #f4fbfb;
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  margin: 0;
}

.ohlasy-card blockquote {
  margin: 0;
  padding: 0;
}

.ohlasy-card blockquote p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
  font-style: italic;
}

.ohlasy-card figcaption {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #444;
  font-weight: 600;
}

.ohlasy-card figcaption a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ohlasy-card figcaption a:hover {
  text-decoration-thickness: 2px;
}

.page-soon {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}

.page-soon h1 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.page-soon p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #333;
  margin-top: 18px;
}

.page-soon h1 + p {
  margin-top: 12px;
  font-size: 1.2rem;
}

.aktuality-strip {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  background: linear-gradient(180deg, #e8f6f6 0%, #f8fdfd 45%, var(--white) 100%);
  padding: 52px 16px 60px;
  border-top: 1px solid rgba(0, 136, 138, 0.12);
}

.aktuality-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.aktuality-headline {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--primary);
  letter-spacing: 0.06em;
}

.aktuality-h-sep {
  margin: 0 0.35em;
  opacity: 0.45;
  font-weight: 400;
}

.aktuality-h-cs,
.aktuality-h-en {
  transition: opacity 0.2s ease, color 0.2s ease;
}

.aktuality-strip[data-lang="cs"] .aktuality-h-cs {
  color: var(--primary);
  opacity: 1;
}

.aktuality-strip[data-lang="cs"] .aktuality-h-en {
  opacity: 0.45;
  color: #558;
}

.aktuality-strip[data-lang="en"] .aktuality-h-en {
  color: var(--primary);
  opacity: 1;
}

.aktuality-strip[data-lang="en"] .aktuality-h-cs {
  opacity: 0.45;
  color: #558;
}

.aktuality-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 20px;
  justify-content: center;
  align-items: flex-start;
}

.aktuality-bubble,
.aktuality-bubble-static {
  display: block;
  width: 100%;
  max-width: 300px;
  text-decoration: none;
  color: inherit;
  transform: rotate(var(--bubble-tilt, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aktuality-bubble:hover {
  transform: rotate(var(--bubble-tilt, 0deg)) translateY(-4px);
}

.aktuality-bubble-inner,
.aktuality-bubble-static {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 24px 26px;
  min-height: 128px;
  border-radius: 24px;
  background: var(--white);
  border: 2px solid var(--primary);
  box-shadow: 8px 10px 0 rgba(0, 136, 138, 0.1);
}

.aktuality-bubble-static {
  opacity: 0.95;
  box-shadow: 5px 6px 0 rgba(0, 136, 138, 0.07);
}

.aktuality-bubble-date {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.aktuality-bubble-title {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.38;
  margin-bottom: 8px;
}

.aktuality-bubble-teaser {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a3a3a;
  font-weight: 400;
}

.aktuality-more {
  text-align: center;
  margin-top: 32px;
}

.aktuality-more a {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1.02rem;
}

.aktuality-admin-hint {
  text-align: center;
  max-width: 560px;
  margin: -12px auto 28px;
  font-size: 0.88rem;
  color: #5a6e6e;
  line-height: 1.5;
}

.aktuality-admin-hint a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aktuality-empty {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  text-align: center;
  color: #666;
  width: 100%;
  padding: 28px 16px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.aktuality-page-intro {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 28px;
  color: #3d4d4d;
  line-height: 1.7;
  font-size: 1.02rem;
}

.admin-aktuality-page {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  background: linear-gradient(180deg, #e8f6f6 0%, #f8fdfd 40%, #fff 100%);
  color: #222;
  margin: 0;
  padding: 28px 16px 56px;
  min-height: 100vh;
}

.admin-aktuality-page .admin-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.admin-aktuality-page h1 {
  color: var(--primary);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.admin-aktuality-page h2 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.admin-aktuality-page label {
  display: block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

.admin-aktuality-page input[type="text"],
.admin-aktuality-page input[type="password"],
.admin-aktuality-page input[type="date"],
.admin-aktuality-page textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  margin-top: 5px;
  border: 1px solid #b8d4d5;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: "Cooper Hewitt", Arial, sans-serif;
  font-size: 1rem;
}

.admin-aktuality-page textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.55;
}

.admin-aktuality-page button,
.admin-aktuality-page .btn {
  margin-top: 18px;
  padding: 11px 22px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Cooper Hewitt", Arial, sans-serif;
  font-size: 1rem;
}

.admin-aktuality-page .btn-secondary {
  background: #4a5560;
}

.admin-aktuality-page .err {
  color: #b00020;
  margin-top: 12px;
}

.admin-aktuality-page .ok {
  color: var(--primary);
  margin-top: 12px;
  font-weight: 600;
}

.admin-aktuality-page .card {
  background: var(--white);
  padding: 22px 24px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 136, 138, 0.08);
  border: 1px solid rgba(0, 136, 138, 0.12);
  margin-bottom: 20px;
}

.admin-aktuality-page ul.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-aktuality-page ul.admin-list li {
  padding: 14px 0;
  border-bottom: 1px solid #e8f0f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-aktuality-page small.hint {
  color: #5c6c6c;
  font-weight: 400;
}

.admin-aktuality-page a {
  color: var(--primary);
  font-weight: 600;
}

.sablona-banner {
  background: #fff3cd;
  color: #664d03;
  text-align: center;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid #e0a800;
}

.article-event {
  font-family: "Cooper Hewitt", Arial, sans-serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

.article-event .article-meta {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.article-event h1 {
  color: var(--primary);
  font-size: 1.85rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.article-event .article-body p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: #222;
}

.article-event .article-cta {
  margin-top: 32px;
}

.article-event .article-cta a {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.article-event .article-cta a:hover {
  opacity: 0.92;
}

footer {
  background: var(--white);
  text-align: center;
  padding: 60px 20px 30px;
  color: var(--black);
}

.footer-text {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  align-items: center;
  margin-bottom: 40px;
}
.footer-logos img {
  width: 160px;
  height: auto;
  transition: transform 0.3s ease;
}
.footer-logos img:hover { transform: scale(1.05); }

.footer-copy {
  color: #444;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-left, .hero-right {
    width: 100%;
    height: auto;
    padding: 40px 20px;
  }
  .hero-right img { height: 400px; object-fit: contain; }
  .hero-text h1 { font-size: 2.2rem; }
  iframe { height: 300px; }
  .top-bar {
    padding: 12px 16px;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0;
  }
  .top-bar-trailing {
    flex: 1 1 100%;
    justify-content: flex-end;
    order: 1;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    order: 2;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding-top: 0;
    padding-bottom: 0;
  }
  .top-bar.is-menu-open .site-nav {
    max-height: min(75vh, 560px);
    padding-top: 14px;
    padding-bottom: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .site-nav a:last-child {
    border-bottom: none;
  }
  body.page-sub .site-nav a {
    border-bottom-color: rgba(0, 136, 138, 0.2);
  }
}
