/**
 * File: academic.css
 * MODUL: LAYANAN UTAMA (ULTRA PRECISION - DESKTOP ONLY)
 */

.layanan-section { 
    padding: 80px 0; 
    background-color: #f8fafc;
}

.layanan-section .container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 15px;
}

/* Memaksa satu baris di monitor besar */
.layanan-section .row {
    display: flex !important;
    flex-wrap: nowrap; 
    justify-content: center;
    gap: 15px;
}

/* Kunci lebar kolom agar kotak tidak gepeng */
.layanan-section .col {
    flex: 0 0 175px; 
    max-width: 175px;
    display: flex;
}

.section-title {
    color: #002244;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kartu Persegi Sempurna */
.layanan-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1; /* Menjaga lebar dan tinggi tetap sama */
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.layanan-card:hover { 
    transform: translateY(-8px); 
    border-color: #ffc107;
    box-shadow: 0 15px 35px rgba(0, 34, 68, 0.08);
}

/* LINGKARAN IKON: KUNCI PRESISI TOTAL */
.layanan-icon { 
    margin-bottom: 15px;
    width: 80px;   
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    transition: 0.4s;
    
    /* Teknik Center Total agar ikon tidak melenceng */
    display: inline-flex !important; 
    align-items: center !important;    /* Tengah Vertikal */
    justify-content: center !important; /* Tengah Horizontal */
    vertical-align: middle;
}

/* IKON DASHICONS: RESET TOTAL */
.layanan-icon i { 
    font-size: 36px !important; 
    color: #002244; 
    
    /* Menghilangkan spasi font yang bikin tidak senter */
    width: auto !important;
    height: auto !important;
    line-height: 1 !important; 
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    text-align: center !important;
}

.layanan-card:hover .layanan-icon {
    background: #002244;
    transform: scale(1.05);
}

.layanan-card:hover .layanan-icon i {
    color: #ffc107;
}

.layanan-name { 
    font-size: 0.85rem;
    font-weight: 800;
    color: #334155;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

/* RESET SEDIKIT BIAR GAK BENTROK */
.beasiswa-section * { box-sizing: border-box; }

.beasiswa-section {
    padding: 60px 0;
    background: #fdfdfd;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #002244;
    margin-bottom: 40px;
    font-weight: 800;
}

/* PEMBUNGKUS UTAMA (Ini kuncinya) */
.beasiswa-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* KARTU */
.beasiswa-card {
    background: #fff;
    flex: 1 1 300px; /* Fleksibel, minimal lebar 300px */
    max-width: 380px; 
    border-radius: 15px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.beasiswa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,34,68,0.1);
}

/* Update agar gambar kelihatan semua secara utuh */
.beasiswa-thumb {
    width: 100%;
    height: 240px; 
    background: #f1f5f9; /* Warna latar belakang netral biar kalau gambar gak pas, gak jelek */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.beasiswa-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* JURUS BARU: Gambar dipaksa kelihatan semua (utuh) */
    background: #ffffff; /* Latar belakang gambar putih bersih */
    transition: transform 0.5s ease;
}

/* Efek zoom tipis saja biar tetap elegan */
.beasiswa-card:hover .beasiswa-thumb img {
    transform: scale(1.05);
}

/* BADGE KUNING */
.beasiswa-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #002244;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 10;
}

/* KONTEN TEKS */
.beasiswa-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.beasiswa-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.beasiswa-title {
    font-size: 18px;
    font-weight: 700;
    color: #002244;
    text-decoration: none !important;
    margin-bottom: 10px;
    line-height: 1.3;
}

.beasiswa-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* TOMBOL */
.btn-beasiswa {
    margin-top: auto;
    background: #f4f4f4;
    color: #002244;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
}

.beasiswa-card:hover .btn-beasiswa {
    background: #002244;
    color: #ffc107;
}

/* Update Bagian GAMBAR di academic.css */

.beasiswa-thumb {
    width: 100%;
    height: 240px; /* Kita tinggikan sedikit biar lebih gagah */
    position: relative;
    overflow: hidden; /* Penting untuk efek zoom */
    background: #002244; /* Warna dasar navy jika gambar gagal load */
}

.beasiswa-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* JURUS SAKTI: Gambar penuh, proporsional, simetris */
    object-position: center; /* Pastikan bagian tengah gambar yang diambil */
    transition: transform 0.8s ease-in-out; /* Animasi halus untuk hover */
}

/* Efek Modern: Gambar Membesar saat Kartu Di-hover */
.beasiswa-card:hover .beasiswa-thumb img {
    transform: scale(1.15); /* Gambar membesar 15% */
}

/* Atur ulang posisi badge kuning agar tidak menempel ke pinggir */
.beasiswa-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffc107;
    color: #002244;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}