/* ==========================================================
   Advertorial listicle theme (Lato body / Roboto Slab headings)
   Colors: blue #2083e8, red CTA #f31200, badge #CC0C39
   ========================================================== */
@import url("fonts.css");

:root {
  --blue: #2083e8;
  --blue-link: #2d9cdb;
  --red: #f31200;
  --red-dark: #c40202;
  --badge: #CC0C39;
  --text: #333;
  --muted: #a4a4a4;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-link); }

h1, h2, h3, h4, h5 {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
  margin: 0 0 .5rem;
}
h1 { font-size: 46px; letter-spacing: -1px; line-height: 1.15; }
h2 { font-size: 24px; line-height: 32px; margin-bottom: 5px; }
p, ul { font-size: 19px; line-height: 30px; margin: 20px 0; }
ul { padding-left: 1.4em; }
b, strong { font-weight: 700; }

.container { width: 95%; max-width: 860px; margin: 0 auto; }

/* header */
#header-bg { background-color: #fff; width: 100%; height: 50px; position: absolute; top: 0; left: 0; }
#header-with-logo { position: relative; margin-top: 8px; padding: 6px 0; }
#header-with-logo img { width: auto; max-height: 60px; }
.text-logo {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700; font-size: 26px; letter-spacing: -.5px;
  color: #111; text-decoration: none; display: inline-block; line-height: 60px;
}
.text-logo span { color: var(--blue); }

/* article head */
.page-content { background-color: #fff; padding: 20px; margin-top: 20px; }
.category {
  font-size: 16px; text-align: center; line-height: 25px; height: 25px; margin-bottom: 5px;
  background-color: var(--blue); text-transform: uppercase; color: #fff;
  display: inline-block; padding: 0 15px; border-radius: 4px;
}
#todays_date { margin: 10px 0 20px; color: var(--muted); font-size: 80%; }
#todays_date img { width: 32px; height: 32px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.author { color: var(--text); font-weight: 700; }
#open-modal { text-transform: uppercase; font-size: 80%; cursor: pointer; }
.cover img { width: 100%; border-radius: 4px; }
#intro strong { font-size: 21px; line-height: 1.4; display: block; margin-top: 20px; }

/* list items */
.list-content { padding: 0; }
.list_item { background-color: #fff; padding: 20px; margin: 4px 0; }
.list_item hr { border: 0; border-top: 3px dotted #edeef0; margin: 0 0 2rem; }
.list_number { color: #fff; background-color: #000; padding: 4px 8px; font-size: 80%; margin-right: 6px; }
.off_header a.learnmore { color: inherit; text-decoration: none; }

.off-creative {
  border-radius: .5rem; overflow: hidden; position: relative; margin: 10px 0 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}
.off-creative img, .off-creative video { width: 100%; display: block; }
.gradient {
  width: 100%; height: 100%; position: absolute; top: 0; left: 0;
  background: linear-gradient(to bottom right, #000 0%, rgba(0,0,0,.45) 30%, transparent 50%);
}
.star-wrapper { position: absolute; left: 2rem; top: 2rem; color: #fff; line-height: 30px; font-size: 16px; }
.star-row { display: flex; align-items: center; gap: 10px; }
.stars { display: flex; gap: 5px; }
.star { width: 15px; height: 15px; position: relative; }
.star::before, .star::after {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star::before { background: #ddd; }
.star::after { background: linear-gradient(to right, gold var(--fill, 100%), transparent var(--fill, 100%)); }
.red-discount {
  background-color: var(--badge); color: #fff; border-radius: 2px;
  padding: 3px 6px; font-size: 16px; font-weight: 600;
}
@media (max-width: 640px) {
  .star-wrapper { left: 1rem; top: 1rem; font-size: 14px; line-height: 25px; }
  .star { width: 13px; height: 13px; }
  .red-discount { font-size: 14px; }
}

/* CTA */
.cta-senior { font-weight: 700; line-height: 40px; font-size: 20px; }
.cta-senior a { text-decoration: underline; }
.cta { clear: both; width: 100%; margin-top: 25px; }
.cta a {
  color: #fff; width: 100%; padding: .4em; font-size: 1.6em; display: inline-block; line-height: 1.4em;
  text-decoration: none; text-align: center; transition: all .2s linear; cursor: pointer;
  background-color: var(--red); border: 1px solid red; border-bottom: 8px solid var(--red-dark); border-radius: 10px;
}
.cta a:hover { box-shadow: inset 0 0 20px #fff; }
.low_inventory_message { margin-top: 12px; width: 100%; background-color: #ff7500; color: #fff; text-align: center; padding: 5px 0; }
.highlight {
  border-radius: 1em 0 1em 0;
  background-image: linear-gradient(-100deg, rgba(255,224,0,.3), rgba(255,224,0,.7) 95%, rgba(255,224,0,.1));
}
.qbox { margin: 20px 0; padding: 20px; background-color: #edf9ff; font-size: 20px; border: 2px solid #e15d3a; color: #000; }
.qbox.dashed { border-style: dashed; }

/* footer */
footer { padding: 40px 0; font-size: 85%; text-align: center; }
footer p, footer span { font-size: 85%; }
.text-muted { color: #6c757d; }
.list-inline { list-style: none; padding: 0; margin: 10px 0; }
.list-inline li { display: inline-block; margin: 0 8px; }

/* disclosure modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 1000; }
.modal {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; padding: 20px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto;
  border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,.2); z-index: 1001;
}
.modal-content { font-family: Arial, sans-serif; font-size: 12px; line-height: 1.4; color: #666; }
.modal-content h2 { font-size: 16px; margin-top: 0; color: #555; font-family: Arial, sans-serif; }
.modal-content p { font-size: 12px; line-height: 1.5; margin: 10px 0; }
.close-btn { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 18px; color: #666; cursor: pointer; }

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  #header-with-logo { text-align: center; }
  .page-content, .list_item { padding: 12px; }
}
@media (max-width: 700px) { h1 { font-size: 28px; } }
@media (max-width: 480px) {
  h1 { font-size: 26px; }
  h2 { font-size: 20px; line-height: 27px; }
  p, ul { font-size: 17px; line-height: 27px; margin: 14px 0; }
  .cta a { font-size: 1.2em; line-height: 1.35em; padding: .5em .6em; }
  .cta-senior { font-size: 17px; line-height: 30px; }
  .category { font-size: 14px; }
  .text-logo { font-size: 22px; line-height: 50px; }
  .off-creative { margin: 8px 0 14px; }
  .star-wrapper { font-size: 12px; line-height: 22px; left: .75rem; top: .75rem; }
  .star { width: 11px; height: 11px; }
  .red-discount { font-size: 12px; padding: 2px 5px; }
  footer { padding: 24px 0; }
  .list-inline li { display: block; margin: 6px 0; }
}
/* touch targets */
.cta a, .cta-senior a { -webkit-tap-highlight-color: rgba(0,0,0,.1); }
video { max-width: 100%; height: auto; }
