:root {
    --primary-color: #4285F4;
    --red-color: #EA4335;
    --yellow-color: #FBBC05;
    --green-color: #34A853;
    --bg-color: #f8faff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #202124;
    --text-muted: #5f6368;
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Decorations */
.background-blob {
    position: fixed;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(50px);
}

.background-blob-2 {
    position: fixed;
    bottom: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(234, 67, 53, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

/* Header & Search */
header {
    padding: 40px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 255, 0.8);
    backdrop-filter: blur(20px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text .accent {
    background: linear-gradient(135deg, var(--primary-color), var(--green-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-container {
    flex: 1;
    display: flex;
    gap: 12px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 5px;
    border-radius: 100px;
    margin: 0 20px;
}

.nav-btn {
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.search-wrapper {
    flex: 1;
    position: relative;
    background: white;
    border-radius: 100px;
    padding: 5px 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.sort-container,
.view-controls {
    background: white;
    border-radius: 100px;
    padding: 5px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.view-controls {
    padding: 5px 10px;
    gap: 5px;
}

.view-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition);
}

.view-btn:hover {
    background: #f0f4ff;
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

#sortSelect {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 5px;
}

.search-wrapper:focus-within {
    box-shadow: 0 10px 40px rgba(66, 133, 244, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    margin-right: 12px;
}

#searchInput {
    border: none;
    outline: none;
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
    background: transparent;
    font-family: inherit;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 30px;
    opacity: 0.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(142, 117, 255, 0.3);
    transition: var(--transition);
    background: linear-gradient(135deg, #8E75FF, #4285F4);
    color: white;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(142, 117, 255, 0.4);
    filter: brightness(1.1);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    background: #f0f4ff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 20px;
    transition: var(--transition);
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Services Grid */
/* Services Grid & List View */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
    transition: all 0.5s ease;
}

.services-grid.list-view {
    grid-template-columns: 1fr;
}


.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--card-color, var(--primary-color));
    opacity: 0.8;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-md);
    background: white;
}

/* Services Grid.list-view refinements */
.services-grid.list-view .service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 25px;
    gap: 20px;
    border-radius: var(--radius-md);
}

.services-grid.list-view .card-icon {
    margin-bottom: 0;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    min-width: 44px;
}

.services-grid.list-view .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.services-grid.list-view .card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.services-grid.list-view .card-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.services-grid.list-view .card-top-info {
    order: 2;
    margin-bottom: 0;
    flex-direction: row;
    gap: 8px;
}

.services-grid.list-view .card-meta,
.services-grid.list-view .card-link {
    display: none;
}

.hidden {
    display: none !important;
}

.service-card:hover .card-icon {
    transform: rotate(10deg);
}

.card-top-info {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    background: #f0f4ff;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.card-scope {
    font-size: 0.65rem;
    font-weight: 700;
    background: #e1f5fe;
    color: #039be5;
    padding: 3px 8px;
    border-radius: 4px;
}

.card-pricing {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-pricing.free {
    background: #e6f4ea;
    color: #1e8e3e;
}

.card-pricing.paid {
    background: #fef7e0;
    color: #b06000;
}

.card-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 15px;
}

.meta-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.card-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.card-link svg {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    transition: var(--transition);
}

.service-card:hover .card-link svg {
    transform: translateX(4px);
}

/* Mind Map View */
.mindmap-container {
    padding: 60px 0 120px;
    overflow-x: auto;
    min-height: 600px;
    display: flex;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.mindmap-container::-webkit-scrollbar {
    height: 6px;
}

.mindmap-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.mindmap-container.hidden {
    display: none !important;
}

.mindmap-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px;
    gap: 120px;
    margin: 0 auto;
    min-width: max-content;
}

.mindmap-root {
    background: var(--text-main);
    color: white;
    padding: 25px 50px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.6rem;
    white-space: nowrap;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.mindmap-branches {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.mindmap-branch-item {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    animation: fadeInRight 0.5s ease forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-node {
    background: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--branch-color, var(--primary-color));
    white-space: nowrap;
    z-index: 2;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}

.category-node:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--branch-color);
    color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-nodes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
}

.service-node {
    background: white;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-node:hover {
    transform: translateX(15px) scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--branch-color);
}

.service-node span {
    font-size: 1.2rem;
}

/* Connectors */
.mindmap-branch-item::before {
    content: '';
    position: absolute;
    left: -120px;
    top: 50%;
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, #ccc, var(--branch-color));
    z-index: 1;
}

.service-nodes::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    width: 60px;
    height: 3px;
    background: var(--branch-color);
    opacity: 0.5;
    z-index: 1;
}

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

.no-results.hidden {
    display: none !important;
}

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

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

.disclaimer-text {
    font-size: 0.85rem;
    margin-bottom: 12px;
    opacity: 0.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .search-container {
        flex: 0 0 500px;
    }
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.blog-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.blog-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-author {
    font-size: 0.85rem;
    font-weight: 600;
}

.read-more {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition);
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow-md);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f4ff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--red-color);
    color: white;
}

#modalBody img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
}

#modalBody h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.modal-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.tag-badge {
    background: #f0f4ff;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Related Services in Modal */
.modal-related-services {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px dashed rgba(0, 0, 0, 0.05);
}

.modal-related-services h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.related-service-mini-card {
    background: #f8faff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.related-service-mini-card:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.mini-card-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.mini-card-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.mini-card-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer Styles */
footer {
    padding: 60px 0 40px;
    background: #f0f4ff;
    margin-top: 100px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

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

.disclaimer-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

footer p:last-child {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Policy Content Styles */
.policy-content {
    text-align: left;
}

.policy-content h3 {
    margin: 30px 0 15px;
    font-size: 1.3rem;
    color: var(--text-main);
}

.policy-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .search-container {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .view-controls {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .mindmap-wrapper {
        gap: 60px;
    }

    .mindmap-branch-item::before {
        left: -60px;
        width: 60px;
    }
}