/************************************************/
/* Tiny portrait phones (like iPhone SE, 320px) */


/* =======================
   Font Scaling by Screen Width
   ======================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 14px; /* Very small screens */
}

@media (min-width: 400px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 576px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 17px;
  }
}

@media (min-width: 1400px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 2100px) {
  html {
    font-size: 19px;
  }
}

/* =======================
   General Layout and Typography
   ======================= */

html {
  height: 100%;
  width: 100%;
  margin: 0 0;
  padding: 0 0;
  /* overflow-x: hidden; */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Roboto', 'Sans-Serif';
  color: white;
  margin: 0;
  padding: 0;
  line-height: 150%;
  letter-spacing: +0.005em;
}

/*
#page-wrapper {
  max-width: 1140px;
  width: 100%;
  display: flex;
  flex-direction: column;  
  justify-content: center;

  margin: 0 auto;
}
*/
/*
body > * {
  outline: 1px dashed blue;
}
*/

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Jost', 'Sans-Serif';
  color: black;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem; 
  font-weight: 700;
  line-height: 110%;
  letter-spacing: -0.020em;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 110%;
  letter-spacing: -0.020em;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.015em;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.005em;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0em;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 150%;
}

/* =======================
   Utility Spacing
   ======================= */

/* Use these classes for spacing between sections */
.section {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.section-small {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Margin Top */
.mt-1rem { margin-top: 1rem; }
.mt-2rem { margin-top: 2rem; }
.mt-3rem { margin-top: 3rem; }
.mt-4rem { margin-top: 4rem; }
.mt-5rem { margin-top: 5rem; }

/* Margin Bottom */
.mb-1rem { margin-bottom: 1rem; }
.mb-2rem { margin-bottom: 2rem; }
.mb-3rem { margin-bottom: 3rem; }
.mb-4rem { margin-bottom: 4rem; }
.mb-5rem { margin-bottom: 5rem; }

/* Margin Left */
.ml-1rem { margin-left: 1rem; }
.ml-2rem { margin-left: 2rem; }
.ml-3rem { margin-left: 3rem; }

/* Margin Right */
.mr-1rem { margin-right: 1rem; }
.mr-2rem { margin-right: 2rem; }
.mr-3rem { margin-right: 3rem; }

/* Padding Top */
.pt-1rem { padding-top: 1rem; }
.pt-2rem { padding-top: 2rem; }
.pt-3rem { padding-top: 3rem; }
.pt-6rem { padding-top: 6rem; }

/* Padding Bottom */
.pb-1rem { padding-bottom: 1rem; }
.pb-2rem { padding-bottom: 2rem; }
.pb-3rem { padding-bottom: 3rem; }

/* Padding Horizontal (Left + Right) */
.px-1rem { padding-left: 1rem; padding-right: 1rem; }
.px-2rem { padding-left: 2rem; padding-right: 2rem; }

/* Padding Vertical (Top + Bottom) */
.py-1rem { padding-top: 1rem; padding-bottom: 1rem; }
.py-2rem { padding-top: 2rem; padding-bottom: 2rem; }

/*
How to use these classes in HTML

<div class="mt-3rem mb-2rem px-1rem">
  <h2 class="mb-1rem">Section Title</h2>
  <p>Content here</p>
</div>

*/


/* This first rule styles the link in ALL its states.
   It's a great place to set properties that don't change,
   like removing the underline and adding a transition. */
a {
  font-weight: bold; 
  color: #cc0000;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #990000;
  font-weight: 700;
  text-decoration: none !important;
}

a:visited {
  color: #660000;
}

a:active {
  color: #000000;
  text-decoration: none;
}

a.button-link {
  background-color: #28a745; 
  color: white; 
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

a.button-link:hover {
  background-color: #218838; 
}


p {
  margin-bottom: 0.5em;
}

p,
li {
  font-size: 1rem;  /* Tied to html font-size */
  line-height: 1.6;
  color: #222;
}

/* .box {
  margin: 0 auto;
  padding: 1.5em;
  width: 40px;
  background: rgb(195, 6, 6);
  text-align: center;
  border-radius: 10px;
  position: relative;
}

@property --angle{
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.box::after, .box::before{
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), #ff4545, #ca0505, #d3040b, #ff0095, #ff4545);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 10px;
  animation: 3s spin linear infinite;
}
.box::before{
  filter: blur(5px);
  opacity: 1;
}

@keyframes spin{
  from{
    --angle: 0deg;
  }
  to{
    --angle: 360deg;
  }
} */

#btn-back-to-top {
  position: fixed !important;
  bottom: 20px !important;
  bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  right: 20px;
  display: none; /* Hidden by default */
  border-radius: 25%;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  font-weight: 900;
  z-index: 99;
  background-image: url('/images/book-ad-bg.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
/*  background-color: rgb(83, 81, 81); /* Your custom color */
  /*border-color: rgb(195, 6, 6);     /* Set the border to the same color */
  border: none;
  /* 2. Add the blurred shadow */
  /* format: horizontal-offset | vertical-offset | blur-radius | spread-radius | color */
/*  box-shadow: 0 0 5px rgba(60, 60, 60, 0.7); */

  /* Add this line for a smooth animation */
  transition: all 0.2s ease-in-out;
}

#btn-back-to-top:hover {
  transform: scale(1.1) translateY(-5px);
  color: green;
}

footer {
  display: flex;
  flex-direction: column;
  background-color: #c30606;
  width: 100vw;
  /*width: 100%;*/
  justify-items: center;
  text-align: center;
  color: white;
  padding-top: 1rem;
  margin-bottom: 0;
  padding-bottom: 0;

/*  flex-shrink: 0;*/
  box-sizing: border-box;
}

footer .logo {
  width: 8%;
  height: auto;
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 1rem;
}

footer p {
  font-size: 0.8rem;
  font-family: 'Roboto', sans-serif;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:active {
  color: whitesmoke;
  text-decoration: underline;
  font-weight: bold;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

footer a:visited {
  color: whitesmoke;
  text-decoration: none;
}

footer .legal-links {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.5em;
}

footer .legal-links a {
  color: #fff;
  text-decoration: underline;
  margin: 0 0.3em;
}

.sources {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.sources li {
  font-size: 1rem;
}

.sources p {
  font-size: 1rem;
}


.timeline {
  padding-left: 1.75rem; /* creates the left border space */
}

.timeline-entry {
  padding-left: 1.1rem; /* adds space between dot and text */
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background-color: #dc3545;
  border-radius: 50%;

  /* --- Add this line --- */
  /* This moves the dot 50% of its own width to the left, centering it on the line */
  top: -4px !important;
  transform: translateX(-50%);
}


/* --- 1. Angled Divider --- */
.angled-bottom-right {
    background-color: #c30606;
    color: white;
    clip-path: polygon(0 0, 0 100%, 100% 85%, 100% 0);
}

.angled-top-left {
  padding-top: 40px;
    background-color: #c30606;
    color: white;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    margin-top: -1px;
}


@media (min-width: 360px) {
  .page-wrapper {
    margin-left: 5px;
    margin-right: 5px;
  }
  
  footer .logo {
    width: 30px;
  }

}

@media (min-width: 480px) {
  .page-wrapper {
    margin-left: 10px;
    margin-right: 10pix;
  }
  
  footer .logo {
    width: 40px;
  }

}

/* UPDATED Responsive Adjustments (Mobile-First) */
@media (min-width: 576px) {
  .page-wrapper {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .page-wrapper {
    width: min(80%, 1140px);
    margin-left: auto; 
    margin-right: auto;
  }


  footer .logo {
    width: 5%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .page-wrapper {
    width: min(75%, 1140px);
    margin-left: auto; 
    margin-right: auto;
  }
} 

/* Large devices (desktops, 992px and up) */
@media (min-width: 1200px) { 

}
  

/* Large devices (desktops, 992px and up) */
@media (min-width: 2100px) {
  
}

@media (prefers-reduced-motion: no-preference) {
  article > img {
    scale: .8;
    opacity: 0;
    animation: fade-in linear forwards;
    animation-timeline: view() ;
    animation-range: entry;
  }
}

