/* 
   Solsol Place - Beagle-Inspired "Modern Editorial" Stylesheet
   Design Palette: Mint Teal (#98CEBB), Cool Grey (#F0F3F6), Charcoal (#282D33), Pale Yellow (#F5EA8D), Coral (#F67A7B)
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;700&family=Pretendard:wght@300;400;600;800;900&display=swap');

:root {
    --bg-color: #F0F3F6;
    /* Cool Grey (Main Background) */
    --accent-teal: #98CEBB;
    /* Mint Teal */
    --accent-yellow: #F5EA8D;
    /* Pale Yellow */
    --accent-coral: #F67A7B;
    /* Coral / Pink */
    --text-main: #282D33;
    /* Deep Charcoal Grey */
    --white: #ffffff;

    /* Typography Mix */
    --font-heading: 'Pretendard', sans-serif;
    --font-body: 'Noto Serif KR', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    /* Serif for body */
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 1.1rem;
    width: 100%;
    /* 너비 100% 명시 */
}

/* Beautiful scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* 모바일 가로 스크롤 방지 */
    width: 100%;
}

/* Geometric Background Elements */
.bg-shape {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background-color: var(--accent-yellow);
    top: -200px;
    right: -100px;
    animation: float 20s infinite alternate;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background-color: var(--accent-teal);
    bottom: 20%;
    left: -150px;
    animation: float 25s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-50px, 50px) rotate(15deg);
    }
}

/* Typography Headings */
h1,
h2,
h3,
h4,
.nav-links a,
.logo {
    font-family: var(--font-heading);
    /* High-contrast Sans-serif */
    font-weight: 800;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(240, 243, 246, 1) 0%, rgba(240, 243, 246, 0) 100%);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 95px;
    /* 로고 크기를 조금 더 키움 */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-coral);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--accent-yellow);
    box-shadow: 0 10px 30px rgba(40, 45, 51, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(40, 45, 51, 0.3);
    background-color: #1a1d21;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    position: relative;
}

.hero-meta {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-coral);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 40px;
    max-width: 1200px;
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    max-width: 700px;
    margin-bottom: 60px;
    color: #4a515c;
}

/* General Layout & Cards (White Paper metaphor) */
.section {
    padding: 15vh 10vw;
    position: relative;
}

.section-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 80px;
    max-width: 800px;
}

/* Programs Card Layout */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.card-paper {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-paper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.card-image {
    width: 100%;
    height: 400px;
    /* 포스터가 더 크게 보이도록 높이 대폭 확대 */
    overflow: hidden;
    background-color: #f8f9fa;
    /* 빈 공간을 자연스럽게 채울 연한 배경색 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 이미지가 잘리지 않고 전체가 다 나오도록 유지 */
    transition: transform 0.8s ease;
}

.card-paper:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    position: absolute;
    bottom: -10px;
    right: 20px;
    color: var(--accent-teal);
    opacity: 0.15;
    line-height: 1;
    z-index: 0;
}

.card-paper h3 {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    margin-bottom: 0;
    letter-spacing: -1px;
    z-index: 1;
    word-break: keep-all;
    line-height: 1.3;
}

.insta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: all 0.3s ease;
    z-index: 1;
}

.insta-link:hover {
    background-color: #E1306C;
    /* Instagram Official Color */
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
}

.insta-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.card-paper p {
    font-size: 1.15rem;
    color: #555;
    z-index: 1;
}

/* Instructors Section Layout */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.instructor-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.instructor-image {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    border-radius: 100px 100px 0 0;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: var(--accent-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.05);
}

.instructor-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.instructor-name-row h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--text-main);
}

.instructor-insta {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #ddd;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.instructor-insta:hover {
    background-color: var(--text-main);
    color: var(--white);
    border-color: var(--text-main);
}

.instructor-insta svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.instructor-info p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.5;
    word-break: keep-all;
}

/* Marquee / Infinite Banner */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--accent-teal);
    padding: 30px 0;
    font-family: var(--font-heading);
    transform: rotate(-2deg);
    margin: 100px 0;
    border-top: 2px solid var(--text-main);
    border-bottom: 2px solid var(--text-main);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-main);
    text-transform: uppercase;
    padding: 0 40px;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Feature/Rental Section */
.rental-section {
    background-color: var(--white);
    border-radius: 40px;
    margin: 0 5vw;
    padding: 10vh 8vw;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.rental-text {
    flex: 1;
}

.rental-text h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 30px;
}

.rental-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
}

.tag {
    font-family: var(--font-heading);
    background-color: var(--accent-yellow);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Big Interactive Footer */
.big-footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: 15vh 10vw 5vh;
    margin-top: 15vh;
}

.footer-hero {
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 60px;
    font-family: var(--font-heading);
    font-weight: 900;
}

.footer-hero span {
    color: var(--accent-teal);
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    margin-top: 100px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet Adjustments */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .header {
        padding: 15px 15px 5px 15px;
        flex-direction: column;
        background: rgba(240, 243, 246, 0.98);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .logo img {
        height: 75px;
        /* 모바일 로고 사이즈 복원 (가장 최적화된 큰 사이즈) */
        margin-bottom: 10px;
    }

    .nav-links {
        display: flex;
        width: 100%;
        gap: 15px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        /* Hide scrollbars */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links li {
        white-space: nowrap;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    /* 신청서 작성 버튼 크기 줄이기 */
    .nav-links li a[style*="padding"] {
        padding: 6px 16px !important;
        font-size: 0.85rem !important;
    }

    .hero {
        padding: 180px 20px 50px 20px;
        /* 헤더 높이만큼 넉넉한 공간 확보 */
        text-align: left;
        justify-content: flex-start;
        /* 모바일에서는 중앙정렬 대신 위에서부터 차례로 내려오도록 수정 */
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        /* 모바일 화면에서 제목 텍스트 크기 축소 */
        word-break: keep-all;
        /* 단어 유지 방식을 제거하거나 조절 */
        white-space: pre-wrap;
        /* 줄바꿈 문자를 그대로 인식 */
    }

    .hero p {
        font-size: 0.95rem;
        word-break: keep-all;
        white-space: pre-wrap;
    }

    /* 모바일에서도 정상적인 문장 띄어쓰기를 위해 br 태그 유지 (display: none 삭제) */

    .section {
        padding: 10vh 20px;
        /* 모바일 좌우 여백 축소 */
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
        /* 제목 크기 축소 */
        margin-bottom: 40px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        /* 카드 사이 간격 축소 */
    }

    .card-paper {
        padding: 30px 20px;
    }

    .card-image {
        height: 350px;
        /* 모바일에서 포스터 영역 세로 길이 축소 */
    }

    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    @media (max-width: 500px) {
        .instructors-grid {
            grid-template-columns: 1fr;
        }
    }

    .rental-section {
        flex-direction: column;
        margin: 0 20px;
        padding: 40px 20px;
        gap: 40px;
    }

    .rental-text h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .marquee-content span {
        font-size: 2rem;
    }

    .big-footer {
        padding: 10vh 20px 5vh;
        margin-top: 10vh;
    }

    .footer-hero {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        margin-top: 60px;
    }
}