:root {
    --font-serif-korean: 'Noto Serif KR', 'Gowun Batang', serif;
    --font-sans-korean: 'Noto Sans KR', sans-serif;
    --color-primary: #a0522d; /* Sienna */
    --color-secondary: #e8d0b2;
    --color-background: #fdfaf6;
    --color-text: #4a3f35;
    --color-card: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --border-color: #f0e6d8;
}

/* General Body Styles */
body {
    font-family: var(--font-sans-korean);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    -webkit-text-size-adjust: 100%;
    background-color: var(--color-background);
    background-image: url('https://www.transparenttextures.com/patterns/light-paper-fibers.png'); /* Pattern from remote */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    max-width: 768px;
    margin: 40px auto; /* Margin from remote */
    padding: 20px;
    overflow-x: hidden;
    background-color: rgba(255, 255, 255, 0.94); /* Transparency from remote */
    box-shadow: var(--shadow); /* Keep my shadow */
    border-radius: 12px; /* Border-radius from remote */
    border: 1px solid var(--border-color);
}

.card {
    background-color: var(--color-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* Header/Hero Section */
.hero {
    background-image: linear-gradient(135deg, rgba(232, 208, 178, 0.8), rgba(160, 82, 45, 0.8)), url('https://images.unsplash.com/photo-1593325639149-1d44c8a2a5f3?q=80&w=2070&auto=format&fit=crop'); /* Combine my gradient with remote image */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    border-radius: 12px 12px 0 0; /* Match container border-radius */
    margin-top: -40px; /* Adjust for container margin */
    margin-bottom: 40px;
}
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-serif-korean); /* Use Gowun Batang for titles */
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    line-height: 1.4; /* From remote */
}

.hero-subtitle {
    font-family: var(--font-sans-korean);
    font-size: 1.3em;
    font-weight: 300;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Section Headings */
h2 {
    font-family: var(--font-serif-korean); /* Use Gowun Batang for titles */
    font-size: 2em;
    font-weight: 700;
    color: #34495e; /* From remote */
    margin-bottom: 20px;
    display: flex; /* For icons from remote */
    align-items: center;
    justify-content: center;
    gap: 10px;
}
h2 .fa-solid, h2 .fa-regular {
    color: #c0392b; /* Icon color from remote */
    font-size: 0.8em; /* Icon size from remote */
}

/* Message Section */
.message-section .intro-message,
.message-section .outro-message {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.signature {
    font-family: var(--font-serif-korean); /* Use Gowun Batang for signature */
    font-size: 1.2em;
    margin-top: 30px;
    color: var(--color-primary);
}

/* Event Details Section */
.event-details {
    text-align: left;
}
.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.detail-item:last-child {
    margin-bottom: 0;
}
.detail-item .icon {
    font-size: 1.8em;
    margin-right: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}
.detail-item div {
    flex-grow: 1;
}
.detail-item h3 {
    font-family: var(--font-serif-korean); /* Use Gowun Batang for subheadings */
    font-size: 1.3em;
    margin: 0 0 5px 0;
    color: #8b4513;
}
.detail-item p {
    margin: 0;
    font-size: 1.05em;
}
.rsvp-deadline {
    font-size: 0.95em;
    color: #777;
    margin-top: 10px;
}

/* Button Styles */
.button {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(160, 82, 45, 0.3);
}

.button:hover {
    background-color: #8b4513;
    transform: translateY(-2px);
}

/* Money Gift Section */
#contact-footer { /* Renamed to more semantic class/id in index.html, using old id for now */
    padding: 30px;
    background-color: var(--color-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-top: 30px;
}
#contact-footer h2 {
    color: #34495e;
}
#contact-footer p {
    font-size: 1.1em;
    margin-bottom: 10px;
}


/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-size: 0.9em;
    background-color: #f0e6d8;
    margin-top: 40px;
    border-radius: 0 0 12px 12px; /* Match container border-radius */
}
.footer .fa-regular {
    margin-right: 5px;
}

.detail-item .kakao-map-static .hide {
    max-width: 504px; /* Align with image width */
    margin: 0 auto;
    text-align: left;
    box-sizing: border-box; /* Include padding in width calculation */
}

#kakao-map {
    margin-top: 20px; /* Add margin to separate from the button */
    border-radius: 8px; /* Slightly rounded corners */
    overflow: hidden; /* Ensure map doesn't overflow rounded corners */
}

