/**
 * CEO 인사말 페이지 전용 스타일
 * 텍스트 좌측, 이미지 우측
 */

.page-greeting .co-section--text,
.greeting-section {
    background: #fff;
    padding-top: clamp(5rem, 12vw, 8rem);
    padding-bottom: clamp(5rem, 12vw, 8rem);
}

.greeting-section__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: clamp(1.5rem, 3vw, 3rem);
    padding-right: clamp(1.5rem, 3vw, 3rem);
}

.greeting-section__content {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 400px);
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

/* 메시지 영역 (좌측) */
.greeting-message {
    padding-right: 1rem;
}

.greeting-message__opening {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.7;
    color: #000;
    margin: 0 0 2rem;
}

.greeting-message__body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #333;
    margin: 0 0 1.75rem;
}

.greeting-message__body:last-child {
    margin-bottom: 0;
}

/* 사진 영역 (우측) */
.greeting-photo {
    position: sticky;
    top: 120px;
}

.greeting-photo__frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.greeting-photo__frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    pointer-events: none;
}

.greeting-photo__frame img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.greeting-photo__info {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.greeting-photo__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.01em;
}

.greeting-photo__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.greeting-photo__title {
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

/* 라이트 모드 */
body.prototype-03.light-mode .greeting-section {
    background: #fff;
}

body.prototype-03.light-mode .greeting-photo__frame {
    background: rgba(0, 0, 0, 0.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

body.prototype-03.light-mode .greeting-photo__frame::before {
    border-color: rgba(0, 0, 0, 0.08);
}

body.prototype-03.light-mode .greeting-photo__sep {
    background: rgba(0, 0, 0, 0.35);
}

body.prototype-03.light-mode .greeting-photo__name {
    color: #111;
}

body.prototype-03.light-mode .greeting-photo__title {
    color: rgba(0, 0, 0, 0.6);
}

body.prototype-03.light-mode .greeting-message__opening {
    color: #111;
}

body.prototype-03.light-mode .greeting-message__body {
    color: rgba(0, 0, 0, 0.82);
}

/* 반응형 */
@media (max-width: 900px) {
    .greeting-section__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .greeting-message {
        padding-right: 0;
    }

    .greeting-photo {
        position: static;
        order: -1;
        max-width: 420px;
        margin: 0 auto;
    }

    .greeting-photo__info {
        margin-top: 1.25rem;
    }

    .greeting-message__opening {
        font-size: 1.375rem;
    }

    .greeting-message__body {
        font-size: 1.0625rem;
    }
}

@media (max-width: 640px) {
    .greeting-photo {
        max-width: 100%;
    }

    .greeting-photo__name {
        font-size: 1.125rem;
    }

    .greeting-message__opening {
        font-size: 1.25rem;
    }

    .greeting-message__body {
        font-size: 1rem;
    }
}
