/* ==========================================
   에이블세무회계 (ABLE TAX) - Hometax Portal style Design System
   ========================================== */

/* 1. 디자인 변수 정의 (프리미엄 딥 다크 테마 & 메디컬 액센트) */
:root {
    /* Premium Deep Black Palette */
    --bg-main: #050506;            /* 순수 프리미엄 딥 블랙 */
    --bg-card: #0D0E11;            /* 카드 및 위젯 (다크 차콜 블랙) */
    --bg-section-alt: #08090C;     /* 교차 섹션용 슬레이트 딥 블랙 */
    --bg-footer: #030304;          /* 푸터용 최심연 블랙 */
    
    --text-primary: #F8FAFC;       /* 주 텍스트 (피로도가 전혀 없는 실버 화이트) */
    --text-secondary: #94A3B8;     /* 보조 텍스트 (쿨 슬레이트 그레이) */
    --text-muted: #64748B;          /* 비활성/설명 텍스트 */
    
    /* Medical Premium Colors - Dark Mode Optimized */
    --hometax-blue: #2563EB;        /* 메디컬 신뢰 블루 */
    --hometax-blue-light: #0E1629;  /* 연한 블루 배경 (딥 슬레이트 블루) */
    --hometax-blue-hover: #3B82F6;  /* 호버 시 더 선명한 블루 */
    --hometax-teal: #10B981;        /* 청정 위생 세이지 에메랄드 (치과/한의원 특화) */
    --hometax-teal-light: #061A13;  /* 세이지 에메랄드 배경 영역 */
    --hometax-orange: #EF4444;      /* 포인트 코랄 레드 (성실신고/오류 소명 경고용) */
    --hometax-orange-light: #1E0F10;/* 경고 오렌지/레드 배경 영역 */
    
    /* Borders & Shadows - Matte Black Optimized */
    --border-color: #1E293B;        /* 미세한 쿨 차콜 보더 */
    --border-color-light: #0F172A;  /* 초미세 차콜 보더 */
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.85);
    --blue-glow: 0 0 25px rgba(37, 99, 235, 0.2);
    --teal-glow: 0 0 25px rgba(16, 185, 129, 0.2);
    
    /* Typography (Softer, modern premium Korean webfonts) */
    --font-heading: 'NanumSquareNeo', 'Spoqa Han Sans Neo', 'Plus Jakarta Sans', 'Outfit', 'Pretendard', sans-serif;
    --font-body: 'Spoqa Han Sans Neo', 'NanumSquareNeo', 'Pretendard', 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. 초기화 및 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    overflow-wrap: break-word; /* 자연스러운 단어 줄바꿈 보장 */
}

li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* 자연스러운 줄바꿈 강제 주입 */
h1, h2, h3, h4, h5, h6, p, span, a, li, strong, td, th {
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
}

/* 3. 공통 레이아웃 및 헬퍼 클래스 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
    position: relative;
}

.section-padding-large {
    padding: 110px 0;
    position: relative;
}

.bg-white-color {
    background-color: var(--bg-section-alt);
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h2 {
    font-size: 2.3rem;
    line-height: 1.35;
    margin-bottom: 16px;
    font-weight: 800;
}

h2 span.blue-highlight {
    color: var(--hometax-blue);
}

h2 span.orange-highlight {
    color: var(--hometax-orange);
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-header.text-center {
    text-align: center;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hometax-blue);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: inline-block;
    background-color: var(--hometax-blue-light);
    padding: 4px 12px;
    border-radius: 4px;
}

.section-desc {
    max-width: 700px;
    margin: 8px auto 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Corporate Card Base */
.corporate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-medium);
}

.corporate-card:hover {
    transform: translateY(-4px);
    border-color: var(--hometax-blue);
    box-shadow: var(--card-shadow-hover), var(--blue-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 26px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    border: none;
}

.btn-lg {
    padding: 14px 34px;
    font-size: 1.05rem;
    border-radius: 8px;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--hometax-blue);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 75, 141, 0.15);
}

.btn-primary:hover {
    background-color: var(--hometax-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 75, 141, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--hometax-blue);
    border: 1.5px solid var(--hometax-blue);
}

.btn-outline:hover {
    background: var(--hometax-blue-light);
    transform: translateY(-1px);
}

.btn-orange {
    background-color: var(--hometax-orange);
    color: #ffffff;
}

.btn-orange:hover {
    background-color: #d35400;
    transform: translateY(-1px);
}

.btn-text-link {
    color: var(--hometax-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text-link:hover {
    color: var(--hometax-teal);
    text-decoration: underline;
}

/* ==========================================
   4. Header & Navigation Styles
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 105; /* High enough to stay above the backdrop overlay (100) and nav drawer (101) */
    transition: all var(--transition-medium);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Utility Top Bar (홈택스 시그니처) */
.utility-bar {
    background: var(--bg-footer);
    border-bottom: 1px solid var(--border-color-light);
    padding: 6px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.utility-left span {
    color: var(--hometax-blue);
    font-weight: 700;
}

.utility-right {
    display: flex;
    gap: 14px;
}

.utility-right a:hover {
    color: var(--hometax-blue);
    text-decoration: underline;
}

/* Header Container */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px; /* Reduced from 16px to make header thinner */
}

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

.header-logo {
    height: 34px; /* Reduced from 48px to simplify design */
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition-fast);
}

.logo-area:hover .header-logo {
    opacity: 0.8;
}

/* Mock Search Bar (홈택스 포털 검색창 오마주) */
.header-search-mock {
    flex-grow: 0.4;
    max-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1.5px solid var(--hometax-blue);
    border-radius: 20px;
    padding: 4px 14px;
}

.search-mock-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 100%;
}

.search-mock-btn {
    background: transparent;
    border: none;
    color: var(--hometax-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Navigation Menu */
.nav-menu > ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 4px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--hometax-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--hometax-blue);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu (Hover Dropdown - 스크롤 다운 애니메이션) */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-caret {
    transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 160px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 110;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(6px);
}

.dropdown-menu li {
    width: 100%;
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--hometax-blue-light);
    color: var(--hometax-blue);
}

.dropdown-menu a::after {
    display: none; /* 드롭다운 서브 링크 아래 바 표시 안 함 */
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 102;
    padding: 6px;
    height: 38px;
    width: 38px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 101;
    display: flex;
    flex-direction: column;
    padding: 120px 30px 40px;
    transition: transform var(--transition-medium);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    border-left: 1px solid var(--border-color-light);
}

.mobile-nav.open {
    transform: translateX(0);
}

/* Glassmorphism Mobile Nav Backdrop Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 30, 0.65); /* Rich dark metal tinted overlay */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100; /* Behind drawer (101) but above page content */
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.mobile-nav-link:hover {
    color: var(--hometax-blue);
    padding-left: 6px;
}

/* ==========================================
   5. Hero Section (Hometax Portal Layout)
   ========================================== */
.hero-section {
    background: var(--bg-main);
    height: 100vh; /* Lock height to full screen viewport */
    min-height: 650px; /* Safety check for short viewports */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 90px; /* Reduced from 150px to pull content up */
    padding-bottom: 20px; /* Reduced from 50px */
    border-bottom: 1px solid var(--border-color-light);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: flex-start; /* Aligned both columns to the top line */
    gap: 40px; /* Reduced gap slightly for wider column workspace */
}

.hero-badge {
    background: var(--hometax-blue-light);
    border: 1px solid rgba(0, 75, 141, 0.2);
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 0.85rem;
    color: var(--hometax-blue);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px; /* Reduced from 20px */
}

.hero-title {
    font-size: 2.65rem; /* Reduced from 3.2rem to fit single page */
    line-height: 1.25;
    margin-bottom: 14px; /* Reduced from 20px */
    font-weight: 800;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 0.98rem; /* Reduced from 1.1rem */
    line-height: 1.6;
    margin-bottom: 22px; /* Reduced from 32px */
    max-width: 600px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px; /* Reduced from 40px */
}

.hero-ratings {
    display: flex;
    align-items: center;
    gap: 28px;
    border-top: 1px dashed var(--border-color);
    padding-top: 16px; /* Reduced from 24px */
}

.rating-item {
    display: flex;
    flex-direction: column;
}

.rating-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--hometax-blue);
}

.rating-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Hero Right Side Portal Login Mock Card */
.hero-visual {
    display: flex;
    justify-content: flex-end; /* Aligned silver card to the right edge to match top header button */
    position: relative;
    width: 100%;
}

/* Medical monitor grid background behind the login card */
.hero-visual::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
}

.ecg-heartbeat-box {
    position: absolute;
    width: 170%; /* Expanded width for a much larger presence */
    height: 150%; /* Extended height */
    top: -25%;
    left: -35%;
    pointer-events: none;
    z-index: 1;
}

.ecg-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.75)) drop-shadow(0 0 5px rgba(16, 185, 129, 0.45));
}

.ecg-line {
    fill: none;
    stroke: url(#ecg-glow);
    stroke-width: 6.5; /* Thicker line for premium visibility */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: ecg-sweep 3s linear infinite; /* Slightly faster sweep for energy */
}

@keyframes ecg-sweep {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}


.portal-login-card {
    width: 100%;
    max-width: 340px; /* Reduced from 350px for elegance */
    height: 400px; /* Locked fixed height to prevent size-changing when switching tabs */
    padding: 20px 16px; /* Tighter padding for compaction */
    border: 1px solid rgba(148, 163, 184, 0.4); /* Thinner border */
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.86)), url('./silver_plate_bg.jpg'); /* Blended light-silver overlay for extreme text contrast */
    background-size: cover;
    background-position: center;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2; /* Render on top of heartbeat svg */
    border-radius: 16px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out items evenly */
}

.portal-card-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    background: rgba(15, 23, 42, 0.05); /* Subtle dark capsule container */
    border-radius: 8px;
    padding: 3px;
}

.portal-card-header {
    border-bottom: 1.5px solid rgba(51, 65, 85, 0.15); /* Softer, thinner metal divider */
    padding-bottom: 6px; /* Reduced from 16px */
    margin-bottom: 8px; /* Reduced from 24px */
}

.portal-card-title {
    font-size: 1.02rem; /* Reduced from 1.2rem */
    font-weight: 900;
    color: #0d0e12; /* Deep matte black */
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.03em;
}

.portal-card-subtitle {
    font-size: 0.74rem; /* Reduced from 0.82rem */
    color: #475569; /* Slate grey */
    margin-top: 4px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0.5px 0.5px 0px rgba(255, 255, 255, 0.6);
}

.portal-input-mock {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #94a3b8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start; /* Align left with fixed gap to prevent overlapping */
    align-items: center;
    gap: 12px;
    color: #0f172a; /* Dark charcoal text */
    box-shadow: 
        0 2px 4px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.portal-input-mock .mock-label {
    white-space: nowrap !important; /* Prevent text wrapping in badges */
    flex-shrink: 0 !important; /* Force badges to never shrink */
    display: inline-block;
    text-align: center;
}

.portal-input-mock span:last-child {
    font-size: 0.78rem;
    line-height: 1.35;
    word-break: keep-all;
    text-align: left;
}

.portal-status-bullet {
    background: rgba(185, 28, 28, 0.06);
    border: 1px solid rgba(185, 28, 28, 0.18);
    border-radius: 8px;
    padding: 8px 12px; /* Reduced from 12px 16px */
    font-size: 0.76rem; /* Reduced from 0.82rem */
    color: #991b1b;
    display: flex;
    gap: 8px;
    margin-top: 12px; /* Reduced from 22px */
    line-height: 1.45;
    font-weight: 700;
}

.portal-status-bullet svg {
    flex-shrink: 0;
}

.portal-login-btn {
    background: #0f172a;
    border: 1px solid #0f172a;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-weight: 900;
    letter-spacing: -0.01em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 12px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.portal-login-btn:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(15, 23, 42, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ==========================================
   6. '자주찾는 세무 메뉴' 대시보드 섹션
   ========================================== */
.dashboard-section {
    background: var(--bg-section-alt);
    border-bottom: 1px solid var(--border-color-light);
    padding: 50px 0;
}

.dashboard-title-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-left: 4px solid var(--hometax-blue);
    padding-left: 12px;
}

.dashboard-title-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.dashboard-title-box h3 span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 8px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.dashboard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-circle-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: var(--hometax-blue-light);
    border: 1px solid rgba(0, 75, 141, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hometax-blue);
    margin-bottom: 10px;
    transition: all var(--transition-fast);
}

.dashboard-item:hover .icon-circle-btn {
    background-color: var(--hometax-blue);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 75, 141, 0.15);
}

.dashboard-item.highlight-item .icon-circle-btn {
    background-color: var(--hometax-orange-light);
    color: var(--hometax-orange);
    border-color: rgba(230, 126, 34, 0.2);
}

.dashboard-item.highlight-item:hover .icon-circle-btn {
    background-color: var(--hometax-orange);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}

.menu-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.menu-desc-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================
   7. Representative Profile Section
   ========================================== */
.profile-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.profile-visual-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* 얼굴 및 머리 부분이 잘리지 않도록 정밀 조정 */
}

.profile-overlay-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(20, 20, 22, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 8px;
    text-align: center;
}

.profile-tag-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-tag-title {
    font-size: 0.8rem;
    color: var(--hometax-blue);
    margin-top: 2px;
    font-weight: 600;
}

.profile-content h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.profile-content h3 span {
    color: var(--hometax-blue);
}

.profile-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.timeline-row {
    display: flex;
    gap: 20px;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hometax-blue);
    min-width: 85px;
    flex-shrink: 0;
    background-color: var(--hometax-blue-light);
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
    align-self: flex-start;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.profile-badge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.strip-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.strip-badge strong {
    color: var(--hometax-blue);
}

/* 에이블 소속 회계사 팀 섹션 스타일 */
.team-section-wrap {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px dashed var(--border-color);
}

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

.team-section-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.team-section-header h3 span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
    margin-top: 8px;
}

.team-list-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.team-horizontal-card {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    background: rgba(13, 14, 17, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.team-horizontal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 50%, rgba(59, 130, 246, 0.08) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.team-horizontal-card:hover {
    transform: translateY(-6px);
    background: rgba(13, 14, 17, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(59, 130, 246, 0.15);
}

.team-horizontal-card:hover::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(16, 185, 129, 0.1) 50%, rgba(59, 130, 246, 0.5) 100%);
}

.team-horizontal-img-box {
    width: 180px;
    min-width: 180px;
    height: 220px;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    transition: all 0.4s ease;
}

.team-horizontal-img-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 6, 0) 60%, rgba(5, 5, 6, 0.4) 100%);
    pointer-events: none;
    transition: all 0.4s ease;
}

.team-horizontal-card:hover .team-horizontal-img-box {
    border-right-color: rgba(59, 130, 246, 0.3);
}

.team-horizontal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(12%) brightness(95%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.team-horizontal-card:hover .team-horizontal-img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(105%);
}

.team-horizontal-info {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.team-horizontal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 14px;
    margin-bottom: 16px;
    transition: all 0.4s ease;
}

.team-horizontal-card:hover .team-horizontal-header-row {
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

.team-name-role h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.team-horizontal-card:hover .team-name-role h4 {
    color: #3b82f6;
}

.team-role-badge {
    font-size: 0.85rem;
    color: var(--hometax-teal);
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.team-horizontal-card:hover .team-role-badge {
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}

.team-cpa-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.team-horizontal-card:hover .team-cpa-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.team-specs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.team-specs-list li {
    word-break: keep-all;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 16px;
}

.team-specs-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.team-horizontal-card:hover .team-specs-list li {
    color: #f1f5f9;
    transform: translateX(4px);
}

.team-horizontal-card:hover .team-specs-list li::before {
    color: var(--hometax-blue);
    transform: scale(1.4);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

@media (max-width: 768px) {
    .team-horizontal-card {
        flex-direction: column;
    }
    .team-horizontal-img-box {
        width: 100%;
        height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .team-horizontal-info {
        padding: 20px;
    }
    .team-horizontal-header-row {
        flex-direction: column;
        gap: 8px;
    }
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .team-section-wrap {
        margin-top: 50px;
        padding-top: 30px;
    }
}

/* ==========================================
   8. Specialized Fields Section (Tabs)
   ========================================== */
.tabs-control {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 14px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active {
    background: var(--hometax-blue);
    color: #ffffff;
    border-color: var(--hometax-blue);
    box-shadow: 0 4px 10px rgba(0, 75, 141, 0.15);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.special-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
}

.special-details h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.special-sub {
    font-size: 1.05rem;
    color: var(--hometax-teal);
    margin-bottom: 24px;
    font-weight: 600;
}

.feature-bullets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.bullet-item-sec {
    display: flex;
    gap: 10px;
}

.bullet-item-sec svg {
    color: var(--hometax-blue);
    flex-shrink: 0;
    margin-top: 4px;
}

.bullet-item-sec strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.bullet-item-sec p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.partner-expert-tags {
    border-top: 1px solid var(--border-color-light);
    padding-top: 20px;
}

.expert-tag-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.expert-tags-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.expert-tag {
    background: var(--hometax-blue-light);
    border: 1px solid rgba(0, 75, 141, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--hometax-blue);
}

.special-summary-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.special-summary-card h4 {
    font-size: 1.15rem;
    color: var(--hometax-blue);
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--hometax-blue);
    padding-bottom: 8px;
}

.summary-check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list-row {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.check-list-row svg {
    color: var(--hometax-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

/* 병의원 솔루션 아코디언 스타일 */
.clinic-solution-center {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px dashed var(--border-color);
}

.solution-header {
    text-align: center;
    margin-bottom: 30px;
}

.solution-header h4 {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 8px;
}

.solution-header p {
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 850px;
    margin: 0 auto;
}

.accordion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.accordion-card-header {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: background var(--transition-fast);
}

.accordion-card:hover .accordion-card-header {
    background: rgba(59, 130, 246, 0.03);
}

.acc-title-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hometax-blue);
    background: var(--hometax-blue-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chevron-icon {
    color: var(--text-muted);
    transition: transform var(--transition-medium);
}

.accordion-card.active {
    border-color: var(--hometax-blue);
    box-shadow: var(--blue-glow);
}

.accordion-card.active .chevron-icon {
    transform: rotate(180deg);
    color: var(--hometax-blue);
}

.accordion-card-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height var(--transition-medium) ease-out, padding var(--transition-medium) ease-out;
}

.accordion-card.active .accordion-card-content {
    max-height: 450px; /* 대략적인 최대 크기 */
    padding: 20px 24px 24px 72px; /* 번호 여백만큼 내림 */
    border-top: 1px solid var(--border-color-light);
}

.accordion-card-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.accordion-card-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   8.5 신규 추가: 실전 세무 특강 (YouTube Insights) Styles
   ========================================== */
#youtube-insights {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.insights-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 40px;
}

.insight-item {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.insight-item:nth-child(even) .insight-text {
    order: 2;
}

.insight-item:nth-child(even) .insight-video-container {
    order: 1;
}

.insight-text h3 {
    font-size: 1.65rem;
    color: var(--hometax-blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.insight-text h3 span.num {
    background-color: var(--hometax-blue-light);
    color: var(--hometax-blue);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    flex-shrink: 0;
}

.insight-text .main-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.insight-bullets {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.insight-bullet-row {
    display: flex;
    gap: 12px;
}

.insight-bullet-row svg {
    color: var(--hometax-orange);
    flex-shrink: 0;
    margin-top: 3px;
}

.insight-bullet-row strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 3px;
    font-weight: 700;
}

.insight-bullet-row p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.insight-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    aspect-ratio: 16 / 9;
    background: #000000;
}

.insight-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-cover {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.video-cover:hover .video-thumbnail {
    transform: scale(1.03);
}

.play-btn-overlay {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
    color: var(--hometax-blue);
}

.video-cover:hover .play-btn-overlay {
    background: var(--hometax-orange);
    color: #ffffff;
    transform: scale(1.1);
}

.play-btn-overlay svg {
    margin-left: 2px;
    fill: currentColor;
}

.video-link-fallback {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hometax-blue);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.video-link-fallback:hover {
    color: var(--hometax-orange);
}


/* ==========================================
   9. Service Line-Up & Plans (Pricing Table)
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 40px;
}

.pricing-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border-top: 4px solid var(--border-color);
}

.pricing-card.popular-plan {
    border-top-color: var(--hometax-orange);
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.08);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--hometax-orange);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-header {
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.plan-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-subtitle {
    font-size: 0.8rem;
    color: var(--hometax-blue);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.plan-desc {
    font-size: 0.85rem;
    min-height: 38px;
}

.plan-price-wrap {
    margin-top: 12px;
}

.plan-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--hometax-blue);
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-card.popular-plan .plan-price {
    color: var(--hometax-orange);
}

.plan-features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-feature-item {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plan-feature-item.checked {
    color: var(--text-primary);
}

.plan-feature-item svg {
    color: var(--hometax-teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-cta {
    width: 100%;
}

.compare-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   10. Interactive Quiz (Plan Selector)
   ========================================== */
.quiz-widget {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.quiz-progress {
    width: 100%;
    height: 3px;
    background: var(--border-color-light);
    border-radius: 2px;
    margin-bottom: 30px;
    position: relative;
}

.quiz-progress-bar {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    width: 33.3%;
    background: var(--hometax-blue);
    border-radius: 2px;
    transition: width var(--transition-medium);
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-question {
    font-size: 1.25rem;
    margin-bottom: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.quiz-option-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition-fast);
}

.quiz-option-card:hover {
    background: var(--hometax-blue-light);
    border-color: var(--hometax-blue);
}

.quiz-option-card.selected {
    background: var(--hometax-blue-light);
    border-color: var(--hometax-blue);
    box-shadow: var(--blue-glow);
}

.radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    position: relative;
    flex-shrink: 0;
}

.quiz-option-card.selected .radio-circle {
    border-color: var(--hometax-blue);
}

.quiz-option-card.selected .radio-circle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--hometax-blue);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-desc strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.option-desc p {
    font-size: 0.8rem;
    line-height: 1.4;
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Quiz Result Card */
.quiz-result {
    display: none;
    text-align: center;
}

.result-badge {
    background: var(--hometax-orange-light);
    border: 1px solid rgba(230, 126, 34, 0.2);
    color: var(--hometax-orange);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: inline-block;
}

.result-plan-title {
    font-size: 1.8rem;
    color: var(--hometax-blue);
    margin-bottom: 10px;
}

.result-plan-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.result-showcase-box {
    background: var(--hometax-blue-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    max-width: 460px;
    margin: 0 auto 30px;
    text-align: left;
}

.result-box-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hometax-blue);
}

.result-features-flex {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-feat-row {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.result-feat-row svg {
    color: var(--hometax-blue);
}

.quiz-restart-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 16px;
}

.quiz-restart-btn:hover {
    color: var(--text-secondary);
}

/* ==========================================
   11. Activity Archive & Blog Section
   ========================================== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.archive-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-medium);
}

.archive-card:hover {
    border-color: var(--hometax-blue);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.archive-media-box {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bg-main);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.archive-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.archive-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 12px;
    color: var(--text-primary);
    flex-grow: 1;
}

.archive-link {
    font-size: 0.8rem;
    color: var(--hometax-blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.archive-link:hover {
    text-decoration: underline;
}

/* ==========================================
   12. Reviews Section
   ========================================== */
.reviews-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.reviews-slider-wrap {
    overflow: hidden;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-slide {
    min-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.review-card-layout {
    padding: 40px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.quote-icon-top {
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--hometax-blue-light);
    z-index: 0;
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: var(--hometax-orange);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.review-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.review-client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hometax-blue-light);
    border: 1px solid rgba(0, 75, 141, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hometax-blue);
    font-weight: 700;
    font-size: 0.9rem;
}

.client-meta {
    text-align: left;
}

.client-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.client-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--hometax-blue);
    color: #ffffff;
    border-color: var(--hometax-blue);
}

.slider-arrow.prev-arrow {
    left: -10px;
}

.slider-arrow.next-arrow {
    right: -10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background: var(--hometax-blue);
    width: 18px;
    border-radius: 3px;
}

.naver-review-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================
   13. Contact & Map Section
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
}

.contact-form-card {
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-form-title {
    font-size: 1.45rem;
    margin-bottom: 6px;
    color: var(--hometax-blue);
}

.contact-form-desc {
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-label span {
    color: var(--hometax-orange);
}

.form-control {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--hometax-blue);
    box-shadow: var(--blue-glow);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    cursor: pointer;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--hometax-blue);
    margin-top: 2px;
    cursor: pointer;
}

.check-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.check-label a {
    color: var(--hometax-blue);
    font-weight: 700;
    text-decoration: underline;
}

/* Contact Info & Map (Right side) */
.contact-info-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    gap: 16px;
}

.info-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: var(--hometax-blue-light);
    border: 1px solid rgba(0, 75, 141, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hometax-blue);
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 0.85rem;
    line-height: 1.45;
}

/* Map Styled Box */
.map-styled-box {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
}

.map-placeholder-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.map-placeholder-addr {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 280px;
    margin-bottom: 4px;
}

/* ==========================================
   14. Footer Styles
   ========================================== */
.footer {
    background-color: var(--bg-footer);
    border-top: 2px solid var(--hometax-blue);
    padding: 60px 0 30px;
    color: #a0aec0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-brand h3 span {
    color: var(--hometax-orange);
}

.footer-brand p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--hometax-blue);
    color: #ffffff;
    border-color: var(--hometax-blue);
    transform: translateY(-1px);
}

.footer-links-col h4 {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    font-size: 0.8rem;
    color: #a0aec0;
}

.footer-links-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-info-col h4 {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.8rem;
    color: #a0aec0;
}

.footer-info-list li {
    line-height: 1.45;
}

.footer-info-list strong {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #718096;
}

/* Blog Column Grid styling */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* Medical Departments grid styling */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ==========================================
   15. Responsive Media Queries
   ========================================== */
@media (max-width: 1024px) {
    /* Collapse GNB menu to mobile hamburger menu on all tablets and smaller screens to prevent overlap/cutoff */
    .utility-bar, .header-search-mock, .nav-menu, .header-actions .btn {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
    }
    h2 {
        font-size: 2rem;
    }
    .hero-section {
        height: auto !important;
        min-height: auto !important;
        padding-top: 130px !important; /* Provide proper headroom under the fixed header */
        padding-bottom: 60px !important;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-ratings {
        justify-content: center;
    }
    .hero-visual {
        justify-content: center !important;
        margin-top: 20px;
        /* Flow naturally after text so main title is read first on mobile */
    }
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .departments-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .profile-visual-box {
        max-width: 340px;
        margin: 0 auto;
    }
    .special-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .insight-item {
        grid-template-columns: 1fr !important;
        gap: 30px;
        margin-bottom: 60px;
    }
    .insight-item:nth-child(even) .insight-text {
        order: 1;
    }
    .insight-item:nth-child(even) .insight-video-container {
        order: 2;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .departments-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .tabs-control {
        flex-direction: column;
        gap: 8px;
    }
    .tab-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 12px 20px;
    }
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }
    .hero-btns .btn {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }
    .hero-badge {
        flex-wrap: wrap;
        font-size: 0.78rem;
        text-align: center;
        justify-content: center;
        line-height: 1.4;
    }
    .feature-bullets {
        grid-template-columns: 1fr;
    }
    .quiz-widget {
        padding: 24px;
    }
    .archive-grid {
        grid-template-columns: 1fr;
    }
    .review-card-layout {
        padding: 24px;
    }
    .review-quote {
        font-size: 0.95rem;
    }
    .contact-form-card {
        padding: 24px;
    }
    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-brand {
        grid-column: span 1;
    }
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================
   12. 에이블 스마트 세무 도구 (Tax Tools) & 챗봇
   ========================================== */
.tax-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.tool-card {
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tool-card-header svg {
    color: var(--hometax-blue);
}

.tool-card-header h3 {
    font-size: 1.4rem;
    color: var(--hometax-blue);
    font-weight: 800;
}

/* 스마트 계산기 탭 */
.calc-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    gap: 8px;
}

.calc-tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calc-tab-btn:hover {
    color: var(--hometax-blue);
}

.calc-tab-btn.active {
    color: var(--hometax-blue);
    border-bottom-color: var(--hometax-blue);
}

.calc-content {
    display: none;
    flex-direction: column;
    flex: 1;
}

.calc-content.active {
    display: flex;
}

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

.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.input-group label span {
    color: var(--hometax-blue);
    font-size: 1.1rem;
}

.input-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hometax-blue);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-result-box {
    background-color: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-row:last-of-type {
    margin-bottom: 0;
}

.result-row strong {
    font-size: 1.4rem;
    font-weight: 800;
}

.result-row strong.text-orange {
    color: var(--hometax-orange);
}

.result-row strong.text-blue {
    color: var(--hometax-blue);
}

.result-row.highlight-row {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
}

.calc-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 12px;
}

/* 세무 캘린더 */
.calendar-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cal-filter-btn {
    background: #f7fafc;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cal-filter-btn:hover {
    border-color: var(--hometax-blue);
    color: var(--hometax-blue);
}

.cal-filter-btn.active {
    background-color: var(--hometax-blue-light);
    border-color: var(--hometax-blue);
    color: var(--hometax-blue);
}

.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 380px;
    padding-right: 4px;
}

.calendar-list::-webkit-scrollbar {
    width: 4px;
}
.calendar-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

.calendar-item {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.calendar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.calendar-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
    border-radius: 6px;
    width: 50px;
    height: 50px;
    margin-right: 14px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.calendar-date-box .month {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.calendar-date-box .day {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hometax-blue);
}

.calendar-info {
    flex: 1;
}

.calendar-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.calendar-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dday-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 10px;
    flex-shrink: 0;
}

.dday-badge.urgent {
    background-color: #fed7d7;
    color: #c53030;
}

.dday-badge.normal {
    background-color: #e2e8f0;
    color: #4a5568;
}

/* 챗봇 위젯 스타일 */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Noto Sans KR', sans-serif;
}

.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    background-color: var(--hometax-blue);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 53, 102, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.05);
    background-color: var(--hometax-blue-dark);
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--hometax-orange);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    height: 480px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.chatbot-widget.open .chatbot-window {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    background-color: var(--hometax-blue);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.chatbot-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 2px;
}

.chatbot-title-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.chatbot-title-info span {
    font-size: 0.75rem;
    opacity: 0.85;
}

.chatbot-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-message.bot {
    background-color: var(--bg-card);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.chat-message.user {
    background-color: var(--hometax-blue);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.chat-option-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.chat-option-btn:hover {
    border-color: var(--hometax-blue);
    background-color: var(--hometax-blue-light);
    color: var(--hometax-blue);
}

.chatbot-footer {
    padding: 12px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.chat-direct-btn {
    background-color: #fee500;
    color: #1e1e1e;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
}

.chat-direct-btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .tax-tools-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .tool-card {
        padding: 24px;
    }
    .chatbot-widget {
        bottom: 20px;
        right: 20px;
    }
    .chatbot-window {
        width: 320px;
        height: 420px;
        bottom: 70px;
    }
}

/* ==========================================
   15. 파트너사 무한 롤링 배너 (Marquee) 스타일
   ========================================== */
.partner-marquee-section {
    background-color: var(--bg-footer);
    padding: 35px 0;
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.marquee-title-box {
    text-align: center;
    margin-bottom: 20px;
}

.marquee-title-box h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.marquee-title-box h4 strong {
    color: var(--hometax-blue);
    font-weight: 700;
}

.logo-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 5px 0;
}

/* 좌우 부드러운 그라데이션 페이드 블러 처리 */
.logo-marquee-container::before,
.logo-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-footer) 0%, transparent 100%);
}

.logo-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-footer) 0%, transparent 100%);
}

.logo-marquee-track {
    display: inline-flex;
    gap: 30px;
    animation: marquee-scroll 45s linear infinite;
    width: max-content;
}

.logo-marquee-track:hover {
    animation-play-state: paused; /* 마우스 오버 시 일시 정지 */
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 20px 8px 8px; /* 로고 흰색 박스가 채워지므로 왼쪽 여백 축소 및 세로 높이 최적화 */
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.marquee-item:hover {
    transform: translateY(-3px);
    border-color: var(--hometax-blue);
    box-shadow: var(--card-shadow-hover);
}

.marquee-item img {
    height: 38px;
    width: 85px; /* 모든 로고 이미지의 가로세로 비율 프레임을 통일하여 정돈된 레이아웃 연출 */
    object-fit: contain;
    background-color: #ffffff; /* 무광 블랙 배경 위에서 모든 로고가 100% 잘 보이도록 깔끔한 흰색 배경 박스 할당 */
    padding: 4px 8px; /* 로고와 흰색 테두리 사이의 안전 여백 */
    border-radius: 6px; /* 프레임 모서리 라운딩 */
    transition: transform var(--transition-fast);
}

.marquee-item:hover img {
    transform: scale(1.05); /* 카드 호버 시 로고만 살짝 팝업되는 프리미엄 인터랙션 */
}

.marquee-item span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================
   16. 실시간 검색 추천창 (Search Suggestions)
   ========================================== */
.search-suggestions-box {
    display: none; /* 기본 숨김 */
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: rgba(20, 20, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: hidden;
    padding: 12px 0;
    transition: all var(--transition-fast);
}

.search-suggestions-box.active {
    display: block;
}

.suggestions-header {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    padding: 0 16px 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color-light);
}

.suggestions-list {
    display: flex;
    flex-direction: column;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    text-align: left;
}

.suggestion-item:hover {
    background-color: var(--hometax-blue-light);
    color: var(--hometax-blue);
}

.suggestion-item svg {
    color: var(--text-muted);
}

.suggestion-item:hover svg {
    color: var(--hometax-blue);
}

.suggestion-item-highlight {
    font-weight: 700;
    color: var(--hometax-blue);
}

.no-results-msg {
    padding: 14px 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

/* ==========================================
   11. 세무 게시판 (Board) Styles
   ========================================== */
.board-section {
    padding: 120px 0 80px;
    background: var(--bg-body);
}

.board-hero {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.board-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}

.board-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.board-controls {
    max-width: 800px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.board-search-box {
    position: relative;
    width: 100%;
}

.board-search-input {
    width: 100%;
    padding: 16px 24px 16px 54px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color-light);
    border-radius: 30px;
    color: #ffffff;
    font-size: 1rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}

.board-search-input:focus {
    outline: none;
    border-color: var(--hometax-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.board-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color-light);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
    background: var(--hometax-blue);
    border-color: var(--hometax-blue);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Card Grid */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    transition: opacity var(--transition-medium);
}

.board-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.board-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--hometax-blue);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.board-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

.board-card:hover::before {
    opacity: 1;
}

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

.card-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.badge-new { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-corp { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-tip { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.badge-faq { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.badge-blog { background: rgba(3, 199, 90, 0.15); color: #03c75a; }

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.board-card:hover .card-title {
    color: var(--hometax-blue);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-author {
    font-weight: 500;
}

.card-more {
    color: var(--hometax-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Article Detail */
.article-detail {
    max-width: 840px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 20px;
    padding: 50px;
    position: relative;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color-light);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 40px;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.article-header {
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 40px 0 16px;
    border-left: 4px solid var(--hometax-blue);
    padding-left: 14px;
}

.article-body ul, .article-body ol {
    margin: 0 0 24px 20px;
}

.article-body li {
    margin-bottom: 8px;
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.tax-tip-box {
    background: rgba(59, 130, 246, 0.04);
    border-left: 4px solid var(--hometax-blue);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 30px 0;
}

.tax-tip-box h4 {
    font-weight: 700;
    color: var(--hometax-blue);
    margin-bottom: 8px;
    font-size: 1rem;
}

.tax-tip-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-cta {
    margin-top: 60px;
    padding: 30px;
    border: 1px solid var(--border-color-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-radius: 12px;
}

.cta-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.cta-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .board-grid {
        grid-template-columns: 1fr;
    }
    .board-hero h1 {
        font-size: 2.2rem;
    }
    .article-detail {
        padding: 35px 20px;
    }
    .article-title {
        font-size: 1.8rem;
    }
    .article-cta {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Custom Cursor Follower Styles (Premium Medical Interaction) */
@media (pointer: fine) {
    .custom-cursor-follower {
        position: fixed;
        top: 0;
        left: 0;
        width: 12px;
        height: 12px;
        background-color: var(--hometax-blue);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                    height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                    background-color 0.2s ease, 
                    border-radius 0.25s ease,
                    opacity 0.25s ease;
        box-shadow: 0 0 10px var(--hometax-blue);
        mix-blend-mode: screen;
        opacity: 0;
    }

    .custom-cursor-follower.active {
        opacity: 1;
    }

    /* 일반 링크 및 버튼 호버 시 */
    .custom-cursor-follower.hover-link {
        width: 32px;
        height: 32px;
        background-color: rgba(37, 99, 235, 0.1);
        border: 1.5px solid var(--hometax-blue);
        box-shadow: var(--blue-glow);
    }

    /* 병의원(메디컬) 관련 영역 호버 시: 청록색 메디컬 크로스/심박 그래프 형태 연출 */
    .custom-cursor-follower.medical-hover {
        width: 44px;
        height: 44px;
        background-color: rgba(16, 185, 129, 0.08);
        border: 1.5px solid var(--hometax-teal);
        box-shadow: var(--teal-glow);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* 바이오 필 유기적 형태 */
        animation: rotate-medical-cursor 6s infinite linear;
    }
}

@keyframes rotate-medical-cursor {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.15);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

/* Bottom Floating Quick-Nav Toolbar Style */
@media (min-width: 1200px) {
    .sticky-left-nav {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        background: rgba(13, 14, 17, 0.85); /* Dark slate semi-transparent */
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 8px 22px;
        border-radius: 40px;
        backdrop-filter: blur(12px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        pointer-events: auto;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .sticky-left-nav ul {
        display: flex;
        flex-direction: row;
        gap: 6px;
        padding: 0;
        margin: 0;
        align-items: center;
    }
    
    .sticky-left-nav li {
        list-style: none;
        display: flex;
        align-items: center;
    }
    
    /* Divider between link words */
    .sticky-left-nav li:not(:last-child)::after {
        content: '';
        width: 1px;
        height: 10px;
        background: rgba(255, 255, 255, 0.15);
        margin-left: 6px;
        pointer-events: none;
    }
    
    .left-nav-item {
        display: flex;
        align-items: center;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 20px;
        transition: all 0.25s ease;
    }
    
    /* Hide the dot elements */
    .left-nav-item .dot {
        display: none;
    }
    
    /* Label text formatting for toolbar buttons */
    .left-nav-item .label {
        position: static;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.82rem;
        font-weight: 700;
        padding: 0;
        border-radius: 0;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: color 0.2s ease;
    }
    
    /* Hover state styling */
    .left-nav-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    
    .left-nav-item:hover .label {
        color: #ffffff;
    }
    
    /* Active section highlight styling */
    .left-nav-item.active {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
        border: 1px solid rgba(16, 185, 129, 0.25);
    }
    
    .left-nav-item.active .label {
        color: #10b981; /* active teal text color */
        text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
    }
}

@media (max-width: 1199px) {
    .sticky-left-nav {
        display: none !important;
    }
}

/* Floating Quick Panel Button (Feedback 반영) */
.quick-panel-trigger {
    position: fixed;
    top: 45%;
    transform: translateY(-50%);
    right: 30px;
    z-index: 9998;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    border: none;
    color: #ffffff;
    border-radius: 30px;
    padding: 14px 22px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-panel-trigger svg {
    color: #ffffff;
    animation: pulse-energy 2s infinite ease-in-out;
}

.quick-panel-trigger:hover {
    transform: translateY(-53%) scale(1.04);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
}

@keyframes pulse-energy {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
        filter: drop-shadow(0 0 5px #ffffff);
    }
    100% {
        transform: scale(0.95);
        opacity: 0.85;
    }
}

/* Quick Tax Drawer Overlay */
.quick-tax-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quick-tax-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Quick Tax Drawer Container */
.quick-tax-drawer {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 400px;
    height: 100vh;
    background: rgba(13, 14, 17, 0.88);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-tax-drawer.open {
    transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.drawer-close-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* Drawer Tabs */
.drawer-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.drawer-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.drawer-tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.02);
}

.drawer-tab-btn.active {
    color: var(--hometax-teal);
    border-bottom-color: var(--hometax-teal);
}

/* Drawer Body */
.drawer-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.drawer-tab-pane {
    display: none;
}

.drawer-tab-pane.active {
    display: block;
}

/* Tool Section inside Drawer */
.drawer-tool-section {
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color-light);
    border-radius: 10px;
    padding: 16px;
}

/* Scrollbar styling for Drawer elements */
.drawer-calendar-list::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar {
    width: 6px;
}

.drawer-calendar-list::-webkit-scrollbar-track,
.drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-calendar-list::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Mobile responsive drawer */
@media (max-width: 480px) {
    .quick-tax-drawer {
        width: 100vw;
        right: 0;
        transform: translateX(100%);
    }
    .quick-panel-trigger span {
        display: none;
    }
    .quick-panel-trigger {
        padding: 14px;
        border-radius: 50%;
        top: 45%;
        bottom: auto;
        right: 15px;
    }
}

/* =========================================================================
   YouTube Lightbox Modal Styles
   ========================================================================= */
.youtube-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.youtube-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 9, 11, 0.94);
    backdrop-filter: blur(8px);
}

.youtube-lightbox-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10002;
    transition: color 0.2s;
    line-height: 1;
}

.youtube-lightbox-close:hover {
    color: #ff0000;
}

.youtube-lightbox-dialog {
    position: relative;
    width: 92%;
    max-width: 1100px;
    height: 78vh;
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    z-index: 10001;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.youtube-lightbox-player {
    flex: 1.6;
    background: #000;
    position: relative;
}

.youtube-lightbox-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-lightbox-details {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: #11141a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Hover effects for video cards */
.youtube-video-card:hover .yt-thumbnail {
    transform: scale(1.04);
}
.youtube-video-card:hover .yt-overlay {
    opacity: 1 !important;
}
.youtube-video-card:hover .yt-video-title {
    color: #ff0000 !important;
}

/* Responsive grid and modal */
@media (max-width: 991px) {
    .youtube-lightbox-dialog {
        flex-direction: column;
        height: 85vh;
        max-width: 600px;
    }
    .youtube-lightbox-player {
        flex: none;
        height: 250px;
        width: 100%;
    }
    .youtube-lightbox-details {
        flex: 1;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}
@media (max-width: 1199px) {
    .youtube-video-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .youtube-video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .youtube-channel-header {
        padding: 15px !important;
    }
}
@media (max-width: 480px) {
    .youtube-video-grid {
        grid-template-columns: 1fr !important;
    }
    .youtube-channel-tabs {
        gap: 12px !important;
    }
    .youtube-channel-tabs span {
        font-size: 0.8rem !important;
    }
}

/* Hero Segment Button Styling (Dynamic Tab switcher) */
.hero-segment-btn {
    border: none !important;
    background: transparent;
    padding: 5px 6px; /* Tighter padding for compact layout */
    font-size: 0.74rem; /* Sized down slightly */
    font-weight: 700;
    color: #475569 !important; /* Clear high-contrast dark text for silver card readability */
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1; /* Stretch buttons evenly */
    text-align: center;
}
.hero-segment-btn:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a !important;
}
.hero-segment-btn.active {
    background: #0f172a !important; /* Premium dark background */
    color: #ffffff !important; /* White text when active */
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

/* Small Smartphone Optimization (Typography & Sizing) */
@media (max-width: 480px) {
    h2 {
        font-size: 1.6rem !important;
    }
    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.35 !important;
    }
    .hero-desc {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    .main-header {
        padding: 10px 0 !important; /* Increase vertical padding to center elements and prevent top cut-off */
    }
    .header-logo {
        height: 28px !important; /* Slightly smaller logo for compact mobile headers */
    }
}

/* 네트제 계산기 아코디언 및 상세 세부 내역 스타일 */
.breakdown-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.btn-breakdown-toggle {
    transition: color 0.2s ease;
}

.btn-breakdown-toggle:hover {
    color: #3b82f6 !important;
}

/* 실시간 계산기 입력창 개선 */
.calc-num-input {
    width: 90px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 10px;
    text-align: right;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.calc-num-input:focus {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--hometax-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.quick-adjust-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-adjust {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-adjust:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--hometax-blue);
    color: #fff;
}

.btn-adjust:active {
    transform: scale(0.95);
}

/* Chrome, Safari, Edge, Opera에서 스핀 버튼 제거 */
.calc-num-input::-webkit-outer-spin-button,
.calc-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox에서 스핀 버튼 제거 */
.calc-num-input[type=number] {
    -moz-appearance: textfield;
}

