/* ==========================================================================
   JUDUL FILE  : custom.css
   KOMPONEN    : Custom Styling & Perapian Global Website
   DESKRIPSI   : Mengatur efek interaktif kartu fitur, penyesuaian bayangan ikon,
                 modernisasi tampilan sidebar, serta animasi kartu berita agar
                 serasi dengan identitas Universitas Tadulako (UNTAD).
   UNIT KERJA  : UPA TIK Universitas Tadulako
   DIVISI      : Divisi Website dan Desain
   PENGEMBANG  : Ahmad Safi'i, S.Kom., M.M. (NIP. 197411071995121002)
   TAHUN       : 2026
   ========================================================================== */

/* ==========================================================================
   A. EFEK INTERAKTIF & STYLING ELEMEN GLOBAL
   ========================================================================== */

/* Efek Hover Lembut pada Kotak Fitur */
.transition-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}
.transition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Penyesuaian Ikon */
.icon-wrapper {
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.2);
}

/* ==========================================================================
   B. STYLE SIDEBAR WIDGETS (UPA PERPUSTAKAAN UNTAD)
   ========================================================================== */

/* 1. Desain Kotak Utama Widget (Card Effect) */
.widget, 
#secondary .widget,
aside .widget {
    background: #ffffff;
    padding: 24px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateY(-2px);
}

/* 2. Judul Widget (Cari Informasi & Kategori) */
.widget-title,
.widget h2,
.widget h3,
.widget h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0d276b; /* Biru UNTAD */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffc107; /* Underline Kuning Emas UNTAD */
    position: relative;
}

/* 3. Perapian Form Pencarian di Sidebar */
.widget_search .search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Kolom input pencarian */
.widget_search input[type="search"],
.widget_search input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.widget_search input[type="search"]:focus,
.widget_search input[type="text"]:focus {
    border-color: #0d276b;
    box-shadow: 0 0 0 3px rgba(13, 39, 107, 0.15);
}

/* Tombol cari di sidebar */
.widget_search input[type="submit"],
.widget_search button[type="submit"],
.widget_search .search-submit {
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #0d276b;
    background-color: #ffc107; /* Kuning Emas */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.widget_search input[type="submit"]:hover,
.widget_search button[type="submit"]:hover {
    background-color: #e0a800;
    color: #0d276b;
}

/* 4. Perapian List Kategori & Link Sidebar */
.widget ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Efek interaktif saat link kategori disorot */
.widget ul li a:hover {
    color: #0d276b;
    padding-left: 5px;
}

/* Style untuk angka jumlah tulisan (jika ada, misal: Berita (40)) */
.widget ul li {
    color: #6c757d;
}

/* Sub-kategori (Dropdown bertingkat di widget jika ada) */
.widget ul li ul {
    width: 100%;
    padding-left: 15px;
    margin-top: 8px;
}

/* ==========================================================================
   C. POLESAN MODERN & INTERAKTIF KARTU BERITA (NEWS CARD COMPONENTS)
   ========================================================================== */

/* Efek Mengambang Lembut pada Komponen Kartu Berita */
.custom-card-news {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card-news:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.15) !important;
}

/* Perubahan Warna Judul Berita Dinamis saat Kartu Berita Disorot */
.custom-card-news:hover .card-title a {
    color: #0d47a1 !important;
}

/* Efek Zoom-In Halus pada Gambar Thumbnail Berita */
.img-zoom {
    transition: transform 0.5s ease;
}

.custom-card-news:hover .img-zoom {
    transform: scale(1.06);
}

/* Animasi Pergeseran Ikon Panah "Selengkapnya" */
.hover-arrow .transition-arrow {
    transition: transform 0.2s ease;
}

.hover-arrow:hover .transition-arrow {
    transform: translateX(4px);
}

/* Pembatas Baris Teks Otomatis (Line-Clamp Utility) */
.custom-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   D. OVERRIDE & RESET RULES (PENGUNCI BORDER SECTIONS)
   ========================================================================== */

/* Mematikan paksa border kotak liar dari CSS Global :where pada header berita */
.container .d-flex.border-bottom {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-style: solid !important;
}

/* ==========================================================================
   E. TOP BAR E-RESOURCES & NAVIGATION LINKS STYLING
   ========================================================================== */

/* Perapian layout link E-Resources, OPAC, dan Repository di Top Bar */
.header-top-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Jarak antara ikon dan teks */
    padding: 4px 8px;
    border-radius: 4px;
}

/* Efek Hover Interaktif saat menu disorot (Background menyala soft) */
.header-top-links a:hover {
    color: #ffc107 !important; /* Berubah jadi Kuning Emas UNTAD */
    background: rgba(255, 255, 255, 0.1); /* Efek saku transparan */
    transform: translateY(-1px);
}

/* Animasi halus pada ikon di Top Bar saat di-hover */
.header-top-links a:hover i {
    transform: scale(1.1);
    color: #ffc107 !important;
}