@charset "UTF-8";

p {
    text-align: justify !important;
}

/* 주석 번호 마커 */
.fn {
    position: relative;
    cursor: pointer;
    padding-right: 20px;
    color: #000;
}

[data-bs-theme=dark] {
    .fn {
        color: #fff;
    }

    .fn::after {
        background: #fff;
        color: #000;
    }

}

.fn::after {
    content: attr(data-fn);
    position: absolute;
    right: 0;
    top: -4px;
    width: 18px;
    height: 18px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PC용 툴팁 */
.fn-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #bbb;
    padding: 10px 14px;
    border-radius: 0 6px 0 6px;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    font-size: 1rem;
    line-height: 1.4;
    display: none;
}

/* 모바일 전체화면 모달 */
.fn-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.fn-modal-content {
    background: #fff;
    padding: 22px;
    max-width: 82%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* 다크모드 */
[data-bs-theme="dark"] {

    .fn-modal-content,
    .fn-tooltip {
        background: #000;
    }
}

.fn-modal-close {
    float: right;
    font-size: 22px;
    cursor: pointer;
    margin-top: -10px;
    margin-right: -5px;
}

/* 팝업 타이틀 */
.fn-popup-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 1rem;
    color: #222;
}

/* 다크모드 */
[data-bs-theme="dark"] .fn-popup-title {
    color: #fff;
}

/* 모바일 모달 전용 타이틀 중앙 정렬 */
.fn-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: #222;
}

[data-bs-theme="dark"] .fn-modal-title {
    color: #fff;
}


/* PC only */
@media (max-width: 767px) {
    .fn-tooltip {
        display: none !important;
    }
}

.sub_title {
    margin-bottom: 80px;
}

.sub_title span {
    font-weight: 900;
}

/* 세로 라인 */
.title-divider {
    width: 1px;
    height: 24px;
    background: #777;
    margin: 0 auto 14px;
}

/* ===== 다크모드 스타일 ===== */
[data-bs-theme="dark"] .title-divider {
    background: rgba(255, 255, 255, 0.55);
}

.post-nav {
    width: 100%;
    border-top: 1px solid #ddd;
    margin-top: 50px;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.arrow {
    width: 16px;
    height: 16px;
    background-size: 100%;
    background-repeat: no-repeat;
}

.arrow.up {
    background-image: url('../images/common/icon_prev_arrow.png');
}

.arrow.down {
    background-image: url('../images/common/icon_next_arrow.png');
}

[data-bs-theme="dark"] .arrow.up {
    background-image: url('../images/common/icon_prev_arrow_w.png');
}

[data-bs-theme="dark"] .arrow.down {
    background-image: url('../images/common/icon_next_arrow_w.png');
}

.post-text {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.post-category {
    font-weight: 700;
    white-space: nowrap;
}

.post-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* -----------------
    반응형 (모바일)
------------------ */
@media (max-width: 768px) {
    .post-item {
        align-items: flex-start;
    }

    .post-text {
        flex-direction: column;
        gap: 4px;
    }

    .post-title {
        white-space: normal;
    }
}


/* 다른 기사 보기 */
.categorySwiper {
    width: 100%;
    padding: 40px 0 0 0;
}

.card-box {
    text-align: left;
}

.card-box .thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-title {
    margin-top: 16px;
    font-size: 1.1rem;
    color: #444;
    font-weight: 600;
}

/* 모바일 텍스트 */
@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }

    .card-box .thumb {
        height: 160px;
    }
}

[data-bs-theme="dark"] .card-title {
    color: #fff;
}

/* 기존 버튼 위치 초기화 */
.custom-nav.swiper-button-prev,
.custom-nav.swiper-button-next {
    position: relative;
    transform: none;
    margin: 0;
    width: 48px;
    height: 48px;
    border: #ccc 1px solid;
}

/* 화살표 아이콘 크기 조정 */
.custom-nav::after {
    font-size: 18px;
    color: #000;
}

[data-bs-theme="dark"] .custom-nav::after {
    color: #fff;
}




[data-bs-theme=dark] {
    .main-title {
        color: #fff;
        /* text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5); */
    }

    .visual_top_bg {
        background-color: var(--bs-body-bg);
    }

    .small-title {
        color: #fff;
    }
}

/* 비주얼 전체 컨테이너 */
.visual-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

/* 고정 높이 + cover 이미지 */
.visual-bg-fixed {
    width: 100%;
    height: 540px;
    /* ← 원하는 고정 높이값 */

}

.visual_01_00 {
    background-image: url('../images/common/bg_sub_visual_00.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_01_01 {
    background-image: url('../images/sub/s1/img_s_visual_01_01.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_01_02 {
    background-image: url('../images/sub/s1/img_s_visual_01_02.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_01_03 {
    background-image: url('../images/sub/s1/img_s_visual_01_03.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_01_04 {
    background-image: url('../images/sub/s1/img_s_visual_01_04.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_02_01 {
    background-image: url('../images/sub/s2/img_s_visual_02_01.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_02_02 {
    background-image: url('../images/sub/s2/img_s_visual_02_02.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_02_03 {
    background-image: url('../images/sub/s2/img_s_visual_02_03.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_02_04 {
    background-image: url('../images/sub/s2/img_s_visual_02_04.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_03_01 {
    background-image: url('../images/sub/s3/img_s_visual_03_01.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_03_02 {
    background-image: url('../images/sub/s3/img_s_visual_03_02.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_03_03 {
    background-image: url('../images/sub/s3/img_s_visual_03_03.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

.visual_03_04 {
    background-image: url('../images/sub/s3/img_s_visual_03_04.png');
    background-size: cover;
    /* 비율 유지 + 가득 채움 */
    background-position: center 80%;
    /* 가운데 기준 */
    background-repeat: no-repeat;
}

/* 텍스트 위치 */
.visual-text {
    position: absolute;
    top: 160px;
    left: 150px;
    right: 0;
    z-index: 10;
    padding: 30px 0px;
}

.visual-title {
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
}

.visual_top_bg {
    width: 100%;
    height: 100px;
    background: #fff;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

/* 텍스트 스타일 */
.small-title {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
    word-break: keep-all;
}

.main-title {
    font-size: 3rem;
    line-height: 1.25;
    margin: 0;
    font-weight: 900 !important;
    word-break: keep-all;
}

.left_stitle {
    word-break: keep-all;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .visual_top_bg {
        height: 140px;
    }

    .visual-bg-fixed {
        height: 320px;
        /* 모바일에서 더 낮게 */
    }

    .visual-text {
        top: 10px;
        left: unset;
    }

    .small-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .content-wrapper {
        padding: 40px 20px !important;
    }

    .left_stitle {}
}

/* 본문 폭 */
.content-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding: 120px 20px;
}

/* 카테고리 | 가로 라인 */
.cat-divider {
    width: 100%;
    height: 1px;
    background-color: #bbb;
}

/* 카테고리 | 모바일 스타일 */
@media (max-width: 767.98px) {
    .category-box {
        text-align: right;
    }

    .cat-title,
    .cat-sub {
        font-size: 1rem;
    }

    .writer,
    .photo {
        font-size: 0.9rem;
        color: #666;
    }
}

/* 카테고리 | PC */
@media (min-width: 768px) {

    .cat-title,
    .cat-sub {
        font-size: 1.15rem;
    }

    .writer,
    .photo {
        font-size: 1rem;
    }
}

/* [모달] 쉽게 읽기*/
/* 전체 화면 모달 배경 */
.reader-modal {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    overflow: hidden;
    /* 스크롤 제거 → fixed 정상 적용 */
}

[data-bs-theme="dark"] .reader-modal {
    background: rgba(0, 0, 0, 0.98);
}

/* 모달 내부 */
.reader-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    /* 상단 툴바 높이만큼 패딩 추가 */
    height: 100vh;
    overflow-y: auto;
    /* 스크롤 담당 영역 */
}

/* ===== 상단 고정 툴바 기본 스타일 ===== */
.easy-reader-toolbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: max-content;
    padding: 12px 18px;
    background: rgba(238, 238, 238, 0.6);
    /* 반투명 */
    backdrop-filter: blur(4px);
    /* 블러 */
    border-radius: 30px;
    /* 아래 둥글게 */
    z-index: 99999;
    gap: 25px;
    overflow-x: auto;
    white-space: nowrap;
}

/* 스크롤바 숨김 */
.easy-reader-toolbar::-webkit-scrollbar {
    height: 0;
}

/* 각 그룹 */
.tool-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 텍스트 */
.tool-label,
.tool-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 구분선 */
.divider {
    width: 1px;
    height: 20px;
    background: #aaa;
    margin: 0 4px;
}

/* 버튼 공통 */
.tool-btn,
.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(240, 240, 240, 0.8);
    border: none;
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
}

[data-bs-theme="dark"] {

    .tool-btn,
    .close-btn {
        background: rgba(0, 0, 0, 0.8);
    }
}


/* 아이콘 */
.tool-btn.play::before {
    content: "▶";
    font-size: 20px;
}

.tool-btn.pause::before {
    content: "⏸";
    font-size: 20px;
}

.tool-btn.stop::before {
    content: "■";
    font-size: 18px;
}

.tool-btn.font-size::before {
    content: "↕가";
    font-size: 17px;
}

.tool-btn.screen-mode::before {
    content: "☀";
    font-size: 20px;
}

/* 닫기 버튼 */
.close-btn::before {
    content: "✕";
    font-size: 22px;
}

/* 속도 배지 */
.speed-badge {
    background: rgba(240, 240, 240, 0.8);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

[data-bs-theme="dark"] .speed-badge {
    background: rgba(0, 0, 0, 0.8);
}

/* ===========================================
      모바일 컴팩트 모드
      (화면 너비가 768px 이하일 때)
   =========================================== */
@media (max-width: 768px) {

    .easy-reader-toolbar {
        padding: 6px 10px;
        gap: 15px;
    }

    .tool-btn,
    .close-btn {
        width: 32px;
        height: 32px;
    }

    .tool-label,
    .tool-text {
        font-size: 13px;
    }

    .speed-badge {
        padding: 5px 10px;
        font-size: 13px;
    }

    /* 모바일에서는 구분선도 작게 */
    .divider {
        height: 16px;
    }
}

/* 본문 */
.reader-body {
    margin-top: 40px;
}

.reader-text {
    line-height: 1.9;
    font-size: 1.1rem;
}

/* =========================================
   쉽게 읽기 모달 : 모바일 반응형 최적화
========================================= */

/* 기본(PC) */
.reader-modal {
    padding-top: 0;
}

.easy-reader-toolbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    border-radius: 22px;
    padding: 12px 18px;
    background: rgba(240, 240, 240, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99999;
}

/* 본문 */
.reader-inner {
    padding: 120px 20px 50px;
}

.reader-body {
    margin-top: 40px;
}

.reader-text {
    font-size: 1.15rem;
    line-height: 1.85;
}


/* =========================================
    모바일 최적화 (MAX 767.98px)
========================================= */
@media (max-width: 767.98px) {

    .easy-reader-toolbar {
        top: 10px;
        max-width: 94%;
        padding: 6px 10px;
        gap: 12px;
    }

    /* 버튼 크기 ↓ */
    .tool-btn,
    .close-btn {
        width: 30px;
        height: 30px;
    }

    /* 텍스트 크기 ↓ */
    .tool-label,
    .tool-text {
        font-size: 12px;
    }

    /* 그룹 간격 ↓ */
    .tool-group {
        gap: 5px;
    }

    /* 속도 배지 ↓ */
    .speed-badge {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* 구분선 ↓ */
    .divider {
        height: 14px !important;
    }

    /* 본문 여백 증가 – 더 모바일 친화적 */
    .reader-inner {
        padding: 90px 16px 40px;
    }

    .reader-body {
        margin-top: 20px;
    }

    /* 제목 크기 ↓ */
    .reader-body h2,
    .reader-body h3 {
        font-size: 1.35rem;
    }

    .reader-body h4 {
        font-size: 1.1rem;
    }

    /* 본문 폰트는 조금 크게 (가독성 ↑) */
    .reader-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* 대표 아이콘 간격 처리 */
    .reader-body img {
        max-width: 120px;
    }
}

.detail-btn {
    display: flex;
    /* 플렉스 레이아웃 */
    justify-content: space-between;
    /* 왼쪽 텍스트 ↔ 오른쪽 화살표 */
    align-items: center;
    width: 200px;
    /* 버튼 넓이 필요. 원하는 값으로 조정 가능 */
    padding: 12px 28px;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.25s ease;
}

[data-bs-theme="dark"] .detail-btn {
    background-color: #fff;
    color: #000;
}

.detail-btn .arrow {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.detail-btn .arrow img {
    height: 20px;
}

.detail-btn:hover {
    background-color: #000;
    /* hover 시 좀 더 진하게 */
}

[data-bs-theme="dark"] .detail-btn:hover {
    background-color: #fff;
}

.detail-btn:hover .arrow {
    transform: translateX(4px);
    /* 화살표 오른쪽으로 살짝 이동 */
}

[data-bs-theme="dark"] .detail-btn .arrow {
    content: url(../images/main/icon_btn_arrow_dark.png);
}

.recipe-steps {
    counter-reset: step;
}

.recipe-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.recipe-steps li::before {
    content: counter(step);
    position: absolute;
    left: 10px;
    top: 0.15em;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}