/*
common.css
www

Replaced by EB Song on 2026-04-23.
Copyright (C) Uriseed. All rights reversed.
*/

/* =========================================================
   1. Design Tokens
========================================================= */
:root {
  /* Font */
  --font-ko: "Pretendard", sans-serif;
  --font-en: "Roboto", sans-serif;
  --font-number: "Roboto", sans-serif;

  /* Color */
  --color-black: #111111;
  --color-gray-900: #3d3d3d;
  --color-gray-700: #aaaaaa;
  --color-gray-500: #d9d9d9;
  --color-gray-300: #f9f9f9;
  --color-white: #ffffff;
  --color-primary: #db494a;
  --color-danger: #dc3545;

  /* Text */
  --text-primary: var(--color-black);
  --text-secondary: var(--color-gray-900);
  --text-muted: var(--color-gray-700);
  --text-placeholder: #c9c9c9;

  /* Border */
  --border-light: 1px solid #dddddd;
  --border-soft: 1px solid #e5e5e5;

  /* Radius */
  --radius-3: 3px;
  --radius-4: 4px;
  --radius-5: 5px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-full: 999px;

  /* Spacing */
  --space-2: 2px;
  --space-4: 4px;
  --space-5: 5px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-24: 24px;
  --space-26: 26px;
  --space-30: 30px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-60: 60px;
  --space-64: 64px;
  --space-80: 80px;
  --space-86: 86px;

  /* Size */
  --size-fab: 56px;
  --size-preview-image: 100px;
  --size-upload-image: 160px;
  --size-icon-sm: 14px;
  --size-icon-md: 18px;
  --size-icon-lg: 20px;
  --size-login-icon: 26px;
  --size-navbar-toggler: 24px;
  --size-header-avatar: 30px;

  /* Shadow */
  --shadow-fab: 0 4px 8px rgba(0, 0, 0, 0.3);

  /* Z-index */
  --z-base: 1;
  --z-floating: 100;
}

/* =========================================================
   2. Reset / Base
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  font-size: 16px;
}

body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-ko), var(--font-en), sans-serif;
  color: var(--text-primary);
  background-color: var(--color-white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

/* =========================================================
   3. Typography Utilities
========================================================= */
.h1 {
  font-family: var(--font-ko);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3;
}

.h2 {
  font-family: var(--font-ko);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.3;
}

.h3 {
  font-family: var(--font-ko);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
}

.sub1 {
  font-family: var(--font-ko);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.4;
}

.sub2 {
  font-family: var(--font-ko);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
}

.sub3 {
  font-family: var(--font-ko);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
}

.body1 {
  font-family: var(--font-ko);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}

.body2 {
  font-family: var(--font-ko);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.6;
}

.data {
  font-family: var(--font-number);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.caption1 {
  font-family: var(--font-number);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.4;
}

.caption2 {
  font-family: var(--font-ko);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
}

.caption3 {
  font-family: var(--font-ko);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* =========================================================
   4. Common Media / Upload Utilities
========================================================= */
.preview-item {
  position: relative;
  display: inline-block;
  margin: var(--space-10);
  padding: var(--space-5);
  border: 1px solid #ddd;
  border-radius: var(--radius-5);
}

.preview-item img {
  max-width: var(--size-preview-image);
  max-height: var(--size-preview-image);
}

.delete-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 3px 8px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-danger);
  color: var(--color-white);
  font-size: 0.875rem;
  cursor: pointer;
}

.img-size {
  width: var(--size-upload-image);
  height: var(--size-upload-image);
  object-fit: cover;
}

.img-container {
  position: relative;
  display: inline-block;
}

.btn-position {
  position: absolute;
  top: var(--space-5);
  right: 18px;
  z-index: var(--z-floating);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* =========================================================
   5. Common Floating UI
========================================================= */
.fab {
  position: fixed;
  right: var(--space-20);
  bottom: var(--space-20);
  z-index: var(--z-floating);
  width: var(--size-fab);
  height: var(--size-fab);
  border-radius: 50%;
  box-shadow: var(--shadow-fab);
}

.modal-position {
  position: fixed;
  right: var(--space-20);
  bottom: var(--space-86);
  width: 100%;
  max-width: 50%;
}

/* =========================================================
   6. Common Section Header
========================================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  min-width: 0;
}

.home-section-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-count {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1;
}

.section-more {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.section-more:hover {
  color: var(--text-primary);
}

/* =========================================================
   7. Common Category Tabs
========================================================= */

.home-news-tabs,
.board-filter .nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-20);
}

.home-news-tab,
.board-filter .nav-pills .nav-link {
  border: none;
  border-radius: var(--radius-full);
  background: #f5f5f5;
  color: var(--color-gray-700);
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

.home-news-tab.active,
.home-news-tab.active:hover,
.home-news-tab.active:focus,
.home-news-tab.active:active,
.board-filter .nav-pills .nav-link.active,
.board-filter .nav-pills .nav-link.active:hover,
.board-filter .nav-pills .nav-link.active:focus,
.board-filter .nav-pills .nav-link.active:active {
  background: var(--color-black);
  color: var(--color-white);
}

.home-news-tab:not(.active):hover,
.home-news-tab:not(.active):focus,
.home-news-tab:not(.active):active,
.board-filter .nav-pills .nav-link:not(.active):hover,
.board-filter .nav-pills .nav-link:not(.active):focus,
.board-filter .nav-pills .nav-link:not(.active):active {
  background: #e9e9e9;
  color: var(--color-black);
}

@media (min-width: 768px){
.home-news-tab,
.board-filter .nav-pills .nav-link {
  border: none;
  border-radius: var(--radius-full);
  background: #f5f5f5;
  color: var(--color-gray-700);
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: none;
  text-decoration: none;
}
}


/* =========================================================
   8. Common Form Base
========================================================= */
.form-control {
  height: 44px;
  border: 1px solid #ddd;
  border-radius: var(--radius-6);
  font-size: 0.875rem;
}

.form-control:focus {
  border-color: var(--color-black);
  box-shadow: none;
}

.form-group {
  margin-bottom: var(--space-14) !important;
}

.form-text {
  margin-top: var(--space-6);
  color: #888;
  font-size: 0.75rem;
}

.form-check-input {
  margin-top: 4px;
}

.form-check-label {
  margin-left: var(--space-6);
  color: #333;
  font-size: 0.875rem;
}

.input-group .btn {
  padding: 0 var(--space-14);
  border: 1px solid #ddd;
  border-radius: var(--radius-6);
  background: #f5f5f5;
  font-size: 0.8125rem;
}

.input-group .btn:hover {
  background: #e9e9e9;
}

.input-group .input-group-append .btn {
  min-width: 60px;
  height: 44px;
  padding: 0 var(--space-14);
  border: 1px solid #ddd;
  border-radius: 0 var(--radius-6) var(--radius-6) 0;
  background: #f5f5f5;
  color: #333;
  font-size: 0.8125rem;
}

/* =========================================================
   9. Header / Navbar
========================================================= */
.navbar {
  margin-top: 8px;
}

.navbar > .container {
  padding-left: 0;
}

.navbar .bi-person-circle {
  font-size: var(--size-icon-lg);
}

.navbar-nav {
  align-items: center;
  margin-left: 0;
}

.nav-underline .nav-link {
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  color: var(--color-black);
  font-family: var(--font-ko);
  font-size: 1rem;
  font-weight: 400;
}

.nav-underline .nav-link.active {
  border-bottom-color: var(--color-primary);
  color: var(--color-black);
  font-weight: 500;
}

.nav-underline .nav-link:not(.active):hover {
  border-bottom-color: var(--color-gray-700);
  color: var(--color-black);
}

.login-link {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.login-icon {
  width: var(--size-login-icon);
  height: var(--size-login-icon);
  display: block;
}

.navbar .nav-item.me-2 {
  display: flex;
  align-items: center;
}

.user-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0;
  line-height: 1;
}

.user-toggle i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--size-icon-md);
  line-height: 1;
}

.user-toggle::after,
.header-lang-desktop .dropdown-toggle::after {
  vertical-align: 0;
  color: var(--color-black);
}

.header-avatar.header-avatar--guest {
  background: var(--color-gray-300);
  color: #bdbdbd;
  border: 1px solid #dddddd;
}

.header-avatar--guest i {
  color: #bdbdbd;
  font-size: 1rem;
}

.header-lang-desktop {
  display: none;
  align-items: center;
  top: -2px;
  margin-left: 6px;
}

.header-lang-desktop .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0;
  line-height: 1;
}

.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-lang-inside {
  display: block;
}

.header-lang-outside {
  display: flex;
  align-items: center;
  margin-left: 6px;
  margin-right: 0;
}

.header-lang-outside .nav-item,
.header-lang-outside .nav-link,
.header-lang-outside select,
.header-lang-outside .dropdown,
.header-lang-outside .btn {
  margin: 0;
}

.lang-dropdown {
  display: inline-block;
}

.lang-toggle {
  padding: 0 16px 0 0;
  border: none;
  background: transparent;
  box-shadow: none !important;
  color: var(--color-black);
  font-family: var(--font-ko);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
}

.lang-toggle:hover,
.lang-toggle:focus,
.lang-toggle:active,
.show > .lang-toggle {
  border: none;
  background: transparent;
  box-shadow: none !important;
  color: var(--color-black);
}

.lang-toggle::after {
  margin-left: var(--space-6);
  vertical-align: 2px;
}

.lang-menu {
  min-width: auto;
  padding: var(--space-6) 0;
  border: 1px solid var(--color-gray-500);
  border-radius: var(--radius-8);
}

.lang-menu .dropdown-item {
  padding: 8px 14px;
  color: var(--color-black);
  font-family: var(--font-ko);
  font-size: 0.875rem;
  font-weight: 400;
}

.lang-menu .dropdown-item:hover {
  background-color: var(--color-gray-300);
  color: var(--color-black);
}

.lang-menu .dropdown-item.active,
.lang-menu .dropdown-item:active {
  background-color: transparent;
  color: var(--color-primary);
}

.navbar-toggler {
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  width: var(--size-navbar-toggler);
  height: var(--size-navbar-toggler);
  background-size: var(--size-navbar-toggler) var(--size-navbar-toggler);
  color: var(--color-black);
}

.header-avatar,
.post-view-profile-image,
.comment-write-avatar,
.comment-avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: var(--size-header-avatar);
  height: var(--size-header-avatar);

  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);

  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

/* =========================================================
  10. Mobile Drawer Menu (Final)
========================================================= */

/* 기본: 닫기 버튼 숨김 */
.mobile-drawer-close {
  display: none;
}

/* 모바일 drawer 패널 */
#navbarSupportedContent.show {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  z-index: 1050;

  display: flex;
  flex-direction: column;

  width: 78%;
  max-width: 320px;
  height: 100vh;

  padding: var(--space-48) var(--space-24) var(--space-32);
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);

  overflow-y: auto;
}

/* collapse 애니메이션 제거 */
#navbarSupportedContent.collapsing {
  transition: none;
}

/* ===== X 버튼 (최상단) ===== */
#navbarSupportedContent.show .mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;

  width: 36px;
  height: 36px;

  border: none;
  background: transparent;
  color: var(--text-primary);

  font-size: 1.25rem;
  line-height: 1;
}

/* ===== 유저 영역 (X 아래) ===== */
#navbarSupportedContent.show > .d-flex {
  order: -1;

  width: 100%;
  margin: var(--space-32) 0 var(--space-24);
  padding: 0;

  border: none;
  justify-content: flex-start;
}

/* A + 메뉴 */
#navbarSupportedContent.show .dropdown {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  width: 100%;
}

#navbarSupportedContent.show .dropdown-toggle {
  flex-shrink: 0;
  padding: 0;
}

#navbarSupportedContent.show .dropdown-toggle::after {
  display: none;
}

/* 드롭다운 → 가로 메뉴화 */
#navbarSupportedContent.show .dropdown-menu {
  position: static !important;
  display: flex;
  align-items: center;
  gap: 0;

  margin: 0;
  padding: 0;

  border: none;
  background: transparent;
  box-shadow: none;
  transform: none !important;
}

#navbarSupportedContent.show .dropdown-menu li {
  display: inline-flex;
  align-items: center;
}

#navbarSupportedContent.show .dropdown-item {
  display: inline-flex;
  align-items: center;

  padding: 0;
  width: auto;

  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* 구분자 */
#navbarSupportedContent.show .dropdown-menu li:not(:last-child) .dropdown-item::after {
  content: "｜";
  margin: 0 10px;
  color: #bbb;
}

#navbarSupportedContent.show .dropdown-item:hover {
  background: transparent;
  color: var(--color-primary);
}

/* ===== 메뉴 리스트 ===== */
#navbarSupportedContent.show .navbar-nav {
  width: 100%;
  margin: 0;
}

#navbarSupportedContent.show .nav-item {
  width: 100%;
}

#navbarSupportedContent.show .nav-link {
  display: flex;
  align-items: center;

  width: 100%;
  padding: 16px 0 !important;

  border-bottom: 1px solid #f1f1f1;
  color: var(--text-primary);

  font-size: 1rem;
  font-weight: 500;
}

#navbarSupportedContent.show .nav-link.active {
  color: var(--color-primary);
}

#navbarSupportedContent.show .nav-link.active::after {
  display: none;
}

/* ===== PC 복구 ===== */
@media (min-width: 992px) {

  .mobile-drawer-close {
    display: none !important;
  }

  #navbarSupportedContent.show {
    position: static;
    display: block !important;
    flex-direction: initial;

    width: auto;
    height: auto;
    max-width: none;

    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  #navbarSupportedContent.show > .d-flex {
    order: initial;
    margin: 0;
  }
}

/* =========================================================
   11. Footer
========================================================= */
.footer {
  margin-top: var(--space-60);
  padding: var(--space-40) 0;
  border-top: 1px solid var(--color-gray-500);
  background-color: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-32);
}

.footer-company {
  max-width: 100%;
}

.footer-logo img {
  width: 140px;
  margin-bottom: var(--space-5);
  margin-left: 0;
}

.footer-info {
  margin: var(--space-4) 0;
  color: var(--color-gray-700);
  font-family: var(--font-ko);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 18px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.footer-copy {
  margin-top: var(--space-12);
  color: var(--color-gray-700);
  font-size: 0.75rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
  margin-top: 0;
}

.footer-col {
  width: 100%;
}

.footer-col h5 {
  margin-bottom: var(--space-10);
  color: var(--color-black);
  font-family: var(--font-ko);
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-col p {
  margin: 0;
}

.footer-col a {
  display: block;
  color: var(--color-gray-900);
  font-family: var(--font-ko);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 24px;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.footer-col a:hover {
  color: var(--color-black);
}

/* =========================================================
   12. News Card System
========================================================= */

/* 홈 뉴스 + 뉴스 카테고리 목록 전용 */
.news-section .card,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card {
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.news-section .card,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}

.news-section .card a,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card a {
  display: block;
  width: 100px;
  flex-shrink: 0;
}

.news-section .card-img-top,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card-img-top {
  display: block;
  width: 100px;
  height: 86px;
  border-radius: var(--radius-4);
  object-fit: cover;
}

.news-section .card-body,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card-body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.news-section .card-category,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card-category {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 0;
  background: rgba(219, 73, 74, 0.1);
  color: #DB494A;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}

.news-section .card-title,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: auto;
  min-height: calc(1.4em * 2);
  margin: 0 0 var(--space-4);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-section .card-text,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card-text {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-10);
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.news-section .card-text .card-meta-item,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card-text .card-meta-item {
  width: auto !important;
}

.news-section .card-meta-item,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.news-section .card-text i,
.board-page:not(.community-page):not(.dictionary-page) .article-section .card-text i {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1;
}

@media (min-width: 576px) {
  .news-section .card,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card {
    gap: var(--space-12);
  }

  .news-section .card a,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card a {
    width: 120px;
  }

  .news-section .card-img-top,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card-img-top {
    width: 120px;
    height: 120px;
  }

  .news-section .card-title,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card-title {
    margin-bottom: var(--space-6);
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .news-section .card,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card {
    display: block;
  }

  .news-section .card a,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card a {
    width: 100%;
  }

  .news-section .card-img-top,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card-img-top {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .news-section .card-body,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card-body {
    padding: var(--space-10) var(--space-4) 0;
  }

  .news-section .card-category,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card-category {
    padding: 4px 8px;
    border-radius: 20px;
    margin-bottom: var(--space-4);
    font-size: 0.75rem;
  }

  .news-section .card-title,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card-title {
    margin-bottom: var(--space-6);
    font-size: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.3px;
  }

  .news-section .card-text,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card-text {
    gap: var(--space-10);
    font-size: 0.875rem;
  }

  .news-section .card-text i,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card-text i {
    font-size: 0.875rem;
  }

  .news-section .card,
  .board-page:not(.community-page):not(.dictionary-page) .article-section .card {
    display: block;
    margin-bottom: 0;
  }
}

/* =========================================================
   13. Community Card System
========================================================= */
.community-section .row > *,
.community-page .article-section .row > * {
  width: 50%;
}

.community-section .row,
.dictionary-section .row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 1rem;
}

.community-section .card,
.community-page .article-section .card {
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: var(--space-10);
}

.community-section .card-img-top,
.community-page .article-section .card-img-top {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-4);
}

.community-section .card-body,
.community-page .article-section .card-body {
  padding: var(--space-10) 0 0;
}

.community-section .card-title,
.community-page .article-section .card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 var(--space-6);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-section .card-meta,
.community-page .article-section .card-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.community-section .card-meta-top,
.community-page .article-section .card-meta-top {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.community-section .card-meta-bottom,
.community-page .article-section .card-meta-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.community-section .card-meta-item,
.community-page .article-section .card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.community-section .card-meta-divider,
.community-page .article-section .card-meta-divider {
  color: var(--color-gray-700);
  line-height: 1;
}

.community-section .card-meta-item i,
.community-page .article-section .card-meta-item i {
  width: 12px;
  font-size: 0.75rem;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}

.community-section .card-meta-item span,
.community-page .article-section .card-meta-item span {
  line-height: 1;
}

@media (min-width: 576px) {
  .community-section .card-title,
  .community-page .article-section .card-title {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .community-section .row > *,
  .community-page .article-section .row > * {
    width: 25%;
  }

  .community-section .row,
  .dictionary-section .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
  }

  .community-section .card-title,
  .community-page .article-section .card-title {
    font-size: 1.125rem;
  }

  .community-section .card-meta,
  .community-page .article-section .card-meta {
    font-size: 0.875rem;
  }

  .community-section .card-meta-item i,
  .community-page .article-section .card-meta-item i {
    font-size: 0.875rem;
  }

  .community-section .card-meta-item span,
  .community-page .article-section .card-meta-item span,
  .community-section .card-meta-divider,
  .community-page .article-section .card-meta-divider {
    font-size: 0.875rem;
  }

  .card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .community-section .card,
  .community-page .article-section .card {
    margin-bottom: var(--space-16);
  }
}

@media (min-width: 992px) {
  .community-section .card-title,
  .community-page .article-section .card-title {
    font-size: 1.25rem;
  }
}

/* =========================================================
   14. Dictionary Card System
========================================================= */
.dictionary-section .row > * {
  width: 50%;
}

.dictionary-section img {
  border-radius: var(--radius-4);
  margin-bottom: var(--space-8);
}

.dictionary-page img,
.dictionary-page .img-fluid {
  border-radius: var(--radius-4);
  margin-bottom: var(--space-8);
}

/* =========================================================
   15. Search / Input Helpers
========================================================= */

.board-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.board-search-form {
  display: flex;
  justify-content: center;
}

.board-search {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.board-search input.form-control {
  width: 100%;
  padding-right: 76px;
}

.board-search .board-search-btn,
.board-search .board-clear-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;
  padding: 0 !important;

  border: none !important;
  background: transparent !important;
  box-shadow: none !important;

  color: var(--text-muted);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
}

.board-search .board-search-btn {
  right: 12px;
}

.board-search .board-clear-btn {
  right: 44px;
}

.board-search .board-search-btn i,
.board-search .board-clear-btn i {
  display: block;
  color: inherit;
  line-height: 1;
}

.board-search .board-search-btn i {
  font-size: 16px;
}

.board-search .board-clear-btn i {
  font-size: 12px;
}

.board-search .board-search-btn:hover,
.board-search .board-clear-btn:hover {
  color: var(--text-primary);
}

/* =========================================================
   16. Utility Helpers
========================================================= */
.u-text-truncate-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.u-hidden {
  display: none !important;
}

/* =========================================================
   17. Pagination
========================================================= */
.board-pagination-wrap .pagination {
  margin-top: 60px;
  border: none;
  gap: 6px;
}

.board-pagination-wrap .page-link {
  border: none;
  background: transparent;
  color: #555;
  border-radius: 6px;
  padding: 6px 10px;
}

.board-pagination-wrap .page-link:hover {
  background: #f5f5f5;
  color: #000;
}

.board-pagination-wrap .page-item.active .page-link {
  background: #DB494A;
  color: #fff;
}

.board-pagination-wrap .page-item.disabled .page-link {
  color: #ccc;
  background: transparent;
}

.page-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* =========================================================
   18. Global Responsive
========================================================= */
@media (min-width: 576px) {
  .home-section-title {
    font-size: 1.5rem;
  }

  .section-count {
    font-size: 0.9375rem;
  }

  .section-more {
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) {
  .h1 {
    font-size: 2.625rem;
  }

  .h2 {
    font-size: 2rem;
  }

  .h3 {
    font-size: 1.625rem;
  }

  .sub1 {
    font-size: 1.625rem;
  }

  .sub2 {
    font-size: 1.25rem;
  }

  .body1 {
    font-size: 1.125rem;
  }

  .section-header {
    margin-bottom: var(--space-20);
  }

  .home-section-title {
    font-size: 1.625rem;
  }

  .section-count {
    font-size: 1rem;
  }

  .header-mobile-actions {
    gap: var(--space-8);
  }

  .modal-position {
    width: 50%;
    max-width: none;
  }

  .nav-underline .nav-link {
    font-size: 1.125rem;
  }

  .footer {
    margin-top: var(--space-80);
    padding: var(--space-60) 0;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-60);
  }

  .footer-company {
    max-width: 600px;
  }

  .footer-logo img {
    margin-left: -6px;
  }

  .footer-links {
    flex-direction: row;
    gap: var(--space-60);
    width: auto;
    margin-top: var(--space-8);
  }

  .footer-col {
    width: auto;
  }

  .footer-col h5 {
    margin-bottom: var(--space-12);
    font-size: 1rem;
  }

  .footer-col a {
    line-height: 26px;
  }
}

@media (min-width: 992px) {
  .navbar-nav {
    margin-left: var(--space-20);
  }

  .header-lang-desktop {
    display: flex;
  }

  .header-lang-outside {
    display: none;
  }

  #navbarSupportedContent.show,
  #navbarSupportedContent.collapsing {
    display: block !important;
    flex-direction: initial !important;
    align-items: initial !important;
    padding: 0 !important;
  }

  #navbarSupportedContent.show > .d-flex,
  #navbarSupportedContent.collapsing > .d-flex {
    order: initial;
    width: auto;
    justify-content: initial;
    margin-bottom: 0 !important;
    padding-left: 0;
  }

  #navbarSupportedContent.show .navbar-nav.nav-underline,
  #navbarSupportedContent.collapsing .navbar-nav.nav-underline {
    width: auto;
    padding-left: 0;
  }

  #navbarSupportedContent.show .nav-link,
  #navbarSupportedContent.collapsing .nav-link {
    display: inline-block;
    padding: 8px 14px !important;
    font-size: 1.125rem;
    line-height: 1.4;
  }

  #navbarSupportedContent.show .nav-item + .nav-item,
  #navbarSupportedContent.collapsing .nav-item + .nav-item {
    margin-top: 0;
  }

  #navbarSupportedContent.show .nav-link.active,
  #navbarSupportedContent.collapsing .nav-link.active {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px !important;
  }

  #navbarSupportedContent.show .nav-link.active::after,
  #navbarSupportedContent.collapsing .nav-link.active::after {
    display: inline-block;
  }
}

@media (min-width: 1200px) {
  .section-header {
    gap: var(--space-16);
  }
}