@charset "utf-8";
/********************************************************
 충청남도의사회 메인 (index/index-chn.php) 전용 스타일 (2026-11-18)
 - 시안 : https://claude.ai/artifact/MHmKdnzMKeJub7dpXK1m2i
 - 색은 아래 변수만 바꾸면 메인 전체에 반영
********************************************************/
.chn-main {
	--chn-main: #0e6b78;      /* 주 색 (청록) */
	--chn-deep: #0b3f48;      /* 진한 청록 (제목 글자, 사진 위 글자 상자) */
	--chn-tint: #e4eeef;      /* 상단 바탕 */
	--chn-soft: #e3f1f2;      /* 아이콘 동그라미, 게시판 이름 */
	--chn-line: #dce5e6;      /* 상자 테두리 */
	--chn-lic: #f2a23a;       /* 면허신고센터 (주황) */
	--chn-lic-dark: #e08e1f;
	--chn-lic-ink: #2b1b00;   /* 면허신고센터 글자 */
	--chn-hero-h: 390px;      /* 큰 사진 높이 */
	--chn-radius: 12px;
	--chn-gap: 24px;
	background: #f3f6f6;
	padding-bottom: 36px;
}
.chn-main a:hover { text-decoration: none; }

/********************************************************
■ 상단 : 큰 사진 + 오른쪽 문구·바로가기
********************************************************/
.chn-top { background: var(--chn-tint); padding: 24px 0; }
.chn-top-row { display: flex; gap: 16px; }
.chn-hero { flex: 1 1 auto; min-width: 0; height: var(--chn-hero-h); border-radius: 14px; overflow: hidden; position: relative; background: #cfdfe1; }
.chn-hero .carousel, .chn-hero .carousel-inner, .chn-hero .carousel-item { height: 100%; }
.chn-hero-img { display: block; height: 100%; }
.chn-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chn-hero .carousel-fade .carousel-item { transition-duration: 1s; }

/* 사진 위 제목 : 왼쪽 아래 작은 반투명 상자 (사진을 가리지 않게) */
.chn-hero-cap {
	position: absolute; left: 16px; bottom: 16px; margin: 0; max-width: 70%;
	background: rgba(11, 63, 72, .78); color: #fff; border-radius: 8px; padding: 8px 14px;
	font-size: 17px; font-weight: 700; line-height: 1.4;
}
/* 넘기기 : 오른쪽 아래 */
.chn-hero-ctrl {
	position: absolute; right: 16px; bottom: 16px; z-index: 3;
	display: flex; align-items: center; gap: 6px; background: rgba(11, 63, 72, .78); border-radius: 999px; padding: 4px 6px;
}
.chn-hero-ctrl a { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; font-size: 18px; }
.chn-hero-ctrl a:hover { background: rgba(255, 255, 255, .18); }
.chn-hero-num { font-size: 12px; color: #d3e6e8; min-width: 34px; text-align: center; }
.chn-hero-num b { font-weight: 700; color: #fff; }
.chn-hero-none { height: 100%; display: flex; align-items: center; justify-content: center; color: #55676c; }

/* 오른쪽 : 4칸 (문구 상자 + 면허신고센터 · 의사회비 · 문의전화) - 사진 높이에 맞춰 채움 */
.chn-quick { flex: 0 0 340px; display: flex; flex-direction: column; gap: 10px; min-height: var(--chn-hero-h); }
.chn-slogan {
	flex: .95; display: flex; flex-direction: column; justify-content: center; line-height: 1.3;
	background: var(--chn-deep); border-radius: var(--chn-radius); padding: 14px 22px;
}
.chn-slogan span { display: block; font-size: 14px; color: #a8d8dd; letter-spacing: -.2px; }
.chn-slogan b { display: block; font-size: 25px; font-weight: 800; color: #fff; margin-top: 2px; }
.chn-q {
	flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 18px;
	background: #fff; border: 1px solid var(--chn-line); border-radius: var(--chn-radius); color: #1f2a2e !important;
	transition: border-color .15s, background .15s;
}
.chn-q:hover { border-color: var(--chn-main); }
.chn-q > .fa:first-child {
	flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--chn-soft); color: var(--chn-main);
	display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.chn-q-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chn-q-t b { font-size: 17px; font-weight: 800; }
.chn-q-t b em { font-style: normal; color: var(--chn-deep); }
.chn-q-t small { font-size: 13px; color: #3e5156; line-height: 1.4; }
/* 면허신고센터 : 연한 주황 바탕 + 주황 아이콘 (눈에 띄되 부시지 않게) */
.chn-q.is-lic { flex: 1.05; background: #fff4e2; border-color: #f3c47a; }
.chn-q.is-lic:hover { background: #ffeacb; border-color: var(--chn-lic); }
.chn-q.is-lic > .fa:first-child { width: 46px; height: 46px; background: var(--chn-lic); color: var(--chn-lic-ink); font-size: 20px; }
.chn-q.is-lic .chn-q-t b { font-size: 20px; color: #7a3e00; }
.chn-q.is-lic .chn-q-t small { color: #6b4a1f; }
.chn-q-go { margin-left: auto; font-size: 22px; color: #b86a00; }

/********************************************************
■ 본문 : 왼쪽(로그인·광고) + 오른쪽(상자들)
********************************************************/
.chn-body { padding-top: 28px; }
.chn-body-row { display: flex; gap: var(--chn-gap); align-items: flex-start; }
.chn-aside { flex: 0 0 240px; display: flex; flex-direction: column; gap: 16px; }
.chn-content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--chn-gap); }
.chn-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--chn-gap); }

/* 상자 */
.chn-box { background: #fff; border: 1px solid var(--chn-line); border-radius: var(--chn-radius); padding: 20px 22px; }
.chn-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.chn-box-head h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--chn-deep); display: flex; align-items: center; gap: 8px; }
.chn-box-head h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--chn-main); }
.chn-box-head h3 a { color: inherit !important; }
.chn-more { font-size: 13px; color: #44565b !important; }
.chn-more:hover { color: var(--chn-main) !important; }
.chn-empty { margin: 12px 0 4px; font-size: 14px; color: #6b7b80; }

/* 목록 */
.chn-list { list-style: none; margin: 0; padding: 0; }
.chn-list li { display: flex; align-items: center; gap: 10px; border-top: 1px solid #edf2f2; }
.chn-list li a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 15px; color: #1f2a2e !important; }
.chn-list li a:hover .chn-list-t { color: var(--chn-main); }
.chn-list-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chn-list time { flex: none; font-size: 13px; color: #55676c; }
.chn-chip { flex: none; font-size: 12px; color: var(--chn-deep); background: var(--chn-soft); border-radius: 4px; padding: 1px 6px; }
.chn-new {
	flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--chn-lic); color: var(--chn-lic-ink);
	font-size: 10px; font-weight: 800; font-style: normal; display: inline-flex; align-items: center; justify-content: center;
}

/* 회무일정 : 날짜 카드 */
.chn-sched-box .chn-box-head { margin-bottom: 14px; }
.chn-sched { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.chn-day { border: 1px solid var(--chn-line); border-radius: 10px; padding: 14px 16px; background: #f8fbfb; }
.chn-day.is-today { border: 2px solid var(--chn-main); background: #fff; padding: 13px 15px; }
.chn-day-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.chn-day-h b { font-size: 30px; font-weight: 800; line-height: 1; color: var(--chn-deep); }
.chn-day-h span { font-size: 14px; color: #3e5156; }
.chn-day.is-sat .chn-day-h span { color: #1d5fbf; }
.chn-day.is-sun .chn-day-h span { color: #c0392b; }
.chn-day-h em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--chn-main); border-radius: 999px; padding: 2px 9px; }
.chn-day ul { list-style: none; margin: 0; padding: 0; }
.chn-day li { position: relative; padding-left: 11px; font-size: 14px; line-height: 1.5; margin-top: 4px; }
.chn-day li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--chn-main); }
.chn-day li a { color: #1f2a2e !important; }
.chn-day li a:hover { color: var(--chn-main) !important; }
.chn-day li small { color: #55676c; }

/* 포토갤러리 */
.chn-photo { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.chn-photo a { display: flex; flex-direction: column; gap: 6px; color: #1f2a2e !important; }
.chn-photo-img { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #eef3f3; }
.chn-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.chn-photo a:hover img { transform: scale(1.04); }
.chn-photo-t { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chn-photo time { font-size: 12px; color: #55676c; }

/* 왼쪽 : 로그인 (240px 폭에 맞춰 입력칸 위, 로그인 단추 아래로) */
.chn-aside .jm-box { margin: 0 !important; background: #fff; border: 1px solid var(--chn-line); border-radius: var(--chn-radius); }
.chn-aside .jm-ol-form { flex-direction: column; }
.chn-aside .jm-ol-login { width: 100%; min-height: 44px; margin: 8px 0 0 !important; }
.chn-side-bnr { display: block; border: 1px solid var(--chn-line); border-radius: var(--chn-radius); overflow: hidden; background: #fff; }
.chn-side-bnr img { width: 100%; display: block; }

/* 왼쪽 : 광고 (199x322 비율, 무작위로 돌아감) */
.chn-ad { background: #fff; border: 1px solid var(--chn-line); border-radius: var(--chn-radius); padding: 10px 10px 30px; position: relative; }
.chn-ad-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #55676c; padding: 0 2px 6px; }
.chn-ad-head a { color: #55676c !important; }
.chn-ad .carousel-item img { width: 100%; aspect-ratio: 199 / 322; object-fit: cover; display: block; border-radius: 6px; }
.chn-ad-dots { bottom: -24px; margin: 0; }
.chn-ad-dots li { width: 6px; height: 6px; border-radius: 3px; border: 0; margin: 0 3px; background: #b9c9cb; opacity: 1; }
.chn-ad-dots li.active { width: 18px; background: var(--chn-main); }

/* 하단 배너 (PC) : 151x110 비율 */
.chn-bnr-box { margin-top: var(--chn-gap); }
.chn-bnr-box .chn-box-head { margin-bottom: 14px; }
.chn-bnrs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.chn-bnrs a { display: block; aspect-ratio: 151 / 110; border: 1px solid var(--chn-line); border-radius: 8px; overflow: hidden; background: #fff; }
.chn-bnrs img { width: 100%; height: 100%; object-fit: contain; display: block; }

/********************************************************
■ 화면이 좁을 때 (태블릿) - 휴대폰은 index-chn-m.php 가 따로 그림
********************************************************/
@media (max-width: 1199.98px) {
	.chn-quick { flex-basis: 300px; }
	.chn-sched { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
	.chn-main { --chn-hero-h: 320px; }
	.chn-top-row, .chn-body-row { flex-direction: column; }
	.chn-quick { flex-basis: auto; min-height: 0; }
	.chn-aside { flex-basis: auto; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chn-grid2 { grid-template-columns: minmax(0, 1fr); }
	.chn-bnrs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
