/* ========================================================================== 
   KHÁM MẮT CỘNG ĐỒNG — REDESIGN 2026
   Lớp CSS này được tải cuối để tinh gọn trang chủ và bổ sung các trang nội dung.
   ========================================================================== */

:root {
  --redesign-navy: #073477;
  --redesign-blue: #0b5fc4;
  --redesign-sky: #eaf7ff;
  --redesign-green: #138864;
  --redesign-red: #d92e46;
  --redesign-ink: #10233f;
  --redesign-muted: #60728d;
  --redesign-line: #d7e8f5;
}

/* Trang chủ: rút gọn nhịp cuộn và tăng độ rõ của mục tiêu chính. */
.hero {
  min-height: 650px;
  padding-block: 60px 76px;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3.3rem, 6.8vw, 6.5rem);
}

.hero-copy h1 span {
  max-width: 650px;
}

.hero-lead {
  max-width: 680px;
}

.trust-bar {
  margin-bottom: 0;
}

.booking-conversion {
  margin-top: 0;
}

.topics-section,
.community-activity,
.safe-question,
.emergency-section,
.hospital-section,
.faq-section {
  scroll-margin-top: 105px;
}

/* Lịch khám cộng đồng — ưu tiên nội dung chuyển đổi quan trọng nhất. */
.community-schedule {
  padding-block: clamp(62px, 7vw, 94px);
}

.schedule-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.schedule-heading h2 {
  max-width: 820px;
  font-size: clamp(2.15rem, 4.2vw, 4.15rem);
}

.schedule-live-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #bfe5d8;
  border-radius: 999px;
  color: #0b7354;
  background: #edfbf6;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.schedule-live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1ba77b;
  box-shadow: 0 0 0 5px #1ba77b1c;
}

.community-schedule[data-schedule-state="updating"] .schedule-live-badge,
.community-schedule[data-schedule-state="closed"] .schedule-live-badge {
  color: #6b7890;
  border-color: #d7e3ec;
  background: #f7fafc;
}

.community-schedule[data-schedule-state="updating"] .schedule-live-badge::before,
.community-schedule[data-schedule-state="closed"] .schedule-live-badge::before {
  background: #8190a5;
  box-shadow: 0 0 0 5px #8190a51a;
}

.schedule-panel {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) minmax(210px, .34fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid #cfe5f5;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbff 70%, #e9f6ff 100%);
  overflow: hidden;
  box-shadow: 0 26px 70px #0734771c;
}

.schedule-date {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-height: 260px;
  color: #fff;
  background: radial-gradient(circle at 25% 10%, #35c4df5c, transparent 35%), linear-gradient(150deg, #073477, #0b5fc4 66%, #2496eb);
  text-align: center;
}

.schedule-date strong {
  color: #fff;
  font-size: clamp(3.1rem, 5vw, 5.1rem);
  line-height: 1;
  letter-spacing: -.07em;
}

.schedule-date span {
  color: #d8f5ff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.schedule-main {
  padding: clamp(28px, 4vw, 46px);
}

.schedule-status {
  color: var(--redesign-blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.schedule-main h3 {
  max-width: 760px;
  margin-top: 9px;
  font-size: clamp(1.65rem, 2.6vw, 2.75rem);
}

.schedule-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.schedule-meta span {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #dcebf6;
  border-radius: 16px;
  background: #fff;
}

.schedule-meta b,
.schedule-meta em {
  display: block;
  font-style: normal;
}

.schedule-meta b {
  color: #75859a;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.schedule-meta em {
  margin-top: 3px;
  color: var(--redesign-ink);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.5;
}

.schedule-note {
  max-width: 840px;
  margin-top: 22px;
  color: var(--redesign-muted);
  font-size: .86rem;
}

.schedule-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  padding: 28px;
  border-left: 1px solid #dcebf6;
  background: #ffffffb8;
}

.schedule-actions .button {
  width: 100%;
  min-height: 58px;
  text-align: center;
}

.schedule-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 11px 16px;
  border: 1px solid #c9deef;
  border-radius: 999px;
  color: var(--redesign-blue);
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.schedule-secondary:hover {
  transform: translateY(-2px);
  border-color: #8ec9ef;
  box-shadow: 0 12px 24px #07347714;
}

.schedule-footnote {
  margin-top: 14px;
  color: #718198;
  font-size: .7rem;
}

/* Đặt lịch: giảm cảm giác kỹ thuật, tăng độ tin cậy. */
.booking-conversion-copy > p:not(.eyebrow) {
  max-width: 760px;
}

.booking-trust-chips span {
  white-space: normal;
}

.booking-consent a {
  color: var(--color-primary-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

.booking-honeypot {
  position: fixed !important;
  inset: auto auto 100% 100% !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Kiến thức: thẻ chuyển sang nội dung thật, không còn tất cả dẫn về Facebook. */
.topics-section {
  margin-top: 0;
}

.topic-card-foot span b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: #1478df;
  font-size: .78rem;
}

.topics-community-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid #ffffff2e;
  border-radius: 22px;
  background: #ffffff10;
}

.topics-community-cta div {
  display: flex;
  flex-direction: column;
}

.topics-community-cta strong {
  color: #fff;
}

.topics-community-cta span {
  margin-top: 3px;
  color: #cbe9f7;
  font-size: .76rem;
}

.topics-community-cta a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #073477;
  background: #fff;
  font-size: .76rem;
  font-weight: 800;
}

/* Dữ liệu động: trạng thái lỗi rõ ràng và có hành động phục hồi. */
.content-empty-state {
  min-height: 210px;
}

.content-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.content-empty-actions a,
.content-retry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #bddbee;
  border-radius: 999px;
  color: #0b5fc4;
  background: #fff;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.content-retry-button:hover,
.content-empty-actions a:hover {
  border-color: #70b9e7;
  box-shadow: 0 10px 22px #07347714;
}

/* Footer: giảm số liên kết và giữ chính sách dễ tìm. */
.footer-nav a[href*="chinh-sach"] {
  color: #aee8ff;
}

/* ========================================================================== 
   TRANG KIẾN THỨC VÀ CHÍNH SÁCH
   ========================================================================== */
.content-page {
  min-width: 320px;
  margin: 0;
  color: var(--redesign-ink);
  background: #f4faff;
  font-family: var(--font-be-vietnam-pro, "Be Vietnam Pro", "Segoe UI", sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}

.content-page * {
  box-sizing: border-box;
}

.content-page a {
  color: inherit;
  text-decoration: none;
}

.simple-page-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #d7e8f5;
  background: #ffffffee;
  backdrop-filter: blur(16px);
}

.simple-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 36px, 1180px);
  min-height: 78px;
  margin-inline: auto;
}

.simple-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.simple-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.simple-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.simple-brand strong {
  color: var(--redesign-navy);
  font-size: .95rem;
}

.simple-brand small {
  color: var(--redesign-red);
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.simple-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.simple-page-actions a {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #cfe2f1;
  border-radius: 999px;
  color: var(--redesign-blue);
  background: #fff;
  font-size: .74rem;
  font-weight: 800;
}

.simple-page-actions .is-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0b5fc4, #2496eb);
}

.content-page-main {
  width: min(100% - 36px, 1180px);
  margin-inline: auto;
  padding-block: 58px 90px;
}

.content-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr);
  gap: 42px;
  align-items: end;
  padding: clamp(34px, 5vw, 62px);
  border-radius: 36px;
  color: #fff;
  background: radial-gradient(circle at 88% 10%, #35c4df63, transparent 28%), linear-gradient(145deg, #073477, #0b5fc4 65%, #2496eb);
  box-shadow: 0 28px 70px #0734772b;
}

.content-page-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.content-page-hero p {
  max-width: 780px;
  margin: 20px 0 0;
  color: #d8f3ff;
}

.content-page-hero-note {
  padding: 22px;
  border: 1px solid #ffffff2e;
  border-radius: 22px;
  background: #ffffff12;
}

.content-page-hero-note strong,
.content-page-hero-note span {
  display: block;
}

.content-page-hero-note strong {
  color: #fff;
}

.content-page-hero-note span {
  margin-top: 8px;
  color: #d6edf8;
  font-size: .78rem;
}

.content-disclaimer {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #f0c3ca;
  border-radius: 18px;
  color: #7a2632;
  background: #fff5f6;
  font-size: .78rem;
}

.knowledge-nav {
  display: flex;
  gap: 9px;
  margin-top: 28px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.knowledge-nav a {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #d3e5f3;
  border-radius: 999px;
  color: #31506f;
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.knowledge-list,
.policy-list {
  display: grid;
  gap: 24px;
  margin-top: 46px;
}

.knowledge-article,
.policy-section {
  scroll-margin-top: 100px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid #d8e8f4;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 44px #0734770f;
}

.knowledge-article-header {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.knowledge-number {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #0b5fc4, #2496eb);
  font-size: .88rem;
  font-weight: 800;
}

.knowledge-article h2,
.policy-section h2 {
  margin: 0;
  color: var(--redesign-navy);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.knowledge-article-header p {
  margin: 8px 0 0;
  color: var(--redesign-muted);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.knowledge-box {
  padding: 20px;
  border: 1px solid #dceaf4;
  border-radius: 20px;
  background: #f8fcff;
}

.knowledge-box strong {
  display: block;
  color: var(--redesign-navy);
  font-size: .82rem;
}

.knowledge-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #526781;
  font-size: .78rem;
}

.knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.knowledge-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c5deef;
  border-radius: 999px;
  color: var(--redesign-blue);
  font-size: .72rem;
  font-weight: 800;
}

.knowledge-actions a:first-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0b5fc4, #2496eb);
}

.policy-section p,
.policy-section li {
  color: #536780;
}

.policy-section ul,
.policy-section ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.policy-meta div {
  padding: 17px;
  border: 1px solid #dceaf4;
  border-radius: 18px;
  background: #f8fcff;
}

.policy-meta strong,
.policy-meta span {
  display: block;
}

.policy-meta span {
  margin-top: 4px;
  color: #5f728a;
  font-size: .78rem;
}

.simple-page-footer {
  border-top: 1px solid #d8e8f4;
  background: #fff;
}

.simple-page-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: min(100% - 36px, 1180px);
  margin-inline: auto;
  padding-block: 26px;
  color: #667a91;
  font-size: .72rem;
}

@media (max-width: 1080px) {
  .schedule-panel {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .schedule-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    border-top: 1px solid #dcebf6;
    border-left: 0;
  }

  .schedule-actions > * {
    flex: 1;
  }

  .knowledge-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-block: 46px 62px;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 13vw, 4.7rem);
  }

  .community-schedule {
    width: min(100% - 28px, var(--container));
    padding-block: 64px;
  }

  .schedule-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .schedule-panel {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .schedule-date {
    min-height: 120px;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .schedule-date strong {
    font-size: 3.2rem;
  }

  .schedule-meta {
    grid-template-columns: 1fr;
  }

  .schedule-actions {
    grid-column: auto;
    flex-direction: column;
    padding: 22px;
  }

  .topics-community-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .topics-community-cta a {
    width: 100%;
  }

  .simple-page-header-inner {
    min-height: 70px;
  }

  .simple-brand small {
    display: none;
  }

  .simple-page-actions a:not(.is-primary) {
    display: none;
  }

  .content-page-main {
    padding-block: 28px 70px;
  }

  .content-page-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 24px;
    border-radius: 28px;
  }

  .content-page-hero h1 {
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .knowledge-article,
  .policy-section {
    padding: 25px 21px;
    border-radius: 24px;
  }

  .knowledge-article-header {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .knowledge-number {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .knowledge-grid,
  .policy-meta {
    grid-template-columns: 1fr;
  }

  .simple-page-footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page p,
.content-page figure {
  margin-top: 0;
}

.content-page img,
.content-page svg {
  display: block;
  max-width: 100%;
}


/* V38 — popup kiến thức mắt */
.topics-popup-hint{display:inline-flex;align-items:center;gap:.5rem;color:#d9edff;font-weight:700;font-size:.92rem;line-height:1.5}
.knowledge-modal[hidden]{display:none}.knowledge-modal{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:20px}.knowledge-modal-backdrop{position:absolute;inset:0;background:rgba(3,16,36,.78);backdrop-filter:blur(8px)}
.knowledge-modal-dialog{position:relative;width:min(920px,100%);max-height:min(88vh,850px);overflow:hidden;border-radius:26px;background:#fff;box-shadow:0 28px 90px rgba(0,17,45,.34);display:flex;flex-direction:column;animation:knowledgePop .28s ease-out}
@keyframes knowledgePop{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
.knowledge-modal-header{padding:25px 28px 20px;background:linear-gradient(135deg,#063b7a,#0784d7);color:#fff;display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.knowledge-modal-kicker{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#e1f5ff;margin-bottom:8px}.knowledge-modal-header h2{margin:0;color:#fff!important;font-size:clamp(1.65rem,3vw,2.35rem);line-height:1.12;font-weight:900;letter-spacing:-.025em;text-shadow:0 2px 10px rgba(0,25,68,.34);position:relative;padding-bottom:12px}.knowledge-modal-header h2::after{content:"";position:absolute;left:0;bottom:0;width:68px;height:4px;border-radius:999px;background:linear-gradient(90deg,#fff,#63d7ff);box-shadow:0 2px 8px rgba(0,0,0,.16)}.knowledge-modal-close{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;font-size:2rem;line-height:1;cursor:pointer;flex:0 0 auto}.knowledge-modal-close:hover{background:#fff;color:#063b7a}
.knowledge-modal-body{padding:26px 28px;overflow:auto;background:linear-gradient(180deg,#f5faff 0,#fff 170px)}.knowledge-summary{font-size:1.05rem;line-height:1.75;color:#2d4868;margin:0 0 20px;padding:16px 18px;border-left:4px solid #0b8ad9;background:#eaf7ff;border-radius:0 14px 14px 0}.knowledge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.knowledge-panel{border:1px solid #dce9f4;border-radius:18px;padding:18px;background:#fff;box-shadow:0 8px 24px rgba(13,67,113,.06)}.knowledge-panel strong{display:block;color:#073d78;margin-bottom:10px;font-size:1rem}.knowledge-panel ul{margin:0;padding-left:19px;color:#38536f;line-height:1.65}.knowledge-panel li+li{margin-top:7px}.knowledge-alert{margin-top:18px;padding:14px 16px;border-radius:14px;background:#fff2ed;color:#8b2d13;font-weight:700;line-height:1.55}
.knowledge-modal-footer{padding:18px 28px;border-top:1px solid #dfebf4;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff}.knowledge-modal-footer p{margin:0;color:#65788c;font-size:.82rem;max-width:480px}.knowledge-modal-footer>div{display:flex;gap:10px}.knowledge-call{display:inline-flex;align-items:center;padding:11px 16px;border-radius:12px;border:1px solid #b9d4e8;color:#074879;font-weight:800;text-decoration:none}
body.has-knowledge-modal{overflow:hidden}
@media(max-width:760px){.knowledge-modal{padding:8px}.knowledge-modal-dialog{max-height:94vh;border-radius:20px}.knowledge-modal-header,.knowledge-modal-body,.knowledge-modal-footer{padding-left:18px;padding-right:18px}.knowledge-grid{grid-template-columns:1fr}.knowledge-modal-footer{align-items:stretch;flex-direction:column}.knowledge-modal-footer>div{display:grid;grid-template-columns:1fr 1fr}.knowledge-modal-footer a{text-align:center;justify-content:center}.knowledge-modal-header h2{font-size:1.55rem}}

/* V40 — nhiều lịch khám, bộ lọc trạng thái và kho lưu trữ chương trình */
.schedule-intro {
  max-width: 790px;
  margin-top: 16px;
  color: #60748e;
  font-size: clamp(.92rem, 1.2vw, 1.02rem);
  line-height: 1.7;
}

.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.schedule-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid #d5e5f1;
  border-radius: 999px;
  color: #405772;
  background: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.schedule-filter span {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding-inline: 6px;
  border-radius: 999px;
  color: #637790;
  background: #edf4f9;
  font-size: .68rem;
  font-weight: 900;
}

.schedule-filter:hover {
  transform: translateY(-2px);
  border-color: #9bccef;
  box-shadow: 0 10px 24px rgba(7, 52, 119, .09);
}

.schedule-filter.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0757b5, #168fe3);
  box-shadow: 0 13px 28px rgba(7, 87, 181, .22);
}

.schedule-filter.is-active span {
  color: #0757b5;
  background: #fff;
}

.schedule-panel[hidden],
.schedule-list[hidden],
.schedule-empty[hidden],
.schedule-show-more[hidden] {
  display: none !important;
}

.community-schedule[data-schedule-state="sap_dien_ra"] .schedule-live-badge {
  color: #075fae;
  border-color: #b9ddf7;
  background: #edf8ff;
}

.community-schedule[data-schedule-state="sap_dien_ra"] .schedule-live-badge::before {
  background: #168fe3;
  box-shadow: 0 0 0 5px rgba(22, 143, 227, .13);
}

.community-schedule[data-schedule-state="tam_hoan"] .schedule-live-badge {
  color: #965900;
  border-color: #f1d29a;
  background: #fff8e9;
}

.community-schedule[data-schedule-state="tam_hoan"] .schedule-live-badge::before {
  background: #e89a18;
  box-shadow: 0 0 0 5px rgba(232, 154, 24, .14);
}

.community-schedule[data-schedule-state="dang_cap_nhat"] .schedule-live-badge {
  color: #637187;
  border-color: #d7e1ea;
  background: #f5f8fb;
}

.community-schedule[data-schedule-state="dang_cap_nhat"] .schedule-live-badge::before {
  background: #8190a5;
  box-shadow: 0 0 0 5px rgba(129, 144, 165, .13);
}

.community-schedule[data-schedule-state="da_ket_thuc"] .schedule-live-badge {
  color: #0b7354;
  border-color: #bfe5d8;
  background: #edfbf6;
}

.community-schedule[data-schedule-state="da_ket_thuc"] .schedule-live-badge::before {
  background: #1ba77b;
  box-shadow: 0 0 0 5px rgba(27, 167, 123, .12);
}

.community-schedule[data-schedule-state="sap_dien_ra"] .schedule-date {
  background: radial-gradient(circle at 25% 10%, rgba(53, 196, 223, .36), transparent 35%), linear-gradient(150deg, #073477, #0b5fc4 66%, #2496eb);
}

.community-schedule[data-schedule-state="tam_hoan"] .schedule-date {
  background: radial-gradient(circle at 25% 10%, rgba(255, 223, 129, .34), transparent 35%), linear-gradient(150deg, #854300, #c97800 66%, #f2aa2e);
}

.community-schedule[data-schedule-state="dang_cap_nhat"] .schedule-date {
  background: radial-gradient(circle at 25% 10%, rgba(181, 207, 230, .28), transparent 35%), linear-gradient(150deg, #344a63, #526d89 66%, #7893ad);
}

.community-schedule[data-schedule-state="da_ket_thuc"] .schedule-date {
  background: radial-gradient(circle at 25% 10%, rgba(98, 226, 185, .28), transparent 35%), linear-gradient(150deg, #075b4e, #0b846d 66%, #1aa985);
}

.schedule-archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  margin-bottom: 17px;
}

.schedule-archive-heading h3 {
  margin: 0;
  color: #102746;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.schedule-archive-heading p {
  margin: 7px 0 0;
  color: #718198;
  font-size: .78rem;
}

.schedule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.schedule-list-card {
  min-width: 0;
  border: 1px solid #d8e7f2;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(7, 52, 119, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.schedule-list-card:hover {
  transform: translateY(-3px);
  border-color: #a9cee8;
  box-shadow: 0 16px 36px rgba(7, 52, 119, .11);
}

.schedule-list-card.is-selected {
  border-color: #168fe3;
  box-shadow: 0 0 0 3px rgba(22, 143, 227, .12), 0 16px 36px rgba(7, 52, 119, .12);
}

.schedule-list-button {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  width: 100%;
  min-height: 178px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.schedule-list-date {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 16px 8px;
  color: #fff;
  background: linear-gradient(155deg, #526d89, #7893ad);
  text-align: center;
}

.schedule-list-card--sap_dien_ra .schedule-list-date {
  background: linear-gradient(155deg, #0757b5, #2496eb);
}

.schedule-list-card--tam_hoan .schedule-list-date {
  background: linear-gradient(155deg, #a35800, #eca121);
}

.schedule-list-card--da_ket_thuc .schedule-list-date {
  background: linear-gradient(155deg, #08705d, #1aa985);
}

.schedule-list-date strong,
.schedule-list-date span,
.schedule-list-date em {
  display: block;
  color: #fff;
  font-style: normal;
}

.schedule-list-date strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.06em;
}

.schedule-list-date span {
  font-size: .63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-list-date em {
  color: rgba(255,255,255,.78);
  font-size: .64rem;
  font-weight: 700;
}

.schedule-list-content {
  display: flex;
  min-width: 0;
  padding: 18px;
  flex-direction: column;
}

.schedule-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-list-status {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  color: #637187;
  background: #eef3f7;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.schedule-list-card--sap_dien_ra .schedule-list-status {
  color: #075fae;
  background: #eaf6ff;
}

.schedule-list-card--tam_hoan .schedule-list-status {
  color: #925600;
  background: #fff3d8;
}

.schedule-list-card--da_ket_thuc .schedule-list-status {
  color: #0b7354;
  background: #e8f8f2;
}

.schedule-list-time {
  color: #7a899d;
  font-size: .65rem;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-list-title {
  display: -webkit-box;
  margin-top: 13px;
  overflow: hidden;
  color: #132a49;
  font-size: .96rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.schedule-list-location {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #6a7d94;
  font-size: .72rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.schedule-list-view {
  margin-top: auto;
  padding-top: 12px;
  color: #0b6cc7;
  font-size: .7rem;
  font-weight: 900;
}

.schedule-list-view::after {
  content: " →";
}

.schedule-empty {
  padding: 34px 24px;
  border: 1px dashed #c9dce9;
  border-radius: 22px;
  color: #60748e;
  background: #f8fbfd;
  text-align: center;
}

.schedule-empty strong,
.schedule-empty span {
  display: block;
}

.schedule-empty strong {
  color: #17304f;
  font-size: 1rem;
}

.schedule-empty span {
  max-width: 620px;
  margin: 7px auto 0;
  font-size: .78rem;
  line-height: 1.6;
}

.schedule-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.schedule-show-more {
  min-height: 45px;
  padding: 9px 18px;
  border: 1px solid #bdd8eb;
  border-radius: 999px;
  color: #075fae;
  background: #fff;
  font: inherit;
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.schedule-show-more:hover {
  transform: translateY(-2px);
  border-color: #81bde6;
  box-shadow: 0 10px 22px rgba(7, 52, 119, .1);
}

@media (max-width: 1040px) {
  .schedule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .schedule-heading h2 {
    font-size: clamp(2rem, 10.5vw, 3.2rem);
  }

  .schedule-filters {
    flex-wrap: nowrap;
    margin-inline: -14px;
    padding: 2px 14px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .schedule-filters::-webkit-scrollbar {
    display: none;
  }

  .schedule-filter {
    flex: 0 0 auto;
    min-height: 42px;
    scroll-snap-align: start;
  }

  .schedule-list {
    grid-template-columns: 1fr;
  }

  .schedule-list-button {
    min-height: 158px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .schedule-list-content {
    padding: 15px;
  }

  .schedule-list-time {
    display: none;
  }

  .schedule-archive-heading {
    margin-top: 30px;
  }
}
