/* Flatpickr header identičan kao na Nastupi i Obrazac za mladence */
/* Flatpickr header identičan kao na Nastupi i Obrazac za mladence */
.flatpickr-calendar .flatpickr-months {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 100% !important;
  min-height: 2.7em !important;
  gap: 1.2em !important;
  background: transparent !important;
  box-shadow: none !important;
}
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  position: static !important;
  min-width: 2.2em !important;
  min-height: 2.2em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0.2em 0.5em !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #ffe066 !important;
  z-index: 2 !important;
  font-size: 1.3em !important;
  transition: background 0.15s !important;
}
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover {
  background: #ffe06622 !important;
}
.flatpickr-calendar .flatpickr-months .flatpickr-month {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.flatpickr-calendar .custom-month-year-label {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffe066 !important;
  font-weight: 700 !important;
  font-size: 1.3em !important;
  letter-spacing: 1.5px !important;
  user-select: none !important;
  background: transparent !important;
  pointer-events: none !important;
  height: 2.2em !important;
  width: max-content !important;
  z-index: 2 !important;
}
/* Osnovni layout */
main {
  padding: 20px;
}

/* Responsive main padding */
@media (max-width: 768px) {
  main {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 5px;
  }
}

/* Sekcija za cover sliku */
.cover-pic {
  background: none;
  height: 830px;
  text-align: center;
  overflow: hidden;
  position: relative;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.cover-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.1) contrast(1.12);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* Hero overlay content - only visible on desktop/tablet */
.cover-overlay {
  position: absolute;
  top: 22%;
  left: 49%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  color: #ffe066;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 1.5px;
}

.hero-subtitle {
  color: #e0e0e0;
  font-size: 1.3rem;
  margin: 0 0 2rem 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.4;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-block;
  background: #ffe066;
  color: #232526;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 0.5px;
}

.hero-btn:hover {
  background: #fff;
  color: #232526;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 224, 102, 0.4);
}

/* Stilovi za provjeru termina */
.provjera-termina-box {
  max-width: 1920px;
  margin: 3.5rem auto 0 auto;
  /* Use bottom gradient color */
  background: #232526;
  border-radius: 22px;
  /* Unified depth shadow */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.35);
  padding: 3rem 2.5rem 2.2rem 2.5rem;
  text-align: center;
  position: relative;
}
.provjera-termina-box:hover {
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.provjera-naslov {
  color: #ffe066;
  font-size: 2rem;
  margin-bottom: 1.1rem;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.provjera-opis {
  color: #e0e0e0;
  font-size: 1.15rem;
  margin-bottom: 1.7rem;
  line-height: 1.6;
}

#provjera-termina-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.provjera-label {
  color: #ffe066;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.provjera-datum-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #232526;
  border-radius: 10px;
  border: 2px solid #ffe066cc;
  padding: 0.7rem 2.2rem;
  margin: 0.5rem 0;
  width: 100%;
  max-width: 350px;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  position: relative;
}
.provjera-datum-container:hover,
.provjera-datum-container:focus-within {
  border: 2px solid #ffe066;
  box-shadow: 0 4px 18px #ffe06633;
}

#provjera-datum {
  background: transparent;
  border: none;
  color: #ffe066;
  font-size: 1.25rem;
  outline: none;
  width: 100%;
  cursor: pointer;
  padding: 0;
  margin: 0;
  text-align: center;
  caret-color: transparent;
}
#provjera-datum::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(10deg);
  cursor: pointer;
}
#provjera-datum:focus {
  outline: none;
}
#provjera-termina-form button.provjera-btn {
  background: #ffe066;
  color: #232526;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2.2rem;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0002;
  margin-top: 0.5rem;
}
#provjera-termina-form button.provjera-btn:hover {
  background: #fff;
  color: #232526;
  box-shadow: 0 4px 18px #ffe06633;
}
#provjera-odgovor {
  margin-top: 1.2rem;
  font-size: 1.18rem;
  min-height: 2.2em;
}
.zauzeto {
  color: #ff4d4d;
  font-weight: 700;
}
.slobodno {
  color: #4dff7a;
  font-weight: 700;
}
.provjera-napomena {
  margin-top: 1.7rem;
  color: #ffe066;
  font-size: 1.05rem;
  background: transparent;
  padding: 0.7em 1em;
  display: inline-block;
}
.provjera-napomena a {
  color: #ffe066;
  text-decoration: underline;
  font-weight: 500;
}
.provjera-napomena a:hover {
  color: #fff;
}

/* Medium devices - 500px to 700px (pokazati glavu bubnjara) */
@media (max-width: 700px) and (min-width: 500px) {
  .cover-pic img {
    object-fit: cover;
    object-position: center 30% !important; /* Spusti sliku niže da se vidi glava bubnjara */
  }
}

@media (max-width: 700px) {
  /* Hide hero overlay when mobile image is used */
  .cover-overlay {
    display: none;
  }

  .provjera-termina-box {
    margin: 2rem auto 0 auto;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  #provjera-termina-form {
    max-width: 98vw;
  }
}

/* RESPONSIVE STYLES */

/* Tablet */
@media (max-width: 900px) {
  .cover-pic {
    height: 650px;
  }

  .cover-pic img {
    object-fit: cover;
    object-position: center;
  }

  /* Responsive hero adjustments for tablet */
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }

  .provjera-termina-box {
    margin: 2rem -20px 0 -20px; /* main padding još uvijek 20px */
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }

  .provjera-naslov {
    font-size: 1.7rem;
  }

  .provjera-opis {
    font-size: 1.05rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .cover-pic {
    height: 500px;
    border-radius: 0 0 25px 25px;
  }

  .cover-pic img {
    object-fit: cover;
    object-position: center top; /* Uzmi sliku iz VRHA - da se vidi glava */
    width: 100%;
    height: 100%;
  }

  /* Hero adjustments for 768px screens */
  .cover-overlay {
    left: 51%;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
  }

  .hero-btn {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }

  .provjera-termina-box {
    margin: 1.5rem auto 0 auto;
    padding: 1.5rem 1rem 1rem 1rem;
  }

  .provjera-naslov {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .provjera-opis {
    font-size: 1rem;
    margin-bottom: 1.3rem;
    line-height: 1.5;
  }

  .provjera-datum-container {
    max-width: 100%;
    padding: 0.6rem 1.5rem;
  }

  #provjera-datum {
    font-size: 1.1rem;
  }

  #provjera-termina-form button.provjera-btn {
    padding: 0.6rem 1.8rem;
    font-size: 1.05rem;
  }
}

/* Medium tablets/small laptops - 642px */
@media (max-width: 642px) and (min-width: 425px) {
  .cover-pic {
    height: 450px;
  }

  .cover-pic img {
    object-fit: cover;
    object-position: center 35% !important; /* Spusti sliku da se vidi glava kolege */
    width: 100%;
    height: 100%;
  }

  /* Hero adjustments for 642px screens */
  .cover-overlay {
    left: 55%;
  }

  .hero-title {
    font-size: 2rem;
    margin: 0 0 0.8rem 0;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin: 0 0 1.3rem 0;
  }

  .hero-btn {
    padding: 0.65rem 1.6rem;
    font-size: 0.95rem;
  }

  .provjera-termina-box {
    padding: 1.3rem 0.8rem 0.8rem 0.8rem;
  }

  .provjera-naslov {
    font-size: 1.4rem;
  }

  .provjera-opis {
    font-size: 0.95rem;
  }
}

/* Smaller devices - less than 425px */
@media (max-width: 424px) {
  .cover-pic {
    height: 450px;
  }

  .cover-pic img {
    object-fit: cover;
    object-position: center 35% !important; /* Spusti sliku da se vidi glava kolege */
    width: 100%;
    height: 100%;
  }

  /* Hero adjustments for smaller screens */
  .cover-overlay {
    left: 55%;
  }

  .hero-title {
    font-size: 2rem;
    margin: 0 0 0.8rem 0;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin: 0 0 1.3rem 0;
  }

  .hero-btn {
    padding: 0.65rem 1.6rem;
    font-size: 0.95rem;
  }

  .provjera-termina-box {
    padding: 1.3rem 0.8rem 0.8rem 0.8rem;
  }

  .provjera-naslov {
    font-size: 1.4rem;
  }

  .provjera-opis {
    font-size: 0.95rem;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .cover-pic {
    height: 400px;
    border-radius: 0 0 20px 20px;
  }

  .cover-pic img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }

  .provjera-termina-box {
    margin: 1rem auto 0 auto;
    padding: 1.2rem 0.8rem 0.8rem 0.8rem;
  }

  .provjera-naslov {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .provjera-opis {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .provjera-datum-container {
    padding: 0.5rem 1rem;
  }

  #provjera-datum {
    font-size: 1rem;
  }

  #provjera-termina-form button.provjera-btn {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }

  .provjera-napomena {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* Poboljšan UX za datum input: cijeli prostor je klikabilan i otvara kalendar */
.provjera-datum-container {
  cursor: pointer;
}
.provjera-datum-container input[type="date"] {
  width: 100%;
  background: transparent;
  color: #ffe066;
  border: none;
  font-size: 1.1rem;
  padding: 0.7em 0.5em;
  outline: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  caret-color: transparent;
}
.provjera-datum-container input[type="date"]::-webkit-input-placeholder {
  color: #ffe06699;
}
.provjera-datum-container
  input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(80%) sepia(80%) saturate(300%) hue-rotate(10deg);
  cursor: pointer;
}

/* Stil za fake button koji prekriva cijeli container i omogućuje klik bilo gdje za otvaranje kalendara */
#provjera-datum-fake-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  margin: 0;
}

/* TRI GLAVNE KARTICE - FEATURES SECTION */
.features-section {
  padding: 4rem 0;
  background: #181c22;
  margin: 3.5rem auto 0 auto;
  max-width: 1920px;
  border-radius: 22px;
  /* Unified depth shadow */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.features-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature-card {
  background: rgba(34, 34, 34, 0.96);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(255, 224, 102, 0.1);
  overflow: hidden;
  width: 300px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 224, 102, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(255, 224, 102, 0.2);
  border-color: rgba(255, 224, 102, 0.3);
}

.feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1) saturate(1.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover img {
  filter: brightness(1) contrast(1.2) saturate(1.3);
  transform: scale(1.05);
}

.feature-card .card-content {
  padding: 2rem 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #ffe066;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px #000, 0 0 8px #1f1f1f;
}

.feature-card p {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  min-height: 48px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.feature-card .btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #ffe066 0%, #ffd700 100%);
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 16px rgba(255, 224, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.feature-card .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.feature-card .btn:hover::before {
  left: 100%;
}

.feature-card .btn:hover {
  background: linear-gradient(135deg, #fff 0%, #ffe066 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 224, 102, 0.4);
}

/* RESPONSIVE DESIGN ZA KARTICE */
/* Veliki ekrani - 4 kartice u nizu */
@media (min-width: 1201px) {
  .features-container {
    max-width: 1400px;
    gap: 1.8rem;
  }
  .feature-card {
    width: 300px;
  }
}

/* Srednji ekrani - 2 kartice po redu */
@media (max-width: 1200px) and (min-width: 769px) {
  .features-container {
    max-width: 800px;
    gap: 2rem;
  }
  .feature-card {
    width: 350px;
  }
}

/* Tablete i manji ekrani - 2 kartice po redu, manje */
@media (max-width: 900px) and (min-width: 769px) {
  .features-section {
    padding: 3rem 0;
    margin: 3.5rem auto 0 auto;
  }

  .features-container {
    gap: 1.5rem;
  }

  .feature-card {
    width: 320px;
  }

  .feature-card img {
    height: 200px;
  }
}

/* Mobilni - pojedinačne kartice */
@media (max-width: 768px) {
  .features-section {
    margin: 3.5rem auto 0 auto;
  }

  .features-container {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .feature-card {
    width: 94%;
    max-width: 400px;
  }

  /* Match Duo hero card width to feature cards on mobile */
  .duo-card {
    width: 94%;
    max-width: 400px;
  }

  /* Slightly taller images for better visibility on mobile */
  .feature-card img,
  .duo-card img {
    height: 240px;
  }

  .feature-card .card-content {
    padding: 1.5rem 1rem;
  }

  .feature-card h3 {
    font-size: 1.7rem;
  }

  .feature-card p {
    font-size: 1rem;
    min-height: auto;
  }
}

/* Mobile features responsive */
@media (max-width: 480px) {
  .features-section {
    margin: 3.5rem auto 0 auto;
  }
}

/* BRZI LINKOVI / KARTICE */
.brzi-linkovi-section {
  margin: 2.5rem auto 2.5rem auto;
  max-width: 900px;
  text-align: center;
}
.brzi-linkovi-grid {
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.brza-kartica {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(120deg, #232323f2 60%, #181818e6 100%);
  border-radius: 18px;
  box-shadow: 0 4px 18px #0003;
  padding: 2.2rem 2.2rem 1.5rem 2.2rem;
  text-align: center;
  color: #ffe066;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  min-width: 220px;
  min-height: 220px;
  height: 240px;
  max-height: 320px;
  aspect-ratio: 4/3;
}
.brza-kartica:hover {
  transform: scale(1.06) translateY(-6px);
  box-shadow: 0 8px 32px #ffe06655, 0 2px 12px #0004;
  background: linear-gradient(120deg, #ffe06633 60%, #181818e6 100%);
  color: #fff;
}
.kartica-ikona {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  display: block;
}
.kartica-naslov {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}
.kartica-opis {
  font-size: 1rem;
  font-weight: 400;
  color: #fffbe6;
  opacity: 0.92;
  margin-top: 0.2rem;
}
@media (max-width: 700px) {
  .brzi-linkovi-grid {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .brza-kartica {
    min-width: 0;
    width: 90vw;
    max-width: 400px;
    min-height: 140px;
    height: 32vw;
    max-height: 240px;
    aspect-ratio: 4/3;
    padding: 1.5rem 1rem 1rem 1rem;
  }
}

/* KONTAKT + DRUŠTVENE MREŽE SEKCIJA */
.kontakt-drustvene-section {
  margin: 2.5rem auto 2.5rem auto;
  max-width: 900px;
  text-align: center;
  background: linear-gradient(120deg, #232323f2 60%, #181818e6 100%);
  border-radius: 18px;
  box-shadow: 0 4px 18px #0003;
  padding: 2.2rem 2.2rem 1.5rem 2.2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kontakt-drustvene-naslov {
  color: #ffe066;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 12px #000, 0 0 8px #1f1f1f;
}
.kontakt-drustvene-tekst {
  color: #e0e0e0;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  text-shadow: 0 2px 8px #000a;
}
.kontakt-drustvene-gumb {
  background: #ffe066;
  color: #232526;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2.2rem;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s;
  box-shadow: 0 2px 8px #0002;
  margin-top: 0.5rem;
  text-decoration: none;
  display: inline-block;
}
.kontakt-drustvene-gumb:hover {
  background: #fff;
  color: #232526;
  box-shadow: 0 4px 18px #ffe06633;
  transform: scale(1.07);
}
.kontakt-drustvene-ikone {
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
}
.kontakt-drustvena-ikona {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #232323;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s, filter 0.18s;
  text-decoration: none;
  filter: grayscale(0.2) brightness(0.95);
}
.kontakt-drustvena-ikona svg {
  width: 36px;
  height: 36px;
  transition: filter 0.18s;
}
.kontakt-drustvena-ikona:hover {
  background: #ffe066;
  box-shadow: 0 8px 32px #ffe06655, 0 2px 12px #0004;
  transform: scale(1.18) rotate(-6deg);
  filter: grayscale(0) brightness(1.1);
}
.kontakt-drustvena-ikona:hover svg path,
.kontakt-drustvena-ikona:hover svg rect,
.kontakt-drustvena-ikona:hover svg circle {
  stroke: #232323;
  fill: #232323;
}
.kontakt-drustvena-ikona.instagram {
  position: relative;
  overflow: visible;
}
.kontakt-drustvena-ikona.instagram::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: none;
  transition: background 0.18s;
  z-index: 0;
}
.kontakt-drustvena-ikona.instagram:hover::before {
  background: #ffe066;
  box-shadow: 0 8px 32px #ffe06655, 0 2px 12px #0004;
}
.kontakt-drustvena-ikona.instagram svg {
  position: relative;
  z-index: 1;
  transition: filter 0.18s;
  filter: none;
}
.kontakt-drustvena-ikona.instagram:hover svg rect,
.kontakt-drustvena-ikona.instagram:hover svg circle {
  stroke: #232323;
  fill: none;
}
.kontakt-drustvena-ikona.instagram:hover svg circle:last-child {
  fill: #232323;
  stroke: none;
}
@media (max-width: 700px) {
  .kontakt-drustvene-section {
    padding: 1.5rem 1rem 1rem 1rem;
  }
  .kontakt-drustvene-ikone {
    gap: 1.2rem;
  }
  .kontakt-drustvena-ikona {
    width: 44px;
    height: 44px;
  }
  .kontakt-drustvena-ikona svg {
    width: 28px;
    height: 28px;
  }
}

.mini-galerija-section,
.brzi-linkovi-section,
.kontakt-drustvene-section {
  max-width: 900px;
  margin: 2.5rem auto 2.5rem auto;
  text-align: center;
}

@media (max-width: 950px) {
  .mini-galerija-section,
  .brzi-linkovi-section,
  .kontakt-drustvene-section {
    max-width: 98vw;
  }
}

/* DUO SIRIUS - ČIST CONTAINER */
.duo-container {
  /* Solid pozadina - mid color between #181c22 and #232526 */
  background: #1e2124;
  border-radius: 28px;
  /* Unified depth shadow */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.35);

  /* Povećana širina za poravnavanje s cover slikom */
  max-width: 1920px;
  margin: 3.5rem auto 0 auto;
  padding: 3rem 2.5rem;
  color: #f3f3f3;

  /* Dodajemo transition za hover efekt */
  transition: box-shadow 0.3s ease;
}

.duo-container:hover {
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.duo-naslov {
  text-align: center;
  color: #ffe066; /* same as .provjera-naslov */
  font-size: 2rem; /* revert to original */
  margin-bottom: 1rem;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.duo-podnaslov {
  color: #e0e0e0; /* same as .provjera-opis */
  font-size: 1.15rem; /* revert to original */
  margin: 0 auto 1rem auto;
  line-height: 1.6;
  text-align: center;
  max-width: 980px;
}

/* Duo hero card wrapper */
.duo-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Reuse feature-card visuals; adjust width for Duo */
.duo-card {
  /* Match feature-card default desktop width */
  width: 300px;
  max-width: 92vw;
}

.duo-card img {
  height: 220px; /* match feature-card image height */
  object-fit: cover;
}

.duo-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 10px;
}

.duo-image {
  text-align: center;
  padding: 5px;
}

.duo-image img {
  width: 100%;
  max-width: 340px; /* larger cover image */
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.duo-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 10px;
  max-width: 720px;
  width: 100%;
}

.duo-opis {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #eaeaea;
  margin: 0;
  padding: 0 10px;
  border: none;
  background: transparent;
}

.duo-usluge {
  font-size: clamp(1.15rem, 1.2vw + 0.7rem, 1.7rem);
  line-height: 1.6;
  color: #e0e0e0;
  margin: 0.6rem 0 0.3rem;
  padding: 0 10px;
  border: none;
  background: transparent;
  text-align: center;
}

.duo-usluge strong {
  color: #ffe066; /* same yellow as provjera title */
}

/* Duo bullets */
.duo-bullets {
  margin: 0.25rem auto 0.6rem auto;
  padding: 0;
  list-style: none;
  color: #e0e0e0; /* match provjera-opis color */
  text-align: center;
  font-size: 1.15rem; /* match .duo-podnaslov */
  line-height: 1.6; /* match .duo-podnaslov */
}

.duo-bullets li {
  margin: 0.25rem 0;
  line-height: 1.5;
}

/* Kontakt sekcija */
.duo-contact {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 16px;
  padding: 1.5rem;
}

.duo-contact-label {
  display: block;
  color: #ffe066;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 0.5vw + 0.75rem, 1.25rem);
  letter-spacing: 0.3px;
}

.duo-contact-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.duo-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  border: 1px solid rgba(255, 224, 102, 0.2);
  cursor: pointer;
}

.duo-contact-btn:hover {
  background: #ffe066 !important;
  box-shadow: 0 6px 20px rgba(255, 224, 102, 0.4) !important;
  transform: translateY(-2px) scale(1.1) !important;
  border-color: rgba(255, 224, 102, 0.5) !important;
}

.duo-contact-btn svg {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}

/* Keep stroke width visually stable when the button scales */
.duo-contact-btn svg path,
.duo-contact-btn svg rect,
.duo-contact-btn svg circle,
.duo-contact-btn svg line {
  vector-effect: non-scaling-stroke;
}

/* Only apply stroke color if the SVG is stroke-based; avoid adding stroke to fill-only icons (e.g., WhatsApp) */
.duo-contact-btn:hover svg[stroke] path,
.duo-contact-btn:hover svg[stroke] rect,
.duo-contact-btn:hover svg[stroke] circle {
  stroke: #232526;
}

.duo-contact-btn:hover svg line {
  stroke: #232526;
}

.duo-contact-btn:hover svg path[fill="#ffe066"] {
  fill: #232526;
}

.duo-contact-btn:hover svg circle[fill="#ffe066"] {
  fill: #232526;
}

.duo-contact-btn:hover svg circle[fill="#ffe066"] {
  fill: #232526;
}

/* Social Media sekcija */
.duo-social {
  background: transparent;
  border-radius: 12px;
  padding: 1.2rem;
}

.duo-social-label {
  display: block;
  color: #ffe066;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 0.5vw + 0.75rem, 1.25rem);
  letter-spacing: 0.3px;
}

.duo-social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.duo-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  border: 1px solid rgba(255, 224, 102, 0.2);
}

.duo-social-link:hover {
  background: #ffe066;
  box-shadow: 0 6px 20px rgba(255, 224, 102, 0.4);
  transform: translateY(-2px) scale(1.1);
  border-color: rgba(255, 224, 102, 0.5);
}

.duo-social-link svg {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}

/* Keep social icon strokes crisp when scaling */
.duo-social-link svg path,
.duo-social-link svg rect,
.duo-social-link svg circle,
.duo-social-link svg line {
  vector-effect: non-scaling-stroke;
}

.duo-social-link:hover svg path,
.duo-social-link:hover svg rect,
.duo-social-link:hover svg circle {
  stroke: #232526;
}

.duo-social-link:hover svg path[fill="currentColor"] {
  fill: #232526;
}

.duo-social-link:hover svg circle[fill="#ffe066"] {
  fill: #232526;
}

/* Responsive design */
@media (max-width: 1024px) {
  .duo-container {
    padding: 2.5rem 2rem;
  }

  .duo-content {
    gap: 1.8rem;
  }
}

/* Duo card widths aligned to feature-card at tablet ranges */
@media (max-width: 1200px) and (min-width: 769px) {
  .duo-card {
    width: 350px; /* match feature-card at this breakpoint */
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .duo-card {
    width: 320px; /* match feature-card at this narrower tablet breakpoint */
  }
}

/* Duo text scales similarly to provjera-termina copy */
@media (max-width: 900px) {
  .duo-naslov {
    font-size: 1.7rem;
  }
  .duo-podnaslov,
  .duo-opis,
  .duo-bullets {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .duo-container {
    margin: 2rem auto 0 auto;
    /* Match features-container horizontal padding (0 1rem) so 94% card widths compute equally */
    padding: 2rem 1rem;
    border-radius: 20px;
  }

  .duo-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .duo-image {
    order: -1;
  }

  .duo-naslov {
    font-size: 1.5rem;
  }
  .duo-podnaslov,
  .duo-opis,
  .duo-bullets {
    font-size: 1rem;
  }

  /* Make Duo hero card the same width as feature cards on mobile */
  .duo-card {
    /* Match .feature-card mobile width for perfect alignment */
    width: 94%;
    max-width: 400px;
  }

  /* Ensure Duo card image height matches feature cards on mobile */
  .duo-card img {
    height: 240px;
  }

  /* Keep icons in centered rows with wrapping on smaller screens */
  .duo-contact-buttons,
  .duo-social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .duo-container {
    margin: 1.5rem auto 0 auto;
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .duo-naslov {
    font-size: 1.3rem; /* align with provjera-naslov scale */
    white-space: normal;
  }

  .duo-podnaslov,
  .duo-opis,
  .duo-bullets {
    font-size: 0.95rem;
  }

  .duo-content {
    gap: 1.2rem;
  }

  /* Scale icons down on very small screens */
  .duo-contact-btn,
  .duo-social-link {
    width: 48px;
    height: 48px;
  }

  .duo-contact-btn svg,
  .duo-social-link svg {
    width: 24px;
    height: 24px;
  }
}

/* Smooth scroll for in-page anchors */
html {
  scroll-behavior: smooth;
  /* Prevent iOS Safari from auto-adjusting text size (which can look like zoom) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Disable mobile tap highlight and focus ring on touch devices only */
@media (pointer: coarse) {
  /* Remove the blue/grey tap highlight overlay on iOS/Android */
  *,
  a,
  button,
  input,
  textarea,
  select,
  summary {
    -webkit-tap-highlight-color: transparent;
  }

  /* Remove default focus outline on tap (UX request) */
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus,
  summary:focus {
    outline: none !important;
  }

  /* Firefox mobile inner focus padding */
  button::-moz-focus-inner,
  input::-moz-focus-inner {
    border: 0;
  }

  /* Ensure form controls are >=16px to prevent iOS auto-zoom on focus */
  input,
  select,
  textarea {
    font-size: 16px;
  }
}
