@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0066FF;
    --primary-hover: #0052CC;
    --navy: #002B49;
    --navy-dark: #001C30;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --bg-light: #F8FAFC;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
    --shadow-lg: 0 16px 36px rgba(15,23,42,0.12);
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --font-sans: 'Poppins', 'Noto Sans KR', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

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

.container {
    width: min(1200px, calc(100% - 64px)); /* 양옆 여백을 64px로 확대하여 더 편안하고 안정감 있는 배치 제공 */
    margin: 0 auto;
}

/* Header */
.header {
    height: 80px;
    background: #ffffff;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 16px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--slate-800);
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

/* Mobile Drawer & Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--slate-100);
}

.mobile-drawer-header .logo {
    font-size: 20px;
}

.mobile-drawer-header .logo img {
    height: 26px;
}

.mobile-close-btn {
    font-size: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    line-height: 1;
    padding: 0 4px;
}

.mobile-close-btn:hover {
    color: var(--slate-900);
}

.mobile-drawer-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.mobile-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.mobile-search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-light);
    outline: none;
}

.mobile-search-form input:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.mobile-search-form button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-search-form button:hover {
    background: var(--primary-hover);
}

.mobile-navlinks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-navlinks a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-700);
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-navlinks a:hover {
    background: var(--slate-100);
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 78%;
}

.logo {
    font-weight: 800;
    font-size: 26px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo img {
    height: 72px;
}

.navlinks {
    display: flex;
    gap: 36px;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-700);
}

.navlinks a:hover, .navlinks a.active {
    color: var(--primary);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding-left: 12px;
    border-left: 1px solid var(--slate-200);
}

.lang-toggle .lang-current {
    color: var(--slate-900);
}

.lang-toggle .lang-option {
    color: var(--slate-400);
    text-decoration: none;
}

.lang-toggle .lang-option:hover {
    color: var(--primary);
}

.lang-toggle .lang-disabled {
    color: var(--slate-300);
    cursor: default;
}

.lang-toggle .lang-sep {
    color: var(--slate-300);
}

.mobile-navlinks .lang-toggle-mobile {
    margin-top: 8px;
    padding-left: 0;
    padding-top: 12px;
    border-left: none;
    border-top: 1px solid var(--slate-200);
}

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

.search-mini {
    position: relative;
    display: flex;
    align-items: center;
}

.search {
    width: 240px;
    padding: 10px 18px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    background: var(--bg-light);
    font-size: 13px;
    outline: none;
    transition: all 0.25s ease-in-out;
}

.search:focus {
    width: 280px;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.login {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: clamp(8px, 0.6vw + 6.5px, 10px) clamp(14px, 1.6vw + 9px, 22px);
    font-weight: 700;
    font-size: clamp(12px, 0.35vw + 11px, 14px);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
}

.login:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 102, 255, 0.3);
}

/* Hero - ClipartKorea Style Wide Search & Branding */
.hero {
    background: linear-gradient(135deg, #021E33 0%, #002B49 50%, #0D3E5E 100%);
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,102,255,0.15) 0%, rgba(0,102,255,0) 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,102,255,0.12) 0%, rgba(0,102,255,0) 70%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.badge {
    display: inline-flex;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.3);
    color: #38BDF8;
    border-radius: 999px;
    padding: clamp(5px, 0.4vw + 4px, 6px) clamp(12px, 1.2vw + 8px, 16px);
    font-size: clamp(10px, 0.25vw + 9.3px, 12px);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

h1 {
    font-size: clamp(24px, 4vw + 14px, 46px);
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero p {
    font-size: clamp(12px, 0.8vw + 9.5px, 17px);
    color: #90A4AE;
    margin-bottom: 36px;
}

/* High-end ClipartKorea style integrated Search Bar */
.hero-search-box {
    background: #ffffff;
    padding: 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    max-width: 680px;
    margin: 0 auto 24px;
}

.hero-search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: clamp(9px, 0.8vw + 7px, 12px) clamp(14px, 2vw + 8px, 24px);
    font-size: clamp(13px, 0.6vw + 11px, 16px);
    border-radius: 999px;
    color: var(--slate-900);
}

.hero-search-box button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 999px;
    padding: clamp(9px, 0.8vw + 7px, 12px) clamp(16px, 3vw + 6px, 32px);
    font-size: clamp(13px, 0.6vw + 11px, 16px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hero-search-box button:hover {
    background: var(--primary-hover);
}

.popular-keywords {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.popular-keywords a {
    color: #38BDF8;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 999px;
}

.popular-keywords a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Brand Values / Benefits section */
.benefits {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.benefit-grid {
    background: #ffffff;
    border-radius: var(--border-radius-md);
    padding: clamp(18px, 2vw + 12px, 24px) clamp(18px, 3vw + 12px, 36px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-100);
}

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

.benefit i {
    font-style: normal;
    font-size: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--slate-100);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: bold;
}

.benefit strong {
    display: block;
    font-size: 15px;
    color: var(--slate-800);
}

.benefit span {
    font-size: 12px;
    color: var(--slate-500);
}

/* Sections */
.section {
    padding: 64px 0;
}

.title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    border-left: 5px solid var(--primary);
    padding-left: 14px;
}

.title-row h2 {
    font-size: clamp(15px, 1.8vw + 10px, 24px);
    font-weight: 700;
    color: var(--slate-900);
}

.more {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
}

.more:hover {
    text-decoration: underline;
}

/* Categories Grid */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease-in-out;
}

.category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category img {
    height: 60px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.category strong {
    display: block;
    font-size: 14px;
    color: var(--slate-800);
    font-weight: 600;
}

.category.active {
    background: var(--slate-100);
    border: 2px solid var(--primary) !important;
}

/* Card Components */
.cards {
    display: grid;
    /* auto-fill (not auto-fit) so a short result list keeps card-sized cards
       instead of stretching 1-2 items to fill the whole row */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card .thumb {
    height: 180px;
    background: var(--slate-100);
    position: relative;
    overflow: hidden;
}

.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .thumb img {
    transform: scale(1.05);
}

.free {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: clamp(13px, 0.4vw + 12px, 15px);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.4;
    margin-bottom: 8px;
    height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--slate-500);
    margin-top: 12px;
}

/* Blog Cards */
.blogcards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.blogcard {
    background: #ffffff;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.blogcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blogcard img {
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.blogbody {
    padding: 16px;
}

.blogbody strong {
    font-size: clamp(13px, 0.4vw + 12px, 15px);
    font-weight: 700;
    color: var(--slate-900);
    display: block;
    margin-bottom: 6px;
}

.blogbody p {
    font-size: 12px;
    color: var(--slate-500);
    line-height: 1.5;
}

/* ==========================================================================
   Blog Article Body (post.content rendered inside .blog-html-content)
   ========================================================================== */
.blog-html-content {
    color: var(--slate-800);
    font-size: clamp(14px, 0.3vw + 13.4px, 16px);
    line-height: 1.9;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.blog-html-content > *:first-child {
    margin-top: 0;
}

.blog-html-content h1,
.blog-html-content h2,
.blog-html-content h3,
.blog-html-content h4 {
    color: var(--slate-900);
    font-weight: 800;
    line-height: 1.4;
    margin: 40px 0 16px;
}

.blog-html-content h1 { font-size: clamp(20px, 1.6vw + 15px, 28px); }
.blog-html-content h2 {
    font-size: clamp(18px, 1vw + 14.5px, 22px);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--slate-100);
}
.blog-html-content h3 { font-size: clamp(16px, 0.5vw + 14.5px, 18px); }
.blog-html-content h4 { font-size: clamp(14px, 0.5vw + 12.5px, 16px); }

.blog-html-content p {
    margin: 0 0 20px;
}

.blog-html-content strong { color: var(--slate-900); font-weight: 700; }

.blog-html-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-html-content ul,
.blog-html-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.blog-html-content li {
    margin-bottom: 8px;
}

.blog-html-content li::marker {
    color: var(--primary);
}

.blog-html-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: var(--bg-light);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    color: var(--slate-700);
    font-style: italic;
}

.blog-html-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-html-content pre {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--slate-900);
    color: var(--slate-100);
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.blog-html-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.blog-html-content :not(pre) > code {
    background: var(--slate-100);
    color: var(--slate-800);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-html-content table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: clamp(12px, 0.3vw + 11.4px, 14px);
}

.blog-html-content th,
.blog-html-content td {
    border: 1px solid var(--slate-200);
    padding: clamp(8px, 1vw + 5px, 12px) clamp(8px, 1vw + 5px, 14px);
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
}

.blog-html-content th {
    background: var(--bg-light);
    color: var(--slate-900);
    font-weight: 700;
}

.blog-html-content tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.blog-html-content img {
    margin: 24px auto;
    border-radius: var(--border-radius-md);
}

.blog-html-content figure {
    margin: 24px 0;
}

.blog-html-content figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    color: var(--slate-500);
}

.blog-html-content hr {
    border: none;
    border-top: 1px solid var(--slate-200);
    margin: 32px 0;
}

/* Intro lead-in block */
.blog-html-content .post-intro {
    font-size: 17px;
    color: var(--slate-700);
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--slate-100);
}

/* FAQ section */
.blog-html-content .faq {
    margin-top: 40px;
}

.blog-html-content .faq-item {
    background: var(--bg-light);
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius-md);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.blog-html-content .faq-item p:last-child {
    margin-bottom: 0;
    color: var(--slate-600);
}

.blog-html-content .faq-question {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 8px;
}

/* Reference / source list box */
.blog-html-content .source-box {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--bg-light);
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    color: var(--slate-600);
}

.blog-html-content .source-box h2 {
    font-size: 16px;
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Footer (ClipartKorea Style Dark/Refined Navy) */
.footer {
    background: var(--navy-dark);
    color: #ffffff;
    padding: 64px 0 32px;
    border-top: 1px solid var(--navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94A3B8;
}

.footer a {
    display: block;
    color: #E2E8F0;
    font-size: 13px;
    margin: 10px 0;
}

.footer a:hover {
    color: var(--primary);
}

.copyright {
    font-size: 12px;
    color: var(--slate-400);
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Catalog / Category Page Layout */
.cat-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #064066 100%);
    color: white;
    padding: 50px 0;
}

.cat-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-hero h1 {
    font-size: clamp(22px, 2.6vw + 15px, 38px);
    margin: 0 0 10px;
    font-weight: 800;
}

.cat-hero p {
    color: #94A3B8;
    margin: 0;
    font-size: clamp(13px, 0.3vw + 12.4px, 15px);
}

.panel {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

/* Pattern Detail Page Layout (pd-*) */
.pd-section {
    padding: 40px 0 64px;
}

/* pd-grid holds 3 direct children on desktop: pd-hero (full-width banner) and
   two independently-tall columns (pd-col-1: image+download, pd-col-2:
   info/desc/tags/video). Each column is its own flex stack so one column's
   height never forces empty space into the other (a shared grid-row would).
   On mobile the columns are unwrapped via display:contents so every block
   becomes a direct grid item again and can be freely reordered. */
.pd-grid {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.pd-hero {
    grid-column: 1 / -1;
}

.pd-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.pd-block {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 28px;
    min-width: 0; /* allow grid/flex items to shrink below their content's intrinsic width */
}

.pd-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0D3E5E 100%);
    border: none;
    padding: 32px 28px;
}

.pd-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.pd-image { text-align: center; }

@media (min-width: 769px) {
    .pd-hero {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        padding: 50px 0;
    }
    .pd-hero-inner {
        width: min(1200px, calc(100% - 64px));
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pd-col {
        display: contents; /* unwrap the column so its children rejoin pd-grid and can be reordered individually */
    }
    .pd-hero { order: 1; }
    .pd-image { order: 2; }
    .pd-info { order: 3; }
    .pd-download { order: 4; }
    .pd-video { order: 5; }
    .pd-desc { order: 6; }
    .pd-tags { order: 7; }
    .pd-block {
        padding: 20px;
        border-radius: 10px;
    }
}

.filters {
    border-right: 1px solid var(--slate-200);
    padding-right: 24px;
}

.filters h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--slate-900);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--slate-600);
    font-weight: 600;
}

.pillrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11px;
    color: var(--slate-600);
    font-weight: 500;
    background: #ffffff;
}

.pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.favorite-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    background: #ffffff;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .15s;
    white-space: nowrap;
}

.favorite-btn:hover {
    border-color: #F43F5E;
    color: #F43F5E;
}

.favorite-btn:active {
    transform: scale(0.96);
}

.favorite-btn .favorite-icon {
    font-size: 16px;
    line-height: 1;
}

.favorite-btn.active {
    background: #FFF1F2;
    border-color: #F43F5E;
    color: #E11D48;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 16px);
    background: var(--slate-900);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.check {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: var(--slate-600);
    margin: 10px 0;
}

.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.catalog-head strong {
    font-size: 15px;
    color: var(--slate-800);
}

.sort {
    display: flex;
    gap: 10px;
}

.sort button, .sort select {
    border: 1px solid var(--slate-200);
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--slate-700);
    outline: none;
}

.sort select:focus {
    border-color: var(--primary);
}

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.catalog .card .thumb {
    height: 160px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 36px 0 0;
    font-size: 13px;
    font-weight: 600;
}

.pagination a, .pagination span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    background: #ffffff;
    color: var(--slate-700);
}

.pagination .active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Admin Bar style */
.admin-bar {
    background-color: var(--navy-dark);
    color: #fff;
    padding: 10px 24px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-bar a {
    color: #38BDF8;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600;
}

.admin-bar a:hover {
    color: white;
}

/* Detail Pages, Wait page, Login, Upload etc generic container/forms styling */
.form-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    max-width: 540px;
    margin: 40px auto;
}

.form-title {
    font-size: clamp(16px, 0.8vw + 14px, 20px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--slate-900);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--slate-700);
}

.form-control {
    width: 100%;
    padding: clamp(9px, 0.6vw + 7.5px, 11px) clamp(12px, 1.2vw + 8px, 16px);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: var(--bg-light);
    font-size: clamp(12px, 0.3vw + 11.4px, 14px);
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-btn {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: clamp(10px, 0.6vw + 8.5px, 12px);
    font-size: clamp(13px, 0.35vw + 12px, 15px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.form-btn:hover {
    background: var(--primary-hover);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .navlinks {
        gap: 20px;
    }
    .panel {
        grid-template-columns: 1fr;
    }
    .filters {
        border-right: none;
        border-bottom: 1px solid var(--slate-200);
        padding-right: 0;
        padding-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .navlinks {
        display: none;
    }
    .hamburger-btn {
        display: flex; /* 반응형 햄버거 버튼 활성화 */
    }
}

@media (max-width: 480px) {
    .search-mini {
        display: none;
    }
}

/* Info Pages Common Layout & Tabs (ClipartKorea Inspired) */
.info-page-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
}

.info-header h1 {
    font-size: clamp(21px, 2vw + 15px, 30px);
    color: var(--slate-900);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.info-header p {
    font-size: clamp(13px, 0.3vw + 12.4px, 15px);
    color: var(--slate-500);
}

/* --- (1) CS Center (고객센터) Theme --- */
.cs-theme .info-header h1 {
    color: var(--primary);
}

.cs-theme .info-tab-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 35px;
}

.cs-theme .info-tab-item {
    background-color: #ffffff;
    padding: 18px 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-600);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.cs-theme .info-tab-item:hover {
    background-color: #EFF6FF;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cs-theme .info-tab-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, #0052CC 100%);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

.cs-theme .info-tab-item .tab-icon {
    font-size: 22px;
}

/* --- (2) Policy & Terms (약관/정책) Theme --- */
.policy-theme .info-header h1 {
    color: var(--navy-dark);
}

.policy-theme .info-tab-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background-color: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
}

.policy-theme .info-tab-item {
    background-color: var(--bg-light);
    padding: 16px 10px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--slate-600);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    border-right: 1px solid var(--slate-200);
}

.policy-theme .info-tab-item:last-child {
    border-right: none;
}

.policy-theme .info-tab-item:hover {
    background-color: #ffffff;
    color: var(--navy-dark);
}

.policy-theme .info-tab-item.active {
    background-color: #ffffff;
    color: var(--navy-dark);
    font-weight: 800;
    border-bottom-color: var(--navy-dark);
}

.policy-theme .info-tab-item .tab-icon {
    font-size: 16px;
}

/* Policy Theme Markdown Custom Override */
.policy-theme .rendered-markdown h1 {
    border-bottom: 2px solid var(--navy-dark);
}

.policy-theme .rendered-markdown h2 {
    border-left: 4px solid var(--navy-dark);
}

/* Content Card styling */
.info-content-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

/* Markdown Content Typography Styling */
.rendered-markdown {
    line-height: 1.85;
    color: var(--slate-700);
    font-size: 14.8px;
}

.rendered-markdown h1 {
    color: var(--slate-900);
    font-size: 26px;
    font-weight: 800;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 14px;
    margin-top: 0;
    margin-bottom: 28px;
}

.rendered-markdown h2 {
    color: var(--slate-900);
    font-size: 19px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 18px;
    border-left: 4px solid var(--primary);
    padding-left: 14px;
}

.rendered-markdown h3 {
    color: var(--slate-800);
    font-size: 16.5px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 14px;
}

.rendered-markdown p {
    margin-bottom: 18px;
    color: var(--slate-600);
}

.rendered-markdown strong {
    color: var(--slate-900);
}

.rendered-markdown ul, .rendered-markdown ol {
    margin: 18px 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.rendered-markdown li {
    color: var(--slate-600);
}

.rendered-markdown blockquote {
    background-color: var(--slate-50);
    border-left: 4px solid var(--slate-300);
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0 10px 10px 0;
    color: var(--slate-600);
    font-style: italic;
}

.rendered-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14.5px;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--slate-200);
}

.rendered-markdown th {
    background-color: var(--slate-100);
    color: var(--slate-900);
    font-weight: 700;
    border-bottom: 2px solid var(--slate-200);
    padding: 14px 18px;
    text-align: left;
}

.rendered-markdown td {
    border-bottom: 1px solid var(--slate-100);
    padding: 14px 18px;
    color: var(--slate-600);
    background-color: #ffffff;
}

.rendered-markdown tr:hover td {
    background-color: var(--slate-50);
}

/* Home Button */
.info-footer-btn-container {
    margin-top: 45px;
    text-align: center;
}

.info-home-btn {
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    background-color: var(--primary);
    color: #ffffff !important;
    display: inline-block;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.info-home-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.3);
}

/* Responsive Styles for Info Navigation */
@media (max-width: 768px) {
    .cs-theme .info-tab-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .policy-theme .info-tab-nav {
        grid-template-columns: repeat(3, 1fr);
    }
    .info-content-card {
        padding: 30px 22px;
    }
}

@media (max-width: 480px) {
    .policy-theme .info-tab-nav {
        grid-template-columns: 1fr;
    }
    .policy-theme .info-tab-nav .info-tab-item {
        border-right: none;
        border-bottom: 1px solid var(--slate-200);
    }
}
