/**
 * insurance_personal 심플 랜딩 — 통합검색·퀵링크 전용
 * 공통 포털: /insurance_portal/css/portal.css
 */

.insurance-guide-page {
    min-height: 100vh;
    background: #ffffff;
    padding-top: 60px;
    box-sizing: border-box;
}

/* FHD 등에서 카드 갤러리 4장(220px×4+간격)이 한 줄에 들어가도록 여유 폭 */
.insurance-guide-page .portal-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 48px;
    box-sizing: border-box;
}

/* 초기(검색 전): 화면 중상단 부근에 검색·퀵링크 배치 — 구글형 */
.insurance-guide-page:not(.search-results-mode) .portal-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
}

.insurance-guide-page:not(.search-results-mode) .ip-hero-stage {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    /* 상단 텍스트 배너 제거: 검색·퀵링크에 맞게 여백만 유지 */
    padding-top: clamp(40px, 10vh, 120px);
    padding-bottom: 20px;
    box-sizing: border-box;
}

.portal-main-title-wrap {
    display: none !important; /* 동적 타이틀로 대체 */
}

/* 검색 결과 표시 중: 일반 상단 흐름 + 기존 sticky 검색바 */
.insurance-guide-page.search-results-mode .portal-wrapper {
    display: block;
    min-height: 0;
}

.insurance-guide-page.search-results-mode .ip-hero-stage {
    flex: none;
    padding-top: 0;
    padding-bottom: 0;
}

.insurance-guide-page.search-results-mode .ip-simple-main {
    margin-top: 0;
}

.portal-mobile-search-kicker {
    display: none;
    margin: 0;
}

/* 검색창 내 롤러: 1줄(힌트 바로 옆 · 추천) — .search-field-main 이 이미 돋보기 오른쪽이므로 좌 50px 패딩 없음 */
.portal-search-tips-roller {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 2;
    width: 100%;
    min-width: 0;
    pointer-events: none;
    padding: 0 2px 0 0;
    box-sizing: border-box;
}

.portal-search-roll {
    min-width: 0;
    width: 100%;
    transition: opacity 0.25s ease;
}

.portal-search-roll__line {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.25;
}

/* 힌트만 줄어듦; tail(· 추천 버튼)은 붙어서 끌려가지 않음 */
.portal-search-roll__hint {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-search-tail {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    min-width: 0;
    margin-left: 3px;
    pointer-events: auto;
}

.portal-search-roll__sep {
    flex: 0 0 auto;
    color: #cbd5e1;
    font-weight: 300;
    user-select: none;
    margin: 0 1px 0 0;
}

.ip-roller-rec-label {
    flex: 0 0 auto;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    user-select: none;
    white-space: nowrap;
}

.ip-roller-rec-btn {
    pointer-events: auto;
    flex: 0 0 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: min(9.5rem, 34vw);
    margin: 0;
    padding: 2px 8px 2px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.ip-roller-rec-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.ip-roller-rec-btn:active {
    transform: scale(0.99);
}

.ip-roller-rec-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ip-roller-rec-btn .fa-search {
    font-size: 0.65rem;
    color: #64748b;
    flex-shrink: 0;
}

.insurance-guide-page .portal-search-section .search-field-main {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    overflow: hidden;
}

.insurance-guide-page .portal-search-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 4px 0 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.insurance-guide-page .portal-search-banner-inner {
    justify-content: center;
    width: 700px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 769px) {
    .insurance-guide-page .portal-search-section .search-wrapper {
        align-items: center;
        min-height: 48px;
        padding: 0 5px 0 16px;
    }

    .insurance-guide-page .portal-search-section .unified-search-input {
        padding: 10px 0;
    }
}

.insurance-guide-page:not(.search-results-mode) .portal-search-section .search-wrapper {
    min-height: 50px;
}

.insurance-guide-page .portal-search-section .search-wrapper {
    box-shadow: none;
    border: 2px solid #94a3b8;
    border-radius: 999px;
}

.insurance-guide-page .portal-search-section .search-wrapper:focus-within {
    box-shadow: none;
    border-color: #334155;
}

.insurance-guide-page .portal-search-section .search-wrapper:focus-within .search-icon {
    color: #334155;
}

.insurance-guide-page .portal-search-section .search-btn {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    margin: 4px 0px;
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%); /* 차분한 블랙/슬레이트 테마 적용 */
}

.insurance-guide-page .portal-search-section .search-btn:hover {
    box-shadow: none;
}

/* 검색 결과 모드 시 하단 영역·보험문의 위젯 숨김 */
.search-results-mode .ip-content-rail,
.insurance-guide-page.search-results-mode .portal-insu-qna-recent--guide {
    display: none !important;
}

.insurance-guide-page .portal-search-section .search-suggestions {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.insurance-guide-page .insurance-guide-quicklinks-strip .service-icon-item:hover,
.insurance-guide-page .insurance-guide-quicklinks-strip .service-icon-item.link-service:hover,
.insurance-guide-page .insurance-guide-quicklinks-strip .service-icon-item[data-service="calc"]:hover,
.insurance-guide-page .insurance-guide-quicklinks-strip .service-icon-item[data-type="modal"]:hover,
.insurance-guide-page .quick-menu-row .portal-services-grid .service-icon-item:hover,
.insurance-guide-page .quick-menu-row .portal-services-grid .service-icon-item.link-service:hover,
.insurance-guide-page .quick-menu-row .portal-services-grid .service-icon-item[data-service="calc"]:hover,
.insurance-guide-page .quick-menu-row .portal-services-grid .service-icon-item[data-type="modal"]:hover {
    transform: translateY(1px);
}

.insurance-guide-page .insurance-guide-quicklinks-strip .service-icon-item:hover .service-icon,
.insurance-guide-page .quick-menu-row .portal-services-grid .service-icon-item:hover .service-icon {
    transform: none;
}

.portal-search-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.portal-search-banner-inner .search-container {
    flex: 1;
    min-width: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .portal-search-banner-inner {
        gap: 12px;
    }
}

.insurance-guide-page .quick-menu-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    margin-top: 12px;
    box-sizing: border-box;
    padding: 0;
}

.insurance-guide-page .quick-menu-row .portal-services-grid {
    flex: 1;
    min-width: 0;
}

@media (min-width: 769px) {
    .quick-menu-row-mobile {
        display: none;
    }

    .insurance-guide-quicklinks-strip {
        display: none;
    }

    .insurance-guide-page .quick-menu-row {
        margin-left: 0px;
    }
}

.search-results-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 0;
    background: var(--white);
    border: none !important;
    box-shadow: none !important;
    position: relative;
    display: none;
}

.search-results-section.active {
    display: block;
}

/* 건축물대장 등: flex 자식이 가로로 밀어 넘치지 않도록 */
.insurance-guide-page .search-results-section {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.insurance-guide-page .search-results-section .results-content {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.results-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.close-results {
    background: #f1f5f9;
    border: none;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-results:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.main-content-area .search-results-section.active~* {
    display: none;
}

/* 검색 결과 모드에서도 퀵링크 표시 유지 */
.insurance-guide-page.search-results-mode .quick-menu-row {
    display: flex;
    margin-bottom: 24px;
}

.insurance-guide-page.search-results-mode .insurance-guide-quicklinks-strip {
    display: block;
}

@media (min-width: 769px) {
    .insurance-guide-page.search-results-mode .portal-search-section {
        position: sticky;
        top: 60px;
        z-index: 100;
        padding: 10px 0 12px;
        margin: 0;
        background: #fff;
        box-shadow: none;
        border-bottom: none;
    }

    /* 검색 포털 CSS 일관성 유지 (보더 등 제거했던 부분 복구) */
    .insurance-guide-page.search-results-mode .portal-search-section .search-wrapper {
        box-shadow: none;
        border: 2px solid #94a3b8;
    }

    .insurance-guide-page.search-results-mode .portal-search-section::before {
        display: none;
    }

    .insurance-guide-page.search-results-mode .portal-mobile-search-kicker {
        display: none;
    }

    .insurance-guide-page.search-results-mode .portal-search-banner-inner {
        max-width: min(900px, 100%);
    }
}

.ip-simple-main {
    margin-top: 8px;
}

.ip-simple-content {
    width: 100%;
}

.insurance-guide-page.search-results-mode .ip-simple-end {
    display: none;
}

.ip-simple-end {
    margin-top: 36px;
    padding: 28px 22px 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: center;
    box-sizing: border-box;
}

.ip-simple-end-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.ip-simple-end-text {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
}

.ip-simple-end-note {
    margin: 14px 0 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .insurance-guide-page {
        padding-top: 50px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        padding-left: 0;
        padding-right: 0;
    }

    .insurance-guide-page:not(.search-results-mode) .portal-wrapper {
        min-height: calc(100vh - 50px);
    }

    .insurance-guide-page:not(.search-results-mode) .ip-hero-stage {
        /* 당분간: 모바일에서 커밍순 안내까지 한 화면에 가깝게 */
        padding-top: clamp(8px, 3.5vh, 44px);
        padding-bottom: 4px;
    }

    .insurance-guide-page .portal-wrapper {
        padding-top: 0;
        margin-top: 0;
    }

    .insurance-guide-page .portal-search-section .search-container {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .insurance-guide-page .portal-search-section {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        position: relative;
        z-index: 2;
        background: #ffffff;
        border-bottom: none;
        box-shadow: none;
        /* 키커·검색·퀵링크 묶음 좌우 여백 (portal.css 전역 0과 구분) */
        padding-left: 10px;
        padding-right: 10px;
    }

    .insurance-guide-page .portal-search-section::before {
        display: none;
        content: none;
        height: 0;
    }

    .insurance-guide-page .portal-search-section .search-field-main {
        position: relative;
        display: block;
        flex: 1;
        min-width: 0;
        align-self: center;
        overflow: hidden;
    }

    .insurance-guide-page .portal-search-tips-roller {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        /* 전역 .portal-search-tips-roller 의 translateY(-50%) 가 남으면 상단으로 밀려 필 밖으로 걸침 */
        transform: none;
        display: flex;
        align-items: center;
        z-index: 2;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        padding-left: 0;
        background: none;
        border: none;
        border-radius: 0;
        max-width: none;
        overflow: hidden;
        pointer-events: none;
    }

    .insurance-guide-page .portal-search-roll__hint {
        font-size: 0.75rem;
    }

    .insurance-guide-page .ip-roller-rec-btn {
        font-size: 0.6875rem;
        padding: 2px 8px;
    }

    .insurance-guide-page .portal-search-banner-inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        width: 100%;
        max-width: min(480px, 100%);
        margin: 0 auto;
        box-sizing: border-box;
    }

    .insurance-guide-page .portal-search-banner-inner .search-container {
        flex: 0 0 auto;
        min-height: 0;
        height: auto;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .insurance-guide-page .portal-mobile-search-kicker {
        display: block;
        width: 100%;
        max-width: min(480px, 100%);
        text-align: center;
        font-size: 0.8125rem;
        font-weight: 700;
        color: #475569;
        letter-spacing: -0.02em;
        margin: 0 auto 12px;
        line-height: 1.35;
    }

    .insurance-guide-page .portal-search-section .search-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-top: 0;
        box-sizing: border-box;
        min-height: 50px;
        padding: 2px 5px 2px 12px;
        gap: 8px;
        border: 2px solid #94a3b8;
        border-radius: 999px;
        box-shadow: none;
        overflow: hidden;
        background: #fff;
    }

    .insurance-guide-page .portal-search-section .search-wrapper:focus-within {
        border-color: #334155;
        box-shadow: none;
    }

    .insurance-guide-page .portal-search-section .unified-search-input {
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        padding: 0 4px 0 0;
        margin: 0;
        border: 0;
        background: transparent;
        box-sizing: border-box;
        font-size: 0.9375rem;
        line-height: 40px;
    }

    .insurance-guide-page .portal-search-section .search-field-main:not(.search-field-main--solo) .unified-search-input {
        color: transparent;
        caret-color: #334155;
    }

    .insurance-guide-page .portal-search-section .search-wrapper:focus-within .search-field-main .unified-search-input {
        color: #0f172a;
    }

    .insurance-guide-page .portal-search-section .search-field-main--solo .unified-search-input {
        height: 40px;
        min-height: 40px;
        padding: 0 4px 0 0;
        line-height: 40px;
        color: #0f172a;
        background: transparent;
    }

    .insurance-guide-page.search-results-mode .portal-search-section .search-field-main .unified-search-input {
        color: #0f172a;
    }

    .insurance-guide-page .portal-search-section .search-icon {
        font-size: 1.05rem;
        margin-right: 0;
        flex-shrink: 0;
        color: #94a3b8;
    }

    .insurance-guide-page .portal-search-section .search-wrapper:focus-within .search-icon {
        color: #334155;
    }

    .insurance-guide-page .portal-search-section .search-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        margin: 0;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        align-self: center;
    }

    .insurance-guide-page .portal-search-section .search-btn i {
        font-size: 0.875rem;
        line-height: 1;
        display: block;
        margin: 0;
    }

    .insurance-guide-page .portal-search-section .search-suggestions {
        z-index: 10050;
        left: 0;
        right: 0;
    }

    .insurance-guide-page.search-results-mode .portal-search-section {
        position: sticky;
        top: 50px;
        z-index: 100;
        padding: 10px 10px 12px;
        margin: 0;
        background: #fff;
        box-shadow: none;
        border-bottom: none;
    }

    /* 모바일에서도 검색 포털 보더 유지 (일관성) */
    .insurance-guide-page.search-results-mode .portal-search-section .search-wrapper {
        border: 2px solid #94a3b8;
        box-shadow: none;
    }

    .insurance-guide-page.search-results-mode .portal-search-section::before {
        display: none;
    }

    .insurance-guide-page.search-results-mode .portal-mobile-search-kicker {
        display: none;
    }

    .insurance-guide-page.search-results-mode .portal-search-tips-roller {
        display: none;
    }

    .insurance-guide-page.search-results-mode .portal-search-banner-inner {
        max-width: 100%;
    }

    .insurance-guide-page .quick-menu-row {
        display: none;
    }

    .insurance-guide-page .portal-search-banner-inner .insurance-guide-quicklinks-strip {
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0;
        align-self: stretch;
        box-sizing: border-box;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 0;
    }

    .insurance-guide-page .insurance-guide-quicklinks-strip .quick-menu-row-mobile {
        display: block;
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x;
    }

    .insurance-guide-page .insurance-guide-quicklinks-strip .quick-menu-row-mobile::-webkit-scrollbar {
        display: none;
    }

    .insurance-guide-page .insurance-guide-quicklinks-strip .portal-services-grid-mobile {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0;
        min-width: min-content;
        width: max-content;
        box-sizing: border-box;
    }

    .portal-services-grid-mobile .service-icon-item {
        flex-shrink: 0;
        min-width: 72px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 6px;
        box-sizing: border-box;
    }

    .portal-services-grid-mobile .service-icon {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .portal-services-grid-mobile .service-label {
        font-size: 0.7rem;
        line-height: 1.2;
        text-align: center;
        word-break: keep-all;
    }

    /* portal.css 전역 .search-results-section { padding:5px } 보다 우선 — 상하 5px · 좌우 10px */
    .insurance-guide-page .search-results-section,
    .insurance-guide-page .search-results-section.active {
        padding: 5px 10px !important;
    }

    .insurance-guide-page:not(.search-results-mode) .portal-mobile-search-kicker {
        margin-bottom: 8px;
    }
}

.mobile-personal-bottom-bar {
    display: none;
}

/* 검색 결과 내 광고 영역 스타일 */
.search-results-ad-container {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.search-results-ad-inner {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-results-ad-inner:hover {
    background: #f8fafc;
}

.ad-badge {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ad-thumb {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 10%, #2563eb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border: none;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.ad-content {
    flex: 1;
    min-width: 0;
}

.ad-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-desc {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-action {
    color: #3b82f6;
    font-size: 1.25rem;
    padding: 8px;
}

@media (max-width: 768px) {
    .search-results-ad-inner {
        padding: 12px;
    }

    .ad-thumb {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .ad-title {
        font-size: 0.9375rem;
    }

    .ad-desc {
        font-size: 0.8125rem;
    }
}

/* 2026-04 insurance content rail */
.insurance-guide-page:not(.search-results-mode) .ip-hero-stage {
    padding-top: clamp(10px, 2vh, 26px);
    padding-bottom: 10px;
}

.insurance-guide-page .quick-menu-row {
    margin-top: 8px;
}

/* 매일 보는 카드뉴스 바로 위 — 다자비 보험문의 최근글 (좌 800px+ · 우 대시보드 카드) */
.portal-insu-qna-recent--guide {
    max-width: 1400px;
    margin: 18px auto 0;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
}

.portal-insu-guide-recent .portal-insu-qna-recent__eyebrow {
    color: #0f766e;
}

.portal-insu-guide-recent .portal-insu-qna-recent__head {
    align-items: flex-end;
}

.ins-guide-recent-headline {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
    letter-spacing: 0;
}

.ins-guide-recent-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #fff !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.16);
}

.ins-guide-recent-more:hover,
.ins-guide-recent-more:focus {
    color: #fff !important;
    text-decoration: none !important;
    background: #0d665f !important;
}

.portal-insu-guide-recent .portal-insu-qna-recent__main--compact {
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.12), transparent 36%),
        linear-gradient(135deg, rgba(240, 253, 250, 0.76), rgba(255, 255, 255, 0.96)),
        #fff;
    padding: 16px;
    border-color: #d4e6e1;
}

.ins-guide-recent-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex: none !important;
}

.ins-guide-recent-list__row {
    display: block !important;
    border-top: 0 !important;
    min-height: 0 !important;
    flex: none !important;
}

.ins-guide-recent-list__link {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "meta date"
        "title title"
        "summary summary"
        "foot foot";
    gap: 8px 10px;
    align-items: start;
    min-height: 176px !important;
    height: 100%;
    padding: 18px !important;
    border: 1px solid #dbe8e4;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ins-guide-recent-list__link:hover {
    border-color: #0f766e;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.portal-insu-guide-recent .portal-insu-qna-recent__title-link:hover .portal-insu-qna-recent__title-txt {
    color: #0f766e;
    text-decoration: none;
}

.ins-guide-recent-list__meta {
    grid-area: meta;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex-wrap: wrap;
}

.ins-guide-recent-list__badge,
.ins-guide-recent-list__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.ins-guide-recent-list__badge {
    background: #ccfbf1;
    color: #0f766e;
}

.ins-guide-recent-list__category {
    background: #f1f5f9;
    color: #475569;
}

.ins-guide-recent-list__title {
    grid-area: title;
    display: -webkit-box;
    min-width: 0;
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ins-guide-recent-list__summary {
    grid-area: summary;
    display: -webkit-box;
    min-width: 0;
    color: #51625d;
    font-size: 0.8rem;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ins-guide-recent-list__date {
    margin-left: auto;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.4;
    white-space: nowrap;
}

.ins-guide-recent-list__foot {
    grid-area: foot;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e6efec;
}

.ins-guide-recent-list__source {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a5a26;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.ins-guide-side-banner {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #d6e6e1;
    background:
        radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.18), transparent 34%),
        linear-gradient(135deg, #f0fdfa 0%, #fffdf7 100%);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.ins-guide-side-banner:hover,
.ins-guide-side-banner:focus {
    text-decoration: none;
    border-color: #0f766e;
}

.ins-guide-side-banner__eyebrow {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ins-guide-side-banner strong {
    font-size: 1.08rem;
    line-height: 1.25;
}

.ins-guide-side-banner em {
    color: #64748b;
    font-size: 0.8rem;
    font-style: normal;
    line-height: 1.45;
}

/* 최근 보험안내자료 우측: 텍스트 배너를 하단 정렬 */
.portal-insu-guide-recent .portal-insu-qna-recent__aside {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.portal-insu-guide-recent .ins-remodel-text-banner {
    margin-top: 10px;
    min-height: 120px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #cfe3dc;
    background:
        radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.16), transparent 38%),
        linear-gradient(145deg, #f0fdfa 0%, #fffdf8 100%);
    color: #0f172a;
    text-decoration: none;
    display: grid;
    align-content: center;
    gap: 7px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.portal-insu-guide-recent .ins-remodel-text-banner:hover,
.portal-insu-guide-recent .ins-remodel-text-banner:focus {
    border-color: #0f766e;
    text-decoration: none;
}

.portal-insu-guide-recent .ins-remodel-text-banner__eyebrow {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.portal-insu-guide-recent .ins-remodel-text-banner__ad {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.portal-insu-guide-recent .ins-remodel-text-banner strong {
    font-size: 1.12rem;
    line-height: 1.25;
}

.portal-insu-guide-recent .ins-remodel-text-banner em {
    color: #64748b;
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.45;
}

/* 보험문의 위젯(.portal-insu-qna-recent--guide)과 동일한 가로 inset — 제목·트랙 정렬 */
.insurance-guide-page .ip-content-rail {
    max-width: 1200px;
    width: 100%;
    margin: 16px auto 0;
    padding: 0 15px;
    box-sizing: border-box;
}

.ip-content-rail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ip-content-rail__title-wrap {
    min-width: 0;
}

.ip-content-rail__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #16a34a;
    letter-spacing: -0.02em;
}

.ip-content-rail__title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
}

.ip-content-rail__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ip-content-rail__manage,
.ip-content-rail__empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ip-content-rail__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(248px, 288px);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: start;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.ip-content-rail__track::-webkit-scrollbar {
    height: 8px;
}

.ip-content-rail__track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.ip-content-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ip-content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.ip-content-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
}

.ip-content-card__title-link {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.ip-content-card__header-side {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.ip-content-card__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    min-width: 2.85em;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    border: 1px solid #bae6fd;
}

/* 목록 카드: 모든 카드 동일한 정사각 비주얼 높이 유지 (그리드 행 정렬) */
.ip-content-card__visual {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: transparent;
    overflow: hidden;
}

.ip-content-card__gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.ip-content-card__gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ip-content-card__gallery-track::-webkit-scrollbar {
    display: none;
}

.ip-content-card__gallery-item {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    min-height: 0;
    scroll-snap-align: start;
    /* 관성 스크롤 시 스냅 포인트를 건너뛰지 않음 (1→2인데 3으로 점프 방지) */
    scroll-snap-stop: always;
    appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    background: #f1f5f9;
    text-align: left;
    font: inherit;
    color: inherit;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 정사각 비주얼 안에서 원본 비율 유지: 가로형은 가로 기준·세로형은 세로 기준으로 맞춤(잘림 없음) */
.ip-content-card__gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
}

.ip-content-card__gallery-meta {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.ip-content-card__gallery-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 3.25em;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(224, 242, 254, 0.94);
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    border: 1px solid #bae6fd;
}

.ip-content-card__gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ip-content-card__gallery-arrow.is-prev {
    left: 12px;
}

.ip-content-card__gallery-arrow.is-next {
    right: 12px;
}

.ip-content-card__gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.44);
    transform: translateX(-50%);
}

.ip-content-card__gallery-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

.ip-content-card__gallery-dot.is-active {
    width: 18px;
    background: #fff;
}

.ip-content-card__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 2rem;
}

.ip-content-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 16px;
    color: inherit;
}

.ip-content-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ip-content-card__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.74rem;
    font-weight: 800;
}

.ip-content-card__title {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.4;
    color: #111827;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.ip-content-card__summary {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #6b8cae;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: anywhere;
}

.ip-content-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.ip-content-card__more-icon {
    display: none;
    font-size: 0.85rem;
    line-height: 1;
}

@media (min-width: 769px) {
    /* 한 줄에 카드 3개 · 여러 행으로 자연 배치 */
    .ip-content-rail__track {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-rows: auto;
        gap: 16px;
        overflow-x: visible;
        padding-bottom: 0;
        align-items: stretch;
    }

    .ip-content-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* 카드 안 이미지: 모바일과 동일하게 1장씩 가로 스냅(넘김), 비주얼 높이는 항상 1:1 */
    .ip-content-card__visual {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        flex-shrink: 0;
    }

    .ip-content-card__gallery {
        height: 100%;
        min-height: 0;
    }

    .ip-content-card__gallery-track {
        display: flex;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-stop: always;
        cursor: grab;
        box-sizing: border-box;
        padding: 0;
    }

    .ip-content-card__gallery-track::-webkit-scrollbar {
        display: none;
    }

    .ip-content-card__gallery-track.is-pointer-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .ip-content-card__gallery-track.is-pointer-dragging img {
        pointer-events: none;
    }

    .ip-content-card__gallery-item {
        flex: 0 0 100%;
        min-width: 100%;
        height: 100%;
        min-height: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        border-radius: 0;
        background: #f1f5f9;
    }

    .ip-content-card__gallery-meta {
        display: block;
    }

    .ip-content-card__gallery-arrow {
        display: inline-flex;
    }

    .ip-content-card__gallery-dots {
        display: inline-flex;
    }

    .ip-content-card__header {
        padding: 12px 12px 10px;
    }

    .ip-content-card__header-side {
        gap: 8px;
    }

    .ip-content-card__count {
        padding: 6px 10px;
        font-size: 0.72rem;
        min-width: 2.6em;
    }

    .ip-content-card__body {
        padding: 10px 12px 14px;
    }

    .ip-content-card__title {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .ip-content-card__summary {
        font-size: 0.8rem;
    }

    .ip-content-card__gallery-arrow {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }

    .ip-content-card__gallery-arrow.is-prev {
        left: 8px;
    }

    .ip-content-card__gallery-arrow.is-next {
        right: 8px;
    }

    .ip-content-card__gallery-meta {
        top: 8px;
        right: 8px;
    }

    .ip-content-card__gallery-dots {
        bottom: 8px;
        padding: 6px 8px;
    }
}

.ip-content-rail__empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    color: #64748b;
}

.ip-content-rail__empty-copy {
    min-width: 0;
}

.ip-content-rail__empty strong {
    display: block;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.45;
    color: #0f172a;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.ip-content-rail__empty-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84px;
    gap: 10px;
}

.ip-content-rail__empty-card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(226,232,240,0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.ip-content-rail__empty-card::before {
    content: "";
    width: 46%;
    height: 46%;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(203, 213, 225, 0.95) 0%, rgba(226, 232, 240, 0.65) 100%);
}

.ip-content-rail__empty-card.is-primary {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: #475569;
}

.ip-content-rail__empty-card.is-primary::before {
    display: none;
}

.ip-content-rail__empty-card.is-primary i {
    font-size: 1.35rem;
}

.ip-content-rail__empty-link {
    margin-top: 14px;
}

@media (max-width: 768px) {
    .insurance-guide-page .portal-search-section {
        padding: 4px 10px 0;
    }

    .insurance-guide-page .ip-content-rail {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        margin-top: 14px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .ip-content-rail__header {
        padding: 0;
        margin-bottom: 10px;
    }

    .ip-content-rail__title {
        font-size: 1rem;
    }

    .ip-content-rail__actions {
        gap: 6px;
    }

    .ip-content-rail__track {
        grid-auto-flow: row;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-columns: auto;
        gap: 12px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .ip-content-rail__empty {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 16px;
        border-radius: 20px;
    }

    .ip-content-rail__empty strong {
        font-size: 0.94rem;
    }

    .ip-content-rail__empty-track {
        grid-auto-columns: minmax(64px, 18vw);
        justify-content: start;
    }

    .ip-content-rail__empty-card {
        border-radius: 18px;
    }

    .ip-content-card {
        border-radius: 18px;
    }

    .ip-content-card__gallery-track {
        overscroll-behavior-x: contain;
        /* pan-x만 두면 세로 스크롤이 갤러리에서 막힘 → 페이지 세로 스크롤 허용 */
        touch-action: pan-x pan-y;
    }

    .ip-content-card__gallery-item img {
        touch-action: pan-x pan-y;
    }

    .ip-content-card__header {
        padding: 13px 14px 12px;
    }

    .ip-content-card__header-side {
        gap: 6px;
    }

    .ip-content-card__count {
        display: none !important;
    }

    .ip-content-card__more-text {
        display: none !important;
    }

    .ip-content-card__more-icon {
        display: inline-flex !important;
    }

    .ip-content-card__more {
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: 999px;
    }

    .ip-content-card__body {
        padding: 12px 12px 14px;
    }

    .ip-content-card__gallery-arrow {
        display: none;
    }

    .ip-content-card__gallery-meta {
        top: 10px;
        right: 10px;
    }

    .ip-content-card__gallery-count {
        min-width: 3.1em;
        padding: 7px 11px;
        font-size: 0.72rem;
    }

    .ip-content-card__gallery-dots {
        bottom: 10px;
        padding: 6px 9px;
        gap: 5px;
    }

    .ip-content-card__title {
        font-size: 0.92rem;
    }

    .ip-content-card__summary {
        font-size: 0.78rem;
    }

    .ins-guide-recent-list__link {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "meta meta"
            "title title"
            "summary summary"
            "foot foot";
        gap: 6px 8px;
        align-items: center;
        min-height: 170px !important;
        padding: 14px 12px !important;
    }

    .ins-guide-recent-list__meta {
        grid-column: 1 / -1;
    }

    .ins-guide-recent-list__title {
        min-width: 0;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .ins-guide-recent-list__date {
        font-size: 0.72rem;
    }

    .ins-guide-recent-list__summary {
        font-size: 0.74rem;
        line-height: 1.45;
        -webkit-line-clamp: 3;
    }

    .ins-guide-recent-list__foot {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 4px;
        padding-top: 8px;
    }

    .ins-guide-recent-list__source {
        min-height: 22px;
        padding: 0 7px;
        font-size: 0.68rem;
    }

    .ins-guide-recent-list__date {
        max-width: 100%;
        font-size: 0.68rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ins-guide-recent-headline {
        display: none;
    }

    .ins-guide-recent-list__badge,
    .ins-guide-recent-list__category {
        min-height: 22px;
        padding: 0 7px;
        font-size: 0.68rem;
    }
}

/* 보험포털 메인 — 이미지 원본 라이트박스 (PC 넓은 화면, content_view와 동일 동작) */
@media (min-width: 861px) {
    .ip-content-card__gallery-item {
        cursor: zoom-in;
    }

    .ip-content-card__gallery-item img {
        pointer-events: none;
    }
}

.ip-portal-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ip-portal-image-lightbox[hidden] {
    display: none !important;
}

.ip-portal-image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    cursor: zoom-out;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}

.ip-portal-image-lightbox__inner {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ip-portal-image-lightbox__img {
    max-width: 100%;
    max-height: min(88vh, 1200px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.ip-portal-image-lightbox__close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.ip-portal-image-lightbox__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.ip-portal-image-lightbox__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ip-portal-image-lightbox__hint {
    margin: 0;
    font-size: 0.8125rem;
    color: #cbd5e1;
    text-align: center;
    letter-spacing: -0.02em;
}

/* ≤1024px: 보험문의 우측 sidebar-dashboard-card는 숨김 — index형 모바일 하단바(mobile_bottom_bar_index)로 대체 */
@media (max-width: 1024px) {
    .insurance-guide-page .portal-insu-qna-recent__aside {
        display: none !important;
    }

    .insurance-guide-page {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}
