/* Your CSS code here */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
.logo {
    margin-right: auto;
}

.logo img {
    height: 50px; /* Saiz logo */
    width: auto;
    max-width: 100%;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styling */
.header {
    background-color: #111;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

.top-bar {
    background: linear-gradient(90deg, #ff0000, #ff6600);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(34, 34, 34, 0.9);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

.navbar ul li a:hover {
    color: red;
    transform: scale(1.1);
}

/* Button Styling */
.navbar .btn-group {
    display: flex;
    gap: 10px; /* Spacing between buttons */
}

.btn-login, .btn-logout, .btn-register {
    background-color: #ff0000;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-login:hover, .btn-logout:hover, .btn-register:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

/* Slideshow Gallery */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    gap: 20px;
    position: relative;
}

.mySlides {
    display: none;
    width: 400px; /* Saiz slideshow lebih kecil */
    height: auto;
}

.mySlides img {
    width: 100%;
    border-radius: 10px;
}

/* Navigasi slideshow */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
}

.prev {
    left: 5px;
}

.next {
    right: 5px;
}

/* Services Section */
.services {
    text-align: center;
    padding: 2em;
    background: white;
}

.services h2 {
    color: #222;
    font-size: 24px;
    margin-bottom: 1em;
}

.service-list {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 250px;
    padding: 1rem;
    transition: all 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-edit {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
}

.btn-edit:hover {
    background-color: #0056b3;
}

.service-item img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.service-item h3 {
    margin-top: 10px;
    font-size: 18px;
    color: #222;
}

.service-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.animated-btn {
    background: #222;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.animated-btn:hover {
    background: #ff0000;
    color: #fff;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 1em 0;
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .service-list {
        flex-direction: column;
        align-items: center;
    }

    .container {
        max-width: 100%;
    }

    .prev, .next {
        padding: 10px;
    }
}
