/* Mandibular Advancement Device page styles
   Bootstrap 5 + AOS. All selectors are scoped under .mad-page. */

.mad-page {
  color: #58595b;
  overflow: hidden;
}

.mad-page img {
  max-width: 100%;
}
.mad-page .den-section-title {
  color: #454545;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  text-align: unset;
}
.mad-page .den-section-title span {
  color: #141b5d;
}
.mad-page .den-section-subtext {
  color: #58595b;
  font-size: 16px;
  text-align: unset;
  font-weight: 500;
  line-height: 200%;
  max-width: 900px;
  font-style: normal;
  margin: auto;
}
.mad-page .den-section-btn-cta,
.mad-page .den-section-btn-cta-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 23px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.mad-page .den-section-btn-cta {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(100deg, #141b5d -18.06%, #141b5d 149.69%);
  box-shadow: 0 10px 24px rgba(20, 27, 93, 0.18);
}
.mad-page .den-section-btn-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 27, 93, 0.25);
}
.mad-page .den-section-btn-cta-a {
  color: #141b5d;
  background: #fff;
  border: 1px solid #d6ddf0;
}
.mad-page .den-section-btn-cta-a:hover {
  color: #141b5d;
  background: #f4f7ff;
}

.mad-page .mad-hero {
  position: relative;
  padding: 26px 0 52px;
  background: radial-gradient(
      ellipse at 88% 14%,
      rgba(168, 230, 240, 0.42),
      transparent 35%
    ),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}
.mad-page .mad-hero-grid {
  padding-top: 28px;
}
.mad-page .mad-eyebrow,
.mad-page .mad-section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #141b5d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.mad-page .mad-hero .den-section-title {
  font-size: clamp(2.1rem, 3.6vw, 3.45rem);
}
.mad-page .mad-hero .den-section-subtext {
  max-width: 650px;
}
.mad-page .mad-hero-image-wrap {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 25px 70px rgba(20, 27, 93, 0.12);
}
.mad-page .mad-hero-image-wrap img {
  display: block;
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}
.mad-page .mad-image-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 4px 0;
  color: #141b5d;
  font-size: 0.82rem;
  font-weight: 700;
}
.mad-page .mad-note-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3bb273;
  box-shadow: 0 0 0 5px rgba(59, 178, 115, 0.13);
}

.mad-page .mad-section {
  position: relative;
}
.mad-page .mad-intro-section {
  background: #fff;
}
.mad-page .mad-editorial-image {
  overflow: hidden;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(135deg, #eaf6ff, #f7f0ff);
}
.mad-page .mad-editorial-image img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.mad-page .mad-airway-visuals {
  margin-top: 8px;
}
.mad-page .mad-airway-card {
  padding: 24px;
  border: 1px solid #e0e7f2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(20, 27, 93, 0.06);
}
.mad-page .mad-airway-card img {
  display: block;
  width: 100%;
  max-height: 330px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #f4f7fc;
  object-fit: contain;
}
.mad-page .mad-airway-card h3,
.mad-page .mad-info-card h3,
.mad-page .mad-process-card h3 {
  color: #141b5d;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
}
.mad-page .mad-airway-card p,
.mad-page .mad-info-card p,
.mad-page .mad-process-card p,
.mad-page .mad-price-card p {
  margin-bottom: 0;
  color: #58595b;
  font-size: 1rem;
  line-height: 1.75;
}
.mad-page .mad-airway-label {
  display: inline-block;
  margin-top: 17px;
  padding: 7px 12px;
  border-radius: 30px;
  color: #141b5d;
  background: #edf3ff;
  font-size: 0.8rem;
  font-weight: 800;
}
.mad-page .mad-inline-link {
  display: inline-block;
  margin-top: 8px;
  color: #141b5d;
  font-weight: 800;
  text-decoration: none;
}
.mad-page .mad-inline-link:hover {
  color: #141b5d;
}

.mad-page .mad-candidate-section {
  background: #fff;
}
.mad-page .mad-info-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #e0e7f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(20, 27, 93, 0.055);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mad-page .mad-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(20, 27, 93, 0.1);
}
.mad-page .mad-card-number {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #dce4f7;
  font-size: 2.2rem;
  font-weight: 800;
}
.mad-page .mad-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: #eff4ff;
}
.mad-page .mad-card-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  color: #141b5d;
}
.mad-page .mad-info-card h3 {
  max-width: 250px;
  margin-bottom: 12px;
}
.mad-page .mad-info-card a,
.mad-page .mad-cost-footnote a,
.mad-page .mad-final-cta a:not(.btn) {
  color: #141b5d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mad-page .mad-warning-signs {
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(120deg, #f0f5ff, #f9f2ff);
}
.mad-page .mad-warning-signs h3 {
  margin: 0;
  color: #141b5d;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
}
.mad-page .mad-sign-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mad-page .mad-sign-list li {
  position: relative;
  padding: 12px 14px 12px 37px;
  border: 1px solid rgba(28, 63, 198, 0.1);
  border-radius: 12px;
  color: #141b5d;
  background: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 600;
}
.mad-page .mad-sign-list li::before {
  position: absolute;
  top: 12px;
  left: 14px;
  content: "✓";
  color: #141b5d;
  font-weight: 800;
}
.mad-page .mad-honesty-note {
  padding: 22px 25px;
  border-left: 4px solid #141b5d;
  border-radius: 0 15px 15px 0;
  color: #58595b;
  background: #faf7ff;
  line-height: 1.75;
}
.mad-page .mad-honesty-note strong {
  color: #141b5d;
}
.mad-page .mad-honesty-note a {
  display: inline-block;
  margin-left: 5px;
  color: #141b5d;
  font-weight: 700;
}

.mad-page .mad-test-image {
  position: relative;
  padding: 14px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(20, 27, 93, 0.1);
}
.mad-page .mad-test-image > img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}
.mad-page .mad-test-badge {
  position: absolute;
  right: -12px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  padding: 16px 22px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(110deg, #141b5d, #141b5d);
  box-shadow: 0 12px 28px rgba(20, 27, 93, 0.2);
}
.mad-page .mad-test-badge strong {
  font-size: 1.25rem;
}
.mad-page .mad-test-badge span {
  font-size: 0.8rem;
}
.mad-page .mad-step-list {
  margin: 24px 0;
}
.mad-page .mad-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.mad-page .mad-step > span {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #141b5d;
  font-size: 0.85rem;
  font-weight: 800;
}
.mad-page .mad-step p {
  margin: 3px 0 0;
  color: #58595b;
  line-height: 1.65;
}
.mad-page .mad-price-note {
  padding: 18px;
  border-radius: 14px;
  color: #58595b;
  background: linear-gradient(120deg, rgb(240, 245, 255), rgb(249, 242, 255));
  font-size: 1rem;
  line-height: 1.75;
}
.mad-page .mad-price-note strong {
  color: #141b5d;
}

.mad-page .mad-fitting-section {
  background: #fff;
}
.mad-page .mad-process-card {
  overflow: hidden;
  padding: 14px 14px 25px;
  border: 1px solid #e0e7f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 27, 93, 0.055);
}
.mad-page .mad-process-card img {
  width: 100%;
  height: 210px;
  margin-bottom: 22px;
  border-radius: 15px;
  background: #f3f6fc;
  object-fit: cover;
}
.mad-page .mad-process-card h3,
.mad-page .mad-process-card p {
  margin-right: 10px;
  margin-left: 10px;
}
.mad-page .mad-process-card h3 {
  margin-bottom: 12px;
}

.mad-page .mad-cost-section {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}
.mad-page .mad-price-card {
  padding: 30px;
  border: 1px solid #e0e7f2;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 27, 93, 0.055);
}
.mad-page .mad-price-featured {
  border: 2px solid #141b5d;
  background: linear-gradient(155deg, #fff 0%, #f8f1ff 100%);
  box-shadow: 0 20px 45px rgba(152, 16, 250, 0.12);
  transform: translateY(-8px);
}
.mad-page .mad-price-label {
  display: inline-block;
  margin-bottom: 17px;
  color: #141b5d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mad-page .mad-price-card h3 {
  margin-bottom: 14px;
  color: #141b5d;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
}
.mad-page .mad-cost-footnote {
  color: #58595b;
  line-height: 1.8;
}

.mad-page .mad-urgent-section {
  background: #fff;
}
.mad-page .mad-urgent-alert {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid #f2b7b7;
  border-left: 5px solid #141b5d;
  border-radius: 18px;
  background: #fff7f6;
}
.mad-page .mad-urgent-symbol {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #141b5d;
  font-size: 1.5rem;
  font-weight: 800;
}
.mad-page .mad-urgent-alert h2 {
  margin-bottom: 12px;
  color: #9e2821;
  font-size: 1.35rem;
  font-weight: 800;
}
.mad-page .mad-urgent-alert p {
  color: #6e4140;
  line-height: 1.8;
}

.mad-page .mad-get-step {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid #dfe6f3;
}
.mad-page .mad-get-step > span {
  flex: 0 0 45px;
  color: #141b5d;
  font-size: 1rem;
  font-weight: 800;
}
.mad-page .mad-get-step h3 {
  margin: 0 0 5px;
  color: #141b5d;
  font-size: 1rem;
  font-weight: 800;
}
.mad-page .mad-get-step p {
  margin: 0;
  color: #58595b;
  font-size: 1rem;
  line-height: 1.65;
}
.mad-page .mad-get-visual {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #ddebfa;
  box-shadow: 0 20px 50px rgba(20, 27, 93, 0.12);
}
.mad-page .mad-get-visual > img {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}
.mad-page .mad-get-visual-content {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
}
.mad-page .mad-get-visual-content h3 {
  color: #141b5d;
  font-size: 1.25rem;
  font-weight: 800;
}
.mad-page .mad-get-visual-content p {
  margin: 0;
  color: #58595b;
  line-height: 1.7;
}
.mad-page .mad-final-cta {
  padding: 36px;
  border: 1px solid #e0e6f5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(20, 27, 93, 0.06);
}
.mad-page .mad-final-cta h3 {
  color: #141b5d;
  font-size: 1.6rem;
  font-weight: 800;
}
.mad-page .mad-final-cta p {
  max-width: 850px;
  margin: 12px auto 22px;
  color: #58595b;
  line-height: 1.8;
}

@media (max-width: 991.98px) {
  .mad-page .mad-hero {
    padding-bottom: 35px;
  }
  .mad-page .mad-hero-grid {
    padding-top: 10px;
  }
  .mad-page .mad-hero-image-wrap {
    max-width: 680px;
    margin: 10px auto 0;
  }
  .mad-page .mad-price-featured {
    transform: none;
  }
  .mad-page .mad-get-visual > img {
    min-height: 360px;
  }
}
@media (max-width: 767.98px) {
  .mad-page .den-section-subtext {
    font-size: 0.96rem;
  }
  .mad-page .mad-hero {
    padding-top: 18px;
  }
  .mad-page .mad-hero-actions .btn {
    width: 100%;
    margin-right: 0 !important;
  }
  .mad-page .mad-info-card,
  .mad-page .mad-price-card {
    padding: 23px;
  }
  .mad-page .mad-warning-signs {
    padding: 23px;
  }
  .mad-page .mad-sign-list {
    grid-template-columns: 1fr;
  }
  .mad-page .mad-test-badge {
    right: 8px;
    bottom: 22px;
  }
  .mad-page .mad-urgent-alert {
    gap: 13px;
    padding: 20px;
  }
  .mad-page .mad-urgent-symbol {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
  .mad-page .mad-get-visual > img {
    min-height: 300px;
  }
  .mad-page .mad-final-cta {
    padding: 25px 20px;
  }
  .mad-page .faq-main-bg {
    padding: 22px 15px;
    border-radius: 20px;
  }
  .mad-page .mad-faq-accordion .accordion-button {
    padding: 17px;
    font-size: 0.94rem;
  }
  .mad-page .mad-faq-accordion .accordion-body {
    padding: 0 17px 18px;
    font-size: 0.91rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mad-page *,
  .mad-page *::before,
  .mad-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.timeline-section .timeline {
  position: relative;
}
.timeline-section .timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: #ccc;
}
.timeline-section .timeline-box {
  border-radius: 16px;
  border: 1px solid #dcdcdc;
  padding: 1rem;
}
.timeline-section .timeline-item {
  position: relative;
  margin-bottom: 1rem;
}
.timeline-section .timeline-content {
  padding: 1.5rem;
}
.timeline-section .timeline-number {
  width: 48px;
  height: 48px;
  background-color: #141b5d;
  color: white;
  border-radius: 50%;
  display: flex;
  font-size: 32px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.timeline-section .timeline-icon {
  max-width: 100%;
  height: auto;
}
.timeline-section .timeline-title {
  color: #58595b;
  text-align: right;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 30px */
}
.timeline-section .timeline-title-a {
  color: #58595b;
  text-align: left;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 200%;
}
.timeline-item-right .timeline-content .timeline-title {
  text-align: left;
}
.timeline-section .timeline-week {
  color: #141b5d;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}
.timeline-section .timeline-item:last-child {
  margin-bottom: 0rem;
}
.timeline-section .timeline-box ol li {
  color: #58595b;
  font-size: 16px;
  font-style: normal;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 200%; /* 32px */
}
.timeline-box p {
  color: #58595b;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%;
}
.timeline-section .timeline-box ol li:last-child {
  margin-bottom: 0rem;
}
.timeline-section .timeline-box ol li strong {
  color: #58595b;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 200%;
}
.timeline-section {
  padding: 80px 0;
}
@media (min-width: 768px) {
  .timeline-section .timeline-item-left .timeline-content {
    margin-right: auto;
    width: 45%;
  }
  .timeline-section .timeline-item-right .timeline-content {
    margin-left: auto;
    width: 45%;
  }
}
@media (max-width: 767.98px) {
  .timeline-section .timeline::before {
    left: 20px;
  }
  .timeline-section .timeline-number {
    left: 0px;
    transform: translateY(-50%);
  }
  .timeline-section .timeline-content {
    margin-left: 30px !important;
    margin-right: 10px;
  }
  .timeline-section .timeline-title {
    text-align: left;
  }
}

/* MAD Urgent Care Section */
.den-mad-urgent-section {
  position: relative;
  overflow: hidden;
}

.den-mad-urgent-label {
  padding: 8px 16px;
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 50px;
  background: #fdedec;
  color: #141b5d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.vid-con-hero-section {
  position: relative;
  background: url(../img/24-hours-emergency-dentist/banner.webp) no-repeat
    center;
  background-size: cover;
  padding-bottom: 0px;
}
.den-mad-urgent-warning {
  padding: 22px 24px;
  border-left: 4px solid #141b5d;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(20, 27, 93, 0.08);
}

.den-mad-urgent-warning-title {
  color: #141b5d;
  font-size: 19px;
  font-weight: 700;
}

.den-mad-urgent-warning p {
  color: #58595b;
  font-size: 16px;
  line-height: 1.8;
}

.den-mad-urgent-image {
  overflow: hidden;
  border-radius: 24px;
  background: #eaf7fc;
  box-shadow: 0 18px 45px rgba(20, 27, 93, 0.12);
}

.den-mad-urgent-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.den-mad-urgent-image:hover img {
  transform: scale(1.03);
}

.den-mad-urgent-section .den-section-btn-cta {
  display: inline-block;
  padding: 13px 26px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #141b5d -18.06%, #141b5d 149.69%);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.den-mad-urgent-section .den-section-btn-cta:hover {
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(152, 16, 250, 0.22);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .den-mad-urgent-section {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .den-mad-urgent-image {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .den-mad-urgent-section .den-section-title {
    font-size: 28px;
  }

  .den-mad-urgent-section .den-section-subtext {
    font-size: 15px;
  }

  .den-mad-urgent-warning {
    padding: 18px;
  }

  .den-mad-urgent-section .den-section-btn-cta {
    width: 100%;
    text-align: center;
  }
}
