/* Prescribed Fire page content styles */

main {
  margin: 0 auto 1rem auto !important;
}

#main-content {
  background: ghostwhite;
  color: #1f2937;
}

.resource-content .no-wrap {
  white-space: nowrap;
}

.content-section {
  padding: 0 20px;
}

.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0);
}

.carousel-caption .eyebrow {
  background: #ffffff;
  color: #003b5c;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-size: clamp(0.54rem, 0.51rem + 0.15vw, 0.6rem);
}

.carousel-caption-content h1 {
  margin: 10px 0 16px;
  font-size: clamp(1.425rem, 1.05rem + 1.5vw, 1.65rem);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.carousel-caption-content .lead {
  margin-bottom: 16px;
  font-size: clamp(0.75rem, 0.675rem + 0.45vw, 0.8625rem);
  font-weight: 600;
  line-height: 1.8;
}

.carousel-caption-content p {
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
}

.carousel-caption-content {
  max-width: 960px;
  padding: 26px 32px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  text-align: left;
  margin: 0 auto;
}

.carousel-caption h1,
.carousel-caption p {
  color: #ffffff;
}

.image-credit {
  position: absolute;
  bottom: 0px;
  right: 2px;
  font-size: 0.75rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  z-index: 1;
}

/* Intro / hero section */
.intro-section {
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px 20px;
  color: #ffffff;
  background-image: url("/eh/images/safety/prescribe-fire/intro-background.png");
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
}

.intro-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.intro-section .content-wrap {
  position: relative;
  z-index: 1;
  max-width: 1020px;
  padding: 32px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
}

.intro-section h1,
.intro-section p {
  color: #ffffff !important;
}

.intro-section h1 {
  margin: 10px 0 16px;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.2rem);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.intro-section .lead {
  margin-bottom: 16px;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.8;
}

.intro-section p {
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  background: #005b8f;
  color: #ffffff;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-section .eyebrow {
  background: #ffffff;
  color: #003b5c !important;
}

.info-list {
  margin: 18px 0 0;
  padding: 18px 20px;
  list-style: none;
  background: linear-gradient(to bottom right, #f8fbfd 0%, #eef5f9 100%);
  border: 1px solid #dbe4ea;
  border-left: 5px solid #005b8f;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.info-list li {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 0 34px;
  color: #1f2937;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
  line-height: 1.7;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.info-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #005b8f;
  transform: translateY(-50%);
  animation: pulse-ring 2.2s infinite ease-out;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 91, 143, 0.45);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 91, 143, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 91, 143, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-list li::before {
    animation: none;
  }
}

.other-sections h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(0.4em, 1vw, 0.75em) clamp(0.75em, 2vw, 1.25em);
  background: #005b8f;
  color: #fff;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
  font-size: clamp(1.08rem, 2.13vw, 1.71rem);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.other-sections h2 i {
  flex-shrink: 0;
  font-size: 0.9em;
}

.other-sections>p,
.other-sections>div {
  border-radius: 6px;
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
  line-height: 1.6;
  background: #fff;
}

.other-sections strong {
  color: #003b5c;
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto 25px auto;
  padding: 30px 60px;
  background: #eef5f9;
  border: 1px solid #dbe4ea;
  border-radius: 10px;
  width: fit-content;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe4ea;
  color: #003b5c;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.social-links i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #005b8f;
  color: #ffffff;
  font-size: 0.75rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-links a:hover,
.social-links a:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  background: #005b8f;
  color: #ffffff;
}

.social-links a:hover i,
.social-links a:focus i {
  background: #ffffff;
  color: #005b8f;
  transform: scale(1.15) rotate(5deg);
}

/* Inline links */
.watch-duty-link {
  display: inline-block;
  margin-left: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef6fb;
  border: 1px solid #cfe0eb;
  color: #005b8f;
  font-weight: 600;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.watch-duty-link:hover,
.watch-duty-link:focus {
  background: #005b8f;
  color: #ffffff;
}

.mask-badge {
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
  background: #005b8f;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: 0.03em;
}

.cert-badge {
  display: inline-block;
  padding: 2px 3px;
  border-radius: 4px;
  background: #f3f8fb;
  border: 1px solid #c9dce8;
  color: #003b5c;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Resource section */
.resource-section {
  margin-top: 10px;
}

.resources-wrap {
  padding: clamp(1rem, 3vw, 1.6rem);
  border-radius: 6px;
  box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
  background: #ffffff;
}

.resources-intro {
  margin: 0 0 22px;
  color: #334155;
  line-height: 1.7;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid #dbe4ea;
  border-radius: 14px;
  background: linear-gradient(to bottom right, #ffffff 0%, #f5fbff 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.resource-card:hover,
.resource-card:focus {
  transform: translateY(-3px);
  border-color: #bfd5e3;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
  background: linear-gradient(to bottom right, #fafdff 0%, #eef7fc 100%);
  outline: none;
}

.resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  background: #005b8f;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 6px 14px rgba(0, 91, 143, 0.15);
}

.resource-content h3 {
  margin: 0 0 8px;
  color: #003b5c;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.35;
}

.resource-content p {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.7;
  font-size: clamp(0.96rem, 0.93rem + 0.18vw, 1rem);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #005b8f;
  font-weight: 700;
  font-size: clamp(0.92rem, 0.9rem + 0.15vw, 0.98rem);
  transition: gap 0.2s ease, color 0.2s ease;
}

.resource-card:hover .resource-link,
.resource-card:focus .resource-link {
  gap: 12px;
  color: #003b5c;
}

/* Responsive */
@media (max-width: 1000px) {
  .content-section {
    padding: 1px 16px;
  }

  .intro-section {
    padding: 26px 16px;
  }

  .intro-section .content-wrap {
    padding: 22px 18px;
  }

  .intro-section .lead,
  .intro-section p {
    line-height: 1.7;
  }

  .social-links {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }

  .social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .social-links a {
    flex: 1 1 120px;
    max-width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }

  .resource-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .resource-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 1rem;
  }

  .carousel-caption-content {
    padding: 15px;
  }
}

@media (max-width: 900px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .carousel-caption {
    padding: 10px;
  }

  .carousel-caption-content {
    padding: 13px 10px;
    border-radius: 10px;
    max-width: 100%;
  }

  .carousel-caption .eyebrow {
    font-size: 0.5rem !important;
  }

  .carousel-caption-content h1 {
    font-size: 1.2rem;
    margin: 6px 0 10px;
  }
}

@media (max-width: 770px) {
  .carousel-caption .eyebrow {
    display: none;
  }

  .carousel-caption-content h1 {
    font-size: 1.2rem;
    margin: 6px 0 6px;
  }

  .carousel-caption-content .lead {
    font-size: 0.75rem;
  }
}

@media (max-width: 570px) {
  .image-credit {
    top: 6px;
    right: 8px;
    bottom: auto;
    font-size: 0.7rem;
  }
}

@media (max-width: 550px) {
  .carousel-caption-content h1 {
    font-size: 1.05rem;
    margin: 16px 0 6px;
  }
}

@media (max-width: 520px) {
  .carousel-caption-content h1 {
    font-size: 0.95rem;
  }

  .carousel-caption-content .lead {
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0;
  }

  .image-credit {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .carousel-caption {
    padding: 10px 0;
    margin: 0;
  }

  .carousel-caption-content {
    padding: 13px 10px;
    border-radius: 0px;
  }

  .carousel-caption-content h1 {
    font-size: 0.85rem;
    margin: 6px 0 6px;
  }

  .carousel-caption-content .lead {
    font-size: 0.65rem;
    font-weight: 500;
    margin-bottom: 0;
  }

  .carousel-item img {
    height: 128px;
  }

  .content-section {
    padding: 2px 0;
  }

  .cert-badge {
    white-space: unset;
  }

  .other-sections>p,
  .other-sections>div {
    line-height: 1.4;
  }

  .info-list li {
    line-height: 1.4;
    padding: 0 0 0 22px;
  }
}

@media (max-width: 270px) {
  .carousel-caption-content h1 {
    font-size: 0.75rem;
  }

  .carousel-caption-content .lead {
    font-size: 0.6rem;
    line-height: 1.1;
  }

  .image-credit {
    font-size: 0.55rem;
  }
}