/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #003366;
    --secondary: #D4AF37;
    --brand-black: #1A1A1A;
    --brand-gray: #F3F4F6;
    --text-body: #4B5563;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --white: #FFFFFF;
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 10px 30px -10px rgba(0, 51, 102, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #FAFAFA;
    color: var(--brand-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    line-height: 1.5;
}

::selection {
    background-color: var(--primary);
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 32px;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    padding: 96px 32px 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-label-line {
    height: 2px;
    width: 48px;
    background: var(--secondary);
}

.hero-label-text {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-black);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero-title-highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(212, 175, 55, 0.2);
    z-index: -1;
}

.hero-desc {
    color: var(--gray-500);
    font-size: 1.125rem;
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.8;
}

.hero-right {
    display: none;
}

.view-all-btn {
    display: inline-block;
    border: 1px solid rgba(26, 26, 26, 0.1);
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-black);
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    cursor: pointer;
}

.view-all-btn:hover {
    background: var(--brand-black);
    color: var(--white);
}

/* =============================================
   Editor's Pick — Carousel
   ============================================= */
.editors-pick {
    margin-bottom: 96px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 32px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-black);
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 28px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    visibility: hidden;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: var(--gray-500);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--brand-black);
    border-color: var(--brand-black);
    color: var(--white);
}

.carousel-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.carousel-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Carousel Wrapper */
.card-grid-wrapper {
    overflow: hidden;
}

/* Carousel Track */
.card-grid {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Slide Item */
.pick-card-slide {
    flex-shrink: 0;
    padding-right: 32px;
    width: 100%;
}

/* Pick Card (기존 디자인 100% 유지) */
.pick-card {
    cursor: pointer;
    display: block;
}

.pick-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.pick-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.pick-card:hover .pick-card-image img {
    transform: scale(1.06);
}

.pick-card:hover .pick-card-image {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.pick-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent, transparent);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.pick-card-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: none;
}

.pick-card-badge.dark {
    background: rgba(26, 26, 26, 0.9);
    color: var(--white);
}

.pick-card-badge.gray {
    background: rgba(107, 114, 128, 0.9);
    color: var(--white);
}

/* 넘버링 — 잡지 스타일 */
.pick-card-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    z-index: 3;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

/* 공법 라벨 */
.pick-card-method {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.pick-card-content {
    padding-right: 16px;
}

.pick-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
}

.pick-card-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pick-card-location {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.pick-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--brand-black);
    transition: color 0.2s ease;
    /* 1줄 제한 — 카드 높이 통일 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pick-card:hover .pick-card-title {
    color: var(--primary);
}

.pick-card-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   Filter Section
   ============================================= */
.filter-section {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.filter-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.filter-btn {
    flex-shrink: 0;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    border-radius: 2px;
    transition: all 0.2s ease;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
}

.filter-btn:hover {
    border-color: var(--gray-400);
    color: var(--brand-black);
}

.filter-btn.active {
    background: var(--brand-black);
    color: var(--white);
    border-color: var(--brand-black);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 32px 8px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-300);
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-black);
    transition: border-color 0.2s ease;
    outline: none;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-input:focus {
    border-bottom-color: var(--primary);
}

.search-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-box:focus-within .search-icon {
    color: var(--primary);
}

.search-icon:hover {
    color: var(--brand-black);
}

/* =============================================
   Main Content & Case Studies
   ============================================= */
.main-content {
    padding: 80px 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.case-studies {
    display: flex;
    flex-direction: column;
    gap: 128px;
}

.case-article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.case-article:hover {
    transform: translateY(-4px);
}

.case-info {
    display: flex;
    flex-direction: column;
}

.case-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-top: 2px solid var(--brand-black);
    padding-top: 24px;
}

.case-number {
    display: none;
}

.case-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: none;
}

.case-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-black);
    line-height: 1.2;
    margin-bottom: 24px;
    transition: color 0.2s ease;
    letter-spacing: -0.025em;
}

.case-article:hover .case-title {
    color: var(--primary);
}

.case-title-sub {
    display: none;
}

.case-quote {
    position: relative;
    padding-left: 24px;
    margin-bottom: 32px;
    border-left: 4px solid var(--secondary);
}

.case-quote p {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.6;
    font-style: italic;
    font-weight: 500;
}

.case-tags {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 700;
    margin-bottom: 32px;
}

.case-tag {
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: 2px;
    transition: background 0.2s ease;
    cursor: default;
}

.case-tag:hover {
    background: var(--gray-200);
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 4px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
}

.case-link:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.case-link .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.case-link:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.case-media {
    display: flex;
    flex-direction: column;
}

.case-image-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(229, 231, 235, 0.5);
    transition: all 0.7s ease;
    border-radius: 2px;
}

.case-article:hover .case-image-wrapper {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.case-article:hover .case-image {
    transform: scale(1.02);
}

.case-image-badge {
    position: absolute;
    bottom: 32px;
    padding: 12px 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.case-image-badge.right {
    right: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.case-image-badge.left {
    left: 32px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.case-image-badge span {
    font-size: 0.875rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.case-image-badge.right span {
    color: var(--brand-black);
}

.case-image-badge.left span {
    color: var(--white);
}

.case-details {
    display: none;
}

.detail-card {
    background: var(--white);
    padding: 24px;
    border-radius: 2px;
    border: 1px solid var(--gray-100);
    transition: border-color 0.2s ease;
}

.detail-card:hover {
    border-color: var(--gray-300);
}

.detail-card h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.detail-card p {
    color: var(--gray-500);
    line-height: 1.6;
    font-size: 0.875rem;
}
/* =============================================
   CTA Section
   ============================================= */
.cases-cta {
    position: relative;
    overflow: hidden;
    margin-top: 128px;
    background: var(--brand-black);
    color: var(--white);
}

.cases-cta .cta-glow-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: var(--primary);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    transform: translate(30%, -40%);
}

.cases-cta .cta-glow-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    transform: translate(-30%, 40%);
}

.cta-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 96px 32px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

.cta-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-badge {
    display: inline-block;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 32px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: fit-content;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--white);
}

.cta-desc {
    color: var(--gray-400);
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 400px;
}

.cta-desc span {
    color: var(--white);
    font-weight: 600;
}

.cta-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact-card.primary {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px -8px rgba(0, 51, 102, 0.5);
}

.contact-card.primary:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(0, 51, 102, 0.6);
}

.contact-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-card-inner > div {
    text-align: left;
}

.contact-card .material-symbols-outlined {
    font-size: 2rem;
    color: var(--secondary);
}

.contact-card.primary .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.9);
}

.contact-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-card-sub {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 400;
}

.contact-card.primary .contact-card-sub {
    color: rgba(255, 255, 255, 0.6);
}

.contact-card-arrow {
    color: var(--gray-500);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-arrow {
    color: var(--white);
    transform: translate(2px, -2px);
}

.contact-card.primary .contact-card-arrow {
    color: rgba(255, 255, 255, 0.5);
}

.contact-card.primary:hover .contact-card-arrow {
    color: var(--white);
    transform: translate(2px, -2px);
}

/* ── Responsive ── */
@media (min-width: 768px) {
    .cta-inner {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        padding: 120px 48px;
    }

    .cta-title {
        font-size: 3rem;
    }

    .cta-right {
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .cta-inner {
        padding: 128px 64px;
    }

    .cta-title {
        font-size: 3.25rem;
    }
}


/* =============================================
   No Results
   ============================================= */
.no-results {
    text-align: center;
    padding: 80px 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-black);
    margin-bottom: 8px;
}

.no-results p {
    color: var(--gray-500);
}

/* =============================================
   Responsive
   ============================================= */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: flex-end;
    }

    .hero-left {
        width: 66.666%;
    }

    .hero-right {
        display: flex;
        width: 33.333%;
        justify-content: flex-end;
    }

    .hero-title {
        font-size: 3rem;
    }

    /* Carousel: 3개 보임 */
    .pick-card-slide {
        width: 33.3333%;
        padding-right: 48px;
    }

    .filter-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .filter-buttons {
        order: 1;
    }

    .search-box {
        width: 320px;
        order: 2;
    }

    .case-article {
        grid-template-columns: repeat(12, 1fr);
        gap: 48px;
    }

    .case-info {
        grid-column: span 4;
        position: sticky;
        top: 100px;
    }

    .case-media {
        grid-column: span 8;
    }

    .case-article.reverse .case-info {
        order: 2;
    }

    .case-article.reverse .case-media {
        order: 1;
    }

    .case-title {
        font-size: 2.5rem !important;
    }

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

    .cta-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .case-title {
        font-size: 3rem;
    }
}

/* =============================================
   Mobile (767px 이하)
   ============================================= */
@media (max-width: 767px) {
    .editors-pick {
        display: none;
    }

    .case-details {
        display: none;
    }

    /* 모바일 순서: 텍스트 → 이미지 → 자세히보기 */
    .case-article {
        gap: 0;
    }

    .case-info {
        display: contents;
    }

    .case-header,
    .case-title,
    .case-quote,
    .case-tags {
        order: 1;
    }

    .case-media {
        order: 2;
    }

    .case-link {
        order: 3;
    }

    .case-link .material-symbols-outlined {
        display: none;
    }

    .hero-desc,
    .hero-label {
        display: none;
    }

    .hero {
        padding: 24px 16px 16px;
    }

    .hero-content {
        gap: 16px;
    }

    .main-content {
        padding: 24px 16px;
    }

    .case-article:first-child .case-header {
        display: none;
    }

    .case-link {
        display: none;
    }
}
