/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.inter-100 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

/* 1. Font face */
/* @font-face {
  font-family: 'HeliosExtLight';
  src: url('../webfonts/HeliosExtLight-23.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
} */

@font-face {
  font-family: 'HeliosExtLight';
  src: url('../webfonts/HeliosExtLight-23.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 2. Font usage */
.custom-font {
  font-family: 'HeliosExtLight', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.2em;
}

:root {
  --color-accent: #EC1C24;
}

.page {
  margin-bottom: 0px;
}

body {
  font-family: 'Inter', sans-serif;
  /* overflow-x: hidden; */
  background-color: #FFFFFF;
  color: #000;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding-top: 100px; /* 72px header + extra breathing room */
  padding-bottom: 2rem; /* spacing before footer */
}

body.menu-open {
  overflow: hidden;
  position: fixed !important;
}

html {
  overflow-x: hidden;
}

a {
  color: unset !important;
}

a:hover {
  text-decoration: none !important;
  color: unset !important;
}

ul {
  margin: 0px !important;
  padding: 0px;
}

li {
  list-style-type: none;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensures wrapper covers the full height */
}

.content {
  flex: 1;
}

/* HEADER */
.site-header {
  position: fixed;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
}

body.home .site-header {
  background-color: #FFF;
}

.navbar {
  width: 100%;
  height: 100%;
}

.page-title-header {
  font-size: 20px;
  font-weight: 300;
  color: #EC1C24 !important;
  letter-spacing: 0.08em;
  padding-left: 4rem;
  text-decoration: none !important;
}

/* Desktop Navigation Layout */
.navbar-nav {
  display: flex;
  gap: 20px;
}

.navbar-nav li {
  position: relative;
}

.navbar-nav li a {
  font-size: 18px;
  font-weight: 300;
  color: #EC1C24 !important;
  letter-spacing: 0.08em;
  padding: 0.2em 0.6em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-nav li a:hover {
  background-color: rgba(236, 28, 36, 0.1);
}

/* Active Menu Item */
.current_page_item > a,
.navbar-nav li.current-menu-item > a {
  background-color: #EC1C24;
  color: #FFF !important;
}

/* Language Menu */
.language-menu {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.language-menu li {
  display: block;
}

.language-menu li a {
  font-size: 14px;
  font-weight: 200;
  text-decoration: none;
  color: #EC1C24 !important;
}

.language-menu li a:hover {
  text-decoration: underline;
}

.language-menu .current-lang > a {
  background-color: #EC1C24;
  color: #fff !important;
  font-weight: 200;
  letter-spacing: 0.08em;
  font-size: 14px;
  display: inline-block;
  text-decoration: none;
}

/* Responsive Container */
.container.top-nav {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 90% !important;
  }
}

/* Mobile-specific adjustments */
.offcanvas-body .navbar-nav {
  /* gap: 15px; */
}

/* MOBILE HEADER */
/* Offcanvas full width from left */
.offcanvas.offcanvas-start {
  width: 100%;
  max-width: none;
}

/* Offcanvas Title Styling (mobile site name) */
.offcanvas-title {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #EC1C24 !important;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* Offcanvas mobile menu styles */
.offcanvas-body .navbar-nav li a {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.08em;
  padding: 0.6em 1em;
  text-decoration: none;
}

.offcanvas-body .navbar-nav li a:hover {
  background-color: rgba(236, 28, 36, 0.1);
}

.offcanvas-body .language-menu {
  margin-top: 2rem !important;
  /* gap: 1rem; */
}

.offcanvas-body .language-menu a {
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
}

.navbar-toggler {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.5rem;
}

.offcanvas.offcanvas-end {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 1199.98px) {
  .page-title-header {
    display: none;
  }

  .site-header {
    background-color: rgba(255, 255, 255, 0.25);
  }
}
/* END MOBILE HEADER */

/* END HEADER */


/* HOME PAGE */
.homepage-stack {
  position: relative;
}
/* Apply only to the homepage template */
body.page-template-template-home_page_full_version {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.page-template-template-home_page_full_version .site {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

body.page-template-template-home_page_full_version main.homepage-main {
  flex: 1 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

body.page-template-template-home_page_full_version .homepage-viewport {
  flex: 1;
  position: relative;
}

/* Adjust image to not cover the footer */
body.page-template-template-home_page_full_version .homepage-image {
  position: absolute;
  bottom: 0;
  right: 0;
  height: auto;
  max-height: calc(100vh - 120px); /* Footer space */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

/* Author name styling */
body.page-template-template-home_page_full_version .author-name {
  font-family: 'HeliosExtLight';
  font-weight: 300;
  font-size: 2.5rem;
  color: #b82a40;
  letter-spacing: 0.2em;
  z-index: 2;
  margin: 0;
  position: relative;
}

/* Footer styling (if not already in place) */
.frontpage-footer {
  background-color: #fff;
  color: #000;
  font-size: 0.9em;
}

.author-name-wrapper {
  position: absolute;
  left: 4rem;   /* Moves it right */
  bottom: 4rem; /* Moves it up */
  z-index: 2;
}

/* Fade-in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-bottom {
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0; /* Start hidden */
}


/* Optional tweaks for responsiveness */
@media (max-height: 700px) {
  .homepage-image {
    max-height: calc(100vh - 60px) !important;
  }
}

@media (max-width: 768px) {
  .custom-font {
    font-size: 1.2rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .homepage-mobile-stack {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 80vh; /* Full screen height */
    
    overflow: hidden;
  }

  .author-name-wrapper {
    position: static !important;
    text-align: center;
    padding: 6rem 1rem 0;
  }

  .author-name {
    font-size: 1.6rem;
    color: #EC1C24;
    font-family: 'HeliosExtLight', sans-serif;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
  }

  .image-footer-aligner {
    margin-top: auto; /* Push image to bottom */
    width: 100%;
    text-align: center;
  }

  .homepage-image {
    position: static !important;
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  body, .site, main {
    overflow: visible !important;
    height: auto !important;
  }
}


/* @media (max-width: 1500px) {

  .main_image {
    height: 80vh; You can adjust this value as needed
  }
}
.main_image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
} */

/* .card-deck {
  background-color: black;
} */

/* .main_image {
  width: 100%;
  padding-top: 20px;
} */

/* .main_description {
  width: 100%;
} */

/* .centered-text p {
  max-width: 700px;
  text-align: center !important;
  color: #d1ccc2;
} */

/* .smaller-text {
  font-size: 13px;
} */

/* .homepage-button-font {
  font-size: 20px;
  text-transform: uppercase;
} */

/* .overImage {
  position: absolute;
  margin-top: 1em;
  margin-left: 2em;
  text-decoration: none !important;
} */

/* .homepage-button-brightBackground {
  color: #d1ccc2;
} */

/* .homepage-button-brightBackground а {
  text-decoration: none !important;
} */

/* .homepage-button-darkBackground {
  color: #968a74;
} */

.justify-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* .flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 30%; 
  margin: 10px;
}

.flex-containers {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 22%; 
} */

/* .flex-containers img {
  width: 100%; 
  height: auto; 
  max-width: 100%; 
  max-height: 100%;
} */

/* .w-100 {
  max-width: 100% !important;
} */
/* END HOME PAGE */



/* FOOTER */
.site-footer {
  font-size: 0.8em;
  background-color: #FFF;
  color: #CCC;
  padding: 1rem 4rem;
  border-top: 2px solid #EC1C24;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.frontpage-footer {
  font-size: 0.8em;
  text-align: center;
  background-color: #FFF;
  color: #CCC;
  padding: 1rem 4rem;
  border-top: 2px solid #EC1C24;
}

/* Homepage overrides */
body.home .frontpage-footer {
  /* background-color: #FFF;
  color: #CCC; */
}

body.home .author-name {
  color: #EC1C24; /* custom red */
  font-size: 2.5rem;
  font-family: 'HeliosExtLight', sans-serif;
  letter-spacing: 0.2em;
  margin: 0;
  z-index: 2;
  position: relative;
}

body.home .homepage-image {
  /* max-height: calc(100vh - 121px); 
  position: absolute;
  right: 0;
  bottom: 0; */
}

body.home {
  overflow: hidden;
}

/* For mobile layout */
@media (max-width: 576px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-social a img {
    height: 24px;
    width: auto;
  }

  .footer-copyright {
    padding-top: 0.5rem;
  }
}

/* END FOOTER*/

/* BOOKS PAGE */
/* Bootstrap grid row spacing */
.books-page .row.g-4 {
  row-gap: 4rem;
}

/* Book card container: full height for flex alignment */
.book-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  width: 200px;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #f6f6f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease;
}

.book-cover:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Add spacing around the text */
.book-info {
  margin-top: auto;
  text-align: left;
  padding-top: 0.75rem;
}

.book-title {
  font-size: 1rem;
  font-weight: 300;
  /* color: #000; */
  margin: 0;
  letter-spacing: 0.02em;
}

.book-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.book-title a:hover {
  color: #EC1C24 !important;
}

.book-type {
  color: #EC1C24;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}
/* END BOOKS PAGE */

/* SINGLE BOOKS PAGE */
.site-main {
  padding-top: 100px;
  padding-bottom: 2rem;
}

.book-layout-row {
  flex-direction: row;
  gap: 6rem;
}

.book-content-group {
  flex: 1 1 auto;
  gap: 3rem;
}

.book-translations-block {
  flex: 0 0 auto;
  max-width: 360px;
  width: 100%;
}

.book-main-cover {
  flex-shrink: 0;
  width: 100%;
  max-width: 500px;
}

/* Book Cover - full/original size */
.book-main-cover img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.book-main-text {
  flex-grow: 1;
  min-width: 500px;
  max-width: 550px;
}

/* Book Info */
.single-book-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-right: 1rem;
  color: #000;
}

.book-type {
  color: #EC1C24;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* Red underline below title/category */
.title-divider {
  height: 2px;
  width: 100%;
  background-color: #EC1C24;
}

.book-content {
  color: #000;
}

/* Share buttons styling */
.book-share i {
  font-size: 1rem;
  color: #000;
  transition: color 0.2s ease-in-out;
}

.book-share i:hover {
  color: #EC1C24;
}

.book-translations-block {
  max-width: 360px;
  flex-shrink: 0;
  margin-left: 4rem;
}

/* Translations Grid */
/* Grid layout (optional, if you want even spacing) */
.translations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

/* Translation Item Container */
.translation-item {
  width: 100px;
  text-align: center;
  flex-shrink: 0;
}

/* Image Container */
.translation-cover-wrapper {
  width: 100%;
  height: 150px;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Image Scaling */
.translation-cover-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Language Label */
.translation-lang {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #111;
  text-decoration: none;
  display: block;
}

.translation-item a {
  text-decoration: none;
}

.translation-item a:hover .translation-lang {
  color: #EC1C24;
}

/* Responsive Layout */
@media (max-width: 991px) {

  .translations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

/*   .book-main-block {
    margin-right: 3rem !important;
  }
 */
  .book-content-group {
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .translations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-translations-block {
    margin-left: 0;
  }
}

@media (max-width: 1500px) {
  .book-layout-row {
    flex-direction: column;
  }

  .book-main-cover,
  .book-main-text,
  .book-translations-block {
    max-width: 100%;
    width: 100%;
  }

  .book-translations-block {
    margin-left: 0;
    margin-top: 2rem;
  }

  .book-main-text {
    min-width: unset;
  }
}

@media (max-width: 1649px) {
  .book-main-cover {
    max-width: 450px;
  }
}

@media (max-width: 1249px) {
  .book-layout-row {
    flex-direction: column;
  }

  .book-content-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3rem;
  }

  .book-main-cover,
  .book-main-text {
    max-width: 100%;
  }

  .book-translations-block {
    margin-left: 0;
    margin-top: 2rem;
    max-width: none;
    width: 100%;
  }

  .book-main-text {
    min-width: unset;
  }
}

@media (max-width: 1000px) {
  .book-content-group {
    flex-direction: column;
  }

  .book-main-cover,
  .book-main-text,
  .book-translations-block {
    max-width: 100%;
    width: 100%;
  }

  .book-translations-block {
    margin-top: 2rem;
  }
}
/* END SINGLE BOOKS PAGE */

/* ARTICLES PAGE */
.article-card {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  min-height: 180px;
  padding-bottom: 2.5rem;
  position: relative;
}

/* Fixed square image */
.article-image {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content area */
.article-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.article-title a {
  color: #EC1C24 !important;
  font-size: 1.1rem;
  font-weight: normal;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.article-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #EC1C24;
  margin-top: 0.2rem;
}

.article-date {
  font-size: 0.85rem;
  color: #999;
  margin: 0.5rem 0;
}

.article-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
  height: 130px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-link {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background-color: #EC1C24 ;
  color: #FFF !important;
  font-size: 18px;
  font-weight: bold;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
}

/* Base styling for all screen sizes */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Base styles for category links */
.category-list a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  color: #EC1C24 !important;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.category-list a:hover,
.category-list a.active-category {
  background-color: #EC1C24;
  color: #FFF !important;
}

/* Hover effect: red square with white text */
.articles-sidebar ul li a:hover {
  background-color: #EC1C24;
  color: #FFF !important;
}

.articles-sidebar a.active-category {
  background-color: #EC1C24;
  color: #FFF !important;
}

/* Responsive: stack cards on small screens */
@media (max-width: 767.98px) {

  .articles-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .articles-grid > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .article-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .article-card-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-card {
    gap: 1rem;
  }
  
  .article-image {
    width: 110px;
    height: 110px;
  }
  
  .read-more-link {
    right: 0.25rem;
  }
}
/* Responsive horizontal category nav */
@media (max-width: 991.98px) {
  .articles-sidebar {
    margin-bottom: 1.5rem;
  }

  .article-image {
    width: 125px;
    height: 125px;
    flex-shrink: 0;
    overflow: hidden;
  }

  .article-excerpt {
    height: 150px;
  }

  .category-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    justify-content: flex-start;
  }

  .category-list li {
    flex: 0 0 auto;
  }

  .category-list {
    /* Pull the list edges to the container edge so the scrollbar doesn’t create extra width */
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;

    /* Keep layout stable when a scrollbar appears */
    scrollbar-gutter: stable both-edges;
  }
}
/* DESKTOP: Stack right-aligned */
@media (min-width: 992px) {
  .category-list {
    display: block;
    text-align: right;
  }

  .category-list li {
    margin-bottom: 0.5rem;
  }

  .articles-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
  }
}
/* END ARTICLES PAGE */

/* SINGLE ARTICLE PAGE */
.post-body {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
}

.latest-posts .card-title a:hover {
    color: red;
}

.latest-posts .card {
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.latest-posts .card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

/* 1) Neutralize Bootstrap row negative margins on small screens */
@media (max-width: 767.98px) {
  .single-post .post-body .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .single-post .post-body .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* 2) Contain Gutenberg wide/full alignments inside the post column */
.single-post .post-body .alignwide,
.single-post .post-body .alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 3) Media should never exceed container width */
.single-post .post-body img,
.single-post .post-body video,
.single-post .post-body iframe,
.single-post .post-body embed,
.single-post .post-body object {
  max-width: 100% !important;
  height: auto;
  display: block;
}

/* Common iframe wrappers (YouTube/Vimeo, core-embed) */
.single-post .post-body .wp-block-embed,
.single-post .post-body .wp-block-video,
.single-post .post-body .wp-block-image,
.single-post .post-body figure {
  max-width: 100% !important;
  overflow: hidden;
}

/* 4) Tables & code blocks */
.single-post .post-body table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  word-break: break-word;
}
.single-post .post-body .wp-block-table,
.single-post .post-body table.wp-block-table {
  display: block;
  overflow-x: auto;   /* let the table scroll, not the page */
  -webkit-overflow-scrolling: touch;
}
.single-post .post-body pre {
  overflow-x: auto;   /* keep code samples contained */
}

/* 5) Prevent absolutely positioned bits from sticking past the edge */
.single-post .post-body [style*="position:absolute"],
.single-post .post-body .share-bar,
.single-post .post-body .read-more-link {
  max-width: 100%;
  box-sizing: border-box;
  right: 0; /* in case something used a positive right offset */
}

/* 6) Blockquotes and long inline content shouldn't force overflow */
.single-post .post-body blockquote,
.single-post .post-body p,
.single-post .post-body li,
.single-post .post-body h1,
.single-post .post-body h2,
.single-post .post-body h3,
.single-post .post-body h4,
.single-post .post-body h5,
.single-post .post-body h6,
.single-post .post-body a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 7) Optional: smooth out card shadows in the "latest posts" grid */
.latest-posts .card-title a:hover {
  color: red;
}

.latest-posts .card {
  border: 1px solid #eee;
  transition: box-shadow 0.3s ease;
}

.latest-posts .card:hover { 
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
/* END SINGLE ARTICLE PAGE */


/* BIOGRAPHY PAGE */
/* === Biography Page Top Padding === */
.biography-page {
  padding-top: 8rem;
}

/* === Red Horizontal Line === */
.bio-red-line {
  width: 100%;
  height: 2px;
  background-color: #EC1C24;
  margin-top: 3rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* === Flex Wrapper for Image and Text Aligned Right === */
.bio-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

/* === Author Image Container === */
.bio-image-wrapper {
  position: relative;
  z-index: 3;
  margin-top: -60px; /* pull image above red line */
}

/* === Author Image Styling === */
.bio-image-flex {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  background-color: #fff;
  display: block;
  max-width: 100%;
  height: auto;
}

/* === Biography Text Styling === */
.biography-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  text-align: justify;
  max-width: 720px;
  margin: 80px 20px 20px 100px;
}

/* === Button Group Block === */
.biography-buttons {
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: -3.1rem;
  position: relative;
  z-index: 2;
}

/* === Individual Button Styling === */
.biography-buttons .bio-btn {
  background-color: #EC1C24;
  color: #fff !important;
  padding: 0.4rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 0;
  transition: background-color 0.2s ease;
  letter-spacing: 0.5px;
}

.biography-buttons .bio-btn:hover {
  background-color: #c71a20;
  color: #fff;
}

/* === Responsive Adjustments for Mobile === */
@media (max-width: 1249.98px) {
  .bio-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .bio-image-wrapper {
    margin-top: -40px;
  }

  .bio-image-flex {
    margin-bottom: 1rem;
  }

  .biography-text {
    margin: 10px 10px 10px 0px !important;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .biography-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .biography-buttons .bio-btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
}
/* END BIOGRAPHY PAGE */

/* TEXTS & PUBLICATIONS PAGE */
/* Constrain block to 700px, centered */
.tp-constrain {
  max-width: 800px;
  margin: 0 auto;
}

/* Red top border */
.tp-top-border {
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  margin-bottom: 1.25rem;
}

/* Item layout: two-column on md+ */
.tp-item-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .tp-item-inner {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Thumbnail fixed width, height auto */
.tp-thumb {
  width: 180px;           /* adjust as needed */
  flex-shrink: 0;
}
.tp-thumb .tp-thumb-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Title */
.tp-title {
  line-height: 1.3;
  margin-bottom: .2rem;
}

/* Publisher: bigger, lighter */
.tp-publisher {
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: .1rem;
}

/* Date */
.tp-date {
  font-size: .95rem;
  color: #777 !important;
}

/* Excerpt */
.tp-excerpt {
  color: #1a1a1a;
  line-height: 1.65;
}

/* CTA aligned right */
.tp-cta {
  text-align: right;
}

/* Button: red bg, lighter white text */
.btn-accent {
  --btn-pad-y: .45rem;
  --btn-pad-x: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background-color: var(--color-accent);
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid var(--color-accent);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 0;
  font-weight: 300;
  text-decoration: none !important;
  transition: opacity .2s ease-in-out, transform .05s ease-in-out;
}
.btn-accent:hover { opacity: .9; }
.btn-accent:active { transform: translateY(1px); }

/* Small screens spacing */
@media (max-width: 767.98px) {
  .tp-constrain {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .tp-thumb {
    width: 100%;
    max-width: 240px;
    margin-bottom: 1rem;
  }
}
/* END TEXTS & PUBLICATIONS PAGE */

/* CONTACT PAGE */
.contact-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  max-width: 500px;
  margin-top: 5rem; /* pushes the block downward */
}

.contact-content a {
  color: #EC1C24 !important;
  text-decoration: none;
}

.contact-content a:hover {
  text-decoration: underline;
}

/* Force separator color in Contact content */
.contact-content hr.wp-block-separator {
  border: none;
  border-top: 1px solid #EC1C24 !important;
  background-color: #EC1C24 !important;
  height: 1px;
  opacity: 1;
  margin: 2rem 0;
}
/* END CONTACT PAGE */


/*─────────────────────────────────────────────────────────────────────────
    PAGINATION (center + red)
──────────────────────────────────────────────────────────────────────────*/
.pagination-wrap {
  text-align: center;
  margin: 2rem 0;
}

.pagination-wrap > nav.navigation.pagination {
  display: inline-block;
}

.pagination-wrap .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-wrap .page-numbers {
  display: inline-block;
  margin: 0 .25rem;
  padding: .5rem .75rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: background .3s, color .3s;
  font-weight: 400;
}
.pagination-wrap .page-numbers:hover {
  background: var(--color-accent);
  color: #fff !important;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers.current:hover {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  cursor: default;
}