/* ===== 기본 설정 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard */
}

:root {
    /* 색상 팔레트 */
    --primary-color: #1a4d8f;
    --primary-dark: #0f3566;
    --secondary-color: #2c5aa0;
    --accent-color: #d4af37;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    --success-color: #28a745;
    
    /* 타이포그래피 */
    --font-main: 'Spoqa Han Sans Neo', 'Noto Sans KR', sans-serif;
    --font-logo: 'Noto Serif KR', serif;  /* 2026-09-24 사용자 선택: 명조 */
    --font-heading: 'Pretendard', 'Spoqa Han Sans Neo', sans-serif;
    
    /* 간격 */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* 그림자 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    /* 애니메이션 */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 입력 필드와 텍스트 영역은 선택 가능하도록 예외 처리 */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 링크는 클릭 가능하도록 설정 */
a {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: pointer;
    pointer-events: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== 헤더 & 네비게이션 ===== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;   /* 로고는 홈으로 가는 링크 */
    cursor: pointer;
}

.logo-image {
    height: 50px;
    width: auto;
}

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

.logo i {
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-link.active {
    color: var(--primary-color);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ===== 히어로 섹션 ===== */
.hero {
    background: linear-gradient(135deg, #14335f 0%, var(--primary-color) 60%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px;
    color: white;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
    position: relative;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    animation: fadeInUp 1s ease;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 28px;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-trust {
    display: flex;
    gap: 36px;
    margin-bottom: 32px;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.hero-trust div b {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-trust div span {
    font-size: 0.85rem;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* 대표세무사 사진 카드 */
.hero-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.25);
    animation: fadeInUp 1s ease 0.3s backwards;
}

.hero-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-photo-badge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 30, 60, 0.85) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 36px;
    }
}

/* 모바일: 사진 카드 없이 예전처럼 가운데 정렬 문구만 (2026-09-24 사용자 요청) */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 80px);
        padding: 40px 0;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-trust {
        gap: 28px;
        justify-content: center;
    }
    .hero-buttons {
        display: none;   /* 모바일은 바로 아래 고민 섹션과 떠 있는 버튼에 상담 버튼이 있어 중복 제거 */
    }
    .hero-trust {
        margin-bottom: 0;
    }
    .hero-photo {
        display: none;
    }
}

/* ===== 버튼 스타일 ===== */
.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #c29d2d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

.btn-block {
    width: 100%;
}

/* ===== 섹션 공통 스타일 ===== */
section {
    padding: var(--section-padding);
}

/* ===== 페이지형 화면 전환 (2026-09-24): 활성 섹션만 보인다 ===== */
body.paged section[id]:not(.active) {
    display: none;
}

/* 고정 헤더에 가려지지 않도록, 홈(히어로) 외 화면의 첫 섹션은 헤더 높이만큼 내린다 */
body.paged section.active.page-top:not(.hero) {
    padding-top: calc(var(--header-h, 80px) + 40px);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* ===== 소개 섹션 ===== */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

.about-profile {
    position: relative;
    text-align: center;
}

.profile-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.profile-badge {
    margin-top: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #b8941f 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
}

.profile-badge i {
    font-size: 1rem;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.8px;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-gray);
}

.about-stats-wrapper {
    margin-top: 50px;
}

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

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== 경력 하이라이트 ===== */
.career-highlights {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.career-highlights h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.career-highlights i {
    color: var(--accent-color);
}

.career-list {
    list-style: none;
    padding: 0;
}

.career-list li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 20px;
}

.career-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.career-list strong {
    color: var(--text-dark);
}

/* ===== 전문분야 상세 ===== */
.expertise-detail {
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 15px;
}

.expertise-detail h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.expertise-detail h3 i {
    color: var(--accent-color);
}

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

.expertise-item-detail {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.expertise-item-detail i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.expertise-item-detail h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.expertise-item-detail p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.expertise-item-detail.highlight-card {
    background: linear-gradient(135deg, rgba(26, 77, 143, 0.1) 0%, rgba(44, 90, 160, 0.1) 100%);
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.expertise-item-detail.highlight-card i {
    color: var(--accent-color);
}

.expertise-item-detail.highlight-card h4 {
    color: var(--primary-color);
    font-size: 1.35rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* ===== 저서 섹션 ===== */
.books-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.books-section h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.books-section i {
    color: var(--accent-color);
}

.books-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.books-list li {
    padding: 10px 0;
    padding-left: 25px;
    color: var(--text-gray);
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.books-list li:last-child {
    border-bottom: none;
}

.books-list li::before {
    content: '📖';
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}


/* ===== 홈: 이런 고민 하고 계신가요 (2026-09-24) ===== */
.worries {
    background: #f5f7fa;
    overflow: hidden;
}

.worries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.worries-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #8a94a6;
    font-weight: 600;
    margin-bottom: 14px;
}

.worries-text h2 {
    font-size: 2.6rem;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 22px;
}

.worries-sub {
    color: #555;
    line-height: 1.8;
    margin-bottom: 28px;
}

.worries-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-kakao {
    background: #fee500;
    color: #191919;
}

.btn-kakao:hover {
    background: #f5dc00;
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* 말풍선이 위로 흐르는 영역 */
.worries-marquee {
    position: relative;
    height: 440px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.worries-list {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: worries-scroll 34s linear infinite;
}

.worries-marquee:hover .worries-list {
    animation-play-state: paused;
}

.worries-list li {
    background: white;
    border-radius: 16px;
    padding: 16px 22px;
    margin: 0 0 16px;
    width: 88%;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    color: #333;
    line-height: 1.6;
}

.worries-list li b {
    color: var(--primary-color);
}

.worries-list .worry-r {
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.worries-list .worry-l {
    border-bottom-left-radius: 4px;
}

@keyframes worries-scroll {
    from { transform: translateY(0); }
    to   { transform: translateY(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .worries-list {
        animation: none;
    }
    .worries-list[aria-hidden="true"] {
        display: none;
    }
    .worries-marquee {
        height: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (max-width: 992px) {
    .worries-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .worries-text h2 {
        font-size: 2rem;
    }
    .worries-marquee {
        height: 360px;
    }
}

/* ===== 세무사 소개 카드 (2026-09-24, 사진 + 항목 표) ===== */
.pro-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: start;   /* 사진은 원래 비율로 위에, 표가 길어도 사진을 늘리지 않음 */
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.pro-photo {
    position: relative;
    background: #f3f6fa;
}

.pro-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.pro-photo-name {
    position: absolute;
    left: 24px;
    bottom: 24px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.pro-photo-name strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.pro-photo-name span {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
}

/* 사진이 아직 없을 때 */
.pro-photo-empty {
    min-height: 420px;
    background: linear-gradient(160deg, #24395a 0%, #1a4d8f 100%);
}

.pro-photo-empty .pro-photo-mark {
    position: absolute;
    inset: auto;
    top: 32%;
    left: 50%;
    width: 42%;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.pro-body {
    padding: 36px 40px;
}

.pro-lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pro-intro {
    color: #555;
    line-height: 1.8;
    margin-bottom: 22px;
}

.pro-rows {
    display: grid;
    grid-template-columns: 96px 1fr;
    margin: 0;
}

.pro-rows dt,
.pro-rows dd {
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    margin: 0;
    line-height: 1.7;
}

.pro-rows dt {
    font-weight: 700;
    color: var(--text-dark);
}

.pro-rows dd {
    color: #444;
}

.pro-rows dd a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .pro-card {
        grid-template-columns: 1fr;
    }
    .pro-photo {
        width: 160px;
        margin: 24px auto 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow-md);
    }
    .pro-photo-empty {
        min-height: 0;
        height: 200px;
    }
    .pro-photo-name {
        left: 12px;
        bottom: 12px;
    }
    .pro-photo-name strong {
        font-size: 1.1rem;
    }
    .pro-photo-name span {
        font-size: 0.75rem;
    }
    .pro-body {
        padding: 24px 20px;
    }
    .pro-rows {
        grid-template-columns: 80px 1fr;
    }
}

/* ===== 대표세무사 저서 (2026-09-24) ===== */
.books-detail {
    margin-top: 60px;
}

.books-subtitle {
    color: var(--text-light);
    margin: -10px 0 25px;
}

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

.book-card {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
}

.book-card img {
    width: 100%;
    aspect-ratio: 0.72;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: block;
}

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

.book-title {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.book-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
}

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

/* ===== 서비스 섹션 ===== */
.services {
    background: var(--bg-light);
}

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

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== 전문분야 섹션 ===== */
.expertise {
    background: var(--bg-white);
}

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

.expertise-card {
    background: var(--bg-light);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.expertise-card:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow-md);
}

.expertise-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.expertise-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===== 문의하기 섹션 ===== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 77, 143, 0.1);
    border-radius: 50%;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-gray);
}

/* ===== 폼 스타일 ===== */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

/* ===== 푸터 ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-image {
    height: 45px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-logo);
    font-size: 1.45rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.footer-logo i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 애니메이션 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RSS 뉴스 피드 ===== */
.news-feed-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.news-feed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.news-feed-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.news-feed-card:hover::before {
    width: 6px;
}

.news-feed-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-feed-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
    z-index: 10;
}

.news-feed-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.news-feed-title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.news-feed-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-feed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--bg-gray);
    font-size: 0.85rem;
}

.news-feed-source,
.news-feed-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.news-feed-source i,
.news-feed-date i {
    color: var(--primary-color);
}

/* RSS 피드 그리드 */
#rss-feed-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* ===== 오늘의 세무 정보 (매일 자동 업데이트) ===== */
.monthly-focus-banner {
    padding: 40px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.focus-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.focus-content h3 {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.focus-content p {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.daily-deadlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.daily-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.daily-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.daily-card.urgent {
    border-left-color: #e53935;
    background: linear-gradient(135deg, #fff 0%, #ffebee 100%);
}

.deadline-card {
    display: flex;
    gap: 20px;
}

.daily-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.daily-card.urgent .daily-card-icon {
    color: #e53935;
}

.daily-card-content {
    flex: 1;
}

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

.daily-card-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.urgent-badge {
    background: #e53935;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.daily-card-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.daily-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--bg-gray);
}

.daily-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.daily-dday {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.daily-dday.urgent {
    background: #e53935;
    animation: pulse 2s infinite;
}

.motivational-quote {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    margin: 40px 0;
    box-shadow: 0 8px 20px rgba(26, 77, 143, 0.3);
}

.motivational-quote i {
    font-size: 2rem;
    opacity: 0.3;
}

.motivational-quote .fa-quote-left {
    position: absolute;
    top: 20px;
    left: 30px;
}

.motivational-quote .fa-quote-right {
    position: absolute;
    bottom: 20px;
    right: 30px;
}

.motivational-quote p {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.8;
    margin: 0;
    padding: 0 40px;
}

/* ===== 세무 상식 섹션 ===== */
.tax-tip-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tax-tip-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.tax-tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.tax-tip-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tax-tip-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tax-tip-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

.tax-tip-content {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.tax-tip-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bg-gray);
}

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

.tax-tip-tag {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 12px;
}

.tax-tip-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tax-tip-consult-btn:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(26, 77, 143, 0.3);
}

/* 카테고리 필터 */
#tax-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tax-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tax-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tax-category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
}

/* 세무 상식 그리드 */
#tax-tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* ===== 공공데이터 (국세청/법제처) ===== */
.public-data-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.public-data-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.data-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.data-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.data-value-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.data-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.data-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.data-change.positive {
    background: #e8f5e9;
    color: #2e7d32;
}

.data-change.negative {
    background: #ffebee;
    color: #c62828;
}

.data-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.data-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid var(--bg-gray);
}

/* 법령 카드 */
.law-card {
    border-left-color: #ff9800;
}

.law-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.law-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.law-no {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.law-summary {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.law-dates {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--bg-gray);
    border-bottom: 1px solid var(--bg-gray);
    margin-bottom: 15px;
}

.law-dates > div {
    flex: 1;
}

.law-dates small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 3px;
}

.law-dates strong {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.law-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.law-link:hover {
    gap: 8px;
}

/* 공공데이터 그리드 */
#nts-data-container,
#moleg-data-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 로딩 & 에러 상태 */
.loading-spinner,
.error-message {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
    font-size: 1rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-profile {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .books-section {
        margin-top: 20px;
    }
    
    .expertise-list {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-white);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 40px;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== 세무 캘린더 스타일 ===== */
.tax-calendar {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#tax-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
}

.today-schedule-highlight {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid #ff9800;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.today-schedule-highlight h3 {
    color: #e65100;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-schedule-highlight h3 i {
    font-size: 1.8rem;
}

.upcoming-schedules {
    margin-top: 40px;
}

.upcoming-schedules h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tax-schedule-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #ddd;
}

.tax-schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.tax-schedule-card.high {
    border-left-color: #dc3545;
}

.tax-schedule-card.medium {
    border-left-color: #ffc107;
}

.tax-schedule-card.low {
    border-left-color: #28a745;
}

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

.schedule-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.schedule-date i {
    font-size: 1.1rem;
}

.dday-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.dday-badge.today {
    background: #dc3545;
    color: white;
    animation: pulse 2s infinite;
}

.dday-badge.tomorrow {
    background: #ff6b6b;
    color: white;
}

.dday-badge.urgent {
    background: #ffc107;
    color: #333;
}

.dday-badge.soon {
    background: #17a2b8;
    color: white;
}

.dday-badge.normal {
    background: #6c757d;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.schedule-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.schedule-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.schedule-type-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.no-schedule {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-schedule i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.no-schedule p {
    font-size: 1.1rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .schedules-grid {
        grid-template-columns: 1fr;
    }
    
    .today-schedule-highlight {
        padding: 20px;
    }
    
    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

/* ===== 세무 계산기 섹션 ===== */
.calculator {
    background: var(--bg-light);
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.calculator-notice i {
    color: #ffc107;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.calculator-notice p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.calculator-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.calc-group {
    display: flex;
    flex-direction: column;
}

.calc-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.calc-group input,
.calc-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.calc-group input:focus,
.calc-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-group small {
    margin-top: 5px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.btn-calculate {
    width: 100%;
    margin-top: 10px;
    font-size: 1.125rem;
    padding: 16px;
}

.btn-calculate i {
    margin-right: 8px;
}

.calc-result {
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
}

.calc-result h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.result-item {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item.highlight {
    border: 2px solid var(--primary-color);
    background: rgba(26, 77, 143, 0.05);
}

.result-label {
    font-weight: 600;
    color: var(--text-dark);
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.result-value.primary {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.result-notice {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.result-notice p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

/* ===== FAQ 섹션 ===== */
.faq {
    background: var(--bg-white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    padding: 0 30px 25px;
    color: var(--text-gray);
    line-height: 1.8;
}

.faq-answer p:first-child {
    padding-top: 20px;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 50px;
}

.faq-answer li {
    margin-bottom: 10px;
}

.faq-answer strong {
    color: var(--text-dark);
}

/* ===== 플로팅 버튼 ===== */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.floating-btn i {
    font-size: 1.5rem;
}

.floating-btn span {
    font-size: 0.7rem;
    margin-top: 3px;
    font-weight: 600;
}

.phone-btn {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: white;
}

.kakao-btn {
    background: #FEE500;
    color: #3C1E1E;
}

.top-btn {
    background: var(--primary-color);
    color: white;
    display: none;
}

.top-btn.show {
    display: flex;
}

/* ===== 오시는 길 섹션 ===== */
.directions {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.directions-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 50px;
}

.directions-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.directions-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

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

.directions-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.directions-icon i {
    font-size: 1.8rem;
    color: white;
}

.directions-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.directions-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

.directions-card p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-static {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-decoration: none;
}

.map-static img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.map-static:hover img {
    transform: scale(1.03);
}

.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    color: #e53935;
    font-size: 2.6rem;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.35));
    pointer-events: none;
}

.map-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 8px);
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
}

.map-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.map-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.map-btn i {
    font-size: 1.1rem;
}

/* 반응형 - 오시는 길 */
@media (max-width: 992px) {
    .directions-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .directions-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .directions-icon {
        width: 50px;
        height: 50px;
    }
    
    .directions-icon i {
        font-size: 1.5rem;
    }
    
    .directions-card h3 {
        font-size: 1.1rem;
    }
    
    .directions-card p {
        font-size: 0.9rem;
    }
    
    .map-buttons {
        grid-template-columns: 1fr;
    }
}

/* 반응형 - 플로팅 버튼 */
@media (max-width: 768px) {
    .floating-buttons {
        right: 20px;
        bottom: 20px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
    }
    
    .floating-btn i {
        font-size: 1.3rem;
    }
    
    .floating-btn span {
        font-size: 0.65rem;
    }
}

/* 반응형 - 계산기 */
@media (max-width: 768px) {
    .calculator-form {
        padding: 25px;
    }
    
    .calc-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
}

/* 반응형 - FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        padding: 0 20px 20px;
    }
    
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 35px;
    }
}

/* ===== 조세뉴스 자료실 섹션 ===== */
.tax-news {
    background: var(--bg-white);
}

.news-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

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

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

.news-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.news-card.hidden {
    display: none;
}

/* PDF 첫 장 미리보기 */
.news-preview {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.news-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-preview img {
    transform: scale(1.03);
}

.news-preview-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    background: rgba(26, 77, 143, 0.9);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    opacity: 0;
    transition: var(--transition);
}

.news-card:hover .news-preview-hint {
    opacity: 1;
}

.news-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 6px;
}

.news-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 0 18px;
    flex: 1;
}

.btn-download {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    background: var(--primary-color);
    color: white;
}

.btn-download:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-download i {
    margin-right: 5px;
}

/* 매월 받아보기 안내 카드 */
.news-card-cta {
    background: linear-gradient(135deg, #fff8e6 0%, #ffedc2 100%);
    border: 2px dashed var(--accent-color);
    padding: 30px 24px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.news-cta-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.news-card-cta h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #7a5a00;
    margin-bottom: 10px;
}

.news-card-cta p {
    color: #7a5a00;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-cta {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 12px 25px;
    font-weight: 600;
}

.btn-cta:hover {
    background: #c19a2a;
    color: var(--text-dark);
}

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

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .btn-download {
        width: 100%;
        text-align: center;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}