/* ==========================================================================
   Logo Header
   --------------------------------------------------------------------------
   Ukuran logo diatur dari halaman admin (Pengaturan > Branding). File ini
   dimuat setelah style.css milik template, jadi aturan di bawah menimpanya.

   Nilai di bawah hanya cadangan (fallback) bila belum diatur dari admin.
   --logo-width       : lebar logo pada bilah atas
   --logo-height      : batas tinggi logo, "none" = mengikuti proporsi lebar
   --logo-height-sticky: tinggi logo saat menu menempel (di-scroll)
   ========================================================================== */
:root {
    --logo-width: 200px;         /* lebar logo pada bilah atas */
    --logo-height: none;         /* batas tinggi logo (none = otomatis) */
    --logo-height-sticky: 40px;  /* tinggi logo saat menu menempel (di-scroll) */
}

.firstbar .brand img {
    width: var(--logo-width);
    height: auto;
    max-height: var(--logo-height);
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

header.primary.up nav.menu .brand img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--logo-height-sticky);
    object-fit: contain;
}

/* Kolom pencarian dipersempit dan digeser ke kanan agar header lebih lega
   untuk menampilkan logo yang lebih lebar. */
.firstbar .search {
    margin-left: 0;
}

.home-banners {
    margin-bottom: 20px;
}

.home-banners .banner-slide {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    display: flex;
    align-items: flex-end;
}

.home-banners .banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 70%);
    border-radius: 3px;
}

.home-banners .banner-caption {
    position: relative;
    padding: 24px;
    color: #fff;
}

.home-banners .banner-caption h2 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 26px;
}

.home-banners .banner-caption p {
    margin-bottom: 12px;
}

.category-description {
    color: #777;
    margin: 10px 0 20px;
}

.category-subnav {
    margin: 0 0 24px;
}

.category-subnav .subnav-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #999;
    margin: 0 0 12px;
}

.category-subnav .subnav-title i {
    color: var(--skin-primary, #f73f52);
    margin-right: 6px;
}

.subnav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.subnav-card {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 13px 15px;
    color: #333;
    transition: all .2s ease;
}

.subnav-card:hover,
.subnav-card:focus {
    border-color: var(--skin-primary, #f73f52);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
    transform: translateY(-2px);
    color: var(--skin-primary, #f73f52);
    text-decoration: none;
}

.subnav-card.active {
    border-color: var(--skin-primary, #f73f52);
    background: #fff4f5;
    background: color-mix(in srgb, var(--skin-primary, #f73f52) 8%, #fff);
}

.subnav-card .subnav-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--skin-primary, #f73f52);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.subnav-card .subnav-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.subnav-card .subnav-name {
    font-weight: 600;
    line-height: 1.2;
}

.subnav-card .subnav-count {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.sidebar .list-group {
    margin: 0;
}

.sidebar .list-group .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-color: #eee;
    padding: 8px 4px;
}

.sidebar .list-group .list-group-item a {
    color: #333;
}

.sidebar .list-group .list-group-item .badge {
    background: var(--skin-primary, #f73f52);
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
}

.item-list-wide {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.item-list-wide > li {
    width: calc(16.666% - 7px);
    height: 120px;
}

.item-list-wide > li a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
}

.item-list-round > li {
    height: 90px;
}

.gallery-album {
    margin-bottom: 24px;
}

.gallery-album figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 3px;
}

.gallery-album figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-album a:hover figure img {
    transform: scale(1.05);
}

.gallery-album .album-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

.gallery-album .album-title {
    font-size: 17px;
    margin: 10px 0 0;
}

.album-photos {
    margin-bottom: 20px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.contact-info li i {
    color: var(--skin-primary, #f73f52);
    margin-right: 8px;
    font-size: 16px;
}

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-page .error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--skin-primary, #f73f52);
    margin: 0;
    line-height: 1;
}

/* Magz detail alignment tweaks */
.article .detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article footer .love {
    border: 0;
    background: none;
}

@media (max-width: 767px) {
    .item-list-wide > li {
        width: calc(33.333% - 6px);
        height: 90px;
    }

    .subnav-card {
        flex: 1 1 calc(50% - 6px);
    }
}

/* Gambar di dalam artikel berita */
.article .main img {
    max-width: 100%;
    height: auto;
}

.article .main figure.post-image {
    margin: 0 0 1.5em;
    text-align: center;
}

.article .main figure.post-image img {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.article .main figure.post-image figcaption {
    font-size: 13px;
    color: #8a8f96;
    font-style: italic;
    margin-top: 6px;
}
