:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --secondary: #F8FAFC;
    --surface: #FFFFFF;
    --text-main: #0F172A;
    --text-sub: #64748B;
    --accent: #F59E0B;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--secondary);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-inner {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 500;
    display: block;
}

/* GNB - PC */
.gnb {
    display: flex;
    gap: 24px;
    height: 100%;
}

.gnb-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.gnb-link {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.gnb-link:hover,
.gnb-item:hover .gnb-link {
    color: var(--primary);
    background-color: #EFF6FF;
}

/* Dropdown Menu */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 200;
}

.gnb-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-sub);
    border-radius: 8px;
    font-weight: 500;
}

.submenu li a:hover {
    background: #F8FAFC;
    color: var(--primary);
    transform: translateX(2px);
}

.header-utils {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.btn-login {
    padding: 10px 20px;
    background: var(--text-main);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-login:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle (hidden on PC) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

/* Mobile auth links (hidden on PC) */
.mobile-auth-links {
    display: none !important;
}

/* ============================================
   Main Layout
   ============================================ */
.main-wrapper {
    padding: 40px 0;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.main-column-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.main-banner {
    background: #E2E8F0;
    border-radius: var(--radius);
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.login-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Ticker Bar */
.ticker-bar {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.ticker-label {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    height: 24px;
    position: relative;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* ============================================
   Card
   ============================================ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--primary);
}

.card-body-sm {
    padding: 16px;
}

/* Login Card */
.login-card {
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* ============================================
   Lists
   ============================================ */
.list-container {
    display: flex;
    flex-direction: column;
}

.list-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.list-row:last-child {
    border-bottom: none;
}

.list-row:hover {
    background: #f8fafc;
}

.list-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 10px;
    white-space: nowrap;
}

.badge-notice {
    background: #DBEAFE;
    color: var(--primary);
}

.badge-new {
    background: #FEF3C7;
    color: #D97706;
}

.list-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-date {
    font-size: 12px;
    color: var(--text-sub);
    margin-left: 10px;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 60px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.footer-brand h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-menu a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.footer-menu a:hover {
    color: var(--primary);
}

.footer-info {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* ============================================
   Quick Service & Link Select
   ============================================ */
.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.quick-btn i {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.quick-btn span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.link-select {
    width: 100%;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid #d1d5db;
    background-color: white;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234B5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.link-select:hover {
    border-color: var(--primary);
    background-color: #f9fafb;
}

.link-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================
   Status Badges (공고 상태 표시)
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    margin-right: 2px;
}

.badge-correct {
    background: #D1FAE5;
    color: #065F46;
}

.badge-cancel {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-sui {
    background: #D1FAE5;
    color: #065F46;
}

.badge-jimung {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-visit {
    background: #F3E8FF;
    color: #6B21A8;
}

.badge-explain {
    background: #FEF3C7;
    color: #92400E;
}

/* Calc Button */
.btn-calc {
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    color: var(--text-sub);
    font-size: 12px;
    transition: all 0.15s;
}

.btn-calc:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #EFF6FF;
}

/* ============================================
   MyDoc Calendar
   ============================================ */
.mydoc-calendar {
    margin-bottom: 16px;
    padding: 0;
    overflow: hidden;
}

.cal-table-wrap {
    overflow-x: auto;
}

.cal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    font-size: 13px;
}

.cal-table th,
.cal-table td {
    border: 1px solid #E5E7EB;
    padding: 6px 4px;
    text-align: center;
    white-space: nowrap;
}

.cal-table thead th {
    background: #F9FAFB;
    font-weight: 600;
    color: var(--text-main);
}

.cal-label-col {
    width: 120px;
    min-width: 120px;
    background: #F3F4F6 !important;
    font-size: 12px;
    text-align: center !important;
}

.cal-day-head {
    font-size: 12px;
    width: 30px;
}

.cal-sat {
    color: #2563EB !important;
}

.cal-sun {
    color: #DC2626 !important;
}

.cal-today {
    background: #FEF3C7 !important;
}

.cal-cell {
    font-size: 13px;
    cursor: default;
}

.cal-cell a {
    display: block;
    font-weight: 700;
    text-decoration: none;
}

.cal-cell a:hover {
    text-decoration: underline;
}

.cal-nav {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary) !important;
    padding: 0 6px;
}

/* MyDoc Controls */
.mydoc-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: white;
    color: var(--text-main);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.mydoc-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mydoc-btn-danger {
    border-color: #FCA5A5;
    color: #DC2626;
    background: #FEF2F2;
}

.mydoc-btn-danger:hover {
    background: #FEE2E2;
    border-color: #DC2626;
}

.mydoc-filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mydoc-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================
   Filter Chips & Part Badges
   ============================================ */
.filter-chip {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    background: white;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.part-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.part-badge.part-0 {
    background: #DBEAFE;
    color: #1D4ED8;
}

.part-badge.part-1 {
    background: #D1FAE5;
    color: #047857;
}

.part-badge.part-2 {
    background: #FEF3C7;
    color: #B45309;
}

/* ============================================
   Bid Detail
   ============================================ */
.detail-card {
    margin-bottom: 30px;
}

.detail-title-section {
    padding: 28px 24px;
    border-bottom: 1px solid var(--border);
}

.detail-part-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.detail-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 8px;
}

.detail-notice-num {
    font-size: 14px;
    color: var(--text-sub);
}

.detail-section {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-title i {
    color: var(--primary);
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
}

.detail-value {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 500;
}

.detail-price {
    font-weight: 700;
    color: var(--primary-dark);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    padding: 6px 14px;
    background: #EFF6FF;
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.detail-note {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
}

/* ============================================
   Bid Tabs
   ============================================ */
.bid-tabs {
    display: flex;
    gap: 4px;
    margin: 30px 0 16px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.bid-tab {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-sub);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.bid-tab:hover {
    color: var(--primary);
}

.bid-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ============================================
   Search Form
   ============================================ */
.search-card {
    padding: 20px;
    margin-bottom: 16px;
}

.search-form {
    width: 100%;
}

.search-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-group-keyword {
    flex: 1;
    min-width: 200px;
}

.search-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
}

.search-select,
.search-input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

.search-select:focus,
.search-input:focus {
    border-color: var(--primary);
}

.search-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   Filter Groups (면허/지역 선택)
   ============================================ */
.filter-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 15px;
}

.filter-label i {
    font-size: 14px;
}

.filter-content {
    padding-left: 8px;
}

/* License & Region Tags */
.license-tags,
.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.license-tag,
.region-tag,
.district-tag {
    padding: 5px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    background: white;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.license-tag:hover,
.region-tag:hover,
.district-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #EFF6FF;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.license-tag.selected,
.region-tag.selected,
.district-tag.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

/* District (시군구) */
.district-group {
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}

.district-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.region-tag {
    font-weight: 600;
    border-color: #93C5FD;
    background: #F0F7FF;
    color: #1E40AF;
}

.region-tag:hover {
    background: #DBEAFE;
    border-color: var(--primary);
    color: var(--primary-dark);
}

.district-tag {
    padding: 4px 12px;
    font-size: 12px;
    border-color: #D1D5DB;
    background: white;
}

/* ============================================
   Advanced Search (검색 세부설정)
   ============================================ */
.advanced-section {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.advanced-grid {
    padding: 16px 0 0;
}

.adv-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.adv-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adv-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.adv-select,
.adv-input,
.adv-input-sm {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: var(--text-main);
}

.adv-input {
    flex: 1;
    min-width: 200px;
}

.adv-input-sm {
    width: 100px;
}

.price-range-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
}

.search-condition-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-group-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group-inline label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
}

/* 2행 구조 테이블 */
.bid-table-2row td {
    font-size: 13px;
}

.bid-table-2row tr.alt td {
    background: #f9fafb;
}

/* ============================================
   Result Header
   ============================================ */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.result-count {
    font-size: 14px;
    color: var(--text-sub);
}

.result-count strong {
    color: var(--primary);
    font-weight: 800;
}

.result-options {
    display: flex;
    gap: 8px;
}

.result-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: var(--text-main);
    cursor: pointer;
}

/* ============================================
   Bid Table (PC)
   ============================================ */
.bid-table-wrap {
    overflow-x: auto;
}

.bid-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.bid-table thead {
    background: #f8fafc;
}

.bid-table th {
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    text-align: center;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.bid-table td {
    padding: 12px;
    font-size: 14px;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.bid-table tbody tr:hover {
    background: #fafbff;
}

.bid-table .col-no {
    text-align: center;
    width: 60px;
    color: var(--text-sub);
    font-size: 13px;
}

.bid-table .col-name {
    min-width: 280px;
}

.bid-table .col-name a {
    color: var(--text-main);
    font-weight: 500;
}

.bid-table .col-name a:hover {
    color: var(--primary);
}

.bid-table .col-organ {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: var(--text-sub);
}

.bid-table .col-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    font-size: 13px;
}

.bid-table .col-date {
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-sub);
}

.bid-table .empty-row {
    text-align: center;
    padding: 60px 0;
    color: var(--text-sub);
}

.badge-re {
    display: inline-block;
    padding: 1px 6px;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ============================================
   Bid Card List (Mobile - hidden on PC)
   ============================================ */
.bid-card-list {
    display: none;
}

.bid-card {
    display: block;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
}

.bid-card:hover {
    box-shadow: var(--shadow-md);
}

.bid-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.bid-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-sub);
}

.bid-card-meta i {
    width: 14px;
    color: var(--primary);
    margin-right: 4px;
}

.bid-card-dates {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-sub);
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.bid-card-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-sub);
    font-size: 14px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
    background: white;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 700;
}

/* ============================================
   Responsive - Tablet (1024px 이하)
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .header-inner {
        height: 70px;
    }

    .gnb {
        gap: 12px;
    }

    .gnb-link {
        font-size: 14px;
        padding: 6px 8px;
    }

    .top-section {
        grid-template-columns: 1fr 300px;
        gap: 16px;
    }

    .main-banner {
        height: 320px;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* 입찰공고 - 태블릿 */
    .bid-table .col-organ {
        max-width: 120px;
    }
}

/* ============================================
   Responsive - Mobile (768px 이하)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Header: 로고 + 햄버거 */
    .header-inner {
        height: 60px;
    }

    .logo img {
        max-height: 36px;
    }

    .gnb {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 16px;
        overflow-y: auto;
        z-index: 300;
        height: auto;
    }

    .gnb.active {
        display: flex;
    }

    .gnb-item {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--border);
    }

    .gnb-link {
        padding: 14px 12px;
        font-size: 16px;
        justify-content: space-between;
    }

    /* 모바일: 서브메뉴 항상 표시 (접기/펼치기) */
    .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 8px 16px;
        min-width: auto;
        display: none;
    }

    .gnb-item.open .submenu {
        display: block;
    }

    .submenu li a {
        padding: 10px 12px;
    }

    .submenu li a:hover {
        transform: none;
    }

    .header-utils {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* 모바일 메뉴 하단 로그인/가입 버튼 */
    .gnb .mobile-auth-links {
        display: flex;
        gap: 12px;
        padding: 16px 0;
        border-top: 1px solid var(--border);
        margin-top: 8px;
    }

    .gnb .mobile-auth-links a {
        flex: 1;
        text-align: center;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
    }

    /* Main: 1단 레이아웃 */
    .main-wrapper {
        padding: 20px 0;
    }

    .top-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .main-banner {
        height: 220px;
        border-radius: 12px;
    }

    .main-banner h2 {
        font-size: 24px !important;
    }

    .main-banner p {
        font-size: 14px !important;
    }

    /* 모바일: 슬라이드 좌우 버튼 숨김 */
    .main-banner button {
        display: none !important;
    }

    .ticker-bar {
        padding: 14px 16px;
        border-radius: 10px;
    }

    .ticker-label {
        font-size: 11px;
        padding: 3px 10px;
    }

    /* 콘텐츠 그리드 1단 */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 카드 */
    .card {
        border-radius: 12px;
    }

    .card-header {
        padding: 16px;
    }

    .card-body-sm {
        padding: 12px;
    }

    /* 로그인 카드 */
    .login-card {
        padding: 20px;
    }

    /* 리스트 */
    .list-row {
        padding: 8px 8px;
    }

    .list-content {
        font-size: 13px;
    }

    /* 푸터 */
    footer {
        padding: 40px 0;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-menu {
        gap: 12px;
    }

    .footer-info {
        font-size: 12px;
        line-height: 1.7;
    }

    .footer-info br {
        display: none;
    }

    /* 면허/지역 - 모바일 */
    .license-tag,
    .region-tag,
    .district-tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    .license-tags,
    .region-tags,
    .district-tags {
        gap: 4px;
    }

    .adv-row {
        flex-direction: column;
    }

    .price-range-row {
        font-size: 12px;
    }

    .adv-input-sm {
        width: 80px;
    }

    .search-condition-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .adv-input {
        min-width: auto;
        width: 100%;
    }

    /* 입찰공고 - 모바일 */
    .bid-tabs {
        margin: 20px 0 12px;
    }

    .bid-tab {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 14px;
    }

    .search-row {
        flex-direction: column;
        gap: 10px;
    }

    .search-group {
        width: 100%;
    }

    .search-group-keyword {
        min-width: auto;
    }

    .search-select,
    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        padding: 12px;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* 모바일: 테이블 숨기고 카드 표시 */
    .bid-table-wrap {
        display: none;
    }

    .bid-card-list {
        display: block;
    }

    .pagination {
        margin: 20px 0;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* 내공고함 - 모바일 */
    .mydoc-calendar {
        display: none;
    }

    .mydoc-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .mydoc-filter-row .adv-select {
        width: 100%;
    }

    /* 상세 페이지 - 모바일 */
    .detail-title-section {
        padding: 20px 16px;
    }

    .detail-title {
        font-size: 18px;
    }

    .detail-section {
        padding: 20px 16px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ============================================
   Responsive - Small Mobile (480px 이하)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .main-banner {
        height: 180px;
    }

    .main-banner h2 {
        font-size: 20px !important;
    }

    .ticker-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }

    .ticker-content {
        width: 100%;
    }

    /* 퀵버튼 2x2 유지하되 간격 줄임 */
    .quick-btn {
        padding: 10px 6px;
    }

    .quick-btn i {
        font-size: 18px;
    }

    .quick-btn span {
        font-size: 11px;
    }
}

/* ============================================
   Board (게시판)
   ============================================ */
.board-wrapper {
    max-width: 960px;
    margin: 40px auto;
}

.board-header-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Board Buttons */
.board-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: white;
    color: var(--text-main);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.board-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.board-btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.board-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.board-btn-danger {
    border-color: #FCA5A5;
    color: #DC2626;
    background: #FEF2F2;
}

.board-btn-danger:hover {
    background: #FEE2E2;
    border-color: #DC2626;
    color: #DC2626;
}

/* Board Search */
.board-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.board-search-input {
    flex: 1;
    min-width: 0;
}

/* Board Table (PC) */
.board-table-wrap {
    overflow-x: auto;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.board-table thead {
    background: #f8fafc;
}

.board-table th {
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    text-align: center;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.board-table td {
    padding: 11px 12px;
    font-size: 14px;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

.board-table .col-no {
    text-align: center;
    width: 60px;
    color: var(--text-sub);
    font-size: 13px;
}

.board-table .col-title {
    min-width: 250px;
}

.board-table .col-title a {
    color: var(--text-main);
    font-weight: 500;
}

.board-table .col-title a:hover {
    color: var(--primary);
}

.board-table .col-writer {
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
    white-space: nowrap;
}

.board-table .col-date {
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
    white-space: nowrap;
}

.board-table .col-hit {
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
}

.board-table .empty-row {
    text-align: center;
    padding: 60px 0;
    color: var(--text-sub);
}

.board-row-notice {
    background: #fafbff;
}

.board-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
}

.badge-new-dot {
    display: inline-block;
    padding: 1px 5px;
    background: #DC2626;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Board Card List (Mobile) */
.board-card-list {
    display: none;
}

.board-card {
    display: block;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.board-card:hover {
    box-shadow: var(--shadow-md);
}

.board-card-notice {
    background: #fafbff;
    border-color: #DBEAFE;
}

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

.board-card-date {
    font-size: 12px;
    color: var(--text-sub);
}

.board-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.board-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-sub);
}

.board-card-meta i {
    margin-right: 4px;
    color: var(--primary);
    width: 12px;
}

.board-card-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-sub);
    font-size: 14px;
}

/* Board View (상세) */
.board-view-card {
    overflow: visible;
}

.board-view-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.board-view-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.board-view-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.board-view-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-sub);
}

.board-view-meta i {
    margin-right: 4px;
    color: var(--primary);
}

.board-view-link {
    padding: 12px 24px;
    background: #EFF6FF;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.board-view-link i {
    color: var(--primary);
    margin-right: 6px;
}

.board-view-link a {
    color: var(--primary);
    word-break: break-all;
}

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

.board-view-content {
    padding: 28px 24px;
    min-height: 200px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    word-break: break-word;
}

.board-view-files {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.board-view-files-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.board-view-files-title i {
    color: var(--primary);
}

.board-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    transition: all 0.15s;
}

.board-file-item:hover {
    border-color: var(--primary);
    background: #EFF6FF;
}

.board-file-item i {
    color: var(--primary);
}

.board-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-main);
    font-weight: 500;
}

.board-file-size {
    color: var(--text-sub);
    font-size: 12px;
    white-space: nowrap;
}

.board-file-count {
    color: var(--text-sub);
    font-size: 12px;
    white-space: nowrap;
}

.board-view-actions {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board-view-actions-right {
    display: flex;
    gap: 8px;
}

/* Board Comments */
.board-comment-section {
    margin-top: 16px;
}

.board-comment-header {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

.board-comment-header i {
    color: var(--primary);
    margin-right: 4px;
}

.board-comment-header span {
    color: var(--primary);
    margin-left: 4px;
}

.board-comment-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.board-comment-item:last-child {
    border-bottom: none;
}

.board-comment-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.board-comment-writer {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.board-comment-date {
    font-size: 12px;
    color: var(--text-sub);
}

.board-comment-del {
    font-size: 12px;
    color: #DC2626;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
}

.board-comment-del:hover {
    text-decoration: underline;
}

.board-comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
}

.board-comment-empty {
    padding: 30px 24px;
    text-align: center;
    color: var(--text-sub);
    font-size: 14px;
}

.board-comment-form {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.board-comment-form textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.board-comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Board Write Form */
.board-write-form {
    padding: 24px;
}

.board-write-row {
    margin-bottom: 20px;
}

.board-write-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.board-write-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.board-write-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.board-write-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.7;
    resize: vertical;
    min-height: 300px;
    background: white;
    transition: border-color 0.2s;
}

.board-write-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.board-write-file-input {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.board-write-help {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
}

.board-write-existing-files {
    margin-bottom: 10px;
}

.board-write-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}

.board-write-file-del {
    color: #DC2626;
    font-size: 12px;
    cursor: pointer;
}

.board-write-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.board-write-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Board Responsive - Mobile */
@media (max-width: 768px) {
    .board-wrapper {
        margin: 20px auto;
    }

    /* 모바일: 테이블 숨기고 카드 표시 */
    .board-table-wrap {
        display: none;
    }

    .board-card-list {
        display: block;
    }

    /* 검색 폼 */
    .board-search-form {
        flex-wrap: wrap;
    }

    .board-search-form .search-select {
        width: auto;
    }

    .board-search-input {
        flex: 1;
        min-width: 120px;
    }

    /* 상세 */
    .board-view-header {
        padding: 20px 16px;
    }

    .board-view-title {
        font-size: 17px;
    }

    .board-view-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .board-view-content {
        padding: 20px 16px;
        font-size: 14px;
    }

    .board-view-link {
        padding: 10px 16px;
        font-size: 13px;
    }

    .board-view-files {
        padding: 12px 16px;
    }

    .board-view-actions {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
    }

    .board-view-actions-right {
        width: 100%;
        justify-content: flex-end;
    }

    /* 댓글 */
    .board-comment-header {
        padding: 12px 16px;
    }

    .board-comment-item {
        padding: 12px 16px;
    }

    .board-comment-form {
        padding: 12px 16px;
        flex-direction: column;
    }

    .board-comment-form .board-btn {
        width: 100%;
        justify-content: center;
    }

    /* 작성 폼 */
    .board-write-form {
        padding: 16px;
    }

    .board-write-textarea {
        min-height: 200px;
    }

    .board-write-actions {
        flex-direction: column;
    }

    .board-write-actions .board-btn {
        width: 100%;
        justify-content: center;
    }
}
