/* 보험 종합 포털 전용 스타일 - 네이버 스타일 */

/* PC(1024px 이상)에서는 모바일 요소 완전히 숨김 */
@media (min-width: 1024px) {
    .mobile-portal-bottom-bar,
    .mobile-portal-side-menu,
    .mobile-portal-side-menu-overlay,
    .mobile-portal-side-menu-content {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }
}

/* CSS 변수 */
:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: 0.3s ease;
}

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 포털 페이지 컨테이너 */
.insurance-portal-page {
    font-family: 'Pretendard', sans-serif;
    background: var(--white);
    min-height: 100vh;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    padding: 30px 0px 0px 0px;
}

/* 작성/수정 페이지는 헤더 바로 아래에 위치 */
.insurance-portal-page .plan-write-container,
.insurance-portal-page .plan-detail-container {
    margin-top: 0;
    padding-top: 20px;
}

.portal-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 작성/수정/상세보기 페이지는 padding 조정 */
.insurance-portal-page .plan-write-container .portal-wrapper,
.insurance-portal-page .plan-detail-container .portal-wrapper {
    padding: 0 20px;
}

/* 검색 섹션 */
.portal-search-section {
    position: relative;
    flex: 0 0 auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* 상단 뱃지 (가운데) */
.portal-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.portal-top-badge:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.portal-top-badge i {
    color: #3b82f6;
    font-size: 14px;
    transition: color 0.2s ease;
}

.portal-top-badge:hover i {
    color: #2563eb;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 10px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 50px;
    padding: 0px 6px 0px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.search-wrapper:focus-within {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), 0 0 0 4px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transform: translateY(-2px);
}

.search-wrapper:focus-within::before {
    opacity: 1;
}

.search-icon {
    color: var(--gray-400);
    font-size: 20px;
    margin-right: 16px;
    transition: color 0.3s ease;
    z-index: 1;
}

.search-wrapper:focus-within .search-icon {
    color: #3b82f6;
}

.unified-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 20px 0;
    font-size: 17px;
    font-weight: 400;
    color: var(--gray-900);
    background: transparent;
    z-index: 1;
}

.unified-search-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.search-btn {
    width: 52px;
    height: 52px;
    border: none;
    background: linear-gradient(135deg, #a9a9a9 0%, #494949 100%);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 1;
    outline: none;
}


.search-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.98);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--gray-50);
}

/* 검색 결과 섹션 */
/* 검색 결과 섹션 */
.search-results-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.results-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-title i {
    color: #3b82f6;
}

.close-results {
    padding: 8px 16px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    outline: none;
}


.close-results:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.results-content {
    display: grid;
    gap: 16px;
}

.result-item {
    padding: 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.result-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

/* 서비스 아이콘 그리드 - 가로 스크롤 1줄 (검색바와 같은 너비) */
.portal-services-grid {
    display: flex;
    gap: 8px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.portal-services-grid:active {
    cursor: grabbing;
}

/* 스크롤바 완전히 숨기기 */
.portal-services-grid::-webkit-scrollbar {
    display: none;
}

.portal-services-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.service-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    padding: 0;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    min-width: 70px;
    pointer-events: auto;
    outline: none;
}


.service-icon-item:hover {
    transform: translateY(4px); /* 기본적으로 아래로 */
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-icon i {
    font-size: 24px;
    display: inline-block;
}

/* 모든 서비스 아이콘 hover 시 아래로 이동 (일괄 적용) */
.service-icon-item.link-service:hover,
.service-icon-item[data-service="car_insurance"]:hover,
.service-icon-item[data-service="calc"]:hover {
    transform: translateY(4px);
}

.service-icon-item.link-service:hover .service-icon,
.service-icon-item[data-service="car_insurance"]:hover .service-icon,
.service-icon-item[data-service="calc"]:hover .service-icon {
    transform: translateY(4px);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

/* 나머지 아이콘들은 기본 hover 효과 */
.service-icon-item:hover .service-icon {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.service-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
    line-height: 1.3;
    word-break: keep-all;
}

.service-icon-item:hover .service-label {
    color: var(--gray-900);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .insurance-portal-page {
        padding-top: 50px;
    }

    .portal-top-badge {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .portal-search-section {
        padding: 12px 0 10px;
    }

    .search-wrapper {
        padding: 0 16px;
    }

    .unified-search-input {
        padding: 16px 0;
        font-size: 14px;
    }

    .portal-services-grid {
        gap: 6px;
        padding: 0;
        max-width: 700px;
    }

    .service-icon-item {
        min-width: 65px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .service-label {
        font-size: 12px;
    }

    /* 모바일 검색 결과 영역 패딩 */
    .search-results-section {
        padding: 16px !important;
    }

    .results-header {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 16px !important;
    }

    .results-title {
        font-size: 16px !important;
        padding-left: 0 !important;
    }

    .close-results {
        padding: 6px 12px !important;
        font-size: 13px !important;
        margin: 5px;
    }

    /* 검색 결과 내 제목들 패딩 */
    .search-results-section h2,
    .search-results-section h3 {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 검색 결과 카테고리 제목 */
    .result-category-title {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* 검색 결과 아이템들 패딩 */
    .result-item,
    .service-result-item,
    .insurance-company-result {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* 미디어쿼리에서만 !important 사용 */
@media (max-width: 480px) {
    .portal-services-grid {
        gap: 5px !important;
        padding: 0 !important;
        max-width: 700px !important;
    }

    .service-icon-item {
        min-width: 60px !important;
    }

    .service-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }

    .service-label {
        font-size: 11px !important;
    }
}

/* 서비스 모달 */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    outline: none;
}


.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.loading-spinner i {
    font-size: 32px;
    margin-bottom: 16px;
}

/* 서브메뉴 모달 */
.service-submenu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.submenu-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.submenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.submenu-back,
.submenu-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    outline: none;
}


.submenu-back:hover,
.submenu-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.submenu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.submenu-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.submenu-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.submenu-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.submenu-info {
    flex: 1;
}

.submenu-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.submenu-info p {
    font-size: 13px;
    color: var(--gray-600);
}

.submenu-item i.fa-chevron-right {
    color: var(--gray-400);
    font-size: 14px;
}

/* 링크 서비스는 기본 링크 동작 유지 */
.service-icon-item.link-service {
    cursor: pointer;
}

/* 모달/서브메뉴 서비스는 클릭 시 모달 열기 */
.service-icon-item[data-type="modal"],
.service-icon-item[data-type="category"] {
    cursor: pointer;
}

/* 모든 서비스 아이콘 호버 시 아래로 이동 (일괄 적용) */
.service-icon-item[data-type="modal"]:hover,
.service-icon-item[data-type="category"]:hover {
    transform: translateY(4px);
}


/* 첫 화면 메인 콘텐츠 레이아웃 */
.portal-main-content {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.portal-content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
    width: 100%;
}

/* 좌측 영역: 공지사항 + 소식지 */
.portal-left-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

/* 우측 영역: 계산기 + 후원FC */
.portal-right-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
    align-self: start;
    width: 350px;
    flex-shrink: 0;
}

/* 검색 결과 섹션 기본 스타일 */
.search-results-section {
    width: 100%;
    max-width: 100%;
}

/* 검색 결과와 공지사항/소식지 상호 토글 (JavaScript로 처리하지만 CSS도 보완) */
.portal-left-section .search-results-section {
    display: none; /* 기본값: 숨김 */
}

.portal-left-section .search-results-section[style*="display: block"] {
    display: block !important;
}

/* 검색 결과가 표시될 때 공지사항/소식지 숨기기 */
.portal-left-section .search-results-section[style*="display: block"] ~ .portal-insurance-data-section,
.portal-left-section .search-results-section[style*="display: block"] ~ .portal-insurance-work-section {
    display: none !important;
}

/* 좌측 영역은 위에서 정의됨 */

.portal-insurance-data-section,
.portal-insurance-work-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.portal-newsletter-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: -5px;
}

/* 추천플랜 섹션 (별도 섹션) */
.portal-recommended-plans-section {
    padding: 30px 0;
    background: var(--white);
}

.portal-recommended-plans-section .portal-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-section-header h3 i {
    color: #3b82f6;
    font-size: 14px;
}

.more-link {
    font-size: 13px;
    color: var(--gray-600);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.more-link:hover {
    color: #3b82f6;
}

/* 카테고리별 기사 박스 스타일 (index.php와 동일) */
.portal-category-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}

.portal-category-box:hover {
    background-color: #f9fafb;
}

.category-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.category-box-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-box-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.category-box-more-btn {
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}


.category-box-more-btn:hover {
    background: #2563eb;
}

.category-box-first-article {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 0px;
    padding-bottom: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    border-bottom: 1px solid var(--gray-100);
}

.category-box-thumbnail {
    width: 33.333%;
    max-width: 33.333%;
    min-width: 33.333%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    display: block;
}

.category-box-thumbnail img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.category-box-thumbnail:hover img {
    transform: scale(1.02);
}

.category-box-first-content {
    flex: 1;
    width: 66.667%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.category-box-first-article.no-thumbnail .category-box-first-content {
    padding-top: 0;
    width: 100%;
}

.category-box-first-article.no-thumbnail .category-box-first-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.category-box-first-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.category-box-first-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-box-first-title a:hover {
    color: #1e40af;
}

.category-box-first-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: auto;
}

.category-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.category-box-list::-webkit-scrollbar {
    width: 6px;
}

.category-box-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.category-box-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.category-box-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.category-box-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.category-box-item:last-child {
    border-bottom: none;
}

.category-box-link {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.category-box-link:hover {
    color: #1e40af;
}

.category-box-date {
    font-size: 0.8rem;
    color: #9ca3af;
    flex-shrink: 0;
}

/* 카테고리 전체 목록 섹션 */
.category-full-list-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.category-full-list-content {
    margin-top: 20px;
}

.category-full-list-container {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.category-full-list-container::-webkit-scrollbar {
    width: 6px;
}

.category-full-list-container::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.category-full-list-container::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.category-full-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.category-full-item-first {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
    align-items: flex-start;
}

.category-full-thumbnail {
    width: 200px;
    max-width: 200px;
    min-width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

.category-full-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-full-thumbnail:hover img {
    transform: scale(1.02);
}

.category-full-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.category-full-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.category-full-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-full-title a:hover {
    color: #1e40af;
}

.category-full-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: auto;
}

.category-full-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
}

.category-full-item:hover {
    background-color: #f9fafb;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 6px;
}

.category-full-item:last-child {
    border-bottom: none;
}

.category-full-link {
    flex: 1;
    font-size: 0.95rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
    font-weight: 500;
}

.category-full-link:hover {
    color: #1e40af;
}

.category-full-date {
    font-size: 0.8rem;
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
}

.category-box-more-btn {
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.category-box-more-btn:hover {
    background: #2563eb;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .category-box-first-article.has-thumbnail {
        flex-direction: row !important;
        align-items: flex-start !important;
    }
    
    .category-box-thumbnail {
        width: 100px !important;
        max-width: 100px !important;
        min-width: 100px !important;
        height: 100px !important;
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
        margin-right: 12px !important;
    }
    
    .category-box-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .category-box-first-content {
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
}

.notice-title,
.board-title {
    flex: 1;
    font-size: 14px;
    color: var(--gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-meta,
.board-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-500);
    flex-shrink: 0;
    margin-left: 12px;
}

.comment-badge {
    color: #3b82f6;
    font-weight: 500;
}

.portal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
    font-size: 14px;
}

/* 소식지 슬라이더 */
.portal-newsletter-section {
    padding: 10px;
    width: 100%;
}

/* FC 후원 배너 포털 페이지 스타일 조정 */
.portal-right-section .fc-sponsor-banner-wrapper {
    margin: 16px 0 0 0;
    padding: 0;
}

.portal-right-section .fc-sponsor-banner {
    padding: 12px 16px;
    gap: 10px;
}

.portal-right-section .fc-banner-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.portal-right-section .fc-banner-title {
    font-size: 0.95rem;
}

.portal-right-section .fc-banner-desc {
    font-size: 0.75rem;
}

/* 영업포털 분할하기 버튼 */
.portal-split-screen-section {
    margin-top: 16px;
    width: 100%;
}

.portal-split-screen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}


.portal-split-screen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.portal-split-screen-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.portal-split-screen-btn i {
    font-size: 16px;
}

/* 영업포털 정보 버튼 목록 */
.portal-insurance-buttons {
    margin-top: 12px;
    width: 100%;
}

.portal-insurance-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.portal-insurance-item-wrapper {
    width: 100%;
}

.portal-insurance-item-btn {
    width: 100%;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.portal-insurance-item-btn:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.portal-insurance-item-btn.active {
    background: #f0f9ff;
    border-color: #3b82f6;
}

.portal-insurance-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.portal-insurance-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.portal-insurance-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border-radius: 4px;
    color: var(--gray-600);
    font-size: 14px;
    flex-shrink: 0;
}

.portal-insurance-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    text-align: left;
}

.portal-insurance-chevron {
    font-size: 10px;
    color: var(--gray-500);
    transition: transform 0.3s ease;
}

.portal-insurance-item-btn.active .portal-insurance-chevron {
    transform: rotate(180deg);
}

.portal-insurance-details {
    margin-top: 8px;
    padding: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    border-top: 2px solid #3b82f6;
}

.portal-insurance-details-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-fc-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    font-size: 12px;
}

.portal-fc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 80px;
    flex-shrink: 0;
}

.portal-fc-label i {
    color: #3b82f6;
    font-size: 11px;
}

.portal-fc-value {
    flex: 1;
    color: var(--gray-800);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.portal-fc-value:hover {
    background: #e0f2fe;
    color: #3b82f6;
}

.portal-fc-no-data {
    text-align: center;
    color: var(--gray-500);
    font-size: 12px;
    padding: 8px;
    margin: 0;
}

.portal-insurance-open-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.portal-insurance-open-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.portal-insurance-list::-webkit-scrollbar {
    width: 6px;
}

.portal-insurance-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.portal-insurance-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.portal-insurance-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* 모바일에서는 숨김 */
@media (max-width: 768px) {
    .portal-split-screen-section {
        display: none;
    }
}

/* 보험공지사항 게시판 스타일 */
.portal-notice-section {
    margin-top: 15px;
    width: 100%;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.portal-notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.portal-notice-header i {
    color: #3b82f6;
    font-size: 14px;
}

.portal-notice-more {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.portal-notice-more:hover {
    color: #3b82f6;
    transform: translateX(2px);
}

.portal-notice-list {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
}

.portal-notice-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
}

.portal-notice-item:hover {
    background: #f8fafc;
    padding-left: 18px;
}

.portal-notice-item:last-child {
    border-bottom: none;
}

.portal-notice-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.portal-notice-title {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.portal-notice-date {
    color: #94a3b8;
    font-size: 11px;
    flex-shrink: 0;
    margin-left: auto;
}

.portal-notice-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.portal-notice-comment {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.portal-notice-comment i {
    font-size: 10px;
}

.portal-notice-empty {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.newsletter-slider {
    position: relative;
    overflow: hidden;
}

.newsletter-track {
    cursor: grab;
}

.newsletter-track:active {
    cursor: grabbing;
}

.newsletter-track {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.newsletter-track::-webkit-scrollbar {
    display: none;
}

.newsletter-item {
    flex: 0 0 auto;
    width: 90px;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--gray-900);
    transition: var(--transition);
    flex-shrink: 0;
}

.newsletter-item:hover {
    background: var(--gray-50);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}

.newsletter-logo {
    width: 70px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.newsletter-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.newsletter-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 32px;
}

.newsletter-company-name {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    color: var(--gray-700);
    line-height: 1.3;
    word-break: keep-all;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.newsletter-item:hover .newsletter-company-name {
    color: var(--gray-900);
}

.newsletter-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    outline: none;
}


.newsletter-nav:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.newsletter-nav.prev {
    left: 0px;
}

.newsletter-nav.next {
    right: 0px;
}

.newsletter-nav i {
    font-size: 14px;
    color: var(--gray-700);
}

.portal-calculator-section {
    background: var(--white);
    padding: 0;
    width: 100%;
}

.insurance-calculator-wrapper {
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.calculator-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.calc-tab {
    flex: 1;
    padding: 8px 6px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    outline: none;
}


.calc-tab.active {
    background: var(--white);
    color: #3b82f6;
    box-shadow: var(--shadow-sm);
}

.calc-tab:hover:not(.active) {
    color: var(--gray-900);
}

.calculator-panel {
    display: none;
}

.calculator-panel.active {
    display: block;
}

.calculator-input-group {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

/* BMI 계산기 전용 스타일 - 3개 요소를 1줄로 배치 */
#portalBmiCalculator .calculator-input-group .calculator-input {
    flex: 1;
    min-width: 0;
}

.calculator-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 12px;
    outline: none;
    transition: var(--transition);
}

.calculator-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.calculator-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #a9a9a9;
    color: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: 14px;
    outline: none;
}


.calculator-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.calculator-result {
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--gray-900);
    display: none;
    margin-top: 8px;
}

.calculator-result.show {
    display: block;
}

/* 반응형 */
@media (max-width: 1024px) {
    .portal-content-layout {
        grid-template-columns: 1fr;
    }

    .portal-right-section {
        position: static;
    }
}

/* 추천플랜 섹션 스타일 (보험자료/보험업무와 동일한 스타일 사용 - portal-category-box 상속) */

.plans-header-with-tabs {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.plans-tab-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.plans-tabs-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.plans-buttons-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.plans-tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
}

.plans-tab-text-full {
    display: inline;
}

.plans-tab-text-mobile {
    display: none;
}


.plans-tab-btn:hover {
    color: #3b82f6;
}

.plans-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.plans-more-btn {
    padding: 6px 12px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
}


.plans-more-btn:hover {
    background: #4b5563;
}

.plans-admin-write-btn {
    padding: 6px 12px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
}


.plans-admin-write-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.plans-write-btn {
    padding: 6px 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
}


.plans-write-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 작성 버튼은 category-box-more-btn 스타일 사용 */

.plans-tab-content {
    min-height: 200px;
}

.plans-tab-panel {
    display: none;
}

.plans-tab-panel.active {
    display: block;
}

/* 추천플랜 섹션 내부 스타일 (보험자료/보험업무와 일관성 유지) */
#recommendedPlansSection .plans-tab-menu {
    margin-top: 0;
}

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-item {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.plan-item:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    transform: translateX(4px);
}

.plan-title-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.plan-title-link:hover {
    color: #3b82f6;
}

.plan-title-link i {
    color: #ef4444;
    font-size: 18px;
}

.plan-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

.plan-type-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #3b82f6;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-author {
    color: #9ca3af;
}

.plans-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.plans-empty p {
    font-size: 14px;
}

/* PDF 뷰어 모달 */
.pdf-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
}

.pdf-viewer-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdf-viewer-container {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1f2937;
    color: white;
}

.pdf-viewer-title {
    font-size: 16px;
    font-weight: 600;
}

.pdf-viewer-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.pdf-viewer-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pdf-viewer-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.pdf-viewer-controls button {
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pdf-viewer-controls button:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pdf-viewer-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdf-viewer-page-info {
    margin: 0 12px;
    font-size: 14px;
    color: #6b7280;
}

.pdf-viewer-content {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    padding: 20px;
}

#pdfCanvas {
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
}

/* 플랜 상세보기/작성 페이지 스타일 */
.plan-detail-container,
.plan-write-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    padding: 30px;
    background: white;
}

.plan-detail-header,
.plan-write-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.plan-detail-title {
    font-size: 21px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.plan-write-header h1 {
    font-size: 21px;
    font-weight: 600;
    color: #1f2937;
}

.plan-detail-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6b7280;
    flex-wrap: wrap;
}

.plan-pdf-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

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

.plan-pdf-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

/* PDF 뷰어 인라인 표시 (본문 하단) */
.plan-pdf-viewer {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.plan-pdf-viewer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.plan-pdf-viewer-controls button {
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.plan-pdf-viewer-controls button:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.plan-pdf-viewer-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.plan-pdf-viewer-page-info {
    margin: 0 12px;
    font-size: 14px;
    color: #6b7280;
}

.plan-pdf-viewer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    min-height: 400px;
    overflow: auto;
}

.plan-pdf-viewer-content canvas {
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
}

.btn-view-pdf {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.plan-content-section {
    margin: 30px 0;
}

.plan-content-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.plan-content {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    line-height: 1.8;
}

.plan-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.plan-login-required p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
}

.btn-login {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.plan-actions {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-edit,
.btn-delete {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.plan-back {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #e5e7eb;
}

/* 작성 페이지 폼 스타일 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-upload-wrapper {
    position: relative;
}

.file-upload {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover .file-upload-button {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.file-upload-info {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.file-info {
    margin-top: 12px;
}

.file-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
}

.current-pdf {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.current-pdf i {
    color: #ef4444;
    font-size: 18px;
}

.pdf-note {
    color: #6b7280;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Quill 에디터 컨테이너 */
#editor-container {
    min-height: 300px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

/* 반응형 */
@media (max-width: 768px) {

    .category-box-header {
        padding-bottom: 5px;
    }

    .portal-category-box {
        box-shadow: none;
        box-sizing: none;
        border: none;
    }

    .portal-left-section {
        gap: 1px;
    }
    
    .plans-tab-menu {
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    
    .plans-tabs-left {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .plans-tabs-left::-webkit-scrollbar {
        display: none !important;
    }
    
    .plans-tab-btn {
        padding: 8px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .plans-tab-text-full {
        display: none !important;
    }
    
    .plans-tab-text-mobile {
        display: inline !important;
    }
    
    .plans-more-btn,
    .plans-admin-write-btn,
    .plans-write-btn {
        padding: 8px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin-left: 4px !important;
    }
    
    .plans-write-btn {
        margin-left: 4px !important;
        width: auto !important;
    }
    
    .plans-buttons-right {
        display: none !important;
    }
    
    .pdf-viewer-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .plan-detail-container,
    .plan-write-container {
        padding: 20px 15px;
    }
    
    .plan-detail-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 모바일 전용: 본 화면 좌우패딩 제거 */
    .insurance-portal-page {
        padding: 0 !important;
    }
    
    .portal-wrapper {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .portal-search-section {
        padding: 0 !important;
    }
    
    /* 모바일에서 상단 검색바 숨김 */
    .portal-search-section .search-container {
        display: none !important;
    }
    
    /* 모바일에서 퀵메뉴 그리드 숨김 (사이드 메뉴로 이동했으므로) */
    .portal-services-grid {
        display: none !important;
    }
    
    /* 모바일에서 상단 뱃지를 헤더 아래에 고정 표시 */
    .portal-top-badge {
        position: fixed !important;
        top: 54px !important; /* 헤더 높이 아래 */
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 9999 !important;
        font-size: 12px !important;
        padding: 6px 14px !important;
        margin-bottom: 0 !important;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
        white-space: nowrap !important;
    }
    
    .portal-top-badge i {
        color: #ffffff !important;
        font-size: 14px !important;
    }
    
    .portal-top-badge:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
        transform: translateX(-50%) translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
    }
    
    /* 뱃지 아래에 패딩 추가 (보험자료와의 간격) */
    .insurance-portal-page {
        padding-top: calc(0px + 35px) !important; /* 헤더 높이 + 뱃지 높이 + 간격 */
    }
    
    /* 검색 결과 영역도 좌우패딩 제거 */
    .portal-main-content {
        padding: 0 !important;
        margin-top: 0 !important;
    }
    
    #resultsContent {
        padding: 0 !important;
    }
    
    /* 모바일에서 보험자료가 뱃지 바로 아래 표시되도록 */
    .portal-left-section {
        padding: 0 !important;
    }
    
    .portal-category-box {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        margin-bottom: 0 !important;
        padding: 5px 10px 10px 10px !important;
    }
    
    .portal-category-box:first-of-type {
        border-top: none !important;
    }
    
    /* 모바일에서만 보험공지사항을 추천플랜 하단에 표시 */
    .mobile-portal-notice-below-plans {
        display: block !important;
        margin-top: 1px !important;
    }
    
    .mobile-portal-notice-below-plans .portal-notice-section {
        background: white !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    
    .mobile-portal-notice-below-plans .portal-notice-header {
        padding: 12px 10px !important;
        background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .mobile-portal-notice-below-plans .portal-notice-list {
        max-height: 300px !important;
    }
    
    .mobile-portal-notice-below-plans .portal-notice-item {
        padding: 10px 10px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    
    .mobile-portal-notice-below-plans .portal-notice-title {
        font-size: 12px !important;
    }
    
    .mobile-portal-notice-below-plans .portal-notice-date {
        font-size: 10px !important;
    }
    
    /* PC에서는 숨김 */
    @media (min-width: 769px) {
        .mobile-portal-notice-below-plans {
            display: none !important;
        }
    }
    
    
    /* 모바일 하단 검색바 (심플하게 검색바만) */
    .mobile-portal-bottom-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 10001;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
        flex-direction: row; /* 검색바 왼쪽, 버튼 오른쪽 */
    }
    
    /* 사이드바 열릴 때 하단바 완전히 숨김 */
    .mobile-portal-bottom-bar.slide-up {
        transform: translateY(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
    
    /* 사이드 메뉴가 열렸을 때 원래 검색바도 숨김 */
    .mobile-portal-side-menu.active ~ .portal-search-section,
    .mobile-portal-side-menu.active ~ * .portal-search-section {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .mobile-portal-menu-toggle-btn {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #f3f4f6;
        color: #6b7280;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s;
        font-size: 1.1rem;
    }
    
    .mobile-portal-menu-toggle-btn:active {
        background: #e5e7eb;
    }
    
    .mobile-portal-search-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
        height: 44px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 0 12px;
        transition: background 0.2s, border-color 0.2s;
    }
    
    .mobile-portal-search-wrapper:focus-within {
        background: #ffffff;
        border-color: #d1d5db;
    }
    
    .mobile-portal-search-icon {
        width: 18px;
        height: 18px;
        color: #9ca3af;
        flex-shrink: 0;
        font-size: 0.95rem;
    }
    
    .mobile-portal-search-input {
        flex: 1;
        min-width: 0;
        height: 100%;
        border: none;
        background: transparent;
        font-size: 0.95rem;
        color: #111827;
        outline: none;
        padding: 0;
    }
    
    .mobile-portal-search-input::placeholder {
        color: #9ca3af;
    }
    
    .mobile-portal-search-submit-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #e5e7eb;
        color: #6b7280;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s;
        font-size: 0.85rem;
    }
    
    .mobile-portal-search-submit-btn:active {
        background: #d1d5db;
    }
    
    .mobile-portal-search-suggestions {
        display: none;
        position: absolute;
        bottom: calc(100% + 8px);
        left: 16px;
        right: 16px;
        max-height: 300px;
        overflow-y: auto;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
    }
    
    .mobile-portal-search-suggestions.active {
        display: block;
    }
    
    /* 하단바 공간 확보 (검색바 높이 + 패딩) */
    .insurance-portal-page {
        padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    }
    
    .portal-wrapper {
        padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    }
    
    /* 검색 결과 영역도 하단바 공간 확보 */
    #resultsContent {
        padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    }
    
    /* 모바일 전체 화면 슬라이드 메뉴 (하단에서 올라옴) */
    .mobile-portal-side-menu {
        position: fixed;
        inset: 0;
        z-index: 10002;
        display: none;
        pointer-events: none;
    }
    
    .mobile-portal-side-menu.active {
        display: block;
        pointer-events: auto;
    }
    
    .mobile-portal-side-menu-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-portal-side-menu.active .mobile-portal-side-menu-overlay {
        opacity: 1;
    }
    
    .mobile-portal-side-menu-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-portal-side-menu.active .mobile-portal-side-menu-content {
        transform: translateY(0);
    }
    
    .mobile-portal-side-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 12px 5px 12px;
        background: #ffffff;
        position: sticky;
        top: 0;
        z-index: 1;
    }
    
    .mobile-portal-side-menu-header h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #111827;
        margin: 0;
    }
    
    .mobile-portal-side-menu-close {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #f3f4f6;
        color: #6b7280;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .mobile-portal-side-menu-close:active {
        background: #e5e7eb;
    }

    .fc-sponsor-banner-wrapper {
        margin: 0px !important;
        padding: 0px !important;
    }
    
    .mobile-portal-side-menu-body {
        flex: 1;
        overflow-y: auto;
        padding: 0;
    }
    
    .mobile-portal-side-menu-section {
        padding: 0px 10px;
    }
    
    .mobile-portal-side-menu-section:last-child {
        border-bottom: none;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    .mobile-portal-side-menu-section h4 {
        font-size: 0.95rem;
        font-weight: 700;
        color: #111827;
        margin: 0 0 16px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-portal-notice-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* 모바일 사이드바 소식지 슬라이더 */
    .mobile-portal-side-menu .newsletter-slider {
        position: relative;
        padding: 0;
    }
    
    .mobile-portal-side-menu .newsletter-track {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 0 8px 0;
    }
    
    .mobile-portal-side-menu .newsletter-track::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-portal-side-menu .newsletter-item {
        flex: 0 0 auto;
        width: 80px;
        min-width: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0;
        background: transparent;
        border: none;
        text-decoration: none;
        color: #374151;
        transition: transform 0.2s;
    }
    
    .mobile-portal-side-menu .newsletter-item:active {
        transform: scale(0.95);
    }
    
    .mobile-portal-side-menu .newsletter-logo {
        width: 48px;
        height: 48px;
        margin: 0 auto;
        border-radius: 8px;
        overflow: hidden;
        background: #f9fafb;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e5e7eb;
    }
    
    .mobile-portal-side-menu .newsletter-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
    }
    
    .mobile-portal-side-menu .newsletter-logo-fallback {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #9ca3af;
        font-size: 1.2rem;
    }
    
    .mobile-portal-side-menu .newsletter-company-name {
        display: block;
        font-size: 0.7rem;
        color: #374151;
        font-weight: 500;
        line-height: 1.3;
        word-break: keep-all;
        text-align: center;
    }
    
    .mobile-portal-side-menu .newsletter-item {
        width: 58px;
        min-width: 58px;
    }
    
    /* 모바일 사이드 메뉴 퀵메뉴 그리드 */
    .mobile-portal-quick-menu-grid {
        display: flex;
        gap: 6px;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .mobile-portal-quick-menu-grid:active {
        cursor: grabbing;
    }
    
    .mobile-portal-quick-menu-grid::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-portal-quick-menu-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .mobile-service-icon-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s;
        padding: 0;
        border-radius: 8px;
        flex-shrink: 0;
        min-width: 58px;
        pointer-events: auto;
        outline: none;
    }
    
    .mobile-service-icon-item:active {
        transform: scale(0.95);
    }
    
    .mobile-service-icon {
        width: 48px;
        height: 48px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1.5px solid #e5e7eb;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: all 0.2s;
    }
    
    .mobile-service-icon i {
        font-size: 20px;
        display: inline-block;
    }
    
    .mobile-service-icon-item:active .mobile-service-icon {
        border-color: #d1d5db;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-service-label {
        font-size: 11px;
        font-weight: 500;
        color: #374151;
        text-align: center;
        line-height: 1.3;
        word-break: keep-all;
    }
    
    /* 모바일 사이드 메뉴에서 PC 버전 공지사항 스타일 적용 (크기만 조정) */
    .mobile-portal-side-menu .portal-notice-section {
        margin-top: 0;
    }
    
    .mobile-portal-side-menu .portal-notice-header {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .mobile-portal-side-menu .portal-notice-list {
        max-height: 300px;
    }
    
    .mobile-portal-side-menu .portal-notice-item {
        padding: 10px 14px;
    }
    
    .mobile-portal-side-menu .portal-notice-title {
        font-size: 12px;
    }
    
    .mobile-portal-side-menu .portal-notice-date {
        font-size: 10px;
    }
    
    .mobile-portal-side-menu .portal-notice-empty {
        padding: 20px 14px;
        font-size: 12px;
    }
    
    .mobile-calc-quicklink {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px 8px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s;
        background: transparent;
    }
    
    .mobile-calc-quicklink:active {
        transform: scale(0.95);
        background: #f3f4f6;
    }
    
    .mobile-calculator-panel-wrapper {
        background: #ffffff;
    }
    
    .mobile-portal-calculator-wrapper {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-portal-calc-input-group {
        display: flex;
        gap: 8px;
    }
    
    .mobile-portal-calc-input {
        flex: 1;
        height: 40px;
        padding: 0 12px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 0.9rem;
        outline: none;
    }
    
    .mobile-portal-calc-input:focus {
        border-color: #3b82f6;
    }
    
    .mobile-portal-calc-btn {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #3b82f6;
        color: #ffffff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .mobile-portal-calc-btn:active {
        background: #2563eb;
    }
    
    .mobile-portal-calc-result {
        padding: 12px;
        background: #f9fafb;
        border-radius: 8px;
        font-size: 0.9rem;
        color: #374151;
        min-height: 40px;
    }
    
    /* FC 후원 배너 스타일 (PC 버전과 동일, 모바일에서만 크기 조정) */
    .fc-sponsor-banner-wrapper {
        margin: 0;
        padding: 0;
        position: relative;
    }

    .fc-sponsor-banner {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px 14px;
        background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
        border-radius: 12px;
        text-decoration: none;
        color: white;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
        position: relative;
        overflow: hidden;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .fc-sponsor-banner:active {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
        text-decoration: none;
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
    }

    .fc-banner-decoration-left {
        position: absolute;
        left: -15px;
        top: -15px;
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        opacity: 0.4;
    }

    .fc-banner-decoration-right {
        position: absolute;
        right: -10px;
        bottom: -10px;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        opacity: 0.4;
    }

    .fc-banner-top-row {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .fc-banner-icon {
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        position: relative;
        z-index: 1;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    .fc-banner-content {
        flex: 1;
        min-width: 0;
        position: relative;
        z-index: 1;
    }

    .fc-banner-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        font-size: 0.65rem;
        font-weight: 600;
        margin-bottom: 4px;
        backdrop-filter: blur(8px);
    }

    .fc-banner-badge i {
        font-size: 0.6rem;
        color: #ffd700;
    }

    .fc-banner-title {
        font-size: 0.9rem;
        font-weight: 700;
        margin-bottom: 2px;
        letter-spacing: -0.2px;
        line-height: 1.3;
    }

    .fc-banner-desc {
        font-size: 0.7rem;
        opacity: 0.95;
        font-weight: 400;
        line-height: 1.4;
    }

    .fc-banner-cta {
        align-self: flex-end;
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 600;
        transition: all 0.3s ease;
        backdrop-filter: blur(8px);
        position: relative;
        z-index: 1;
        margin-top: 2px;
    }

    .fc-banner-cta i {
        transition: transform 0.3s ease;
        font-size: 0.7rem;
    }
    
    .mobile-portal-empty {
        padding: 20px;
        text-align: center;
        color: #9ca3af;
        font-size: 0.85rem;
    }
    
    /* 모바일 사이드바 계산기 스타일 */
    .mobile-portal-side-menu .insurance-calculator-wrapper {
        padding: 0;
        background: white;
        border-radius: 10px;
        border: 2px solid #06b6d4;
        overflow: hidden;
        margin: 0;
    }
    
    .mobile-portal-side-menu .calculator-tabs {
        display: flex;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .mobile-portal-side-menu .calc-tab {
        flex: 1;
        padding: 12px 8px;
        border: none;
        background: transparent;
        color: #6b7280;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        border-bottom: 2px solid transparent;
    }
    
    .mobile-portal-side-menu .calc-tab.active {
        background: #06b6d4;
        color: white;
        border-bottom: 2px solid #06b6d4;
    }
    
    .mobile-portal-side-menu .calc-tab:active {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* 모바일 계산기 패널 - 기본 숨김 */
    .mobile-portal-side-menu .calculator-panel {
        display: none !important;
        padding: 7px;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* 모바일 계산기 패널 - 활성화 시 표시 */
    .mobile-portal-side-menu .calculator-panel.active,
    .mobile-portal-side-menu #mobileBmiCalculator.active,
    .mobile-portal-side-menu #mobileOccupationCalculator.active,
    .mobile-portal-side-menu #mobileAgeCalculator.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-portal-side-menu .calculator-input-group {
        display: flex;
        gap: 5px;
        margin-bottom: 0px;
    }
    
    .mobile-portal-side-menu .calculator-input {
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        font-size: 0.85rem;
        transition: border-color 0.2s;
        outline: none;
    }
    
    .mobile-portal-side-menu .calculator-input:focus {
        border-color: #06b6d4;
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.1) !important;
    }
    
    .mobile-portal-side-menu .calculator-btn {
        padding: 8px 12px;
        background: #06b6d4;
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    
    .mobile-portal-side-menu .calculator-btn:active {
        background: #0891b2;
    }
    
    .mobile-portal-side-menu .calculator-result {
        display: none;
        padding: 12px;
        background: #f0f9ff;
        border-radius: 6px;
        text-align: center;
        font-size: 1rem;
        font-weight: 700;
        color: #0c4a6e;
        margin-top: 8px;
        border: 1px solid #bae6fd;
    }
    
    .mobile-portal-side-menu .calculator-result.show {
        display: block;
    }
    
    /* PC 버전 숨김 (모바일에서) */
    @media (max-width: 768px) {
        .portal-right-section {
            display: none !important;
        }
        
        .portal-main-content {
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 !important;
            margin: 15px 0 0 0 !important;
        }
        
        .portal-content-layout {
            grid-template-columns: 1fr !important;
            gap: 0 !important;
            padding: 0 !important;
        }
        
        .portal-left-section {
            padding: 0 !important;
        }
        
        .portal-insurance-data-section,
        .portal-insurance-work-section {
            margin: 0 0 15px 0 !important;
            border-radius: 0 !important;
            border-left: none !important;
            border-right: none !important;
            padding: 16px !important;
        }
        
        /* 검색 결과 영역도 전체 폭 */
        .search-results-section {
            padding: 0 !important;
            margin: 0 !important;
        }
        
        #resultsContent {
            padding: 0 !important;
        }
        
        .result-item {
            border-radius: 0 !important;
            border-left: none !important;
            border-right: none !important;
            margin: 0 !important;
        }
        
        /* 추천플랜 섹션도 모바일 스타일 */
        .portal-recommended-plans-section {
            padding: 0 !important;
        }
        
        .portal-recommended-plans-section .portal-wrapper {
            padding: 0 !important;
        }
        
        .portal-category-box {
            border-radius: 0 !important;
            border-left: none !important;
            border-right: none !important;
            margin: 0 !important;
        }
    }
}
