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

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* BODY */
body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  font-size: 20px;
  scroll-behavior: smooth; /* za gladko premikanje */
  min-height: 100vh;
  scroll-snap-type: y mandatory;
  background-color: #e3e3e3;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  background: url("slike/novidom1.png") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.hero-text {
  position: absolute;
  bottom: 15%;
  left: 50px;
  z-index: 2;
  max-width: 500px;
  animation: slideLeftToRight 0.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

@keyframes slideLeftToRight {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #222;
}

.hero-text .btn-contact {
  font-size: 1.3rem;
  padding: 12px 24px;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: relative;
  z-index: 10;
  background-color: #e3e3e3;
}

header img {
  height: 60px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: #d00;
}

.btn-contact {
  padding: 8px 16px;
  background: black;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-contact:hover {
  background: #d00;
}

/* MOBILE MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  font-size: 2rem;
  padding: 0.5rem;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #000;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(219, 39, 39);
  padding: 80px 30px 30px 30px;
  z-index: 1000;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.show {
  display: flex;
  transform: translateX(0);
}

.mobile-menu.hide {
  transform: translateX(100%);
}

.mobile-menu a {
  padding: 15px 0;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  cursor: pointer;
  font-weight: bold;
  color: #000;
}

/* NEW SLIDE (Video + content) */
.new-slide {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  text-align: center;
  scroll-snap-align: start;
  overflow: hidden; /* da video ne štrli ven */
}

.new-slide video.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.new-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.new-slide h2,
.new-slide p,
.new-slide .news-wrapper {
  position: relative;
  z-index: 2;
}

section.new-slide h2 {
  font-size: 3rem;
}

/* NEWS WRAPPER in CONTAINER */
.news-wrapper {
  position: relative; /* za puščice absolutno glede na wrapper */
  width: 100%;
  max-width: 1400px; /* lahko nastaviš širino po želji */
  margin: 0 auto;
}

.news-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: hidden;
  gap: 20px;
  padding: 20px 0;
  scroll-behavior: smooth;
  width: 100%;
  height: 500px; /* povečano zaradi slike in več vsebine */
  scroll-snap-type: x mandatory;
  box-sizing: border-box;
  position: relative;
}

.news-item {
  flex: 0 0 calc(33.333% - 14px);
  background: rgb(255, 255, 255);
  border-radius: 12px;
  padding: 15px 20px 20px 20px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.1);
  text-align: left;
  font-size: 1rem;
  height: 400px;
  box-sizing: border-box;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-container::before {
  content: "";
  flex: 0 0 calc(65% / 2); /* Polovica širine enega elementa */
}

.news-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.news-item h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #d00;
}

.news-item p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 12px;
  flex-grow: 1;
}

.news-item .read-more {
  display: inline-block;
  font-size: 1rem;
  color: #d00;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  align-self: flex-start;
  margin-top: auto;
}

.news-item .read-more:hover {
  color: #a00;
}

/* Puščice - pozicionirane znotraj .news-wrapper */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent; /* odstrani ozadje */
  border: none; /* brez obrobe */
  color: white; /* barva puščice */
  font-size: 4rem;
  cursor: pointer;
  z-index: 10;
  padding: 0; /* brez notranjega razmika */
  line-height: 1;
  user-select: none;
}

.arrow-left {
  left: 0; /* tik ob levi strani .news-wrapper */
  margin-left: -60px; /* pomaknemo malo ven iz containerja */
}

.arrow-right {
  right: 0; /* tik ob desni strani .news-wrapper */
  margin-right: -60px;
}

/* ABOUT SLIDE */
.about-slide {
  padding: 3rem 1rem;
  gap: 1.5rem;
  min-height: 100vh; /* namesto height */
  overflow-y: visible; /* tako da lahko footer pride ven */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

/* ABOUT CONTAINER */
.about-container {
  display: flex;
  align-items: center; /* vertikalna poravnava */
  justify-content: flex-start; /* vsebina na levo */
  gap: 4rem; /* povečal razmik med sliko in tekstom */
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* ABOUT IMAGE */
.about-image {
  flex: 0 0 50%; /* slika zavzame 50% širine */
  max-width: 800px;
  position: relative;
  overflow: visible;
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  position: relative;
  z-index: 2;
}

/* DIAGONAL LINES */
.diagonal-line {
  position: absolute;
  width: 40%;
  height: 6px;
  background-color: #d00;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
  border-radius: 3px;
}

.diagonal-line.line-1 {
  left: -10%;
  bottom: 10%;
}

.diagonal-line.line-2 {
  width: 30%;
  left: -7%;
  bottom: 5%;
}

.diagonal-line.top-right-1 {
  right: -10%;
  top: 10%;
}

.diagonal-line.top-right-2 {
  width: 30%;
  right: -7%;
  top: 5%;
}

/* ABOUT TEXT */
.about-text {
  flex: 1 1 200px;
  margin-top: 30px;
}

.about-text h2 {
  color: #d00;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.btn-contact {
  display: inline-block;
  background-color: #d00;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-contact:hover {
  background-color: #a00;
}

/* ABOUT EXTRA */
.about-extra {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 2rem;
  max-width: 1400px;
  width: 100%;
  margin: 60px auto 0 auto;
  padding: 0 2rem;
}

.extra-box {
  flex: 1 1 0;
  min-width: 0;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.extra-box img {
  margin-top: 1rem;
  max-width: 100px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.extra-box h3 {
  color: #d00;
  margin-bottom: 1rem;
}

.extra-box a {
  display: inline-block;
  margin: 0.3rem 0;
  color: #0645ad;
  text-decoration: underline;
  font-size: 1rem;
}

.extra-box img.img-100 {
  max-width: none;
  width: 150px;
  height: auto;
}

.map-frame {
  width: 100%;
  max-width: 100%;
  height: 250px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}


/* ANIMACIJA ZA ABOUT SLIDE (opacity + transform) */
.about-slide .about-image,
.about-slide .about-text,
.about-slide .about-extra > div {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0s;
}

.about-slide .about-image {
  transform: translateX(-50px);
  transition-delay: 0s;
}

.about-slide .about-text {
  transform: translateX(50px);
  transition-delay: 0.3s;
}

.about-slide.animate .about-image,
.about-slide.animate .about-text,
.about-slide.animate .about-extra > div {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.about-slide.animate .about-extra > div:nth-child(1) {
  transition-delay: 0.6s;
}

.about-slide.animate .about-extra > div:nth-child(2) {
  transition-delay: 0.8s;
}

.about-slide.animate .about-extra > div:nth-child(3) {
  transition-delay: 1s;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2em 0;
  border-top: 1px solid #eee;
  font-size: 0.9em;
}
