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

/* 기본 body 스타일 */
body {
    font-family: 'Noto Sans KR', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-size: 16px;
}

/* Nicepage 기본 스타일 */
.u-body {
    font-family: 'Noto Sans KR', 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.u-xl-mode {
    font-size: 1rem;
}

/* 메리츠화재 빨강 계열 컬러 적용 */
:root {
    --meritz-red: #e60012;
    --meritz-red-dark: #d1000f;
    --meritz-gray: #f8f9fa;
    --meritz-border: #e5e7eb;
}

/* 헤더 스타일 - 메리츠화재 스타일 적용 */
.header-logo-wrap {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    padding: 1.5rem 0 0.5rem 0;
    background: #fff !important;
    color: #222 !important;
}

.u-header {
    background: #fff;
    color: #222;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.u-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.u-sheet {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.u-sheet-1 {
    padding: 0 20px;
}

.u-valign-middle-lg,
.u-valign-middle-md,
.u-valign-middle-sm,
.u-valign-middle-xs {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 스타일 */
.u-text-1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222 !important;
    text-align: center;
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
}

.u-align-center {
    text-align: center;
}

/* 네비게이션 스타일 */
.u-menu {
    position: relative;
}

.u-menu-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.u-custom-menu.u-nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.u-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.u-nav-item {
    list-style: none;
}

.u-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
}

.u-nav-link:hover {
    color: #ffd700;
    background-color: rgba(255, 255, 255, 0.1);
}

.u-text-active-palette-1-base {
    color: white;
}

.u-text-hover-palette-2-base:hover {
    color: #ffd700;
}

.u-button-style {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* 햄버거 메뉴 */
.menu-collapse {
    display: none;
}

.u-hamburger-link {
    display: none;
    color: white;
    text-decoration: none;
    padding: 10px;
}

.u-svg-link {
    display: none;
}

.u-svg-content {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 섹션 스타일 */
.u-section-1 {
    background: var(--meritz-gray);
    padding: 60px 0;
    min-height: 60vh;
}

/* 메인 컨테이너 */
.main-container {
    display: flex;
    min-height: 60vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
    position: relative;
  z-index: 2; 
}

/* 사이드바 스타일 - 메리츠화재 스타일 */
.sidebar {
    width: 300px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: static !important;
    top: auto           !important;
    z-index: auto;                /* 세미콜론 추가 */
    border: 1px solid var(--meritz-border);
}

.category-section h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1e3a8a;
    font-weight: 600;
    position: relative;
}

.category-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #1e3a8a;
}

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

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--meritz-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.category-item:hover {
    background: #fbeaec;
    border-color: var(--meritz-red);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.15);
}

.category-item:hover::before {
    transform: scaleY(1);
}

.category-item.active {
    background: linear-gradient(135deg, var(--meritz-red) 0%, var(--meritz-red-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.15);
    transform: translateX(8px);
}

.category-item.active::before {
    background: #ffffff;
    transform: scaleY(1);
}

.category-item i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    color: var(--meritz-red);
}

.category-item.active i {
    color: #fff;
}

.category-item span {
    font-weight: 500;
    font-size: 1rem;
}

/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--meritz-border);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--meritz-border);
    position: relative;
}

.content-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(135deg, var(--meritz-red) 0%, var(--meritz-red-dark) 100%);
}

.content-header h2 {
    color: var(--meritz-red);
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-weight: 600;
}

.content-header h2 i {
    color: var(--meritz-red);
}

.content-header p {
    color: #6b7280;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* 콘텐츠 그리드 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--meritz-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--meritz-red) 0%, var(--meritz-red-dark) 100%);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--meritz-red);
}

.card-icon {
    text-align: center;
    margin-bottom: 25px;
}

.card-icon i {
    font-size: 3rem;
    color: var(--meritz-red);
    background: linear-gradient(135deg, var(--meritz-red) 0%, var(--meritz-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card h3 {
    color: var(--meritz-red);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.info-card ul {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.info-card li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 25px;
    color: #4b5563;
    font-size: 1rem;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--meritz-red);
    font-weight: bold;
    font-size: 1.1rem;
}

.info-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.btn-calculate {
    background: linear-gradient(135deg, var(--meritz-red) 0%, var(--meritz-red-dark) 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-calculate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--meritz-red-dark) 0%, var(--meritz-red) 100%);
    transition: left 0.3s ease;
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 0, 18, 0.18);
}

.btn-calculate:hover::before {
    left: 0;
}

.btn-calculate span {
    position: relative;
    z-index: 1;
}

/* 푸터 스타일 - 메리츠화재 스타일 */
.u-footer {
    background: linear-gradient(135deg, #222 0%, #444 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.u-grey-80 {
    background-color: #1e293b;
}

.u-social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.u-social-icons-1 {
    justify-content: center;
}

.u-social-url {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.u-social-url:hover {
    color: var(--meritz-red);
}

.u-icon {
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 50%;
    background-color: var(--meritz-red);
    transition: background-color 0.3s ease;
}

.u-icon:hover {
    background-color: var(--meritz-red-dark);
}

.u-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.u-text-white {
    color: white;
}

.u-svg-link {
    display: none;
}

.u-svg-content {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.u-spacing-10 {
    margin-bottom: 20px;
}

.u-text {
    font-family: 'Noto Sans KR', sans-serif;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        padding: 30px 15px;
        gap: 30px;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .content-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 15px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .u-text-1 {
        font-size: 1.7rem;
    }
    
    .main-nav-list {
        gap: 1.2rem;
    }
    
    .main-nav-list li a {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px 10px;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .info-card {
        padding: 25px;
    }
    
    .content-header h2 {
        font-size: 1.8rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .category-item {
        padding: 15px 18px;
    }
    
    .category-item span {
        font-size: 0.95rem;
    }
    
    .u-header {
        padding: 0;
    }
    
    .u-text-1 {
        font-size: 1.3rem;
    }
    
    .main-nav {
        margin-bottom: 0.5rem;
    }
    
    .main-nav-list {
        gap: 0.5rem;
    }
    
    .main-nav-list li a {
        font-size: 0.97rem;
        padding: 7px 7px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .content-header h2 {
        font-size: 1.6rem;
    }
    
    .content-header p {
        font-size: 1rem;
    }
    
    .btn-calculate {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .u-text-1 {
        font-size: 1.05rem;
    }
    
    .main-nav-list {
        flex-direction: column;
        gap: 0.2rem;
        background: #fff;
        border-radius: 8px;
        margin: 0 10px;
        padding: 8px 0;
        border: 1px solid var(--meritz-border);
    }
    
    .main-nav-list li a {
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
        padding: 10px 0;
        color: #222;
    }
    
    .main-nav-list li a:hover {
        background: #fbeaec;
        color: var(--meritz-red);
    }
}

/* 알림 스타일 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 380px;
    font-family: 'Noto Sans KR', sans-serif;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* --- 심플 네비게이션 --- */
.main-nav {
    width: 100%;
    background: #fff;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--meritz-border);
}

.main-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav-list li a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.main-nav-list li a:hover,
.main-nav-list li a:focus {
    color: var(--meritz-red);
    background: #fbeaec;
    transform: translateY(-2px);
}

.main-nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--meritz-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav-list li a:hover::after {
    width: 80%;
}

@media (max-width: 1024px) {
    .main-nav-list {
        gap: 1.2rem;
    }
    .main-nav-list li a {
        font-size: 1rem;
        padding: 8px 12px;
    }
}
@media (max-width: 768px) {
    .main-nav {
        margin-bottom: 0.5rem;
    }
    .main-nav-list {
        gap: 0.5rem;
    }
    .main-nav-list li a {
        font-size: 0.97rem;
        padding: 7px 7px;
    }
}
@media (max-width: 480px) {
    .main-nav-list {
        flex-direction: column;
        gap: 0.2rem;
        background: #fff;
        border-radius: 8px;
        margin: 0 10px;
        padding: 8px 0;
    }
    .main-nav-list li a {
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
        padding: 10px 0;
    }
}

/* 드롭다운(사이드) 메뉴가 항상 위에 보이도록 */
.u-nav-popup, .u-popupmenu-items, .main-nav .dropdown-menu, .main-nav .side-menu {
    z-index: 2000 !important;
    background: #fff !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* 본문 이미지에는 z-index를 주지 않음 */
.content-grid img, .main-content img {
    position: static !important;
    z-index: auto !important;
}

.content-grid.image-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.content-grid.image-only img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    display: block;
} 
/* ===== 햄버거 메뉴 버튼 스타일 ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 30px;
  position: relative;
  z-index: 3000;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  background-color: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 모바일: 햄버거 보이고 메뉴 숨김 */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 1.2rem;
  }

  .main-nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid #ccc;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: max-height 0.35s ease;
    z-index: 2500;
  }

  .main-nav-list.open {
    /* 충분히 커서 내부가 보이도록 */
    max-height: 600px;
  }

  .main-nav-list li {
    width: 100%;
    text-align: center;
  }

  .main-nav-list li a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
  }

  .main-nav-list li:last-child a {
    border-bottom: none;
  }
}

/* 데스크탑 이상에서는 수평 메뉴 보장 (기본이 flex이므로 그대로 유지) */
