/* Core Web Vitals: CLS / LCP helpers */

.hero-slideshow {
    width: 100%;
    min-height: 220px;
    aspect-ratio: 16 / 9;
    contain: layout style;
}

@media (min-width: 992px) {
    .hero-slideshow {
        aspect-ratio: auto;
        min-height: 525px;
        height: 525px;
    }
}

.hero-slideshow .uk-slideshow-items,
.hero-slideshow .uk-slideshow-items > li {
    min-height: inherit;
    height: 100%;
}

.hero-slideshow .hero-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
}

.hero-slideshow .hero-slide-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.panelbg .bc_card_title.bc_hor-c {
    min-height: 95px;
    display: block;
}

.fotter-padding .bc_hor-c {
    min-height: 0;
}

.bc_img {
    width: 140px;
    height: 95px;
    max-height: 95px;
    object-fit: cover;
}

a.logo {
    contain: layout;
}

.gallery img.bc-img-base {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* home-bg-1 arka plani slider.php inline style ile gelir */
.home-bg-1 {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    background-color: #e8eaef;
    min-height: 220px;
}

@media (min-width: 992px) {
    .home-bg-1 {
        min-height: 680px;
        background-size: cover;
        background-position: center center;
    }
}

@media (min-width: 1400px) {
    .home-bg-1 {
        background-size: 100% auto;
        background-position: center top;
    }
}

/* Slider konteyneri: masaustu sabit alan */
@media (min-width: 992px) {
    .slide-bg.mh-800 {
        min-height: 620px !important;
    }

    .uk-position-bottommb {
        position: absolute !important;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .portalbtn,
    .akademibtn {
        min-height: 88px;
        box-sizing: border-box;
    }

    .slider-sidebar-img {
        width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: contain;
        object-position: top center;
        display: block;
    }

    .slider-baskan-row {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        width: 100%;
        margin-bottom: 8px;
    }

    .slider-baskan-text {
        flex: 1 1 0;
        min-width: 0;
    }

    .slider-baskan-name {
        color: #0d135a;
        font-size: 17px !important;
        font-weight: 600;
        line-height: 1.35;
        background: rgba(255, 255, 255, 0.94);
        padding: 10px 12px;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(13, 19, 90, 0.12);
    }

    .slider-baskan-title {
        color: #334155;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        background: rgba(255, 255, 255, 0.9);
        padding: 8px 12px;
        border-radius: 6px;
        margin-top: 6px;
        box-shadow: 0 1px 4px rgba(13, 19, 90, 0.08);
    }

    .slider-baskan-photo {
        flex: 0 0 180px;
        max-width: 45%;
    }

    .slider-baskan-img {
        max-height: 220px !important;
        width: 100%;
        object-fit: contain;
        object-position: bottom center;
        border-radius: 8px;
        box-shadow: 0 4px 14px rgba(13, 19, 90, 0.18);
    }

    .slider-sidebar-icon {
        width: 32px;
        height: 32px;
        object-fit: contain;
        vertical-align: middle;
    }
}

/* Mobil slider alani */
@media (max-width: 991px) {
    .slide-bg.mh-800 {
        min-height: 0 !important;
        margin-top: 70px !important;
        padding-top: 0 !important;
    }

    #header.header-absolute {
        min-height: 72px;
    }

    .header-pd {
        padding-top: 72px !important;
    }
}

/* Sayaç */
.bc_wrapper {
    min-height: 140px;
}

span.num,
span.num1,
span.num2,
span.num3,
span.num4 {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    display: inline-block;
    min-width: 2.5ch;
    text-align: center;
}

.bc_container img {
    width: 40px;
    height: 40px;
}

.butons img,
.butons .uk-card-media-top img {
    width: auto;
    height: 60px;
    max-width: 100%;
}

body,
.uk-navbar-item,
.uk-navbar-nav > li > a {
    font-family: 'Saira', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Popup/overlay icerigi akisi itmesin */
.popup-modal_bc,
#popup-modal {
    contain: layout style;
}

/* Sticky header: ust bar gizle, sadece menu kalsin */
#header-top-bar {
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
    max-height: 56px;
}

#header.header-scrolled #header-top-bar {
    max-height: 0;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    pointer-events: none;
}

#header.sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    margin-top: 0 !important;
    background: #fff;
    box-shadow: 0 0 11px rgba(0, 0, 0, 0.15);
}

#header.sticky .header-main-bar {
    background: #fff;
}

@media (min-width: 640px) {
    #header-top-bar {
        max-height: 64px;
    }
}

@media (min-width: 960px) {
    #header-top-bar {
        max-height: 72px;
    }
}

/* Ana sayfa etkinlik takvimi — haber/duyuru paneli yüksekliğine sığdır */
#fuarlarpnl.bc-home-events-panel {
    max-height: 540px;
    overflow: hidden;
}

#fuarlarpnl.bc-home-events-panel .panelbg {
    min-height: 0 !important;
}

.bc-events-calendar-wrap {
    padding: 0;
    height: 100%;
    max-height: 540px;
}

.bc-events-calendar-layout {
    display: flex;
    gap: 8px;
    height: 540px;
    max-height: 540px;
}

.bc-events-calendar-panel {
    flex: 1 1 62%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px 8px;
}

.bc-events-side-panel {
    flex: 0 0 38%;
    max-width: 38%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    overflow: hidden;
}

.bc-events-side-section {
    min-height: 0;
}

.bc-events-side-section:first-child {
    flex: 0 0 auto;
    max-height: 42%;
    overflow: hidden;
}

.bc-events-side-section--upcoming {
    flex: 1 1 auto;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e8edf3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bc-events-cal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.bc-events-cal-title {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #183750;
    text-align: center;
    min-width: 100px;
}

.bc-events-cal-nav {
    width: 26px;
    height: 26px;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    background: #f8fafc;
    color: #005ba4;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.bc-events-cal-nav:hover {
    background: #eef4fb;
    border-color: #005ba4;
}

.bc-events-cal-today {
    background: #005ba4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    line-height: 1.2;
    flex-shrink: 0;
}

.bc-events-all-link {
    font-size: 10px;
    font-weight: 600;
    color: #005ba4;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.bc-events-all-link:hover {
    text-decoration: underline;
}

.bc-events-cal-weekdays,
.bc-events-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    flex-shrink: 0;
}

.bc-events-cal-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    align-content: stretch;
}

.bc-events-cal-weekdays {
    margin-bottom: 2px;
}

.bc-events-cal-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    padding: 2px 0;
    line-height: 1.2;
}

.bc-events-cal-day {
    height: auto;
    min-height: 0;
    max-height: none;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #f8fafc;
    color: #183750;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 1px;
    position: relative;
}

.bc-events-cal-day:hover {
    border-color: #848df9;
    background: #fff;
}

.bc-events-cal-day.is-outside {
    opacity: 0.35;
    background: transparent;
}

.bc-events-cal-day.is-today {
    border-color: #005ba4;
    box-shadow: inset 0 0 0 1px #005ba4;
}

.bc-events-cal-day.is-selected {
    background: #005ba4;
    color: #fff;
    border-color: #005ba4;
}

.bc-events-cal-day.is-selected .bc-events-cal-dot {
    background: #fff;
}

.bc-events-cal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #848df9;
}

.bc-events-day-title,
.bc-events-upcoming-title {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #183750;
    line-height: 1.25;
}

.bc-events-day-list,
.bc-events-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 100%;
}

.bc-events-day-list {
    max-height: 72px;
}

.bc-events-upcoming-list {
    flex: 1 1 auto;
    min-height: 0;
}

.bc-events-day-list li,
.bc-events-upcoming-list li {
    margin-bottom: 4px;
}

.bc-events-day-list li:last-child,
.bc-events-upcoming-list li:last-child {
    margin-bottom: 0;
}

.bc-events-day-list a,
.bc-events-upcoming-list a {
    display: block;
    color: #183750;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.3;
    padding: 5px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    transition: background 0.15s ease;
}

.bc-events-day-list a:hover,
.bc-events-upcoming-list a:hover {
    background: #e8eef8;
    color: #005ba4;
}

.bc-events-item-date {
    display: block;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 1px;
}

.bc-events-empty {
    color: #64748b;
    font-size: 11px;
    margin: 0;
    line-height: 1.35;
}

@media (max-width: 959px) {
    #fuarlarpnl.bc-home-events-panel,
    .bc-events-calendar-wrap,
    .bc-events-calendar-layout {
        max-height: none;
        height: auto;
    }

    .bc-events-calendar-layout {
        flex-direction: column;
    }

    .bc-events-side-panel {
        flex: 1 1 auto;
        max-width: none;
    }

    .bc-events-side-section:first-child {
        max-height: none;
    }

    .bc-events-day-list {
        max-height: 120px;
    }

    .bc-events-cal-day {
        max-height: 38px;
    }
}
