
html {
    scroll-behavior: smooth;
}
/* Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "SecondFont", sans-serif;
    background-color: #fffaf3;
    color: #333;
    overflow: auto;
    overflow-x: hidden;
}

/* =================== DEKORATIVNA POZADINA (šara preko cele strane) ===================
   Sve za štelovanje je ovde. Slika "cure-pattern-tile.png" je originalna šara sa
   dodatim providnim razmakom iznad/ispod, pa se trake ne slepljuju pri ponavljanju. */
:root {
    /* UGAO NIJE PROIZVOLJAN — 24.098° je izveden da se motivi poklope na presecima.
       Pločica "cure-pattern-tile.png" je tačno JEDAN period motiva širine, a visoka
       W*√5, i motiv joj je u centru. Uz uglove ±atan(W/H) = ±24.098° i obe pozadine
       usidrene na centar, svaki presek trake m i trake n pada tačno na centar motiva
       oba sloja. Ako menjaš ugao, poklapanje se gubi — ali --pattern-size smeš slobodno
       (skalira i period i razmak traka, pa odnos ostaje isti). */
    --pattern-angle: -24.098deg;  /* trake koje padaju s desna na levo */
    --pattern-angle-alt: 24.098deg; /* suprotni smer — s leva na desno */
    --pattern-opacity: 0.15;      /* jačina PO SLOJU (dva sloja se ukrštaju, pa je presek tamniji) */
    --pattern-blur: 2px;          /* mekoća */
    --pattern-size: 185px;        /* period motiva; veće = krupnija i ređa šara */
    --pattern-overscan: 2;        /* koliko je sloj veći od ekrana (2 = 200%, da rotacija ne oglodava uglove) */
    --pattern-fade-start: 12vmax; /* do ovde je pattern potpuno nevidljiv (centar ekrana, gde je tekst) */
    --pattern-fade-end: 48vmax;   /* od ovde je pattern pun */
}

body::before,
body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100vw * var(--pattern-overscan));
    height: calc(100vh * var(--pattern-overscan));
    z-index: -1;
    pointer-events: none;

    background-image: url("images/cure-pattern-tile.png");
    background-repeat: repeat;
    background-size: var(--pattern-size) auto; /* auto = bez deformacije šare */
    /* obavezno center: sidri obe pozadine u istu tačku (centar ekrana), pa se tu
       trake oba sloja seku tačno na motivu — odatle poklapanje ide dalje po celoj mreži */
    background-position: center;

    opacity: var(--pattern-opacity);
    filter: blur(var(--pattern-blur));

    /* bledi ka centru ekrana da tekst ostane čitljiv */
    -webkit-mask-image: radial-gradient(circle at center,
        transparent var(--pattern-fade-start), #000 var(--pattern-fade-end));
    mask-image: radial-gradient(circle at center,
        transparent var(--pattern-fade-start), #000 var(--pattern-fade-end));
}

/* sloj 1: trake padaju s desna na levo */
body::before {
    transform: translate(-50%, -50%) rotate(var(--pattern-angle));
}

/* sloj 2: iste trake u suprotnom smeru, s leva na desno.
   Bez pomeraja — ista faza kao sloj 1, inače preseci beže sa motiva. */
body::after {
    transform: translate(-50%, -50%) rotate(var(--pattern-angle-alt));
}

/* Mobilni: manja pločica bi bila pregusta, pa je držimo krupnijom u odnosu na ekran */
@media (max-width: 768px) {
    :root {
        /* jačinu namerno NE overrajdujemo — telefon nasleđuje --pattern-opacity
           odozgo, pa se šteluje sa jednog mesta (linija 32) */
        --pattern-size: 115px;   /* samo skala — poklapanje preseka ostaje netaknuto */
        --pattern-fade-start: 8vmax;
        --pattern-fade-end: 40vmax;
    }
}
/* Lock page scroll when sidebar is active */
body.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}
/* Body End */ 

/* CustomFonts */
@font-face {
    font-family: "CustomFont";
    src: url("Font/LovelyGraceBG.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "SecondFont";
    src: url("Font/AdamantSansBG.otf") format("opentype");
    font-display: swap;
}

/* =================== HEADER BASE =================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    --sidebar-width: 14rem;
    --header-height: 8rem;
    --navbar-pad-x: 1rem;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 var(--navbar-pad-x);
    height: var(--header-height);
}

/* Desktop navs */
.left-nav,
.right-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex: 1;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-size: 1.8rem;
    transition: color 0.3s;
    /* iznad ukrasne šare, bez podloge — tekst leži direktno na šari */
    position: relative;
    z-index: 2;
}
.nav-links a:hover { color: #5f021f; }

.logo {
    flex-shrink: 0;
    text-align: center;
    /* logotip iznad ukrasne šare */
    position: relative;
    z-index: 2;
}
.logo img {
    height: 7.5rem;
    display: block;
}

.left-nav { justify-content: flex-end; margin-right: 1rem; }
.right-nav { justify-content: flex-start; margin-left: 1rem; }

/* Ukrasna šara popunjava samo prazan prostor: levo do „Почетна" i desno od „О нама" */
.left-nav::before,
.right-nav::after {
    content: "";
    flex: 1 1 auto;
    min-width: 2rem;
    align-self: center;
    height: 2.75rem;
    background-image: url("images/Cure%20slajfna.png");
    background-repeat: repeat-x;
    background-size: auto 100%; /* proporcionalno, bez deformacije */
}
/* negativna margina poništava padding navbara, pa šara ide do same ivice ekrana,
   dok linkovi i logo zadržavaju svoj razmak od ivice */
.left-nav::before {
    background-position: left center;
    margin-right: 1.25rem;
    margin-left: calc(-1 * var(--navbar-pad-x));
}
.right-nav::after {
    background-position: right center;
    margin-left: 1.25rem;
    margin-right: calc(-1 * var(--navbar-pad-x));
}

/* Dropdown desktop */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.dropdown-menu li { text-align: left; padding: 0.5rem 1rem; }
.dropdown-menu li a { font-size: 1.4rem; color: #000; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown > a .arrow { display: inline-block; /* needed for transform */ transition: transform 0.3s; }
.dropdown.open > a .arrow { transform: rotate(180deg); }

.burger {
    display: none; /* still hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.burger img {
    width: 2.5rem;  /* adjust size */
    height: 2.5rem; /* adjust size */
    object-fit: contain;
    transition: opacity 0.25s ease; /* fade effect */
    display: block;
}

/* Sidebar hidden by default (desktop) */
.mobile-sidebar {
    display: none;
}

/* =================== MOBILE / TABLET =================== */
@media (max-width: 1024px) {
    /* Na mobilnom nema bočne navigacije — šara ide preko celog headera */
    .header {
        background-image: url("images/Cure%20slajfna.png");
        background-repeat: repeat-x;
        background-position: center center;
        background-size: auto 2.75rem;
    }

    .navbar {
        justify-content: center;
        align-items: center;
        height: var(--header-height);
    }

    .burger {
        display: block;
        position: relative;
        order: 3;
        margin-left: auto;
        margin-right: 0.5rem;
        z-index: 1002;
    }

    /* logo centered by default, slides left when menu opens */
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: left 0.36s ease;
        z-index: 1001;
        
    }
    

    /* hide desktop navs */
    .left-nav,
    .right-nav {
        display: none;
    }

    /* ----------------- MOBILE SIDEBAR -----------------
       - starts from very top
       - grows only as big as its content
       - scrolls if content is taller than viewport
    -------------------------------------------------- */
    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        right: calc(-1 * var(--sidebar-width));
        width: var(--sidebar-width);
        height: auto; /* trim to content height */
        max-height: 100vh; /* prevent overflow */
        background: #fff;
        box-shadow: -2px 0 8px rgba(0,0,0,0.2);
        padding: 1rem;
        transition: right 0.36s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease;
        opacity: 0;
        z-index: 999;
        overflow-y: auto;
    }
    .mobile-sidebar.active {
        right: 0;
        opacity: 1;
    }

    .mobile-nav {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
    }
    .mobile-nav > li {
        margin: 0;
    }
    .mobile-nav a {
        display: block;
        font-size: 1.45rem;
        font-weight: 700;
        color: #000;
        text-decoration: none;
        padding: 0.4rem 0;
    }

    /* Dropdown animation (mobile) */
    .mobile-nav .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.32s ease, padding 0.32s ease;
        padding-left: 1rem;
        margin: 0;
    }
    .mobile-nav .dropdown.open .dropdown-menu {
        max-height: 800px;
        padding-top: 0.5rem;
    }
    .mobile-nav .dropdown-menu li {
        padding: 0.25rem 0;
    }
    .mobile-nav .dropdown-menu li a {
        font-size: 1.4rem;
        font-weight: bold;
    }
    .mobile-nav .dropdown > a .arrow {
        transition: transform 0.25s ease;
    }
    .mobile-nav .dropdown.open > a .arrow {
        transform: rotate(180deg);
    }

    body.no-scroll {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

    .logo img { height: 7.5rem; max-width: 100%; display: block; }
}

/* Phones */
@media (max-width: 600px) {
    .header { --sidebar-width: 14rem; --header-height: 8rem; }
    .logo img { height: 7rem; }
    .mobile-nav a { font-size: 1.45rem; }
    .mobile-nav .dropdown-menu li a { font-size: 1.35rem; }
    .navbar.menu-open .logo {
        left: 1rem;
        transform: translateY(-50%);
    }
}
/* Phones */
@media (max-width: 360px) {
    .header { --sidebar-width: 12rem; --header-height: 8rem; }
    .logo img { height: 7rem; }
    .mobile-nav a { font-size: 1.45rem; }
    .mobile-nav .dropdown-menu li a { font-size: 1.35rem; }
    .navbar.menu-open .logo {
        left: 1rem;
        transform: translateY(-50%);
    }
}



/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    overflow: hidden;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 125px; /* Header space padding */
}

/* Hero slider — nešto veći od hero-a da parallax pomeranje nikad ne otkrije ivice */
.hero-slider {
    position: absolute;
    top: -11%;
    left: 0;
    width: 100%;
    height: 122%;
    will-change: transform;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Start hidden */
    /* Fade + spori Ken Burns zoom (slika „diše" umesto da stoji) */
    animation: fade 24s infinite;
    will-change: opacity, transform;
}
.hero-slide:nth-child(1) {
    animation-delay: 0s;
    background-position: center 56%;
}

.hero-slide:nth-child(2) {
    animation-delay: 8s;
    background-position: center 56%;
}

.hero-slide:nth-child(3) {
    animation-delay: 16s;
    background-position: center 88%;
}
/* Fade + Ken Burns Animation */
@keyframes fade {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    25% {
        opacity: 1;
        transform: scale(1.05);
    }
    50% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Crossfade koji uvek daje zbir prozirnosti = 1 (koristi se samo na telefonu).
   Ciklus je 24s, slajdovi kreću na 0s/8s/16s -> 8s = 33.333%, prelaz 1.5s = 6.25%.
   Dok jedan slajd nestaje, sledeći se pojavljuje istom brzinom, pa crna pozadina
   hera nikad ne probije. Zum se vraća na 1 dok je slajd nevidljiv. */
@keyframes fadeMobile {
    0%      { opacity: 0; transform: scale(1); }
    6.25%   { opacity: 1; }
    33.333% { opacity: 1; }
    39.583% { opacity: 0; transform: scale(1.06); }
    100%    { opacity: 0; transform: scale(1); }
}

/* Hero Header */
.hero-content {
    z-index: 10;
    color: white;
    padding: 1rem;
}

.hero-content h1 {
    font-family: "CustomFont";
    font-size: 6rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin: 0;
}

/* Paragraph and Button - Bottom Right */
.hero-content-bottom {
    position: absolute;
    bottom: 5%; /* Adjust spacing from bottom */
    right: 5%; /* Adjust spacing from right */
    text-align: right;
    color: white;
}

.hero-content-bottom p {
    font-family: "SecondFont";
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    margin: 0;
}

.hero .hero-button {
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    margin-top: 0;
    padding: 0.5rem 1.5rem;
    background: #6e4446;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
}
.hero-button:hover {
    background-color: #8a052a;
    transform: scale(1.05);
    
}


/* Hero Section End */
/* Mobile Responsive for Hero Section */
@media (max-width: 1024px) {
    .hero {
        width: 100%;
        height: 55vh;
        margin-top: 120px;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center; /* H1 centered vertically */
        align-items: center;     /* H1 centered horizontally */
        text-align: center;
        position: relative;
    }
    .hero-content h1 {
        font-size: 7rem; /* Always bigger than bottom content */
        padding: 0.3rem 0.6rem;
        
    }
}
@media (max-width: 768px) {
    /* ===== HEADER PRIVREMENO SAKRIVEN NA TELEFONU =====
       Kod headera, burgera i mobilnog sidebara je NETAKNUT u index.html i script.js —
       ovde je samo sakriven, jer ćemo navigaciju vraćati u drugom obliku.
       .burger i .mobile-sidebar su deca <header>, pa ih ovo gasi zajedno s njim.
       DA VRATIŠ: obriši ovo jedno pravilo. */
    .header {
        display: none;
    }

    .hero {
        width: 100%;
        /* dvh umesto vh zbog adresne trake u mobilnim browserima — vh ne računa
           nju, pa bi hero bio viši od vidljivog. 110 = malo duži od ekrana. */
        height: 110vh;       /* fallback za stare browsere */
        height: 110dvh;
        margin-top: 0;       /* header je sakriven — nema šta da se kompenzuje */
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center; /* H1 centered vertically */
        align-items: center;     /* H1 centered horizontally */
        text-align: center;
        position: relative;
    }

    /* Zatamnjenje preko slike da tekst ostane čitljiv bez obzira koji je slajd.
       Iznad slidera (z-index auto), ispod teksta (z-index 2). */
    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.40) 0%,
            rgba(0, 0, 0, 0.12) 35%,
            rgba(0, 0, 0, 0.26) 70%,
            rgba(0, 0, 0, 0.42) 100%
        );
    }

    /* Hero Header (h1 stays centered) */
    .hero-content {
        z-index: 2;
    }

    .hero-content h1 {
        font-size: 5rem; /* Always bigger than bottom content */
        padding: 0.3rem 0.6rem;
        line-height: 1.1;
    }

    /* Bottom content on bottom-right corner */
    .hero-content-bottom {
        position: absolute;
        bottom: 5%; /* distance from bottom */
        right: 5%;  /* distance from right */
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.3rem;
        z-index: 2; /* Above slider */
    }

    .hero-content-bottom p {
        font-size: 1.5rem;
        padding: 0.2rem 0.6rem;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 5px;
    }

    .hero .hero-button {
        font-size: 1.3rem;
        padding: 0.4rem 1.2rem;
    }

    /* Slider na desktopu ima overscan (top:-11%, height:122%) za Ken Burns pomeraj.
       Na telefonu ga gasimo: dodatno je zumirao uspravni kadar i gurao natpis na
       slici pravo ispod naslova, pa su se dva bela teksta preklapala. */
    .hero-slider {
        top: 0;
        height: 100%;
    }

    /* Ispravan crossfade — zbir prozirnosti sva tri slajda je UVEK 1.
       Original (@keyframes fade) drži slajd prozirnim od 50% do 100% ciklusa, pa uz
       tri slajda na 24s sa razmakom od 8s postoje trenuci kad je zbir ~0.67 i kroz
       njih probija crna pozadina hera — hero povremeno potamni skoro do crnog.
       Isti bug postoji i na desktopu; tamo ga NISAM dirao. */
    .hero-slide {
        animation-name: fadeMobile;
    }

    /* ===== USPRAVNE VERZIJE HERO SLIKA (samo telefon) =====
       Originali su pejzažni (~1.5:1) pa ih je cover na portret ekranu sekao na
       uski pojas po sredini. Ovo su namenski uspravni kadrovi, rađeni iz
       punih rezolucija (hero1/hero3 4237px i 4240px široki, iz commita fdf11de).
       Kod hero2 plata NIJE sečena — pozadina je produžena gore/dole.

       !important je nužan: slike su zadate inline u index.html, a inline stil
       inače pobeđuje stylesheet. Gađamo :nth-child jer postojeća pravila
       .hero-slide:nth-child(n) imaju veću specifičnost i vratila bi stari kadar. */
    .hero-slide:nth-child(1) {
        background-image: url("Fotografije/Home/Hero/hero1-mobile.jpg") !important;
        background-position: center center !important;
    }
    .hero-slide:nth-child(2) {
        background-image: url("Fotografije/Home/Hero/hero2-mobile.jpg") !important;
        background-position: center center !important;
    }
    .hero-slide:nth-child(3) {
        background-image: url("Fotografije/Home/Hero/hero3-mobile.jpg") !important;
        background-position: center center !important;
    }
}

/* Extra small devices (mobile portrait) */
@media (max-width: 480px) {
    /* visinu i margin-top NE diramo — nasleđuju se iz bloka za 768px
       (ceo ekran, bez razmaka na vrhu) */

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content-bottom p {
        font-size: 1rem;
    }

    .hero .hero-button {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
}


/* Image Links Section */
.image-links {
    display: flex;
    flex-wrap: wrap; /* allow items to wrap on smaller screens */
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 1rem;
    margin: 0 2rem;
}

.image-link {
    flex: 1 1 30%; /* flexible sizing */
    max-width: 30%;
    text-align: center;
    position: relative;
    padding: 1rem;
    background-color: #fff;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Images */
.image-link img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    filter: brightness(1);
    transition: filter 0.3s ease;
}
.image-link img:hover {
    filter: brightness(1.3);
}

/* Text */
.image-link p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #333;
    padding: 0 1rem;
}

/* --- Responsive tweaks --- */

/* Tablets (2 per row, last one centered) */
@media (max-width: 1024px) {
    .image-link {
        flex: 1 1 45%;
        max-width: 45%;
    }

    /* Center the last card if it's alone in the row */
    .image-links .image-link:last-child {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile (stack one per row, rectangle centered) */
@media (max-width: 600px) {
    .image-links {
        margin: 0 auto;         /* center whole container */
        padding: 1rem;
        flex-direction: column; /* stack vertically */
        align-items: center;    /* center child cards */
    }

    .image-link {
        flex: 1 1 auto;
        max-width: 90%;        /* not full width, leave margins */
        width: 400px;          /* preferred rectangle width */
        margin-bottom: 1.5rem;
    }

    .image-link img {
        aspect-ratio: 16/9;    /* keep rectangle look */
        object-fit: cover;     /* crop nicely */
        border-radius: 10px;
    }

    .image-link p {
        font-size: 1rem;
    }
}

/* ===== PRELAZ HERO -> NORMALNA POZADINA (samo telefon) =====
   Šara ide preko cele širine, logo na sredini. Na desktopu se ne prikazuje —
   tamo header već nosi i logo i šaru. */
.hero-divider {
    display: none;
}

@media (max-width: 768px) {
    .hero-divider {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 7rem;
        background-image: url("images/Cure%20slajfna.png");
        background-repeat: repeat-x;
        background-position: center center;
        background-size: auto 2.5rem; /* proporcionalno, bez deformacije */
    }

    .hero-divider img {
        display: block;
        height: 6rem;
        width: auto;
        /* logo ima providnu pozadinu, pa bi mu šara prolazila kroz uglove oko pečata;
           krug u boji stranice je „preseca" i logo čita kao medaljon na traci */
        background: #fffaf3;
        border-radius: 50%;
        padding: 0.3rem;
    }
}

/* ===== KARTICE ISPOD HERA: naizmenično slika/tekst (samo telefon) =====
   Jelovnik  -> slika LEVO,  tekst desno
   Galerija  -> slika DESNO, tekst levo   (row-reverse)
   Kontakt   -> slika LEVO,  tekst desno
   Ide POSLE bloka od 600px da bi ga pregazio i na najužim ekranima. */
@media (max-width: 768px) {
    .image-links {
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        /* uski paddinzi: na 390px svaki piksel ide slici i tekstu */
        padding: 1.25rem 0.6rem;
        gap: 1rem;
    }

    .image-link {
        display: flex;
        align-items: stretch;   /* slika se rasteže na visinu teksta */
        gap: 0.7rem;
        flex: 1 1 auto;
        width: auto;
        max-width: 100%;
        margin-bottom: 0;
        padding: 0.65rem;
        text-align: left;       /* centriran tekst u uskoj koloni se lomi ružno */
    }

    /* srednja kartica (Galerija) — slika na desnu stranu */
    .image-link:nth-child(2) {
        flex-direction: row-reverse;
    }

    .image-link a {
        flex: 0 0 47%;
        display: block;
        min-height: 200px;
    }

    .image-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: auto;     /* gasi 16/9 iz bloka za 600px */
        border-radius: 8px;
    }

    .image-link p {
        flex: 1 1 auto;
        margin-top: 0;
        padding: 0;
        font-size: 0.95rem;
        line-height: 1.5;
        align-self: center;
    }
}

/* Home About Section */
.home-about {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.about {
    text-align: center;
}
.about h1 {
    color: #6e4446;
    font-family: "CustomFont";
    font-size: 5rem;
}
.about p {
    font-size: 1.5rem;
}

.divider {
    width: 15%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;           /* make image behave like a block */
    margin: 1rem auto;        /* centers horizontally */    
}

.divider2 {
    width: 11%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;           /* make image behave like a block */
    margin: 1rem auto;        /* centers horizontally */
}
/* Container for the entire slider section including the title and slider itself */
.about-slider-div {
    width: 100%; /* Sets the width to fill the available space */
    height: 100%; /* Sets the height to fill the available space */
    position: relative; /* Allows for absolute positioning of child elements */
    display: flex; /* Enables flexbox layout */
    flex-direction: column; /* Aligns items in a column (vertical stack) */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
}

/* Main container for the slider - this holds the images and navigation buttons */
.about-slider-container {
    position: relative; /* Allows for absolute positioning of navigation buttons */
    width: 60%; /* Sets the slider width to 60% of the parent container */
    max-width: 800px; /* Maximum width for larger screens */
    overflow: hidden; /* Hides the overflow content (only one image is visible at a time) */
    border-radius: 10px; /* Rounds the corners of the slider */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */
}

/* Flexbox container that holds all the slides */
.about-slider {
    display: flex; /* Enables flexbox layout to line up slides horizontally */
    transition: transform 0.4s ease-in-out; /* Smooth transition when sliding between images */
}

/* Each individual slide - takes up full width of the container */
.about-slide {
    min-width: 100%; /* Each slide takes up 100% of the slider container's width */
    height: 450px; /* Fixed height for each slide */
    transition: transform 0.5s ease-in-out; /* Smooth transition when slides are changed */
}

/* Ensures that images fill the slide area while maintaining aspect ratio */
.about-slide img {
    width: 100%; /* Image width matches the slide width */
    height: 100%; /* Image height matches the slide height */
    object-fit: cover; /* Images are scaled to cover the entire slide, cropping if necessary */
    border-radius: 10px; /* Rounds the corners of the images to match the slider */
}

/* Common styling for both previous and next navigation buttons */
.about-prev, .about-next {
    position: absolute; /* Absolute positioning within the slider container */
    top: 50%; /* Centers the button vertically */
    transform: translateY(-50%); /* Offsets the button position by half its height */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: white; /* White color for the arrow icons */
    border: none; /* Removes default button borders */
    width: 40px; /* Fixed width for the buttons */
    height: 40px; /* Fixed height for the buttons */
    cursor: pointer; /* Changes the cursor to pointer on hover */
    z-index: 10; /* Ensures buttons appear above the slider content */
    border-radius: 50%; /* Makes the buttons round */
    transition: background-color 0.3s ease; /* Smooth transition for background color on hover */
    display: flex; /* Enables flexbox for centering the arrow inside the button */
    justify-content: center; /* Centers arrow horizontally */
    align-items: center; /* Centers arrow vertically */
    padding: 0; /* Removes any default padding */
}

/* Positioning the previous button to the left */
.about-prev {
    left: 10px; /* Positions the button 10px from the left edge */
}

/* Positioning the next button to the right */
.about-next {
    right: 10px; /* Positions the button 10px from the right edge */
}

/* Hover effect for navigation buttons */
.about-prev:hover, .about-next:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darkens the button background on hover */
}

/* Container for the dot indicators below the slider */
.about-dots-container {
    margin-top: 20px; /* Space above the dots */
    display: flex; /* Enables flexbox layout for horizontal alignment */
    justify-content: center; /* Centers the dots horizontally */
    align-items: center; /* Centers the dots vertically */
}

/* Common styling for each individual dot */
.about-dot {
    height: 15px; /* Fixed height for the dots */
    width: 15px; /* Fixed width for the dots */
    margin: 0 5px; /* Spacing between the dots */
    background-color: rgba(110, 68, 70, 0.7); /* Semi-transparent white background */
    border-radius: 50%; /* Makes the dots round */
    display: inline-block; /* Ensures dots are inline */
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: background-color 0.3s ease; /* Smooth transition for background color on hover */
}

/* Styling for the active dot - indicates the current slide */
.about-dot.active {
    background-color: rgba(0, 0, 0, 0.8);/* Solid white background for the active dot */
}

/* Home About Section End */
/* --- Responsive tweaks --- */

/* Tablets */
@media (max-width: 1024px) {
    .about h1 {
        font-size: 3.5rem; /* smaller heading */
    }

    .about p {
        font-size: 1.2rem; /* reduce paragraph size */
    }

    .divider {
        width: 25%; /* make dividers a bit larger relative to smaller screen */
    }

    .divider2 {
        width: 20%;
    }

    .about-slider-container {
        width: 80%; /* give slider more space */
        max-width: 600px;
    }

    .about-slide {
        height: 350px; /* slightly smaller slide height */
    }
}

/* Mobile */
@media (max-width: 600px) {
    .home-about {
        padding: 0.5rem;
    }

    .about h1 {
        font-size: 2.5rem; /* much smaller title */
        line-height: 1.1;
    }

    .about p {
        font-size: 1rem;
        text-align: center; /* optional: better for small screens */
        width: 90%;
        margin: 0 auto;
    }

    .divider {
    width: 40%; /* dividers scale nicely */
    display: block;           /* make image behave like a block */
    margin: 1rem auto;        /* centers horizontally */
    border-radius: 10px;
    object-fit: cover;
    height: auto;
        
    }

    .divider2 {
    width: 30%;
    display: block;           /* make image behave like a block */
    margin: 1rem auto;        /* centers horizontally */
    border-radius: 10px;
    object-fit: cover;
    height: auto;
    }

    .about-slider-container {
        width: 95%; /* full width slider */
        max-width: none;
    }

    .about-slide {
        height: 220px; /* reduce height for mobile */
    }

    .about-prev, .about-next {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .about-dot {
        height: 10px;
        width: 10px;
    }
}


/* Home Recommended Section */

.home-recommended {
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center; /* Ensures content alignment */
}

.recommended {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.recommended-heading {
    color: #6e4446;
    font-family: "CustomFont";
    font-size: 4rem;
    text-align: center;
}

.recommended-item {
    flex: 1; /* Ensures equal width for all divs */
    text-align: center;
    border-radius: 10px;    
    padding: 20px;
}

.recommended-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px; /* Rounded edges for images */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}
.recommended-item:nth-child(2) img {
    object-position: center 65%;
}

.recommended-item img:hover {
    transform: scale(1.05);
}

.recommended-item h3 {
    margin: 10px 0 5px; /* Space around the header */
    color: #6e4446;
}

.recommended-item p {
    font-size: 14px; /* Smaller font for paragraph */
    color: #333; /* Adjust text color */
}
.recommended-button {
    display: inline-block;
    margin-top: 0;
    padding: 0.5rem 1.5rem;
    background: #6e4446;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
}

.recommended-button:hover {
    background-color: #8a052a;
}

/* Home Recommended Section End */

/* Mobile Responsive for Home Recommended Section */
@media (max-width: 768px) {
    .recommended {
        flex-direction: column; /* Stack items vertically */
        align-items: center;
        gap: 30px; /* More breathing space between items */
    }

    .recommended-item {
        width: 100%; /* Full width */
        max-width: 400px; /* Keep a nice readable size */
    }

    .recommended-item img {
        width: 100%;
        height: auto;
    }

    .recommended-heading {
        font-size: 4rem; /* Smaller than desktop */
    }

    .recommended-item h3 {
        font-size: 1.6rem;
    }

    .recommended-item p {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .recommended-button {
        font-size: 1.4rem;
        padding: 0.4rem 1.2rem;
        margin-top: 1rem;
    }
}

/* Extra small devices (phones <480px) */
@media (max-width: 480px) {
    .recommended-heading {
        font-size: 4rem;
    }

    .recommended-item h3 {
        font-size: 1.4rem;
    }

    .recommended-item p {
        font-size: 1rem;
    }

    .recommended-button {
        font-size: 1.4rem;
        padding: 0.3rem 1rem;
    }
}


/* Footer Styling */
.footer {
    flex-wrap: wrap;
    display: flex;
    position: relative;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.footer h3{
    color: #5f021f;
}
.footer h4{
    color: #5f021f;
}
.footer-item {
    height: 16rem;
    flex: 1;
    padding: 1rem;
    background-color: #ffffff;
    margin-left: 1rem;
    margin-right: 1rem;    
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.footer-item-bottom {
    flex-basis: 100%; /* Forces it to take the full width of the row */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    background-color: transparent; /* Optional: adjust as needed */
}

.footer-item a {
    color: #5f021f;
    text-decoration: none;
}

.footer-item a:hover {
    text-decoration: underline;
}

/* Footer Styling End */
@media (max-width: 840px) {
  .footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two columns */
    grid-auto-rows: 1fr; /* make all rows equal height */
    grid-template-rows: 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .footer-item {
    margin: 0;           /* remove side margins that caused overflow */
    height: 100%;        /* let content define height */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: center;  /* keep current visual style */
  }

  .footer-item h3 { font-size: 1rem; margin: 0 0 .5rem; }
  .footer-item h4 { font-size: 1rem; margin: .3rem 0 .4rem; }
  .footer-item p  { font-size: 0.8rem; line-height: 1.4; margin: 0; }

  .footer-item a { word-break: break-word; } /* avoid overflow from long links */

  /* Make the bottom footer (copyright) span both columns */
  .footer-item-bottom {
    grid-column: 1 / -1;  /* full width across both columns */
    justify-self: center;
    margin-top: .5rem;
    text-align: center;
    font-size: .95rem;
  }
}
/* Mobile: 2x2 grid for footer (tablet/phone) */
@media (max-width: 1275px) {
  .footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two columns */
    grid-auto-rows: 1fr; /* make all rows equal height */
    grid-template-rows: 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .footer-item {
    margin: 0;           /* remove side margins that caused overflow */
    height: 100%;  /* let content define height */   
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: center;  /* keep current visual style */
  }

  .footer-item h3 { font-size: 1.5rem; margin: 0 0 .5rem; }
  .footer-item h4 { font-size: 1.5rem; margin: .3rem 0 .4rem; }
  .footer-item p  { font-size: 1.1rem; line-height: 1.4; margin: 0; }

  .footer-item a { word-break: break-word; } /* avoid overflow from long links */

  /* Make the bottom footer (copyright) span both columns */
  .footer-item-bottom {
    grid-column: 1 / -1;  /* full width across both columns */
    justify-self: center;
    margin-top: .5rem;
    text-align: center;
    font-size: .95rem;
  }
}

/* Extra-small phones: 1 column */
@media (max-width: 560px) {
  .footer {
    grid-template-columns: 1fr;
    grid-template-rows: auto; /* normal flow */
    grid-auto-rows: auto;
    gap: .75rem;
    padding: .75rem;
  }

  .footer-item {
    height: auto;
    width: 85%;
    padding: .75rem;
    justify-self: center;
  }

  .footer-item-bottom {
    grid-column: auto;
    grid-row: auto;
    font-size: .85rem;
    padding: .4rem .5rem;
  }

  .footer-item h3 { font-size: 1.3rem; }
  .footer-item h4 { font-size: 1.1rem; }
  .footer-item p  { font-size: 0.9rem; }
}
  
/* guard against tiny horizontal overflow on narrow devices (optional) */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}



/* Footer Other Styling */
.footer-other {
    background-color: white;
    flex-wrap: wrap;
    display: flex;
    position: relative;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-other-item {
    height: 16rem;
    flex: 1;
    padding: 1rem;
    background-color: #fffaf3;
    margin-left: 1rem;
    margin-right: 1rem;    
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
     font-size: 1rem;
    text-align: center;
}

.footer-other h3{
    color: #5f021f;
}
.footer-other h4{
    color: #5f021f;
}

.footer-other-item a {
    color: #5f021f;
    text-decoration: none;
}

.footer-other-item a:hover {
    text-decoration: underline;
}
/* Footer bez kartica (stranica Локације) */
.footer-other.footer-minimal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 1.5rem 1rem;
    text-align: center;
}

.footer-other.footer-minimal .footer-item-bottom {
    margin-top: 0;
    grid-column: auto;
    grid-row: auto;
}

.footer-other.footer-minimal .footer-item-bottom p {
    margin: 0;
}

.footer-other.footer-minimal .footer-item-bottom br {
    display: none;
}
/* Footer Other Styling End */
@media (max-width: 840px) {
  .footer-other {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two columns */
    grid-auto-rows: 1fr; /* make all rows equal height */
    grid-template-rows: 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .footer-other-item {
    margin: 0;           /* remove side margins that caused overflow */
    height: 100%;        /* let content define height */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: center;  /* keep current visual style */
  }

  .footer-other-item h3 { font-size: 1rem; margin: 0 0 .5rem; }
  .footer-other-item h4 { font-size: 1rem; margin: .3rem 0 .4rem; }
  .footer-other-item p  { font-size: 0.8rem; line-height: 1.4; margin: 0; }

  .footer-other-item a { word-break: break-word; } /* avoid overflow from long links */

  /* Make the bottom footer (copyright) span both columns */
  .footer-other-item-bottom {
    grid-column: 1 / -1;  /* full width across both columns */
    justify-self: center;
    margin-top: .5rem;
    text-align: center;
    font-size: .95rem;
  }
}
/* Mobile: 2x2 grid for footer (tablet/phone) */
@media (max-width: 1275px) {
  .footer-other {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two columns */
    grid-auto-rows: 1fr; /* make all rows equal height */
    grid-template-rows: 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .footer-other-item {
    margin: 0;           /* remove side margins that caused overflow */
    height: 100%;  /* let content define height */   
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: center;  /* keep current visual style */
  }

  .footer-other-item h3 { font-size: 1.5rem; margin: 0 0 .5rem; }
  .footer-other-item h4 { font-size: 1.5rem; margin: .3rem 0 .4rem; }
  .footer-other-item p  { font-size: 1.1rem; line-height: 1.4; margin: 0; }

  .footer-other-item a { word-break: break-word; } /* avoid overflow from long links */

  /* Make the bottom footer (copyright) span both columns */
  .footer-other-item-bottom {
    grid-column: 1 / -1;  /* full width across both columns */
    justify-self: center;
    margin-top: .5rem;
    text-align: center;
    font-size: .95rem;
  }
}

/* Extra-small phones: 1 column */
@media (max-width: 560px) {
  .footer-other {
    grid-template-columns: 1fr;
    grid-template-rows: auto; /* normal flow */
    grid-auto-rows: auto;
    gap: .75rem;
    padding: .75rem;
  }

  .footer-other-item {
    height: auto;
    width: 85%;
    padding: .75rem;
    justify-self: center;
  }

  .footer-other-item-bottom {
    grid-column: auto;
    grid-row: auto;
    font-size: .85rem;
    padding: .4rem .5rem;
  }

  .footer-other-item h3 { font-size: 1.3rem; }
  .footer-other-item h4 { font-size: 1.1rem; }
  .footer-other-item p  { font-size: 0.9rem; }
}
/* HOME PAGE CSS END */


/* About Page CSS */
.page-about-paragraph {
    font-size: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.about-container {
    margin-top: 30px;
    padding: 4rem;
    padding-bottom: 2rem;
    text-align: center;
}

.about-container h1 {
    font-family: "CustomFont";
    margin-top: 60px;
    font-size: 5rem;    
    color: #6e4446;
}
.about-container h2 {
    font-family: "CustomFont";    
    font-size: 5rem;    
    color: #6e4446;
}
.page-about-slider-div {
    width: 100%; /* Sets the width to fill the available space */
    height: 100%; /* Sets the height to fill the available space */
    position: relative; /* Allows for absolute positioning of child elements */
    display: flex; /* Enables flexbox layout */
    flex-direction: column; /* Aligns items in a column (vertical stack) */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
}

/* Main container for the slider - this holds the images and navigation buttons */
.page-about-slider-container {
    position: relative; /* Allows for absolute positioning of navigation buttons */
    width: 60%; /* Sets the slider width to 60% of the parent container */
    max-width: 800px; /* Maximum width for larger screens */
    overflow: hidden; /* Hides the overflow content (only one image is visible at a time) */
    border-radius: 10px; /* Rounds the corners of the slider */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */
}

/* Flexbox container that holds all the slides */
.page-about-slider {
    display: flex;
    transition: transform 1s ease; /* Smooth transition of 1 second */
}


/* Each individual slide - takes up full width of the container */
.page-about-slide {
    min-width: 100%; /* Each slide takes up 100% of the slider container's width */
    height: 450px; /* Fixed height for each slide */
    transition: transform 0.5s ease-in-out; /* Smooth transition when slides are changed */
}

/* Ensures that images fill the slide area while maintaining aspect ratio */
.page-about-slide img {
    width: 100%; /* Image width matches the slide width */
    height: 100%; /* Image height matches the slide height */
    object-fit: cover; /* Images are scaled to cover the entire slide, cropping if necessary */
    border-radius: 10px; /* Rounds the corners of the images to match the slider */
}

/* Common styling for both previous and next navigation buttons */
.page-about-prev, .page-about-next {
    position: absolute; /* Absolute positioning within the slider container */
    top: 50%; /* Centers the button vertically */
    transform: translateY(-50%); /* Offsets the button position by half its height */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: white; /* White color for the arrow icons */
    border: none; /* Removes default button borders */
    width: 40px; /* Fixed width for the buttons */
    height: 40px; /* Fixed height for the buttons */
    cursor: pointer; /* Changes the cursor to pointer on hover */
    z-index: 10; /* Ensures buttons appear above the slider content */
    border-radius: 50%; /* Makes the buttons round */
    transition: background-color 0.3s ease; /* Smooth transition for background color on hover */
    display: flex; /* Enables flexbox for centering the arrow inside the button */
    justify-content: center; /* Centers arrow horizontally */
    align-items: center; /* Centers arrow vertically */
    padding: 0; /* Removes any default padding */
}

/* Positioning the previous button to the left */
.page-about-prev {
    left: 10px; /* Positions the button 10px from the left edge */
}

/* Positioning the next button to the right */
.page-about-next {
    right: 10px; /* Positions the button 10px from the right edge */
}

/* Hover effect for navigation buttons */
.page-about-prev:hover, .page-about-next:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darkens the button background on hover */
}
.page-about-dots-container {
    margin-top: 20px; /* Space above the dots */
    display: flex; /* Enables flexbox layout for horizontal alignment */
    justify-content: center; /* Centers the dots horizontally */
    align-items: center; /* Centers the dots vertically */
}

/* Common styling for each individual dot */
.page-about-dot {
    height: 15px; /* Fixed height for the dots */
    width: 15px; /* Fixed width for the dots */
    margin: 0 5px; /* Spacing between the dots */
    background-color: rgba(110, 68, 70, 0.7); /* Semi-transparent white background */
    border-radius: 50%; /* Makes the dots round */
    display: inline-block; /* Ensures dots are inline */
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: background-color 0.3s ease; /* Smooth transition for background color on hover */
}

/* Styling for the active dot - indicates the current slide */
.page-about-dot.active {
    background-color: rgba(0, 0, 0, 0.8);/* Solid white background for the active dot */
}
.img-page-about{   
    
    padding-top: 1rem;
    text-align: center; 
}
.img-page-about img{   
    border-radius: 15px;
    width: 100%;
    text-align: center; 
}

/* About Page CSS END */
/* RESPONSIVE ABOUT */
@media (max-width: 1024px) {
    .about-container {
        padding: 2rem;
    }
    .divider {
        width: 20rem;
        padding: 1rem;
    }
    .divider2 {
        width: 15rem;
        padding: 1rem;
    }
    .about-container h1 {
        font-size: 5.5rem;
        margin-top: 5rem;
    }
     .about-container h2 {
        font-size: 5.5rem;
        margin-top: 2.5rem;
    }
    .page-about-slider-container {
        width: 95%;
    }
    .page-about-slide {
        height: 25rem;
    }
    .page-about-paragraph {
        font-size: 1.6rem;
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        padding: 2rem;
    }   
    .divider {
        width: 16rem;
        padding: 1rem;
    }
    .divider2 {
        width: 11rem;
        padding: 1rem;
    }
    .about-container h1 {
        font-size: 4.5rem;
        margin-top: 5rem;
    }
    .about-container h2{
        font-size: 4.5rem;
        margin-top: 2rem;
    }
    .page-about-slider-container {
        width: 95%;
    }
    .page-about-slide {
        height: 18rem;
    }
    .page-about-prev,
    .page-about-next {
        width: 1rem;
        height: 1rem;
        font-size: 1.2rem;
    }
    .page-about-paragraph {
        font-size: 1.4rem;
    }
    .page-about-dot {
        height: 1rem;
        width: 1rem;
    }
}

/* Small mobile (up to 480px) */
@media (max-width: 480px) {
    .about-container {
        padding: 1rem;
    }   
    .divider {
        width: 13rem;
        padding: 1rem;
    }
    .divider2 {
        width: 10rem;
        padding: 1rem;
    }
    .about-container h1 {
        font-size: 4.5rem;
        margin-top: 7rem;
        line-height: 3.5rem;
    }
    .about-container h2{
        font-size: 4.5rem;
        margin-top: 2rem;
    }
    .page-about-slider-container {
        width: 90%;
    }
    .page-about-slide {
        height: 12rem;
    }
    .page-about-prev,
    .page-about-next {
        width: 1rem;
        height: 1rem;
        font-size: 0.7rem;
    }
    .page-about-paragraph {
        font-size: 1.2rem;
    }
    .page-about-dot {
        height: 0.7rem;
        width: 0.7rem;
    }
    .img-page-about{    
        padding-top: 1rem;
        text-align: center; 
    }
    .img-page-about img{   
        border-radius: 15px;
        width: 100%;
    }
    .top-link{
        font-size: 0.5rem;        
   }
}
/* Gallery CSS */ 
.gallery {
    margin-top: 120px;
    text-align: center;
    padding: 2rem;
}

.gallery h1 {
    color: #6e4446;
    font-family: "CustomFont";
    font-size: 5rem;
    line-height: 4rem;
    margin-bottom: 1rem;
}

.gallery-grid {
    column-count: 4;
    column-gap: 0.7rem;
    padding: 0;
}

.gallery-grid-item {
    break-inside: avoid;
    margin-bottom: 0.5rem;
    width: 100%;
}

.gallery-grid-item img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}
.gallery-grid-item.portrait img {
    height: 36.5rem; 
    }

.gallery-grid-item img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Lightbox (галерија + јеловник) */
.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: zoom-out;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    line-height: 1;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.6rem;
    }
}

.gallery-paragraph {
    text-align: left;
    font-size: 2rem;
}

.gallery-navigation-container {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    justify-content: center;
}

.gallery-navigation.left {
    text-align: right;
}

.gallery-navigation.right {
    text-align: right;
}

.gallery-navigation a {
    color: #6e4446;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
}

.gallery-navigation a:hover {
    color: #000000;
}

:target {
    scroll-margin-top: 180px; /* Adjust to match your header height */
}

.top-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #6e4446;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
}

.top-link a {
    color: #ffffff;
    text-decoration: none;
}

.top-link:hover {
    background-color: #8a052a;
}

@media (max-width: 960px) {
    .gallery-grid {
        column-count: 3;
        column-gap: 0.5rem;
        padding: 0;
    }
    .gallery-grid-item.portrait img {
    height: 18.5rem; 
    }
    .gallery-grid-item img {
   
    height: 9rem;
    }
}

@media (max-width: 480px) {
    .top-link {
        margin-top: 1rem;
        padding: 0.4rem;
        font-size: 1rem;
    }

    .gallery h1 {
        font-size: 4.5rem;
        line-height: 3.5rem;
        margin-bottom: 1rem;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 0.5rem;
        padding: 0;
    }
    .gallery-grid-item.portrait img {
    height: 18.5rem; 
    }
    .gallery-grid-item img {
   
    height: 9rem;
    
}
}
/* Gallery CSS END */



/* Menu Section */
.menu-section {
    margin-top: 60px;
    padding: 2rem;
    text-align: center;
}

.menu-section h1 {
    font-family: "CustomFont";
    margin-top: 60px;
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #6e4446;
}

.menu-section h2 {
    font-style: italic;
    font-size: 2.5rem;
}

.menu-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem; /* Add spacing between grid items */
    margin: 1rem auto;
}

.menu-grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; /* Add spacing between grid items */
    margin: 1rem auto;
}

.menu-grid-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-grid-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Large tablets / small desktops */
@media (max-width: 1200px) {
    .menu-grid2 {
        grid-template-columns: repeat(4, 1fr);
    }
    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
.menu-grid2 {
    grid-template-columns: repeat(3, 1fr);
}
.menu-grid {
    grid-template-columns: repeat(3, 1fr);
}
}

/* Large phones / small tablets */
@media (max-width: 768px) {
.menu-grid2 {
    grid-template-columns: repeat(2, 1fr);
}
.menu-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

/* RESPONSIVE MENU */
@media (max-width: 480px) {
.menu-grid2 {
    grid-template-columns: 1fr;
}
.menu-grid {
    grid-template-columns: 1fr;
}

.menu-section h1 {
    font-size: 4.5rem;
    line-height: 3.5rem;
    margin-bottom: 1rem;
}

    .menu-section h2 {
    font-size: 1.5rem;
}
}
/* Disable hover zoom on mobile devices */
@media (hover: none) and (pointer: coarse) {
    .gallery-grid-item img:hover,
    .menu-grid-item img:hover,
    .menu-section img:hover {
        transform: none !important;
        box-shadow: none !important; 
    }
}
/* Menu Section END */

/* Location Container */
.location-container {
    margin: 150px auto 20px;
    width: 90%;
    max-width: 1200px;
}
.h1loc {
    font-family: "CustomFont";
    margin-top: 60px;
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #6e4446;
    text-align: center;
}

.location {
    display: grid;
    grid-template-columns: 50% 50%;   
    grid-template-rows: auto auto;    
    gap: 20px;
    margin-bottom: 40px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.location-info {
    grid-column: 1;   
    grid-row: 1;      
    text-align: center;
}

.location-info h3, h4 {
    color: #6e4446;
    font-weight: bolder;
}

.location-map {
    grid-column: 1;
    grid-row: 2;
    position: relative;
}

.location-map iframe {
    border-radius: 10px;
}

/* ---- Mapa: elegantno stanje učitavanja da maskira spori Google Maps embed.
   Klasu `map-fade` dodaje script.js (progressive enhancement) — bez JS-a se
   mapa prikazuje normalno. Kad se iframe učita, dobija se `map-ready`. ---- */
.location-map.map-fade {
    background: #efe9e6;
    overflow: hidden;
    border-radius: 10px;
}
.location-map.map-fade::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 3px solid rgba(110, 68, 70, 0.25);
    border-top-color: #6e4446;
    border-radius: 50%;
    animation: map-spin 0.8s linear infinite;
    z-index: 0;
}
.location-map.map-fade iframe {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.location-map.map-ready iframe {
    opacity: 1;
}
.location-map.map-ready::after {
    display: none;
}
@keyframes map-spin {
    to { transform: rotate(360deg); }
}

.location-img {
    display: grid;
    grid-column: 2;        
    grid-row: 1 / span 2;  
    margin-right: 1rem;
    border-radius: 10px;
    place-items: center;
}

.location-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
.location-mail{
    font-weight: bold;
    font-size: x-large;
    text-align: center;
}
.insta{
    width: 1.6rem;
    margin-top: 0.1rem;
}

/*RESPONSIVE LOCATION 1*/
@media (max-width: 820px) {
.location {
    grid-template-columns: 1fr; 
    grid-template-rows: auto auto auto;
}

.location-info {
    grid-column: 1;
    grid-row: 1;
}

.location-img {
    border-radius: 10px;
    width: 100%;
    text-align: center;
    grid-column: 1;
    grid-row: 2;
    overflow: hidden; 
}
    
.location-map {
    grid-column: 1;
    grid-row: 3;
}

.location-img img {
    width: 100%;
    height: auto; 
    object-fit: contain;
    border-radius: 10px;
    display: block;
}
    
.h1loc{
    font-size: 4.5rem;
    line-height: 3.5rem;
}
    
.location-mail {
    font-size: 1.4rem;
}
}
/*RESPONSIVE LOCATION 2*/
@media (max-width: 1300px) {
.location-img {
    border-radius: 10px;
    overflow: hidden;
}
.location-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    }
}

/* ===================== CONTACT PAGE ===================== */
.contact-container {
    margin: 150px auto 20px;
    width: 90%;
    max-width: 1200px;
}

.contact-intro {
    max-width: 780px;
    margin: 0 auto 3rem;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: center;
    color: #4a3a3a;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 821px) {
    .contact-card:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 1.5rem) / 2);
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: #fffaf3;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.contact-card h3 {
    font-size: 1.6rem;
    color: #5f021f;
    margin-bottom: 1.25rem;
}

.contact-card h4 {
    font-size: 1.1rem;
    color: #5f021f;
    margin: 1.25rem 0 0.4rem;
}

.contact-card p {
    margin: 0;
    font-size: 1.05rem;
    color: #4a3a3a;
}

.contact-phones {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.contact-phones li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(95, 2, 31, 0.12);
}

.contact-phones li:last-child {
    border-bottom: 1px solid rgba(95, 2, 31, 0.12);
}

.contact-label {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a6a6a;
}

.contact-phones a {
    font-size: 1.45rem;
    font-weight: bold;
    color: #5f021f;
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-phones a:hover {
    text-decoration: underline;
}

.contact-map-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 1.25rem;
    font-weight: bold;
    color: #5f021f;
    text-decoration: none;
}

.contact-map-link:hover {
    text-decoration: underline;
}

.contact-social {
    margin-top: 3.5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-social h2 {
    font-family: "CustomFont";
    font-size: 2.6rem;
    color: #6e4446;
    margin: 0;
}

.contact-social p {
    font-size: 1.2rem;
    color: #4a3a3a;
    margin: 0 0 2rem;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    font-size: 1.15rem;
    font-weight: bold;
    color: #5f021f;
    text-decoration: none;
    background-color: #fffaf3;
    border: 1px solid rgba(95, 2, 31, 0.15);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        background-color 0.25s ease, color 0.25s ease;
}

.contact-social-link:hover {
    background-color: #5f021f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(95, 2, 31, 0.28);
}

.contact-social-link .insta {
    margin-top: 0;
}

@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }

    .contact-social h2 {
        font-size: 2rem;
    }

    .contact-social-link {
        width: 100%;
        justify-content: center;
    }
}
/* ===================== CONTACT PAGE END ===================== */


/* =====================================================================
   POLISH & ANIMATION SUPPORT
   (dodato radi profesionalnijeg izgleda + GSAP scroll animacija)
   ===================================================================== */

/* ---- Tipografija: prijatniji razmak u pasusima, bez pomeranja layouta ---- */
.about p,
.page-about-paragraph,
.recommended-item p,
.image-link p {
    line-height: 1.6;
}

/* ---- Reveal: elementi koje GSAP animira unapred su nevidljivi SAMO kada
   je klasa `anim` na <html> (dodaje je inline skripta u <head> ako korisnik
   NE traži smanjene animacije). Ako GSAP ne uspe da se učita, animations.js
   uklanja klasu i sve postaje vidljivo. ---- */
html.anim .hero-content h1,
html.anim .hero-content-bottom,
html.anim .image-link,
html.anim .home-about h1,
html.anim .home-about .divider,
html.anim .home-about .divider2,
html.anim .home-about p,
html.anim .about-slider-div,
html.anim .recommended-heading,
html.anim .recommended-item,
html.anim .recommended-button,
html.anim .footer .footer-item,
html.anim .page-about-paragraph,
html.anim .page-about-slider-div,
html.anim .about-container h2,
html.anim .img-page-about,
html.anim .footer-other .footer-other-item,
html.anim .gallery h1,
html.anim .gallery-navigation-container,
html.anim .gallery-grid-item,
html.anim .menu-section h1,
html.anim .menu-header,
html.anim .menu-grid-item,
html.anim .h1loc,
html.anim .location,
html.anim .location-mail,
html.anim .contact-intro,
html.anim .contact-card,
html.anim .contact-social {
    opacity: 0;
}

/* ---- Dugmad: konzistentan, suptilan lift + senka ---- */
.hero .hero-button,
.recommended-button,
.top-link {
    box-shadow: 0 4px 12px rgba(95, 2, 31, 0.18);
    transition: transform 0.25s ease, background-color 0.25s ease,
        box-shadow 0.25s ease;
    will-change: transform;
}
.hero .hero-button:hover,
.recommended-button:hover,
.top-link:hover {
    background-color: #8a052a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(95, 2, 31, 0.28);
}
.hero .hero-button:active,
.recommended-button:active,
.top-link:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(95, 2, 31, 0.22);
}

/* ---- Kartice: blagi lift na hover ---- */
.image-link {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.image-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.recommended-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.recommended-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
}

/* ---- Navigacija: suptilna linija koja "izlazi" ispod linka ---- */
.left-nav > li > a,
.right-nav > li > a {
    position: relative;
}
.left-nav > li > a::after,
.right-nav > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 100%;
    background-color: #8a052a;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}
.left-nav > li > a:hover::after,
.right-nav > li > a:hover::after {
    transform: scaleX(1);
}

/* ---- Galerijska navigacija: linkovi ---- */
.gallery-navigation a,
.footer-item a,
.footer-other-item a {
    transition: color 0.25s ease;
}

/* ---- Pristupačnost: jasan fokus za tastaturu ---- */
a:focus-visible,
button:focus-visible,
.hero .hero-button:focus-visible,
.recommended-button:focus-visible,
.top-link:focus-visible {
    outline: 3px solid #8a052a;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- NAPOMENA: po odluci klijenta animacije se prikazuju SVIMA. Blok koji je
   ranije gasio animacije pri prefers-reduced-motion je namerno uklonjen.
   Da se pristupačnost vrati, ovde dodaj @media (prefers-reduced-motion: reduce)
   koji gasi hero animaciju/tranzicije i pinuje prvi hero slajd. ---- */

/* =====================================================================
   FLOATING DOCK — mobilna navigacija (Aceternity stil)
   Vanilla port React/framer-motion komponente (vidi floating-dock.js).
   Vidi se SAMO na telefonu (≤768px), gde je header sakriven.

   Mapiranje tokena iz reference na paletu ovog projekta:
     gold     -> --fdock-accent  (#6e4446, ista boja kao .hero-button)
     charcoal -> --fdock-dark    (tamna bordo podloga)
     cream    -> --fdock-light   (#fffaf3, boja pozadine sajta)

   Spring iz framer-motiona (stiffness 400, damping 26) nema direktan CSS
   ekvivalent — aproksimiran je cubic-bezier krivom sa prebačajem.
   ===================================================================== */
.fdock {
    display: none;
}

@media (max-width: 768px) {
    .fdock {
        --fdock-accent: #6e4446;
        --fdock-dark: #40191c;
        --fdock-light: #fffaf3;
        --fdock-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* ~ spring sa prebačajem */

        display: block;
        position: fixed;
        bottom: 24px;  /* bottom-6 */
        right: 20px;   /* right-5 */
        z-index: 1200; /* iznad sadržaja; header je na telefonu ionako sakriven */
    }

    .fdock-list {
        position: absolute;
        bottom: 64px;  /* bottom-16 — stack ide IZNAD dugmeta */
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;     /* gap-3 */
    }

    .fdock-item {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        white-space: nowrap;

        /* zatvoreno stanje */
        opacity: 0;
        transform: translateY(12px) scale(0.8);
        pointer-events: none;
        transition:
            opacity 0.22s ease-in var(--out-delay),
            transform 0.22s ease-in var(--out-delay);
    }

    .fdock.is-open .fdock-item {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        transition:
            opacity 0.42s var(--fdock-spring) var(--in-delay),
            transform 0.42s var(--fdock-spring) var(--in-delay);
    }

    .fdock-pill {
        border-radius: 999px;
        border: 1px solid rgba(255, 250, 243, 0.22);
        background: rgba(64, 25, 28, 0.9);
        padding: 6px 12px;               /* px-3 py-1.5 */
        font-size: 0.75rem;              /* text-xs */
        font-weight: 500;
        color: var(--fdock-light);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(4px);
    }

    .fdock-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;                    /* h-11 w-11 */
        width: 44px;
        border-radius: 999px;
        border: 1px solid rgba(255, 250, 243, 0.28);
        background: rgba(64, 25, 28, 0.9);
        color: var(--fdock-light);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(4px);
    }

    .fdock-svg {
        height: 20px;                    /* h-5 w-5 */
        width: 20px;
    }

    .fdock-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;                    /* h-14 w-14 */
        width: 56px;
        cursor: pointer;
        border-radius: 999px;
        border: 1px solid rgba(110, 68, 70, 0.4);
        background: var(--fdock-accent);
        color: var(--fdock-light);
        box-shadow: 0 20px 25px -5px rgba(110, 68, 70, 0.35);
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    .fdock-btn:active {
        transform: scale(0.95);
    }

    .fdock-btn-svg {
        height: 24px;                    /* h-6 w-6 */
        width: 24px;
        transition: transform 0.3s ease;
    }
    .fdock.is-open .fdock-btn-svg {
        transform: rotate(45deg);        /* hamburger -> „+" */
    }

    /* zamena hamburgera i „+" (u referenci je uslovni render dva <path>-a) */
    .fdock-plus { opacity: 0; }
    .fdock.is-open .fdock-bars { opacity: 0; }
    .fdock.is-open .fdock-plus { opacity: 1; }
}

/* =====================================================================
   KARTICE NA POČETNOJ — popravka glitcha na telefonu
   ---------------------------------------------------------------------
   .image-link ima `transition: transform .3s` (zbog hover podizanja), a GSAP
   reveal upisuje transform svaki frejm. Browser na svaku izmenu kreće novu
   0.3s tranziciju, pa transform kasni za GSAP-om (mereno: opacity 0.20 dok je
   transform tek na -109 umesto -89), a na kraju `clearProps` skloni transform
   usred tranzicije -> vidljiv trzaj.

   Na telefonu hover ionako ne postoji (i „zaglavi se" posle dodira), pa
   transform tranziciju gasimo — GSAP tada animira sam, bez borbe.

   Mora biti NA KRAJU fajla: pravila .image-link/.image-link:hover su na
   ~2204 i inače bi (ista specifičnost, kasnije u fajlu) pregazila ovo.
   ===================================================================== */
@media (max-width: 768px) {
    .image-links {
        /* kartica „Галерија" ulazi sa x:+110, dakle van desne ivice — bez ovoga
           body.scrollWidth skoči sa 390 na 490 i mobilni browser trza.
           clip (a ne hidden) ne pravi scroll kontejner. */
        overflow-x: clip;
    }

    .image-link {
        transition: box-shadow 0.3s ease; /* bez transform — to je bio sudar sa GSAP-om */
        /* will-change OSTAJE: kartica dobija svoj GPU sloj, pa se dok ulazi ne
           preiscrtava preko zamućene fiksne šare u pozadini (to je seckalo skrol) */
        will-change: transform;
    }

    .image-link:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
}
