/* ========== GENERAL ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f9fb;
    color: #333;
    margin: 0;
    padding: 0;
}

main {
    max-width: 900px;
    margin: 2em auto;
    padding: 2em;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

h2, h3 {
    color: #0073e6;
    margin-bottom: 1em;
}

/* ========== HEADER & FOOTER ========== */
header,
footer {
    background-color: #0073e6;
    color: white;
    padding: 1.2em;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ========== NAVIGATION ========== */
nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* ========== FORM STYLE ========== */
form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

form input,
form textarea {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
    margin-bottom: 1em;
}

form input:focus,
form textarea:focus {
    border-color: #0073e6;
    outline: none;
}

form label {
    font-weight: bold;
}

form button {
    width: fit-content;
    padding: 0.7em 1.5em;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1em;
    margin-top: 1em;
}

form button:hover {
    background-color: #005bb5;
}

.btn.btn-secondary {
    background-color: #aaa;
    margin-right: 0.5em;
}

.btn.btn-secondary:hover {
    background-color: #888;
}

/* ========== TOMBOL MEDIA SOSIAL ========== */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 2em;
}

.social-links a {
    display: inline-block;
    padding: 0.6em 1.2em;
    background-color: #0073e6;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #005bb5;
}

/* ========== DAFTAR PROJECT (user) ========== */
.project-list {
    list-style-type: none;
    padding: 0;
}

.project-list li {
    padding: 1.5em;
    margin-bottom: 1.5em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.project-list li:hover {
    transform: scale(1.02);
}

.project-list li h3 a {
    text-decoration: none;
    color: #0073e6;
}

.project-list li h3 a:hover {
    text-decoration: underline;
}

/* ========== TABEL PROJECT (admin) ========== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
}

table th,
table td {
    padding: 1em;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #0073e6;
    color: white;
}

table tr:hover {
    background-color: #f0f8ff;
}

table,
th,
td {
    border: 1px solid #ccc;
}

/* ========== LINK ========== */
a {
    color: #0073e6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========== KONTRAS TINGGI ========== */
.high-contrast {
    background-color: black !important;
    color: yellow !important;
}

.high-contrast a {
    color: cyan !important;
}

/* ========== SERTIFIKAT ========== */
.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin-top: 2em;
}

.certificate-item {
    padding: 1.5em;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.certificate-item h3 {
    margin-bottom: 0.5em;
    color: #0073e6;
}

.certificate-item p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.btn-certificate {
    display: inline-block;
    padding: 0.6em 1.2em;
    background-color: #0073e6;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-certificate:hover {
    background-color: #005bb5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    main {
        padding: 1em;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    table tr {
        margin-bottom: 1em;
    }

    table td {
        padding-left: 50%;
        position: relative;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1em;
        font-weight: bold;
    }
}
