/* ===================================
   원장 소개 페이지 스타일
   =================================== */

/* 인사말 */
.greeting-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 70px;
    align-items: start;
}

.greeting-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
}

.greeting-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.director-name-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44,26,14,0.95), transparent);
    padding: 40px 25px 25px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.director-name-tag strong {
    font-family: 'Noto Serif KR', serif;
    font-size: 26px;
    font-weight: 700;
}

.director-name-tag span {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.greeting-content p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 2;
    margin-bottom: 18px;
}

.greeting-content p strong {
    color: var(--primary);
}

.greeting-sign {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.greeting-sign span {
    font-size: 13px;
    color: var(--text-light);
}

.greeting-sign strong {
    font-family: 'Noto Serif KR', serif;
    font-size: 22px;
    color: var(--primary);
    letter-spacing: 4px;
}

/* 자격증 */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.cert-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--accent);
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px var(--shadow);
}

.cert-icon {
    width: 65px;
    height: 65px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.cert-icon i {
    font-size: 26px;
    color: var(--primary);
}

.cert-card h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 수상경력 타임라인 */
.award-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding-left: 30px;
}

.award-timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    gap: 30px;
    align-items: start;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 25px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
    z-index: 1;
    transform: translateX(-6px);
}

.timeline-year {
    font-family: 'Noto Serif KR', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    padding-top: 10px;
    text-align: right;
    padding-right: 20px;
}

.timeline-content {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--accent);
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-category {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.8;
}

.timeline-trophy {
    font-size: 40px;
    text-align: center;
    padding-top: 15px;
}

/* 상장 사진 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.photo-placeholder {
    background: var(--bg-cream);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    color: var(--text-light);
}

.photo-placeholder i {
    font-size: 40px;
    color: var(--border);
    margin-bottom: 15px;
}

.photo-placeholder p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 8px;
    line-height: 1.6;
}

.photo-placeholder span {
    font-size: 12px;
    color: var(--text-light);
}

/* 발효 철학 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.philosophy-item {
    text-align: center;
    padding: 40px 25px;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-5px);
}

.philosophy-icon {
    font-size: 45px;
    margin-bottom: 18px;
}

.philosophy-item h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.philosophy-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

/* 스크롤 애니메이션 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 상단 이동 버튼 */
.top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-btn.show {
    opacity: 1;
    transform: translateY(0);
}

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

    .greeting-image img {
        height: 350px;
    }

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

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-item {
        grid-template-columns: 80px 1fr;
    }

    .timeline-trophy {
        display: none;
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .award-timeline {
        padding-left: 0;
    }

    .award-timeline::before {
        left: 60px;
    }

    .timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 15px;
    }

    .timeline-year {
        font-size: 20px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
}
