/* Base styles */
body {
    font: 14px/28px Arial, sans-serif;
    background-color: #887767;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Top bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #9AACB8;
    border-bottom: 10px solid #D9DAD4;
    z-index: 999;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main container */
.container {
    margin-top: 60px;
    padding: 20px;
    max-width: 1200px;
    margin: 60px auto 50px;
    background-color: #D9DAD4;
    position: relative;
}

/* Instagram logo */
.instagram {
    width: 80px;  /* Ukuran logo lebih kecil */
    height: 80px; /* Ukuran logo lebih kecil */
    background-image: url(img/logo7.png);
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 30px;  /* Posisi turun sedikit */
    right: 30px; /* Posisi logo lebih ke kiri */
    transition: transform 0.3s ease;
}

.instagram:hover {
    transform: scale(1.03);
}

/* Header section */
.header {
    display: flex;
    justify-content: flex-start; /* Mengubah dari space-between ke flex-start untuk rata kiri */
    align-items: center;
    padding: 20px;
    background-color: #F2F2F2;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.header .judul h1 {
    font-size: 32px;
    font-weight: bold;
    color: #3D3D3B;
    margin-right: 50px; /* Memberikan jarak antara judul dan menu */
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: #3D3D3B;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #4CAF50;
    color: white;
}

/* Hero image */
.foto {
    height: 500px;
    background-image: url(img/bgpoto.jpg);
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid #A38458;
    border-top: 5px solid #A38458;
}

/* Content area */
.content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
}

.main {
    flex: 1 1 60%;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar {
    flex: 1 1 35%;
    background-color: #F9F9F9;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
}

.sidebar h5 {
    font-size: 20px;
    font-weight: bold;
    color: #666;
    margin-bottom: 15px;
}

.sidebar img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.sidebar p {
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: #333;
    padding: 15px;
    color: #eaeaee;
    text-align: center;
    font-size: 14px;
    position: relative;
    border-top: 4px solid #555;
}

/* Teks Copyright */
.footer .copy {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

/* Tombol Home */
.home {
    width: 50px;
    height: 50px;
    background-image: url('img/home6.jpg'); /* Pastikan path gambar benar */
    background-repeat: no-repeat;
    background-size: cover;
    display: inline-block;
    position: absolute;
    top: -25px; /* Mengangkat tombol di atas footer */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%; /* Membuat tombol menjadi lingkaran */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hover Effect */
.home:hover {
    opacity: 0.8;
    transition: 0.3s ease-in-out;
}

/* Responsive untuk Mobile */
@media screen and (max-width: 600px) {
    .home {
        width: 40px;
        height: 40px;
        top: -20px;
    }
    
    .footer {
        padding: 10px;
    }

    .footer .copy {
        font-size: 12px;
    }
}

/* Media Query for Responsiveness */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .header .judul h1 {
        font-size: 28px;
    }

    .content {
        flex-direction: column;
    }

    .main, .sidebar {
        flex: 1 1 100%;
    }

    .instagram {
        top: 30px;
        right: 20px;
    }
}
