/* =========================================================
   Research & Development - animasi + styling tambahan
   Semua class sengaja diberi prefix "bat-" supaya TIDAK bentrok
   dengan class tema yang sudah ada (mis. "grid", "recent-projects-grids").
   Layout pakai flexbox biasa, bukan CSS Grid.
   ========================================================= */

/* ---------- Reveal on scroll (dipakai di kartu & konten) ---------- */
.bat-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.bat-reveal.bat-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Section wrapper (biar konten tidak mepet) ---------- */
.recent-projects {
    padding: 20px 0 60px;
}

/* ---------- Kartu research (listing), pakai flexbox ---------- */
.bat-research-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.bat-research-card {
    flex: 1 1 300px;   /* lebar minimum 300px, melebar rata membagi sisa ruang */
    max-width: calc(50% - 15px); /* default 2 kartu per baris di desktop */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
    box-sizing: border-box;
}

.bat-research-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Semua foto dipaksa rasio & tinggi yang sama, apa pun ukuran aslinya */
.bat-research-card__img {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: 240px; /* fallback untuk browser lama yang tidak dukung aspect-ratio */
}

.bat-research-card__img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.bat-research-card:hover .bat-research-card__img img {
    transform: scale(1.08);
}

.bat-research-card__info {
    padding: 14px 16px;
}

.bat-research-card__title {
    margin: 0;
    font-size: 16px;
    transition: color 0.3s ease;
}

.bat-research-card:hover .bat-research-card__title {
    color: #d32f2f; /* sesuaikan dengan warna brand */
}

/* Tablet & mobile: 1 kartu per baris */
@media (max-width: 767px) {
    .bat-research-card {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

/* ---------- Hero halaman detail ---------- */
.bat-research-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bat-research-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.bat-research-hero .container {
    position: relative;
    z-index: 2;
}

.bat-research-hero h2 {
    color: #fff;
}

.bat-research-hero .breadcrumb li,
.bat-research-hero .breadcrumb a {
    color: #f1f1f1;
}

.bat-hero-fade-in {
    animation: batHeroFadeIn 0.9s ease forwards;
}

@keyframes batHeroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Konten detail ---------- */
.bat-research-content {
    line-height: 1.8;
}

.bat-research-content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.bat-research-content ul li {
    margin-bottom: 8px;
}

.bat-research-image-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.bat-research-image-frame img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.bat-research-image-frame:hover img {
    transform: scale(1.05);
}

.bat-btn-back {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 22px;
    border-radius: 30px;
    background: #d32f2f; /* sesuaikan dengan warna brand */
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.bat-btn-back:hover {
    background: #b71c1c;
    transform: translateX(-4px);
    color: #fff;
}
