/*
** Doctor National - About Us Page Design System
** Scoped to .html-topic-page and .about-wrap
*/

:root {
  --ink: #141416;
  --soft: #65656b;
  --line: #1c1c1e;
  --ls: #d8d6d2;
  --paper: #ffffff;
  --sand: #f2f0ec;
  --red: #d81f30;
  --red2: #a5121f;
  color-scheme: light;
}

html.html-topic-page,
html.html-topic-page body {
  background: var(--sand);
  color: var(--ink);
  font-family: 'Cairo', sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[lang=en].html-topic-page body,
html[lang=en].html-topic-page button {
  font-family: 'Poppins', 'Cairo', sans-serif;
}

html.html-topic-page .master-wrapper-content {
  background: var(--sand) !important;
}

.about-wrap,
.html-topic-page .about-wrap {
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 6px 16px 70px !important;
}

.about-wrap .hero {
  text-align: center;
  padding: 26px 0 30px;
}

.about-wrap .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .14em;
  margin-bottom: 10px;
}

html[dir=rtl] .about-wrap .eyebrow {
  letter-spacing: 0;
}

.about-wrap .eyebrow::before,
.about-wrap .eyebrow::after {
  content: '';
  width: 30px;
  height: 3px;
  background: var(--red);
}

.about-wrap h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--ink);
}

.about-wrap .grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

.about-wrap .side {
  background: var(--ink);
  color: #fff;
  padding: 26px 22px;
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.about-wrap .side::after {
  content: '';
  position: absolute;
  inset-inline-end: -46px;
  top: -46px;
  width: 100px;
  height: 100px;
  background: var(--red);
  transform: rotate(45deg);
  z-index: 0;
}

.about-wrap .side > * {
  position: relative;
  z-index: 1;
}

.about-wrap .side .brand {
  font-weight: 800;
  font-size: 13px;
  color: #ff8d97;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.about-wrap .side .brand::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--red);
}

.about-wrap .side q {
  display: block;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  quotes: none;
  color: #fff;
}

.about-wrap .side p {
  margin: 16px 0 0;
  color: #c9c9cd;
  font-size: 13.5px;
  line-height: 1.7;
}

.about-wrap .card {
  background: var(--paper);
  border: 2px solid var(--line);
}

.about-wrap .card > h2 {
  margin: 0;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 800;
  background: var(--ink);
  color: #fff;
  text-align: start;
}

.about-wrap .cms {
  padding: 28px 28px 32px;
  font-size: 16px;
  line-height: 1.95;
  color: #2b2b2f;
  overflow-wrap: anywhere;
}

.about-wrap .cms > *:first-child {
  margin-top: 0;
}

.about-wrap .cms > *:last-child {
  margin-bottom: 0;
}

.about-wrap .cms p {
  margin: 0 0 20px;
}

.about-wrap .cms p.lead {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.8;
  padding-inline-start: 18px;
  border-inline-start: 4px solid var(--red);
}

.about-wrap .cms h2,
.about-wrap .cms h3 {
  margin: 30px 0 12px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.about-wrap .cms h2 {
  font-size: 23px;
}

.about-wrap .cms h3 {
  font-size: 18px;
}

.about-wrap .cms ul {
  padding-inline-start: 22px;
}

.about-wrap .cms li {
  margin-bottom: 8px;
}

.about-wrap .cms img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--line);
  display: block;
  margin: 22px 0;
}

.about-wrap .cms a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

@media(max-width:860px){
  .about-wrap h1 {
    font-size: 28px;
  }
  .about-wrap .hero {
    padding: 16px 0 22px;
  }
  .about-wrap .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-wrap .side {
    position: relative;
    top: 0;
    padding: 22px 18px;
  }
  .about-wrap .side q {
    font-size: 19px;
  }
  .about-wrap .cms {
    padding: 20px 16px 24px;
    font-size: 15.5px;
  }
  .about-wrap .cms p.lead {
    font-size: 17px;
  }
}
