/* ===========================
   BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #272725;
  line-height: 1.6;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  color: #155091;
}

.igrzyska-section-heading {
  font-size: 40px;
  font-weight: 500;
  color: #155091;
  margin-bottom: 40px;
  text-align: center;
}

/* ===========================
   LAYOUT
=========================== */
.igrzyska-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.igrzyska-section {
  padding: 80px 0;
}

.igrzyska-section-alt {
  background: #f4f7fb;
}

/* ===========================
   NAVBAR
=========================== */
.igrzyska-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #1a6abf;
  transition: background 0.3s, box-shadow 0.3s;
  overflow: visible;
}

.igrzyska-nav-logo img {
  height: 80px;
  transition: height 0.3s;
}

.igrzyska-navbar--scrolled {
  background: #0d3d6e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.igrzyska-navbar--scrolled .igrzyska-nav-logo img {
  height: 50px;
}

.igrzyska-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.igrzyska-nav-links {
  display: flex;
  gap: 32px;
}

.igrzyska-nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  padding: 4px 10px;
  transition: color 0.2s;
  position: relative;
  display: block;
  z-index: 3;
}

.igrzyska-nav-links a:hover {
  color: #fff;
}
.igrzyska-nav-links li {
  position: relative;
  overflow: hidden;
}
.igrzyska-nav-links li:hover:before {
  top: 0;
}

.igrzyska-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.igrzyska-nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.igrzyska-nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.igrzyska-nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.igrzyska-nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO
=========================== */
.igrzyska-header {
  position: relative;
}

.igrzyska-hero {
  background: #1a6abf;
  min-height: 90vh;
  display: flex;
  align-items: stretch;
}

.igrzyska-hero-inner {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
  gap: 40px;
}

.igrzyska-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.igrzyska-hero-right {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.igrzyska-hero-date {
  font-size: 58px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.igrzyska-hero-location {
  font-size: 64px;
  font-weight: 700;
  color:#EE4528;
  margin: 0;
  line-height: 1.1;
}

.igrzyska-hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.igrzyska-btn-primary {
  display: inline-block;
  background: #ffffff;
  color: #155091;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.igrzyska-btn-primary:hover {
  background: #e8f0fa;
  transform: translateY(-2px);
}

/* ===========================
   NEWS
=========================== */
.igrzyska-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.igrzyska-news-card {
  border: 1px solid #e0e7f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  padding: 24px;
}

.igrzyska-news-card:hover {
  box-shadow: 0 6px 24px rgba(21, 80, 145, 0.12);
}

.igrzyska-news-img-placeholder {
  height: 180px;
}
.igrzyska-news-img-placeholder img {
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
}

.igrzyska-news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.igrzyska-news-title {
  font-size: 24px;
  font-weight: 700;
  color: #155091;
  margin-bottom: 10px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.igrzyska-news-text {
  font-size: 15px;
  color: #272725;
  flex: 1;
  margin-bottom: 16px;
}

.igrzyska-news-link {
  font-size: 14px;
  font-weight: 600;
  color: #155091;
  transition: color 0.2s;
}

.igrzyska-news-link:hover {
  color: #1a6abf;
}

/* ===========================
   AGENDA
=========================== */
.igrzyska-agenda-table {
  width: 100%;
  border-collapse: collapse;
}

.igrzyska-agenda-table th,
.igrzyska-agenda-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #dce8f5;
  font-size: 16px;
}

.igrzyska-agenda-table th {
  background: #155091;
  color: #ffffff;
  font-weight: 600;
}

.igrzyska-agenda-table tr:hover td {
  background: #eef4fc;
}

.igrzyska-agenda-mobile {
  display: none;
}

.igrzyska-agenda-list {
  margin: 0;
  padding: 0;
}

.igrzyska-agenda-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #dce8f5;
}

.igrzyska-agenda-item:last-child {
  border-bottom: none;
}

.igrzyska-agenda-item dt {
  flex-shrink: 0;
  width: 120px;
  font-weight: 600;
  font-size: 14px;
  color: #155091;
  padding-top: 2px;
}

.igrzyska-agenda-item dd {
  margin: 0;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

/* ===========================
   HOTELS LIST
=========================== */
.igrzyska-hotels-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.igrzyska-hotels-list ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.igrzyska-hotels-list li {
  border-bottom: 1px solid #dce8f5;
  padding-bottom: 8px;
}

.igrzyska-hotel-name {
  font-size: 17px;
  font-weight: 600;
  color: #155091;
  margin-bottom: 4px;
}
.igrzyska-hotel-name span {
  font-size: 12px;
    background: #155091;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-block;
    text-align: center;
    line-height: 20px;
    margin-right: 11px;
    font-weight: 400;
}

.igrzyska-hotel-address {
  font-size: 15px;
  color: #555;
  margin-bottom: 0;
}

.igrzyska-maps-link {
  font-size: 14px;
  font-weight: 500;
  color: #155091;
  border-bottom: 1px solid #155091;
  transition: color 0.2s;
}

.igrzyska-maps-link:hover {
  color: #1a6abf;
}

.igrzyska-hotels-image img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
}

/* ===========================
   CLASSIFICATION
=========================== */
.igrzyska-classification-section {
	position: relative;
}
.igrzyska-classification-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  margin: 0 auto;
}

.igrzyska-classification-table th,
.igrzyska-classification-table td {
  padding: 14px 24px;
  text-align: left;
  border-bottom: 1px solid #dce8f5;
  font-size: 16px;
}

.igrzyska-classification-table thead {
  background: #155091;
  border-radius: 16px 16px 0 0;
}
.igrzyska-classification-table th {
  color: #ffffff;
  font-weight: 600;
}
.igrzyska-classification-left {
	position: absolute;
    right: 0;
    top: 10%;
    height: 320px;

}
.igrzyska-classification-right {
	position: absolute;
    bottom: -10%;
    height: 320px;
	left: 0;
}

.igrzyska-rank {
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  width: 80px;
}

.igrzyska-rank-gold   { color: #c8a400; }
.igrzyska-rank-silver { color: #888888; }
.igrzyska-rank-bronze { color: #a0522d; }

.igrzyska-classification-table tr:hover td {
  background: #eef4fc;
}

.igrzyska-classification-images {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.igrzyska-classification-img {
  flex: 1 1 calc(50% - 12px);
  max-width: calc(50% - 12px);
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ===========================
   COMPETITIONS - TABS
=========================== */
.igrzyska-tabs-wrapper {
  width: 100%;
}

.igrzyska-tab-buttons,
.igrzyska-sub-tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.igrzyska-tab-buttons {
  border-bottom: 2px solid #dce8f5;
  padding-bottom: 0;
}

.igrzyska-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #272725;
  cursor: pointer;
  margin-bottom: -2px;
  width: 50%;
  transition: color 0.2s, border-color 0.2s;
}

.igrzyska-tab-btn.active {
    color: #fff;
    background: #155091;
    border-radius: 10px 0 0 0;
}
.igrzyska-tab-btn.active:nth-child(2) {
    border-radius: 0 10px 0 0;

}

.igrzyska-tab-panel {
  display: none;
  padding: 28px;
  border: 1px solid #dce8f5;
  border-radius: 0 0 10px 10px;
}

.igrzyska-tab-panel.active {
  display: block;
}

.igrzyska-sub-tab-buttons {
  border-bottom: 1px solid #dce8f5;
  margin-bottom: 20px;
}

.igrzyska-sub-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  width: 33.33%;
}

.igrzyska-sub-tab-btn.active {
  color: #155091;
  border-bottom-color: #155091;
}

.igrzyska-sub-tab-btn:hover {
  color: #155091;
}

.igrzyska-sub-tab-panel {
  display: none;
}

.igrzyska-sub-tab-panel.active {
  display: block;
}

.igrzyska-competition-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.igrzyska-competition-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #272725;
  list-style-type: none;
}
.igrzyska-competition-list li strong {
  color:#000;
  font-size: 24px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* ===========================
   BUS TIMETABLE
=========================== */
.igrzyska-bus-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.igrzyska-bus-list ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.igrzyska-bus-list li {
  border-bottom: 1px solid #dce8f5;
  padding-bottom: 16px;
}

.igrzyska-bus-stop {
  font-size: 16px;
  font-weight: 500;
  color: #272725;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.igrzyska-bus-stop img {
  height: 24px;
  width: 44px;
  margin-right: 8px;
  object-fit: contain;
}

.igrzyska-pdf-link {
  font-size: 14px;
  font-weight: 600;
  background: #E3000F;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  margin: 10px 0 0 50px;
  display: flex;
  width: 210px;
  justify-content: space-between;
  align-items: center;
}

.igrzyska-bus-image img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
}

/* ===========================
   FOOTER
=========================== */
.igrzyska-footer {
  background: #fff;
  padding: 28px 0;
}

.igrzyska-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid #ddd;
}

.igrzyska-footer-logo img {
  height: 87px;
  width: auto;
  object-fit: contain;
}

.igrzyska-footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.igrzyska-footer-links a {
  font-size: 16px;
  font-weight: 500;
  color: #272725;
  transition: color 0.2s;
}

.igrzyska-footer-links a:hover {
  border-bottom: 1px solid #155091;
  color: #155091;
}

.single-post .wp-block-group a {
  color: #E3000F;
  text-decoration: underline;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .igrzyska-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .igrzyska-section-heading {
    font-size: 28px;
  }

  .igrzyska-hero-inner {
    flex-direction: column;
    padding: 80px 24px 40px;
    gap: 32px;
  }

  .igrzyska-hero-left {
    text-align: center;
  }

  .igrzyska-hero-location {
    font-size: 36px;
  }

  .igrzyska-hero-date {
    font-size: 20px;
  }

  .igrzyska-nav-hamburger {
    display: flex;
  }

  .igrzyska-nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a6abf;
    padding: 12px 0 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .igrzyska-navbar--scrolled .igrzyska-nav-links {
    background: #0d3d6e;
  }

  .igrzyska-nav-links.is-open {
    display: flex;
  }

  .igrzyska-nav-links li {
    width: 100%;
    overflow: hidden;
  }

  .igrzyska-nav-links a {
    padding: 12px 24px;
    font-size: 16px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .igrzyska-nav-links li:last-child a {
    border-bottom: none;
  }

  .igrzyska-news-grid,
  .igrzyska-hotels-layout,
  .igrzyska-bus-layout {
    grid-template-columns: 1fr;
  }

  .igrzyska-agenda-desktop {
    display: none;
  }

  .igrzyska-agenda-mobile {
    display: block;
  }

  .igrzyska-footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .igrzyska-competition-list {
    grid-template-columns: 1fr;
    gap: 0px;
  }
  .igrzyska-agenda-item dt {
    width: 50px;
  }
}

@media (max-width: 480px) {
  .igrzyska-classification-right {
	display: none;
  }
  .igrzyska-classification-left {
	display: none;
  }
}
