:root {
  --bg: #e8d8d0;
  --txt: #1b1b1b;
  --prim: #c94f2d;
  --sec: #9e3a1e;
  --acc: #d9cab3;
  --white: #ffffff;
  --input-bg: #e6d5cd;
  --orange: #f47c4b;
  --orange-hover: #e86c3d;
  --text-dark: #3a2d2d;
  --text-bold: #1d1d1d;
  --font-brockmann: 'Brockmann', sans-serif;
  --font: var(--font-brockmann);
}

/* Rahlo manjše privzeto merilo brez lomljenja 100vw/100vh elementov. */
html {
  font-size: 90%;
}

/* === OSNOVNI SLOG === */
body {
  font-family: var(--font-brockmann);
  background-color: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  padding-top: 8rem;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--acc);
}

/* === HEADER & NAVIGACIJA === */
.site-header {
  background-color: var(--prim);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background-image: none;
  height: 7rem;
}
.header-container {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 1rem;
  gap: 10rem;
}
.logo {
  position: relative;
  top: 4px;
  margin-left: 0;
  margin-right: auto;
}
.logo img {
  width: 78px;
  height: 78px;
}
.main-nav ul {
  display: flex;
  gap: 2rem;
  background-color: var(--prim);
  padding: 1rem 2rem;
  font-family: var(--font);
  list-style: none;
}
.main-nav li {
  position: relative;
  list-style: none;
}
.main-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-block;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.1rem;
}
.main-nav a.active {
  color: var(--white);
  text-decoration: none;
}
.main-nav a:hover {
  background-color: var(--orange-hover);
  border-radius: 4px;
}

.main-nav a:visited,
.main-nav a:focus,
.main-nav a:active {
  color: var(--white);
  text-decoration: none;
}

/* === DROPDOWN MENU === */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--prim);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s;
}
.dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  font-family: 'Playfair Display', serif;
}
.dropdown-menu a:hover {
  background-color: var(--orange-hover);
}

/* === HERO SLIDER === */
.hero-slider {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* === Slide Content === */
.slide-content {
  position: absolute;
  bottom: 4rem;
  left: 4rem;
  color: white;
  max-width: 40%;
  z-index: 2;
  background: none;
  padding: 0;
  text-align: left;
  line-height: 1.4;
}

.slide-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.slide-content .btn {
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.slide-content .btn:hover {
  background-color: var(--orange);
  color: white;
}

/* === Navigation Arrows === */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 3;
}

.slider-arrow.prev {
  left: 1rem;
}

.slider-arrow.next {
  right: 1rem;
}

/* === AKTIVNOSTI === */
.aktivnosti-section {
  background-image: none;
  background-repeat: repeat, no-repeat;
  background-size: 160px auto, cover;
  background-position: center, center;
  position: relative;
  z-index: 0;
  padding: 1.5rem 1rem 4rem;
  padding-bottom: 4rem;
  text-align: center;
  width: 100%;
}
/* Update aktivnosti-section heading style */
.aktivnosti-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 0rem;
}
.aktivnosti-section .subtitle {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}
.aktivnosti-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  z-index: 0;
}

.aktivnosti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  min-height: 400px;
}

.aktivnosti-card {
  background-color: transparent;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  padding: 0;
}
.aktivnosti-card:hover {
  transform: translateY(-6px);
}
.aktivnosti-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.aktivnosti-card p {
  margin: 0;
  background-color: var(--orange);
  padding: 1rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-bold);
  text-align: center;
  line-height: 1.2;
  display: block;
  border-radius: 0 0 12px 12px;
}

/* === KONTAKT === */
.kontakt-wrapper {
  background-color: var(--bg);
  padding: 0.5rem 0.25rem;
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-left: 1rem; /* added line to align with the "aktivnosti" section */
}

.kontakt-wrapper > div {
  display: flex;
  max-width: 550px;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  background-color: transparent;
}

.kontakt-levo {
  flex: 1;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kontakt-levo h2 {
  font-size: 2.2rem;
  color: var(--prim);
  margin-bottom: 0.5rem;
}

.kontakt-levo .subtitle {
  font-weight: bold;
  color: var(--text-bold);
  margin-bottom: 2rem;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font);
  background-color: var(--input-bg);
  border: none;
  border-radius: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.kontakt-form textarea {
  height: 160px;
  resize: none;
}

.kontakt-form button {
  background-color: var(--orange);
  color: var(--text-bold);
  padding: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.kontakt-form button:hover {
  background-color: var(--orange-hover);
  color: white;
}

.kontakt-desno {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kontakt-desno img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsivnost */
@media (max-width: 900px) {
  .kontakt-wrapper > div {
    flex-direction: column;
  }

  .kontakt-desno {
    order: -1;
    height: 250px;
  }
}
/* === FOOTER === */
.footer-banner {
  background-color: var(--prim);
  color: white;
  padding: 2rem 1rem;
  margin-top: 3rem;
  background-image: none;
}
.footer-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer-col a {
  color: white;
  font-size: 0.95rem;
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.footer-col li {
  list-style-type: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .aktivnosti-grid {
    grid-template-columns: 1fr;
  }
  .kontakt-wrapper {
    flex-direction: column;
    text-align: center;
  }
}
.logo-clicked {
  animation: growLogo 0.4s ease;
}

@keyframes growLogo {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.aktivnosti-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('fotografije/ozadje-kosir.png') center center / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.logo-clicked {
  transform: scale(10);
  transition: transform 0.5s ease;
  transform-origin: center center;
}

/* Reset za celoten dokument */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.dogodki-section {
  background-color: var(--prim);
  color: white;
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
}

.dogodki-custom-layout {
  display: grid;
  grid-template-columns: 30% 40% 30%;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  align-items: center;
  position: relative;
}

/* Added styles for left-dogodki */
.left-dogodki {
  position: relative;
  z-index: 1;
  padding: 0 1rem 1rem;
}

.left-dogodki h2 {
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.85;
  margin-bottom: 0.25rem;
  margin-top: -9rem;
  color: white;
}

.left-dogodki .subtitle {
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 0;
  color: white;
  margin-bottom: 2rem;
}

.dogodki-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../fotografije/pattern.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 0;
  height: 100%;
  min-height: 700px;
}

.middle-dogodki {
  display: flex;
  justify-content: center;
  align-items: center;
}
.middle-dogodki .carousel-image {
  margin-right: 2rem;
  margin-left: -4rem;
}

.middle-dogodki .carousel-image img {
  width: 90%;
  max-width: 90%;
  height: auto;
  max-height: 90%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  margin: 0 auto;
}

.right-dogodki .carousel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
}

.right-dogodki .carousel-text .datum {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
}

.right-dogodki .carousel-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.right-dogodki .carousel-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Replaced .right-dogodki .carousel-text .btn with shared a.btn style */
a.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  background-color: #f3956b;
  color: black;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
  width: fit-content;
  font-family: var(--font);
}

a.btn:hover {
  background-color: #e07a4b;
  color: black;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  outline: none;
}

.carousel-prev {
  left: -105px;
}

.carousel-next {
  right: -105px;
}

@media (max-width: 768px) {
  .dogodki-custom-layout {
    flex-direction: column;
  }

  .carousel-slide {
    flex-direction: column;
  }

  .carousel-image img {
    max-width: 100%;
  }

  .carousel-prev,
  .carousel-next {
    top: unset;
    bottom: -3rem;
    transform: none;
  }

  .carousel-prev {
    left: 1rem;
  }

  .carousel-next {
    right: 1rem;
  }
}

/* === Override all .main-nav a states to enforce white color === */
.main-nav a,
.main-nav a:visited,
.main-nav a:focus,
.main-nav a:active {
  color: var(--white) !important;
  text-decoration: none !important;
}

/* === POSEBEN DOGODEK === */
.poseben-dogodek {
  background-color: #b54c2c;
  color: white;
  padding: 2rem;
  border-radius: 8px;
  font-family: var(--font);
}

.poseben-dogodek .datum {
  font-weight: 800;
  color: white;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.poseben-dogodek h3 {
  color: #dc8462;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.poseben-dogodek p {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.poseben-dogodek .btn {
  background-color: #f3956b;
  color: black;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1rem;
}

.poseben-dogodek .btn:hover {
  background-color: #e07a4b;
}

/* Added styles for .dogodek-kosir */
.dogodek-kosir {
  max-width: 800px;
  margin: 4rem auto 4rem;
  padding: 3rem 2rem;
  background-color: #f4e9dc;
  border: 1px solid #d4bfa9;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: 'Playfair Display', serif;
  line-height: 1.8;
  color: #3a2d2d;
}

.dogodek-kosir h1 {
  font-size: 1.8rem;
  text-align: center;
  color: #1d1d1d;
  margin-bottom: 1.5rem;
}

.dogodek-kosir h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #8c6d5a;
}

.dogodek-kosir p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.dogodek-kosir strong {
  font-weight: bold;
}

.dogodek-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.image-content {
  float: right;
  max-width: 280px;
  margin: 0 0 1.5rem 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .image-content {
    float: none;
    display: block;
    margin: 1.5rem auto;
  }
}
.header-contact span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9rem;
  gap: 0.3rem;
  color: var(--white);
}

.header-contact a,
.header-contact a:visited,
.header-contact a:hover,
.header-contact a:focus,
.header-contact a:active {
  color: var(--white) !important;
  text-decoration: none;
}
