* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #263238;
    background-color: #f5f7f6;
}

/* Logo FTI di latar belakang */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("../images/fti-logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(70vw, 420px) auto;
    opacity: 0.12;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #17694a;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

/* Header dan navigasi */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background-color: #17694a;
    color: #ffffff;
}

.nama-situs {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
}

.nama-situs a {
    color: #ffffff;
    text-decoration: none;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Halaman yang lagi dibuka */
header nav a[aria-current="page"] {
    background-color: #ffffff;
    color: #17694a;
}

/* Main dan layout */
main {
    width: 90%;
    max-width: 1000px;
    margin: 24px auto;
}

.judul-halaman {
    margin: 0 0 16px;
    font-size: 1.8rem;
    color: #17694a;
}

.pengantar {
    margin: 0 0 24px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Kotak konten */
.kotak {
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #d7e1dc;
    border-radius: 16px;
}

.kotak h2 {
    margin-top: 0;
    color: #17694a;
}

/* Tombol */
.tombol1,
.tombol2,
button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #17694a;
    border-radius: 8px;
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.tombol1,
button {
    background-color: #17694a;
    color: #ffffff;
}

.tombol2 {
    background-color: transparent;
    color: #17694a;
}

.tombol1:hover,
button:hover {
    background-color: #0d5038;
    border-color: #0d5038;
}

.tombol2:hover {
    background-color: #17694a;
    color: #ffffff;
}

/* index */
.beranda {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.foto-beranda {
    width: 240px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid #17694a;
    border-radius: 50%;
    order: -1;
}

.teks-kiri h1,
.teks-kanan h2 {
    margin: 0 0 8px;
    font-size: 2.2rem;
    color: #17694a;
}

.teks-kiri p,
.teks-kanan p {
    margin: 0;
}

.tombol-grup {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.kotak-menu h2 {
    margin-bottom: 8px;
}

.kotak-menu p {
    margin: 0 0 16px;
}

/* Biodata */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.foto-profil {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 4px solid #17694a;
    border-radius: 12px;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin-bottom: 8px;
}

.data-diri {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px 16px;
    margin: 16px 0 0;
    text-align: left;
}

.data-diri dt {
    margin-top: 8px;
    font-weight: bold;
    color: #17694a;
}

.data-diri dd {
    margin: 0;
}

#hobbies ol,
#hobbies ul {
    padding-left: 24px;
}

#hobbies li {
    margin-bottom: 6px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

caption {
    padding-bottom: 8px;
    text-align: left;
    font-weight: bold;
}

th,
td {
    padding: 12px;
    border: 1px solid #d7e1dc;
    text-align: left;
}

th {
    background-color: #17694a;
    color: #ffffff;
}

tbody tr:nth-child(even) {
    background-color: #f5f7f6;
}

/* my holiday */
.galeri {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
}

.galeri-item {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #d7e1dc;
    border-radius: 12px;
}

.galeri-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.galeri-item figcaption {
    padding: 12px 14px;
    font-size: 0.95rem;
}

/* contact */
form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 6px;
}

label {
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b9c8c0;
    border-radius: 8px;
    font: inherit;
    background-color: #ffffff;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
textarea:focus,
a:focus-visible,
button:focus-visible {
    outline: 3px solid #17694a;
    outline-offset: 2px;
}

button {
    width: fit-content;
}

.kontak-info {
    font-style: normal;
}

.kontak-info dl {
    margin: 0;
}

.kontak-info dt {
    margin-top: 12px;
    font-weight: bold;
}

.kontak-info dt:first-child {
    margin-top: 0;
}

.kontak-info dd {
    margin: 0;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #096340;
    border-top: 4px solid #ffffff;
    text-align: center;
    font-size: 0.95rem;
    color: #ffffff;
}

footer p {
    margin: 2px 0;
}

/* Layar desktop  */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 40px;
    }

    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .penuh {
        grid-column: 1 / -1;
    }

    .profile {
        flex-direction: row;
        text-align: left;
    }

    .data-diri {
        grid-template-columns: max-content 1fr;
    }

    .data-diri dt {
        margin-top: 0;
    }

    /* Beranda untuk teks kiri, foto tengah, teks kanan */
    .beranda {
        grid-template-columns: 1fr auto 1fr;
        gap: 40px;
        text-align: left;
    }

    .foto-beranda {
        width: 280px;
        order: 0;
    }

    .teks-kiri h1,
    .teks-kanan h2 {
        font-size: 2.4rem;
    }

    .beranda .tombol-grup {
        grid-column: 1 / -1;
    }

    .galeri-item {
        flex: 1 1 calc(33.333% - 16px);
        max-width: calc(33.333% - 11px);
    }
}