/* ==========================================================================
   Reusable UI Components (Buttons, Cards, Badges, Tabs, Tables, Carousel, etc.)
   ========================================================================== */

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text-main);
}

.btn-outline:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  padding: 0 8px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: 3px;
  line-height: 1;
  letter-spacing: -0.2px;
  box-sizing: border-box;
  white-space: nowrap;
}

.badge-primary {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid #cbd5e1;
}

.badge-accent {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-sub {
  background-color: var(--color-sub-soft);
  color: var(--color-sub);
  border: 1px solid #bae6fd;
}

.badge-gray {
  background-color: #f1f5f9;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(0, 44, 108, 0.15);
}

.card-body {
  padding: var(--space-6);
}

/* ==========================================================================
   Tabs Component
   ========================================================================== */

.tab-nav {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: none;
  border: none;
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background-color: var(--color-primary);
}

/* Original Software Department 3-Color Identity for Tabs */
.tab-btn[data-target="tab-notice"].active,
.tab-btn[data-target="tab-all"].active {
  color: var(--color-primary);
}
.tab-btn[data-target="tab-notice"].active::after,
.tab-btn[data-target="tab-all"].active::after {
  background-color: var(--color-primary); /* #1273B9 */
}

.tab-btn[data-target="tab-job"].active,
.tab-btn[data-target="tab-career"].active {
  color: var(--color-accent);
}
.tab-btn[data-target="tab-job"].active::after,
.tab-btn[data-target="tab-career"].active::after {
  background-color: var(--color-accent); /* #FC6D4E */
}

.tab-btn[data-target="tab-news"].active {
  color: var(--color-sub-dark);
}
.tab-btn[data-target="tab-news"].active::after {
  background-color: var(--color-sub); /* #FDB452 */
}

.tab-btn[data-target="tab-archive"].active,
.tab-btn[data-target="tab-download"].active {
  color: var(--color-primary-light);
}
.tab-btn[data-target="tab-archive"].active::after,
.tab-btn[data-target="tab-download"].active::after {
  background-color: var(--color-primary-light); /* #72ABE0 */
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn var(--transition-fast) ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Data Table
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--font-size-sm);
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  background-color: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: var(--color-surface-hover);
}

.data-table .text-center {
  text-align: center;
}

/* ==========================================================================
   Search & Filter Form
   ========================================================================== */

.search-bar {
  display: flex;
  gap: var(--space-2);
  max-width: 420px;
}

.search-input {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  background-color: var(--color-surface);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-8);
}

.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.page-item.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   Carousel Slider Component
   ========================================================================== */

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background-color: #0f172a;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
  height: 440px;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  user-select: none;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 10, 30, 0.2) 0%, rgba(0, 10, 30, 0.85) 100%);
}

.carousel-content {
  position: relative;
  z-index: 10;
  padding: var(--space-8);
  color: #ffffff;
  max-width: 800px;
}

.carousel-tag {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.carousel-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.carousel-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 20;
}

.carousel-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
}

.carousel-prev {
  left: var(--space-4);
}

.carousel-next {
  right: var(--space-4);
}

.carousel-indicators {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-6);
  display: flex;
  gap: var(--space-2);
  z-index: 20;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .carousel-track {
    height: 320px;
  }
  .carousel-title {
    font-size: var(--font-size-lg);
  }
  .carousel-content {
    padding: var(--space-4);
  }
  .carousel-nav-btn {
    display: none;
  }
}

/* ==========================================================================
   Academic Official Board Table & Flat Tags (No Emojis, Perfect Alignment)
   ========================================================================== */

.academic-board-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-top: 2px solid var(--color-primary);
}

.academic-board-table tr {
  border-bottom: 1px solid var(--color-border);
  height: 54px;
  transition: background-color var(--transition-fast);
}

.academic-board-table tr:hover {
  background-color: #f8fafc;
}

.academic-board-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.col-tag {
  width: 76px;
  text-align: center;
  padding-right: 0 !important;
}

.academic-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 25px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.2px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.academic-tag.essential {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.academic-tag.primary {
  background: #e2e8f0;
  color: var(--color-primary);
  border-color: #cbd5e1;
}

.col-title {
  padding-left: 12px !important;
}

.academic-title-link {
  display: inline-block;
  color: var(--color-text-main);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.academic-title-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.col-date {
  width: 68px;
  text-align: right;
  font-size: 13px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Typography-First Official Quick Navigation Grid */
.quick-official-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
}

.quick-official-item {
  background: var(--color-surface);
  padding: 14px 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  transition: all var(--transition-fast);
}

.quick-official-item:hover {
  background: var(--color-primary-soft);
}

.quick-official-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: -0.2px;
}

.quick-official-item:hover .quick-official-title {
  color: var(--color-primary);
}

.quick-official-en {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Academic Bulletin Table (대학 공식 요람 교과과정 표)
   ========================================================================== */
.bulletin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  margin-bottom: 24px;
}

.bulletin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  letter-spacing: -0.2px;
}

.bulletin-table thead tr {
  background: #0a192f;
  color: #ffffff;
}

.bulletin-table th {
  padding: 11px 12px;
  font-weight: 700;
  font-size: 12.5px;
  border: 1px solid #1e293b;
  text-align: center;
  white-space: nowrap;
}

.bulletin-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  color: var(--color-text-main);
  vertical-align: middle;
}

.bulletin-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.bulletin-table tbody tr:hover {
  background-color: #f1f5f9;
}

.bulletin-table .col-sem {
  text-align: center;
  font-weight: 800;
  color: var(--color-primary);
  width: 8%;
  white-space: nowrap;
}

.bulletin-table .col-type {
  text-align: center;
  width: 11%;
  white-space: nowrap;
}

.bulletin-table .col-code {
  text-align: center;
  font-family: monospace;
  font-size: 12px;
  color: #64748b;
  width: 10%;
  white-space: nowrap;
}

.bulletin-table .col-name {
  font-weight: 700;
}

.bulletin-table .col-name span.en {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
  margin-top: 1px;
}

.bulletin-table .col-credit {
  text-align: center;
  width: 11%;
  font-weight: 600;
  white-space: nowrap;
}

.bulletin-table .col-design {
  text-align: center;
  width: 12%;
  white-space: nowrap;
}

.bulletin-table .col-note {
  font-size: 12px;
  color: #64748b;
  width: 18%;
}

/* ==========================================================================
   Curriculum Official Table (원문 교과과정표 공식 규격)
   ========================================================================== */
.curriculum-official-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: #ffffff;
  text-align: left;
}

.curriculum-official-table th,
.curriculum-official-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  vertical-align: middle;
}

.curriculum-official-table thead tr:first-child th {
  background: #002c6c;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  font-size: 13px;
  border: 1px solid #001f4d;
}

.curriculum-official-table thead tr:nth-child(2) th {
  background: #0a3d8f;
  color: #e2e8f0;
  font-weight: 600;
  text-align: center;
  font-size: 12px;
  border: 1px solid #001f4d;
}

.curriculum-official-table th.cell-category,
.curriculum-official-table td.cell-category {
  background: #f8fafc;
  font-weight: 700;
  text-align: center;
  color: #1e293b;
  white-space: nowrap;
}

.curriculum-official-table td.cell-code {
  font-family: 'Consolas', monospace;
  font-weight: 700;
  color: #0369a1;
  text-align: center;
  white-space: nowrap;
}

.curriculum-official-table td.cell-num {
  text-align: center;
  font-weight: 600;
  color: #0f172a;
}

.curriculum-official-table td.cell-remark {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.5;
  background: #fafafa;
}

.curriculum-official-table tr.total-row {
  background: #f1f5f9;
  font-weight: 800;
}

.curriculum-official-table tr.total-row th.row-title-total {
  background: #e2e8f0;
  color: #002c6c;
  text-align: center;
  font-weight: 800;
}

.curriculum-official-table tr.total-row td {
  color: #002c6c;
  font-weight: 800;
  text-align: center;
}

.curriculum-official-table tbody tr:hover td:not(.cell-remark) {
  background-color: #f1f5f9;
}

/* Bulletin Summary Table */
.summary-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.summary-table th {
  background: #f1f5f9;
  color: var(--color-primary);
  padding: 10px 8px;
  font-weight: 700;
  border: 1px solid var(--color-border);
}

.summary-table td {
  padding: 10px 8px;
  border: 1px solid var(--color-border);
  font-weight: 600;
}

.summary-table tr.total-row td {
  background: #f8fafc;
  font-weight: 800;
  color: var(--color-primary);
}

/* ==========================================================================
   Official Prerequisite Sysgraph Board (2026 실물 이수체계도 복각)
   ========================================================================== */
.sysgraph-official-board {
  border: 2.5px solid #451a03;
  background: #ffffff;
  padding: 24px 20px;
  position: relative;
  font-family: inherit;
  color: #0f172a;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.sg-top-bar {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.sg-legend-box {
  border: 1.5px solid #0f172a;
  padding: 8px 10px;
  font-size: 11px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.sg-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sg-legend-sample {
  display: inline-block;
  width: 44px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #94a3b8;
  background: #fff;
}

.sg-title-center {
  text-align: center;
}

.sg-main-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.sg-sub-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

.sg-notice-box-top {
  border: 1.5px dashed #dc2626;
  background: #fff;
  padding: 8px 10px;
  font-size: 11px;
  color: #0f172a;
  line-height: 1.45;
  font-weight: 600;
}

.sg-grid-8cols {
  display: grid;
  grid-template-columns: repeat(8, minmax(135px, 1fr));
  gap: 10px;
  position: relative;
  min-width: 1100px;
}

.sg-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px dashed #cbd5e1;
  padding-right: 10px;
}

.sg-column:last-child {
  border-right: none;
  padding-right: 0;
}

.sg-sem-header {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

/* Course Node Styles matching exact official graphic */
.sg-course-node {
  background: #ffffff;
  border: 1px solid #0f172a;
  padding: 8px 6px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  transition: all var(--transition-fast);
  cursor: default;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sg-course-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.15);
}

/* Node Types */
.sg-node-msc {
  border-left: 6px solid #0284c7;
}

.sg-node-major-req {
  background-color: #fee2e2;
  border: 1.5px solid #dc2626;
  border-left: 6px solid #78350f;
}

.sg-node-major-opt {
  border-left: 6px solid #78350f;
}

.sg-node-design-elem {
  background-color: #e0f2fe;
  border: 1.5px solid #0284c7;
  border-left: 6px solid #78350f;
}

.sg-node-capstone {
  background-color: #dcfce7;
  border: 1.5px solid #16a34a;
  border-left: 6px solid #78350f;
}

.sg-node-intro-design {
  border: 2.5px solid #dc2626;
  border-left: 6px solid #78350f;
  background-color: #fef3c7;
  box-shadow: 0 0 0 2px #fef08a;
}

.sg-node-intro-design .star-badge {
  color: #dc2626;
  font-size: 13px;
  margin-right: 2px;
}

/* Co-requisite Pill */
.sg-co-req-pill {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #ef4444;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  margin: 2px 0;
  text-align: center;
}

.sg-bottom-notice-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.sg-notice-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}

/* ==========================================================================
   Main Hero Right Widget: Academic Calendar & Quick Hub (440px Balance)
   ========================================================================== */
.calendar-hub-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 440px;
  overflow: hidden;
}

.calendar-hub-card .calendar-section {
  flex: 1.35;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.calendar-hub-card .calendar-header {
  padding: 12px 18px;
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-hub-card .calendar-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-hub-card .calendar-header h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 2px;
}

.calendar-hub-card .calendar-header-link {
  font-size: 11.5px;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: transform var(--transition-fast);
}

.calendar-hub-card .calendar-header-link:hover {
  transform: translateX(2px);
  color: var(--color-primary);
}

.calendar-hub-card .calendar-list {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
}

.calendar-hub-card .calendar-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 6px;
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.calendar-hub-card .calendar-item:hover {
  background: #f8fafc;
}

.calendar-hub-card .calendar-date-badge {
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-primary-light);
  box-shadow: 0 1px 3px rgba(10, 25, 47, 0.15);
}

.calendar-hub-card .calendar-date-badge .badge-month {
  font-size: 9px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-hub-card .calendar-date-badge .badge-day {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 1px;
}

.calendar-hub-card .calendar-info {
  flex: 1;
  min-width: 0;
}

.calendar-hub-card .calendar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.calendar-hub-card .calendar-desc {
  font-size: 11.5px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Quick Hub Grid (2 rows x 3 cols) */
.calendar-hub-card .quick-hub-section {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.calendar-hub-card .quick-hub-tile {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  position: relative;
  transition: all var(--transition-fast);
}

.calendar-hub-card .quick-hub-tile:nth-child(3n) {
  border-right: none;
}

.calendar-hub-card .quick-hub-tile:nth-child(n+4) {
  border-bottom: none;
}

.calendar-hub-card .quick-hub-tile:hover {
  background: #f8fafc;
}

.calendar-hub-card .quick-hub-tile:hover .tile-title {
  color: var(--color-accent);
}

.calendar-hub-card .quick-hub-tile:hover .tile-arrow {
  color: var(--color-accent);
  transform: translate(2px, -2px);
}

.calendar-hub-card .quick-hub-tile .tile-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color var(--transition-fast);
}

.calendar-hub-card .quick-hub-tile .tile-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.calendar-hub-card .quick-hub-tile .tile-sub {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
  letter-spacing: 0.3px;
}


