/* New Year Message Page Styles */

/* Hero Section with Portrait */
.newyear-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.newyear-portrait {
    max-width: 300px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.newyear-portrait img {
    width: 100%;
    height: auto;
    display: block;
}

.newyear-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-align: center;
}

.newyear-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 8px;
}

.newyear-date {
    font-size: 14px;
    color: #999;
    text-align: center;
}

/* Message Content */
.message-container {
    background: white;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.message-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Portrait Image - Float Left */
.portrait-image {
    float: left;
    width: 320px;
    max-width: 320px;
    margin: 0 40px 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.portrait-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Wrapper - Text wraps around image */
.message-content-wrapper {
    columns: 2;
    column-gap: 40px;
    column-rule: 1px solid #e0e0e0;
}

.message-greeting {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
    break-inside: avoid;
}

.message-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 18px;
    text-align: justify;
    word-break: auto-phrase;
    break-inside: avoid;
}

.handwriting {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 40px !important;
    /* 손글씨 폰트는 작게 보일 수 있어 크기를 키움 */
    color: #090e43;
    line-height: 1.2;
    font-weight: 900;
}

.message-content.highlight {
    background: #f8f9fa;
    padding: 18px;
    border-left: 4px solid #007bff;
    margin: 25px 0;
    break-inside: avoid;
}

.message-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #007bff;
    margin-top: 30px;
    margin-bottom: 15px;
    break-after: avoid;
}

.message-closing {
    font-size: 17px;
    line-height: 1.4;
    color: #333;
    margin-top: 40px;
    text-align: center;
    break-inside: avoid;
}

.message-signature {
    margin-top: 40px;
    text-align: right;
    break-inside: avoid;
}

.message-signature .name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.message-signature .name .signature-img {
    height: 50px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.message-signature .title {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Decorative Elements */
.message-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    break-inside: avoid;
}

.message-divider::before,
.message-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #d0d0d0;
}

.message-divider::before {
    margin-right: 10px;
}

.message-divider::after {
    margin-left: 10px;
}

.message-divider::before {
    background: linear-gradient(to right, transparent, #d0d0d0);
    border: none;
    height: 1px;
}

.message-divider::after {
    background: linear-gradient(to left, transparent, #d0d0d0);
    border: none;
    height: 1px;
}

/* 다이아몬드 중앙 장식 */
.message-divider {
    position: relative;
}

.message-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #d0d0d0 100%);
    margin-right: 15px;
}

.message-divider::after {
    content: '◇';
    flex: 0;
    font-size: 12px;
    color: #d0d0d0;
    padding: 0 15px;
}

.message-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent 0%, #d0d0d0 100%);
    margin-left: 15px;
}

/* 실제 구현 - 중앙 다이아몬드 포함 */
.message-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    break-inside: avoid;
}

.message-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #c0c0c0 100%);
    margin-right: 15px;
}

.message-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent 0%, #c0c0c0 100%);
    margin-left: 15px;
}

/* 리스트 아이템 */
.message-list {
    margin: 20px 0;
    padding-left: 20px;
    break-inside: avoid;
}

.message-list-item {
    font-size: 17px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 14px;
    position: relative;
    padding-left: 20px;
    break-inside: avoid;
}

.message-list-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 1200px) {
    .portrait-image {
        width: 280px;
        max-width: 280px;
        margin-right: 30px;
    }

    .message-content-wrapper {
        column-gap: 30px;
    }
}

@media (max-width: 968px) {
    .portrait-image {
        float: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 40px;
        display: block;
    }

    .message-content-wrapper {
        columns: 1;
    }

    .message-container {
        padding: 40px 30px;
    }

    .message-content {
        font-size: 16px;
        line-height: 2;
    }

    .message-list-item {
        font-size: 16px;
        line-height: 2;
    }
}

@media (max-width: 768px) {
    .newyear-portrait {
        max-width: 250px;
    }

    .newyear-title {
        font-size: 28px;
    }

    .newyear-subtitle {
        font-size: 16px;
    }

    .message-container {
        padding: 40px 25px;
    }

    .message-greeting {
        font-size: 17px;
    }

    .message-content {
        font-size: 15px;
        line-height: 1.9;
    }

    .message-section-title {
        font-size: 16px;
    }

    .message-signature .name {
        font-size: 15px;
    }

    .message-signature .name .signature-img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .newyear-portrait {
        max-width: 200px;
    }

    .message-container {
        padding: 30px 20px;
    }

    .message-greeting {
        font-size: 16px;
    }

    .message-content {
        font-size: 14px;
        line-height: 1.8;
        word-break: break-all;
    }

    .message-signature .name .signature-img {
        height: 40px;
    }

    .message-container {
        padding: 20px 0px;
        box-shadow: none;
    }

    .message-list-item {
        font-size: 14px;
    }

    .handwriting {
        font-size: 24px;
        text-align: center;
    }
}