/*
Theme Name: Bibija Modern Child
Theme URI: https://www.bibija.org.rs/
Description: Moderan redizajn Bibije zasnovan na EVAWP temi. Naslovna, zaglavlje i podnožje prema dostavljenom vizuelnom predlogu.
Author: Bibija
Template: evawp
Version: 1.6.0
Text Domain: bibija-modern-child
*/
:root{--bibija-wine:#711722;--bibija-wine-dark:#59101a;--bibija-paper:#fbf4ee;--bibija-paper-alt:#f6ede7;--bibija-border:#e5d9d2;--bibija-ink:#201c1b}
html{scroll-behavior:smooth}body.bibija-site{background:var(--bibija-paper);color:var(--bibija-ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.55}body.bibija-site a{transition:color .18s,background .18s,opacity .18s}body.bibija-site a:hover{text-decoration:none}body.bibija-site :focus-visible{outline:3px solid #bf8356;outline-offset:3px}.bibija-shell{width:min(100% - 68px,1400px);margin-inline:auto}
/* Header */
.bibija-header{background:#fdf8f3;border-bottom:1px solid #ddd1ca;position:relative;z-index:10}.bibija-header__inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:26px}.bibija-brand{display:inline-flex;align-items:center;gap:18px;color:var(--bibija-wine)!important;text-decoration:none!important;white-space:nowrap;flex-shrink:0}.bibija-brand__name{font-size:39px;letter-spacing:-2.2px;font-weight:800;line-height:1}.bibija-brand__divider{width:1px;height:38px;background:var(--bibija-wine)}.bibija-brand__sub{font-size:14px;font-weight:500;letter-spacing:-.1px}.bibija-nav{display:flex;gap:28px;align-items:center;justify-content:flex-end}.bibija-nav__list{display:flex;align-items:center;flex-wrap:wrap;gap:23px;padding:0;margin:0;list-style:none}.bibija-nav__list li{margin:0;position:relative;list-style:none}.bibija-nav__list a{font-size:14px;font-weight:600;color:#282424;text-decoration:none;display:block;padding:9px 0}.bibija-nav__list a:hover,.bibija-nav__list .current-menu-item>a{color:var(--bibija-wine)}.bibija-nav__list .sub-menu{display:none;position:absolute;z-index:30;left:-12px;top:100%;min-width:210px;background:white;padding:12px 18px;box-shadow:0 12px 25px #260a1220;list-style:none;border-radius:4px}.bibija-nav__list li:hover>.sub-menu,.bibija-nav__list li:focus-within>.sub-menu{display:block}.bibija-support{white-space:nowrap;color:#fff!important;background:var(--bibija-wine);font-size:14px;font-weight:700;padding:11px 19px;border-radius:7px;text-decoration:none!important}.bibija-support:hover{background:var(--bibija-wine-dark)}.bibija-menu-toggle{display:none;background:none;border:1px solid var(--bibija-wine);border-radius:6px;color:var(--bibija-wine);font-size:24px;line-height:1;padding:7px 11px;cursor:pointer}
/* Hero */
.bibija-hero{display:grid;grid-template-columns:57.4% 42.6%;min-height:500px;background:var(--bibija-paper-alt)}.bibija-hero__picture{min-height:500px;overflow:hidden;background:#d8dddd}.bibija-hero__picture img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center}.bibija-hero__body{position:relative;display:flex;align-items:center;padding:65px clamp(30px,4vw,80px);overflow:hidden}.bibija-hero__body:after{content:"";position:absolute;width:280px;height:280px;bottom:-160px;right:-105px;border:22px double #e6bba9;border-radius:50%;opacity:.35;pointer-events:none}.bibija-hero__content{position:relative;z-index:1;max-width:510px}.bibija-eyebrow{display:flex;gap:20px;align-items:center;color:var(--bibija-wine);font-size:14px;font-weight:700;letter-spacing:2.1px;text-transform:uppercase;margin:0 0 20px}.bibija-eyebrow span{height:1px;width:54px;background:var(--bibija-wine)}.bibija-hero h1{color:var(--bibija-wine);font-size:clamp(56px,5.25vw,82px);line-height:1.1;letter-spacing:-1.5px;font-weight:800;margin:0 0 22px}.bibija-hero__intro{color:#201e1d;font-size:clamp(18px,1.9vw,23px);line-height:1.46;max-width:470px;margin:0 0 28px}.bibija-outline-button{border:1.5px solid var(--bibija-wine);border-radius:9px;padding:12px 23px;display:inline-flex;align-items:center;gap:13px;color:var(--bibija-wine)!important;font-size:16px;font-weight:700;text-decoration:none!important}.bibija-outline-button:hover{background:var(--bibija-wine);color:#fff!important}.bibija-outline-button span{font-size:23px;line-height:1}
/* Home content */
.bibija-main-sections{padding-top:32px;padding-bottom:45px}.bibija-section{margin-bottom:42px}.bibija-section-heading{display:flex;align-items:center;gap:20px;margin-bottom:18px}.bibija-section-heading h2{color:var(--bibija-wine);font-weight:800;font-size:clamp(27px,3vw,43px);letter-spacing:-1.1px;line-height:1.18;white-space:nowrap;margin:0}.bibija-section-heading__line{height:1px;flex:1;background:var(--bibija-wine);min-width:15px}.bibija-section-heading>a{font-size:14px;white-space:nowrap;color:var(--bibija-wine);font-weight:700;text-decoration:none}.bibija-section-heading>a span{font-size:20px;vertical-align:-1px;padding-left:6px}.bibija-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.bibija-video-card{display:block;color:var(--bibija-ink)!important;text-decoration:none!important}.bibija-video-card__media{position:relative;display:block;aspect-ratio:1.65;overflow:hidden;border-radius:8px;background:#e6ddd9}.bibija-video-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.bibija-video-card:hover img{transform:scale(1.04)}.bibija-video-card__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:55px;height:55px;display:grid;place-items:center;border:1.5px solid #fff;border-radius:50%;color:#fff;background:#1b151660;font-size:21px;padding-left:4px}.bibija-video-card__title{display:block;padding:11px 0 0;font-size:16px;font-weight:700;line-height:1.3}.bibija-news{margin-top:24px;margin-bottom:0}.bibija-news-card{border:1px solid var(--bibija-border);background:#fff8f5;min-width:0}.bibija-news-card__link{display:flex;flex-direction:column;height:100%;color:var(--bibija-ink)!important;text-decoration:none!important;padding:14px}.bibija-news-card time{display:block;color:var(--bibija-wine);font-size:14px;margin-bottom:5px}.bibija-news-card h3{font-size:20px;font-weight:700;line-height:1.22;letter-spacing:-.2px;margin:0 0 13px;min-height:2.45em;color:#221e1d}.bibija-news-card__image{display:block;aspect-ratio:1.63;background:#e8d9d1;margin-top:auto;overflow:hidden}.bibija-news-card__image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.bibija-news-card:hover img{transform:scale(1.04)}.bibija-news-card__placeholder{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(135deg,#e6cfc5,#a66870);color:#fff;font-size:34px;font-weight:800;letter-spacing:2px}.bibija-all-news{display:inline-flex;margin-top:16px;gap:8px;color:var(--bibija-wine)!important;font-weight:700;text-decoration:none!important}
/* Footer */
.bibija-footer{background:var(--bibija-wine);color:#fff;padding:36px 0}.bibija-footer__inner{display:flex;align-items:center;justify-content:space-between;gap:26px}.bibija-footer a{color:#fff!important;text-decoration:none!important}.bibija-footer__brand{display:flex;gap:18px;align-items:center;white-space:nowrap}.bibija-footer__brand strong{font-size:30px;line-height:1;letter-spacing:-1px}.bibija-footer__brand span{border-left:1px solid #ffffffa0;padding-left:18px;font-size:14px}.bibija-footer__details{display:flex;align-items:center;gap:28px;font-size:14px;flex-wrap:wrap}.bibija-footer__social{display:flex;align-items:center;gap:22px;border-left:1px solid #ffffff9e;padding-left:35px}.bibija-footer__social a{font-size:28px;font-weight:800;line-height:1}
/* Parent EVAWP's inner page layouts stay active, but get matching backdrop */
body.bibija-site:not(.home) #site-content{padding-top:35px;padding-bottom:55px}body.bibija-site:not(.home) #site-content a{color:var(--bibija-wine)}body.bibija-site:not(.home) #site-content .site-main{min-height:45vh}body.bibija-site .screen-reader-text:focus{z-index:99999}
@media(max-width:1180px){.bibija-header__inner{gap:14px}.bibija-brand{gap:12px}.bibija-brand__name{font-size:32px}.bibija-brand__sub{font-size:12px}.bibija-nav{gap:15px}.bibija-nav__list{gap:12px}.bibija-nav__list a{font-size:13px}.bibija-support{padding:10px 13px}.bibija-footer__inner{flex-wrap:wrap}}
@media(max-width:900px){.bibija-shell{width:min(100% - 40px,1400px)}.bibija-header__inner{min-height:75px}.bibija-menu-toggle{display:block}.bibija-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff9f4;box-shadow:0 16px 26px #33120d21;padding:17px 25px 25px;flex-direction:column;align-items:stretch}.bibija-nav.is-open{display:flex}.bibija-nav__list{display:flex;flex-direction:column;align-items:stretch;gap:0}.bibija-nav__list a{padding:10px 0;font-size:16px}.bibija-nav__list .sub-menu{position:static;display:block;box-shadow:none;background:transparent;padding:0 0 0 18px}.bibija-support{align-self:flex-start}.bibija-hero{grid-template-columns:52% 48%;min-height:390px}.bibija-hero__picture{min-height:390px}.bibija-hero__body{padding:30px}.bibija-hero h1{font-size:52px}.bibija-hero__intro{font-size:18px}.bibija-footer__details{gap:18px}}
@media(max-width:650px){.bibija-shell{width:min(100% - 30px,1400px)}.bibija-brand__name{font-size:31px}.bibija-brand__divider{height:31px}.bibija-brand__sub{font-size:11px;max-width:108px;line-height:1.2;white-space:normal}.bibija-hero{display:flex;flex-direction:column}.bibija-hero__picture{min-height:0;aspect-ratio:1.75}.bibija-hero__body{padding:32px 24px 40px}.bibija-hero h1{font-size:52px}.bibija-hero__intro{font-size:18px}.bibija-eyebrow{font-size:12px;margin-bottom:15px}.bibija-main-sections{padding-top:25px}.bibija-section-heading{gap:10px;flex-wrap:wrap}.bibija-section-heading h2{white-space:normal;font-size:29px}.bibija-section-heading>a{flex-basis:100%;text-align:right}.bibija-grid{grid-template-columns:1fr;gap:22px}.bibija-video-card__media{aspect-ratio:1.8}.bibija-video-card__title{font-size:16px}.bibija-news-card h3{min-height:0}.bibija-news-card__image{aspect-ratio:1.8}.bibija-news{margin-top:5px}.bibija-footer{padding:30px 0}.bibija-footer__inner,.bibija-footer__details{flex-direction:column;align-items:flex-start}.bibija-footer__social{border:0;padding-left:0}.bibija-footer__brand{white-space:normal}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.bibija-video-card__media img,.bibija-news-card__image img{transition:none}}

/* Slika originalnog Bibija logoa umesto tekstualnog naziva u zaglavlju. */
.bibija-brand__logo{display:block;width:auto;height:60px;max-width:90px;object-fit:contain;flex-shrink:0}
@media(max-width:650px){.bibija-brand__logo{height:48px;max-width:72px}}

/* v1.1: logo + vidljiv naziv + savremen font + originalni ornamentalni motiv */
body.bibija-site, body.bibija-site button, body.bibija-site input, body.bibija-site textarea,
body.bibija-site select {font-family: "Manrope", "Segoe UI", Arial, sans-serif;}
.bibija-brand__name {display:inline-block;font-family:inherit;font-size: clamp(22px, 2.2vw, 35px);font-weight:800;letter-spacing:-1.5px;line-height:1;color:var(--bibija-wine)}
.bibija-brand__logo {height:52px;width:52px;max-width:none;object-fit:contain;}
.bibija-brand {gap:11px;min-width:0}
.bibija-brand__divider {height:36px;margin-inline:3px}
.bibija-brand__sub {font-size:13px;white-space:nowrap}
.bibija-hero__body:after {content:"";width:min(410px,75%);height:320px;bottom:-60px;right:-85px;border:0;border-radius:0;opacity:.72;background:url("assets/images/bibija-ornament.svg") center / contain no-repeat;pointer-events:none;}
.bibija-hero__content {z-index:1}
@media(max-width:1250px){.bibija-header__inner{gap:12px}.bibija-brand{gap:8px}.bibija-brand__name{font-size:26px}.bibija-brand__logo{height:44px;width:44px}.bibija-brand__sub{font-size:11px}.bibija-nav{gap:13px}.bibija-nav__list{gap:10px}.bibija-nav__list a{font-size:12px}}
@media(max-width:900px){.bibija-brand__name{font-size:29px}.bibija-brand__logo{height:48px;width:48px}.bibija-brand__sub{font-size:12px}.bibija-hero__body:after{width:280px;height:250px;right:-85px;bottom:-85px;opacity:.5}}
@media(max-width:650px){.bibija-brand{gap:7px}.bibija-brand__logo{height:37px;width:37px}.bibija-brand__name{font-size:24px;letter-spacing:-1px}.bibija-brand__divider{height:27px;margin:0}.bibija-brand__sub{font-size:10px;white-space:normal;max-width:105px}.bibija-hero__body:after{width:240px;height:220px;right:-80px;bottom:-85px;opacity:.34}}
@media(max-width:390px){.bibija-brand__logo{height:31px;width:31px}.bibija-brand__name{font-size:21px}.bibija-brand__sub{font-size:9px;max-width:82px}.bibija-header__inner{gap:7px}}

/* v1.2 — ornament po uzoru na dostavljeni mockup i zaobljena naslovna tipografija. */
body.bibija-site .bibija-hero h1,
body.bibija-site .bibija-section-heading h2 {
    font-family: "Nunito Sans", "Manrope", Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    letter-spacing: -0.035em;
}
body.bibija-site .bibija-hero__body::after {
    content: "";
    position: absolute;
    width: min(470px, 93%);
    height: 310px;
    right: -14px;
    bottom: -3px;
    background: url("assets/images/bibija-corner-ornament.webp") right bottom / contain no-repeat;
    border: 0;
    border-radius: 0;
    opacity: .48;
    pointer-events: none;
    z-index: 0;
}
body.bibija-site .bibija-hero__content {position: relative; z-index: 1;}
@media (max-width: 900px) {
    body.bibija-site .bibija-hero__body::after {width: 340px; height: 230px; right: -18px; bottom: -3px; opacity: .37;}
}
@media (max-width: 650px) {
    body.bibija-site .bibija-hero__body::after {width: 260px; height: 175px; right: -15px; bottom: -2px; opacity: .27;}
}

/* Video carousel – three visible cards on large screens, latest six in the strip. */
body.bibija-site .bibija-video-carousel{position:relative;display:flex;align-items:center;gap:10px;min-width:0}
body.bibija-site .bibija-videos{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-inline:contain;min-width:0;flex:1;scrollbar-width:thin;scrollbar-color:#b68c8d transparent;padding-bottom:8px}
body.bibija-site .bibija-videos .bibija-video-card{flex:0 0 calc((100% - 40px)/3);min-width:0;scroll-snap-align:start}
body.bibija-site .bibija-carousel-arrow{flex:0 0 36px;width:36px;height:44px;border:1px solid var(--bibija-wine);border-radius:7px;background:#fff8f4;color:var(--bibija-wine);font-size:32px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
body.bibija-site .bibija-carousel-arrow:hover:not(:disabled){background:var(--bibija-wine);color:white}
body.bibija-site .bibija-carousel-arrow:disabled{opacity:.28;cursor:default}
@media(max-width:900px){body.bibija-site .bibija-videos .bibija-video-card{flex-basis:calc((100% - 20px)/2)}}
@media(max-width:650px){body.bibija-site .bibija-video-carousel{gap:6px}body.bibija-site .bibija-videos{gap:12px}body.bibija-site .bibija-videos .bibija-video-card{flex-basis:100%}body.bibija-site .bibija-carousel-arrow{flex-basis:25px;width:25px;font-size:25px}}
@media(prefers-reduced-motion:reduce){body.bibija-site .bibija-videos{scroll-behavior:auto}}
