/* =========================
   GLOBAL RESET / SAFE
========================= */
* { box-sizing: border-box; }

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

/* Bootstrap-safe: ne resetiraj container/row globalno */
section { display: block; }

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6, blockquote {
  font-weight: 800;
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 6vw, 110px);
  line-height: 1.05;
  letter-spacing: clamp(2px, 0.8vw, 10px);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(26px, 3.2vw, 70px);
  letter-spacing: clamp(1px, 0.5vw, 6px);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(22px, 1.6vw, 28px);
  font-style: italic;
}

h4 {
  font-size: clamp(14px, 1.1vw, 18px);
  color: #999;
  letter-spacing: 1px;
}

h5 {
  font-size: clamp(18px, 1.2vw, 24px);
  line-height: 1.55;
  color: #000;
  background: rgba(255,255,255,0.78);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
}

p {
  color: #707070;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.55;
  margin: 0 0 12px 0;
}

a {
  text-decoration: none !important;
  outline: none;
}

/* =========================
   HIGHLIGHT
========================= */
.highlight {
  color: #cc0000 !important;
  font-weight: 700;
}

.navbar-default span1,
#home span1,
#overview span1 {
  color: #cc0000;
  font-weight: 700;
}

/* =========================
   LAYOUT (Bootstrap-safe)
========================= */
.container {
  max-width: 1200px;
}

/* =========================
   PARALLAX FIX
========================= */
@media (min-width: 1024px) {
  .parallax-section { background-attachment: fixed; }
}
@media (max-width: 1023px) {
  .parallax-section { background-attachment: scroll; }
}

/* =========================
   PRELOADER
========================= */
.preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sk-spinner-pulse {
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0); }
  100% { transform: scale(1); opacity: 0; }
}

/* =========================
   NAVBAR
========================= */
.navbar-default {
  background: #fff;
  border-bottom: 2px solid #f2f2f2;
}

.navbar-default .navbar-brand {
  font-size: 32px;
  font-weight: 800;
  color: #000;
}

.navbar-default .navbar-nav li a {
  font-size: 18px;
  color: #000;
}

.navbar-default .navbar-nav li a:hover,
.navbar-default .navbar-nav li a:focus {
  opacity: 0.75;
}

/* =========================
   HOME (base)
========================= */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
}

/* =========================
   OVERVIEW – INSTAGRAM LINK (Samo Instagram)
========================= */
#overview a[href*="instagram.com"] {
  color: #e1306c;
  font-weight: 800;
  transition: color 0.3s ease;
}
#overview a[href*="instagram.com"]:hover {
  color: #f77737;
  text-decoration: underline !important;
}

/* Skrij "ZAČNI ZDAJ" gumb samo v overview */
#overview .btn,
#overview a.btn {
  display: none !important;
}

/* =========================
   PROGRAMI (BLOG)
========================= */
#blog {
  background: #f4f4f4;
  padding-top: 120px;
  padding-bottom: 140px;
  margin: 0;
}

/* wrapper */
.programs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 60px;
}

/* kartice */
#blog .blog-thumb,
#blog .blog-thumb2,
#blog .blog-thumb3,
#blog .blog-thumb4,
#blog .blog-thumb5,
#blog .blog-thumb6,
#blog .blog-thumb7 {
  position: relative;
  border: 2px solid #000;
  padding: clamp(24px, 3vw, 48px);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  transition: background 0.5s ease;
}

/* hover backgrounds */
#blog .blog-thumb:hover  { background: url('../images/osebnotrenerstvo.jpg') center/cover no-repeat; }
#blog .blog-thumb2:hover { background: url('../images/original.jpg') center/cover no-repeat; }
#blog .blog-thumb3:hover { background: url('../images/darja.jpg') center/cover no-repeat; }
#blog .blog-thumb4:hover { background: url('../images/karmenmarusa.jpg') center/cover no-repeat; }
#blog .blog-thumb5:hover { background: url('../images/ela.jpg') center/cover no-repeat; }
#blog .blog-thumb6:hover { background: url('../images/opengym.jpg') center/cover no-repeat; }
#blog .blog-thumb7:hover { background: url('../images/ostalo.jpg') center/cover no-repeat; }

/* MG-GYM badge */
#blog .blog-date {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
}

/* naslov pill (črn + prosojno belo) */
#blog .pill-title,
#blog .blog-thumb2 h3,
#blog .blog-thumb3 h3,
#blog .blog-thumb4 h3,
#blog .blog-thumb5 h3,
#blog .blog-thumb6 h3,
#blog .blog-thumb7 h3 {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  background: rgba(255,255,255,0.78);
  color: #000 !important;
  padding: 6px 12px;
  border-radius: 10px;
}

#blog .pill-title a,
#blog .blog-thumb2 h3 a,
#blog .blog-thumb3 h3 a,
#blog .blog-thumb4 h3 a,
#blog .blog-thumb5 h3 a,
#blog .blog-thumb6 h3 a,
#blog .blog-thumb7 h3 a {
  color: #000 !important;
  text-decoration: none !important;
}

/* opis pill (h5) */
#blog .blog-thumb h5,
#blog .blog-thumb2 h5,
#blog .blog-thumb3 h5,
#blog .blog-thumb4 h5,
#blog .blog-thumb5 h5,
#blog .blog-thumb6 h5,
#blog .blog-thumb7 h5 {
  color: #000 !important;
  background: rgba(255,255,255,0.78);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
}

/* =========================
   CENIK BUTTON (click safe)
========================= */
.program-btn {
  margin-left: auto;
  margin-top: 14px;
  padding: 16px 0;
  width: clamp(160px, 22vw, 260px);
  text-align: center;
  font-weight: 800;
  border: 2px solid #000;
  border-radius: 999px;
  background: transparent;
  color: #000;
  position: relative;
  z-index: 20;
  transition: 0.3s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.program-btn:hover {
  background: #000;
  color: #fff;
}

/* =========================
   CENIK BOX
========================= */
#blog .cenik-box {
  display: none;
  margin-top: 20px;
  padding: 26px;
  border: 2px solid #000;
  border-radius: 18px;
  background: #fff;
  position: relative;
  z-index: 10;
  box-shadow: 0 14px 38px rgba(0,0,0,0.18);
  animation: fadeInCenik 0.35s ease;
}

#blog .cenik-box.is-open { display: block; }

@keyframes fadeInCenik {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cenik-title {
  font-weight: 900;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 6px;
}

.cenik-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}

.cenik-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.cenik-grid.cols-1 { grid-template-columns: 1fr; }

.cenik-line {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding: 8px 0;
}

.cenik-line .label {
  color: #111 !important;
  font-weight: 500;
}

.cenik-line .price,
#blog .cenik-box .cenik-col p .price {
  color: #C99A2E !important;
  font-weight: 900 !important;
}

/* mobile cenik */
@media (max-width: 768px) {
  .cenik-grid { grid-template-columns: 1fr !important; }
  .program-btn { width: 100% !important; }

  #blog .pill-title,
  #blog .blog-thumb2 h3,
  #blog .blog-thumb3 h3,
  #blog .blog-thumb4 h3,
  #blog .blog-thumb5 h3,
  #blog .blog-thumb6 h3,
  #blog .blog-thumb7 h3 {
    font-size: 20px !important;
  }
}

/* =========================
   VTISI (TESTIMONIAL)
========================= */
#testimonial {
  background: #e6f7ff !important;
  margin: 0 !important;
  padding: 140px 0 !important;
  border: 0 !important;
}

#blog + #testimonial { margin-top: 0 !important; }

.testimonial-title {
  text-align: center;
  color: #000;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 60px 0;
}

/* =========================
   FOOTER
========================= */
footer {
  width: 100%;
  margin: 0;
  padding: clamp(4rem, 8vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  background: url('../images/fotter.jpg') center center / cover no-repeat;
  color: #fff;
}

footer p,
footer h3,
footer h4 { color: #fff; }

.footer-name {
  color: #ffffff !important;
  font-weight: 800;
}

footer .social-icon li a {
  color: #fff !important;
  font-size: 24px;
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 999px;
  transition: all 0.25s ease-in-out;
  display: inline-block;
  text-align: center;
}

footer .social-icon li a:hover {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
}

.copyright-text a {
  color: #fff !important;
  font-weight: 700;
}
.copyright-text a:hover {
  color: #e6e6e6 !important;
  text-decoration: underline !important;
}

/* =========================
   MOBILE FIX: fixed backgrounds
========================= */
@media (max-width: 991px) {
  .parallax-section,
  footer {
    background-attachment: scroll !important;
  }
}

/* =========================
   RESPONSIVE NAV
========================= */
@media (max-width: 767px) {
  .navbar-default .navbar-brand { font-size: 24px; }
}

/* =========================
   GALERIJA – FULL WIDTH BG SLIDER (MOBILE SAFE)
========================= */
#gallery,
#gallery.gallery-hero{
  position: relative;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 60vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
}

/* iOS/Safari: bolj stabilno, da je plast vedno “poslikana” */
#gallery { -webkit-transform: translateZ(0); }

#gallery .gallery-bg{
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1200ms ease-in-out;
  will-change: opacity;
  z-index: 0;
  transform: translateZ(0);
}

#gallery .gallery-bg.is-active{
  opacity: 1;
}

#gallery .gallery-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

#gallery .gallery-hero-title,
#gallery .gallery-hero-sub{
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

#gallery .gallery-hero-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 64px);
}

#gallery .gallery-hero-sub{
  margin: 14px 0 0 0;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 20px);
}

@media (max-width: 768px){
  #gallery,
  #gallery.gallery-hero{
    min-height: 45vh;
  }
}

/* =========================
   HOME – GRADIENT PILL + MATCHING BUTTON (final)
========================= */
#home .home-center{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* “pill” ozadje samo pod tekstom – gradient + blur (iOS/IG safe) */
#home .home-pill{
  background: rgba(0,0,0,0.42);

  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.30) 55%,
    rgba(0,0,0,0.50) 100%
  );

  color: #fff;
  padding: 10px 20px;
  border-radius: 14px;
  display: inline-block;
  max-width: 94%;

  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

#home .home-btn{
  margin-top: 16px;
  padding: 14px 36px;
  font-weight: 800;
  border-radius: 999px;

  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,255,255,0.75);
  color: #111 !important;

  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#home .home-btn:hover{
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.26);
}

#home .home-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);
}

/* odstrani <br> če slučajno ostane v home h3 */
#home h3.home-pill br{ display:none; }

@media (max-width: 768px){
  #home .home-center{ gap: 14px; }

  #home .home-pill{
    padding: 9px 16px;
    border-radius: 13px;
    max-width: 96%;
  }

  #home .home-btn{
    width: min(92%, 360px);
    padding: 14px 22px;
  }
}
/* =========================
   BLOG CARDS – FIX MG-GYM BADGE + WHITE CENIK ON IMAGE
   (paste at END of style.css)
========================= */

/* 1) MG-GYM badge naj bo višje + vedno nad belimi pill elementi */
#blog .blog-date{
  top: 10px;              /* prej 18px -> malo višje */
  left: 18px;
  z-index: 40;            /* nad pill naslov/tekst */
  pointer-events: none;   /* da ne ovira klika */
}

/* malo več prostora na vrhu, da se badge ne “tišči” v naslov */
#blog .blog-thumb,
#blog .blog-thumb2,
#blog .blog-thumb3,
#blog .blog-thumb4,
#blog .blog-thumb5,
#blog .blog-thumb6,
#blog .blog-thumb7{
  padding-top: clamp(44px, 4vw, 58px); /* minimalen, varen razmak */
}

/* 2) Ko je kartica “na sliki” (hover ali tap/focus), naj bo CENIK bel */
#blog .blog-thumb:hover .program-btn,
#blog .blog-thumb:focus-within .program-btn,
#blog .blog-thumb2:hover .program-btn,
#blog .blog-thumb2:focus-within .program-btn,
#blog .blog-thumb3:hover .program-btn,
#blog .blog-thumb3:focus-within .program-btn,
#blog .blog-thumb4:hover .program-btn,
#blog .blog-thumb4:focus-within .program-btn,
#blog .blog-thumb5:hover .program-btn,
#blog .blog-thumb5:focus-within .program-btn,
#blog .blog-thumb6:hover .program-btn,
#blog .blog-thumb6:focus-within .program-btn,
#blog .blog-thumb7:hover .program-btn,
#blog .blog-thumb7:focus-within .program-btn{
  color: #fff !important;
  border-color: rgba(255,255,255,0.95) !important;
  background: rgba(0,0,0,0.18); /* rahlo, da je bel tekst vedno berljiv */
}

/* Ko še čez gumb hoveraš/tapneš: naredi ga “polnega belega” */
#blog .blog-thumb:hover .program-btn:hover,
#blog .blog-thumb2:hover .program-btn:hover,
#blog .blog-thumb3:hover .program-btn:hover,
#blog .blog-thumb4:hover .program-btn:hover,
#blog .blog-thumb5:hover .program-btn:hover,
#blog .blog-thumb6:hover .program-btn:hover,
#blog .blog-thumb7:hover .program-btn:hover{
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}

/* =========================
   COOKIE BANNER (minimal)
========================= */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
}

.cookie-banner[hidden]{ display:none !important; }

.cookie-banner__inner{
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;

  background: rgba(0,0,0,0.72);
  color: #fff;

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.cookie-banner__text{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.cookie-banner__text strong{
  font-weight: 900;
  letter-spacing: 0.5px;
}

.cookie-banner__link{
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline !important;
  opacity: 0.9;
  width: fit-content;
}

.cookie-banner__actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn{
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.70);
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cookie-btn--primary{
  background: #fff;
  color: #000;
  border-color: #fff;
}

.cookie-btn--ghost{
  background: rgba(255,255,255,0.10);
}

.cookie-banner__settings{
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px 10px;
}

@media (max-width: 640px){
  .cookie-banner__inner{
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions{
    justify-content: stretch;
  }
  .cookie-btn{
    width: 100%;
  }
  .cookie-banner__settings{
    width: 100%;
    text-align: center;
  }
}
