/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f5f0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 헤더 스타일 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-size: 1.8rem;
    color: #5d4037;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.85rem;
    color: #8d6e63;
    margin: 2px 0 0 0;
    font-weight: 500;
    opacity: 0.9;
}

.logo-img {
    max-height: 50px;
    margin-right: 10px;
    vertical-align: middle;
}

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

.nav-list li {
    margin-left: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #5d4037;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #8d6e63;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #5d4037;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #f9f5f0;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

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

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: #8d6e63;
    font-weight: 500;
}

.breadcrumb-list a {
    color: #5d4037;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: #8d6e63;
    text-decoration: underline;
}

.breadcrumb-list li:last-child span {
    color: #8d6e63;
    font-weight: 500;
}

/* 메인 배너 */
.hero {
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.95), rgba(141, 110, 99, 0.92)), url('../assets/coffee-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 90px 0 60px;
    margin-bottom: 0;
}

.hero-content h2 {
    font-size: 2.6rem;
    margin-bottom: 18px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 14px;
    max-width: 720px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
    color: #f9f9f9;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-note {
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
    margin-bottom: 40px !important;
    font-style: italic;
}

/* 히어로 액션 버튼 */
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary,
.hero-actions .btn-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #ffb74d, #f57c00);
    color: #1f130e;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.hero-actions .btn-primary:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
}

.hero-actions .btn-secondary {
    background: #ffffff;
    color: #5d4037;
    border: 2px solid #ffffff;
}

.hero-actions .btn-secondary:hover {
    background: #ffecb3;
    border-color: #ffecb3;
    transform: translateY(-2px);
}

.hero-actions .btn-tertiary {
    background: #3e2723;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-actions .btn-tertiary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

/* 버튼 스타일 */
.btn-primary {
    display: inline-block;
    background-color: #d7ccc8;
    color: #5d4037;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #d7ccc8;
}

.btn-primary:hover {
    background-color: transparent;
    color: #d7ccc8;
}

.btn-secondary {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    transform: translateY(-1px);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 커리어 경로 스타일 */
.career-path {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.career-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    transition: all 0.3s ease;
}

.career-step:hover {
    background: #f0f1f2;
    transform: translateX(5px);
}

.step-number {
    background: #ff9800;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: #5d4037;
    font-size: 1.1em;
}

.step-content p {
    margin: 0 0 8px 0;
    color: #666;
    line-height: 1.4;
}

.duration {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .career-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        align-self: center;
    }
}

/* 섹션 스타일 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 32px;
    color: #5d4037;
}

.section-title i {
    margin-right: 10px;
}

/* 콘텐츠 그리드 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* 커피 레시피 카드 UI (공용 카드 스타일과 일관) */
.coffee-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.coffee-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.coffee-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coffee-emoji {
    font-size: 1.5rem;
}

.coffee-title h3 {
    margin: 0;
    color: #5d4037;
    font-size: 1.2rem;
}

.coffee-origin {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: #8d6e63;
}

.coffee-card-body .recipe-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.coffee-card-body .recipe-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f1ee;
    border-radius: 8px;
    padding: 10px 12px;
}

.coffee-card-body .recipe-icon {
    width: 22px;
    text-align: center;
}

.coffee-description {
    color: #333;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .coffee-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .coffee-card-body .recipe-summary {
        grid-template-columns: 1fr;
    }
}

/* 카드 스타일 */
.card {
    background: white;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 카드 너비 제어: 레시피 섹션은 2개 카드 최적화 */
.section .card {
    grid-column: span 12;
}

/* 레시피 섹션: 2개 카드 최적화 레이아웃 */
.section#recipes .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    /* 카드 높이를 맞춤 */
}

.section#recipes .card:nth-child(1) {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
}

.section#recipes .card:nth-child(2) {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
}

/* 첫 번째 카드 (에스프레소 추출 기준)의 특별 스타일 */
.section#recipes .recipe-basics {
    background: linear-gradient(135deg, #fff7f2, #f9f5f0);
    border: 1px solid #e8ddd4;
}

/* 두 번째 카드의 테이블과 이미지 영역 최적화 */
.section#recipes .card:nth-child(2) table {
    margin-bottom: 20px;
}

.section#recipes .fw-latte-compare {
    margin-top: auto;
    /* 하단에 고정 */
}

/* 레시피 카드 스타일 */
.recipe-basics {
    background: linear-gradient(135deg, #fff, #f9f5f0);
}

.recipe-grid {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.recipe-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f1ee;
    border-radius: 8px;
    border-left: 4px solid #d7ccc8;
}

.recipe-label {
    font-weight: 600;
    color: #5d4037;
    flex-shrink: 0;
}

.recipe-value {
    color: #333;
    text-align: right;
    font-weight: 500;
}

.recipe-tip {
    background: #fff7f2;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #d7ccc8;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.recipe-tip i {
    color: #ff9800;
    margin-top: 2px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f9f5f0;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.workflow-step:hover {
    transform: translateX(4px);
}

.step-number {
    background: #5d4037;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content strong {
    color: #5d4037;
    display: block;
    margin-bottom: 4px;
}

.step-content p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* 태블릿: 레시피 카드 세로 배치 */
@media (max-width: 1024px) {
    .section#recipes .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section#recipes .card:nth-child(1),
    .section#recipes .card:nth-child(2) {
        grid-column: span 1;
    }

    /* 다른 섹션은 기본 그리드 유지 */
    .content-grid:not(.section#recipes .content-grid) {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 모바일: 모든 카드 세로 배치 */
@media (max-width: 768px) {

    .content-grid,
    .section#recipes .content-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .section .card,
    .section#recipes .card {
        grid-column: span 1;
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #5d4037;
    margin-bottom: 16px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card h3 i {
    color: #8d6e63;
    font-size: 1.2rem;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d7ccc8, transparent);
    margin: 24px 0;
}

.card h4 {
    color: #795548;
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.card ul {
    list-style-type: disc;
    margin-left: 22px;
    margin-bottom: 14px;
}

.card li {
    margin-bottom: 6px;
    color: #333;
    /* 글씨 색상 명시적으로 지정 */
}

.card p {
    margin-bottom: 12px;
    color: #333;
    /* 글씨 색상 명시적으로 지정 */
}

/* 가독성(한국어 줄바꿈 개선) */
.card,
.card p,
.card li,
.card td,
.card th {
    line-height: 1.8;
    word-break: keep-all;
    letter-spacing: -0.01em;
}

.card p:last-child,
.card ul:last-child {
    margin-bottom: 0;
}

.script-box {
    background-color: #f5f1ee;
    border-left: 4px solid #d7ccc8;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.script-box p {
    margin-bottom: 10px;
    font-style: italic;
    color: #333;
    /* 글씨 색상 명시적으로 지정 */
}

.note {
    background-color: #ffecb3;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 10px;
    color: #333;
    /* 글씨 색상 명시적으로 지정 */
}

/* 테이블 스타일 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #333;
    /* 글씨 색상 명시적으로 지정 */
}

th {
    background-color: #d7ccc8;
    color: #5d4037;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f5f0;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-item h4 {
    color: #5d4037;
    margin-bottom: 8px;
}

.faq-item p {
    background-color: #f5f1ee;
    padding: 15px;
    border-radius: 5px;
    color: #333;
    /* 글씨 색상 명시적으로 지정 */
}

/* 푸터 스타일 */
.footer {
    background-color: #5d4037;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.kakao-link {
    margin-top: 15px;
}

.kakao-link a {
    display: inline-block;
    background-color: #FEE500;
    color: #3C1E1E;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.kakao-link a:hover {
    background-color: #FDD835;
    transform: translateY(-2px);
}

.kakao-link i {
    margin-right: 5px;
}

.job-links h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #5d4037;
}

.job-links ul {
    list-style-type: none;
    padding-left: 0;
}

.job-links li {
    margin-bottom: 8px;
}

.job-links a {
    color: #8d6e63;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.job-links a:hover {
    color: #5d4037;
    text-decoration: underline;
}

/* 스크래퍼 스타일 */
.job-scraper {
    margin-top: 20px;
}

.scraper-links {
    margin-bottom: 15px;
}

.scraper-btn {
    display: inline-block;
    background-color: #d7ccc8;
    color: #5d4037;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #bcaaa4;
    margin: 5px 5px 5px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.scraper-btn:hover {
    background-color: #bcaaa4;
    color: #fff;
}

.scraper-results {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f1ee;
    border-radius: 5px;
    border-left: 4px solid #d7ccc8;
}

.results-content {
    margin-top: 15px;
}

/* FW vs Latte 비교 */
.fw-latte-compare {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.cup-figure {
    text-align: center;
    position: relative;
    padding: 16px;
    background: linear-gradient(135deg, #f9f5f0, #fff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cup-figure figcaption {
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cup-photo {
    width: 100%;
    max-width: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: block;
    margin: 0 auto 12px;
    transition: transform 0.3s ease;
}

.cup-photo:hover {
    transform: scale(1.05);
}

.cup-diagram {
    display: none;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: opacity 0.3s ease;
}

.cup-photo {
    width: 100%;
    max-width: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: block;
    margin: 0 auto 12px;
    transition: transform 0.3s ease;
}

.cup-photo:hover {
    transform: scale(1.05);
}

.caption-note {
    font-size: 0.85rem;
    color: #8d6e63;
    margin-top: 8px;
    line-height: 1.4;
    font-style: italic;
}

.job-item {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.job-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.job-item .job-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.job-item .job-title-text {
    flex: 1;
    font-weight: 600;
    color: #5d4037;
    cursor: pointer;
}

.job-item .job-title-text:hover {
    color: #8d6e63;
}

.job-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.job-title {
    font-weight: bold;
    color: #5d4037;
    margin-bottom: 5px;
}

.job-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.job-meta .date {
    font-weight: 500;
    color: #5d4037;
}

.job-meta .author {
    color: #8d6e63;
}

.job-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.job-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.job-link i {
    font-size: 0.8rem;
}

/* 페이지네이션 */
.pagination {
    margin-top: 12px;
    text-align: center;
}

.page-btn {
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid #bcaaa4;
    background: #fff;
    color: #5d4037;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn.active,
.page-btn:hover {
    background: #d7ccc8;
    color: #fff;
}

/* 샷핸드 그리드 */
.shorthand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.sh-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.sh-key {
    font-weight: 700;
    color: #5d4037;
}

.sh-desc {
    font-size: .92rem;
    color: #555;
    margin-top: 4px;
}

/* 모달 */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.modal-dialog {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: calc(100vh - 40px);
    margin-top: 5vh;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 3001;
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #5d4037;
    z-index: 1;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #d7ccc8 #f0f0f0;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d7ccc8;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #bcaaa4;
}

.modal-title {
    margin-bottom: 20px;
    color: #5d4037;
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 3px solid #d7ccc8;
    padding-bottom: 12px;
    line-height: 1.4;
    word-break: keep-all;
}

.modal-content-text {
    white-space: pre-wrap;
    line-height: 1.8;
    max-height: 350px;
    overflow-y: auto;
    padding: 18px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 16px;
    word-wrap: break-word;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.modal-section {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fff7f2, #faf6f1);
    border-radius: 8px;
    border-left: 4px solid #d7ccc8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-section h5 {
    color: #5d4037;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-item,
.wage-item {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.contact-item a,
.wage-item a {
    color: #1976d2;
    text-decoration: none;
}

.contact-item a:hover,
.wage-item a:hover {
    text-decoration: underline;
}

/* 커뮤니티 배지 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.badge-hojubada {
    background: linear-gradient(135deg, #8d6e63, #6d4c41);
}

.badge-woorimel {
    background: linear-gradient(135deg, #24a352, #1b5e20);
}

.badge-melbsky {
    background: linear-gradient(135deg, #1976d2, #0d47a1);
}

/* 검색 입력 */
.search-box {
    margin: 10px 0 15px;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bcaaa4;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* 로딩 인디케이터 (카페 컵 애니메이션) */
.coffee-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.coffee-cup {
    width: 28px;
    height: 28px;
    border: 3px solid #5d4037;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.coffee-steam {
    width: 6px;
    height: 18px;
    background: linear-gradient(180deg, rgba(93, 64, 55, 0.5), rgba(93, 64, 55, 0));
    border-radius: 3px;
    animation: steam 1.2s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes steam {

    0%,
    100% {
        opacity: .2;
        transform: translateY(0);
    }

    50% {
        opacity: .9;
        transform: translateY(-6px);
    }
}

/* 전역 로더 오버레이 */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(249, 245, 240, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* 섹션 가독성 향상: 짝수 섹션 배경 분리 */
.main-content .section:nth-of-type(even) {
    background-color: #fff7f2;
}

.loading {
    text-align: center;
    padding: 20px;
}

.loading p {
    color: #8d6e63;
}

.error {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

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

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

.footer-links a {
    color: #d7ccc8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-links a i {
    margin-right: 8px;
    color: #ff9800;
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo-container {
        gap: 8px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }

    .nav {
        margin-top: 15px;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        display: none;
    }

    .nav-list.active {
        display: block;
    }

    .nav-list li {
        margin: 5px 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 1.7rem;
    }

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

    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero-content h2 {
        font-size: 1.7rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    th,
    td {
        padding: 8px;
        font-size: 0.9rem;
    }

    /* FW/Latte 비교 1열 정렬 */
    .fw-latte-compare {
        grid-template-columns: 1fr;
    }
}

/* 애니메이션 클래스 */
.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll {
    opacity: 1;
    transform: none;
}

/* 모달 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
}

.modal-dialog {
    position: relative;
    background: #fff;
    width: min(800px, 95vw);
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 3001;
    margin: 20px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

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

.modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #5d4037;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(93, 64, 55, 0.1);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #d7ccc8 #f0f0f0;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d7ccc8;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #bcaaa4;
}

.modal-title {
    margin-bottom: 20px;
    color: #5d4037;
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 3px solid #d7ccc8;
    padding-bottom: 12px;
    line-height: 1.4;
    word-break: keep-all;
}

.modal-content-text {
    white-space: pre-wrap;
    line-height: 1.8;
    max-height: 350px;
    overflow-y: auto;
    padding: 18px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 16px;
    word-wrap: break-word;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.modal-section {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fff7f2, #faf6f1);
    border-radius: 8px;
    border-left: 4px solid #d7ccc8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-section h5 {
    color: #5d4037;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-item,
.wage-item {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.contact-item a,
.wage-item a {
    color: #1976d2;
    text-decoration: none;
}

.contact-item a:hover,
.wage-item a:hover {
    text-decoration: underline;
}

/* 모바일에서 모달 최적화 */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
    }

    .modal-dialog {
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 20px);
        margin-top: 10px;
        border-radius: 8px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(100vh - 100px);
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-content-text {
        max-height: 300px;
        padding: 12px;
        font-size: 0.9rem;
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
        right: 8px;
        top: 8px;
    }
}

/* 레시피 섹션 추가 최적화 */
.section#recipes {
    background: linear-gradient(135deg, #fafafa 0%, #f9f5f0 100%);
    position: relative;
}

.section#recipes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5d4037, #8d6e63, #d7ccc8, #8d6e63, #5d4037);
}

/* 레시피 카드 호버 효과 개선 */
.section#recipes .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(93, 64, 55, 0.15);
}

/* 워크플로우 스텝 번호 스타일 개선 */
.section#recipes .step-number {
    background: linear-gradient(135deg, #5d4037, #8d6e63);
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.3);
}

/* 테이블 스타일 개선 */
.section#recipes table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section#recipes th {
    background: linear-gradient(135deg, #d7ccc8, #bcaaa4);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* 컵 이미지 비교 섹션 개선 */
.section#recipes .cup-figure {
    transition: transform 0.3s ease;
}

.section#recipes .cup-figure:hover {
    transform: scale(1.02);
}

.section#recipes .cup-figure figcaption {
    background: linear-gradient(135deg, #5d4037, #8d6e63);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(93, 64, 55, 0.3);
}

/* 
연락처 섹션 강조 스타일 */
.contact-section {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border: 2px solid #4caf50;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-section h5 {
    color: #2e7d32 !important;
    font-weight: 600;
    margin-bottom: 15px;
}

.email-item,
.phone-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.contact-link {
    display: inline-block;
    padding: 6px 12px;
    background: #4caf50;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    margin: 2px 0;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-link:hover {
    background: #45a049;
    text-decoration: none !important;
}

/* 전체 칸 클릭 가능하도록 스타일 개선 */
.job-item {
    transition: all 0.2s ease;
}

.job-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*
 모달 로딩 텍스트 스타일 */
.modal-loading-text {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1rem;
}

/* 
job-item 클릭 영역 개선 */
.job-item {
    position: relative;
    cursor: pointer !important;
    user-select: none;
}

.job-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: auto;
}

.job-item .job-link {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.job-item:hover::before {
    background: rgba(93, 64, 55, 0.02);
}

/* 모달 안정성 개선 */
.modal {
    backdrop-filter: blur(2px);
}

.modal-dialog {
    transform: translateZ(0);
    will-change: transform;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

/* API 오류 메시지 스타일 */
.error {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #c62828;
}

.error h4 {
    margin-bottom: 10px;
    color: #d32f2f;
}

.error p {
    margin-bottom: 10px;
    color: #666;
}

.retry-btn {
    background: #5d4037;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.retry-btn:hover {
    background: #4a2c20;
}

/* 
채용 정보 에러 및 재시도 버튼 스타일 */
.error {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.error h4 {
    color: #856404;
    margin-bottom: 10px;
}

.error p {
    color: #856404;
    margin-bottom: 10px;
}

.retry-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.retry-btn:hover {
    background-color: #f57c00;
}

/* 로딩 상태 개선 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading p {
    margin: 0;
    font-size: 1.1em;
}

.loading i {
    color: #ff9800;
    margin-right: 8px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

/* 채용 정보 통계 표시 */
.job-stats {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

/* 영어 이름 스펠링 연습 섹션 */
.name-practice-container {
    max-width: 800px;
    margin: 0 auto;
}

.name-practice-intro {
    text-align: center;
    margin-bottom: 40px;
}

.name-practice-intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.name-practice-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.practice-controls {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.control-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.control-group select:focus {
    outline: none;
    border-color: #5d4037;
}

.practice-buttons {
    display: flex;
    gap: 10px;
}

.practice-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.practice-btn.primary {
    background: linear-gradient(135deg, #5d4037, #8d6e63);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3);
}

.practice-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 64, 55, 0.4);
}

.practice-btn.secondary {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.practice-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.practice-input {
    margin-bottom: 30px;
}

.practice-input input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.practice-input input:focus {
    outline: none;
    border-color: #5d4037;
    background: white;
    box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.1);
}

.practice-result {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
}

.practice-result.correct {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.practice-result.incorrect {
    background: linear-gradient(135deg, #ffebee, #fce4ec);
    color: #c62828;
    border: 1px solid #f44336;
}

/* 오답 단어장 */
.vocab-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 25px;
}

.vocab-section h3 {
    color: #5d4037;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.vocab-container {
    position: relative;
}

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

.vocab-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa, #f0f1f2);
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vocab-item:hover {
    background: linear-gradient(135deg, #e8f4f8, #f0f8ff);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vocab-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.vocab-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

.vocab-text .correct {
    font-weight: 600;
    color: #2e7d32;
}

.vocab-text .incorrect {
    color: #c62828;
    text-decoration: line-through;
    opacity: 0.7;
}

.audio-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #5d4037, #8d6e63);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3);
}

.audio-btn i {
    color: white;
    font-size: 0.8rem;
}

.delete-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.delete-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.vocab-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.vocab-empty p {
    margin: 0;
    font-size: 1rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }

    .hero-feature-card {
        padding: 20px 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .practice-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .practice-buttons {
        flex-direction: column;
    }

    .name-practice-widget {
        padding: 20px;
    }

    .vocab-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .vocab-content {
        width: 100%;
        justify-content: space-between;
    }

    .delete-btn {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

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

    .hero-feature-card {
        padding: 15px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .name-practice-widget {
        padding: 15px;
    }

    .practice-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* TTS 설
정 모달 스타일 */
.tts-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.tts-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.tts-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.tts-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.tts-modal-header h3 i {
    margin-right: 8px;
}

.tts-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.tts-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.tts-modal-body {
    padding: 25px;
}

.tts-setting-group {
    margin-bottom: 20px;
}

.tts-setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.tts-setting-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

.tts-setting-group select:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

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

.tts-setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B4513;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

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

.tts-setting-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B4513;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.practice-btn.settings {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.practice-btn.settings:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.practice-btn.settings i {
    font-size: 0.85rem;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .tts-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .tts-modal-header {
        padding: 15px 20px;
    }

    .tts-modal-body {
        padding: 20px;
    }

    .tts-setting-group {
        margin-bottom: 18px;
    }
}

/* 기본 버튼 
스타일 */
.practice-btn {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
}

.practice-btn:hover {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.practice-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
}

.practice-btn.primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.practice-btn.primary:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.practice-btn.secondary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.practice-btn.secondary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.practice-btn i {
    font-size: 0.9rem;
}

.practice-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .practice-buttons {
        flex-direction: column;
    }

    .practice-btn {
        width: 100%;
        justify-content: center;
    }
}

/* TTS 설정 모달 스타일 */
.tts-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.tts-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.tts-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.tts-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.tts-modal-header h3 i {
    margin-right: 8px;
}

.tts-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.tts-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.tts-modal-body {
    padding: 25px;
}

.tts-setting-group {
    margin-bottom: 20px;
}

.tts-setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.tts-setting-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

.tts-setting-group select:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

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

.tts-setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B4513;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

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

.tts-setting-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B4513;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.practice-btn.settings {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.practice-btn.settings:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.practice-btn.settings i {
    font-size: 0.85rem;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .tts-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .tts-modal-header {
        padding: 15px 20px;
    }

    .tts-modal-body {
        padding: 20px;
    }

    .tts-setting-group {
        margin-bottom: 18px;
    }
}