:root {
  --main: #2b6cb0;
  --main-2: #3182ce;
  --red: #cf2329;
  --title: #192c55;
  --dark: #111827;
  --dark-2: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --soft: #fafbfc;
  --section: #f9feff;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--soft);
  color: var(--dark);
  font-family: Inter, Montserrat, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 48px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100%, 1440px);
  height: 98px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img {
  width: 161px;
  height: 65px;
  object-fit: contain;
}

.nav,
.auth-actions,
.footer-bottom nav,
.socials {
  display: flex;
  align-items: center;
}

.nav {
  gap: 32px;
}

.nav a {
  color: #374151;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
}

.nav .active {
  color: var(--main);
  font-weight: 800;
}

.auth-actions {
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.sign-up {
  padding: 10px 24px;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
}

.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #ebf4ff 0%, #fff 100%);
}

.hero-copy {
  width: 768px;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--title);
  font-size: 48px;
  line-height: 60px;
  font-weight: 700;
}

.hero p {
  width: 760px;
  max-width: 100%;
  margin-top: 24px;
  padding-bottom: 16px;
  color: var(--dark-2);
  font-size: 24px;
  line-height: 32.5px;
}

.search {
  width: 672px;
  max-width: 100%;
  min-height: 72px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
}

.search-icon,
.eye,
.chat {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.search-icon {
  width: 18px;
  height: 18px;
  margin-left: 16px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: #9ca3af;
  transform: rotate(45deg);
  border-radius: 999px;
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 14px 16px;
  color: #111827;
  font: 400 16px/24px Inter, Arial, sans-serif;
  outline: none;
}

.search input::placeholder {
  color: #9ca3af;
}

.search button {
  border: 0;
  padding: 12px 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--main);
  font: 500 16px/24px Inter, Arial, sans-serif;
  cursor: pointer;
}

.section {
  padding: 80px 0;
}

.section-white {
  background: #fff;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.cta h2 {
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
}

.section-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--main);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.category-grid,
.video-grid,
.stats-grid,
.footer-top {
  display: grid;
  gap: 32px;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  min-height: 232px;
  padding: 48px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--section);
}

.category-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.category-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.blood {
  color: var(--main);
  background: rgb(43 108 176 / 10%);
}

.hemo {
  color: #ef4444;
  background: rgb(239 68 68 / 10%);
}

.leukemia {
  color: #a855f7;
  background: rgb(168 85 247 / 10%);
}

.category-card h3 {
  margin-bottom: 8px;
  color: var(--title);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.category-card p {
  min-height: 48px;
  color: var(--title);
  font-size: 16px;
  line-height: 24px;
}

.category-card span {
  display: block;
  margin-top: 16px;
  color: var(--title);
  font-size: 14px;
  line-height: 20px;
}

.latest {
  background: var(--soft);
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.video-media {
  position: relative;
  height: 224px;
  overflow: hidden;
}

.video-media > img {
  position: absolute;
  left: 0;
  top: -44.79%;
  width: 100%;
  height: 189.58%;
  max-width: none;
  object-fit: cover;
}

.media-ecg {
  background: linear-gradient(152deg, #dbeafe 0%, #eff6ff 100%);
}

.media-brain {
  background: linear-gradient(152deg, #f3e8ff 0%, #faf5ff 100%);
}

.media-child {
  background: linear-gradient(152deg, #dcfce7 0%, #f0fdf4 100%);
}

.play {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  margin: auto;
  display: none;
  border-radius: 50%;
  background: #fff;
}

.play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 21px;
  border-left: 17px solid var(--main);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgb(0 0 0 / 70%);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.video-body {
  padding: 24px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.meta span {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--main);
  background: #ebf4ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.meta em {
  color: #9ca3af;
  font-style: normal;
  font-size: 12px;
}

.video-body h3 {
  min-height: 56px;
  margin-top: 12px;
  color: var(--dark);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.video-body p {
  min-height: 48px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.video-footer {
  margin-top: 16px;
  padding-top: 17px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.eye,
.chat {
  width: 15px;
  height: 14px;
  margin-right: 4px;
  margin-left: 16px;
  vertical-align: -2px;
}

.eye {
  margin-left: 0;
  border: 1.8px solid #9ca3af;
  border-radius: 50% / 60%;
}

.eye::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #9ca3af;
}

.chat {
  border: 1.8px solid #9ca3af;
  border-radius: 4px;
}

.chat::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -5px;
  border-top: 5px solid #9ca3af;
  border-right: 5px solid transparent;
}

.avatar {
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #e5e7eb;
}

.cta {
  padding: 96px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--main) 0%, var(--main-2) 100%);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.cta-copy {
  width: 672px;
  max-width: 100%;
}

.cta-copy p {
  margin-top: 16px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 32.5px;
}

.cta ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0 0 16px;
  display: grid;
  gap: 12px;
}

.cta li {
  position: relative;
  padding-left: 32px;
  font-size: 18px;
  line-height: 28px;
}

.cta li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.cta li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--main);
  border-bottom: 2px solid var(--main);
  transform: rotate(-45deg);
}

.doctor-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 16px 40px;
  border-radius: 12px;
  color: #101827;
  background: #fff;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%);
}

.cta-visual {
  width: 384px;
  height: 384px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgb(255 255 255 / 10%);
  backdrop-filter: blur(2px);
}

.cta-visual img {
  width: 114px;
  height: 128px;
  object-fit: contain;
}

.stats {
  padding: 80px 0;
  background: #fff;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  text-align: center;
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ebf4ff;
}

.stat-icon img {
  width: auto;
  height: 30px;
  max-width: 36px;
}

.stat strong {
  display: block;
  color: var(--dark);
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: 36px;
  line-height: 40px;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.footer {
  padding-top: 64px;
  color: var(--section);
  background: var(--dark);
}

.footer-top {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: start;
  padding-bottom: 32px;
}

.footer-brand img {
  width: 300px;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.footer p,
.footer a {
  color: var(--section);
  font-size: 16px;
  line-height: 26px;
}

.footer h4 {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.footer-top a {
  display: block;
  margin-bottom: 12px;
}

.socials {
  gap: 16px;
}

.socials a {
  width: 40px;
  height: 40px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--dark-2);
}

.socials img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.footer-bottom {
  min-height: 53px;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--main);
  border-top: 1px solid var(--dark-2);
  color: var(--section);
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.footer-bottom nav {
  gap: 24px;
}

.footer-bottom a {
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 1050px) {
  .header-inner,
  .container,
  .footer-bottom {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-inner {
    height: auto;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 40px;
    line-height: 50px;
  }

  .category-grid,
  .video-grid,
  .stats-grid,
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .container,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand img {
    width: 132px;
    height: auto;
  }

  .nav {
    gap: 14px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .auth-actions {
    gap: 10px;
  }

  .hero {
    min-height: 460px;
  }

  h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .hero p,
  .cta-copy p {
    font-size: 18px;
    line-height: 28px;
  }

  .search {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search input {
    width: calc(100% - 52px);
  }

  .search button {
    width: 100%;
    margin-top: 8px;
  }

  .section,
  .stats {
    padding: 56px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .cta h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .category-grid,
  .video-grid,
  .stats-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 64px 0;
  }

  .cta-visual {
    width: 100%;
    height: 260px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
