* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #1f3d2b;
  --green-main: #5f7f2f;
  --green-light: #8fae4a;
  --green-soft: #dfe7cf;
  --green-bg: #f4f7ef;
  --text-dark: #1f261f;
  --text-soft: #5f685f;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius-lg: 24px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--green-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(90deg, #143628, #214737, #173b2e);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img,
.custom-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-top: 20px;
  margin-bottom: -100px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
}

/* ===== NAV ===== */

.main-nav {
  display: flex;
  gap: 38px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.3rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--green-light);
}

.main-nav a.active {
  color: #ffffff;
  position: relative;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: #a6bc4b;
}

/* ===== LOGIN BUTTON ===== */

.login-btn {
  display: none !important;
  background: #8ca23a;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== MOBILE MENU BUTTON ===== */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle:hover {
  opacity: 0.85;
}

.menu-toggle.is-open {
  transform: rotate(90deg);
}

/* ===== HERO ===== */

.hero {
  min-height: 380px;
  background: url("../images/rybnik.jpg") center/cover no-repeat;
}

.hero-overlay {
  min-height: 380px;
  background: linear-gradient(
    90deg,
    rgba(18, 28, 20, 0.42) 0%,
    rgba(18, 28, 20, 0.20) 28%,
    rgba(18, 28, 20, 0.08) 100%
  );
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  align-items: center;
  min-height: 380px;
  padding-top: 60px;
  position: relative;
  z-index: 3;
}

.hero-box {
  max-width: 760px;
  padding-top: 10px;
}

.hero-box p {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 720px;
  color: #ffffff;
  margin-bottom: 28px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

/* ===== SUBPAGE HERO ===== */

.subpage-hero {
  min-height: 320px;
  background: url("../images/rybnik.jpg") center/cover no-repeat;
}

.subpage-hero-overlay {
  min-height: 320px;
  background: linear-gradient(
    90deg,
    rgba(20, 30, 20, 0.45) 0%,
    rgba(20, 30, 20, 0.18) 45%,
    rgba(20, 30, 20, 0.05) 100%
  );
  display: flex;
  align-items: center;
}

.subpage-hero-content {
  padding-top: 60px;
  padding-bottom: 40px;
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.breadcrumb {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #e6e6e6;
}

.breadcrumb a {
  color: #ffffff;
}

.subpage-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.subpage-intro {
  max-width: 760px;
  color: #f0f0f0;
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* ===== BUTTONS ===== */

.primary-btn,
.secondary-btn,
.small-btn {
  display: inline-block;
  transition: 0.2s ease;
}

.primary-btn {
  background: var(--green-main);
  color: #ffffff;
  padding: 18px 30px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.primary-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.secondary-btn {
  background: var(--green-light);
  color: #1f261f;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
}

.secondary-btn:hover {
  background: var(--green-main);
  color: #ffffff;
  transform: translateY(-2px);
}

.small-btn {
  background: #617a2a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
}

/* ===== MAIN WRAPPER ===== */

.page-shell {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(180deg, #f5f5f2 0%, #efefec 100%);
  padding-bottom: 40px;
}

.section {
  padding-top: 70px;
  padding-bottom: 40px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

/* ===== TOP CARDS ===== */

.top-cards {
  margin-top: -54px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 26px 28px;
  text-align: center;
  position: relative;
  transition: 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #dfe7cf;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: -74px auto 20px;
  border: 6px solid #f4f4f0;
}

.feature-card h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-soft);
  min-height: 54px;
  margin-bottom: 20px;
}

/* ===== NEWS ===== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px;
  transition: 0.25s ease;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.news-date {
  color: #7a7f7a;
  font-weight: 600;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.news-card p {
  color: var(--text-soft);
  margin-bottom: 20px;
}

.news-card .secondary-btn {
  margin-top: auto;
  align-self: flex-start;
}

.news-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img {
  transform: scale(1.05);
}

/* ===== ANNOUNCEMENTS / ARTICLE DETAIL ===== */

.announcements-list {
  display: grid;
  gap: 24px;
}

.announcement-card,
.article-detail {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.announcement-card {
  transition: 0.25s ease;
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.announcement-card h2 {
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--green-dark);
}

.announcement-card p,
.article-detail p {
  color: var(--text-soft);
  margin-bottom: 18px;
}

.article-detail p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334033;
}

/* ===== O NAS SUBPAGE CARDS ===== */

.subpage-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.subpage-card {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  color: #17251b;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.subpage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.subpage-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #eef3df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.subpage-card h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #173b2e;
}

.subpage-card p {
  color: #4d5a50;
  line-height: 1.6;
  margin-bottom: 20px;
}

.subpage-card span {
  color: #5f7f24;
  font-weight: 700;
}

/* ===== DOKUMENTY ===== */

.documents-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 420px;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.documents-column,
.documents-image-box {
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.documents-column h2 {
  color: #173b2e;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.documents-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.documents-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
  color: #344236;
}

.documents-list li:last-child {
  border-bottom: none;
}

.documents-list a {
  color: #5f7f24;
  font-weight: 700;
}

.documents-list a:hover {
  color: #173b2e;
}

.documents-image-box {
  padding: 16px;
}

.documents-image-box img {
  width: 100%;
  border-radius: 16px;
}

/* ===== FOOTER ===== */

.site-footer {
  margin-top: 56px;
  background:
    linear-gradient(rgba(18, 44, 34, 0.9), rgba(18, 44, 34, 0.92)),
    url("../images/rybnik.jpg") center/cover no-repeat;
  color: #ffffff;
  padding: 54px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-brand img {
  width: 90px;
  height: 90px;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a,
.footer-list a:visited,
.footer-list a:hover,
.footer-list a:active {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== UI DOLADENIE ===== */

.small-btn:hover {
  background: var(--green-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

/* ===== EVENTS HOMEPAGE ===== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 30px;
}

.event-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px;
  transition: 0.25s ease;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.event-date {
  color: #5f7f24;
  font-weight: 800;
  margin-bottom: 10px;
}

.event-card h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #173b2e;
}

.event-meta {
  color: var(--text-soft);
  margin-bottom: 8px;
}

.event-card .secondary-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== FOOGALLERY ===== */

.foogallery {
  max-width: 100%;
}

.foogallery img {
  height: auto;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .top-cards,
  .news-grid,
  .events-grid,
  .subpage-card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .top-cards {
    margin-top: 30px;
  }

  .documents-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    padding-top: 0;
    padding-bottom: 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 4px 0 6px;
    min-height: 60px;
  }

  .brand img,
  .custom-logo {
    width: 120px;
    height: 120px;
    margin: 0;
    transform: translateY(10px);
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 2px;
    font-size: 1.9rem;
    padding: 4px 8px;
  }

  .main-nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.25s ease,
      padding 0.25s ease;
  }

  .main-nav.open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    padding: 14px 0;
  }

  .main-nav a {
    width: 100%;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 6px 0;
  }

  .hero,
  .hero-overlay,
  .hero-content {
    min-height: 360px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .hero,
  .hero-overlay,
  .hero-content {
    min-height: 320px;
  }

  .hero {
    background-position: center center;
  }

  .hero-content {
    padding-top: 90px;
    align-items: center;
  }

  .hero-box p {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 100%;
  }

  .subpage-hero,
  .subpage-hero-overlay {
    min-height: 260px;
  }

  .subpage-hero-content {
    padding-top: 50px;
    padding-bottom: 30px;
  }

  .subpage-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .subpage-intro {
    font-size: 1rem;
  }

  .section {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .feature-card,
  .news-card,
  .event-card,
  .announcement-card,
  .article-detail,
  .documents-column,
  .documents-image-box,
  .subpage-card {
    border-radius: 18px;
    padding: 24px;
  }

  .subpage-card-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
    margin-top: 20px;
  }

  .subpage-card h2 {
    font-size: 1.55rem;
  }

  .subpage-card p {
    font-size: 0.98rem;
  }

  .documents-layout,
  .news-grid,
  .events-grid,
  .top-cards {
    grid-template-columns: 1fr !important;
  }

  .documents-image-box img {
    max-height: 260px;
    object-fit: cover;
  }

  .foogallery {
    padding: 0;
  }

  .foogallery .fg-item,
  .foogallery .fg-thumb {
    max-width: 100% !important;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand img,
  .custom-logo {
    width: 96px;
    height: 96px;
  }

  .hero,
  .hero-overlay,
  .hero-content {
    min-height: 280px;
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero-box p {
    font-size: 0.95rem;
  }

  .primary-btn,
  .secondary-btn,
  .small-btn {
    width: 100%;
    text-align: center;
  }

  .news-card h3,
  .event-card h3,
  .announcement-card h2 {
    font-size: 1.35rem;
  }

  .documents-column h2,
  .subpage-card h2 {
    font-size: 1.45rem;
  }
}

.main-nav ul {
  list-style: none;
}

.main-nav li::before {
  display: none !important;
  content: none !important;
}
.main-nav li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.main-nav li::marker {
  content: "" !important;
}

/* =====================================================
   FINÁLNY DESKTOPOVÝ VZHĽAD
   - akvarelové pozadie po bokoch
   - zúžená a vycentrovaná stránka
   - footer spojený s hlavným obsahom
   - jemný papierový tieň a svetlý okraj
   - mobilná verzia zostáva bez zmeny
   ===================================================== */

@media screen and (min-width: 1200px) {

  /* Pozadie za celou stránkou */
  html {
    min-height: 100%;
    background-color: #d5cfaa;
  }

  body {
    min-height: 100vh;
    background-color: #d5cfaa;
    background-image: url("../images/fishing-watercolor-bg.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }

  /*
   * Všetky hlavné časti majú rovnakú šírku.
   * Vďaka tomu pôsobia ako jeden súvislý blok.
   */
  .site-header,
  .hero,
  .subpage-hero,
  .page-shell,
  .site-footer {
    width: 80%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.42);
    border-right: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
      -22px 0 38px rgba(33, 45, 27, 0.12),
      22px 0 38px rgba(33, 45, 27, 0.12);
  }

  /*
   * Horná časť dostane aj jemný tieň smerom nahor.
   */
  .site-header {
    box-shadow:
      -22px 0 38px rgba(33, 45, 27, 0.12),
      22px 0 38px rgba(33, 45, 27, 0.12),
      0 -6px 20px rgba(33, 45, 27, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px 6px 0 0;
  }

  /*
   * Odstránenie medzery medzi hlavným obsahom a footerom.
   * Pôvodné CSS má na footeri margin-top: 56px.
   */
  .site-footer {
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 0 0 6px 6px;

    /* Footer dostane jemný spodný tieň */
    box-shadow:
      -22px 0 38px rgba(33, 45, 27, 0.12),
      22px 0 38px rgba(33, 45, 27, 0.12),
      0 16px 32px rgba(33, 45, 27, 0.12);
  }

  /*
   * Zamedzenie prípadnej tenkej medzery spôsobenej
   * zaokrúhľovaním rozmerov v prehliadači.
   */
  .page-shell + .site-footer {
    margin-top: -1px;
  }
}
/* =====================================================
   KROK 2A – KALENDÁR UDALOSTÍ, IBA DESKTOP
   Mobilná a tabletová verzia zostáva bez zmeny.
   ===================================================== */

@media screen and (min-width: 1200px) {

  /* Hlavný priestor kalendára */
  .tribe-events .tribe-events-l-container,
  .tribe-common .tribe-common-l-container {
    padding-top: 50px;
    padding-bottom: 70px;
  }

  /* Vyhľadávací a ovládací panel */
  .tribe-events .tribe-events-header,
  .tribe-events .tribe-events-header__events-bar {
    border-radius: 16px;
  }

  .tribe-events .tribe-events-header__events-bar {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(31, 61, 43, 0.10);
    box-shadow: 0 10px 28px rgba(31, 61, 43, 0.08);
  }

  /*
   * Jednotlivé udalosti ako samostatné karty.
   * Tieto selektory pokrývajú novšie verzie
   * pluginu The Events Calendar.
   */
  .tribe-events .tribe-events-calendar-list__event-row {
    margin: 0 0 22px;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 61, 43, 0.10);
    border-radius: 18px;
    box-shadow:
      0 12px 30px rgba(31, 61, 43, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      border-color 0.22s ease;
  }

  .tribe-events .tribe-events-calendar-list__event-row:hover {
    transform: translateY(-3px);
    border-color: rgba(95, 127, 47, 0.24);
    box-shadow:
      0 16px 34px rgba(31, 61, 43, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  /*
   * Plugin má medzi udalosťami vlastné deliace čiary.
   * Pri kartách ich nepotrebujeme.
   */
  .tribe-events .tribe-events-calendar-list__event-row::before,
  .tribe-events .tribe-events-calendar-list__event-row::after {
    display: none;
  }

  /* Vnútorný obsah udalosti */
  .tribe-events .tribe-events-calendar-list__event-wrapper,
  .tribe-events .tribe-events-calendar-list__event-details {
    background: transparent;
  }

  /* Názov udalosti */
  .tribe-events .tribe-events-calendar-list__event-title,
  .tribe-events .tribe-events-calendar-list__event-title a {
    color: #173b2e;
  }

  .tribe-events .tribe-events-calendar-list__event-title a:hover {
    color: #5f7f2f;
  }

  /* Dátumový blok vľavo */
  .tribe-events .tribe-events-calendar-list__event-date-tag {
    min-width: 82px;
    padding-right: 18px;
  }

  .tribe-events .tribe-events-calendar-list__event-date-tag-datetime {
    min-height: 88px;
    padding: 12px 8px;
    background: rgba(223, 231, 207, 0.72);
    border: 1px solid rgba(95, 127, 47, 0.16);
    border-radius: 14px;
  }

  .tribe-events .tribe-events-calendar-list__event-date-tag-weekday {
    color: #5f7f2f;
    font-weight: 700;
  }

  .tribe-events .tribe-events-calendar-list__event-date-tag-daynum {
    color: #173b2e;
    font-weight: 800;
  }

  /* Miesto a popis udalosti */
  .tribe-events .tribe-events-calendar-list__event-venue,
  .tribe-events .tribe-events-calendar-list__event-description {
    color: #4d5a50;
  }

  /*
   * Hlásenie, keď nie sú žiadne udalosti.
   */
  .tribe-events .tribe-events-c-messages__message,
  .tribe-events .tribe-events-header__messages {
    background: rgba(238, 243, 223, 0.92);
    border: 1px solid rgba(95, 127, 47, 0.20);
    border-radius: 14px;
    color: #334033;
    box-shadow: 0 8px 22px rgba(31, 61, 43, 0.06);
  }

  /*
   * Nadpis „Minulé udalosti“ a podobné sekcie.
   */
  .tribe-events .tribe-events-calendar-list__month-separator,
  .tribe-events .tribe-events-calendar-list-nav,
  .tribe-events .tribe-events-header__top-bar {
    margin-top: 26px;
    margin-bottom: 24px;
  }

  /*
   * Záložky Zoznam / Mesiac / Deň.
   */
  .tribe-events .tribe-events-c-view-selector__list-item-link {
    border-radius: 8px;
  }

  .tribe-events .tribe-events-c-view-selector__list-item--active
  .tribe-events-c-view-selector__list-item-link {
    color: #173b2e;
  }

  /*
   * Staršie verzie pluginu môžu používať tieto triedy.
   * Pravidlá sú pridané ako záloha.
   */
  #tribe-events-content .type-tribe_events,
  #tribe-events-content .tribe-events-list-event-row {
    margin-bottom: 22px;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 61, 43, 0.10);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31, 61, 43, 0.08);
  }
}
/* =====================================================
   KROK 2A – MINULÉ UDALOSTI AKO KARTY
   Presné triedy aktuálnej verzie The Events Calendar.
   Iba desktop, mobil zostáva bez zmeny.
   ===================================================== */

@media screen and (min-width: 1200px) {

  /*
   * Jeden riadok udalosti bude samostatná karta.
   */
  .tribe-events .tribe-events-calendar-latest-past__event-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;

    margin: 0 0 22px !important;
    padding: 0 !important;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 61, 43, 0.12);
    border-radius: 18px;
    overflow: hidden;

    box-shadow:
      0 12px 30px rgba(31, 61, 43, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.70);

    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      border-color 0.22s ease;
  }

  .tribe-events .tribe-events-calendar-latest-past__event-row:hover {
    transform: translateY(-3px);
    border-color: rgba(95, 127, 47, 0.28);
    box-shadow:
      0 17px 36px rgba(31, 61, 43, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.76);
  }

  /*
   * Dátumový blok na ľavej strane.
   */
  .tribe-events .tribe-events-calendar-latest-past__event-date-tag {
    width: auto !important;
    min-width: 100px;
    margin: 0 !important;
    padding: 20px 12px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
      linear-gradient(
        180deg,
        rgba(232, 239, 215, 0.98),
        rgba(216, 228, 191, 0.94)
      );

    border-right: 1px solid rgba(95, 127, 47, 0.18);
  }

  .tribe-events
  .tribe-events-calendar-latest-past__event-date-tag-datetime {
    width: 100%;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }

  .tribe-events
  .tribe-events-calendar-latest-past__event-date-tag-month {
    color: #5f7f2f;
    font-weight: 800;
    letter-spacing: 0.05em;
  }

  .tribe-events
  .tribe-events-calendar-latest-past__event-date-tag-daynum {
    color: #173b2e;
    font-weight: 800;
    line-height: 1;
  }

  .tribe-events
  .tribe-events-calendar-latest-past__event-date-tag-year {
    color: #5f685f;
    font-weight: 600;
  }

  /*
   * Pravá obsahová časť udalosti.
   */
  .tribe-events .tribe-events-calendar-latest-past__event-wrapper {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tribe-events .tribe-events-calendar-latest-past__event {
    height: 100%;
    margin: 0 !important;
    padding: 24px 28px !important;
    background: transparent !important;
  }

  .tribe-events
  .tribe-events-calendar-latest-past__event-details {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  /*
   * Názov udalosti.
   */
  .tribe-events
  .tribe-events-calendar-latest-past__event-title {
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .tribe-events
  .tribe-events-calendar-latest-past__event-title-link {
    color: #173b2e !important;
    font-weight: 800;
    text-decoration: none !important;
  }

  .tribe-events
  .tribe-events-calendar-latest-past__event-title-link:hover {
    color: #5f7f2f !important;
  }

  /*
   * Čas, miesto a popis.
   */
  .tribe-events
  .tribe-events-calendar-latest-past__event-datetime-wrapper {
    margin-bottom: 8px;
    color: #5f685f;
  }

  .tribe-events
  .tribe-events-calendar-latest-past__event-venue {
    margin-bottom: 10px;
    color: #334033;
    font-weight: 700;
  }

  .tribe-events
  .tribe-events-calendar-latest-past__event-description {
    color: #4d5a50;
    line-height: 1.7;
  }

  /*
   * Odstránenie prípadných vnútorných deliacich čiar pluginu.
   */
  .tribe-events
  .tribe-events-calendar-latest-past__event-row::before,
  .tribe-events
  .tribe-events-calendar-latest-past__event-row::after {
    display: none !important;
    content: none !important;
  }

  /*
   * Nadpis Minulé udalosti.
   */
  .tribe-events
  .tribe-events-calendar-latest-past__heading {
    margin-top: 34px;
    margin-bottom: 22px;
    color: #173b2e;
  }
}
/* =====================================================
   DETAIL UDALOSTI – ODSTUP POD LOGOM, IBA DESKTOP
   ===================================================== */

@media screen and (min-width: 1200px) {

  /*
   * Celý obsah detailu udalosti posunieme nižšie,
   * aby ho neprekrývalo logo presahujúce z hlavičky.
   */
  body.single-tribe_events .tribe-events-single {
    padding-top: 90px;
  }

  /*
   * Bezpečnostná rezerva pre hornú informačnú správu
   * a názov udalosti.
   */
  body.single-tribe_events .tribe-events-notices,
  body.single-tribe_events .tribe-events-single-event-title,
  body.single-tribe_events .tribe-events-schedule {
    position: relative;
    z-index: 2;
  }
}