/* ============================================
   CSS untuk Website Institut Bakti Nusantara
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bs-primary: #0d6efd;
    --bs-primary-dark: #0a58ca;
    --bs-primary-darker: #0d47a1;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Top Bar */
.top-bar {
    background-color: var(--bs-primary-darker);
    font-size: 0.9rem;
}

/* Navbar */
.navbar-brand img {
    max-height: 50px;
}

.navbar .nav-link {
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--bs-primary-darker);
}

/* ============================================
   CAROUSEL STYLES
   ============================================ */

.carousel-item {
    height: 70vh;
    min-height: 400px;
    background-color: #777;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
}

/* ============================================
   SECTION STYLES
   ============================================ */

/* Section Title */
.section-title {
    color: var(--bs-primary-darker);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--bs-primary);
    margin: 10px auto 0;
}

/* ============================================
   CARD STYLES
   ============================================ */

/* Faculty Card Icon */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.5rem;
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 50%;
}

/* Dosen Card */
.dosen-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Akreditasi Badge */
.badge-akreditasi {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}

/* ============================================
   DETAIL BERITA STYLES
   ============================================ */

/* Header Berita */
.berita-header {
    background: linear-gradient(135deg, var(--bs-primary-darker) 0%, var(--bs-primary) 100%);
    color: white;
    padding: 60px 0 40px;
}

.berita-gambar {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.berita-meta {
    color: #6c757d;
    font-size: 0.95rem;
}

.berita-meta i {
    margin-right: 5px;
}

/* Konten Berita */
.berita-konten {
    line-height: 1.8;
    font-size: 1.05rem;
}

.berita-konten h4 {
    color: var(--bs-primary-darker);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.berita-konten ul, 
.berita-konten ol {
    margin: 15px 0;
    padding-left: 25px;
}

.berita-konten li {
    margin-bottom: 10px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ============================================
   BERITA TERKAIT STYLES
   ============================================ */

.berita-terkait-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 15px;
    transition: all 0.3s ease;
}

.berita-terkait-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.berita-terkait-item:last-of-type {
    border-bottom: none;
}

.berita-terkait-gambar {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.berita-terkait-judul {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-terkait-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.berita-terkait-kategori {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 8px;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 3px;
    margin-top: 5px;
}

/* ============================================
   ANIMASI STYLES
   ============================================ */

/* 1. Animasi Fade-in saat Buka Website */
body {
    animation: pageFadeIn 0.8s ease-in-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Animasi Terbuka saat Scroll */
.scroll-animate {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Animasi untuk card dengan efek terbuka */
.card.scroll-animate {
    transform: scale(0.85) translateY(40px) rotateX(10deg);
    transform-origin: center;
    opacity: 0;
}

.card.scroll-animate.animate {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

/* Animasi untuk section dengan efek slide dan fade */
section.scroll-animate {
    transform: translateY(50px);
    opacity: 0;
}

section.scroll-animate.animate {
    transform: translateY(0);
    opacity: 1;
}

/* Animasi untuk gambar dengan efek zoom */
img.scroll-animate {
    transform: scale(1.1);
    opacity: 0;
    filter: blur(5px);
}

img.scroll-animate.animate {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
}

