.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.board-meta {
  font-size: 14px;
  color: #333;
}

.board-search {
  display: flex;
  gap: 5px;
}

.board-search select,
.board-search input {
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
}

.board-search button {
  padding: 6px 10px;
  background-color: #444;
  color: white;
  border: none;
  cursor: pointer;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
}

.pagination a.active {
  background-color: #0046b3;
  color: white;
  font-weight: bold;
}

.post-view {
  padding: 30px 0;
  border-top: 2px solid #444;
}
.post-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
}
.post-meta span {
  margin-right: 20px;
  color: #666;
  font-size: 14px;
}
.post-body {
  margin-top: 30px;
  line-height: 1.7;
  color: #333;
}
.post-file {
  margin-top: 40px;
}
.post-file img {
  vertical-align: middle;
  width: 20px;
  margin-right: 5px;
}
.post-back {
  margin-top: 40px;
}
.post-back a {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
}

.intro-img-wrapper {
  margin-bottom: 30px;
}

.intro-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.product-tabs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 30px;
  width: 100%;
  flex-wrap: nowrap;
}

.tab-box {
  min-width: 200px;
  flex: 1;
  text-align: center;
  border: 1px solid #ddd;
  padding: 12px 10px; /* 🔽 상하 여백 줄임 */
  font-size: 16px;
  font-weight: bold;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.tab-box:hover {
  background: #f0f0f0;
}

.tab-title {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: bold;
}

.tab-desc {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #666;
}

.loan-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 30px;
}

.loan-tabs .tab-box {
  text-align: center;
  border: 1px solid #ddd;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: background 0.2s;
}

.loan-tabs .tab-box:hover {
  background: #f0f0f0;
}

/* ================================================= 농협 갤러리 =========================================================*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease;
}
.gallery-card:hover {
  transform: translateY(-2px);
}

.gallery-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery-info {
  padding: 12px;
}

.gallery-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-date {
  font-size: 13px;
  color: #888;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.pagination .page {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.pagination .page.active {
  background-color: #004aad;
  color: white;
}

/* 20250710 농협갤러리 모바일 */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-img img {
    height: auto; /* 이미지 비율 자동 조정 */
  }

  .gallery-title {
    white-space: normal; /* 모바일에선 줄바꿈 허용 */
  }
}
/* 20250710 농협갤러리 모바일 */

@media (max-width: 768px) {
  .gallery-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .gallery-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .gallery-select {
    width: 100%;
    height: 42px;
    font-size: 15px;
  }

  .gallery-search {
    display: flex;
    flex-direction: row; /* ✅ input + button 나란히 */
    gap: 6px;
  }

  .gallery-search input {
    flex: 1;
    height: 42px;
    font-size: 15px;
  }

  .gallery-search button {
    width: 42px;
    height: 42px;
    background-color: #005eb8;
    color: white;
    border: none;
    font-size: 18px;
    border-radius: 4px;
    padding: 0;
  }

  .gallery-meta {
    font-size: 13px;
    color: #666;
    text-align: right;
  }
}

/* ================================================= 농협 갤러리 =========================================================*/
/* =========================================================== 농협 갤러리 상세 페이지 ================================*/
.gallery-detail-title {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
}

.gallery-detail-date {
  color: #888;
  font-size: 14px;
  margin-bottom: 20px;
}

.gallery-detail-img img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin-bottom: 20px;
}

.gallery-detail-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: #004aad;
  text-decoration: none;
}

/* =========================================================== 농협 갤러리 상세 페이지 ================================*/

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.gallery-meta {
  font-size: 14px;
  color: #666;
}

.gallery-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gallery-select {
  padding: 6px 10px;
  font-size: 14px;
}

.gallery-search {
  display: flex;
  align-items: center;
}

.gallery-search input {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.gallery-search button {
  padding: 6px 12px;
  font-size: 14px;
  background: #004aad;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/*20250708 글쓰기 버튼 */
.write-btn-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-bottom: 40px;
}

.floating-write-btn {
  background-color: #0d47a1;
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  transition: background 0.2s ease;
}

.floating-write-btn:hover {
  background-color: #1565c0;
}

/*20250708 글쓰기 버튼 */

/* 20250708 알림마당 글쓰기 관련 */

.pagination-wrapper {
  position: relative;
  margin-top: 2rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.write-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #134197;
  color: white;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
}

.write-btn:hover {
  background: #0e367e;
}
/* 20250708 알림마당 글쓰기 관련 */

/* 20250710 신용사업 에금상품 대출상품 탭 하이라이트 */
.tab-box.active {
  font-weight: bold;
  border-bottom: 3px solid var(--primary-blue); /* 또는 원하는 색 */
  color: var(--primary-blue);
}
/* 20250710 신용사업 에금상품,대출상품 탭 하이라이트 */

/* 20250710 신용사업 에금상품 탭 모바일 */
@media (max-width: 768px) {
  .product-tabs,
  .loan-tabs {
    flex-direction: column;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .tab-box {
    min-width: auto;
    padding: 10px 8px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }
}
/* 20250710 신용사업 에금상품 탭 모바일 */

/* 20250710 신용사업 대출상품 탭 모바일 */
@media (max-width: 768px) {
  .loan-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px;
    padding: 0;
  }

  .loan-tabs .tab-box {
    padding: 8px 4px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
  }

  .loan-tabs .tab-box.active {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: bold;
  }
}
/* 20250710 신용사업 대출상품 탭 모바일 */

/* 20250710 신용사업 에금상품,대출상품 탭 아래 이미지 */
@media (max-width: 768px) {
  .intro-img-wrapper {
    padding: 0 10px; /* 양옆 여백 */
  }

  .intro-img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}
/* 20250710 신용사업 에금상품,대출상품 탭 아래 이미지 */

/* 20250714 게시판 뷰 제목 간격 늘림 css */
.board-table thead th:nth-child(1) {
  width: 50%;
  white-space: nowrap;
}

.board-table tbody td:nth-child(1) {
  width: 50%;
  text-align: left;
  white-space: normal;
}
/* 20250714 게시판 뷰 제목 간격 늘림 css */

/* 20250710 게시판 뷰 css */

.board-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  margin-top: 20px;
  font-size: 15px;
}

.board-table thead {
  background-color: #f4f7ff;
  color: #333;
  font-weight: 600;
}

.board-table thead th {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 2px solid #134197;
}

.board-table tbody tr {
  background-color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.board-table tbody tr:hover {
  background-color: #f0f4ff;
}

.board-table tbody td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
  vertical-align: middle;
}

.board-table a {
  color: #134197;
  text-decoration: none;
  font-weight: 500;
}

.board-table a:hover {
  text-decoration: underline;
}

/* 반응형 대응 */
@media (max-width: 768px) {
  .board-table thead {
    display: none;
  }

  .board-table tr {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
  }

  .board-table td {
    display: none; /* 기본은 안 보이게 */
  }

  .board-table td:nth-child(1) {
    display: block; /* 제목만 보이게 */
    font-weight: 500;
    font-size: 16px;
    color: #222;
  }
  .board-meta {
    display: none;
  }
}

.clickable-row {
  cursor: pointer;
}
/* 20250710 게시판 뷰 css */
