
/* --- CSS Variables (Wedding Pink Theme) --- */
:root {
    --primary-color: #D9AAB7; /* Dusty Rose */
    --text-color: #5D5D5D;
    --bg-color: #FDFBFC; /* Soft off-white */
    --footer-bg-color: #F7F3F4;
    --divider-color: #EAE2E5;
}

/* --- Basic Setup --- */
body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    text-align: center;
    line-height: 1.7;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff; /* Main content on a clean white background */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

section {
    padding: 50px 24px;
}

.divider {
    height: 12px;
    background-color: var(--footer-bg-color);
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

h2, h3, h4 {
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #444;
}

h2 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

/* --- Hero Section (Restored) --- */
.hero-section {
    position: relative; /* For text overlay */
    padding: 0;
}
.main-photo {
    width: 100%;
    height: auto; /* Let height adjust to maintain aspect ratio */
    display: block; /* Remove any extra space below the image */
    filter: brightness(0.6);
}
.hero-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-text h1 {
    font-family: 'Dancing Script', cursive; /* Changed font */
    font-size: 2.9rem; /* Adjusted size */
    font-weight: 700; /* Use bold variant of the font */
    margin: 0 0 10px 0;
}
.hero-text p { font-size: 1.15rem; margin: 0; }

/* --- Invitation Section --- */
.script-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}
.invitation-section .message { font-family: 'Gowun Batang', serif; font-size: 1.1rem; line-height: 1.9; }
.parents { margin: 30px 0; font-size: 1rem; line-height: 1.8; }
.sign-off { margin-top: 30px; font-family: 'Gowun Batang', serif; }

/* --- Date & Countdown Section --- */
.countdown-section .date-info { font-size: 1.2rem; font-weight: 500; margin-bottom: 30px; }
.calendar { max-width: 380px; margin: 0 auto 30px; }
.calendar .month-header { font-size: 1.3rem; font-weight: 700; color: var(--primary-color); margin-bottom: 15px; }
.calendar table { width: 100%; border-collapse: collapse; }
.calendar th, .calendar td { padding: 8px; text-align: center; font-size: 0.95rem; }
.calendar th { color: #888; }

.calendar td.wedding-day {
    position: relative;
    font-weight: 700;
}

.calendar td.wedding-day::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    width: 2.4em;
    height: 2.4em;
    border-radius: 50%;
    z-index: 1; /* Circle layer */
}

.calendar td.wedding-day span {
    position: relative;
    z-index: 2; /* Number layer, on top of the circle */
    color: white; /* Make the number white */
}

.d-day { font-size: 1.1rem; }
.d-day .d-day-highlight { color: var(--primary-color); font-weight: 700; }


/* --- Contacts Section --- */
.contact-container { display: flex; justify-content: space-around; max-width: 300px; margin: 24px auto 0; }
.contact-person h4 { margin-bottom: 12px; color: #666; }
.icon-btn { text-decoration: none; font-size: 2rem; margin: 0 10px; color: #999; transition: all 0.3s; }
.icon-btn:hover { color: var(--primary-color); transform: scale(1.15); }

/* --- Gallery Section (MODIFIED) --- */
.gallery-container { position: relative; border-radius: 12px; overflow: hidden; }
.gallery-carousel { display: flex; align-items: center; /* Vertically center images */ }
.gallery-carousel img {
    width: 100%;
    height: 600px; /* Set a consistent height */
    object-fit: cover; /* Cover the container without distorting aspect ratio */
    flex-shrink: 0;
    display: block;
}
.prev-btn, .next-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.6); color: #555;
    border: none; font-size: 20px; cursor: pointer; border-radius: 50%; width: 44px; height: 44px; line-height: 44px; z-index: 10;
    transition: background-color 0.2s;
}
.prev-btn:hover, .next-btn:hover { background: rgba(255, 255, 255, 0.8); }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* --- Location Section --- */
#map {
    height: 300px;
    width: 100%;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid var(--divider-color);
}
.nav-btn { display: block; width: 100%; box-sizing: border-box; background-color: var(--primary-color); color: white; padding: 16px; text-decoration: none; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 700; margin-bottom: 25px; cursor: pointer; transition: background-color 0.2s;}
.nav-btn:hover { background-color: #c99bad; }
.transport-info { text-align: left; font-size: 0.95rem; line-height: 1.8; background-color: var(--footer-bg-color); padding: 20px; border-radius: 10px; }

/* ADDED: Tighten up transit info spacing */
.transport-method > h4 {
    margin-bottom: 8px; /* Add a bit of space below the heading */
}
.transport-method p {
    margin: 6px 0; /* Set a smaller vertical margin */
    line-height: 1.6; /* Adjust line height for readability */
}

/* --- Bank Accounts Section --- */
.accordion-container { max-width: 400px; margin: 0 auto; }
.accordion { border: 1px solid var(--divider-color); border-radius: 10px; margin-bottom: 10px; text-align: left; background-color: #fff; overflow: hidden; }
.accordion-header { padding: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.accordion-header .accordion-icon { font-size: 1.5rem; font-weight: 300; color: var(--primary-color); transition: transform 0.3s ease-in-out; }
.accordion-panel { padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid transparent; }

.accordion.active .accordion-header .accordion-icon { transform: rotate(45deg); }
.accordion.active .accordion-panel { max-height: 100px; padding: 20px 16px; border-top: 1px solid var(--divider-color); }

.copy-btn { background: #EFEFEF; color: #333; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.copy-btn:hover { background: #e0e0e0; }

/* --- Footer Section --- */
.footer-section { background: var(--footer-bg-color); padding: 30px 24px; border-top: 1px solid var(--divider-color); }
.footer-section button { max-width: 400px; width: 100%; display: block; margin: 0 auto 10px; padding: 16px; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 1.05rem; transition: transform 0.2s; }
.footer-section button:hover { transform: translateY(-2px); }
#share-kakao { background-color: #FADDAA; color: #3C1E1E; } /* MODIFIED: Softer yellow */
#copy-link { background-color: var(--primary-color); color: white; }

/* --- Utility Classes --- */
.highlight { color: var(--primary-color); font-weight: bold; }
.name { font-weight: bold; }
