/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
}
ul,
li {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Variables (기존 사이트 느낌의 컬러) */
:root {
  --point-color: #ff9900; /* 이놀자 오렌지/옐로우 */
  --bg-light: #f9f9f9;
  --text-dark: #333;
  --text-gray: #777;
  --border-color: #e0e0e0;
}

body {
  color: var(--text-dark);
  background-color: #fff;
  font-size: 14px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Top Utility Menu */
.top-util {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}
.top-util .container {
  display: flex;
  justify-content: flex-end;
  padding: 5px 15px;
}
.top-util ul {
  display: flex;
  gap: 15px;
}
.top-util a {
  color: var(--text-gray);
}
.top-util a:hover {
  color: var(--point-color);
}

/* Header (Logo & Search) */
.header-main {
  padding: 25px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.logo {
  font-size: 28px;
  font-weight: bold;
  color: #2c952c;
  display: flex;
  align-items: center;
}
.logo span {
  color: var(--point-color);
  margin-left: 5px;
}

.search-box {
  display: flex;
  width: 100%;
  max-width: 500px;
  border: 2px solid var(--point-color);
  border-radius: 20px;
  overflow: hidden;
}
.search-box input {
  flex: 1;
  border: none;
  padding: 10px 15px;
  outline: none;
}
.search-box button {
  background: var(--point-color);
  color: white;
  border: none;
  padding: 10px 25px;
  font-weight: bold;
  cursor: pointer;
}

/* GNB (Main Navigation) */
.gnb {
  background: var(--point-color);
}
.gnb ul {
  display: flex;
}
.gnb li a {
  display: block;
  padding: 8px 20px;
  color: white;
  font-weight: bold;
  font-size: 16px;
}
.gnb li a:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Main Content Layout (3 Columns for PC) */
.content-area {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: 25px;
  margin: 30px auto;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  border-bottom: 2px solid var(--text-dark);
  padding-bottom: 10px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title .more {
  font-size: 12px;
  font-weight: normal;
  color: var(--text-gray);
}

/* Left Column (마이데일리 - List type) */
.post-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.post-list img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
}
.post-list .info h4 {
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-list .info p {
  font-size: 12px;
  color: var(--text-gray);
}

/* Middle Column (데뷰 - Grid type) */
.grid-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.grid-list .card {
  border: 1px solid var(--border-color);
  padding: 10px;
  text-align: center;
}
.grid-list .card img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}
.grid-list .card h4 {
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 5px;
}

/* Right Column (Sidebar) */
.sidebar .banner {
  background: #fdf5e6;
  border: 1px solid #f5dca8;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.sidebar .banner h3 {
  color: var(--point-color);
  margin-bottom: 10px;
}
.sidebar .widget {
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  overflow: hidden;
}
.sidebar .widget-header {
  background: var(--bg-light);
  padding: 10px;
  text-align: center;
  font-weight: bold;
}
.nick {
  font-size: 12px;
  color: var(--text-gray);
}
/* Footer */
.footer {
  background: var(--bg-light);
  padding: 30px 0;
  text-align: center;
  color: var(--text-gray);
  font-size: 13px;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}
.footer-links {
  margin-bottom: 15px;
}
.footer-links a {
  margin: 0 10px;
  color: var(--text-dark);
  font-weight: bold;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
  .header-main {
    flex-direction: row;
    justify-content: space-between;
  }
  .search-box {
    margin-left: auto;
  }
}

/* 태블릿 (2단) */
@media (max-width: 1024px) {
  .content-area {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar {
    grid-column: 1 / -1;
    display: flex;
    gap: 20px;
  }
  .sidebar > div {
    flex: 1;
  }
}

/* 모바일 (1단) */
@media (max-width: 768px) {
  .content-area {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: column;
    gap: 0;
  }
  .top-util {
    display: none;
  } /* 모바일에서는 상단 유틸리티 숨김 */
  .gnb ul {
    flex-wrap: wrap;
  }
  .gnb li {
    flex: 1;
    text-align: center;
  }
  .post-list img {
    width: 80px;
    height: 60px;
  }
}

/*********************************/
/* =========================================
       1. 최상단 검색 및 버튼 영역 (검은 배경)
       ========================================= */
.filter-block {
  border: 1px solid #ddd;
  margin-bottom: 30px;
}

.filter-header-bg {
  background-color: #212125;
  border: 1px solid #111;
  padding: 25px 30px 30px;
}

/* 타이틀 및 검색바 */
.filter-top-row {
  display: flex;
  align-items: center;
}

.title-text {
  color: #f7c544;
  font-weight: 900;
  margin-right: 25px;
  letter-spacing: -1px;
  font-size: 1.6rem; /* 복구: 타이틀 크기 */
}

.search-wrapper {
  display: flex;
  background: #fff;
  height: 40px;
  align-items: center;
  border: 1px solid #ccc;
  flex-grow: 1; /* 검색창이 남은 공간을 차지하도록 */
  max-width: 350px; /* PC에서 너무 넓어지는 것 방지 */
}

.search-wrapper input {
  border: none;
  outline: none;
  padding: 0 10px;
  width: 100%;
  font-size: 0.95rem;
}

.search-clear {
  color: #888;
  background: none;
  border: none;
  padding: 0 10px;
  font-size: 14px;
  cursor: pointer;
}

.search-btn {
  background-color: #f7c544;
  color: #111;
  border: none;
  height: 100%;
  padding: 0 25px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
}

/* 퀵링크 */
.quick-links {
  margin-left: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
}

.quick-links span.num {
  color: #777;
  margin-right: 4px;
}

.quick-links a {
  color: #f7c544;
  text-decoration: none;
}

.quick-links a:hover {
  text-decoration: underline;
}

/* 3단 버튼 그룹 (대구/경북/전국) */
.region-grid {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 25px;
  gap: 40px;
}

.region-col {
  flex: 1;
}

.region-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
}

.region-title span {
  font-weight: normal;
  color: #999;
  font-size: 0.9rem;
}

.custom-btn-group {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #111;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.custom-btn-group .btn {
  flex: 1;
  border: none;
  border-radius: 0;
  font-size: 0.9rem;
  /* padding: 12px 0; */
  color: #888;
  background: linear-gradient(to bottom, #3a3a3c, #222224);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.2s;
}

.custom-btn-group .btn:first-child {
  border-right: 1px solid #111;
}

.custom-btn-group .btn span {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* 활성화 그룹 */
.custom-btn-group.active-group .btn {
  background: linear-gradient(to bottom, #725b3e, #4a3a25);
  color: #bbb;
}

.custom-btn-group.active-group .btn.active-tab {
  color: #fff;
  font-weight: bold;
}

.custom-btn-group.active-group .btn.active-tab span {
  opacity: 0.8;
}

/* =========================================
       2. 하단 체크박스 영역 (흰 배경)
       ========================================= */
.checkbox-grid {
  background: #fff;
  padding: 20px 30px 30px;
  display: flex;
  border-bottom: 1px solid #ddd;
}

/* 3등분 컬럼 */
.filter-col {
  flex: 1;
  padding-right: 20px;
}

.filter-col:not(:last-child) {
  border-right: 1px solid #eee;
  margin-right: 20px;
}

.filter-group-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

/* 체크박스 항목 2단 리스트 구조 */
.filter-list-wrap {
  display: flex;
  gap: 20px;
}

.filter-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-list li {
  margin-bottom: 8px;
}

.sub-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #111;
  margin-top: 15px;
  margin-bottom: 8px;
}

.sub-title.first {
  margin-top: 0;
}

/* 체크박스 커스텀 */
.custom-check {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.custom-check input {
  margin-top: 4px;
  margin-right: 8px;
  cursor: pointer;
}

.custom-check span {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

/* =========================================
       3. 게시물 리스트 및 우측 사이드바
       ========================================= */
.post-list .list-group-item {
  border-left: none;
  border-right: none;
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid #eee;
}

.post-thumb {
  width: 160px;
  height: 110px;
  object-fit: cover;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  color: #666;
}

.fb-widget-cover {
  height: 120px;
  background: url("https://via.placeholder.com/400x150/333/fff?text=Cover")
    center/cover;
}

.fb-profile-pic {
  width: 80px;
  height: 80px;
  border: 4px solid #fff;
  margin-top: -40px;
}

/* =========================================
       4. 반응형 미디어 쿼리 (모바일 대응)
       ========================================= */
@media (max-width: 991px) {
  /* 991px 이하 (태블릿 및 모바일) */

  /* 상단 검색 영역 세로 배치 */
  .filter-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .title-text {
    margin-bottom: 15px;
    font-size: 1.4rem;
  }

  .search-wrapper {
    width: 100%;
    max-width: none;
    margin-bottom: 15px;
  }

  .quick-links {
    margin-left: 0;
    justify-content: flex-start;
  }

  /* 버튼 그룹 세로 배치 */
  .region-grid {
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    margin-top: 20px;
  }

  .region-col {
    width: 100%;
  }

  /* 체크박스 영역 세로 배치 */
  .checkbox-grid {
    flex-direction: column;
    padding: 20px;
  }

  .filter-col {
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 25px;
  }

  .filter-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
  }
}

@media (max-width: 575px) {
  /* 575px 이하 (작은 모바일 기기) */

  .filter-header-bg {
    padding: 15px;
  }

  /* 체크박스 항목 1단으로 변경 */
  .filter-list-wrap {
    flex-direction: column;
    gap: 10px;
  }

  /* 모바일에서 썸네일 크기 조정 */
  .post-list .list-group-item {
    flex-direction: column;
  }

  .post-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin-bottom: 15px;
  }

  .ms-3 {
    margin-left: 0 !important;
  }
}

