/* ui */
#gnb_1dul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
}

#gnb_1dul .gnb_1dli {
    text-align: center;
}

#gnb_1dul .gnb_1da {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    color: #111;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

#gnb_1dul .gnb_icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f5faf5;
    overflow:hidden
}

#gnb_1dul .gnb_icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#gnb_1dul .gnb_1da:hover .gnb_text {
    color: #d91c24;
}



/* 기본 서브 */
.is-sub #container_wr {
    max-width: var(--renewal-width);
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}
.is-sub #container {
    width:100%;
    padding-right:30px;
    border-right:1px solid #e7f3ff
}

/* 본문 */
.is-sub #container #content {
    min-width: 0;
}

/* 우측 사이드 */
.sub-sidebar {
    width: 260px;
}

/* 메인만 100% */
.is-main #container {
    max-width: none;
    width: 100%;
    padding: 0 10px;
    display: block;
}
.is-main #aside {
    display:none
}


/* head */
.today-date-box {
    position: absolute;
    right: 24px;
    top: 35px;
    text-align: right;
    line-height: 1.35;
    white-space: nowrap;
}
.today-date-box span {
    display: block;
    font-size: 12px;
    color: #888;
    font-family: Georgia, serif;
    margin-bottom:5px
}
.today-date-box strong {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #111;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* 헤더 기준점 */
#hd_wrapper,
#hd {
    position: relative;
}

/* 모바일에서는 숨김 */
@media (max-width: 768px) {
    .today-date-box {
        display: none;
    }
}



/* .main-hero-banner {
    position: relative;
    max-width: 880px;
    height: 110px;
    margin: 34px auto 44px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.main-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease,
        transform 1.2s ease;
}
.main-hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}
.main-hero-slide strong {
    display: block;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.045em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.main-hero-slide span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}



.main-hero-urticaria {
    background:
        linear-gradient(90deg, rgba(173, 152, 110, 0.72), rgba(173, 152, 110, 0.18)),
        url("/img/banner/banner_01.png") center / cover no-repeat;
}

.main-hero-rhinitis {
    background:
        linear-gradient(90deg, rgba(42, 88, 70, 0.72), rgba(42, 88, 70, 0.18)),
        url("/img/banner/banner_02.png") center / cover no-repeat;
    background-size: 110%;
}

.main-hero-hemorrhoid {
    background:
        linear-gradient(90deg, rgba(92, 64, 48, 0.72), rgba(92, 64, 48, 0.18)),
        url("/img/banner/banner_03.png") center / cover no-repeat;
} */

/* ==========================================
   메인 상단 칼럼 배너
========================================== */

.main-top-grid .main-hero-banner {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 130px;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 18px;
    background: #fff5ef;
    box-shadow: inset 0 0 0 1px rgba(30, 40, 60, 0.04);
}

/* 공통 슬라이드 */
.main-top-grid .main-hero-slide {
    --hero-accent: #bc594b;
    --hero-title: #392c2a;
    --hero-muted: #846c65;
    --hero-surface: #fff5ef;
    --hero-image: url("/img/banner/banner_01.png");

    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 36px;
    overflow: hidden;

    color: var(--hero-title);
    background: var(--hero-surface);
    text-decoration: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

/* 사진 + 문구 영역으로 이어지는 부드러운 페이드 */
.main-top-grid .main-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            90deg,
            var(--hero-surface) 0%,
            var(--hero-surface) 38%,
            transparent 79%
        ),
        var(--hero-image);
    background-position: center, right center;
    background-size: cover, cover;
    background-repeat: no-repeat;

    /* transform: scale(1.035);
    transition: transform 5.5s ease-out; */
    transform: none;
}

/* 우측 하단 바로가기 아이콘 */
.main-top-grid .main-hero-slide::after {
    content: "↗";
    position: absolute;
    right: 22px;
    bottom: 20px;
    z-index: 1;

    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;

    color: var(--hero-accent);
    background: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.main-top-grid .main-hero-slide.active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

/* .main-top-grid .main-hero-slide.active::before {
    transform: scale(1);
} */

/* 제목 */
.main-top-grid .main-hero-slide strong {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 72%;
    margin: 0;

    color: var(--hero-title);
    font-size: clamp(17px, 1.45vw, 20px);
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: -0.045em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-shadow: none;
}

/* 칼럼 바로가기 */
.main-top-grid .main-hero-slide span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;

    color: var(--hero-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    opacity: 1;
    text-shadow: none;
}

.main-top-grid .main-hero-slide span::before {
    content: "";
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--hero-accent);
}

/* 주제별 색상 */
.main-top-grid .main-hero-urticaria {
    --hero-accent: #cf7563;
    --hero-title: #44312d;
    --hero-muted: #8e7067;
    --hero-surface: #fff3eb;
    --hero-image: url("/img/banner/main_banner_01.png");
}

.main-top-grid .main-hero-rhinitis {
    --hero-accent: #5c91ce;
    --hero-title: #263d55;
    --hero-muted: #68829b;
    --hero-surface: #edf5ff;
    --hero-image: url("/img/banner/main_banner_02.png");
}

.main-top-grid .main-hero-hemorrhoid {
    --hero-accent: #9273c4;
    --hero-title: #423353;
    --hero-muted: #84728e;
    --hero-surface: #f5effc;
    --hero-image: url("/img/banner/main_banner_03.png");
}
.main-top-grid .main-hero-health {
    --hero-accent: #499c80;
    --hero-title: #29483d;
    --hero-muted: #668779;
    --hero-surface: #edf8f3;
    --hero-image: url("/img/banner/main_banner_04.png");
}


@media (hover: hover) {
    .main-top-grid .main-hero-slide:hover::after {
        background: #fff;
        transform: translate(2px, -2px);
    }

    .main-top-grid .main-hero-slide:hover span {
        color: var(--hero-accent);
    }
}

.main-top-grid .main-hero-slide:focus-visible {
    outline: 3px solid var(--hero-accent);
    outline-offset: -4px;
}

/* 태블릿 */
@media (max-width: 1100px) {
    .main-top-grid .main-hero-banner {
        min-height: 150px;
    }
}

/* 모바일 */
@media (max-width: 767px) {
    .main-top-grid .main-hero-banner {
        min-height: 150px;
        border-radius: 16px;
    }

    .main-top-grid .main-hero-slide {
        padding: 22px 24px;
    }

    .main-top-grid .main-hero-slide strong {
        max-width: 78%;
        font-size: 17px;
        line-height: 1.5;
    }

    .main-top-grid .main-hero-slide span {
        margin-top: 9px;
        font-size: 11px;
    }

    .main-top-grid .main-hero-slide::after {
        right: 14px;
        bottom: 14px;
        width: 28px;
        height: 28px;
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-top-grid .main-hero-slide,
    .main-top-grid .main-hero-slide::before,
    .main-top-grid .main-hero-slide::after {
        transition: none;
    }

    .main-top-grid .main-hero-slide::before {
        transform: none;
    }
}

/* ==============================
   Main Intro Section
============================== */



/* ==============================
   Main 2 Column Grid
============================== */

.main-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: var(--renewal-gap);
    margin: 0 auto;
}

.main-content-grid .main-board-box,
.main-content-grid .main-gallery-box {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}


/* ==============================
   Common Board Box
============================== */

.main-board-box {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 16px;
    overflow: hidden;
    /* margin-bottom: 10px; */
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.main-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    /* background: #fafafa; */
}

.main-board-head strong {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.main-board-body {
    padding: 20px 20px 30px;
    text-align: center;
}

.main-board-body ul {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-board-body li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    font-size: 15px;
    line-height: 1.6;
    padding: 2px 0;
}

.main-board-body li::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    /* background: #7ef03d; */
    background: #d91c24;
    flex-shrink: 0;
}

.main-board-body li a {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #595b59;
    text-align: left;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.main-board-body li a:hover {
    color: #000;
    text-decoration: underline;
}

.main-board-body li a + span,
.main-cate-panel li span {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

.main-board-body li.empty,
.main-cate-panel li.empty {
    color: rgba(0, 0, 0, 0.5);
}

.main-board-body li.empty::before,
.main-cate-panel li.empty::before {
    display: none;
}


/* ==============================
   Tab Board
============================== */

.main-tab-board .main-board-head {
    align-items: center;
}

.main-cate-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.main-cate-tab {
    position:relative;
    border: 0;
    background: transparent;
    color: #666;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    cursor: pointer;
}
.main-cate-tab::before {
    content: "";
    display: none;
    position: absolute;
    top: 7px;
    right: -4px;
    width: 1px;
    height: 15px;
    -webkit-transform: skewX(-15deg);
    -ms-transform: skewX(-15deg);
    transform: skewX(-15deg);
    background-color: #ddd;
}

.main-cate-tab:hover {
    color: #d91c24;
}

.main-cate-tab.active {
    /* background: #d91c24; */
    color: #000;
    font-weight: 600;
}

.main-cate-panel {
    display: none;
}

.main-cate-panel.active {
    display: block;
}

.main-cate-panel ul {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ==============================
   More Button
============================== */

.main-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 42px;
    margin-top: 34px;
    padding: 0 24px;
    border: 1px solid #f9f9f9;
    background: #fafafa;
    border-radius: 999px;
    color: #111;
    font-size: 15px;
    text-decoration: none;
    transition: 0.25s;
}

.main-more-link::after {
    content: "›";
    margin-left: 12px;
    font-size: 20px;
    line-height: 1;
    margin-top: -6px;
}

.main-more-link:hover {
    background: #d91c24;
    border-color: #d91c24;
    color: #fff;
}


/* ==============================
   Gallery Box
============================== */

.main-gallery-box {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.main-gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.main-gallery-box .main-more-link {
    position: absolute;
    top: 0;
    right: 20px;
}

.main-gallery-item {
    display: block;
    text-decoration: none;
}

.main-gallery-item .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 3px;
    background: #f3f3f3;
}

.main-gallery-item .thumb img,
.main-gallery-item .thumb .youtube-thumb {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.main-gallery-item .thumb .youtube-thumb-wrap {
    display: block;
    width: 100%;
    height: 100%;
}

.main-gallery-item p {
    margin-top: 8px;
    font-size: 14px;
    color: #3a3a3a;
    font-weight: 600;
    letter-spacing: -0.7px;
}


/* ==============================
   Notice
============================== */

.health-notice {
    /* display:none;
    width: 1000px;
    max-width: calc(100% - 30px);
    margin: 0 auto; */
    padding: 15px 20px;
    /* background: #f9fbfd; */
    color: #9099a2;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    letter-spacing: -0.03em;
    border-radius: 1rem;
    margin-bottom:20px
}


/* ==============================
   Responsive
============================== */

@media (max-width: 900px) {
    /* .main-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    } */
}


/* ==============================
   Trislab Style Main Tab Board
   left thumbnail list + right text list
============================== */

.main-trislab-body {
    padding: 18px 22px 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* 왼쪽 박스를 세로 방향으로 구성 */
.main-trislab-board {
    display: flex;
    flex-direction: column;
}

/* 활성 패널이 남는 높이를 채우도록 */
.main-trislab-board .main-cate-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 페이지 버튼을 아래쪽으로 정렬 */
.main-trislab-board .main-trislab-bottom-nav {
    margin-top: auto;
}

.main-trislab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.main-trislab-thumb-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.main-trislab-thumb-item {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.main-trislab-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f3f3;
    border: 1px solid #eee;
}

.main-trislab-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}



.main-trislab-thumb-text {
    min-width: 0;
}
.main-trislab-thumb-text p {
    margin: 0;
    color: #222;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.025em;
    word-break: keep-all;
    overflow-wrap: anywhere;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.main-trislab-thumb-text span {
    /* display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999; */
    display:none;
}
.bottom-area {
    border-top: 1px solid #f4f4f4;
    padding: 22px 0 0;
    margin-top: 30px;
}


.main-trislab-text-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-trislab-text-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.5;
}

.main-trislab-text-list li::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    /* background: #7ef03d; */
    background: #d91c24;
    flex-shrink: 0;
}

.main-trislab-text-list li a {
    flex: 1;
    min-width: 0;
    color: #333;
    font-size: 17px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    letter-spacing: -0.025em;
}

.main-trislab-text-list li span {
    /* flex-shrink: 0;
    font-size: 12px;
    color: #999; */
    display:none;
}

.main-trislab-thumb-item:hover img {
    transform: scale(1.04);
}

.main-trislab-thumb-item:hover .main-trislab-thumb-text p,
.main-trislab-text-list li a:hover {
    color: #d91c24;
    text-decoration: underline;
}

.main-trislab-text-list li.empty {
    color: #999;
}

.main-trislab-text-list li.empty::before {
    display: none;
}

.main-trislab-board .main-more-link {
    display: flex;
    width: 180px;
    margin: 0 auto;
}


/* ==============================
   Random Recommendation Slider
============================== */

.main-random-card-box {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.main-random-card-box .main-board-head {
    background: #fff;
    padding: 20px 22px 10px;
}

.main-random-card-box .main-board-head strong {
    color: #000;
}

.main-random-slider {
    overflow: hidden;
    padding: 12px 12px;
}

.main-random-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.main-random-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding:0 12px
}

.main-random-slide a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* .main-random-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid #eee;
} */
.main-random-thumb {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid #eee;
}

.main-random-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.main-random-text {
    padding-top: 14px;
}

.main-random-text h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.045em;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-random-text p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #777;
    letter-spacing: -0.035em;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-random-slide a:hover .main-random-thumb img {
    transform: scale(1.04);
}

.main-random-slide a:hover h3 {
    color: #d91c24;
}

.main-random-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: auto;
    padding: 22px 0;
}

.main-random-nav button {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #555;
    /* font-size: 24px;
    line-height: 1; */
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.main-random-nav button:hover {
    border-color: #d91c24;
    color: #d91c24;
}
.main-random-nav button .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-random-nav button .icon i {
    font-size:16px;
    line-height:20px;
    color:#888
}

.main-random-count {
    font-size: 1rem;
    color: #c9c9c9;
}

.main-random-count b {
    color: #737373;
    font-weight: 700;
}

.main-random-count em {
    font-style: normal;
}

.main-random-empty {
    padding: 40px 0;
    color: #999;
    font-size: 14px;
    text-align: center;
}


.main-trislab-page {
    display: none;
}

.main-trislab-page.active {
    display: block;
}

.main-cate-divider {
    color: #d5d5d5;
    font-size: 14px;
    margin: 0 4px;
}

.main-trislab-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    /* border-top: 1px solid #f0f0f0; */
}

.main-trislab-page-prev,
.main-trislab-page-next {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #555;
    /* font-size: 24px;
    line-height: 1; */
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.main-trislab-page-prev:hover,
.main-trislab-page-next:hover {
    border-color: #d91c24;
    color: #d91c24;
}

.main-trislab-page-prev .icon,
.main-trislab-page-next .icon {
    display:flex;
    align-items: center;
    justify-content: center;
}
.main-trislab-page-prev .icon i,
.main-trislab-page-next .icon i {
    font-size:16px;
    line-height:20px;
    color:#888
}

.main-trislab-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 38px;
    padding: 0 20px;
    background: #fafafa;
    border-radius: 999px;
    color: #111;
    font-size: 15px;
    text-decoration: none;
    transition: .25s;
}

.main-trislab-more-link::after {
    content: "›";
    margin-left: 10px;
    font-size: 20px;
    line-height: 1;
    margin-top: -5px;
}

.main-trislab-more-link:hover {
    background: #d91c24;
    color: #fff;
}



.main-trislab-page-count {
    font-size: 1rem;
    color: #c9c9c9;
}

.main-trislab-page-count b {
    color: #737373;
    font-weight: 700;
}

.main-trislab-page-count em {
    font-style: normal;
}

.main-tab-more-list {
    margin-left: auto;
    flex-shrink: 0;
}

.main-tab-more {
    display: none;
    font-size: 14px;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
}

.main-tab-more.active {
    display: inline-flex;
    align-items: center;
}

.main-tab-more::after {
    content: "›";
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
    margin-top: -3px;
    text-decoration: none;
}

.main-tab-more:hover {
    color: #d91c24;
    /* text-decoration: underline; */
}
.main-tab-more:hover::after {
    text-decoration: none;
}

/* 추가 */
/* .main-tab-more {
    text-decoration: none;
}

.main-tab-more:hover {
    text-decoration: none;
} */

.main-tab-more:hover .main-tab-more-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* .main-tab-more::after {
    content: "›";
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
    margin-top: -3px;
    text-decoration: none;
} */













/* aside */
#aside {
    width: 100%;
    margin:0;
    position:static;
    height:auto
}
.aside-post-box {
    /* margin-bottom: 28px; */
    padding: 20px 0;
    border-radius: 8px;
    /* background: #fff; */
}
.aside-post-box h3 {
    margin: 0 0 15px;
    font-size: 15px;
    font-weight: 700;
}
.aside-post-box ul {
    margin: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}
.aside-post-box li {
    position:relative;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.45;
    padding:0 20px;
    /* border-bottom:1px solid #e7f3ff; */
    background:#fafafa;
    transition: ease-in-out .3s;
}
.aside-post-box li:hover {
    /* background:#feffe7; */
    /* background: linear-gradient(135deg, #fff4f4 0%, #ffecef 55%, #fff8f2 100%); */
    background: linear-gradient(135deg, #fff7f7 0%, #fff0f2 55%, #fffaf5 100%);
}
.aside-post-box li:hover a {
    font-weight:600
}
/* .aside-post-box li::before {
    content: counter(post-num);
    position: absolute;
    left: 10px;
    top: 50%;
    font-weight: 700;
    color: #111;
    transform: translateY(-50%);
    background: #fff;
    width: 24px;
    height: 24px;
    text-align: center;
    border-radius: 15px;
    line-height: 21px;
    font-size: 12px;
    border:1px solid#f2eaea
} */
.aside-post-box li:last-child {
    border:none
}
.aside-post-box li a {
    position:relative;
    color: #222;
    text-decoration: none;
    display:flex;
    flex-direction: column;
    /* padding-top:25px; */
    /* text-indent:25px; */
}
/* .aside-post-box li a span {
    display:inline-block;
    float:left;
    margin:0;
    font-size:11px;
    background:#fff1f2;
    position:absolute;
    top:0;
    padding:3px 10px;
    border-radius:3px;
    display:none
} */
.aside-cate {
    display: inline-block;
    margin-right: 5px;
    color: #e60012;
    font-size: 12px;
    font-weight: 700;
    display:none
}
.aside-popular ul {
    /* counter-reset: rank; */
}

.aside-popular ul li {
    position: relative;
    /* padding-left: 40px; */
    padding:0;
    font-size:14px;
    background:#fff;
    border:none;
    letter-spacing: -0.23px;
    border-radius:12px;
    /* counter-increment: rank; */
    transition: ease-in-out .3s
}

.aside-popular ul li:hover {
    background: linear-gradient(135deg, #fff7f7 0%, #fff0f2 55%, #fffaf5 100%);
}
.aside-popular ul li:hover a {
    font-weight:600
}
.aside-popular ul li::before {
    /* content: counter(rank); */
    position: absolute;
    left: 10px;
    top: 15px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #fff;
    border:1px solid#f2eaea;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    z-index:23
    /* transform: translateY(-50%); */
}
.aside-popular ul li:nth-child(1)::before {
    color:#e60012;
}
.aside-popular ul li:nth-child(2)::before {
    color:#e60012;
}
.aside-popular ul li:nth-child(3)::before {
    color:#e60012;
}
.aside-popular ul li:nth-child(n+4)::before {
    background:#fff;
    color:#888
}
/* 실제 순위 번호 고정 */
.aside-popular ul li:nth-child(1)::before { content: "1"; }
.aside-popular ul li:nth-child(2)::before { content: "2"; }
.aside-popular ul li:nth-child(3)::before { content: "3"; }
.aside-popular ul li:nth-child(4)::before { content: "4"; }
.aside-popular ul li:nth-child(5)::before { content: "5"; }
.aside-popular ul li:nth-child(6)::before { content: "6"; }
.aside-popular ul li:nth-child(7)::before { content: "7"; }
.aside-popular ul li:nth-child(8)::before { content: "8"; }
.aside-popular ul li:nth-child(9)::before { content: "9"; }
.aside-popular ul li:nth-child(10)::before { content: "10"; }

.aside-post-box.aside-latest {

}
/* .aside-post-box.aside-popular ul {
    max-height: 210px;
    overflow-y: hidden;
    padding-right: 4px;
} */
.aside-post-box.aside-latest ul {
    max-height: 310px;
    overflow-y: hidden;
    padding-right: 4px;
}
/* .aside-post-box.aside-popular:hover ul, */
.aside-post-box.aside-latest:hover ul {
    overflow-y: auto;
}
/* .aside-popular ul li, */
.aside-latest ul li {
    display:flex;
    align-items: center;
    height:70px;
    letter-spacing: -0.23px;
    border-radius:12px
}
.aside-latest ul li {
    margin-bottom:10px;
}
/* .aside-popular ul li:hover, */
.aside-latest ul li:hover {
    letter-spacing: -0.23px;
}

.aside-latest ul li a:hover {
    text-decoration: underline;
}

/* .aside-latest .aside-desc,
.aside-recommend .aside-desc {
  display: none;
} */

/* 기본적으로 사이드 본문 요약은 숨김 */
#aside .aside-desc {
  display: none;
}

/* PC 인기글 active에서만 본문 요약 노출 */
#aside .aside-post-box.aside-popular.popular-pc-rolling li.is-active .aside-desc {
  display: block;
}

.aside-post-box .empty {
    color: #aaa;
}
#bo_sch {
    border:0
}
.aside-post-box.aside-popular ul::-webkit-scrollbar,
.aside-post-box.aside-latest ul::-webkit-scrollbar {
  width: 6px;
}
.aside-post-box.aside-popular ul::-webkit-scrollbar-thumb,
.aside-post-box.aside-latest ul::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.aside-post-box.aside-popular ul::-webkit-scrollbar-thumb,
.aside-post-box.aside-latest ul::-webkit-scrollbar-track {
  background: transparent;
}

/* 자동 롤링 */
/* .aside-post-box.aside-popular ul {
  scroll-behavior: smooth;
} */
.aside-post-box.aside-popular li {
  transition: background-color 0.3s ease;
}
.aside-post-box.aside-popular li a {
  /* display: block; */
  /* padding: 8px 10px; */
}
/* 현재 강조되는 글 */
.aside-post-box.aside-popular li.is-active {
  /* background: #fbf7ff; */
  /* background: linear-gradient(135deg, #f3ecff 0%, #fff0f8 60%, #fff8fb 100%); */
  background: linear-gradient(135deg, #fff4f4 0%, #ffecef 55%, #fff8f2 100%);
  /* border:1px solid #fbe9ec */
}

.aside-post-box.aside-popular li.is-active a {
  color: #d91c24;
  font-weight: 700;
}



/* PC 많이 읽은 글 TOP10 - 2개씩 롤링 */
#aside .aside-post-box.aside-popular.popular-pc-rolling {
  overflow: hidden;
}

#aside .aside-post-box.aside-popular.popular-pc-rolling ul {
  position: relative;
  overflow: hidden;
}

#aside .aside-post-box.aside-popular.popular-pc-rolling li {
  display: none;
  margin-bottom:10px;
  /* background:#fafafa; */
  transform: translate3d(0, 12px, 0);
  opacity: 0;
}

#aside .aside-post-box.aside-popular.popular-pc-rolling li.is-visible {
  display: flex;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: popularItemIn 0.55s cubic-bezier(0.19, 1, 0.22, 1) both;
}

#aside .aside-post-box.aside-popular.popular-pc-rolling li.is-active {
  /* background: #fbf7ff; */
  background: linear-gradient(135deg, #fff4f4 0%, #ffecef 55%, #fff8f2 100%);
}
#aside .aside-post-box.aside-popular.popular-pc-rolling li.is-active a {
  animation: popularTextUp 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* #aside .aside-post-box.aside-popular li.is-active a {
  animation: popularTextUp 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
} */

@keyframes popularItemIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes popularTextUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* PC 인기글 롤링 - 제목/본문 구조 */
#aside .aside-post-box.aside-popular.popular-pc-rolling li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  text-decoration: none;
}

#aside .aside-post-box.aside-popular.popular-pc-rolling .aside-cate {
  display: none;
}

#aside .aside-post-box.aside-popular.popular-pc-rolling .aside-title {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 15px 16px;
  border-radius: 12px;
  text-indent: 21px;
}
#aside .aside-post-box.aside-popular.popular-pc-rolling .aside-title:hover {
    text-decoration: underline;
}
#aside .aside-post-box.aside-popular.popular-pc-rolling .aside-desc {
  display: none;
  margin-top: 0;
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.45;
  color: #ff7070;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  height: auto;
  margin: 1rem;
}

/* active 된 글에서만 본문 요약 노출 */
#aside .aside-post-box.aside-popular.popular-pc-rolling li.is-active .aside-desc {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  animation: popularDescUp 0.75s cubic-bezier(0.19, 1, 0.22, 1) both;
}
#aside .aside-post-box.aside-popular.popular-pc-rolling li.is-active .aside-title {
    border: 1px solid #e349a7;
    /* background:#fff; */
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #d91c24 0%, #ff6b6f 45%, #f3969b 100%) border-box;

    color: #d91c24;
    box-shadow:
        0 2px 5px rgba(217, 28, 36, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
/* active 된 글은 본문이 들어가니까 높이 조금 키움 */
#aside .aside-post-box.aside-popular.popular-pc-rolling li.is-active {
  min-height: 95px;
}

/* active 아닌 글은 제목만 */
#aside .aside-post-box.aside-popular.popular-pc-rolling li.is-visible:not(.is-active) {
  /* min-height: 60px; */
}

@keyframes popularDescUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}








/* webzine */
/* .webzine-wrap #bo_gall .gall_li {
    border:1px solid #e8ebf7;
    border-radius: 1rem;
    background:#fff;
}
.webzine-wrap #bo_gall .gall_box {
    margin:0;
}
.webzine-wrap #bo_gall .gall_con {
    display:flex;
    flex-direction: column;
    height:100%;
}
.webzine-wrap #bo_gall .gall_con .gall_con_web {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding:1rem 1rem;
    border-bottom: 1px solid #e8ebf7;
}
.webzine-wrap #bo_gall #gall_ul {
    display:flex;
    justify-content: space-between;
    align-items: flex-start;
    margin:0;
    flex-wrap: wrap;
}
.webzine-wrap .gall_row .col-gn-2 {
    width:calc(100% / 2 - 15px);
    margin:0;
    padding:0;
    margin-bottom:30px
}
.webzine-wrap #bo_gall #gall_ul::after {
    display:none
}
.webzine-wrap #bo_gall .gall_img {
    width: 140px;
    height: 90px !important;
    flex: 0 0 140px;
    border:0
}
.webzine-wrap #bo_gall .gall_img a {
    display: block;
    width: 100%;
    height: 100%;
}
.webzine-wrap #bo_gall .gall_img a .no_image {
    width:90px;
    height:90px;
    border-radius:50%;
    overflow: hidden;
    line-height: 90px !important;
    font-size: 12px;
    background: #f0f4f6;
}
.webzine-wrap #bo_gall .gall_img img, 
.webzine-wrap #bo_gall .gall_img video {
    object-fit: cover;
    height:100% !important;
}
.webzine-wrap #bo_gall .gall_text_href {
    margin:0;
}
.webzine-wrap #bo_gall .gall_text_href a {
    display:flex;
    align-items: center;
    font-size:17px;
    line-height:1.4;
    font-weight:600;
    color:#333;
    letter-spacing: -0.03em;
}
.webzine-wrap #bo_gall .gall_text_href a i {
    position:absolute;
    top:20px;
    right:20px;
    font-size:12px;
    color:#e72665
}
.webzine-wrap #bo_gall .gall_info {
    width:100%;
    height:50px;
    line-height: 50px;
    padding: 0 20px;
    background: #fafbff;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
}
.webzine-wrap #bo_gall .bo_tit .new_icon {
    font-size:0.527em;
    position: absolute;
    top: 10px;
    left: 146px;
    border-radius: 8px;
}
.webzine-wrap #bo_gall .bo_cnt {
    padding: 0;
    margin:20px;
    font-size: 14px;
    line-height:1.4;
    color: #758a9e;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
} */

.writer-signature{
    margin-top:40px;
    padding:20px;
    border-radius:16px 16px 0 0;
    background:#fbfbfb;
    font-size:13px;
    font-weight:600;
    line-height:1.8;
    color:rgba(0 0 0 / 50%);
    border:1px solid #f4f4f4;
}
.writer-profile{
    margin-top:0;
    padding:24px;
    border-radius:0 0 16px 16px;
    background:#fbfbfb;
    border:1px solid #f4f4f4;
    border-top:0;
    font-size:14px;
    line-height:1.7;
    color:rgba(0 0 0 / 55%);
    margin-bottom:30px;
}


/* 넓은 PC 화면에서만 sticky */
@media (min-width: 1400px) and (min-height: 880px) {
  #aside {
    position: sticky;
    top: 0;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .aside-post-box.aside-latest ul {
    max-height: 240px;
  }

  /* Firefox에서만 스크롤바 숨김 */
  @supports (-moz-appearance: none) {
    #aside,
    .aside-post-box.aside-latest ul {
      scrollbar-width: none;
    }
  }

  /* Chrome, Edge */
  #aside::-webkit-scrollbar,
  .aside-post-box.aside-latest ul::-webkit-scrollbar {
    width: 6px;
  }

  #aside::-webkit-scrollbar-thumb,
  .aside-post-box.aside-latest ul::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }

  #aside::-webkit-scrollbar-track,
  .aside-post-box.aside-latest ul::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* 모바일 */
@media (max-width: 768px) {
    
}




/* reset */
#gnb #gnb_1dul li:last-child {
    float:right;
}
#gnb .gnb_mnal {
    display:none
}
.cmt_btn span.total::after {
    background:#d91c24
}
.cmt_btn span.total {
    color:#d91c24
}
.bo_v_cate {
    background:#f5fbec;
    color:#A8C918;
}
.tbl_wrap table, .tbl_head01 thead th {
    border:none;
}
.tbl_head01 thead th, .tbl_head01 thead th a {
    color:rgba(0 0 0 / 50%)
}
#bo_v_share .btn {
    visibility: hidden;
}
#bo_v_info {
    border:none !important
}
.more_opt li i {
    margin-left:10px
}
/* #top_btn:hover {
  border-color: #ff1720;
  background: #ff1720;
} */
#bo_list_total {
    margin-left:20px
}
.se2_quote3 {
    padding: 1.2rem !important;
    border-radius: 12px;
    border-color: #fdf0f1 !important;
    background: #fff9f9;
    border-style: solid !important;
    font-weight: bold;
}
.se2_quote4 {
    font-weight:600;
    padding:1.2rem !important;
    border-width:2px !important;
    background:rgba(217, 236, 176, 0.07);
    border-radius:12px
}
.se2_quote5 {
    font-weight: 600;
    padding: 1.2rem !important;
    border-width: 1px !important;
    background: rgba(233, 170, 203, 0.05) !important;
    border-radius: 12px;
    border-color: #ffeaf5 !important;
    border-style: solid !important;
}
/* .se2_quote8 {
    padding:1.2rem !important;
    border-radius:12px;
    border-color: #fdf0f1 !important;
    background: #fff9f9 !important;
    border-width:2px !important;
    font-weight:600;
} */
.se2_quote10 {
    padding:1.2rem !important;
    border-radius:12px;
    background:#fff9fe !important;
    border-color:#f7eefd !important
}
.se2_quote8 {
    position: relative;
    z-index: 0;
    padding: 1.2rem !important;
    border-radius: 12px;
    border: 0 !important;
    background: #fff9f9 !important;
    font-weight: 600;
    overflow: hidden;
}

.se2_quote8::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        #fdf0f1,
        #ffd9dc,
        #f3a0a6,
        #ffd9dc,
        #fdf0f1
    );
    animation: quoteBorderSpin 6s linear infinite reverse;
}

.se2_quote8::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 10px;
    background: #fff9f9;
}

@keyframes quoteBorderSpin {
    to {
        transform: rotate(360deg);
    }
}

.se2_quote9 {
    padding:1.2rem !important;
    border-radius:12px;

    border-color: #fdf0f1 !important;
    background: #fff9f9;
}
.se2_quote9 p {
    color:rgb(233,125,129) !important;
    font-weight:600;
}




/* gallery */
.youtube-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 20px 0 30px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}
.youtube-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}
.youtube-thumb-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.youtube-thumb-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 38px;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, .9);
    border-radius: 12px;
    pointer-events: none;
    transition: .25s;
}
.youtube-thumb-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #fff;
    z-index: 2;
    pointer-events: none;
}
.youtube-thumb-wrap:hover::after {
    transform: translate(-50%, -50%) scale(1.08);
}
#bo_gall .gall_img {
    border-radius: 7px;
}
#bo_gall .gall_img a {
    display: block;
    width: 100%;
    height: 100%;
}
#bo_gall .gall_img .youtube-thumb-wrap {
    display: block;
    width: 100%;
    height: 100%;
}
#bo_gall .gall_img .youtube-thumb-wrap img.youtube-thumb {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

#bo_v_atc img, #bo_v_atc p img {
    display: block;
    max-width: min(100%, 720px);
    height: auto;
    margin: 24px 0;
}
#bo_gall .gall_img img, #bo_gall .gall_img video {
    width:100%
}
#bo_v_atc img[src*="comic"] {
    max-width: 100%;
}
#bo_v_atc p.comic img {
    max-width:100%
}


/* mobile */
.owl-carousel .owl-item img{
    border-radius:6px
}
.lt {
    margin:15px 0;
    border-radius:10px;
    overflow:hidden;
}
.lt ul {
    border:none
}
.lt ul li {
    border:none
}
.lt .lt_more {
    display:none
}
.lt .lt_title {
    padding:15px 15px 15px
}

#container_title{
    box-shadow:none;
    background: #fafbff;
    /* border: 1px solid #f3f4fd; */
    padding: 2rem 1.5rem;
    border-radius: 16px;
}
#ol_after_hd {
    background:none
}
#ol_after_hd strong {
    color:#000
}
#ol_after_private {
    background:#fff;
    padding:0;
    width:calc(100% - 20px);
    margin:15px auto;
    border-radius:10px;
    border:none;
}
#ol_after_private li {
    border:none
}





#ol_after_hd .btn_admin {
    color:#000;
    background:none;
}
#ol_after_btn a {
    color:#000;
    background:none;
    padding:0;
    margin-right:20px
}
.gnb_2dul {
    padding:1rem 0;
    background:#fbfbfb
}
#hd_nb {
    width: calc(100% - 20px);
    margin: 15px auto;
    border-radius: 10px;
    overflow: hidden;
    border:none
}
#hd_nb .hd_nb1,#hd_nb .hd_nb2,#hd_nb .hd_nb3 {
    border:none
}


#bo_vc, .bo_vc_w {
    background:none
}

.view_is_list {
    border:none;
    margin:0
}





/* 모바일 */
@media (max-width: 768px) {


    
    .main-cate-panel ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .main-cate-panel li {
        font-size: 14px;
    } 

    #bo_cate #bo_cate_on {
    color:#d91c24
    }
    #bo_cate #bo_cate_on::after {
        background:#d91c24;
        height:1px
    }
    .bo_cate_link {
        color:#d91c24 !important;
        background:#eaeed7
    }
    #bo_v > header {
        border:none
    }
    #bo_v_info {
        color:#cdcdcd
    }
    .sv_member {
        color:#b8b8b8;
    }
    .lt .lt_date {
        color:#c7c7c7
    }
    .lt ul li:hover a.lt_tit {
        color:#d91c24
    }
    .bo_v_cate {
        background:#f5fbec;
        color:#d91c24;
    }
    
}


/* 건강 주제별 칼럼 */
.main-health-row {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: var(--renewal-gap);
    margin-top: var(--renewal-gap);
}

.main-health-box {
    min-width: 0;
    padding: 24px 22px 18px;
    border: 1px solid #eceef2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.main-health-heading h2 {
    margin: 0;
    color: #17191d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.025em;
}

.main-health-tabs {
    display: flex;
    gap: 7px;
    margin-top: 18px;
    padding: 0 0 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.main-health-tabs button {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid #e5e8ee;
    border-radius: 999px;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.main-health-tabs button:hover {
    color: #d91c24;
}

.main-health-tabs button[aria-selected="true"] {
    border-color: #ffcbd1;
    background: #fff1f3;
    color: #d91c24;
}

.main-health-panel {
    padding-top: 22px;
}

.main-health-panel[hidden] {
    display: none !important;
}

.main-health-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.main-health-card {
    min-width: 0;
}

.main-health-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.main-health-thumb {
    aspect-ratio: 8 / 5;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f5f7;
}

.main-health-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.main-health-card h3 {
    display: -webkit-box;
    margin: 12px 0 0;
    overflow: hidden;
    color: #25282d;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -.025em;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.main-health-card a:hover img {
    transform: scale(1.04);
}

.main-health-card a:hover h3 {
    color: #d91c24;
    text-decoration: underline;
}

.main-health-empty {
    margin: 0;
    padding: 40px 12px;
    color: #9299a3;
    font-size: 14px;
    text-align: center;
}

.main-health-bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.main-health-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: #888;
    font-size: 13px;
    text-decoration: none;
}

.main-health-bottom a:hover {
    color: #d91c24;
}

.main-health-tabs button:focus-visible,
.main-health-card a:focus-visible,
.main-health-bottom a:focus-visible {
    outline: 2px solid #d91c24;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .main-health-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .main-health-box {
        padding: 20px 16px 16px;
    }

    .main-health-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .main-health-card h3 {
        font-size: 15px;
    }
}

/* 중간 배너 + 주제 찾기 */
.main-discovery-row {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: var(--renewal-gap);
    margin-top: var(--renewal-gap);
}

.main-feature-banner,
.main-topic-finder,
.main-daily-keyword {
    box-sizing: border-box;
    min-width: 0;
    border: 1px solid #eceef2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .025);
}

/* 이미지 배너 임시 영역 */
.main-feature-banner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 142px;
    padding: 18px 22px;
}

.main-feature-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 160px;
    height: 98px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f3f7, #f8f9fb);
    color: #c0c9d5;
    font-size: 28px;
}

.main-feature-copy {
    min-width: 0;
}

.main-feature-copy > span {
    display: block;
    margin-bottom: 7px;
    color: #8b939f;
    font-size: 12px;
}

.main-feature-copy > strong {
    display: block;
    color: #303640;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -.025em;
    word-break: keep-all;
}

.main-feature-copy > p {
    margin: 7px 0 0;
    color: #9299a3;
    font-size: 13px;
    line-height: 1.6;
}

/* 주제 바로 찾기 */
.main-topic-finder {
    padding: 18px 20px;
}

.main-topic-finder h2 {
    margin: 0 0 12px;
    color: #24282e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.main-topic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.main-topic-badges a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f4f6f9;
    color: #616b78;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color .2s ease,
        color .2s ease;
}

.main-topic-badges a > span {
    color: #a5adba;
}

.main-topic-badges a:hover {
    background: #fff1f3;
    color: #d91c24;
}

/* 오늘의 건강 키워드 */
.main-daily-keyword {
    position: relative;
    align-self: stretch;
    padding: 22px;
    background: linear-gradient(145deg, #fff 55%, #fff8f8);
}

.main-daily-keyword-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

.main-daily-keyword-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff0f2;
    color: #ec6377;
    font-size: 20px;
}

.main-daily-keyword-heading h2 {
    margin: 0;
    color: #282c33;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.main-daily-keyword-date {
    display: block;
    margin-top: 20px;
    color: #9ca3ad;
    font-size: 12px;
}

.main-daily-keyword-word {
    margin: 7px 0 0;
    color: #303640;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.04em;
}

.main-daily-keyword-description {
    margin: 12px 0 0;
    color: #7c8591;
    font-size: 14px;
    line-height: 1.8;
    word-break: keep-all;
}

.main-daily-keyword-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: #cf4d63;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.main-daily-keyword-link:hover {
    text-decoration: underline;
}

.main-topic-badges a:focus-visible,
.main-daily-keyword-link:focus-visible {
    outline: 2px solid #d91c24;
    outline-offset: 3px;
}
@media (min-width: 768px) {
    .main-daily-keyword {
        position: relative;
        display: flex;
        flex-direction: column;
        align-self: stretch;
        padding: 22px 22px 18px;
        background: linear-gradient(145deg, #fff 55%, #fff8f8);
    }

    .main-daily-keyword-date {
        display: block;
        margin-top: 20px;
        color: #9ca3ad;
        font-size: 12px;
    }

    /* 키워드 중앙 정렬 + 넉넉한 상하 여백 */
    .main-daily-keyword-word {
        margin: 26px 0;
        color: #303640;
        font-size: 29px;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -.04em;
        text-align: center;
    }

    /* 설명 4줄 분량 확보 — 긴 설명은 자연스럽게 확장 */
    .main-daily-keyword-description {
        min-height: 7.2em;
        margin: 0;
        color: #7c8591;
        font-size: 14px;
        line-height: 1.8;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    /* 왼쪽 전체보기 링크와 하단 위치 통일 */
    .main-daily-keyword-link {
        display: inline-flex;
        align-items: center;
        align-self: flex-end;
        gap: 12px;
        margin-top: auto;
        padding: 5px 0;
        color: #cf4d63;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
        text-decoration: none;
    }

    .main-health-bottom a {
        line-height: 1.5;
    }
}
@media (max-width: 767px) {
    .main-discovery-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .main-feature-banner {
        gap: 14px;
        min-height: 120px;
        padding: 16px;
    }

    .main-feature-placeholder {
        flex-basis: 90px;
        height: 82px;
    }

    .main-feature-copy > strong {
        font-size: 16px;
    }

    .main-topic-finder,
    .main-daily-keyword {
        padding: 20px 16px;
    }
}