/* Header fixed di atas */
.smart-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: transform 0.3s ease;
}

/* Saat hide */
.header-hide {
    transform: translateY(-100%);
}

/* Saat show */
.header-show {
    transform: translateY(0);
}

/* Tambahkan padding-top di body/main agar konten tidak tertutup header */
body {
    padding-top: 70px; /* sesuaikan dengan tinggi navbar */
}
@media(min-width:992px){
    #navbarNav{
        justify-content: right;
    }
}
/* Fix tinggi slider agar semua item konsisten */
.slider-fixed {
    height: 500px;
    min-height: 400px;
    max-height: 100vh;
    overflow: hidden;
}

/* Gambar tetap proporsional & memenuhi area slider */
.slider-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Caption rapi */
.carousel-caption {
    background-color: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 5px;
}
@media (max-width: 768px) {
    .slider-fixed {
        height: 300px;
    }
}
.headerLogo{
    align-items: center;
    gap: 10px;
}
.headerLogo-desc h4, .headerLogo-desc h5{
    margin: 0;
}
@media(max-width:768px){
    .headerLogo-desc{
        display: none;
    }
}
/* Dot indicator */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    margin: 5px;
    transition: opacity 0.3s, transform 0.3s;
}

/* Dot aktif */
.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.3);
    background-color: #ffffff;
}

/* Posisi indicator */
.carousel-indicators {
    bottom: 20px;
}
@media(min-width: 992px){
    .navbar-expand-lg .navbar-nav .dropdown-menu{
        margin-top: 19px;
    }
}

/* default state */
.dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* show state */
.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.nav-link.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: 0.255em;
    content: "";
    border-top: .3em solid;           /* panah ke bawah */
    border-right: .3em solid transparent;
    border-left: .3em solid transparent;
    transition: transform 0.35s ease;
}


/* Saat dropdown terbuka (arrow up) */
.nav-item.dropdown.show > .nav-link.dropdown-toggle::after {
    transform: rotate(180deg); /* panah ke atas */
}
.nav-link.dropdown-toggle.show::after { transform: rotate(180deg); }


.layout{
    flex: 1;
    display: flex;
    margin: auto;
    gap: 20px;
}

.sideSticky {
    flex: 1;
    background: none;
    padding: 0;
    border-radius: 5px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Konten tengah */
.content-sticky {
    flex: 2;
    padding: 15px;
    border-radius: 5px;
}
.content-sticky img{
    max-width: 100%;
}
.content-sticky ul.uldefault-dummy{
    list-style: none;
    margin: 0;
    padding: 0;
}
.uldefault-dummy li{
    margin-bottom: 1.5rem;
}
.uldefault-dummy li h5{
    font-weight: 600;
    color: var(--var-color-a);
}
#Post-display{
    position: relative;
    width: 100%;
}
.layout2 {
    flex: 1;
    display: flex;
    margin: auto;
    padding: 0 20px;
    gap: 20px;
    margin-top: -5rem;
}
.sideSticky2 {
    flex: 1;
    background: #f0f0f0;
    height: fit-content;
}
.content-sticky2 {
    flex: 2;
}
/* === Responsif untuk mobile === */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
        position: relative;
    }
    .layout2{
        display: block;
    }
    .sideSticky {
        position: static; /* matikan sticky di mobile */
        top: auto;
    }
}
textarea{
    max-width: 100%;
}
.sideRight-a{
    display: flex;
    flex-flow: column;
    align-items: center;
    padding: 10px;
}
.sideRight-a h4{
    text-align: center;
}
.sideRight-a p strong{
    color: var(--var-color-a);
}
.sideRight-a .btn-default a{
    font-size: 14px;
}
.sideRight-b .related-posts{
    margin-top: 2rem;
}
.sideRight-b .related-posts h5{
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}
.sideRight-b .related-posts ul{
    list-style: disc;
    color: var(--var-color-a);
}
.sideRight-b .related-posts ul li a{
    text-decoration: none;
    color: var(--var-color-a);
}
.sideRight-b .related-posts ul li{
    font-weight: 400;
    transition: font-weight 0.2s ease-in-out;
}
.sideRight-b .related-posts ul li:hover{
    font-weight: 600;
}
.Stickyleft-two{
    display: none;
}
@media(max-width: 768px){
    .Stickyleft{
        display: none;
    }
    .Stickyleft-two{
        display: block;
        padding: 2rem 0;
    }
    .Stickyleft-two .layout-social-share ul{
        display: flex;
        column-gap: 10px;
        align-items: center;
    }
}
.Stickyleft h4{
    text-align: center;
    font-weight: 700;
}
.Stickyleft p{
    text-align: center;
}

/* ====== Layout dasar ====== */
.layout-social-share {
    text-align: center;
    margin-top: 25px;
}

.layout-social-share ul {
    display: flex;
    flex-flow: column;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media(max-width: 768px){
    .layout-social-share ul {
        flex-flow: row;
    }
}
/* ====== Gaya ikon ====== */
.layout-social-share ul li a i {
    display: inline-block;
    font-size: 30px;
    color: #555;
    transition: transform 0.3s cubic-bezier(.28,.84,.42,1), color 0.3s ease, box-shadow 0.3s ease;
}

/* Efek umum hover (bounce + glow) */
.layout-social-share ul li a:hover i {
    transform: scale(1.3) translateY(-5px);
}

/* ====== Warna spesifik per platform ====== */
.bi-linkedin { color: #0077b5; }
.bi-facebook { color: #1877f2; }
.bi-whatsapp { color: #25d366; }
.bi-envelope { color: #ff5722; }

/* 
.bi-twitter-x::before {
  content: "";
  display: inline-block;
  width: 30px;
  aspect-ratio: 1 / 1;
  background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyBmaWxsPSIjMWRhMWYyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTguNzM1IDMuNzQ1aC0yLjM0NWwtNC4wNTUgNS4xODdsLTQuMTg3LTUuMTg3aC00LjQzM2w2LjM5OSA3LjgwNy02LjM5OSA4LjQ0Nmg0LjI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g1OTcpIj4KCQk8cGF0aCBpZD0icGF0aDEwMDkiIGZpbGw9IiNGRkZGRkYiIGQ9Ik00My43NzMsMTMwLjA4bDExOS4zNywxNTkuOTI2TDQzLjAyLDQyMC4wMzNoMjcuMDM3bDEwNS4xNy0xMTMuODQ0bDg0Ljk3MiwxMTMuODQ0aDkxLjk5OQoJCQlMMjI2LjExMSwyNTEuMTE0TDMzNy45MjEsMTMwLjA4aC0yNy4wMzdsLTk2Ljg1MywxMDQuODQ1TDEzNS43NzQsMTMwLjA4SDQzLjc3M3ogTTgzLjUzMiwxNTAuMDMzaDQyLjI2NUwzMTIuNDM0LDQwMC4wOEgyNzAuMTcKCQkJTDgzLjUzMiwxNTAuMDMzeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=');
    background-size: cover;
    width: 30px;
    aspect-ratio: 1 / 1;
}
/* Warna hover spesifik */
.layout-social-share ul li a:hover .bi-linkedin { color: #00a0dc; }
.layout-social-share ul li a:hover .bi-facebook { color: #1e90ff; }
.layout-social-share ul li a:hover .bi-whatsapp { color: #2ae26e; }
.layout-social-share ul li a:hover .bi-envelope { color: #ff7043; }
.layout-social-share ul li a:hover .bi-twitter-x::before {
    filter: brightness(1.5);
}

.visitor-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.visitor-floating:hover {
    transform: translateY(-5px);
}

.visitor-list {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    display: none;
}

.visitor-floating:hover .visitor-list {
    display: block;
}

.visitor-list li {
    margin: 5px 0;
    font-size: 14px;
}
.border-1{
    border: solid 1px #e8e8e8;
    border-radius: 10px;
}
.zoom-slider-container {
    width: 100%;
    max-width: 300px;
    position: relative;
}

.zoom-slider {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.zoom-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 5s ease-in-out;
    transform: scale(1);
}

.zoom-slide.active {
    opacity: 1;
    transform: scale(1.1); /* Zoom out to zoom in effect */
}

.zoom-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom-caption {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    width: 100%;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    animation: textPop 1s ease forwards;
}
.zoom-caption h5 {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 8px rgba(255,255,255,0.2);
    margin: 0;
}

.zoom-caption p {
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    font-weight: 600;
}
@keyframes textPop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.zoom-thumbnails-wrapper {
    display: flex;
    align-items: center;
    margin-top: 10px;
    overflow: hidden;
}

.zoom-thumbnails {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* hide scrollbar IE/Edge */
    scrollbar-width: none;     /* hide scrollbar Firefox */
}

.zoom-thumbnails::-webkit-scrollbar {
    display: none; /* hide scrollbar Chrome/Safari */
}

.thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    margin-right: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #fff;
}

.thumb-arrow {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 1rem;
}

.text-justify{
    text-align: justify!important;
}
.text-center{
    text-align: center!important;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid #ccc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 350px; /* tinggi tetap */
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* agar gambar penuh tapi proporsional */
}

.card h3 {
    margin: 10px 0 5px;
    flex-shrink: 0;
}

.card p {
    flex-grow: 1;
    overflow: hidden;
}

