/* --- Global Styles & Variables --- */
:root {
    --primary-color: #3B5998;
    --highlight-color: #4d9ee0;
    --dark-grey: #333333;
    --light-grey: #F4F7F6;
    --text-color: #555;
    --white-color: #FFFFFF;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-grey);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Navbar --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--highlight-color);
}

.nav-avatar {
    width: 40px;
    height: 40px;
    background-color: #ccc;
    border-radius: 50%;
}

/* --- Hero Section (Dengan Overlay Profesional) --- */
.hero {
    position: relative;
    /* KEMBALI KE NILAI AWAL YANG STABIL */
    height: 70vh;
    min-height: 600px;
    background-image: url('../img/gedungti.png');
    background-size: cover; /* STABIL */
    background-position: center;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* Nilai yang sudah dikonfirmasi untuk posisi teks */
    padding-top: 200px; 
    padding-bottom: 80px; 
}

/* INI BAGIAN PALING PENTINGNYA */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, transparent 80%);
}

/* Pastikan konten hero berada di atas lapisan overlay */
.hero-content {
    position: relative;
    z-index: 2; 
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.2rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-top: 10px;
    line-height: 1.3;
}

/* --- FEATURES BOX SECTION (Untuk Kotak Fitur yang Overlap) --- */
.features-box-section {
    position: relative;
    z-index: 10;
    margin-top: -180px; 
    
    padding-bottom: 20px;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.feature-item {
    background: var(--white-color);
    color: var(--dark-grey);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--box-shadow);
    
    width: 180px; 
    min-height: 260px;
    flex-shrink: 0;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Efek Zoom Out/Membesar saat di-hover atau aktif (dipencet) */
.feature-item:hover,
.feature-item:active {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =================================================== */
/* --- START RUANGAN DAN LAB SECTION BARU --- */
/* =================================================== */
.room-list-section {
    background-color: #f4f4f4;
    padding: 60px 0;
    text-align: center;
}

.room-list-section .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-grey);
}

/* --- Kategori/Tombol Atas --- */
.room-categories {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border-radius: 15px;
    border: 2px solid var(--light-grey);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--box-shadow);
    background-color: var(--light-grey);
}

.category-item:hover {
    border-color: var(--highlight-color);
    background-color: var(--white-color);
}

.category-item.active {
    border-color: var(--primary-color);
    background-color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.category-item img.category-icon {
    width: 50px;
    height: 50px;
}

.category-info h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--dark-grey);
}

.category-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* --- Area Konten Daftar Ruangan/Lab --- */
.content-display {
    min-height: 400px;
    position: relative; /* Penting untuk positioning anak */
}

/* Semua konten (default, ruangan, lab) disembunyikan dulu */
.room-content {
    position: absolute; /* Agar tidak mengganggu layout saat tidak aktif */
    width: 100%;
    top: 0;
    left: 0;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Konten yang aktif ditampilkan */
.room-content.active {
    opacity: 1;
    visibility: visible;
    position: static; /* Supaya isi turun normal */
}

/* --- Grid dan Card Ruangan/Lab (Mirip gambar contoh) --- */
.card-grid {
    display: grid;
    /* Membuat grid responsif: minimal 300px per kolom */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.room-card {
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image-placeholder {
    height: 180px;
    overflow: hidden; 
    border-radius: 15px 15px 0 0; 
    background-color: #f0f0f0;
    /* Jika menggunakan tag <img> di dalam, hilangkan background color */
}

/* Styling untuk gambar di dalam card */
.card-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.room-card .card-body {
    padding: 20px;
}

.room-card .card-body h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.room-card .card-body p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.room-card .card-body i {
    width: 20px; 
    color: var(--highlight-color);
    margin-right: 5px;
}


/* --- Alur Peminjaman --- */
.work-process-section {
    position: relative;
    background-image: url('../img/bgalur.png'); /* pastikan path sesuai file CSS */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    color: #333;
    text-align: center;
}

/* Judul dan deskripsi */
.work-process-section .section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.work-process-section .section-header p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 50px;
}

/* Kotak individual */
.process-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 180px;       /* lebar tetap */
    min-height: 260px;  /* tinggi seragam */
    text-align: center;
    flex-shrink: 0;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;                /* supaya konten rapi */
    flex-direction: column;
    justify-content: space-between;
}

/* Container kotak alur */
.process-boxes {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap;     /* tetap satu baris */
    overflow-x: auto;      /* scroll horizontal */
    padding: 20px 0;
}


.process-boxes::-webkit-scrollbar {
    height: 6px;
}
.process-boxes::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Hover effect */
.process-box:hover {
    transform: translateY(-10px); /* naik sedikit */
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}


/* Gambar di dalam kotak */
.process-box img {
    width: 80px;
    margin-bottom: 15px;
}

/* Judul dan teks */
.process-box strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.process-box span {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}


/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s, transform 0.3s;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* --- Styling untuk Peta Full-Width di Atas Footer --- */
.map-embed-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.map-embed-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
