/* General Styling */
html {
    overflow-y: scroll;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: opacity 0.4s ease-in-out;
}

body.fade-out {
    opacity: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
}

/* Navbar Styling */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e6ed;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001; /* Above overlay */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

#main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

#main-nav ul li {
    margin-left: 20px;
}

#main-nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

#main-nav ul li a.active,
#main-nav ul li a:hover {
    background-color: #eaf1f8;
    color: #0056b3;
}

/* Hamburger Icon */
.hamburger-icon {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    padding: 5px;
    z-index: 1002; /* Always on top */
}

.hamburger-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* Content Styling */
.content {
    padding: 40px 0;
    animation: fadeIn 0.8s ease-in-out;
}

.content section {
    background-color: #ffffff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #007bff;
}

.content section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.content h1, .content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #eaf1f8;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content ul {
    padding-left: 20px;
}

.item .tanggal {
    font-style: italic;
    color: #7f8c9a;
    font-size: 0.9em;
}

.keterampilan {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.keterampilan span {
    background-color: #eaf1f8;
    color: #0056b3;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: #f4f7f9;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item .gallery-item-content {
    padding: 15px;
}

.gallery-item h3 {
    margin-top: 0;
    color: #2c3e50;
}

.gallery-item p {
    color: #7f8c9a;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.gallery-item .actions {
    display: flex;
    gap: 10px;
}

.gallery-item .actions a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    font-size: 0.9em;
}

.actions a.edit {
    background-color: #007bff;
}
.actions a.edit:hover {
    background-color: #0056b3;
}

.actions a.delete {
    background-color: #dc3545;
}
.actions a.delete:hover {
    background-color: #c82333;
}


/* Contact Form Styling */
.contact-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaf1f8;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e6ed;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.contact-form button[type="submit"], .button-tambah {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover, .button-tambah:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-top: 1px solid #e0e6ed;
    color: #7f8c9a;
    margin-top: auto; /* Push footer to the bottom */
}

/* Profile picture on About page */
.profile-pic-about {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* Admin Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px;
    border: 1px solid #e0e6ed;
    text-align: left;
}
th {
    background-color: #f4f7f9;
}

/* --- Artikel Page Styles --- */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.artikel-card {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.artikel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.artikel-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.artikel-card-content h3 {
    margin-top: 0;
    color: #2c3e50;
}
.artikel-card-content .tanggal {
    font-size: 0.8em;
    color: #7f8c9a;
    margin-bottom: 10px;
}
.artikel-card-content p {
    flex-grow: 1;
}
.artikel-card-content .button-selengkapnya {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    align-self: flex-start;
    margin-top: 15px;
    transition: background-color 0.3s;
}
.artikel-card-content .button-selengkapnya:hover {
    background-color: #0056b3;
}

/* --- Artikel Detail Page Styles --- */
.artikel-lengkap {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.artikel-lengkap h1 {
    margin-top: 0;
}
.artikel-lengkap .tanggal {
    font-size: 0.9em;
    color: #7f8c9a;
    margin-bottom: 20px;
}
.artikel-lengkap .isi-artikel img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
}
.navigasi-artikel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}
.navigasi-artikel a {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.navigasi-artikel a:hover {
    background-color: #0056b3;
}
.navigasi-artikel a.disabled {
    background-color: #cccccc;
    pointer-events: none;
    cursor: default;
}
.navigasi-artikel a.tombol-keluar {
    background-color: #6c757d;
}
.navigasi-artikel a.tombol-keluar:hover {
    background-color: #5a6268;
}

.content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#pendidikan ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pendidikan li {
    background-color: #eaf1f8;
    color: #2c3e50;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pendidikan li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

#pendidikan li strong {
    color: #0056b3;
}


