/* 
   SeoBy Premium Design System 
   Theme: Illuminating the Future
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Colors */
    --bg-dark: #f6f8fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;

    --primary: #007aff;
    --primary-dark: #005bbf;
    --primary-dim: rgba(0, 122, 255, 0.1);
    --primary-glow: rgba(0, 122, 255, 0.22);

    --text-main: #172033;
    --text-primary: #172033;
    --text-light: #243044;
    --text-muted: #64748b;
    --text: #243044;
    --surface: #ffffff;

    --border-light: rgba(15, 23, 42, 0.12);
    --border-active: rgba(0, 122, 255, 0.35);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 견적 버튼 반응형 - 데스크탑에서 모바일용 숨김 */
.mobile-quote-btn {
    display: none !important;
}

/* 모바일에서 데스크탑용 숨김, 모바일용 표시 */
@media (max-width: 768px) {
    .desktop-quote-btn {
        display: none !important;
    }

    .nav-links.active .mobile-quote-btn {
        display: inline-flex !important;
    }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, #172033 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 모바일에서 그라디언트 텍스트 - 단색으로 변경 */
@media (max-width: 768px) {
    .text-gradient {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: var(--text-main);
        background-clip: unset;
        color: var(--text-main);
    }
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px var(--primary-dim);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 28px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

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

.nav-links a.nav-news-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
    flex: 0 0 auto;
}

.mobile-header-actions {
    display: none;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-muted);
    box-shadow: none;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.header-action-btn:hover {
    background: var(--primary-dim);
    border-color: var(--border-active);
    color: var(--primary);
}

.header-action-btn i {
    font-size: 11px;
}

/* 뉴스/정보 새 글 알림 'N' 뱃지 */
.news-new-badge {
    position: relative;
    top: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #e53935 !important;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
    letter-spacing: 0;
    box-sizing: border-box;
    transform: none !important;
    z-index: 2;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-compact {
    height: auto;
    min-height: 300px;
    padding-bottom: 48px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #eef6ff 0%, #f8fafc 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 80px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Philosophy Section */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.philosophy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: var(--bg-card-hover);
}

.card-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 24px;
}

.philosophy-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.philosophy-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 30px;
    width: 100%;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    group: product;
    min-width: 0;
    width: 100%;
}

.product-card:hover {
    border-color: var(--border-active);
    transform: translateY(-5px);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 30px;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.spec-item {
    font-size: 12px;
    color: var(--text-muted);
}

.spec-item strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
}

textarea.form-control {
    height: 120px;
    resize: none;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
    background: #ffffff;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 14px;
    max-width: 100%;
}

.company-info {
    max-width: 100%;
    min-width: 0;
}

.company-info p {
    margin: 0 0 8px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.company-info p:last-child {
    margin-bottom: 0;
}

.company-info a {
    overflow-wrap: anywhere;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 60px;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu needed */
    .hero h1 {
        font-size: 40px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        justify-items: stretch;
    }

    .product-card {
        max-width: 100%;
    }

    .product-image {
        height: clamp(190px, 58vw, 250px);
    }

    .product-info {
        padding: 24px;
    }

    footer {
        padding: 56px 0 32px;
    }

    footer .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-bottom {
        padding-top: 28px;
        font-size: 13px;
    }
}

/* Product Detail Page */
.product-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.detail-image {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-info h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.detail-category {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.detail-description {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.detail-spec-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.detail-spec-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.detail-spec-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.detail-section {
    margin-bottom: 60px;
}

.detail-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
}

.feature-icon {
    color: var(--primary);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.spec-table th {}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 60px;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu needed */
    .hero h1 {
        font-size: 40px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Product Detail Page */
.product-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.detail-image {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-info h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.detail-category {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.detail-description {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.detail-spec-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.detail-spec-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.detail-spec-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.detail-section {
    margin-bottom: 60px;
}

.detail-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
}

.feature-icon {
    color: var(--primary);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.spec-table th {
    color: var(--text-muted);
    width: 30%;
    font-weight: 500;
}

.spec-table td {
    color: var(--text-main);
}


/* About Page Styles */

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-light);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 2;
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-light);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-content h3 {
    color: var(--text-main);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Vision Grid */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vision-item {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
}

.vision-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.vision-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 24px;
}

.vision-text h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.vision-text p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Location */
.location-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    color: var(--primary);
    font-size: 24px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.info-item p {
    font-size: 16px;
    color: var(--text-main);
}

/* Responsive for About Page */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-year {
        left: 20px;
        transform: none;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
    }

    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.spec-table th {
    color: var(--text-muted);
    width: 30%;
    font-weight: 500;
}

.spec-table td {
    color: var(--text-main);
}


/* About Page Styles */

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-light);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 2;
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-light);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-content h3 {
    color: var(--text-main);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Vision Grid */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vision-item {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
}

.vision-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.vision-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 24px;
}

.vision-text h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.vision-text p {
    color: var(--text-muted);
    font-size: 15px;
    word-break: keep-all;
}

/* Location */
.location-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    color: var(--primary);
    font-size: 24px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.info-item p {
    font-size: 16px;
    color: var(--text-main);
    word-break: keep-all;
}

/* Responsive for About Page */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-year {
        left: 20px;
        transform: none;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
    }

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

    .location-container {
        grid-template-columns: 1fr;
    }
}

/* Admin Sidebar Styles */
:root {
    --admin-sidebar-width: 250px;
}

.admin-primary-tabs {
    position: fixed;
    display: flex;
    align-items: center;
    top: 0;
    right: 0;
    left: var(--admin-sidebar-width);
    z-index: 900;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
}

/*
 * The primary navigation is only a fallback while the admin workspace boots.
 * Keep it out of the first paint so a direct admin URL does not briefly show
 * this bar before admin_primary_tabs.js moves the page into the workspace.
 */
.admin-primary-tabs.admin-primary-tabs--booting {
    display: none !important;
}

.admin-primary-tabs::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    content: '';
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

.admin-primary-tabs.is-navigating::after {
    opacity: 1;
    animation: admin-tab-navigation-progress 1.6s ease-out forwards;
}

@keyframes admin-tab-navigation-progress {
    0% { transform: scaleX(0); }
    55% { transform: scaleX(0.72); }
    100% { transform: scaleX(0.94); }
}

.admin-primary-tabs__scroller {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    min-width: 0;
    padding: 8px 24px 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.admin-primary-tabs__scroller::-webkit-scrollbar {
    display: none;
}

.admin-primary-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    border-radius: 10px 10px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-primary-tab i {
    font-size: 12px;
}

.admin-primary-tab:hover {
    background: #f8fafc;
    color: var(--primary);
}

.admin-primary-tab.active {
    background: #eef5ff;
    border-color: #d7e6fb;
    border-bottom-color: var(--primary);
    color: #075dcc;
}

.admin-primary-tabs.is-navigating .admin-primary-tab.active {
    cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
    .admin-primary-tabs.is-navigating::after {
        animation: none;
        transform: scaleX(0.94);
    }
}

.admin-primary-tab:focus-visible {
    z-index: 1;
    outline: 3px solid rgba(0, 122, 255, 0.24);
    outline-offset: -3px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.admin-global-search-trigger,
.admin-sidebar-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dbe3ed;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.admin-global-search-trigger {
    flex: 0 0 auto;
    min-height: 38px;
    margin: 0 20px 0 8px;
    padding: 0 10px;
    border-radius: 9px;
}

.admin-global-search-trigger:hover,
.admin-sidebar-search:hover {
    border-color: #93baf1;
    color: #075dcc;
}

.admin-global-search-trigger kbd,
.admin-sidebar-search kbd,
.admin-global-search__input-wrap kbd,
.admin-global-search__footer kbd {
    min-width: 20px;
    padding: 2px 5px;
    border: 1px solid #dbe3ed;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #f8fafc;
    color: #64748b;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.admin-sidebar-search {
    width: 100%;
    min-height: 40px;
    margin: -14px 0 18px;
    padding: 0 11px;
    border-radius: 9px;
}

.admin-sidebar-search span {
    flex: 1;
    text-align: left;
}

body.admin-search-open {
    overflow: hidden;
}

.admin-global-search[hidden] {
    display: none;
}

.admin-global-search {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    align-items: start;
    justify-items: center;
    padding: min(14vh, 120px) 20px 40px;
}

.admin-global-search__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(5px);
    cursor: default;
}

.admin-global-search__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: min(680px, 76vh);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.admin-global-search__input-wrap {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid #e7ecf2;
    color: #64748b;
}

.admin-global-search__input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 16px;
}

.admin-global-search__body {
    min-height: 160px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
}

.admin-global-search__empty {
    display: grid;
    min-height: 140px;
    place-items: center;
    padding: 24px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.admin-global-search__group + .admin-global-search__group {
    margin-top: 8px;
}

.admin-global-search__group-title {
    padding: 8px 10px 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.admin-global-search__result {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #172033;
}

.admin-global-search__result:hover,
.admin-global-search__result.is-active {
    background: #eef5ff;
    color: #075dcc;
}

.admin-global-search__result-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
}

.admin-global-search__result-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.admin-global-search__result-meta {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-global-search__result-arrow {
    color: #94a3b8;
    font-size: 11px;
}

.admin-global-search__footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    min-height: 40px;
    padding: 9px 14px;
    border-top: 1px solid #e7ecf2;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
}

.admin-global-search__footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

html:not(.admin-tab-frame) .admin-layout > .admin-content {
    padding-top: 96px !important;
}

html.admin-tab-frame .admin-primary-tabs,
html.admin-tab-frame .admin-sidebar,
html.admin-tab-frame .sidebar-toggle,
html.admin-tab-frame .sidebar-overlay {
    display: none !important;
}

html.admin-tab-frame .admin-layout {
    display: block !important;
    min-height: 100vh !important;
}

html.admin-tab-frame .admin-layout > .admin-content {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh;
}

.admin-dockview-shell {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--admin-sidebar-width);
    z-index: 900;
    overflow: hidden;
    background: #f6f8fb;
    --dv-tabs-and-actions-container-height: 62px;
    --dv-tabs-and-actions-container-font-size: 13px;
    --dv-tabs-and-actions-container-background-color: #f5f7fb;
    --dv-activegroup-visiblepanel-tab-background-color: transparent;
    --dv-activegroup-hiddenpanel-tab-background-color: transparent;
    --dv-inactivegroup-visiblepanel-tab-background-color: transparent;
    --dv-inactivegroup-hiddenpanel-tab-background-color: transparent;
    --dv-activegroup-visiblepanel-tab-color: #172033;
    --dv-activegroup-hiddenpanel-tab-color: var(--text-muted);
    --dv-inactivegroup-visiblepanel-tab-color: #075dcc;
    --dv-inactivegroup-hiddenpanel-tab-color: var(--text-muted);
    --dv-tab-divider-color: #e4eaf2;
    --dv-separator-border: #e4eaf2;
    --dv-group-view-background-color: #f6f8fb;
    --dv-icon-hover-background-color: rgba(0, 122, 255, 0.1);
    --dv-tab-close-icon-size: 14px;
}

/* The workspace class is rendered on <html> so Chrome never gets a scrollable
   outer document to restore before Dockview initializes. */
html.admin-workspace-document,
html.admin-workspace-document body,
html.admin-dockview-active,
html.admin-dockview-active body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

html.admin-workspace-document body,
html.admin-dockview-active body {
    position: fixed;
    inset: 0;
}

html.admin-dockview-active .admin-primary-tabs {
    display: none !important;
}

html.admin-dockview-active .admin-workspace-layout > .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 910;
    overflow-y: auto;
}

.admin-dockview-shell > .dv-dockview {
    width: 100%;
    height: 100%;
}

.admin-dockview-shell .dv-tabs-and-actions-container {
    position: relative;
    top: 0;
    height: var(--dv-tabs-and-actions-container-height) !important;
    min-height: var(--dv-tabs-and-actions-container-height) !important;
    max-height: var(--dv-tabs-and-actions-container-height);
    flex: 0 0 var(--dv-tabs-and-actions-container-height);
    overflow: hidden;
    border-bottom: 1px solid #dfe5ee;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.98));
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.07);
}

.admin-dockview-shell .dv-tabs-container {
    align-items: center;
    gap: 8px;
    height: var(--dv-tabs-and-actions-container-height);
    min-height: var(--dv-tabs-and-actions-container-height);
    padding: 9px 12px;
    box-sizing: border-box;
}

.admin-dockview-shell .dv-tab {
    min-width: 138px;
    height: 43px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: transparent !important;
    color: inherit !important;
    font-weight: 700;
    transition: transform 0.18s ease;
    cursor: grab;
}

.admin-dockview-shell .dv-tab:active {
    cursor: grabbing;
}

.admin-dockview-shell .dv-tabs-container .dv-tab::before {
    display: none !important;
}

.admin-dockview-shell .dv-tab.dv-active-tab {
    z-index: 2;
    transform: translateY(-1px);
}

.admin-dockview-shell .dv-tab:focus-within::after,
.admin-dockview-shell .dv-tab:focus::after {
    border-radius: 13px;
    outline: 3px solid rgba(59, 130, 246, 0.22) !important;
    outline-offset: 1px;
}

.admin-workspace-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 100%;
    padding: 0 8px 0 10px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid hsl(var(--admin-view-hue) 42% 90%);
    border-radius: 12px;
    background: hsl(var(--admin-view-hue) 50% 98%);
    color: hsl(var(--admin-view-hue) 30% 34%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

.admin-workspace-tab::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 20px;
    border-radius: 0 6px 6px 0;
    background: hsl(var(--admin-view-hue) 72% 46%);
    content: '';
    opacity: 0.5;
    transform: translateY(-50%);
    transition: height 0.18s ease, opacity 0.18s ease;
}

.dv-tab.dv-inactive-tab .admin-workspace-tab:hover {
    border-color: hsl(var(--admin-view-hue) 55% 83%);
    background: hsl(var(--admin-view-hue) 72% 96%);
    color: hsl(var(--admin-view-hue) 48% 28%);
    box-shadow: 0 5px 13px hsl(var(--admin-view-hue) 45% 36% / 0.1);
}

.dv-tab.dv-active-tab .admin-workspace-tab {
    border-color: hsl(var(--admin-view-hue) 62% 76%);
    background: linear-gradient(
        135deg,
        hsl(var(--admin-view-hue) 92% 97%),
        hsl(var(--admin-view-hue) 82% 91%)
    );
    color: hsl(var(--admin-view-hue) 62% 27%);
    box-shadow:
        0 7px 16px hsl(var(--admin-view-hue) 54% 35% / 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dv-tab.dv-active-tab .admin-workspace-tab::before {
    height: 27px;
    opacity: 1;
}

.admin-workspace-tab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: hsl(var(--admin-view-hue) 66% 93%);
    color: hsl(var(--admin-view-hue) 64% 43%);
    font-size: 12px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.dv-tab.dv-active-tab .admin-workspace-tab__icon {
    background: hsl(var(--admin-view-hue) 72% 84%);
    color: hsl(var(--admin-view-hue) 72% 32%);
}

.admin-workspace-tab__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 12.5px;
    letter-spacing: -0.02em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dv-tab.dv-active-tab .admin-workspace-tab__title {
    font-weight: 800;
}

.admin-workspace-tab__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    font-size: 11px;
    opacity: 0;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.dv-tab.dv-active-tab .admin-workspace-tab__close,
.dv-tab:hover .admin-workspace-tab__close,
.admin-workspace-tab__close:focus-visible {
    opacity: 0.7;
}

.admin-workspace-tab__close:hover {
    background: #fee2e2;
    color: #dc2626;
    opacity: 1;
}

.admin-workspace-tab__close:focus-visible {
    outline: 2px solid hsl(var(--admin-view-hue) 72% 45% / 0.4);
    outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .admin-dockview-shell .dv-tab,
    .admin-workspace-tab,
    .admin-workspace-tab::before,
    .admin-workspace-tab__icon,
    .admin-workspace-tab__close {
        transition: none;
    }
}

.admin-dockview-panel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f6f8fb;
}

.admin-dockview-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #f6f8fb;
}

.admin-dockview-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(246, 248, 251, 0.92);
    color: var(--text-muted);
    font-size: 14px;
}

.admin-dockview-panel.is-loading .admin-dockview-loading {
    display: flex;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f6f8fb;
}

.admin-sidebar {
    position: relative;
    flex: 0 0 var(--admin-sidebar-width);
    width: var(--admin-sidebar-width) !important;
    background: var(--bg-card);
    border-right: 1px solid var(--border-light);
    padding: 20px;
}

.admin-sidebar-resizer {
    position: absolute;
    top: 0;
    right: -5px;
    bottom: 0;
    z-index: 20;
    width: 10px;
    cursor: col-resize;
    touch-action: none;
}

.admin-sidebar-resizer::after {
    position: absolute;
    top: 0;
    right: 4px;
    bottom: 0;
    width: 2px;
    background: transparent;
    content: '';
    transition: background-color 0.15s ease;
}

.admin-sidebar-resizer:hover::after,
.admin-sidebar-resizer:focus-visible::after,
.admin-sidebar-resizer.is-resizing::after {
    background: var(--primary);
}

body.is-resizing-sidebar,
body.is-resizing-sidebar * {
    cursor: col-resize !important;
    user-select: none !important;
}

.admin-content {
    flex: 1;
    padding: 40px;
}

.admin-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
}

.admin-nav-group-label {
    display: block;
    padding: 14px 16px 8px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    opacity: 0.9;
}

.admin-nav a.admin-nav-sub {
    padding-left: 32px;
    font-size: 13px;
}

.admin-nav a.admin-nav-sub-child {
    padding-left: 48px;
    font-size: 12px;
}

/* 관리자 사이드바 트리 편집 */
.admin-nav-editor {
    margin-bottom: 10px;
}

.admin-nav-edit-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(0, 122, 255, 0.07);
    color: var(--primary);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.admin-nav-edit-button[hidden],
.admin-nav-edit-hint[hidden] {
    display: none;
}

.admin-nav-edit-actions {
    display: grid;
    grid-template-columns: 34px 34px 1fr 1fr;
    gap: 6px;
}

.admin-nav-edit-actions[hidden] {
    display: none;
}

.admin-nav-edit-actions button {
    min-height: 34px;
    padding: 6px;
    border: 1px solid var(--border-light);
    border-radius: 7px;
    background: var(--bg-card);
    color: var(--text-muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.admin-nav-edit-actions button.is-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.admin-nav-edit-actions button:disabled,
.admin-nav-edit-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.admin-nav-edit-hint {
    margin: 7px 2px 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.admin-nav-edit-status {
    margin: 7px 2px 0;
    color: var(--primary);
    font-size: 11px;
    line-height: 1.45;
}

.admin-nav-edit-status[hidden] {
    display: none;
}

.admin-nav-edit-status.is-error {
    color: #d92d20;
}

.admin-nav-tree,
.admin-nav-children {
    display: flex;
    flex-direction: column;
}

.admin-nav-tree {
    min-height: 4px;
    margin: 0;
}

.admin-nav-children {
    min-height: 0;
}

.admin-nav-node {
    position: relative;
}

.admin-nav-node > .admin-nav-link-row {
    display: flex;
    align-items: center;
}

.admin-nav-link-row > a {
    flex: 1;
    min-width: 0;
    margin-bottom: 3px;
}

.admin-nav-node.is-category > .admin-nav-category-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.admin-nav-category-row .admin-nav-group-label {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.admin-nav-category-toggle,
.admin-nav-link-toggle {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.admin-nav-link-toggle {
    display: none;
}

.admin-nav-node.is-link.has-children > .admin-nav-link-row .admin-nav-link-toggle {
    display: block;
}

.admin-nav-category-delete {
    display: none;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ff5a5f;
    cursor: pointer;
}

.admin-nav-tree.is-editing .admin-nav-category-delete {
    display: block;
}

.admin-nav-node.is-category.is-collapsed > .admin-nav-category-row .admin-nav-category-toggle,
.admin-nav-node.is-link.is-collapsed > .admin-nav-link-row .admin-nav-link-toggle {
    transform: rotate(-90deg);
}

.admin-nav-node.is-collapsed > .admin-nav-children {
    display: none;
}

.admin-nav-node > .admin-nav-children {
    display: flex;
}

.admin-nav-node.has-children > .admin-nav-children,
.admin-nav-node.is-category > .admin-nav-children,
.admin-nav-children.is-drop-target {
    margin-left: 13px;
    padding-left: 7px;
    border-left: 1px solid rgba(0, 122, 255, 0.2);
}

.admin-nav-tree > .admin-nav-node.is-category > .admin-nav-children {
    margin-left: 0;
}

.admin-nav-tree .admin-nav-node > .admin-nav-link-row > a.admin-nav-sub,
.admin-nav-tree .admin-nav-node > .admin-nav-link-row > a.admin-nav-sub-child {
    padding-left: 16px;
}

.admin-nav-tree.is-editing .admin-nav-node {
    margin: 5px 0;
}

.admin-nav-drag-handle {
    display: none;
    flex: 0 0 28px;
    width: 28px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
}

.admin-nav-tree.is-editing .admin-nav-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.admin-nav-tree.is-editing .admin-nav-drag-handle:active {
    cursor: grabbing;
}

.admin-nav-tree.is-editing .admin-nav-link-row,
.admin-nav-tree.is-editing .admin-nav-category-row {
    border: 1px dashed rgba(0, 122, 255, 0.35);
    border-radius: 9px;
    min-height: 48px;
    padding: 4px 3px;
}

.admin-nav-tree.is-editing .admin-nav-category-row,
.admin-nav-tree.is-editing .admin-nav-link-row {
    background: rgba(0, 122, 255, 0.04);
}

.admin-nav-tree.is-editing .admin-nav-category-name,
.admin-nav-tree.is-editing .admin-nav-link-name {
    display: inline-block;
    min-width: 45px;
    padding: 4px 5px;
    border-radius: 4px;
    outline: none;
    cursor: text;
}

.admin-nav-tree.is-editing .admin-nav-category-name:focus,
.admin-nav-tree.is-editing .admin-nav-link-name:focus {
    background: rgba(0, 122, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.18);
}

.admin-nav-tree.is-editing .admin-nav-children {
    gap: 4px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.admin-nav-tree.is-editing .admin-nav-node.is-category > .admin-nav-children,
.admin-nav-tree.is-editing .admin-nav-children.is-drop-target {
    min-height: 18px;
    border-radius: 5px;
}

.admin-nav-tree.is-editing .admin-nav-node.is-category > .admin-nav-children:empty::after,
.admin-nav-tree.is-editing .admin-nav-children.is-drop-target:empty::after {
    content: '여기에 놓기';
    display: block;
    padding: 5px 8px;
    color: var(--text-muted);
    font-size: 10px;
    border: 1px dashed rgba(0, 122, 255, 0.3);
    border-radius: 5px;
}

.admin-nav-node.is-dragging {
    opacity: 0.35;
}

.admin-nav-node.is-drop-before::before,
.admin-nav-node.is-drop-after::after {
    content: '';
    position: absolute;
    z-index: 2;
    right: 2px;
    left: 2px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    pointer-events: none;
}

.admin-nav-node.is-drop-before::before {
    top: -5px;
}

.admin-nav-node.is-drop-after::after {
    bottom: -5px;
}

.admin-nav-tree.is-drop-target,
.admin-nav-children.is-drop-target {
    background: rgba(0, 122, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.3);
}

/* 모바일 햄버거 버튼 - 기본 숨김 */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--primary);
    font-size: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
}

/* 모바일 반응형 - 관리자 레이아웃 */
@media (max-width: 768px) {
    .admin-primary-tabs {
        left: 0;
        height: 60px;
    }

    .admin-primary-tabs__scroller {
        padding: 6px 12px 0 64px;
        scroll-padding-left: 64px;
    }

    .admin-global-search-trigger {
        min-width: 38px;
        margin: 0 8px 0 0;
        padding: 0 10px;
    }

    .admin-global-search-trigger span,
    .admin-global-search-trigger kbd {
        display: none;
    }

    .admin-global-search {
        align-items: start;
        padding: 72px 10px 10px;
    }

    .admin-global-search__panel {
        max-height: calc(100vh - 82px);
        max-height: calc(100dvh - 82px);
        border-radius: 13px;
    }

    .admin-global-search__footer {
        justify-content: center;
    }

    .admin-primary-tab {
        min-height: 46px;
        padding: 0 14px;
        font-size: 12px;
    }

    .admin-dockview-shell {
        top: 0;
        left: 0;
        --dv-tabs-and-actions-container-height: 58px;
    }

    .admin-dockview-shell .dv-tabs-container {
        gap: 6px;
        padding: 8px 10px 8px 62px;
    }

    .admin-dockview-shell .dv-tab {
        min-width: 122px;
        height: 41px;
        padding: 0;
        font-size: 12px;
    }

    .admin-workspace-tab {
        gap: 7px;
        padding-right: 6px;
    }

    .admin-workspace-tab__icon {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
    }

    .admin-layout {
        flex-direction: column !important;
    }

    .sidebar-toggle {
        display: block !important;
    }

    .sidebar-close {
        display: block !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.14);
        z-index: 1001;
    }

    .sidebar-overlay.open {
        display: block !important;
    }

    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 260px !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        z-index: 1002 !important;
        transition: left 0.3s ease !important;
        padding: 16px !important;
        padding-bottom: 32px !important;
    }

    .admin-sidebar.open {
        left: 0 !important;
    }

    .admin-sidebar-resizer {
        display: none !important;
    }

    .admin-sidebar .admin-nav a {
        padding: 9px 14px !important;
        margin-bottom: 2px !important;
        font-size: 14px !important;
    }

    .admin-sidebar .admin-nav a.admin-nav-sub {
        padding-left: 28px !important;
    }

    .admin-sidebar .admin-nav a.admin-nav-sub-child {
        padding-left: 42px !important;
        font-size: 12px !important;
    }

    .admin-sidebar .admin-nav-group-label {
        padding: 8px 14px 4px !important;
        margin-top: 4px !important;
        font-size: 15px !important;
    }

    .admin-content {
        padding: 20px !important;
        width: 100% !important;
    }

    html:not(.admin-tab-frame) .admin-content {
        padding-top: 84px !important;
    }
}

/* Global Light Theme Overrides */
html {
    color-scheme: light;
}

body,
.admin-layout,
main,
.section,
.contact-section {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
}

body {
    background-image: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
label,
th,
td,
p,
li,
span,
strong {
    color: inherit;
}

.section[style*="background"],
section[style*="background: #f6f8fb"],
section[style*="background: #f6f8fb"],
section[style*="background: linear-gradient"] {
    background: var(--bg-dark) !important;
}

header,
.admin-sidebar,
.form-card,
.philosophy-card,
.product-card,
.detail-spec-item,
.contact-item,
.stat-card,
.chart-card,
.table-card,
.filter-card,
.content-card,
.settings-card,
.keyword-card,
.candidate-card,
.resource-card,
.news-card,
.modal-content,
.card,
.ag-root-wrapper,
.ag-popup,
.ag-menu,
.ag-panel,
.ag-theme-seoby {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border-color: var(--border-light) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.admin-content,
.dashboard-grid,
.content-grid,
.analytics-section {
    color: var(--text-main) !important;
}

.admin-nav a,
.footer-links a,
.nav-links a,
.sidebar-close,
.btn-icon {
    color: var(--text-muted) !important;
}

.admin-nav a:hover,
.admin-nav a.active,
.footer-links a:hover,
.btn-icon:hover {
    background: var(--primary-dim) !important;
    color: var(--primary) !important;
}

/* 상단 메뉴는 배경 박스 없이 글자색만 변경 */
.nav-links > a:hover,
.nav-links > a.active,
.nav-links > a:focus,
.nav-links > a:focus-visible,
.nav-links > a:active {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--primary) !important;
    box-shadow: none !important;
    outline: none;
}

.nav-links > a::selection {
    background: transparent;
    color: var(--primary);
}

.admin-nav-group-label,
.section-subtitle,
.product-category,
.detail-category,
.form-group label,
.detail-spec-label,
.spec-item,
.footer-bottom,
.footer-brand p,
.product-info p,
.detail-description,
.feature-item {
    color: var(--text-muted) !important;
}

.btn,
button,
input,
select,
textarea,
.form-control,
.search-box input {
    color: var(--text-main);
}

.btn-primary,
button[type="submit"],
.primary-btn,
.save-btn,
.add-btn,
.action-btn.primary {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 6px 18px rgba(0, 122, 255, 0.22) !important;
}

.btn-outline,
.secondary-btn,
.cancel-btn,
.action-btn,
.filter-btn,
.tab-btn,
.category-filter,
.btn-icon {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border-color: var(--border-light) !important;
}

input,
select,
textarea,
.form-control,
.search-box input,
.ag-input-field-input,
.ag-picker-field-wrapper,
.ag-text-field-input,
.ag-select .ag-picker-field-wrapper {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border-color: var(--border-light) !important;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
}

table,
.spec-table,
.data-table,
.admin-table {
    background: #ffffff !important;
    color: var(--text-main) !important;
}

th,
.spec-table th,
.data-table th,
.admin-table th {
    background: #f1f5f9 !important;
    color: var(--text-main) !important;
}

td,
.spec-table td,
.data-table td,
.admin-table td {
    color: var(--text-main) !important;
    border-color: var(--border-light) !important;
}

.badge,
.status-badge,
.tag,
.chip {
    background: #eaf4ff !important;
    color: #0758a8 !important;
    border-color: rgba(0, 122, 255, 0.2) !important;
}

.sidebar-overlay,
.modal,
.modal-overlay,
.preview-modal,
[style*="background: rgba(241, 245, 249, 0.82)"],
[style*="background: rgba(241, 245, 249, 0.9)"],
[style*="background: rgba(241, 245, 249, 0.78)"] {
    background: rgba(241, 245, 249, 0.78) !important;
}

[style*="background: rgba(15, 23, 42, 0.06)"],
[style*="background: rgba(15, 23, 42, 0.05)"],
[style*="background: rgba(15, 23, 42, 0.03)"],
[style*="background: rgba(15, 23, 42, 0.04)"],
[style*="background: rgba(15,23,42,0.04)"],
[style*="background: rgba(15,23,42,0.06)"] {
    background: #ffffff !important;
}

[style*="color: #000"],
[style*="color:#000"],
[style*="color: #f6f8fb"],
[style*="color: #04161a"] {
    color: var(--text-main) !important;
}

.ag-theme-seoby,
.ag-theme-alpine,
.ag-theme-alpine {
    --ag-background-color: #ffffff !important;
    --ag-foreground-color: var(--text-main) !important;
    --ag-secondary-foreground-color: var(--text-muted) !important;
    --ag-header-background-color: #f1f5f9 !important;
    --ag-header-foreground-color: var(--text-main) !important;
    --ag-data-color: var(--text-main) !important;
    --ag-odd-row-background-color: #f8fafc !important;
    --ag-row-hover-color: #eaf4ff !important;
    --ag-selected-row-background-color: #dceeff !important;
    --ag-border-color: var(--border-light) !important;
    --ag-row-border-color: var(--border-light) !important;
    --ag-input-background-color: #ffffff !important;
    --ag-input-border-color: var(--border-light) !important;
    --ag-accent-color: var(--primary) !important;
}

/* 관리자 사이드바: 메뉴 깊이를 색으로도 구분한다. */
.admin-sidebar .admin-nav-tree > .admin-nav-node {
    --admin-nav-level-color: #1d4ed8;
    --admin-nav-level-font-size: 13.5px;
    --admin-nav-level-height: 36px;
    --admin-nav-level-weight: 700;
}

.admin-sidebar .admin-nav-tree > .admin-nav-node > .admin-nav-children > .admin-nav-node {
    --admin-nav-level-color: #15803d;
    --admin-nav-level-font-size: 12.5px;
    --admin-nav-level-height: 33px;
    --admin-nav-level-weight: 650;
}

.admin-sidebar .admin-nav-tree > .admin-nav-node > .admin-nav-children > .admin-nav-node > .admin-nav-children .admin-nav-node {
    --admin-nav-level-color: #b45309;
    --admin-nav-level-font-size: 11.5px;
    --admin-nav-level-height: 30px;
    --admin-nav-level-weight: 550;
}

.admin-sidebar .admin-nav-node > .admin-nav-link-row > a,
.admin-sidebar .admin-nav-node > .admin-nav-category-row > .admin-nav-group-label,
.admin-sidebar .admin-nav-node > .admin-nav-link-row > .admin-nav-link-toggle,
.admin-sidebar .admin-nav-node > .admin-nav-category-row > .admin-nav-category-toggle {
    color: var(--admin-nav-level-color) !important;
    font-size: var(--admin-nav-level-font-size) !important;
    font-weight: var(--admin-nav-level-weight);
    opacity: 1;
}

.admin-sidebar .admin-nav-node > .admin-nav-link-row > a,
.admin-sidebar .admin-nav-node > .admin-nav-category-row > .admin-nav-group-label {
    display: flex !important;
    align-items: center;
    min-width: 0;
    min-height: var(--admin-nav-level-height);
    padding: 5px 10px !important;
    margin-bottom: 2px;
    box-sizing: border-box;
    font-size: var(--admin-nav-level-font-size) !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar .admin-nav-link-name,
.admin-sidebar .admin-nav-category-name,
.admin-sidebar .admin-nav a[data-nav-id] > span:first-child {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 같은 단계는 자식 유무와 관계없이 글자 시작 위치를 맞춘다. */
.admin-sidebar .admin-nav-tree .admin-nav-link-toggle {
    display: block;
    visibility: hidden;
}

.admin-sidebar .admin-nav-tree .admin-nav-node.is-link.has-children > .admin-nav-link-row > .admin-nav-link-toggle {
    visibility: visible;
}

/* 단계가 하나 깊어질 때마다 동일하게 22px씩 들여쓴다. */
.admin-sidebar .admin-nav-tree .admin-nav-node > .admin-nav-children,
.admin-sidebar .admin-nav-tree > .admin-nav-node.is-category > .admin-nav-children {
    margin-left: 14px !important;
    padding-left: 8px !important;
}

/* 트리 스크립트가 적용되기 전에도 같은 단계 색을 유지한다. */
.admin-sidebar .admin-nav > a {
    color: #1d4ed8 !important;
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px !important;
    box-sizing: border-box;
    font-size: 13.5px !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar .admin-nav > a[data-nav-fixed] {
    padding-left: 38px !important;
}

.admin-sidebar .admin-nav > a.admin-nav-sub {
    color: #15803d !important;
    min-height: 33px;
    padding-left: 32px !important;
    font-size: 12.5px !important;
}

.admin-sidebar .admin-nav > a.admin-nav-sub-child {
    color: #b45309 !important;
    min-height: 30px;
    padding-left: 54px !important;
    font-size: 11.5px !important;
}

.admin-sidebar .admin-nav a[data-nav-id="energy-certifications"] {
    letter-spacing: -0.15px;
    white-space: nowrap;
}

.quote-request-alert-badge {
    flex: 0 0 auto;
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.quote-request-alert-badge[hidden] {
    display: none !important;
}

.quote-request-alert-badge.is-alerting {
    animation: quote-request-alert-pulse 2s ease-in-out infinite;
}

@keyframes quote-request-alert-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
    50% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.04); }
}

/* 활성·호버 메뉴는 단계색보다 동작 상태가 우선 보이게 한다. */
.admin-sidebar .admin-nav a:hover,
.admin-sidebar .admin-nav a.active {
    background: #f3e8ff !important;
    color: #7e22ce !important;
}
