@font-face {
  font-family: "Marcellus";
  src: url("../fonts/Marcellus-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat-Italic";
  src: url("../fonts/Montserrat-Italic-VariableFont_wght.ttf")
    format("truetype");
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

b, strong{ font-weight:600}
a {	color: var(--color-primary)}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

* {
  box-sizing: border-box;
}

textarea,
input[type="text"],
input[type="button"],
input[type="submit"],
button {
  -webkit-appearance: none;
  border-radius: 0;
}
::-webkit-input-placeholder {
  color: rgba(4, 4, 4, 0.7);
  opacity: 1;
}
::-moz-placeholder {
  color: rgba(4, 4, 4, 0.7);
  opacity: 1;
}
:-ms-input-placeholder {
  color: rgba(4, 4, 4, 0.7);
  opacity: 1;
}
:-moz-placeholder {
  color: rgba(4, 4, 4, 0.7);
  opacity: 1;
}

.titles {
  width: 100%;
  background: url(../images/inner-bg.jpg) no-repeat top center;
  padding: 2.5rem 0;
}

body {
  font-family: "Montserrat";
  background: #ffffff url("../img/LiminalSpace.webp") center center/cover
    no-repeat;

  --color-primary: #a50002;
  --color-secondary: #980002;
  --background-primary: #ffffffcc;
  --color-header: #ffd0a1;
  --color-border: #cfeada;
  --background-secondary: #12201de8;
  --color-accent: #294a44;
  --color-grey: #7f889a;
  --color-grey-light: #d9d9d9;
  --color-heading: #192f2a;
}

p {
  line-height: 24px;
}

h1 {
  padding: 0;
  margin: 0;
  font-size: 1.875rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-primary);
}
h1.inner-page-title {
  color: var(--color-heading);
}
h2 {
  padding: 0;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-heading);
}
h3 {
  padding: 0;
  margin: 0;
  color: var(--color-accent);
  font-size: 1.125rem;
  font-weight: 700;
}
h4 {
  padding: 0;
  margin: 0;
  color: var(--color-grey);
  font-size: 1rem;
  font-weight: 700;
}
h5 {
  padding: 0;
  margin: 0;
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}
h6 {
  padding: 0;
  margin: 0;
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 700;
}

.path {
  padding: 0 0 2rem;
  margin: 0;
  width: 100%;
  float: left;
  font-size: 0.75rem;
  color: #000000;
}
.path a {
  color: #000000;
  text-decoration: none;
}
.path a:hover {
  color: #747474;
  text-decoration: underline;
}
.path div {
  display: inline;
}

.text {
  padding: 0;
  margin: 0;
  width: 100%;
  float: left;
}
.text p {
  padding: 0 0 1rem 0;
  margin: 0;
  line-height: 1.5;
}
.text img {
  max-width: 400px;
  float: left;
  margin: 0 1.5rem 1rem 0;
} 

.navigation-wrapper {
  background-color: var(--background-secondary);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 80px;
}
  
  
  
.navigation-elements {
  width: 100%;
  max-width: 1200px;
  display: flex;
}

.navigation-wrapper a {
  color: #ffffff;
  text-decoration: none;
  transition: all 100ms;
  /* border-radius: 8px; */
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
}

.navigation-wrapper a:hover {
  border-bottom: 1px solid var(--color-header);
  /* text-decoration: underline; */
}

.navigation-wrapper a.active {
  border-bottom: 1px solid var(--color-header);
  /* text-decoration: underline; */
}

a.home-button {
  font-family: "Marcellus";
  font-size: 2.5rem;
  color: var(--color-header);
}

a.home-button:hover {
  border-bottom: none;
}

.navigation-elements .nav-end {
  flex: 1;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.content-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  min-height: calc(100vh - 100px - 150px);
}

.content-wrapper > div {
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.book-info {
  display: flex;
  gap: 4rem;
}

.book-info > * {
  background-color: var(--background-primary);
  padding: 3rem;
  border-radius: 10px;
}

.book-info .column-1 {
  width: calc(70% - 2rem);
}

.book-info .column-2 {
  width: calc(30% - 2rem);
}

.book-info .column-1 > div:first-of-type {
  /* height: 500px; */
  box-sizing: border-box;
}

.book-info .column-1 h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0;
}

.book-info .column-1 .book-content {
  display: flex;
  gap: 2rem;
}

.book-info .column-1 .book-content > div {
  width: calc(50% - 1rem);
}


.book-content-inner img {
  max-width: 300px;
  float: left;
  margin: 0 1.5rem 1rem 0;  
}
.book-cover {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

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

.book-description p {
  line-height: 24px;
}

.book-description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-inner {
  display: flex;
  gap: 4rem;
}

.page-inner > * {
  background-color: #ffffff;
  padding: 3rem;
}

.page-content {
  width: 100%;
  height: auto;
  min-height: 500px;
  border-radius: 25% 10%;
  padding: 5rem 10rem;
}

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

.book-actions-inner {
   padding: 3rem 0;
  text-align: right;
  clear:both;
}

.btn-main,
.btn-secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: 0.5rem 1.125rem;
  text-transform: uppercase;
  border-radius: 10px;
  border-width: 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 100ms;
  text-decoration: none;
}

.btn-main:hover {
  background-color: var(--color-primary);
  transform: scale(1.025);
}

.btn-secondary {
  background-color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  transform: scale(1.025);
}

.btn-read-more {
  border-width: 0;
  background-color: transparent;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 100ms;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
}

.btn-read-more:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.chapters {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.chapters .chapters-gallery {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.chapters .chapters-gallery > div {
  background-color: #ffffff;
  border: 1px solid var(--color-grey-light);
  border-radius: 8px;
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 100ms;
  position: relative;
  overflow: hidden;
}

.chapters .chapters-gallery a {
  text-decoration: none;
  color: #000;
  padding: 2rem;
}

.chapters .chapters-gallery a p {
  padding: 2rem 0;
}

.chapters .chapters-gallery > div > svg {
  position: absolute;
  width: 40px;
  height: 40px;
  fill: var(--color-grey-light);
}

.chapters .chapters-gallery > div > svg:first-of-type {
  left: 15px;
  top: 15px;
}

.chapters .chapters-gallery > div > svg:last-of-type {
  right: 15px;
  bottom: 15px;
}

.chapters .chapters-gallery > div:hover {
  transform: scale(1.1);
}

.book-info .column-2 > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
  /* height: 500px; */
  box-sizing: border-box;
}

.book-info .column-2 > div:first-of-type > h3 {
  /* font-size: 1.25rem; */
  /* text-transform: uppercase; */
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials svg path {
  fill: var(--color-accent);
}

.read-more-newsletter {
display: flex;
   align-items:center;
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 10px;
  padding: 1rem 1rem;
  margin-top: 1.5rem;
  color: var(--color-grey);
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 700;
  width: 100%;
 }

.read-more-newsletter  a {
  padding-left: 1rem;
  margin: 0;
  color: var(--color-accent);
 
}

.newsletter-box {  
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 10px;
  padding: 1rem 1rem;
  margin-top: 2rem;
  color: var(--color-grey);
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 700;
  width: 95%;
  float: left;
}
.newsletter-box table {
  padding: 0;
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}
.newsletter-box table tr td {
  padding: 0.5rem 0;
  width: 100%;
  display: block;
}
.newsletter-box input[type="text"],
.newsletter-box textarea {
  width: 100%;
  max-width: 300px;
  height: 2.5rem;
  background: #ffffff;
  border: 1px solid #dfdfdf;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.813rem;
  font-weight: 400;
  color: #040404;
  padding: 0 1rem;
}
.newsletter-box input[type="submit"] {
  width: 100%;
  max-width: 170px;
  height: 2.5rem;
  background: var(--color-secondary);
  border: none;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.813rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter h3 {
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter .email-form > div.email-input {
  width: 100%;
  position: relative;
}

.newsletter .email-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--color-grey-light);
  padding: 0.5rem 1.125rem;
  border-radius: 10px;
  color: var(--color-grey);
  box-sizing: border-box;
}

.newsletter .email-form button[type="submit"] {
  position: absolute;
  right: 0;
  top: 1px;
}

.newsletter .email-form #message {
  display: none;
  margin-top: 0.5rem;
  background-color: #eed4d4;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--color-accent);
}

.newsletter .email-form #message span {
  margin: 10px 0;
  clear: both;
  width: 100%;
  display: block;
}

.tos-text {
  margin-top: 0.5rem;
}

.tos-text label input {
  margin: 0;
  padding: 0;
  margin-top: 0.2rem;
}

.tos-text label {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.2rem;
}

.tos-text a {
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
  /* display: block; */
}

.footer {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--background-secondary);
  flex-direction: column;
}

.footer-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
}

.footer-wrapper > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.footer-wrapper > div > p {
  color: var(--color-header);
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-wrapper > div > .contacts-item {
  display: flex;
  align-items: center;
}

.footer-wrapper > div > .contacts-item a {
  text-transform: none;
}

.footer-wrapper > div > .contacts-item a:hover {
  padding: 0.5rem;
  text-decoration: none;
  border-bottom: 0;
}

.footer-wrapper > div > .contacts-item svg {
  height: 20px;
  width: 20px;
  fill: var(--color-header);
  margin-left: 0.5rem;
}

.footer a {
  text-decoration: none;
  color: inherit;
}

.footer .designed-by a {
  padding: 0.5rem 0.5rem;
}

.footer .link-item a,
.footer .contacts-item a {
  color: #ffffff;
  text-decoration: none;
  transition: all 100ms;
  font-size: 0.8rem;
  padding: 0.5rem 0.5rem;
  text-transform: uppercase;
}

.footer a:hover {
  border-bottom: 1px solid var(--color-header);
}

.footer a.home-button {
  font-size: 2.5rem;
  color: var(--color-header);
  text-transform: none;
  padding-inline: 0;
}

.footer .socials svg path {
  fill: var(--background-primary);
}

.designed-by {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  height: 80px;
  margin-top: 1rem;
  font-size: 0.75rem;
  border-top: 1px solid var(--color-grey);
}

.designed-by a {
  font-size: 0.75rem;
}

.preview-wrapper {
  background-color: var(--background-primary);
  padding: 3rem;
}

.preview-wrapper .controls {
  display: flex;
  align-items: center;
}

.preview-wrapper .controls > a {
  flex: 1;
}

.preview-wrapper .controls a {
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.preview-wrapper .controls a:hover {
  text-decoration: underline;
}

.preview-wrapper .actions {
  gap: 2rem;
}

.footer-special {
  border-top: 10px solid var(--color-border);
}

.navigation-special {
  border-bottom: 10px solid var(--color-border);
}

#pdf-preview {
  background-color: #ffffff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--color-grey-light);
  padding: 0.5rem 1.125rem;
  border-radius: 10px;
  color: var(--color-accent);
  box-sizing: border-box;
}

.contact-form input {
  width: calc(50% - 0.5rem);
}

.contact-form textarea {
  width: 100%;
  height: 200px;
}

.contact-form .actions > *:first-of-type {
  font-weight: 600;
}

.contact-form .actions > *:first-of-type a {
  color: var(--color-accent);
}

.contact-form h2 {
  font-size: 1.5rem;
}

.reviews-list {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reviews-list .review-el:not(:last-of-type) {
  border-bottom: 2px solid var(--background-secondary);
  padding-bottom: 1rem;
}

.reviews-list .review-el .review-content {
  margin-top: 1rem;
}

.reviews-list .review-el h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.reviews-list .review-el .review-rating {
  display: flex;
  gap: 0.2rem;
}

.date-review {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--background-secondary);
  margin-top: 0.5rem;
}

.custom_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

  display: none;
  justify-content: center;
  align-items: center;
}

.custom_modal .backdrop {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--background-primary);
  cursor: pointer;
  z-index: 10;
}

.custom_modal > div {
  z-index: 11;
  position: relative;
  background-color: #ffffff;
  padding: 2rem;
  cursor: auto;
  border: 1px solid var(--color-grey);
  border-radius: 8px;
}

.custom_modal .newsletter {
  width: 100%;
  max-width: calc(700px);
}

.close_button_modal {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  cursor: pointer;
  padding: 0.2rem;
}

.close_button_modal svg {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
}

.list-news {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
}

.news-item:not(:last-of-type) {
  border-bottom: 2px solid var(--background-secondary);
}

.news-item .news-item-img {
  height: 100%;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
}

.news-item .news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item .news-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}


.revauthor {width: 100%;display:block; margin-bottom: 1rem; font-size: 12px}
.seeallreviews{width: 100%;display:block; margin-top: 1rem; text-align: right}


.news-item .news-item-content p a {
  margin-top: 0.5rem;
  padding: 0.15rem 1.125rem;
  float: right;
}

.news-item .news-item-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.news-item .news-item-title span.news-date-value {
  white-space: nowrap;
  color: var(--color-heading);
}

.news-item .news-item-keywords {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-item .news-item-keywords .news-item-kw {
  font-size: 0.8rem;
}

.leave-reviews input,
.leave-reviews textarea {
  border: 1px solid var(--color-grey-light);
  padding: 0.5rem 1.125rem;
  border-radius: 10px;
  color: var(--color-grey);
  box-sizing: border-box;
}

.leave-reviews form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.leave-reviews textarea {
  width: 100%;
}

.leave-reviews .actions {
  width: 100%;
}

.submit-messages .success {
  display: none;
  text-align: center;
  padding: 4px 10px;
  background-color: #d2ffd7;
  color: #000000;
  border-radius: 4px;
}

.submit-messages .failed {
  display: none;
  text-align: center;
  padding: 4px 10px;
  background-color: #ffd1d1;
  color: #000000;
  border-radius: 4px;
}

.submit-messages {
  width: 100%;
}

.star-container {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Space between stars */
}
.leave-reviews .star-container {
  background-color: var(--background-primary);
  padding: 0.2rem 1.125rem;
  border: 0;
  border-radius: 8px;
}

.star {
  font-size: 2rem;
  color: #ccc;
  transition: transform 0.2s, color 0.2s;
}
/* On hover, scale up and change color */
.leave-reviews .star:hover {
  cursor: pointer;
  transform: scale(1.2);
  color: var(--color-secondary);
}
/* When a star is marked active (hover or selected) */
.star.active {
  color: var(--color-secondary);
}

.mobile-menu {
  display: none;
}

.home-reviews {
  width: 100%;
}

.home-reviews > h2 {
  margin: 2rem 0;
}

.swiper {
  width: 100%;    background-color: #ffffff;
  border: 1px solid var(--color-grey-light);
  border-radius: 8px;
}

.home-reviews .swiper .news-item {
  padding: 1rem 5rem;
  padding-bottom: 2rem;
}

.home-reviews .swiper-button-next, .home-reviews .swiper-button-prev {
  color: var(--color-primary);
}

.home-reviews .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}


/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #6a8a84;
  min-width: 200px;
  width: 100%;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  transform: translateY(10px);
  
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #000000
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  border-bottom:1px solid #ffffff ;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ffd0a1; color:#000;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {background-color: #3e8e41;}


.books-list {
  display: flex;
  gap: 1rem;
}

.books-list .book-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  width: calc(100% / 3 - 2rem);
}

.books-list .book-card a {
  text-decoration: none;
  text-align: center;
}

.order-form-container {
  max-width: 800px;
  margin: 2em 0;
}

.book-order-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.book-order-form > div:not(.full) {
  width: calc(50% - 0.5rem);

  @media (max-width: 768px) {
    width: 100%;
  }
}

.book-order-form > div.full {
  width: 100%;
}

.book-order-form .form-section,
.book-order-form .form-actions {
  margin-bottom: 2em;
}

.book-order-form .form-section h3 {
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #eee;
}

.book-order-form .form-group {
  margin-bottom: 1em;
}

.book-order-form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.book-order-form input,
.book-order-form select {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.book-order-form .submit-btn {
  padding: 1em 2em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.book-order-form .submit-btn:hover {
  background-color: #0056b3;
}