/* ==========================================================================
   AFibCheck / Plus1Health – shared site styles
   Loaded after js/templates.css (which carries the legacy layout system).
   ========================================================================== */

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans", "Noto Sans", "Microsoft YaHei", "Helvetica Neue", Arial,
    sans-serif;
  color: #314659;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

ul,
li {
  list-style: none;
}

a {
  color: #019bf0;
}

img {
  max-width: 100%;
}

/* Accessibility helpers ---------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  background: #fff;
  color: #001529;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Header ------------------------------------------------------------------- */
.header0 .home-page {
  padding: 0 24px;
}

.header0 {
  background: #001529;
  width: 100%;
  z-index: 100;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  top: 0;
}

.header-fixed {
  position: fixed;
}

.title-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header0-logo {
  display: inline-block;
  position: relative;
  width: 150px;
  line-height: 64px;
  flex: 0 0 auto;
}

.header0-logo a {
  display: block;
}

.header0-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.header0-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.header0-menu {
  float: none;
}

.header0-menu .ant-menu {
  line-height: 62px;
  height: 64px;
  border-bottom: 0;
  background: transparent;
}

.header0-menu .ant-menu-item {
  padding: 0 8px;
  border-bottom: 0 !important;
}

.header0-menu .ant-menu-item > a {
  display: block;
  padding: 0 8px;
}

/* Language switcher -------------------------------------------------------- */
.lang-switch {
  flex: 0 0 auto;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 108px;
  max-width: 168px;
  height: 32px;
  padding: 0 26px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23d6d6d6' d='M0 1l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  color: #d6d6d6;
  font-size: 13px;
  cursor: pointer;
}

.lang-select:hover,
.lang-select:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.64);
  outline: none;
}

.lang-select option {
  color: #001529;
  background: #fff;
}

/* Mobile menu -------------------------------------------------------------- */
.header0-menu-h5 {
  display: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.header0-menu-h5:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.header0-h5-content {
  display: none;
  position: fixed;
  top: 64px;
  right: 0;
  width: 260px;
  max-width: 86vw;
  background-color: #001529;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(151, 158, 163, 0.3);
}

.header0-h5-content:not([hidden]) {
  display: block;
}

.header0-h5-content a {
  color: #d6d6d6;
  display: block;
  text-decoration: none;
}

.header0-h5-content .options {
  margin: 0;
  padding: 0;
}

.header0-h5-content .option {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(151, 158, 163, 0.35);
  font-size: 14px;
  text-align: left;
}

.header0-h5-content .option:last-child {
  border-bottom: 0;
}

.header0-h5-content .option:hover {
  background-color: rgba(202, 205, 209, 0.14);
}

.header0-h5-content .option-lang {
  color: #8c9aa8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(151, 158, 163, 0.2);
}

/* Hero --------------------------------------------------------------------- */
.banner0 {
  padding-top: 64px;
  box-sizing: border-box;
}

.banner0 .banner0-text-wrapper {
  width: min(680px, 90%);
}

.banner0-title {
  width: 350px;
  max-width: 90%;
  margin: 0 auto 12px;
  left: 0;
}

.banner0-title img {
  display: block;
  width: 100%;
  height: auto;
}

.banner0-content {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.25;
  margin: 12px 0 14px;
  color: #fff;
}

.banner0-lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.banner0-icon {
  color: #fff;
  text-decoration: none;
}

/* Sections ----------------------------------------------------------------- */
.section-title {
  font-size: 32px;
  color: #314659;
  margin: 0 0 16px;
  text-align: center;
}

.content0-wrapper .content0-block-item {
  text-align: center;
  padding: 0 4px;
}

.content0-wrapper .content0-block-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.content0-wrapper .content0-block-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content0-block-title {
  font-size: 22px;
  line-height: 30px;
  margin: 10px auto;
  color: #314659;
}

.content_new {
  text-align: left;
  font-size: 15px;
  line-height: 1.65;
}

.content_new p {
  margin: 0 0 8px;
}

.content_new_p1 {
  margin-bottom: 10px !important;
}

.app-bullets {
  margin: 0 0 10px;
  padding: 0;
}

.app-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: #5a6b7d;
}

.app-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #07c160;
}

.app-more {
  display: inline-block;
  margin: 4px 0 10px;
  text-decoration: underline;
}

.download {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(7, 193, 96, 1);
  border: 1px solid rgba(7, 193, 96, 1);
  color: #fff;
  border-radius: 5px;
  box-shadow: 1px 1px 1px rgba(7, 193, 96, 0.8);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.download:hover {
  background-color: rgba(7, 193, 96, 0.85);
  border-color: rgba(7, 193, 96, 0.85);
  color: #fff;
}

.qr_code_box {
  padding-top: 10px;
  display: block;
  text-align: center;
}

.qr_code_pc_AFibCheck {
  width: 128px;
  height: 128px;
  margin: 0 auto;
}

.qr_code_pc_AFibCheck_img {
  width: 100%;
  height: 100%;
}

/* Article ------------------------------------------------------------------ */
.content4-home-page {
  height: auto !important;
}

.content4_1_h1,
.content4_1_text,
.content4_1_p {
  text-align: center;
}

.content4_1_h1 {
  font-size: 28px;
  line-height: 1.4;
  color: #314659;
}

.content4_1_p {
  margin: 10px 0 0;
  display: flex;
  justify-content: space-around;
  font-style: italic;
  gap: 12px;
}

.content4_1_p > p {
  margin: 0;
  padding: 32px 16px;
  background-color: rgba(105, 105, 105, 1);
  width: 100%;
  height: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  border-radius: 4px;
}

.content4-home-page > div {
  margin-bottom: 32px;
}

.content4_common_title {
  font-weight: bold;
  margin: 20px 0;
  font-size: 18px;
  line-height: 1.5;
}

.content4_common_title p {
  margin: 0;
}

.content4_common_title h3 {
  margin: 0;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.content4-home-page p {
  line-height: 1.8;
}

.cct_p > p {
  margin-bottom: 10px;
}

.cct_p ol {
  margin: 8px 0;
  padding: 0;
}

.cct_p li {
  margin-bottom: 8px;
}

.cct_p a {
  word-break: break-word;
}

/* FAQ ---------------------------------------------------------------------- */
.faq-wrapper {
  background: #f5f8fa;
  padding: 56px 0;
}

.faq-block {
  padding: 0 24px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list dt {
  font-weight: 600;
  font-size: 17px;
  margin: 20px 0 6px;
  color: #1f3a52;
}

.faq-list dd {
  margin: 0 0 14px;
  line-height: 1.75;
  color: #4a5c6d;
}

/* Footer ------------------------------------------------------------------- */
.footer0-wrapper {
  background-color: #001529;
  height: auto;
  min-height: 80px;
  overflow: hidden;
}

.footer0-wrapper .footer0 {
  padding: 20px 24px;
  line-height: 1.8;
  text-align: center;
  color: #999;
}

.footer0 .copyright a {
  color: #b9c6d2;
}

.footer0 .copyright span + span {
  margin-left: 8px;
}

.footer-disclaimer {
  margin: 6px auto 0;
  max-width: 900px;
  font-size: 12px;
  color: #7c8b98;
}

/* RTL ---------------------------------------------------------------------- */
html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", Arial, sans-serif;
}

html[dir="rtl"] .header0-h5-content .option,
html[dir="rtl"] .content_new,
html[dir="rtl"] .app-bullets li {
  text-align: right;
}

html[dir="rtl"] .app-bullets li {
  padding-left: 0;
  padding-right: 16px;
}

html[dir="rtl"] .app-bullets li::before {
  left: auto;
  right: 2px;
}

html[dir="rtl"] .lang-select {
  padding: 0 10px 0 26px;
  background-position: left 8px center;
}

/* Responsive --------------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .header0-menu .ant-menu-item {
    padding: 0 2px;
  }

  .header0-menu .ant-menu-item > a {
    padding: 0 4px;
    font-size: 13px;
  }
}

@media screen and (max-width: 767px) {
  .header0.home-page-wrapper .home-page {
    padding: 0 12px;
  }

  .header0-menu {
    display: none;
  }

  .header0-menu-h5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header0-logo {
    width: 120px;
    line-height: 56px;
  }

  .header0-actions {
    gap: 6px;
  }

  .lang-select {
    min-width: 72px;
    max-width: 120px;
    height: 30px;
    font-size: 12px;
    padding-left: 6px;
    padding-right: 20px;
    background-position: right 5px center;
  }

  html[dir="rtl"] .lang-select {
    padding-left: 20px;
    padding-right: 6px;
    background-position: left 5px center;
  }

  .header0-h5-content {
    top: 56px;
  }

  .banner0 {
    padding-top: 56px;
  }

  .banner0 .banner0-text-wrapper {
    top: 18%;
    width: 90%;
  }

  .banner0-content {
    font-size: 26px;
  }

  .banner0-lead {
    font-size: 14px;
  }

  .content0-wrapper .content0-block {
    padding: 0 16px !important;
  }

  .content4_1_p {
    flex-direction: column;
  }

  .content4_1_p > p {
    height: auto;
    padding: 20px 14px;
  }

  .content4_1_h1 {
    font-size: 22px;
  }

  .faq-list dt {
    font-size: 16px;
  }
}
