/* =========================================================
   OGB Oceny Sytuacji
   ========================================================= */
/* Główny wrapper */
.ogb-oceny-sytuacji-wrapper {
    width: 100%;
    margin: 40px 0;
    font-family: 'Museo Sans Rounded', sans-serif;
    position: relative;
    overflow: visible;
}
.ogb-yellow-bg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 0;
    top: 0;
    background-color: #fdf7dd;
    z-index: 0;
    pointer-events: none;
    transition: top 0.25s ease, height 0.25s ease;
}
.ogb-slide {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}
.ogb-header-section {
    text-align: center;
    margin-bottom: 24px;
}
.ogb-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--darkblue, #24457E);
    margin-bottom: 15px;
}
.ogb-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--basicblue, #25467E);
    margin-bottom: 12px;
}
.ogb-question-box {
    display: inline-block;
    background-color: var(--darkblue, #24457E);
    color: var(--white, #ffffff);
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.ogb-bars-section {
    background-color: transparent;
    padding: 60px 0 50px;
    position: relative;
    margin-bottom: 30px;
}
.ogb-bars-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}
.ogb-bars-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    height: 340px;
}
.ogb-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    height: 100%;
}
.ogb-bar-track {
    flex: 1;
    display: flex;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 18px;
}
.ogb-bar-fill {
    position: relative;
    width: 100%;
    height: 0%;
    opacity: 0;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    box-sizing: border-box;
    transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    will-change: height;
}

/* Obsługa niskich słupków (etykieta wypchnięta nad słupek) */
.ogb-bar-fill.ogb-bar-low {
    align-items: flex-start;
    padding-bottom: 0;
    overflow: visible;
}
.ogb-bar-fill.ogb-bar-low .ogb-bar-val {
    color: var(--darkblue, #24457E);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    text-shadow: none;
}

.ogb-bar-val {
    color: var(--white, #fff);
    font-weight: 700;
    font-size: 22px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    line-height: 1;
    white-space: nowrap;
}
.ogb-bar-label {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--darkblue, #24457E);
    line-height: 1.25;
    min-height: 40px;
    max-width: 130px;
}
.ogb-chart-section {
    background: transparent;
    padding: 30px 20px 10px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
.ogb-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 440px;
    max-width: 1400px;
    margin: 0 auto;
}
.ogb-canvas-wrapper canvas {
    font-family: 'Museo Sans Rounded', sans-serif;
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.ogb-sytuacja-carousel {
    position: relative;
    z-index: 1;
}
.ogb-sytuacja-carousel .owl-stage-outer {
    overflow: hidden; 
}
.ogb-sytuacja-carousel .owl-nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    pointer-events: none;
    display: block;
    z-index: 10;
    box-sizing: border-box;
}
.ogb-sytuacja-carousel .owl-nav button.owl-prev,
.ogb-sytuacja-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    background-color: var(--blue, #00B8EE) !important;
    color: var(--white, #fff) !important;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background-color 0.25s;
    z-index: 10;
}
.ogb-sytuacja-carousel .owl-nav button.owl-prev { left: 10px; }
.ogb-sytuacja-carousel .owl-nav button.owl-next { right: 10px; }

.ogb-sytuacja-carousel .owl-nav button.owl-prev:hover,
.ogb-sytuacja-carousel .owl-nav button.owl-next:hover {
    background-color: var(--navy, #45818E) !important;
}
.ogb-sytuacja-carousel .owl-nav svg {
    width: 24px;
    height: 24px;
}
.ogb-sytuacja-carousel .owl-nav button.disabled { opacity: 1; }
.ogb-oceny-wrapper { width: 100%; margin: 40px 0; }
.ogb-oceny-grid {
    display: grid; grid-template-columns: 1fr; gap: 30px;
    max-width: 1200px; margin: 0 auto;
}
.ogb-ocena-card {
    background: #fdf8e6; padding: 50px 30px 40px;
    border-radius: 0; box-shadow: none; position: relative;
}
.ogb-ocena-title {
    text-align: center; font-size: 26px; font-weight: 700;
    color: #1e3a6e; margin: 0 0 10px 0; line-height: 1.3;
}
.ogb-ocena-question { text-align: center; margin-top: 25px; margin-bottom: 50px; }
.ogb-ocena-question span {
    display: inline-block; background: #234279; color: #ffffff;
    border: none; border-radius: 6px; padding: 14px 30px;
    font-size: 15px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(35, 66, 121, 0.15);
}
.ogb-ocena-chart {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 25px; height: 300px; margin-bottom: 30px; padding: 0;
}
.ogb-bar { display: flex; flex-direction: column; align-items: center; height: 100%; width: 115px; flex: none; }
.ogb-bar-inner {
    position: relative; width: 100%; height: 240px;
    display: flex; align-items: flex-end; justify-content: center; margin-bottom: 15px;
}
.ogb-bar-percent { font-weight: 700; font-size: 22px; line-height: 1; white-space: nowrap; }
.ogb-bar-percent.inside { color: #fff; }
.ogb-bar-percent.outside { position: absolute; bottom: 100%; margin-bottom: 10px; color: #1e3a6e; }
.ogb-ocena-footer { display: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 991px) {
    .ogb-bars-grid { gap: 18px; height: 300px; }
    .ogb-bar-item { width: 95px; }
    .ogb-bar-val { font-size: 16px; }
    .ogb-canvas-wrapper { height: 400px; }
}
@media (max-width: 768px) {
    .ogb-bars-section { padding: 40px 0 30px; margin-bottom: 20px; }
    .ogb-bars-inner { padding: 0 16px; }
    .ogb-bars-grid { gap: 8px; height: 260px; }
    .ogb-bar-item { width: 60px; }
    .ogb-bar-fill { padding-bottom: 8px; border-radius: 8px 8px 0 0; }
    .ogb-bar-val { font-size: 13px; text-shadow: none; }
    .ogb-bar-label { font-size: 11px; min-height: 36px; }
    .ogb-title { font-size: 24px; }
    .ogb-subtitle { font-size: 18px; }
    .ogb-question-box { font-size: 14px; padding: 10px 18px; }
    .ogb-canvas-wrapper { height: 340px; }
    .ogb-chart-section { padding: 20px 6px 10px; }
    .ogb-sytuacja-carousel .owl-nav button.owl-prev { left: 4px; }
    .ogb-sytuacja-carousel .owl-nav button.owl-next { right: 4px; }
    .ogb-sytuacja-carousel .owl-nav button.owl-prev,
    .ogb-sytuacja-carousel .owl-nav button.owl-next { width: 38px; height: 38px; }
}

@media (max-width: 768px) {
    .ogb-ocena-card { padding: 30px 15px; }
    .ogb-ocena-chart { gap: 10px; height: 250px; }
    .ogb-bar { width: 65px; }
    .ogb-bar-inner { height: 190px; }
    .ogb-bar-percent { font-size: 14px; }
}

@media (max-width: 640px) {
    .ogb-bar { width: 50px; }
}
