/* =========================================================
   Extras.css (Bootstrap 5 aligned)
   Notes:
   - Replaces legacy .panel styles with Bootstrap 5 .card / .accordion friendly styles.
   - Keeps your custom “visual” classes (quote boxes, polaroids, list icons, full-width, etc.)
   - Avoids Bootstrap 3/4 vendor prefixes and deprecated patterns.
   ========================================================= */

/* =========================================================
   ANIMATIONS
   ========================================================= */

.fade-in,
.fade-in-text,
.fade-in-image {
  animation: fadeIn 5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   FIGURES & CAPTIONS
   ========================================================= */

figure { margin: 0; }

figcaption {
  text-align: center;
  font-size: 0.8em;
  margin-top: 5px;
}

/* =========================================================
   IMAGE ALIGNMENT & STYLES
   ========================================================= */

/* Prefer Bootstrap 5 utilities: float-start / float-end / mx-auto d-block.
   Keep these for content portability and editor friendliness. */
.align-left {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

.align-right {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

.align-center {
  text-align: center;
}

.align-center > figure {
  display: inline-block;
}

/* If you still use .float-left/.float-right in content, keep them.
   Otherwise, replace with BS5: .float-start / .float-end. */
.float-left { margin: 15px 20px 5px 0; }
.float-right { margin: 15px 0 5px 10px; }

/* Image drop shadow */
.imagedropshadow {
  padding: 5px;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 5px #999;
}

/* Rounded variants */
.round-corners { border-radius: 50%; }
.rounded-corners { border-radius: 30px; }

/* Polaroid styles (kept) */
.polaroid {
  border: 0;
  border-radius: 0;
  position: relative;
  background: #f7f7f7;
  box-shadow: 1px 1px 0 #eee;
}

figure.polaroid { padding: 20px 20px 40px 20px; }

.polaroid > figcaption {
  color: #777;
  margin-top: 5px;
  font-size: 0.8em;
  text-align: center;
}

img.polaroid {
  border: 20px solid #f7f7f7;
  border-width: 20px 20px 40px 20px;
}

/* “Polaroid tilt” variants */
.polarizedL,
.polarizedR {
  border: 0;
  border-radius: 0;
  position: relative;
  background: #f7f7f7;
  box-shadow: 1px 1px 0 #eee;
}

.polarizedL { transform: rotate(-5deg); transform-origin: bottom left; }
.polarizedR { transform: rotate(5deg);  transform-origin: bottom left; }

figure.polarizedL,
figure.polarizedR { padding: 20px 20px 40px 20px; }

.polarizedL > figcaption,
.polarizedR > figcaption {
  color: #777;
  margin-top: 5px;
  font-size: 0.8em;
  font-style: italic;
  text-align: right;
}

.polarizedL figcaption:before,
.polarizedR figcaption:before { content: "- "; }

/* =========================================================
   BOOTSTRAP 5 REPLACEMENTS FOR “PANELS”
   ========================================================= */

/*
Bootstrap 3: .panel / .panel-heading / .panel-body / .panel-footer
Bootstrap 5: .card (.card-header, .card-body, .card-footer) OR .accordion

Migration strategy:
- If your content uses .panel markup, keep compatibility styles for now.
- For new sites, prefer using .card and .accordion.
*/

/* --- Compatibility: map .panel to behave like a Bootstrap 5 card --- */
.panel {
  margin-bottom: 1.25rem;        /* ~20px */
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: 0.375rem;       /* matches BS5 default radius */
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075); /* subtle, closer to BS5 */
  overflow: hidden;
}

.panel-heading {
  padding: 0.75rem 1rem;
  background-color: rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.125);
}

.panel-body { padding: 1rem; }

.panel-body p { font-size: 1.2em; }

.panel-footer {
  padding: 0.75rem 1rem;
  background-color: rgba(0,0,0,.03);
  border-top: 1px solid rgba(0,0,0,.125);
}

/* Title/link behavior */
.panel-title {
  margin: 0;
  font-size: 1.25rem;
  color: #6c757d; /* BS5 “secondary” */
}

.panel-title a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Collapse icon (Bootstrap 5 doesn’t ship glyphicons; this assumes Font Awesome is present) */
.panel-title a[data-bs-toggle="collapse"]::after,
.panel-title a[data-toggle="collapse"]::after { /* allow old data-toggle too */
  font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro", FontAwesome;
  content: "\f067"; /* plus */
  float: right;
  color: silver;
}

.panel-title a[aria-expanded="true"]::after {
  content: "\f068"; /* minus */
}

/* --- Preferred (new sites): tweak cards minimally (optional) --- */
/* If you want ALL cards a little “panel-like”, uncomment.
.card { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075); }
*/

/* =========================================================
   BLOCKQUOTES
   ========================================================= */

blockquote.centerBQ {
  text-align: center;
  display: block;
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
  padding: 1.5em 0 0.5em;
  margin: 1.5em 0;
  position: relative;
  background: #fff;
}

blockquote.centerBQ::before {
  content: "“";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 3rem;
  height: 2rem;
  font-size: 6em;
  line-height: 1.08em;
  color: #666;
}

blockquote.centerBQ::after {
  content: attr(cite);
  display: block;
  text-align: center;
  padding-right: 10px;
  font-size: 0.875em;
  margin-top: 0.5rem;
}

blockquote.rightBQ {
  background: #f9f9f9;
  border-left: 0;
  margin: 0.5em 0 2em 0.5em;
  padding: 1em;
  line-height: 1.5;
}

/* =========================================================
   FULL WIDTH WRAPPERS
   ========================================================= */

.full-width {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
}

/* Negative top padding helpers (kept) */
.notoppadding { margin-top: -20px; }
.notoppadding4img { margin-top: -40px; }

/* =========================================================
   LIST STYLES (Font Awesome)
   ========================================================= */

/* Reset list styles for custom icon lists */
.arrowbox ul,
.heart ul,
.star ul,
.check ul,
.checkbox ul,
.arrow ul,
.arrowcircle ul,
.apple ul,
.gavel ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.arrowbox li,
.heart li,
.star li,
.check li,
.checkbox li,
.arrow li,
.arrowcircle li,
.apple li,
.gavel li {
  list-style: none;
  padding-left: 1.3em;
  position: relative;
}

/* Each list type sets its own icon */
.heart li::before {
  content: "\f004";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
}

.star li::before {
  content: "\f005";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
}

.check li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
}

.checkbox li::before {
  content: "\f14a";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
}

.arrow li::before {
  content: "\f061";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
}

.arrowbox li::before {
  content: "\f33b";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
}

.arrowcircle li::before {
  content: "\f0a9";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
}

.apple li::before {
  content: "\f5d1";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
}

.gavel li::before {
  content: "\f0e3";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
}

/* Timeline list (kept; consider converting to BS5 utilities later) */
ul.timeline {
  list-style-type: none;
  position: relative;
  padding-left: 0;
}

ul.timeline::before {
  content: "";
  background: #3a3a3c;
  display: inline-block;
  position: absolute;
  left: 29px;
  width: 2px;
  height: 100%;
  z-index: 1;
}

ul.timeline > li {
  list-style: none;
  margin: 20px 0;
  padding-left: 20px;
  position: relative;
}

ul.timeline > li::before {
  content: "";
  background: white;
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 2;
}

/* =========================================================
   NUMBERED LISTS
   ========================================================= */

ol.number-list {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
  margin-left: 0;
}

ol.number-list li {
  counter-increment: step;
  margin-left: 4em;
  text-indent: -2em;
  margin-bottom: 10px;
}

ol.number-list li::before {
  content: counter(step);
  margin-right: 5px;
  font-size: 80%;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
}

/* “Lined list” (kept) */
ol.lined-list {
  list-style-type: none;
  margin: 0 0 0 3em;
  padding: 0;
  counter-reset: li-counter;
}

ol.lined-list > li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 0.8em;
  min-height: 3em;
  border-left: 2px solid #ccc;
}

ol.lined-list > li::before {
  position: absolute;
  top: 0;
  left: -1em;
  width: 0.8em;
  font-size: 3em;
  line-height: 1;
  font-weight: 700;
  text-align: right;
  content: counter(li-counter);
  counter-increment: li-counter;
}

/* =========================================================
   QUOTE BOXES (Q11 / Q12)
   ========================================================= */

.q11,
.q12 {
  border: 1px solid silver;
  padding: 1em;
  margin: 1.5em auto;
  background: linear-gradient(to bottom, #e9ecef 0%, #d8dde2 100%);
}

.q11 { width: 95%; }
.q12 { width: 80%; }

/* =========================================================
   MISC
   ========================================================= */

cite {
  font-style: normal;
  font-size: 1.2em;
  font-weight: 700;
}
