* {
    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;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #17694a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    padding: 32px 20px;
    background-color: #17694a;
    color: white;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header p {
    margin: 8px 0 0;
}

nav {
    padding: 14px 20px;
    background-color: white;
    border-bottom: 1px solid #d7e1dc;
    text-align: center;
}

nav a {
    display: inline-block;
    margin: 4px 10px;
    font-weight: bold;
}

nav a.active {
    color: #0d5038;
    border-bottom: 2px solid #17694a;
    padding-bottom: 2px;
}

main {
    width: 90%;
    max-width: 1000px;
    margin: 24px auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

section {
    padding: 24px;
    background-color: white;
    border: 1px solid #d7e1dc;
    border-radius: 16px;
}

section h2 {
    margin-top: 0;
    color: #17694a;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
}

.profile > a {
    width: 100%;
    max-width: 200px;
    flex-shrink: 0;
}

.profile > a img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #17694a;
}

.profile-photo {
    flex: 1;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 0;
}

.profile-photo h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #17694a;
}

.profile-photo p {
    margin: 6px 0;
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background-color: #17694a;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

#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;
}

th, td {
    padding: 12px;
    border: 1px solid #d7e1dc;
    text-align: left;
}

th {
    background-color: #17694a;
    color: white;
}

tbody tr:nth-child(even) {
    background-color: #f5f7f6;
}

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

.holiday-card {
    background: #fff;
    border: 1px solid #d7e1dc;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.holiday-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.holiday-card p {
    padding: 12px;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Contact Form */
form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 6px;
}

label {
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b9c8c0;
    border-radius: 8px;
    font: inherit;
    background-color: white;
}

textarea {
    min-height: 120px;
    resize: vertical;    
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid #17694a;
    outline-offset: 2px;
}

button {
    width: fit-content;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #17694a;
    color: white;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

button:hover {
    background-color: #0d5038;
}

.social-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #263238;
    color: white;
    text-align: center;
}

footer p {
    margin: 0;
}

@media (min-width: 768px) {
    .profile {
        flex-direction: row;
        align-items: flex-start;
    }

    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile {
        grid-column: 1 / -1;
    }

    #contact {
        grid-column: 1 / -1;
    }
}