/* The Daily Coding — Offline Visual Restoration, Contrast & Responsive Polish */
:root {
  --tdc-slate: #2B465A;
  --tdc-navy: #0D1133;
  --tdc-orange: #FD7E14;
  --tdc-orange-dark: #D96404;
  --tdc-muted: #5F606E;
  --tdc-bg-soft: #FAFAFA;
  --tdc-border: #E5E7EB;
  --tdc-font-sans: "Poppins", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tdc-font-sans);
  color: #1F2937;
  background-color: #FFFFFF;
  overflow-x: clip;
  padding-bottom: 92px;
}

h1, h2, h3, h4, p, li, input, button, a, label {
  font-family: var(--tdc-font-sans);
}

/* Header Bar + Section Quick Navigation */
.ml-lp-5 {
  padding-top: 22px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid #F1F3F5;
  background-color: #FFFFFF !important;
}

.tdc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tdc-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.tdc-brand-link img {
  width: 225px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.tdc-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.tdc-nav-links a {
  color: #2B465A;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.18s ease;
}

.tdc-nav-links a:hover,
.tdc-nav-links a:focus {
  color: #D96404;
  text-decoration: none;
}

.tdc-nav-links a.tdc-nav-cta {
  background: #FD7E14;
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.tdc-nav-links a.tdc-nav-cta:hover {
  background: #2B465A;
  color: #FFFFFF;
}

/* Hero Section */
.ml-lp-7 {
  padding-top: 44px !important;
  padding-bottom: 48px !important;
  background: #FFFFFF !important;
}

.ml-lp-7 h2 {
  color: #D96404 !important;
  font-size: 15px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  margin-bottom: 8px !important;
}

.ml-lp-7 h1 {
  color: #0D1133 !important;
  font-size: clamp(30px, 3.8vw, 44px) !important;
  line-height: 1.18 !important;
  text-align: left !important;
  margin-top: 4px !important;
}

.ml-lp-7 p {
  color: #4B5563 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

/* Form Pill Inputs, Clean Submit Buttons & Local Status Messages */
.ml-subscribe-form .form-control {
  border-radius: 30px !important;
  border: 1.5px solid #D1D5DB !important;
  padding: 13px 20px !important;
  font-size: 14.5px !important;
  height: auto !important;
  background-color: #FFFFFF !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.ml-subscribe-form .form-control:focus {
  border-color: #FD7E14 !important;
  box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.16) !important;
  outline: none;
}

.ml-subscribe-form .form-group.ml-error .form-control {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

.ml-lp-7 .button-block .btn-block,
.ml-lp-113 .button-block .btn-block {
  border-radius: 30px !important;
  padding: 13px 34px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  background-color: #FD7E14 !important;
  border: 2px solid #D96404 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  width: auto !important;
  min-width: 180px;
}

.ml-lp-7 .button-block .btn-block:hover,
.ml-lp-7 .button-block .btn-block:focus,
.ml-lp-113 .button-block .btn-block:hover,
.ml-lp-113 .button-block .btn-block:focus {
  background-color: #2B465A !important;
  border-color: #2B465A !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.tdc-form-feedback {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #DC2626;
  display: none;
}

.tdc-form-feedback.is-visible {
  display: block;
}

/* Feature Columns (Concept Explanation / Quiz / Relevant Links) */
.ml-lp-20 {
  padding-top: 52px !important;
  padding-bottom: 18px !important;
}

.ml-lp-20 h1 {
  font-size: clamp(28px, 3.4vw, 38px) !important;
  color: #0D1133 !important;
}

.ml-lp-22 {
  padding-bottom: 52px !important;
}

.ml-lp-22 .row > [class*="col-md-4"] > div {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 26px 24px;
  height: 100%;
  box-shadow: 0 6px 20px rgba(13, 17, 51, 0.04);
}

.ml-lp-22 h1 {
  font-size: 21px !important;
  line-height: 1.3 !important;
  color: #0D1133 !important;
}

.ml-lp-22 .card-image-spacing img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
}

/* Email Preview Card & Sample Visuals */
.ml-lp-29 h1 {
  font-size: clamp(28px, 3.4vw, 38px) !important;
  color: #0D1133 !important;
}

.ml-lp-33 h2 {
  color: #D96404 !important;
  font-size: 15px !important;
  letter-spacing: 0.1em;
}

.ml-lp-33 h1 {
  font-size: clamp(26px, 3vw, 34px) !important;
  color: #0D1133 !important;
  margin-bottom: 12px !important;
}

.ml-lp-33 .col-sm-12,
.ml-lp-35 .d-inline-block,
.ml-lp-37 .d-inline-block {
  max-width: 820px !important;
  width: 100% !important;
}

.ml-lp-35 img,
.ml-lp-37 img {
  width: 100% !important;
  max-width: 820px !important;
  height: auto !important;
  border-radius: 14px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(13, 17, 51, 0.09);
}

/* Interactive Recursion Quiz Carousel */
.ml-lp-39 {
  padding-top: 22px !important;
  padding-bottom: 52px !important;
}

.ml-lp-39 .ml-survey {
  max-width: 760px !important;
  background: #FFFBF7;
  border: 1px solid #F4D8BE;
  border-radius: 16px;
  padding: 32px 28px !important;
  box-shadow: 0 10px 28px rgba(253, 126, 20, 0.08);
}

.ml-survey h1 {
  font-size: clamp(22px, 2.5vw, 28px) !important;
  line-height: 1.35 !important;
  color: #0D1133 !important;
}

.ml-survey .ml-carousel {
  overflow: hidden;
  width: 100%;
}

.ml-survey .ml-carousel-car {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  transition: transform 0.35s ease, margin 0.35s ease;
  width: 100%;
}

.ml-survey .ml-carousel-item {
  flex: 0 0 100%;
  width: 100% !important;
  min-width: 100%;
  white-space: normal;
  padding: 6px 4px;
}

.ml-survey .btn-action {
  background-color: #FD7E14 !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  border: 0 !important;
}

.ml-survey .btn-action:hover {
  background-color: #2B465A !important;
  color: #FFFFFF !important;
}

.ml-survey .btn-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 18px auto 6px;
}

.ml-survey .multiple-choice-item {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ml-survey .multiple-choice-item > a.btn-click {
  display: block;
  width: 100%;
  text-align: left;
  background: #FFFFFF !important;
  border: 1.5px solid #D1D5DB !important;
  border-radius: 12px !important;
  padding: 13px 16px !important;
  color: #1F2937 !important;
  font-weight: 600 !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.ml-survey .multiple-choice-item > a.btn-click:hover {
  border-color: #FD7E14 !important;
  background: #FFF7ED !important;
}

.ml-survey .multiple-choice-item.is-selected > a.btn-click {
  border-color: #2B465A !important;
  background: #EEF2F6 !important;
}

.ml-survey .custom-control-label {
  cursor: pointer;
  color: #1F2937 !important;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0 !important;
}

.ml-survey .custom-control {
  padding-left: 0 !important;
}

.ml-survey .custom-control-label::before,
.ml-survey .custom-control-label::after {
  display: none !important;
}

.ml-survey .custom-control-input {
  position: static !important;
  opacity: 1 !important;
  margin: 0 !important;
  width: 16px;
  height: 16px;
  accent-color: #FD7E14;
}

.ml-survey-quiz_mode-results .quiz-choice-correct {
  background: #ECFDF5 !important;
  border-color: #16A34A !important;
  color: #166534 !important;
}

.ml-survey-quiz_mode-results .quiz-choice-wrong {
  background: #FEF2F2 !important;
  border-color: #DC2626 !important;
  color: #991B1B !important;
}

/* 8-Week Study Guide */
.ml-lp-49 h1 {
  font-size: clamp(28px, 3.4vw, 38px) !important;
  color: #0D1133 !important;
}

.table-bordered.not-last {
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 14px rgba(13, 17, 51, 0.04);
}

.table-bordered .time {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #2B465A !important;
  background-color: #FFF7ED;
  padding: 24px 18px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-bottom: none !important;
}

.table-bordered .event-cell {
  padding: 24px 28px !important;
  border-bottom: none !important;
  border-right: none !important;
}

.table-bordered .event-cell h1 {
  font-size: 22px !important;
  line-height: 1.3 !important;
  color: #0D1133 !important;
}

/* FAQ Cards */
.ml-lp-101 {
  display: none !important;
}

.ml-lp-103 h1 {
  font-size: clamp(28px, 3.4vw, 38px) !important;
  color: #0D1133 !important;
}

.ml-lp-105,
.ml-lp-107,
.ml-lp-109 {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.ml-lp-105 .col-sm-12,
.ml-lp-107 .col-sm-12,
.ml-lp-109 .col-sm-12 {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px 28px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(13, 17, 51, 0.03);
}

.ml-lp-105 p,
.ml-lp-107 p,
.ml-lp-109 p {
  text-align: left !important;
  color: #4B5563 !important;
  font-size: 15.5px !important;
  line-height: 1.68 !important;
}

/* Bottom CTA & Minimal Offline Footer */
.ml-lp-113 {
  padding-top: 52px !important;
  padding-bottom: 52px !important;
  background: #FFFFFF !important;
  border-top: 1px solid #F1F3F5;
}

.ml-lp-113 h1 {
  font-size: clamp(28px, 3.4vw, 36px) !important;
  text-align: left !important;
}

.tdc-footer {
  background: #2B465A;
  color: #E2E8F0;
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
}

.tdc-footer p {
  margin: 0;
  color: #E2E8F0;
}

.tdc-footer a {
  color: #FDBA74;
  text-decoration: underline;
}

/* Product Hunt Fixed Pill */
.editor-html-code > div[style*="position:fixed"] {
  pointer-events: none;
  bottom: 12px !important;
}

.editor-html-code > div[style*="position:fixed"] a {
  pointer-events: auto;
  display: inline-block;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  background: #FFFFFF;
}

/* Thank You Confirmation Screen (.row-success) */
.tdc-success-shell .ml-lp-127,
.tdc-success-shell .ml-lp-129,
.tdc-success-shell .ml-lp-131,
.tdc-success-shell .ml-lp-133 {
  background-color: #FAFAFA;
}

.tdc-success-shell h2 {
  color: #D96404 !important;
  font-size: 15px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdc-success-shell h1 {
  color: #0D1133 !important;
  font-size: clamp(32px, 4vw, 44px) !important;
}

.tdc-success-email-note {
  margin: 14px 0 0;
  text-align: center;
  font-weight: 600;
  color: #2B465A;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .ml-lp-5 {
    padding-top: 14px !important;
    padding-bottom: 12px !important;
  }

  .tdc-topbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .tdc-brand-link img {
    width: 186px !important;
  }

  .tdc-nav-links {
    justify-content: center;
    gap: 12px;
  }

  .tdc-nav-links a {
    font-size: 13.5px;
  }

  .ml-lp-7 {
    padding-top: 22px !important;
    padding-bottom: 36px !important;
  }

  .ml-lp-7 img {
    max-height: 205px;
    width: auto !important;
    margin: 0 auto 10px !important;
  }

  .ml-lp-7 h1,
  .ml-lp-113 h1 {
    text-align: center !important;
  }

  .ml-lp-7 h2 {
    text-align: center !important;
  }

  .ml-lp-7 .button-block .btn-block,
  .ml-lp-113 .button-block .btn-block {
    width: 100% !important;
  }

  .editor-html-code > div[style*="position:fixed"] img {
    width: 210px !important;
    height: auto !important;
  }

  .table-bordered .time {
    width: 100% !important;
    padding: 14px 16px !important;
    border-right: none !important;
  }

  .table-bordered .event-cell {
    width: 100% !important;
    padding: 18px 20px !important;
  }

  .ml-lp-105 .col-sm-12,
  .ml-lp-107 .col-sm-12,
  .ml-lp-109 .col-sm-12 {
    padding: 20px 18px;
  }

  .ml-lp-39 .ml-survey {
    padding: 22px 16px !important;
  }

  body {
    padding-bottom: 84px;
  }
}
