@import url("/css/v2/floating.css");

.dark-on-light {
    background-color: white;
    color: #003145;
}
button.dark-on-light:hover{
    background:#003145;
    color:#fff;
}
.light-on-dark {
    color:white;
    background-color: #003145;
}

.header-logo {
    max-height: 25px;
}

.pointer {
    cursor: pointer;
}

.txt-12 {
    font-size: 12px;
}
.txt-14 {
    font-size: 14px;
}
/* Tablet */
@media (min-width: 768px) {

    .header-logo {
        max-height: 35px;
    }
}
/* Desktop */
@media (min-width: 992px) {
    .header-logo {
        max-height: 40px;
    }
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-hover {
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.card-hover img {
    transition: transform .35s ease;
}

.card-hover:hover img {
    transform: scale(1.04);
}

.gray-section {
    background-color: #F2F4F5;
    /* height: 150px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 5px 0px 15px 0px;
    padding: 1.5rem;
}

.hero-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    /* margin-top: 80px; */
    height: auto;
    overflow: hidden;
    position: relative;
}



@media (max-width: 768px) {
    .hero-wrapper {
        height: auto;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top:1rem;
    object-position: center;
}


/* Mls carousel */

.mls-carousel h3, .mls-carousel h4{
    color:#001151;
    font-weight: 600;
}
.mls-carousel .carousel-item,
.mls-carousel .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

.mls-carousel .carousel-indicators {
    margin-bottom: 0px !important;
}

.mls-carousel .carousel-indicators [data-bs-target] {
    box-sizing: content-box !important;
    background-color: #bbb !important;
    margin-bottom: 0px !important;
}

.mls-carousel .carousel-control-prev-icon,
.mls-carousel .carousel-control-next-icon {
    background-color: #bbb;
    border-radius: 50%;
    padding: 15px;
    background-size: 60% 60%;
}

/* Važi samo za mls-carousel → carousel-item → controls-wrapper → button */

.mls-carousel .carousel-item .controls-wrapper {
    padding-top:20px;
    display: flex;
    justify-content:end;
}

.mls-carousel .carousel-item .controls-wrapper button {
    border: 0;
    background: none;
    padding: 0;
}

/* Opcionalno: malo lepši hover efekat */
.mls-carousel .carousel-item .controls-wrapper button:hover {
    opacity: 0.7;
}

/* Opcionalno: malo veće klik polje */
.mls-carousel .carousel-item .controls-wrapper button {
    width: 40px;
    height: 40px;
}
/* End of carousel */


 /* ===== Sekcija/pozadina ===== */
 #movie {
    position: relative;
    background: #474B43;
    /* tamna maslinasta */
    padding: 48px 0 72px;
    overflow: hidden;
}

#movie::before {
    /* svetliji panel iza sadržaja */
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    top: 84px;
    height: 560px;
    background: #575B53;
    transform: skewY(0deg);
    z-index: 0;
}

#movie .container {
    position: relative;
    z-index: 1;
}

/* ===== Naslov "MOVIE" ===== */
#movie h2 {
    max-width: 1180px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

#movie h2 span {
    display: inline-block;
    color: #E7E7E5;
    font-weight: 800;
    letter-spacing: .35em;
    font-size: 40px;
    line-height: 1;
    position: relative;
}

#movie h2 span::before {
    content: "";
    position: absolute;
    left: -48px;
    right: 100%;
    top: 50%;
    height: 2px;
    background: #B9BCB5;
    transform: translateY(-50%);
}

.category+.category {
    margin-top: 56px;
}

.category .inner h3 {
    color: #E8E8E6;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .02em;
    margin: 24px 0 24px;
    text-align: left;
}

/* ===== Grid kartica ===== */
.items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 36px;
}

/* ===== Kartica ===== */
.item {
    position: relative;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px calc(50cqw - 480px);
}

.item a {
    text-decoration: none;
    display: block;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .32);
}

/* Slika (16:9), play dugme i Suzuki bedž */
.item figure {
    position: relative;
    margin: 0;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
}

.item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play dugme u centru */
.item figure::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: rgba(0, 123, 191, .55);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
    mask:
        radial-gradient(circle 34px at 34px 34px, #000 98%, transparent 100%),
        linear-gradient(transparent 0 0);
}

.item figure::before {
    /* trougao play */
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    transform: translateX(6px);
}

.item a:hover figure::after {
    filter: brightness(1.05);
}

/* Suzuki bedž (opciono) u donjem levom uglu thumbnail-a */
.item figure .suzuki-badge,
.item figure::marker {
    display: none;
}

.item figure>i.badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 28px;
    height: 28px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/8/82/Suzuki_logo_2.svg') no-repeat center/contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}

/* Tekst u belom boksu */
.item .text {
    display: block;
    padding: 16px 18px 18px;
    color: #444;
}

.item .text .ttl {
    display: block;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #222;
}

.item .text .body {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: #586061;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #movie::before {
        top: 70px;
        height: auto;
    }

    .items {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #movie h2 span {
        font-size: 32px;
    }

    .category .inner h3 {
        font-size: 22px;
    }
}

/* MOVIE YT */
