:root {
  --bg-color-green: #2c5e23;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/font/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/font/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/font/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}



/* Reset + global */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font: 1rem Arial, sans-serif;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #dddddd;
}

/* Body as grid: header / main / footer */
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow-y: scroll;
}

a {
  text-decoration: none;
  color: #474b49;
}


/* Header + footer */
.topheader {
  position: sticky;
  top: 0;
  /* stick to the top */
  z-index: 1000;
  /* keep above content */
  background-color: #353535;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* soft shadow */
}


.header-container {
  display: flex;
  justify-content: left;
  align-items: center;
}

.footer {
  /* margin-top: 20px; */
  background-color: #2e2f36;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
}

/* Main content */
.strip {
  width: 100%;
  /* max-width: 1240px;
  max-width: 1800px; */
  max-width: 1600px;


  margin: 0 auto;
}

.strip-wrap {
  width: 100%;
  /* padding-top: 20px;
  padding-bottom: 20px; */
}

.strip-wrap.dark {
  background-color: #353535;
}

.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* main grows, footer stays at bottom */
  grid-template-columns: 1fr;
  min-height: 100vh;
  width: 100%;
}


/* Typography + tables */
h1 {
  user-select: none;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0px;
  text-transform: uppercase;
  text-align: left;
}

table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ccc;
}

td {
  color: #000;
  padding: 5px;
  overflow-wrap: break-word;
  white-space: pre-line;
}

th {
  background-color: #272935b6;
  color: #fff;
  padding: 5px;
}

tr {
  color: #000;
  background-color: #fff;
  padding: 5px;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/*gallery*/
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  /* všetky bunky rovnako veľké */
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border: 1px solid #333;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}


.sidebargrid {
  display: grid;
  grid-template-columns: 4fr 1fr;
  /* 4:1 ratio */
  gap: 2rem;
  /* optional space between columns */
  overflow: hidden;
  /* prevent the whole grid from scrolling */
}

.sidebargrid .sidebar {

  display: grid;
  grid-template-columns: 1fr;



  background-color: #353535;
  /* jeden stĺpec */
  gap: 10px;
  /* 1px "vnútorná medzera" medzi položkami */

  padding: 10px;
  /* vonkajšie odsadenie kontajnera */
  overflow-y: auto;
  /* scroll inside sidebar */
  max-height: 2550px;
  /* prevent it from stretching beyond grid height */

}

.sidebargrid .sidebar>h1 {
  color: #fff;
}




.articles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.article {
  user-select: none;
  color: #fff;
  background-color: #444444;
  border-radius: 12px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.article:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.article a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.article .img-wrapper>.header {
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 900;

  padding-top: .5rem;
  padding-bottom: .5rem;
  padding-left: 10px;
  padding-right: 10px;
  color: #fff;
  text-shadow: 1px 1px 3px rgb(0, 0, 0);

  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.article:hover .img-wrapper>.header {
  background-color: #000000AA;
}

.article .perex {
  margin-top: auto;
  font-weight: 200;
  font-size: .8rem;

  padding: 0 .625rem 0rem;
  padding-top: 10px;

  overflow: hidden;
  position: relative;

  height: 4rem;

  mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0) 100%);
}

.article .img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.article img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}


.article div {
  color: #fff;
}

.article .pata {
  width: 100%;
  display: flex;
  flex-direction: row;
  padding: 10px;
  padding-top: 5px;
  font-size: .8em;
}


.ma {
  grid-column: span 2;
  grid-row: 1 / span 1;
}

.ma .img-wrapper {
  aspect-ratio: 18 / 6;
}

.ma img {
  object-position: top center;
}















li {

  color: #fff;

}




.menu-container {
  /* background-color: #e6e9fa; */
  background: linear-gradient(to bottom, #ff0000, #800000);
  display: flex;
  justify-content: center;
}

.menu {
  display: flex;
  padding: 10px;
  gap: 20px;
}

.menu-item {
  position: relative;
}

.menu-item>a {
  color: rgb(230, 230, 230);
  text-decoration: none;
  padding: 8px 12px;
  display: inline-block;
  font-weight: bold;
  text-transform: uppercase;
}

.menu-item:hover {
  background: #ccc;

  border-radius: 6px;
}

.menu-item>a:hover {
  /* background: #ccc; */
  color: #000;
  /* border-radius: 6px; */
}

/* Submenu styling */
.submenu {
  display: flex;
  position: absolute;
  top: 100%;
  /* below parent item */
  left: 0;
  flex-direction: column;
  /* 👈 vertical layout */
  background: #eee;
  padding: 10px;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
  border-radius: 8px;
  z-index: 10;
}

/* Show submenu on hover */
.menu-item:hover>.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu links */
.submenu a {
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
}

.submenu a:hover {
  color: #ed1c24;
}

.articleview {
  margin-bottom: 3rem;
}

.articleview>p {
  font-size: 1.2rem;
  line-height: 2rem;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #fff;
}

.articleview img {
  width: 100%;
  padding: 1rem;
  padding-bottom: 0rem;
  display: block;
  max-width: 100%;
  height: auto;
  background: rgb(41, 41, 41);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 0rem;
  border-top-left-radius: 2rem;

  border-top-right-radius: 2rem;
  margin-top: 2rem;
  pointer-events: none;
}



img+small {
  color: #fff;
  display: flex;
  /* ZMENA */
  justify-content: space-between;
  /* ZMENA */
  align-items: center;
  font-size: 1rem;
  position: relative;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgb(41, 41, 41);
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}


.rubriky {
  display: flex;
  justify-content: center;
  gap: 2px;
  z-index: 100;
  margin-top: 10px;
 margin-bottom: 10px;
}

/* Buttons */
.rubriky-btn {
  text-decoration: none;
  /* color: #333; */
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 5px;
  margin-left: 1px;
  /* background: #fff; */
  border: 1px solid #777777;
  /* border-top: 0px; */
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Hover effect */
.rubriky-btn:hover {
  background: #eee;
  color: #000;
  z-index: 102;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); */
}

/* Active (selected) state */
.rubriky-btn.active {
  background: #ed1c24;
  z-index: 101;
  color: white;
  border-color: #ed1c24;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: default;

}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: left;
  align-items: center;
  padding: 10px 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.breadcrumb>.crumb {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
}

.breadcrumb>.delimiter {
  color: red;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.pagination a,
.pagination span {
  padding: 6px 12px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #fff;
}

.pagination a:hover {
  background: #f0f0f0;
}

.pagination a.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

.pagination .dots {
  color: #fff;
  user-select: none;
}

.pagination .prev,
.pagination .next {
  font-weight: bold;
}

/* ========================================= */
/* 📱 Mobile responsive layout for asf.zxc.sk */
/* ========================================= */
@media (max-width: 1647px) {

  .articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 2rem;
    padding: 10px;
  }






}


@media (max-width: 1290px) {

  .articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }



}


.loadMoreButton {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.loadMoreButton a {
  background: linear-gradient(135deg, #d72638, #a1121e);
  color: white;
  text-decoration: none;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(215, 38, 56, 0.4);
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.loadMoreButton a:hover {
  background: linear-gradient(135deg, #e53646, #b31622);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(215, 38, 56, 0.6);
}

.loadMoreButton a:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(215, 38, 56, 0.4);
}





/* .my-carousel {
  overflow: hidden;
  width: 100%;
  height: 250px;
}

.my-carousel .swiper {
  height: 100%;
}

.my-carousel .swiper-slide {
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 8px;
} */


.carousel {
  overflow: hidden;
  /* width: 100%; 
  max-width: 900px;  */
  margin: 0 auto;
  height: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  cursor: grab;
  user-select: none;
}

.carousel-track.dragging {
  user-select: none;
  cursor: grabbing;
}

.slide {
  flex: 0 0 calc(100% / 3);
  /* 3 slides per viewport */
  /* user-select: none; */
  /* box-sizing: border-box;
  padding: 1rem;
  text-align: center;
  background: #333;
  color: #fff;
  font-size: 2rem;
  border-right: 1px solid #555;   */


}


.slide img {

  width: 100%;
  height: 100%;


}