/* Isparta Has Kağıt - kurumsal ince ayarlar */
:root {
    color-scheme: light;
}

.top-bar .container-fluid,
.top-bar .row {
    height: 100%;
}

.top-bar .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-bar .logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0ede8;
    color: #B5722A;
    font-size: 48px;
}

/* "Fact" bölümü mobilde yatay taşıyordu (Alanında Uzman Personel...) */
.fact {
    overflow: hidden;
}

.fact .fact-text h2 {
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .fact .fact-left,
    .fact .fact-right {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .fact .row > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .fact .col-6 + .col-6 {
        margin-top: 22px;
    }

    .fact .fact-icon {
        flex-shrink: 0;
        width: 46px;
        margin: 4px 12px 0 12px;
    }

    .fact .fact-icon [class^="flaticon-"]::before {
        font-size: 44px;
        line-height: 44px;
    }

    .fact .fact-text h2 {
        font-size: 26px;
    }

    .fact .fact-text p {
        font-size: 13px;
    }
}

/* Slider: görsellerin üzerinde yazı gömülü olduğu için karartma
   sadece başlık/alt başlık varsa uygulanır */
.carousel .carousel-item:not(:has(.carousel-caption))::after {
    display: none;
}

@media (max-width: 991.98px) {
    /* Logo mobilde ortada ve daha kompakt üst bar */
    .top-bar {
        height: 70px;
    }

    .top-bar .logo {
        justify-content: center;
        padding: 10px 0;
    }

    .top-bar .logo img {
        max-height: 46px;
    }

    .nav-bar .navbar {
        padding: 10px 15px;
    }

    .nav-bar .navbar-brand {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

@media (max-width: 767.98px) {
    /* Slider mobilde ekran yüksekliğine göre kırpılıyordu (yazılar kesiliyordu).
       Görsel oranını (3:2) koruyarak tamamı gösterilir. */
    .carousel,
    .carousel .carousel-caption {
        height: auto;
        min-height: 0;
    }

    .carousel .carousel-inner,
    .carousel .carousel-item {
        height: auto;
    }

    .carousel .carousel-item img {
        display: block;
        height: auto;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        background: #f0ede8;
    }

    .carousel .carousel-control-prev,
    .carousel .carousel-control-next {
        width: 12%;
    }

    .carousel .carousel-control-prev-icon,
    .carousel .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        background-size: 50% 50%;
        background-color: rgba(0, 0, 0, .35);
        border-radius: 50%;
    }

    .carousel .carousel-indicators {
        margin-bottom: 6px;
    }

    .carousel .carousel-indicators li {
        width: 18px;
        height: 4px;
    }

    .carousel .carousel-caption h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .carousel .carousel-caption p {
        font-size: 14px;
        margin-bottom: 6px;
    }
}
