/* --- [Deep Green & Pastel Yellow Theme] --- */
:root {
    --green-deep: #0E2A1E;    
    --green-forest: #1A4332;  
    --yellow-pastel: #FCE68D; 
    --yellow-hover: #FDF0C0;  
    --bg-base: #F9F9F9;       
    --bg-white: #FFFFFF;
    --text-dark: #111111;
    --text-gray: #555555;
    --text-on-green-sub: #A3C6B4; 
    --max-width: 1200px;
    --radius-card: 24px;
    --radius-btn: 100px;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Pretendard', sans-serif;
    background: var(--bg-base);
    color: var(--text-dark); 
    line-height: 1.6; 
    overflow-x: hidden;
    word-break: keep-all;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 140px 0; }

/* --- Typography --- */
.fancy-font { font-family: 'Playfair Display', serif; }
.serif-font { font-family: 'Nanum Myeongjo', serif; }

.section-header { text-align: center; margin-bottom: 70px; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-header h2 { 
    font-size: 3rem; font-weight: 800; margin-bottom: 20px; 
    color: var(--green-deep); line-height: 1.2; letter-spacing: -0.02em;
}
.section-header p { font-size: 1.2rem; color: var(--text-gray); font-weight: 500; }

.highlight { color: var(--green-forest); position: relative; z-index: 1; }
.highlight::after {
    content: ''; position: absolute; left: 0; bottom: 2px; width: 100%; height: 12px;
    background: var(--yellow-pastel); opacity: 0.6; z-index: -1;
}

/* --- Buttons --- */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    padding: 16px 40px; 
    font-weight: 700; font-size: 1.1rem; 
    border-radius: var(--radius-btn); 
    transition: all 0.3s ease; cursor: pointer; 
}
.btn-main { background: var(--yellow-pastel); color: var(--green-deep); }
.btn-main:hover { background: var(--yellow-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: white; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-text { color: var(--text-gray); font-weight: 600; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.btn-text:hover { color: var(--green-deep); border-color: var(--green-deep); }

/* --- Navigation (Top) --- */
header { 
    position: fixed; top: 0; left: 0; right: 0; 
    height: 95px; /* 로고 크기 증가에 맞춰 조정 (75px 로고 + 여유 공간) */
    background: #FAFAFA; 
    z-index: 9999; border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
}
.nav-content { width: 100%; max-width: 1200px; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }

.logo-area { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-img { height: 75px; width: auto; } /* 50px * 1.5 = 75px */
.logo-text { 
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.4rem; 
    font-weight: 800; 
    color: var(--green-deep); 
    letter-spacing: -0.02em;
}

.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-size: 1rem; color: var(--text-gray); font-weight: 600; }
.nav-menu a:hover { color: var(--green-forest); }

.nav-cta-small {
    background: var(--green-deep); color: var(--yellow-pastel);
    padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 700;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    background-color: var(--green-deep);
    color: white; padding-top: 95px; position: relative; /* header 높이에 맞춰 조정 */
}
.hero-content { max-width: 1000px; padding: 0 24px; z-index: 2; animation: slideUp 1s ease-out; }
.hero-eyebrow { font-size: 1.2rem; font-weight: 700; color: var(--text-on-green-sub); margin-bottom: 20px; display: block; letter-spacing: 0.05em; }
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.main-brand { font-size: 6.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 30px; color: white; }
.brand-highlight { color: var(--yellow-pastel); font-style: italic; font-family: 'Playfair Display', serif; }
.hero-sub { font-size: 1.6rem; color: rgba(255,255,255,0.9); margin-bottom: 50px; font-weight: 500; }

/* --- Instructor --- */
#instructor { background: var(--bg-white); }
.profile-container {
    border-radius: 40px; 
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start;
}
.profile-container > * { min-width: 0; }
.profile-img-box {
    width: 100%;
}
.profile-img { width: 100%; height: 600px; object-fit: cover; border-radius: 20px; filter: saturate(0.9); }

.profile-info { padding-top: 20px; }
.profile-role { font-size: 1.1rem; color: #D4AF37; font-weight: 700; display: block; margin-bottom: 5px; }
.inst-name-title { font-size: 2.4rem; font-weight: 800; color: var(--green-deep); margin-bottom: 40px; }

.letter-box { margin-bottom: 40px; }
.letter-text {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.35rem;
    line-height: 1.9;
    color: var(--text-dark);
    font-weight: 700;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.letter-highlight {
    background: linear-gradient(to top, rgba(252, 230, 141, 0.4) 30%, transparent 30%);
}

.profile-history { border-top: 1px solid #eee; padding-top: 30px; }
.profile-history li { 
    font-size: 1.05rem; 
    color: var(--text-gray); 
    margin-bottom: 12px; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.profile-history i { 
    color: var(--green-forest); 
    flex-shrink: 0;
    margin-top: 2px;
}
.history-sub-item {
    display: block;
    margin-left: 28px;
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--text-gray);
}
.history-highlight {
    font-weight: 700;
    color: var(--green-deep);
    white-space: nowrap;
}

.marquee-wrapper {
    margin-top: 30px;
    background: #F4F8F6;
    padding: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 100%;
}
.marquee-content {
    display: inline-block;
    padding-left: 100%; 
    animation: marquee 20s linear infinite;
    font-weight: 700;
    color: var(--green-deep);
    font-size: 1.1rem;
}
@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* --- Pain Points --- */
#pain-points { background: var(--bg-base); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
    background: var(--bg-white); border-radius: var(--radius-card); padding: 40px;
    transition: 0.4s; height: 100%; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); border-color: rgba(14, 42, 30, 0.1); }
.card-icon-circle { 
    width: 60px; height: 60px; background: rgba(26, 67, 50, 0.08); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--green-forest); margin-bottom: 24px;
}
.card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: var(--green-deep); }
.card-desc { font-size: 1.05rem; color: var(--text-gray); line-height: 1.6; }

/* --- Solutions --- */
#solutions { background: var(--green-deep); color: white; }
#solutions .section-header h2 { color: white; }
#solutions .section-header p { color: var(--text-on-green-sub); }
.card-dark {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-card); padding: 40px; transition: 0.4s;
}
.card-dark:hover { background: rgba(255,255,255,0.1); }
.card-dark .card-icon-circle { background: var(--yellow-pastel); color: var(--green-deep); }
.card-dark .card-title { color: white; }
.card-dark .card-desc { color: rgba(255,255,255,0.8); }
.small-note { font-size: 0.9rem; color: var(--yellow-pastel); margin-bottom: 10px; display: block; font-weight: 600; }

/* --- Curriculum --- */
#curriculum { background: var(--bg-white); }
.timeline-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-line { 
    position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; 
    background: #EEEEEE; transform: translateX(-50%);
}
.timeline-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 80px; position: relative; }
.timeline-row:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.timeline-dot {
    position: absolute; left: 50%; top: 0; width: 20px; height: 20px; 
    background: var(--bg-white); border: 5px solid var(--green-forest); 
    border-radius: 50%; transform: translateX(-50%); z-index: 2;
}
.timeline-content { width: 45%; }

.badge { display: inline-block; padding: 6px 14px; background: rgba(252, 230, 141, 0.3); color: var(--green-deep); font-weight: 700; border-radius: 20px; font-size: 0.9rem; margin-bottom: 15px; }
.curr-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; color: var(--green-deep); }
.curr-list li { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 6px; }

.curr-sub-text { font-size: 1.1rem; color: var(--green-forest); font-weight: 600; margin-bottom: 40px; display: block; text-align: center; }
.curr-consult-note { font-size: 0.95rem; color: var(--text-gray); margin-top: 15px; font-style: italic; }

/* --- Reviews Polaroid Style Horizontal Scroller --- */
#reviews { 
    background: var(--bg-base); 
    overflow: hidden;
    padding: 80px 0 100px 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    min-height: 450px; /* Ensure container has height */
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    will-change: transform;
}

/* Polaroid Style Review Cards */
.review-card-polaroid {
    background: #FFFFFF;
    padding: 12px 12px 60px 12px; /* Thick bottom padding for caption */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Random rotation for organic feel - applied via JavaScript */
.review-card-polaroid.rotate-slight {
    transform: rotate(-1.5deg);
}
.review-card-polaroid.rotate-medium {
    transform: rotate(2deg);
}
.review-card-polaroid.rotate-slight-alt {
    transform: rotate(-2.5deg);
}
.review-card-polaroid.rotate-medium-alt {
    transform: rotate(1.5deg);
}

.review-card-polaroid:hover,
.review-card-polaroid.hover-active,
.review-card-polaroid.touch-active {
    transform: scale(1.08) rotate(0deg) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Polaroid image area with paper texture background */
.review-img-area {
    width: 320px;
    height: 320px;
    /* Paper texture background using CSS pattern - vintage photo paper look */
    background-color: #faf9f6; /* Base paper color - warm off-white */
    background-image: 
        /* Horizontal paper fibers */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px
        ),
        /* Vertical paper fibers */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px
        ),
        /* Subtle paper grain texture */
        radial-gradient(
            ellipse at 25% 25%,
            rgba(0, 0, 0, 0.008) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 75% 75%,
            rgba(0, 0, 0, 0.008) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 50% 50%,
            rgba(0, 0, 0, 0.005) 0%,
            transparent 70%
        );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    /* Subtle inner shadow for depth - like paper has thickness */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.02),
                inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.review-img-area img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    display: block;
    /* Subtle shadow to make image appear printed on paper */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
}

/* Polaroid caption area (thick bottom border) */
.review-caption-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFFFF;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.review-keyword {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green-deep);
    line-height: 1.4;
    margin-bottom: 4px;
    text-align: left;
}

.review-writer {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
    text-align: left;
}

.review-writer strong {
    color: var(--green-forest);
    font-weight: 600;
}


/* [→] Next Card Button (오른쪽 화살표) */
.next-card-btn {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: var(--green-deep);
    color: var(--yellow-pastel);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    font-family: 'Pretendard', sans-serif;
}

.next-card-btn:hover {
    background: var(--green-forest);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.next-card-btn:active {
    transform: translateY(0);
}

/* [←] Previous Card Button (왼쪽 화살표) */
.prev-card-btn {
    position: absolute;
    bottom: 15px;
    right: 90px;
    background: var(--green-deep);
    color: var(--yellow-pastel);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    font-family: 'Pretendard', sans-serif;
}

.prev-card-btn:hover {
    background: var(--green-forest);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.prev-card-btn:active {
    transform: translateY(0);
}

/* --- Student Zone --- */
#student-zone { background: #FFFFFF; border-top: 1px solid #eee; }
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.zone-card {
    background: #F9F9F9; padding: 30px; border-radius: 16px; text-align: center;
    transition: 0.3s; cursor: pointer; border: 1px solid transparent;
    display: block;
    text-decoration: none;
    color: inherit;
}
.zone-card:hover { border-color: var(--green-deep); background: #F0FFF4; }
.zone-card-link {
    text-decoration: none;
    color: inherit;
}
.zone-desc {
    font-size: 0.9rem;
    color: #888;
    margin-top: 8px;
}
.zone-icon { font-size: 2rem; color: var(--green-forest); margin-bottom: 15px; }
.zone-title { font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }

/* --- Footer --- */
footer { background: var(--green-deep); padding: 80px 0; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-wrap { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px; flex-wrap: wrap; gap: 40px; }
.footer-info { flex: 1; min-width: 250px; }
.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--yellow-pastel);
    margin-bottom: 12px;
}
.footer-copyright {
    margin-top: 20px;
}
.footer-contact {
    text-align: right;
}
.footer-contact-title {
    color: white;
    margin-bottom: 12px;
}
.footer-phone {
    color: var(--yellow-pastel);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
    display: none; 
    position: fixed; bottom: 0; left: 0; width: 100%; height: 65px;
    background: #FFFFFF; border-top: 1px solid #eee; z-index: 9999;
    justify-content: space-around; align-items: center;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.05);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: #999; font-size: 0.75rem; width: 25%; height: 100%; transition: 0.3s;
}
.bottom-nav-item i { font-size: 1.3rem; margin-bottom: 4px; }
.bottom-nav-item:hover, .bottom-nav-item:active { color: var(--green-deep); }
.bottom-nav-item span { font-weight: 500; }

/* --- [MOBILE Optimization] --- */
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .logo-img { height: 60px; } /* 40px * 1.5 = 60px */ 
    
    .main-brand { font-size: 3.8rem; }
    .hero-sub { font-size: 1.2rem; margin-bottom: 30px; }
    .section-header h2 { font-size: 2rem; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .zone-grid { grid-template-columns: 1fr; }
    
    .timeline-line { left: 10px; transform: none; }
    .timeline-row { 
        flex-direction: column !important; 
        align-items: flex-start; 
        margin-left: 0; 
        padding-left: 40px; 
        text-align: left !important; 
    }
    .timeline-content { width: 100%; }
    .timeline-dot { left: 1px; top: 0; transform: none; }

    .profile-container { 
        grid-template-columns: 1fr; 
        padding: 24px; 
        gap: 30px; 
    }
    .profile-img { height: 400px; }

    .letter-text { 
        font-size: 1.15rem;
        line-height: 1.8;
        word-break: keep-all;
        overflow-wrap: break-word;
        text-align: left;
    }
    
    .profile-history li {
        font-size: 0.95rem;
        line-height: 1.7;
        flex-wrap: wrap;
    }
    
    .history-sub-item {
        margin-left: 20px;
        font-size: 0.9rem;
    }
    
    .history-highlight {
        white-space: normal;
    }

    .btn { width: 100%; }
    
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 70px; }
    
    .review-card-collage.h-2 {
        height: 320px;
    }
    
    #reviews {
        padding-bottom: 100px;
    }
    
    .marquee-container {
        padding-bottom: 60px;
    }
    
    .next-card-btn {
        bottom: 10px;
        right: 15px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .prev-card-btn {
        bottom: 10px;
        right: 75px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

@keyframes slideUp { 
    from { opacity: 0; transform: translateY(40px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.reveal { opacity: 1; transform: translateY(0); transition: 1s ease; }

