@charset "UTF-8";

/* [1] 기본 변수 및 초기화 (공통) */
:root {
	--primary-color: #1a0b2e;
	--accent-color: #d4af37;
	--transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body,
h1,
ul,
li,
p {
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

body {
	font-family: 'Pretendard', sans-serif;
	background-color: #fff;
	color: #333;
	line-height: 1.6;
	overflow-x: hidden;
}

/* [2] 헤더 스타일 */
header {
	position: fixed;
	top: 0;
	width: 100%;
	height: 80px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 20px 30px;
	/* 수정된 여백 */
	z-index: 500;

	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(100, 100, 100, 0.3);
	color: white;
	overflow: hidden;
	transition: height 0.4s ease, background 0.4s ease;
	box-sizing: border-box;
}

header:hover {
	height: 300px;
	background: rgba(11, 11, 46, 0.98);
}

header.scrolled {
	background: rgba(26, 11, 46, 0.95);
	height: 80px;
}

header.scrolled:hover {
	height: 300px;
}

/* [수정된 로고 스타일] */
.logo {
    cursor: pointer;
    display: flex;          /* 아이콘과 텍스트를 한 줄로 배치 */
    align-items: center;    /* ★핵심: 수직 방향으로 완벽하게 중앙 정렬 */
    gap: 12px;              /* 아이콘과 텍스트 사이에 시원한 간격 추가 */
    
    /* 텍스트 스타일 강화 */
    font-size: 28px;        /* 기존보다 키워서 존재감 UP */
    font-weight: 900;       /* 더 두껍게 해서 임팩트 강화 */
    letter-spacing: 0.5px;  /* 자간을 살짝 넓혀서 고급스러운 느낌 */
    white-space: nowrap;
    
    /* 기존에 있던 margin-top은 제거합니다. align-items가 해결해 줍니다! */
}

/* [수정된 로고 이미지 스타일] */
.logo img {
    height: 42px; /* 헤더 높이(80px)에 맞춰서 이미지 크기도 시원하게 키움 */
    width: auto;
    display: block; /* 이미지 하단의 미세한 여백 제거 */
    
    /* 혹시 이미지가 너무 밝아서 잘 안 보인다면 아래 필터 효과를 고려해 보세요 */
    /* filter: brightness(0) invert(1); -> 이미지를 강제로 흰색으로 만듦 */
    
    transition: var(--transition); 
}

.nav-container {
	display: flex;
	gap: 50px;
	/* 수정된 간격 */
	margin-top: 5px;
	position: absolute;
	/* 주변 요소들의 크기에 영향을 받지 않고 공중에 띄움 */
	left: 50%;
	/* 화면의 절반(50%) 위치로 이동 */
	transform: translateX(-50%);
	/* 자신의 넓이의 절반만큼 왼쪽으로 당겨서 완벽한 정중앙을 맞춤 */
}

.nav-column {
	text-align: center;
}

/* 메뉴 스타일 */
.nav-column>a {
	color: white;
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
	display: block;
	margin-bottom: 35px;
	transition: 0.3s;
	white-space: nowrap;
}

.nav-column:hover>a {
	color: var(--accent-color);
}

/* 서브메뉴 */
.sub-menu {
	opacity: 0;
	transition: opacity 0.3s ease 0.1s;
	pointer-events: none;
}

header:hover .sub-menu {
	opacity: 1;
	pointer-events: auto;
}

.sub-menu li {
	margin-bottom: 12px;
}

.sub-menu li a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 15px;
	transition: 0.3s;
	white-space: nowrap;
}

.sub-menu li a:hover {
	color: #fff;
	transform: translateX(5px);
}

/* 우측 상단 버튼 */
.nav-right {
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 8px;
	z-index: 501;
}

.nav-right a {
	color: white;
	text-decoration: none;
	font-weight: 600;
	transition: 0.3s;
}

.nav-right a:hover {
	color: var(--accent-color);
}

.nav-right span {
	opacity: 0.5;
	font-size: 12px;
}

/* [3] 푸터 스타일 */
footer {
	background: var(--primary-color);
	color: white;
	padding: 80px 100px;
	display: flex;
	justify-content: space-between;
}

.contact-num {
	font-size: 42px;
	font-weight: 800;
	color: var(--accent-color);
}

/* 서브 비주얼(이미지 배너) 영역 설정 */
.sub-visual {
    position: relative;
    width: 100%;
    height: 350px; /* 원하시는 이미지 높이로 조절하세요 */
    /* ↓ 실제 사용할 아파트 배경 이미지 경로로 바꿔주세요! */
    background-image: url('/images/intro/intro_bg.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 이미지 위에 어두운 막을 씌워 흰 글씨가 잘 보이게 함 */
.sub-visual-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
}

/* 중앙 타이틀 텍스트 설정 */
.sub-visual-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.sub-visual-text h2 {
    font-size: 45px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 글씨 그림자 추가 */
}

/* =========================================
   게시판/공지사항 전용 서브 비주얼 (intro보다 더 큼)
========================================= */
.board-visual {
    position: relative;
    width: 100%;
    /* intro(350px)보다 100px 더 넉넉하게 키움! */
    height: 450px; 
    /* ↓ 실제 사용할 조경/공원 배경 이미지 경로로 바꿔주세요! */
    background-image: url('/images/board/board_bg.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 글씨가 묻히지 않게 얇은 검은 막 씌우기 */
.board-visual-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.35); 
}

/* 타이틀 텍스트 설정 */
.board-visual-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.board-visual-text h2 {
    /* 캡처본처럼 폰트도 조금 더 큼직하게! */
    font-size: 50px; 
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* =========================================
   공통 사이드바 (LNB) 통합 표준 스타일 (오리지널 미세 라운딩)
========================================= */
.page-wrapper {
    display: flex;
    gap: 50px; 
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
}

/* 사이드바 큰 제목 */
.sidebar h2 {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    text-align: left;
    padding-bottom: 15px;
    /* ★ 핵심 수정: 0이었던 하단 여백을 15px로 늘려서 숨통을 틔워줍니다! */
    margin-bottom: 15px; 
    border-bottom: 3px solid #1a0b2e; 
}

/* 메뉴 리스트 뼈대 */
.sidebar .lnb {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 개별 메뉴 아이템 */
.sidebar .lnb li {
    text-align: left;
    padding: 16px 20px;
    margin-bottom: 0; /* 버튼들 사이 여백 없이 딱 붙임 */
    border-bottom: 1px solid #eee; /* 연한 가로선 */
    font-size: 16px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    border-radius: 6px; /* ★ 핵심: 완전 직각이 아닌 미세한 둥근 모서리 */
    transition: all 0.2s;
}

/* 마지막 메뉴는 하단 선 제거 */
.sidebar .lnb li:last-child {
    border-bottom: none;
}

/* 마우스 올렸을 때 */
.sidebar .lnb li:hover {
    background-color: #f8f9fa;
    color: #1a0b2e;
}

/* ★ 현재 위치 (Active) 스타일 */
.sidebar .lnb li.active {
    background-color: #1a0b2e; /* 메인 컬러 배경 */
    color: #ffffff;
    font-weight: 700;
    border-bottom: none; /* active 시 하단 선 제거로 깔끔하게 */
    border-radius: 6px; /* ★ 핵심: 배경색의 모서리도 부드럽게 둥글림 */
}

/* =========================================
   공통 본문 영역 (우측 콘텐츠 확장)
========================================= */
.content-area {
    flex: 1; /* 남은 우측 공간을 100% 꽉 채워서 넓게 쓰라는 마법의 코드 */
    min-width: 0; /* 테이블이나 내용이 길어져도 레이아웃 밖으로 튀어나가지 않게 방어 */
}

/* =========================================
   공통 사이드바 아코디언 (서브 메뉴) 스타일
========================================= */
.sub-toggle-btn {
    padding: 16px 20px;
    color: #555;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    transition: all 0.2s;
}
.sub-toggle-btn:hover {
    background-color: #f8f9fa;
    color: #1a0b2e;
}
.sub-menu-list {
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
}
.sub-menu-item {
    padding: 12px 15px 12px 45px !important;
    color: #888;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
    margin-bottom: 4px;
    display: block;
    transition: all 0.2s;
}
.sub-menu-item::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0;
}
.sub-menu-item:hover {
    color: #1a0b2e !important;
    font-weight: 700;
    background-color: #f8fafc !important;
}
.sub-menu-item.active {
    color: #ffffff !important;
    font-weight: 700;
    background-color: #1a0b2e !important;
}
.sub-menu-item.active::before {
    background-color: transparent !important;
}