@font-face {
  font-family: "Montserrat";
  src: url("../Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

.ad-unit, .ad-unit * { box-sizing: border-box; }
.ad-unit {
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #2A2C2B;
}
.ad-unit a { text-decoration: none; color: inherit; }
.ad-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.ad-sponsored { color: #5b5d5c; }
.ad-advertise {
  color: #345EAB !important;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.ad-hit { display: block; }
.ad-headline {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #152645;
  line-height: 1.2;
}
.ad-copy {
  font-weight: 500;
  color: #5b5d5c;
  line-height: 1.35;
  margin: 0;
}
.ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 0 12px;
  height: 28px;
  background: #152645;
  color: #fff !important;
  white-space: nowrap;
}
.ad-logo { display: block; object-fit: contain; }
.ad-wordmark {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #10261a;
}

/* 300x250 */
.ad-300x250 {
  width: 300px;
  height: 250px;
  border: 1px solid #CECED1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(21, 38, 69, 0.05);
}
.ad-300x250 .ad-hit {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 6px 14px 14px;
  min-height: 0;
}
.ad-300x250 .ad-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  min-height: 36px;
}
.ad-300x250 .ad-headline { font-size: 15px; margin-bottom: 6px; }
.ad-300x250 .ad-copy { font-size: 11.5px; flex: 1 1 auto; }
.ad-300x250 .ad-cta { align-self: flex-start; margin-top: 10px; }
.ad-300x250.ad-flood .ad-logo { height: 22px; width: auto; }
.ad-300x250.ad-flood .ad-brand {
  background: #152645;
  margin: -6px -14px 10px;
  padding: 10px 14px;
  min-height: 44px;
}
.ad-300x250.ad-flood .ad-cta { background: #C84A00; }
.ad-300x250.ad-surety .ad-logo { height: 40px; width: auto; }
.ad-300x250.ad-surety .ad-wordmark { font-size: 13px; }
.ad-300x250.ad-surety .ad-cta { background: #2f6b3a; }
.ad-300x250.ad-apartment .ad-logo { height: 44px; width: auto; max-width: 220px; }
.ad-300x250.ad-apartment .ad-cta { background: #063a41; }
.ad-300x250.ad-etowah .ad-logo { height: 32px; width: auto; max-width: 180px; }
.ad-300x250.ad-etowah .ad-cta { background: #1863AB; }

/* In-page rail may be slightly narrower than 300 */
.article-rail .ad-300x250 { width: 100%; max-width: 300px; }

/* 728x90 */
.ad-728x90 {
  width: 728px;
  max-width: 100%;
  height: 90px;
  border: 1px solid #CECED1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(21, 38, 69, 0.05);
}
.ad-728x90 .ad-meta { padding: 3px 10px 0; }
.ad-728x90 .ad-hit-row {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px 8px;
  min-width: 0;
}
.ad-728x90 .ad-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.ad-728x90 .ad-text { flex: 1 1 auto; min-width: 0; }
.ad-728x90 .ad-headline { font-size: 14px; }
.ad-728x90 .ad-copy {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.ad-728x90 .ad-cta { flex: 0 0 auto; }
.ad-728x90.ad-flood .ad-logo { height: 22px; width: auto; }
.ad-728x90.ad-flood .ad-cta { background: #C84A00; }
.ad-728x90.ad-surety .ad-logo { height: 36px; width: auto; }
.ad-728x90.ad-surety .ad-wordmark { font-size: 12.5px; }
.ad-728x90.ad-surety .ad-cta { background: #2f6b3a; }
.ad-728x90.ad-apartment .ad-logo { height: 40px; width: auto; max-width: 160px; }
.ad-728x90.ad-apartment .ad-cta { background: #063a41; }
.ad-728x90.ad-etowah .ad-logo { height: 28px; width: auto; max-width: 140px; }
.ad-728x90.ad-etowah .ad-cta { background: #1863AB; }

/* Footer text-link row */
.ad-footer-text { flex: 0 0 auto;
  
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 6px 12px;
  border-top: 1px solid #ececec;
  background: #F7F7F7;
  font-size: 11.5px;
  font-weight: 500;
  width: 100%;
  height: auto;
  min-height: 32px;
}
.ad-footer-text .ad-sponsored {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 9.5px;
  font-weight: 700;
}
.ad-footer-text a { color: #152645; font-weight: 700; }
.ad-footer-text a:hover { color: #0F766E; }
.ad-footer-sep { color: #CECED1; }
.ad-footer-text .ad-advertise { margin-left: auto; font-size: 10px; }

/* Featured agency (locator) */
.ad-featured-etowah {
  padding: 8px 12px 10px !important;
}
.ad-featured-etowah .ad-meta { padding: 0 0 4px; }
.ad-featured-etowah .sponsored-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ad-featured-etowah .sponsored-logo {
  flex: 0 0 120px;
  width: 120px;
  height: 40px;
  background: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-featured-etowah .sponsored-logo img { height: 32px; width: auto; max-width: 120px; }
.ad-featured-etowah h3 { font-size: 14px; margin: 0 0 2px; color: #0B1F3B; }
.ad-featured-etowah p { font-size: 11.5px; color: #5b5d5c; margin: 0; line-height: 1.35; font-weight: 500; }
.ad-featured-etowah .ad-cta { margin-left: auto; background: #1863AB; flex: 0 0 auto; }

.ad-affiliate {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  color: #5b5d5c;
}
.ad-300x250 .ad-affiliate { margin-top: auto; padding-top: 4px; }
.ad-728x90 {
  flex-direction: column;
  flex-wrap: nowrap;
  min-height: 90px;
  height: auto;
  align-items: stretch;
  padding: 6px 10px 8px;
}
.ad-728x90 .ad-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 4px;
  flex: 0 0 auto;
}
.ad-728x90 .ad-hit-row {
  width: 100%;
  flex: 1 1 auto;
  padding: 0 2px 6px;
}
.ad-728x90 .ad-cta {
  white-space: nowrap;
  flex: 0 0 auto;
}
.ad-728x90 .ad-affiliate {
  width: 100%;
  flex: 0 0 auto;
  margin: 0;
  order: 20;
  padding: 0;
}
.ad-footer-text .ad-affiliate {
  flex-basis: 100%;
  width: 100%;
  margin: 2px 0 0;
  display: block;
}
.ad-featured-etowah .ad-affiliate { margin-top: 6px; }

/* Compact in-content quote slot — must not dominate the page */
.ad-quote {
  width: 100%;
  max-width: 720px;
  margin: 6px 0 6px;
  padding: 6px 10px 7px;
  border: 1px solid #CECED1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 38, 69, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  overflow: hidden;
}
.ad-quote .ad-meta { padding: 0 2px; }
.ad-quote .ad-affiliate { margin: 0 2px 1px; font-size: 10.5px; }
.ad-quote-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 2px 2px 2px 0;
  flex: 0 0 auto;
}
.ad-quote .ad-brand { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.ad-quote .ad-logo { height: 28px; width: auto; max-width: 140px; }
.ad-quote .ad-text { flex: 1 1 auto; min-width: 0; }
.ad-quote .ad-headline { font-size: 13.5px; margin: 0; }
.ad-quote .ad-copy {
  font-size: 11.5px;
  margin: 1px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-quote .ad-cta { flex: 0 0 auto; white-space: nowrap; }
.ad-quote.ad-flood .ad-cta { background: #C84A00; }
.ad-quote.ad-surety .ad-cta { background: #2f6b3a; }
.ad-quote.ad-apartment .ad-cta { background: #063a41; }
.ad-quote.ad-etowah .ad-cta { background: #1863AB; }

/* Compact quote card on narrow phones (390px): keep one slim unit, no overflow */
@media (max-width: 600px) {
  .ad-quote {
    max-width: 100%;
    margin: 12px 0;
    padding: 8px 10px 8px;
  }
  .ad-quote-hit {
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  .ad-quote .ad-logo { height: 24px; max-width: 120px; }
  .ad-quote .ad-text { flex: 1 1 140px; min-width: 0; }
  .ad-quote .ad-headline { font-size: 13px; }
  .ad-quote .ad-copy { display: none; }
  .ad-quote .ad-cta { height: 28px; font-size: 10px; padding: 0 10px; }
}
