/* ==========================================================================
   GLOBAL COLORS & BACKGROUND
   ========================================================================== */
.bg-maroon {
    background-color: #430909;
}

/* ==========================================================================
   IMAGES & FIGURES
   ========================================================================== */
figure {
    margin: 0;
}

.standard-image-size img {
    width: 100%;
    height: auto;
    margin: 0;
}

.db.grow img {
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.db.grow img:hover,
.db.grow img:focus,
.db.grow img:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.fancy-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 60%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fancy-img.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */
.gcse-search {
    max-width: 600px;
    margin: auto;
    padding: 20px;
}

/* ==========================================================================
   TITLES / HEADINGS
   ========================================================================== */
.f3.fw1.athelas.mt0.lh-title {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.f3.fw1.athelas.mt0.lh-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.f3.fw1.athelas.mt0.lh-title a:hover,
.f3.fw1.athelas.mt0.lh-title a:focus {
    color: #8b0000;
    text-shadow: 2px 2px 8px rgba(139, 0, 0, 0.3);
    transform: translateY(-1px) scale(1.05);
}

.f3.fw1.athelas.mt0.lh-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #8b0000;
    margin-top: 5px;
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.f3.fw1.athelas.mt0.lh-title:hover::after {
    width: 110%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
a.ba.b--moon-gray.bg-light-gray.br2 {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background-color: #8b0000;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

a.ba.b--moon-gray.bg-light-gray.br2:hover,
a.ba.b--moon-gray.bg-light-gray.br2:focus {
    background-color: #a52a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

/* ==========================================================================
   NAVIGATION MENU
   ========================================================================== */
nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    color: #ffffff;
    background-color: transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #ffffff;
    background-color: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.6);
}

/* Active link style */
nav a.active,
nav ul li a.active {
    background-color: #8b0000;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.5);
}

nav a.active:hover,
nav a.active:focus {
    background-color: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

/* Site title link (non-pill style) */
nav a.f3.fw2 {
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 1.5rem;
}

nav a.f3.fw2:hover {
    background-color: #8b0000;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */
@media (max-width: 768px) {
    nav ul {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 80%;
        margin: 5px auto;
        border-radius: 40px;
        padding: 12px 0;
        font-size: 1.3rem;
    }

    nav ul li a.active {
        background-color: #8b0000;
        box-shadow: 0 4px 10px rgba(139, 0, 0, 0.4);
    }

    nav ul li a:hover {
        background-color: #a30000;
        box-shadow: 0 6px 15px rgba(139, 0, 0, 0.5);
    }

    nav a.active {
        font-size: 1.3rem;
        padding: 8px 20px;
        border-radius: 40px;
    }
}

/* ==========================================================================
   PROGRESS INDICATORS
   ========================================================================== */
#progress-percentage {
    position: fixed;
    top: 5px;
    right: 10px;
    color: #d48806;
    font-weight: bold;
    z-index: 9999;
}

#progress-circle {
    position: fixed;
    top: 30%;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#d48806 0%, #eee 0%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#progress-text {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

@media (max-width: 768px) {
    #progress-circle {
        bottom: 10px;
        left: 10px;
        width: 50px;
        height: 50px;
        top: auto;
    }

    #progress-percentage {
        display: none;
    }
}

/* ==========================================================================
   TEXT WRAPPING & CONTENT some more info
   ========================================================================== */
.summary,
.post-content,
.photo-credit,
p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.nested-links {
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* ==========================================================================
   SIDEBAR & RELATED POSTS (Responsive, Larger, and Modern)
   ========================================================================== */
.sidebar {
  font-size: 1em;
}

.sidebar-section {
  margin-bottom: 2rem;
}

/* Container */
.related-sidebar {
  background: #f9f9f9;
  padding: 0.6rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Header */
.related-sidebar h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: #222;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 6px;
}

/* List */
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Cards */
.related-card {
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.related-card-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 0.4rem 0.2rem;
  border-radius: 10px;
}

.related-card-link:hover {
  background: rgba(139, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Thumbnail */
.related-thumb {
  width: clamp(80px, 20vw, 100px);
  height: clamp(80px, 20vw, 100px);
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.related-card-link:hover .related-thumb {
  transform: scale(1.05);
}

/* Title */
.related-title {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  flex: 1;
  color: #222;
}

.related-card-link:hover .related-title {
  color: #8b0000;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .related-sidebar {
    padding: 1rem;
  }

  .related-thumb {
    width: 70px;
    height: 70px;
  }

  .related-card-link {
    gap: 0.8rem;
  }
}

@media (max-width: 600px) {
  .related-sidebar {
    border-radius: 0;
    box-shadow: none;
    padding: 0.8rem;
  }

  .related-thumb {
    width: 60px;
    height: 60px;
  }

  .related-title {
    font-size: 0.95rem;
  }
}

.related-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.related-card-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
}

.related-card-content {
  flex: 1;
}

.related-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.related-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #222;
}

