:root {
    /* Toss-like Colors */
    --color-primary: #3182F6;
    --color-primary-dark: #1b64da;
    --color-bg: #FFFFFF;
    --color-bg-gray: #F9FAFB;
    --color-text: #191F28;
    --color-text-sub: #8B95A1;
    --color-border: #E5E8EB;

    /* Spacing & Radius */
    --radius-card: 24px;
    --radius-btn: 12px;
    --container-width: 1100px;

    /* Shadows */
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.08);

    /* Fonts */
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    word-break: keep-all;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

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

ul {
    list-style: none;
}

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

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

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

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background 0.3s;
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-sub);
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
    font-weight: 600;
}

.btn-primary-sm {
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary-sm:hover {
    background: var(--color-primary-dark);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.text-primary {
    color: var(--color-primary);
}

.hero-desc {
    font-size: 20px;
    color: var(--color-text-sub);
    margin-bottom: 40px;
}

/* Section Header Shared */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-sub);
}

/* Feature/Why Us Section */
.section-features {
    padding: 100px 0;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 16px;
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* Stats Section */
.section-stats {
    background-color: var(--color-bg-gray);
    padding: 80px 0;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 16px;
    color: var(--color-text-sub);
    font-weight: 600;
}

/* Process Section */
.section-process {
    padding: 100px 0;
}

.process-step {
    position: relative;
    padding: 30px;
    background: white;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Banner CTA */
.section-banner {
    background: var(--color-primary);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.section-banner h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.btn-white {
    background: white;
    color: var(--color-primary);
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    display: inline-block;
}

/* Cards & Services (Existing refined) */
.services-quick {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 100px;
}

.card {
    background: white;
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    border-color: rgba(49, 130, 246, 0.1);
}

.icon-box {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* Info Section (Existing refined) */
.info-section {
    padding: 0 0 100px;
}

.info-card {
    height: 100%;
}

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

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.badge {
    background: var(--color-bg-gray);
    color: var(--color-text-sub);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.btn-text {
    font-size: 14px;
    color: var(--color-text-sub);
}

.list-schedule li,
.list-news li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.list-schedule li:last-child,
.list-news li:last-child {
    border-bottom: none;
}

.list-schedule li {
    display: flex;
    align-items: center;
}

.list-schedule .date {
    font-weight: 700;
    color: var(--color-primary);
    width: 50px;
}

.list-news a:hover {
    text-decoration: underline;
}

.map-placeholder {
    background: var(--color-bg-gray);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.map-placeholder p {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-text-sub);
}

.btn-kakao {
    display: inline-block;
    background: #FEE500;
    color: #191919;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

/* Inquiry Section (Existing refined) */
.inquiry-section {
    padding: 100px 0 100px;
}

.inquiry-card {
    display: flex;
    align-items: center;
    padding: 60px;
    background: var(--color-bg-gray);
    box-shadow: none;
}

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

.inquiry-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.inquiry-form {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

.full-width {
    grid-column: span 2;
}

.form-actions {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

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

/* Footer */
.footer {
    background: var(--color-bg-gray);
    padding: 60px 0;
    color: var(--color-text-sub);
    font-size: 14px;
}

.footer-info h3 {
    margin-bottom: 16px;
    color: var(--color-text);
}

.footer-info p {
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Responsive */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 40px;
    }

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

    .inquiry-card {
        flex-direction: column;
        padding: 40px;
    }

    .inquiry-content {
        margin-bottom: 32px;
        padding-right: 0;
        text-align: center;
    }

    .inquiry-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        height: 56px;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background: white;
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid var(--color-border);
    }

    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .nav-link {
        font-size: 16px;
        padding: 12px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--color-bg-gray);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .btn-primary-sm {
        margin-top: 12px;
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .mobile-menu-btn {
        display: block;
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--color-text);
        margin: 6px auto;
        transition: 0.3s;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero {
        padding: 110px 0 80px;
        /* Increased bottom padding from 60px to 80px */
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero .btn-primary-sm {
        margin-bottom: 20px;
        /* Extra margin for safe spacing */
        display: inline-block;
    }

    .form-group {
        grid-column: span 2;
    }

    .form-actions {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .btn-primary {
        width: 100%;
    }

    .section-stats {
        padding: 40px 0;
    }

    .stat-item {
        margin-bottom: 32px;
    }

    .stat-item:last-child {
        margin-bottom: 0;
    }

    .feature-item {
        padding: 20px;
        border: 1px solid var(--color-bg-gray);
        border-radius: 16px;
    }

    .kakao-chat-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .kakao-chat-btn::before {
        display: none;
        /* Hide tooltip on mobile */
    }
}

/* Sub-page Specifics */
.sub-hero {
    padding: 120px 0 60px;
    background: var(--color-bg-gray);
    text-align: center;
}

.sub-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.sub-hero p {
    font-size: 18px;
    color: var(--color-text-sub);
}

.page-content {
    padding: 80px 0;
}

/* Calendar Styles (Shared) */
.calendar-container,
.mini-calendar {
    background: #fff;
    border-radius: 20px;
    /* padding: 20px; - controlled by parent in mini */
}

.mini-calendar {
    padding: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.calendar-nav-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f0f0f0;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.calendar-cell {
    background: #fff;
    min-height: 100px;
    padding: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mini-calendar .calendar-cell {
    min-height: 60px;
    /* Smaller for mini */
    padding: 4px;
}

.calendar-header-cell {
    background: #f9f9f9;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-sub);
}

.mini-calendar .calendar-header-cell {
    padding: 6px;
    font-size: 12px;
}

.date-number {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    font-size: 14px;
}

.mini-calendar .date-number {
    font-size: 12px;
}

.today {
    background-color: #f0f7ff;
}

.today .date-number {
    color: var(--color-primary);
}

.event-tag {
    display: block;
    background: var(--color-primary-light);
    background: rgba(49, 130, 246, 0.1);
    color: var(--color-primary);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.mini-calendar .event-tag {
    font-size: 10px;
    padding: 1px 4px;
}

/* Event Dot for very small screens or alternative view */
.event-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    display: none;
    /* Hidden by default */
    margin: 2px auto 0;
}

@media (max-width: 768px) {
    .calendar-cell {
        min-height: 80px;
    }
}

/* KakaoTalk Floating Button */
.kakao-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
}

.kakao-chat-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kakao-chat-btn:hover img {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Tooltip for the button */
.kakao-chat-btn::before {
    content: '카톡 상담';
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    white-space: nowrap;
}

.kakao-chat-btn:hover::before {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@media (max-width: 768px) {
    .kakao-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        /* Increased from 50px */
        height: 60px;
        /* Increased from 50px */
        min-width: 60px;
        min-height: 60px;
    }

    .kakao-chat-btn img {
        width: 32px;
        /* Increased from 26px */
        height: 32px;
        object-fit: contain;
    }
}

/* Base Modal Styles (All screens, but typically triggered on mobile) */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.calendar-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.calendar-modal-content {
    background: white;
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease-out;
}

.calendar-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-gray);
}

.calendar-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.calendar-modal-close {
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-sub);
    cursor: pointer;
    padding: 0 8px;
}

.calendar-modal-body {
    padding: 20px;
    min-height: 100px;
}

.modal-event-item {
    padding: 12px;
    background: #f0f7ff;
    border-radius: 12px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.modal-event-item:before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-right: 10px;
}

.modal-no-events {
    text-align: center;
    color: var(--color-text-sub);
    padding: 20px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

/* Default hidden on desktop */
.event-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: none;
}

.mobile-event-list {
    display: none;
}

/* Mobile Small Screen Optimization */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    /* Calendar Mobile Optimization */
    .event-tag {
        display: none;
    }

    .event-dot {
        display: block;
        margin-top: 4px;
        margin-left: auto;
        margin-right: auto;
    }

    .calendar-cell {
        min-height: 50px;
        padding: 4px;
        align-items: center;
        justify-content: flex-start;
    }

    .date-number {
        font-size: 13px;
        margin-bottom: 0;
    }

    .mobile-event-list {
        display: block;
        margin-top: 20px;
        border-top: 1px solid var(--color-border);
        padding-top: 20px;
    }

    .mobile-event-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-bg-gray);
        font-size: 14px;
    }

    .mobile-event-item:last-child {
        border-bottom: none;
    }

    .event-date {
        font-weight: 700;
        color: var(--color-primary);
    }

    .event-name {
        color: var(--color-text);
    }

    .mobile-event-empty {
        text-align: center;
        color: var(--color-text-sub);
        font-size: 14px;
        padding: 20px 0;
    }

    .mini-calendar .calendar-cell {
        min-height: 40px;
    }
}