* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

.nav-links li a:hover {
    background-color: #34495e;
    border-radius: 5px;
}

main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #2c3e50;
    color: white;
    margin-top: 40px;
}

.hero-section {
    text-align: center;
    padding: 40px 20px;
}

.hero-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

.btn-cta:hover {
    background-color: #2980b9;
}

.biodata-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-photo {
    width: 100%;
    max-width: 200px; 
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
}

.bio-content {
    flex: 1;
    min-width: 300px;
}

.hobbies-section {
    margin-top: 20px;
}

.academic-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.academic-table th, .academic-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.academic-table th {
    background-color: #3498db;
    color: white;
}

.holiday-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    flex: 1 1 250px; /* Base width 250px, bisa membesar/mengecil */
    max-width: 300px;
    text-align: center;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Syarat Dosen: object-fit */
    border-radius: 5px;
}

.gallery-item p {
    margin-top: 10px;
    font-size: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px 0;
}

.contact-form label {
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.social-links a {
    display: block;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
        margin-top: 10px;
    }
    
    .biodata-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gallery-item {
        flex: 1 1 100%; /* 1 foto per baris di HP */
    }
}

/* Jarak spasi rapi untuk Biodata */
.hobbies-section h3,
main h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.hobbies-section p {
    margin-top: 15px;
    margin-bottom: 10px;
}

.hobbies-section ol,
.hobbies-section ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.hobbies-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.academic-table {
    margin-top: 15px;
}