/* ==========================================================================
   Jothydev's Research Publications - Horizontal Rounded Rectangle Cards
   Typography matches jothydev.net (Anek Latin for Headings, DM Sans for Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anek+Latin:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --title-font: "Anek Latin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Prevent any horizontal overflow / horizontal scroll */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Page Header & Intro Section */
.pub-hero-section {
  background: linear-gradient(135deg, rgba(11, 21, 35, 0.85) 0%, rgba(21, 37, 56, 0.90) 100%), url('../img/ori_research.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 95px 0 90px 0; /* Generous banner height */
  min-height: 440px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #1389eb;
}

.pub-hero-section::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(19, 137, 235, 0.22) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.pub-hero-section .container {
  position: relative;
  z-index: 2;
}

.pub-hero-badge {
  background: rgba(19, 137, 235, 0.25) !important;
  color: #38bdf8 !important;
  font-family: var(--body-font) !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 25px !important;
  font-size: 13px !important;
  margin-bottom: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  max-width: 100% !important;
  line-height: 1.3 !important;
}

.pub-hero-title {
  font-family: var(--title-font) !important;
  font-size: clamp(22px, 5.5vw, 40px) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.3px !important;
  line-height: 1.25 !important;
  word-wrap: break-word !important;
}

.pub-hero-subtitle {
  font-family: var(--body-font) !important;
  font-size: clamp(13.5px, 3.5vw, 17px) !important;
  color: #cbd5e1 !important;
  max-width: 860px !important;
  margin-bottom: 22px !important;
  line-height: 1.6 !important;
}

.task-title {
  font-family: var(--title-font);
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
  transition: color 0.2s ease;
}

/* Stat Counters Grid (Symmetrical 2x2 on Mobile, 4-col on Desktop) */
.pub-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 18px !important;
}

@media (min-width: 992px) {
  .pub-stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }
}

.pub-stat-item {
  background: rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.pub-stat-item:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.28);
  transition: transform 0.3s ease, background 0.3s ease;
}

.pub-stat-item:hover .stat-icon-wrap {
  transform: scale(1.12) rotate(4deg);
  background: rgba(56, 189, 248, 0.25);
}

.stat-content-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pub-stat-num {
  font-family: var(--title-font) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  line-height: 1.1 !important;
  flex-shrink: 0 !important;
  display: inline-block;
  perspective: 600px;
  transform-style: preserve-3d;
}

.counter-flip.flip-active {
  animation: calendarRollTick 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes calendarRollTick {
  0% {
    transform: perspective(600px) rotateX(-55deg) translateY(-5px);
    opacity: 0.3;
  }
  65% {
    transform: perspective(600px) rotateX(15deg) translateY(2px);
    opacity: 0.95;
  }
  100% {
    transform: perspective(600px) rotateX(0deg) translateY(0);
    opacity: 1;
  }
}

.pub-stat-label {
  font-family: var(--body-font) !important;
  font-size: 11px !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
  margin-top: 2px !important;
}

/* --------------------------------------------------------------------------
   Search & Filter Card
   -------------------------------------------------------------------------- */
.pub-filter-wrapper {
  margin-top: -25px;
  position: relative;
  z-index: 100;
  margin-bottom: 30px;
}

.pub-filter-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1.5px solid #e2e8f0;
}

.pub-search-group {
  position: relative;
}

.pub-search-group i.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}

.pub-search-input {
  width: 100%;
  height: 46px;
  padding: 10px 15px 10px 42px;
  font-size: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  transition: all 0.25s ease;
  color: #1e293b;
  outline: none;
}

.pub-search-input:focus {
  border-color: #1389eb;
  box-shadow: 0 0 0 4px rgba(19, 137, 235, 0.15);
}

.pub-category-select {
  width: 100%;
  height: 46px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #334155;
  background-color: #ffffff;
  transition: all 0.25s ease;
  outline: none;
  cursor: pointer;
}

.pub-category-select:focus {
  border-color: #1389eb;
  box-shadow: 0 0 0 4px rgba(19, 137, 235, 0.15);
}

.pub-btn-search {
  height: 46px;
  background: #1389eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(19, 137, 235, 0.3);
}

.pub-btn-search:hover {
  background: #0d73c7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(19, 137, 235, 0.4);
}

.pub-btn-reset {
  height: 46px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.pub-btn-reset:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Quick Topic Filter Pills */
.pub-quick-topics {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pub-quick-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.pub-topic-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pub-topic-pill:hover,
.pub-topic-pill.active {
  background: #e9f4fe;
  color: #1389eb;
  border-color: #1389eb;
}

/* --------------------------------------------------------------------------
   Results Summary Bar
   -------------------------------------------------------------------------- */
.pub-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.pub-count-badge {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-count-badge span.count-num {
  background: #1389eb;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Horizontal Rounded Rectangle Task Cards
   -------------------------------------------------------------------------- */
.task-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
}

.task {
  position: relative !important;
  color: #2e2e2f !important;
  cursor: pointer !important;
  background-color: #ffffff !important;
  padding: 1.4rem 1.8rem !important;
  border-radius: 16px !important; /* Horizontal rectangle with smooth rounded corners */
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
  margin-bottom: 0 !important;
  border: 2px solid #e2e8f0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.task:hover {
  box-shadow: 0 8px 24px rgba(19, 137, 235, 0.15) !important;
  border-color: #1389eb !important;
  transform: translateY(-3px) !important;
}

.tags {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tag {
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  color: #ffffff;
  background-color: #1389eb;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag.tag-year {
  background-color: #f1f5f9;
  color: #475569;
  margin-left: 8px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.options {
  background: transparent;
  border: 0;
  color: #c4cad3;
  font-size: 17px;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s ease;
}

.options:hover {
  transform: scale(1.18);
}

.options svg {
  fill: #9fa4aa;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  display: block;
  transition: fill 0.2s ease;
}

.options:hover svg {
  fill: #1389eb;
}

.task-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.task:hover .task-title {
  color: #1389eb;
}

.task p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 1rem 0;
  line-height: 1.6;
  flex-grow: 1;
}

.task p strong.highlight-author {
  color: #0f172a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Horizontal Bottom Action Bar
   -------------------------------------------------------------------------- */
.pub-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 12px !important;
  margin-top: auto !important;
}

.pub-attachments-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.pub-attach-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pub-attach-pill svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.pub-attach-pill i {
  font-size: 14px !important;
  margin-right: 2px !important;
}

.pub-attach-pill.attach-doi {
  background: #e9f4fe !important;
  color: #1389eb !important;
  border: 1.5px solid #bfdbfe !important;
}

.pub-attach-pill.attach-doi:hover {
  background: #1389eb !important;
  color: #ffffff !important;
  border-color: #1389eb !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 137, 235, 0.3) !important;
}

.pub-attach-pill.attach-pdf {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1.5px solid #fecaca !important;
}

.pub-attach-pill.attach-pdf:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.pub-attach-pill.attach-request {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
}

.pub-attach-pill.attach-request:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

.pub-meta-right {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  flex-shrink: 0 !important;
}

.pub-meta-date {
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
}

.pub-meta-date i {
  margin-right: 5px;
  color: #94a3b8;
}

.viewer {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.viewer span {
  height: 28px;
  width: 28px;
  background-color: rgb(28, 117, 219);
  margin-right: -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  align-items: center;
  text-align: center;
  font-weight: bold;
  color: #fff;
  font-size: 10.5px;
  padding: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Empty State */
.pub-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  margin: 30px 0;
  width: 100%;
}

.pub-empty-icon {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 15px;
}

.pub-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.pub-empty-text {
  font-size: 14px;
  color: #64748b;
  max-width: 450px;
  margin: 0 auto 20px auto;
}

/* Autocomplete live dropdown */
.pub-autocomplete-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.pub-autocomplete-item {
  padding: 10px 15px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.pub-autocomplete-item:hover {
  background: #f0fbfc;
  color: #1389eb;
}

/* Responsive Mobile Styles */
@media (max-width: 991px) {
  .pub-hero-section {
    padding: 55px 0 45px 0;
    min-height: auto;
  }
  .pub-hero-title {
    font-size: 30px !important;
  }
  .pub-hero-subtitle {
    font-size: 15.5px !important;
  }
}

/* ============================================================
   MOBILE: <= 768px — Primary mobile breakpoint
   ============================================================ */
@media (max-width: 768px) {

  /* --- Hero Banner --- */
  .pub-hero-section {
    padding: 32px 0 28px 0 !important;
    min-height: auto !important;
  }
  .pub-hero-section .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .pub-hero-badge {
    font-size: 12px !important;
    padding: 5px 12px !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }
  .pub-hero-title {
    font-size: 22px !important;
    line-height: 1.28 !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.2px !important;
  }
  .pub-hero-subtitle {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
  }

  /* --- Stat Counters 2x2 Grid --- */
  .pub-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 14px !important;
    width: 100% !important;
  }
  .pub-stat-item {
    padding: 9px 12px !important;
    gap: 8px !important;
    border-radius: 10px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .pub-stat-num {
    font-size: 20px !important;
    flex-shrink: 0 !important;
  }
  .pub-stat-label {
    font-size: 10px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  /* --- Filter Wrapper & Card --- */
  .pub-filter-wrapper {
    margin-top: -12px !important;
    margin-bottom: 16px !important;
  }
  .pub-filter-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Stack all filter rows vertically, nullify Bootstrap gutter negative margins */
  .pub-filter-card .row {
    flex-direction: column !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .pub-filter-card .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 8px !important;
  }
  .pub-filter-card .row > [class*="col-"]:last-child {
    margin-bottom: 0 !important;
  }
  .pub-search-input,
  .pub-category-select {
    height: 44px !important;
    font-size: 13.5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .pub-btn-search {
    width: 100% !important;
    height: 44px !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
  }
  .pub-btn-reset {
    display: none !important; /* Hidden by default; shown only when filters active */
  }

  /* --- Quick Topic Pills — horizontal scroll, no bar --- */
  .pub-quick-topics {
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    padding: 10px 0 2px 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 6px !important;
    margin-top: 0 !important;
  }
  .pub-quick-topics::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }
  .pub-quick-label {
    flex-shrink: 0 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  .pub-topic-pill {
    flex-shrink: 0 !important;
    font-size: 11.5px !important;
    padding: 5px 12px !important;
    white-space: nowrap !important;
  }

  /* --- Results Bar --- */
  .pub-results-bar {
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
  }
  .pub-count-badge {
    font-size: 14px !important;
  }

  /* --- Publication Cards ---
       Add right padding so FABs (50px wide + 10px gap) don't overlap text
  --- */
  .task-grid {
    gap: 14px !important;
    padding-right: 0 !important; /* Cards use full container width */
  }
  .task {
    padding: 15px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .task-title {
    font-size: 15px !important;
    line-height: 1.38 !important;
    word-break: break-word !important;
    padding-right: 28px !important; /* Space for the options (⋯) button */
  }
  .task-description,
  .task p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    word-break: break-word !important;
  }

  /* Tags row — number badge + options menu */
  .tags {
    margin-bottom: 6px !important;
  }
  .tag {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }

  /* Footer action buttons */
  .pub-card-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
  }
  .pub-attachments-bar,
  .pub-card-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .pub-attach-pill {
    padding: 5px 11px !important;
    font-size: 11.5px !important;
    gap: 5px !important;
  }
  .pub-meta-right {
    width: 100% !important;
    justify-content: space-between !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 8px !important;
    gap: 10px !important;
  }

  /* Viewer avatars */
  .viewer span {
    height: 26px !important;
    width: 26px !important;
    font-size: 10px !important;
  }

  /* Empty state */
  .pub-empty-state {
    padding: 40px 16px !important;
  }
}

/* ============================================================
   MOBILE: <= 480px — Extra small screens
   ============================================================ */
@media (max-width: 480px) {
  .pub-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .pub-stat-item {
    padding: 8px 10px !important;
  }
  .pub-stat-num {
    font-size: 18px !important;
  }
  .pub-stat-label {
    font-size: 9.5px !important;
  }

  .pub-hero-title {
    font-size: 20px !important;
  }
  .pub-hero-subtitle {
    font-size: 13px !important;
  }
}

/* ============================================================
   Mobile: Ensure FABs don't hide the last card
   Add bottom padding so content scrolls past fixed FABs
   ============================================================ */
@media (max-width: 768px) {
  /* Extra bottom padding so the FABs don't cover the last publication card */
  #main {
    padding-bottom: 90px !important;
  }

  /* Ensure task-grid section has enough bottom clearance */
  section.pb-5 {
    padding-bottom: 90px !important;
  }

  /* Ensure the container within the publications list doesn't get blocked */
  .task-grid {
    padding-right: 0 !important;
  }
}
