/**
 * File: academic.css
 * MODUL: LAYANAN UTAMA & BEASISWA (PREMIUM COMFORT FIX)
 * DIVISI WEBSITE & DESAIN - UPA TIK UNIVERSITAS TADULAKO
 */

/* =========================================================================
   MODUL: LAYANAN UTAMA SECTION
   ========================================================================= */
.layanan-section { 
    padding: 90px 0 !important; 
    background-color: #f8fafc !important;
}

.layanan-section .container-mewah {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* ANTI REBUTAN GRID: Mengubah row menjadi flex container independen agar 'gap' bekerja 100% */
.layanan-section .layanan-grid-pro {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* Memastikan semua kartu terkunci di tengah */
    align-items: center !important;
    gap: 30px !important; /* Jarak aman antar kartu agar TIDAK AKAN PERNAH menempel lagi */
    margin: 0 auto !important;
    padding: 0 !important;
}

/* MENETRALKAN ELEMEN KOLOM BOOTSTRAP */
.layanan-section .layanan-grid-pro .col {
    flex: unset !important; /* Memutus paksaan persentase kolom Bootstrap */
    width: auto !important;
    max-width: none !important;
    padding: 0 !important; 
    margin: 0 !important;
    display: block !important;
}

/* KARTU LAYANAN PERSEGI SEMPURNA - LONGGAR & ELEGAN */
.layanan-card-pro {
    background: #ffffff !important;
    /* PADDING LEGA: 35px atas-bawah untuk ruang napas konten, 20px kanan-kiri */
    padding: 35px 20px !important; 
    border-radius: 24px !important;
    text-align: center !important;
    
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; /* Konten berada di tengah secara presisi */
    
    /* UKURAN AMAN: Mengunci dimensi kotak persegi langsung pada objek link */
    width: 210px !important;
    height: 210px !important;
    aspect-ratio: 1 / 1 !important; 
    
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 1px solid rgba(0, 34, 68, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 34, 68, 0.03) !important;
}

/* HOVER EFFECT MENGAMBANG PREMIUM */
.layanan-card-pro:hover { 
    transform: translateY(-10px) !important; 
    border-color: #ffc107 !important; /* Kuning Emas Untad */
    box-shadow: 0 20px 40px rgba(0, 34, 68, 0.1) !important;
}

/* BINGKAI LINGKARAN IKON LAYANAN - FRESH & MODERN */
.layanan-icon-box { 
    margin-bottom: 20px !important;
    width: 70px !important;   
    height: 70px !important;
    background: #edf2f7 !important; /* Diubah ke warna abu-biru muda yang bersih */
    border-radius: 50% !important;
    display: inline-flex !important; 
    align-items: center !important;    
    justify-content: center !important; 
    transition: all 0.3s ease !important;
}

/* WARNA IKON DASHICONS */
.layanan-icon-box .dashicons { 
    font-family: 'dashicons' !important;
    font-size: 32px !important; 
    color: #002244 !important; /* Navy tegas khas Universitas Tadulako */
    width: 32px !important;
    height: 32px !important;
    line-height: 1 !important; 
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

/* EFEK HOVER AKTIF PADA AREA IKON */
.layanan-card-pro:hover .layanan-icon-box {
    background: #002244 !important;
}

.layanan-card-pro:hover .layanan-icon-box .dashicons {
    color: #ffc107 !important;
    transform: scale(1.1) !important;
}

/* DESAIN TEKS JUDUL LAYANAN */
.layanan-name { 
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #002244 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    transition: color 0.3s ease !important;
}

.layanan-card-pro:hover .layanan-name {
    color: #ffc107 !important;
}

.layanan-desc-hint {
    display: block !important;
    font-size: 11px !important;
    color: #64748b !important;
    margin-top: 8px !important;
    line-height: 1.3 !important;
}

/* UNIFORM SECTION TITLE */
.section-title {
    color: #002244 !important;
    font-weight: 800 !important;
    font-size: 2rem !important;
    text-align: center !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 50px !important;
    position: relative !important;
}


/* =========================================================================
   MODUL: BEASISWA SECTION (SUDAH STANDAR INTERNASIONAL & DIKUNCI AMAN)
   ========================================================================= */
.beasiswa-section * { box-sizing: border-box; }

.beasiswa-section {
    padding: 80px 0;
    background: #ffffff;
}

.beasiswa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.beasiswa-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.beasiswa-card {
    background: #fff;
    flex: 1 1 350px;
    max-width: 370px; 
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    position: relative;
}

.beasiswa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,34,68,0.12);
}

.beasiswa-thumb {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #002244;
}

.beasiswa-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.beasiswa-card:hover .beasiswa-thumb img {
    transform: scale(1.08);
}

.beasiswa-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffc107;
    color: #002244;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.beasiswa-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.beasiswa-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.beasiswa-title {
    font-size: 18px;
    font-weight: 700;
    color: #002244;
    text-decoration: none !important;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.beasiswa-excerpt {
    font-size: 14px;
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-beasiswa {
    margin-top: auto;
    background: #f1f5f9;
    color: #002244;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
}

.beasiswa-card:hover .btn-beasiswa {
    background: #002244;
    color: #ffc107;
}

.archive-btn-wrapper-pro {
    text-align: center;
    margin-top: 50px;
}

.btn-lihat-semua-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #002244;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0, 34, 68, 0.15);
    transition: all 0.3s ease;
}

.btn-lihat-semua-pro:hover {
    background: #ffc107;
    color: #002244 !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.25);
}

/* =========================================================================
   MODUL RE-DESIGN: SEARCH RESULTS MINIMALIS MODERN (3-KOLOM GRID FIX)
   SINKRONISASI PORTAL BERITA - UPA TIK UNIVERSITAS TADULAKO
   ========================================================================= */

/* 1. Reset Latar Belakang & Ruang Halaman (JARAK ATAS DISECURE AGAR ELEGAN) */
body.search-results #content,
body.search-results .site-content,
body.search-results main,
body.search-results #main {
    padding-top: 140px !important; /* Disesuaikan ke 140px agar turun rapi dari header navigasi */
    padding-bottom: 80px !important;
    background-color: #f3f4f6 !important; /* Warna abu soft premium sesuai contoh */
    min-height: 80vh;
}

/* 2. Pembungkus Utama (Container) */
body.search-results .container,
body.search-results .site-content .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* 3. Menghancurkan Barisan Vertikal Bawaan & Mengubahnya Menjadi Baris Flex */
body.search-results #main,
body.search-results .site-main,
body.search-results #content .row {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    justify-content: flex-start !important; /* Susun rapi mulai dari kiri */
    align-items: stretch !important; /* Membuat tinggi kartu otomatis sama rata */
    gap: 30px !important; /* Jarak antar kartu (Horizontal & Vertikal) */
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Mengamankan div perantara/kolom bawaan bootstrap agar tidak merusak barisan */
body.search-results #main > div,
body.search-results .site-main > div,
body.search-results #content .row > div {
    display: contents !important; /* Hanya menghilangkan div kolom kosong pembungkus article */
}

/* 4. STRUKTUR KARTU BERITA PUTIH (PERSIS SEPERTI GAMBAR TARGET) */
body.search-results article.post,
body.search-results article,
body.search-results .search-post {
    background: #ffffff !important;
    flex: 0 1 calc(33.333% - 20px) !important; /* Membagi rata menjadi 3 kolom presisi */
    min-width: 350px !important;
    max-width: 370px !important;
    border-radius: 16px !important; /* Sudut melengkung halus modern */
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important; /* Menyusun konten dari atas ke bawah */
    position: relative !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important; /* Bayangan halus */
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Efek Hover Mengambang */
body.search-results article:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(0, 34, 68, 0.08) !important;
    border-color: rgba(0, 34, 68, 0.1) !important;
}

/* 5. MEMAKSA GAMBAR BERADA DI POSISI PALING ATAS KARTU */
body.search-results article .post-thumbnail,
body.search-results article .featured-media,
body.search-results article a img,
body.search-results article img {
    width: 100% !important;
    height: 200px !important; /* Mengunci tinggi foto agar seragam */
    max-height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    order: -1 !important; /* Memaksa melompati judul ke area paling atas */
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* 6. AREA TATA LETAK TEKS (LEGA & MEMILIKI PADDING) */
body.search-results article .entry-content-inside,
body.search-results article .post-content,
body.search-results article .entry-summary,
body.search-results article .entry-content {
    padding: 22px !important; /* Memberikan ruang napas di dalam kartu */
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important; /* Mendorong tombol baca ke dasar bawah */
    box-sizing: border-box !important;
}

/* 7. GAYA JUDUL NAVY TEGAS UTAMAKAN UNTAD */
body.search-results article h2.entry-title,
body.search-results article h2,
body.search-results article h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #002244 !important; /* Navy */
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

body.search-results article h2 a,
body.search-results article h3 a {
    color: #002244 !important;
    text-decoration: none !important;
}

/* 8. TEKS DESKRIPSI (POTONG OTOMATIS MAKSIMAL 3 BARIS) */
body.search-results article p {
    font-size: 13.5px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 9. TOMBOL MINIMALIS "SELENGKAPNYA >" */
body.search-results article a.more-link,
body.search-results article .read-more a,
body.search-results article a[href*="selengkapnya"],
body.search-results article .entry-content a {
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-start !important;
    background: transparent !important;
    color: #002244 !important;
    padding: 0 !important;
    margin-top: auto !important; /* Mengunci tombol di bagian bawah */
    font-weight: 700 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

body.search-results article a.more-link:hover,
body.search-results article a[href*="selengkapnya"]:hover {
    color: #ffc107 !important; /* Berubah emas saat disentuh */
    transform: translateX(4px) !important;
}

/* Efek Hover Animasi Tombol Kembali Halaman Pencarian */
.btn-kembali-search:hover {
    background-color: #ffc107 !important; /* Berubah Emas Untad */
    color: #002244 !important; /* Teks berubah Navy */
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3) !important;
}