/*!
Theme Name: pdfxandria
Theme URI: https://wp-points.com/themes/bloggrid/
Author: Hisoka Ryodan
Author URI: https://wp-points.com
Description: BlogGrid is simple and easy to use blog theme. It is designed and developed primarily to create professional blogging websites. It is fully responsive and works flawlessly on all type of devices like mobiles, tablets, laptops, and computers. BlogGrid is search engine friendly. It integrates perfectly with popular SEO plugins like Yoast SEO to create an SEO ready blog. BlogGrid is fast, secure and lightweight.
Version: 1.0.2
Tested up to: 5.4.2
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bloggrid
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

BlogGrid is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Sora:wght@400;500;600;700&display=swap');

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/
/* Normalize
--------------------------------------------- */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
	 ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
	 ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Interactive
	 ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* Box sizing
--------------------------------------------- */
/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  color: #2D3748;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  font-weight: 700;
}

p {
  margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #4A5568;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
  background: #EDF2F7;
}

body.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

hr {
  background-color: #E2E8F0;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

img {
  height: auto;
  max-width: 100%;
}

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

.site-header {
  padding: 1rem 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: static;
  z-index: 100;
}

@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.header-top-bar {
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Site Branding */
.site-branding-wrapper {
  flex-shrink: 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-branding img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.site-branding img:hover {
  transform: scale(1.05);
}

.branding-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-branding .site-title {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-branding .site-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-branding .site-title a:hover {
  color: #5a67d8;
}

.site-branding .site-description {
  font-size: 0.8rem;
  margin: 0;
  color: #6b7280;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Header Right Side (Menu + Search) */
.header-right-side {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

/* Main Navigation */
.main-navigation {
  flex: 1;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
  align-items: center;
}

.main-navigation a {
  display: block;
  padding: 10px 16px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: #5a67d8;
  background: #f3f4f6;
}

.main-navigation > ul > li.current-menu-item > a {
  color: #5a67d8;
  background: #ede9fe;
  font-weight: 600;
}

.main-navigation > ul > li.current-menu-parent > a {
  color: #5a67d8;
  background: #f3f4f6;
}

/* Dropdown Menu */
.main-navigation ul ul {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 200px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
  display: flex;
}

.main-navigation ul ul a {
  padding: 10px 16px;
  border-radius: 0;
  border-left: 3px solid transparent;
}

.main-navigation ul ul a:hover {
  border-left-color: #5a67d8;
  background: #f9fafb;
}

.main-navigation ul ul li.current-menu-item > a {
  border-left-color: #5a67d8;
  background: #f3f4f6;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #374151;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  color: #5a67d8;
  background: #f3f4f6;
  border-radius: 6px;
}

/* Header Search Bar */
.header-search-wrapper {
  flex-shrink: 0;
}

.header-search-wrapper .search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-search-wrapper .search-field {
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  width: 200px;
  transition: all 0.2s ease;
  background: #f9fafb;
  font-family: inherit;
}

.header-search-wrapper .search-field:focus {
  outline: none;
  border-color: #5a67d8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.header-search-wrapper .search-field::placeholder {
  color: #9ca3af;
}

.header-search-wrapper .search-submit {
  padding: 10px 18px;
  background: linear-gradient(135deg, #667eea, #5a67d8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
  height: 40px;
}

.header-search-wrapper .search-submit:hover {
  background: linear-gradient(135deg, #5a67d8, #4c51bf);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}

.header-search-wrapper .search-submit:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .header-inner {
    gap: 20px;
  }
  
  .header-search-wrapper .search-field {
    width: 160px;
  }
  
  .main-navigation a {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .site-branding img {
    height: 45px;
  }
  
  .site-branding .site-title {
    font-size: 1.3rem;
  }
  
  .site-branding .site-description {
    font-size: 0.75rem;
  }
  
  .header-search-wrapper .search-field {
    width: 140px;
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .header-search-wrapper .search-submit {
    padding: 8px 14px;
    font-size: 13px;
    height: 36px;
  }
  
  .main-navigation a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem 0;
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  
  .site-branding-wrapper {
    flex: 0 1 auto;
    order: 0;
  }
  
  .site-branding img {
    height: 32px;
  }
  
  .site-branding .site-title {
    display: none;
  }
  
  .site-branding .site-description {
    display: none;
  }
  
  .header-right-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: nowrap;
    order: 0;
  }
  
  .main-navigation {
    position: relative;
    order: -1;
  }
  
  .menu-toggle {
    display: flex;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #1f2a44;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
  }
  
  .menu-toggle:hover {
    opacity: 0.7;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: auto;
    width: auto;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    z-index: 999;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }
  
  .main-navigation.toggled ul {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .main-navigation a {
    width: 100%;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: block;
  }
  
  .main-navigation a:last-child {
    border-bottom: none;
  }
  
  .main-navigation ul ul {
    position: static;
    display: none;
    box-shadow: none;
    padding: 0 16px;
    margin: 0;
    background: #f9fafb;
    border: none;
  }
  
  .main-navigation ul li:hover > ul,
  .main-navigation ul li.focus > ul {
    display: flex;
  }
  
  .header-search-wrapper {
    flex: 0 1 auto;
    min-width: auto;
    order: 1;
  }
  
  .header-search-wrapper .search-form {
    width: auto;
    display: flex;
    gap: 2px;
    align-items: center;
  }
  
  .header-search-wrapper .search-field {
    width: 100px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    background: white;
    display: block;
    border-radius: 4px;
  }
  
  .header-search-wrapper .search-field:focus {
    outline: none;
    border-color: #5a67d8;
    background: white;
    width: 130px;
  }
  
  .header-search-wrapper .search-submit {
    font-size: 12px;
    padding: 6px 8px;
    height: auto;
    background: none;
    border: 1px solid #d1d5db;
    cursor: pointer;
    color: #6b7280;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .header-search-wrapper .search-submit:hover {
    background: #f3f4f6;
    color: #374151;
  }

@media (max-width: 576px) {
  .site-header {
    padding: 0.4rem 0;
  }
  
  .header-inner {
    gap: 6px;
  }
  
  .site-branding-wrapper {
    flex: 0 1 auto;
    margin: 0;
  }
  
  .site-branding {
    gap: 6px;
  }
  
  .site-branding img {
    height: 28px;
    width: auto;
    border-radius: 4px;
  }
  
  .site-branding .site-title {
    display: none;
  }
  
  .site-branding .site-description {
    display: none;
  }
  
  .menu-toggle {
    padding: 6px;
    min-width: 40px;
    height: 40px;
  }
  
  .main-navigation ul {
    min-width: 180px;
  }
  
  .header-search-wrapper .search-field {
    width: 90px;
    padding: 5px 6px;
    font-size: 12px;
  }

  .header-search-wrapper .search-field:focus {
    width: 110px;
  }

  .header-search-wrapper .search-submit {
    padding: 5px 6px;
    font-size: 11px;
  }
}

.main-navigation {
    flex: 1 1 100%;
    order: 1;
  }
  
  .menu-toggle {
    display: flex;
    padding: 8px 12px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1f2937;
  }
  
  .menu-toggle:hover {
    background-color: #e5e7eb;
  }
  
  .menu-toggle:focus {
    outline: 2px solid #5a67d8;
    outline-offset: 2px;
  }
  
  .menu-toggle svg {
    width: 1.3em;
    height: 1.3em;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    display: none;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 2px solid #5a67d8;
    margin-top: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .main-navigation.toggled ul {
    display: flex;
  }
  
  .main-navigation a {
    display: block;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .main-navigation a:hover {
    color: #5a67d8;
    background-color: #f9fafb;
    padding-left: 16px;
  }
  
  .main-navigation ul ul {
    position: static;
    display: none;
    box-shadow: none;
    background: #f9fafb;
    padding: 0;
    margin: 0;
    border: none;
  }
}

@media (max-width: 380px) {
  .site-branding .site-title {
    font-size: 0.95rem;
  }
  
  .site-branding img {
    height: 36px;
  }
  
  .main-navigation a {
    padding: 12px 10px;
    font-size: 13px;
  }
}

.site-footer {
  padding: 2rem 0;
  background-color: #fff;
  margin-top: 2rem;
}

.site-footer .site-info {
  text-align: center;
  font-size: 0.9rem;
}

#bg-to-top {
  position: fixed;
  bottom: -5rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  -webkit-transition: bottom 0.4s ease;
  -o-transition: bottom 0.4s ease;
  transition: bottom 0.4s ease;
  color: #2D3748;
}

/* Links
--------------------------------------------- */
a {
  color: #5A67D8;
  -webkit-transition: color 0.4s ease;
  -o-transition: color 0.4s ease;
  transition: color 0.4s ease;
}

a:hover, a:focus, a:active {
  color: #434190;
  text-decoration: none;
}

a:focus {
  outline: thin dotted;
}

a:hover, a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #667EEA;
  border-radius: 3px;
  background: #667EEA;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #5A67D8;
}

button:active, button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #5A67D8;
}

.bg-button {
  background-color: #5A67D8;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: #EBF4FF;
  -webkit-transition: 0.4s ease;
  -o-transition: 0.4s ease;
  transition: 0.4s ease;
  -webkit-transition-property: background-color, color;
  -o-transition-property: background-color, color;
  transition-property: background-color, color;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bg-button:hover {
  background-color: #4C51BF;
  color: #fff;
}

.nav-next .bg-button svg {
  margin-left: 5px;
}

.nav-previous .bg-button svg {
  margin-right: 5px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #4A5568;
  border: 1px solid #E2E8F0;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #1A202C;
}

select {
  border: 1px solid #E2E8F0;
}

textarea {
  width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* Navigation
--------------------------------------------- */
.main-navigation {
  display: flex;
  justify-content: flex-start;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
  margin-left: 1.5rem;
}

.main-navigation a {
  display: block;
  text-decoration: none;
  font-weight: 500;
  color: #4A5568;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: #336dbf; /* Vermelho */
}

.menu-toggle {
  display: none;
}
@media only screen and (max-width: 767px) {
  .main-navigation {
    display: flex;
    justify-content: flex-end;
  }
}

@media screen and (max-width: 767px) {
  .main-navigation {
    position: relative;
  }

  .main-navigation ul {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Valor alto para sobrepor o conteúdo */
  }

  .main-navigation ul li {
    margin: 0;
  }

  .main-navigation ul a {
    display: block;
    padding: 0.5rem;
  }

  .main-navigation ul a:hover,
  .main-navigation ul .current-menu-item a {
    color: #336dbf; /* Vermelho */
  }

  .menu-toggle {
    display: block;
    padding: 0.5rem;
    color: #336dbf; /* Vermelho */
    background-color: transparent;
    border: none;
    cursor: pointer;
  }

  .menu-toggle:hover {
    color: #336dbf; /* Vermelho */
  }

  .main-navigation.toggled ul {
    display: block;
  }

  .main-navigation.toggled .menu-toggle {
    color: #336dbf; /* Vermelho */
  }

  .main-navigation.toggled .menu-toggle:hover {
    color: #336dbf; /* Vermelho */
  }
}

@media screen and (min-width: 768px) {
  .main-navigation ul {
    display: flex;
    justify-content: flex-end;
  }

  .main-navigation li {
    margin-left: 1.5rem;
  }
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  -webkit-box-flex: 1;
  -ms-flex: 1 0 50%;
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  -webkit-box-flex: 1;
  -ms-flex: 1 0 50%;
  flex: 1 0 50%;
}

.site-main .posts-navigation {
  margin-bottom: 3rem;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

.post,
.page {
  margin: 0 0 1.5em;
}

.updated:not(.published) {
  display: none;
}

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

.page-content,
.entry-content,
.entry-summary {
  margin: 1rem 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

.entry-title {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1.25;
  font-size: 1.4rem;
  margin-top: 0.25rem;
}

.entry-title a {
  color: #1A202C;
}

.entry-title a:hover {
  color: #5A67D8;
}

a.post-thumbnail {
  display: inline-block;
}

.site-content {
  padding-top: 3rem;
}

/* ===== SIDEBAR PADRONIZADA À ESQUERDA ===== */
.sidebar-left {
  display: block;
}

@media (max-width: 767px) {
  .sidebar-left {
    margin-bottom: 30px;
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
    order: 2;
  }
	
  /* Apenas o conteúdo principal logo após a sidebar */
  .sidebar-left + .site-main {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
    order: 1;
  }
}

@media (min-width: 768px) {
  .sidebar-left {
    flex: 0 0 25%;
    max-width: 25%;
  }
	
  /* Garante 75% apenas quando existir sidebar à esquerda */
  .sidebar-left + .site-main {
    flex: 0 0 75%;
    max-width: 75%;
  }
}

.entry-summary {
  margin-bottom: 0.5rem;
}

.archive-post-card {
  background-color: #fff;
  border-radius: 0.375rem;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
 box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adapte a sombra conforme necessário */
  height: calc(100% - 3rem);
}

.archive-post-card .card-body {
  padding: 1.25rem 1.75rem;
}

.entry-footer {
  padding: 0.75rem 1.75rem;
  border-top: 1px solid #EDF2F7;
}

.entry-meta {
  color: #718096;
  font-size: 0.85rem;
  vertical-align: middle;
}

.entry-meta svg {
  margin-right: 0.25rem;
}

.entry-meta a {
  color: #718096;
}

.entry-meta a:hover {
  color: #5A67D8;
}

.cat-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 500;
  margin-right: 0.75rem;
  letter-spacing: 0.025rem;
}

.tag-links a {
  font-size: 0.8rem;
  margin-right: 0.25rem;
  background-color: #EDF2F7;
  color: #4A5568;
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
  font-weight: 500;
}

.hentry {
  margin-bottom: 3rem;
}

.archive-post-card .post-thumbnail {
  height: 225px;
  overflow: hidden;
  width: 100%;
}

.archive-post-card .post-thumbnail img {
  height: 225px;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: -webkit-transform 0.4s ease;
  -o-transition: transform 0.4s ease;
  transition: transform 0.4s ease;
  transition: transform 0.4s ease, -webkit-transform 0.4s ease;
  vertical-align: middle;
}

.archive-post-card .post-thumbnail img:hover {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}

.single-post-card {
  background: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adapte a sombra conforme necessário */
}

.single-post-card .post-thumbnail img {
  border-radius: 0.375rem 0.375rem 0 0;
  width: 100%;
}

.single-post-card .entry-title {
  font-size: 2rem;
}

.single-post-card .card-body {
  padding: 2rem 3rem;
  max-width: 900px;
  margin: auto;
  font-size: 1.05rem;
}

.single-post-card .entry-content {
  margin-top: 2rem;
}

.single-post-card .posted-on,
.single-post-card .byline {
  margin-right: 1rem;
}

.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

.navigation.post-navigation {
  margin: 3rem 0;
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adapte a sombra conforme necessário */
  font-size: 0.85rem;
  color: #718096;
  overflow: hidden;
}

.navigation.post-navigation .nav-previous {
  border-right: 1px solid #EDF2F7;
}

.navigation.post-navigation .nav-links a {
  display: block;
  padding: 1rem;
  color: #718096;
  -webkit-transition: 0.4s ease;
  -o-transition: 0.4s ease;
  transition: 0.4s ease;
  -webkit-transition-property: background-color;
  -o-transition-property: background-color;
  transition-property: background-color;
}

.navigation.post-navigation .nav-links a:hover {
  background-color: #F7FAFC;
}

.navigation.post-navigation .nav-title {
  display: block;
  font-size: 1.25rem;
  color: #5A67D8;
  font-family: "DM Serif Display", serif;
  line-height: 1.25;
}

section.error-404 {
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adapte a sombra conforme necessário */
}

.error-card-body {
  padding: 2rem 3rem;
  max-width: 900px;
  margin: auto;
}

.error-card-body .search-form {
  margin-bottom: 2rem;
}

input.search-field {
  padding: 0.5rem;
  font-size: 0.9rem;
  min-width: 250px;
}

input.search-submit {
  background-color: #5A67D8;
  display: inline-block;
  padding: 0.85rem 1rem;
  border-radius: 0.375rem;
  color: #EBF4FF;
  -webkit-transition: 0.4s ease;
  -o-transition: 0.4s ease;
  transition: 0.4s ease;
  -webkit-transition-property: background-color, color;
  -o-transition-property: background-color, color;
  transition-property: background-color, color;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input.search-submit:hover {
  background-color: #4C51BF;
  color: #fff;
}

.page-header {
  background: linear-gradient(135deg, #1f2a44 0%, #2d3e5f 100%);
  margin-top: 0;
  border-radius: 8px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  color: white;
  box-shadow: 0 10px 30px rgba(31, 42, 68, 0.15);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.archive-header-content {
  position: relative;
  z-index: 1;
}

.page-header .page-title,
.page-header .archive-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.page-header .archive-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.page-header .archive-description p {
  margin-bottom: 8px;
}

.page-header .archive-description p:last-child {
  margin-bottom: 0;
}

.archive-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.posts-count {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.archive-grid {
  margin-left: -7.5px;
  margin-right: -7.5px;
  gap: 15px;
	padding: 0 0 30px 0;
}

.archive-grid .col {
	padding-left: 7.5px !important;
	padding-right: 7.5px !important;
}

@media (max-width: 991px) {
	.archive-grid .col {
		flex: 0 0 50% !important;
		max-width: 50% !important;
	}
}

@media (max-width: 576px) {
	.archive-grid .col {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
}

.archive-grid .book-card {
	height: 100%;
}

.bg-similar-posts h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  text-transform: uppercase;
}

.bg-similar-posts h4::after {
  content: "";
  width: 40px;
  height: 3px;
  border-radius: 4px;
  background-color: #5a67d8;
  position: absolute;
  left: 0;
  bottom: -4px;
}

.bg-similar-posts .entry-title {
  font-size: 1.2rem;
}

.bg-similar-posts .card-body {
  padding: 1.25rem 1.75rem;
}

.bg-similar-posts .archive-post-card {
  height: 100%;
}

.bg-similar-posts .archive-post-card .post-thumbnail {
  height: 200px;
}

.bg-similar-posts .archive-post-card .post-thumbnail img {
  height: 200px;
}

.no-sidebar-single .bg-similar-posts {
  margin-bottom: 3rem;
  border-radius: 0.375rem;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

.comments-area {
  background-color: #fff;
  border-radius: 0.375rem;
  -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin: auto;
  margin-bottom: 3rem;
}

.comments-area .comments-area-body {
  max-width: 900px;
  padding: 2rem 3rem;
  margin: auto;
}

.comments-area .comment-list {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
  margin-bottom: 3rem;
}

.comments-area li.comment {
  margin-bottom: 2rem;
  border: 1px solid #E2E8F0;
  padding: 2rem;
  border-radius: 0.375rem;
  background-color: #F7FAFC;
}

.comments-area li.comment .children {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .comments-area .comments-area-body {
    padding: 1.5rem 1rem;
  }
  
  .comments-area li.comment {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .comments-area li.comment .children {
    padding-left: 0.75rem;
    margin-top: 1rem;
  }
  
  .comments-area .comment-form {
    padding: 1rem !important;
  }
  
  .comments-area .comment-form input[type="text"],
  .comments-area .comment-form input[type="email"],
  .comments-area .comment-form input[type="url"],
  .comments-area .comment-form textarea {
    font-size: 16px;
  }
}

.comments-area .comment-content {
  margin-top: 1rem;
}

.comments-area .comment-metadata {
  font-size: 0.85rem;
  color: #718096;
}

.comments-area .comment-metadata a {
  color: #718096;
}

.comments-area .comments-title {
  margin-bottom: 2rem;
  position: relative;
}

.comments-area .comments-title::after {
  content: "";
  width: 40px;
  height: 3px;
  border-radius: 4px;
  background-color: #667EEA;
  position: absolute;
  left: 0;
  bottom: -4px;
}

.comments-area .reply {
  font-size: 0.85rem;
}

.comments-area .reply a {
  color: #718096;
  font-weight: 500;
}

.comments-area .comment-reply-title {
  font-size: 1.25rem;
  position: relative;
}

.comments-area .comment-reply-title::after {
  content: "";
  width: 40px;
  height: 3px;
  border-radius: 4px;
  background-color: #667EEA;
  position: absolute;
  left: 0;
  bottom: -4px;
}

.comments-area #cancel-comment-reply-link {
  margin-left: 1rem;
}

.comments-area .comment-notes {
  color: #718096;
  font-size: 0.9rem;
}

.comments-area .comment-form label {
  font-weight: 500;
  font-size: 0.9rem;
}

.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
  display: block;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.comments-area input[type="submit"] {
  background-color: #5A67D8;
  display: inline-block;
  padding: 1rem;
  border-radius: 0.375rem;
  color: #EBF4FF;
  -webkit-transition: 0.4s ease;
  -o-transition: 0.4s ease;
  transition: 0.4s ease;
  -webkit-transition-property: background-color, color;
  -o-transition-property: background-color, color;
  transition-property: background-color, color;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comments-area input[type="submit"]:hover {
  background-color: #4C51BF;
  color: #fff;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 3rem;
}

.widget select {
  max-width: 100%;
}

.widget ul {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}

.widget ul li {
  margin-bottom: 0.75rem;
}

.widget a {
  color: #4A5568;
}

.widget a:hover {
  color: #5A67D8;
}

.widget .widget-title,
.widget .widgettitle {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  text-transform: uppercase;
}

.widget .widget-title::after,
.widget .widgettitle::after {
  content: "";
  width: 40px;
  height: 3px;
  border-radius: 4px;
  background-color: #5A67D8;
  position: absolute;
  left: 0;
  bottom: -4px;
}

.widget_recent_entries span.post-date {
  display: block;
  font-size: 0.85rem;
  color: #718096;
}

#secondary .widget {
  background-color: #fff;
  padding: 1.25rem 1.75rem;
  border-radius: 0.375rem;
  line-height: 1.5;
  font-size: 0.95rem;
  -webkit-box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#secondary .widget input.search-field {
  min-width: 195px;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

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

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: -ms-grid;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  -ms-grid-columns: (1fr)[2];
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  -ms-grid-columns: (1fr)[3];
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  -ms-grid-columns: (1fr)[4];
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  -ms-grid-columns: (1fr)[5];
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  -ms-grid-columns: (1fr)[6];
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  -ms-grid-columns: (1fr)[7];
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  -ms-grid-columns: (1fr)[8];
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  -ms-grid-columns: (1fr)[9];
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/
/* Jetpack infinite scroll
--------------------------------------------- */
/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
/* Accessibility
--------------------------------------------- */
/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #F7FAFC;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #2D3748;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;
  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;
  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

 /* Estilo da seção do livro */
.livro-single {
    display: flex;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Estilo da miniatura do livro */
.livro-thumbnail {
    overflow: hidden;
    height: auto;
    box-sizing: border-box;
    margin-bottom: 10px; /* Adicione margem inferior para espaço entre a miniatura e outros elementos */
}

.livro-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.livro-thumbnail:hover img {
    transform: scale(1.1);
}

/* Limpar layout após a div da miniatura do livro */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
/* Estilo dos detalhes do livro */
.livro-details {
    flex: 1; /* Ocupa o restante do espaço disponível */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Estilo do título do livro */
.entry-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

/* Estilo da área de meta do livro */
.entry-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.livro-meta {
    display: flex;
    flex-direction: column;
    vertical-align: middle;
}

.livro-meta-item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}

/* Estilo da descrição do livro */
.livro-description {
    margin-top: 20px;
    margin-bottom: 20px; /* Adicionei um espaçamento abaixo da descrição */
}

.livro-description-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

/* Estilo do conteúdo do livro */
.entry-content {
    font-size: 18px; /* Ajustei o tamanho da fonte para melhor legibilidade */
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Estilo do rodapé do livro */
.entry-footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 14px;
}

/* Estilo do container do livro-single */
.livro-single-container {
    display: flex;
    justify-content: space-between;
}
/* General Styles */
.livro-single {
    background: #fff;
    border-radius: .375rem;
    -webkit-box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
	
}

.livro-thumbnail {
    flex: 0 0 30%;
    margin-left: 20px; /* Adjusted margin to be on the right on desktop */
}

.livro-thumbnail-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
	padding:30px;
	margin-top: 15px;
}

.livro-details {
    flex: 1;
}

.entry-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.star-ratings {
    margin-bottom: 10px;
}

.livro-meta {
    margin-bottom: -10px;
}

.livro-meta-item {
    margin-right: 10px;
    display: inline-block;
	
}

.livro-meta-item a {
    color: #333;
    text-decoration: none;
}

.livro-description-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.livro-description {
    line-height: 1.6;
	margin-bottom: -10px
}

.download-subtitle {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Adicione o seguinte código ao seu arquivo de estilo CSS personalizado */
.download-button-pdf,
.download-button-epub {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 20px; /* Reduzindo o padding para tornar o botão menor */
    font-size: 1em; /* Reduzindo o tamanho da fonte */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 20px; /* Aumentando o raio da borda para tornar mais arredondado */
}

.download-button-pdf {
    background-color: #ff6347;
    color: #fff;
}

.download-button-epub {
    background-color: #008000;
    color: #fff;
}

.download-button-pdf:hover,
.download-button-epub:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.download-icon {
    margin-right: 5px; /* Reduzindo a margem do ícone para ajustar ao novo tamanho do botão */
}

/* Ajustes de layout para evitar quebra da sidebar */
.livro-single {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.livro-thumbnail {
  flex: 0 0 260px;
  max-width: 260px;
  margin: 0;
  padding: 0;
}

.livro-thumbnail-img {
  width: 100%;
  height: auto;
  border: 1px solid #e2e6f0;
  padding: 0;
  margin: 0;
  border-radius: 12px;
}

.livro-details {
  flex: 1 1 300px;
  min-width: 240px;
}

.livro-description-container-with-shadow,
.livro-details-buttons-container-with-shadow {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(20, 32, 62, 0.08);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.pdf-reader-section {
  margin-bottom: 24px;
}

.pdf-reader-section__card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
  padding: 18px 20px 22px;
  border: 1px solid #eef0f6;
}

.pdf-reader-section__title {
  margin: 0 0 14px;
  font-size: 22px;
  color: #1f2a44;
}

/* Botão de download (PDF) */
.botao-download,
.download-button-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff6a6a, #ff3d3d);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(255, 77, 77, 0.3);
}

.botao-download:hover,
.download-button-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 77, 77, 0.36);
}

/* Leitor de PDF */
.pdf-viewer {
  max-width: 100%;
  background: #f7f8fb;
  border: 1px solid #e7e9f1;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(20, 32, 62, 0.08);
}

.pdf-reader {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border-radius: 16px;
  padding: 10px;
  border: 1px solid #e5e9f5;
}

.pdf-reader__frame {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  height: clamp(520px, 78vh, 880px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.pdf-reader__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #f5f6fb;
}

/* Leitor PDF em modal fixo (sem overlay) */
.pdf-modal-static {
  background: #fff;
  width: 100%;
  max-width: 1120px;
  height: 820px;
  margin: 0 auto 24px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eef0f6;
}

.pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f6;
  background: #fafbff;
}

.pdf-modal__header h3 {
  margin: 0;
  font-size: 18px;
  color: #1f2a44;
}

.pdf-modal__body {
  padding: 14px 16px 18px;
  overflow: hidden;
  flex: 1 1 auto;
  background: #f7f8fb;
}

.pdf-modal__viewer {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e7e9f1;
  box-shadow: 0 12px 30px rgba(20, 32, 62, 0.08);
  padding: 8px;
  height: 100%;
}

.pdf-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  background: #f5f6fb;
}

@media (max-width: 768px) {
  .pdf-modal-static {
    height: 72vh;
  }

  .pdf-reader-section__card {
    padding: 12px;
    border-radius: 12px;
    margin-left: -10px;
    margin-right: -10px;
  }

  .pdf-reader-section__title {
    font-size: 18px;
  }

  .pdf-reader {
    padding: 6px;
    border-radius: 12px;
  }

  .pdf-reader__frame {
    height: 65vh;
    border-radius: 8px;
  }
  
  .pdf-reader__iframe {
    border-radius: 8px;
  }
}

.pdf-pages {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pdf-page {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 32, 62, 0.08);
  border: 1px solid #eef0f6;
}

.pdf-page-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #fafafa;
}

.pdf-page__loading,
.pdf-viewer__loading {
  font-size: 14px;
  color: #7a8090;
  text-align: center;
  padding: 12px 0;
}

/* Media query for screens smaller than 768px (adjust as needed) */
@media only screen and (max-width: 768px) {
    .livro-single {
        flex-direction: column;
    }

    .livro-thumbnail {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    }

    .livro-details {
        margin-top: 20px;
    }
}

@media (max-height: 257px) {
    .archive-post-card .post-thumbnail {
        max-height: 257px;
    }
}

/* Estilo para breadcrumbs */
.breadcrumbs {
    margin-bottom: 4px;
  font-size: 13px;
  color: #7a8090;
  letter-spacing: 0.2px;
}

.breadcrumbs a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #1f2a44;
}

.breadcrumbs span.separator,
.breadcrumbs .separator {
  margin: 0 6px;
  color: #c0c4d0;
}

/* Formulário de upload de PDF */
.pdf-upload-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(20, 32, 62, 0.08);
  border: 1px solid #eef0f6;
  padding: 20px;
  max-width: 820px;
  margin: 0 auto 24px;
}

.pdf-upload__notice {
  margin: 0 0 8px;
  font-weight: 600;
  color: #1f2a44;
}

.pdf-upload__notice--review {
  color: #9a3412;
}

.pdf-form-errors {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 600;
}

.pdf-draft-status {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.pdf-upload__preview a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.pdf-upload__preview a:hover {
  text-decoration: underline;
}

.pdf-upload-form {
  display: grid;
  gap: 16px;
}

.pdf-form-group {
  display: grid;
  gap: 16px;
}

.pdf-form-group--two {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: start;
}

.pdf-form-row {
  display: grid;
  gap: 8px;
}

.pdf-cover-preview {
  width: 140px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(31, 42, 68, 0.12);
}

.pdf-form-hint {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 8px 0;
  line-height: 1.4;
}

.pdf-custom-image-preview {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.pdf-custom-image-preview__content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pdf-custom-image-preview__img {
  width: 100px;
  height: 133px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(31, 42, 68, 0.1);
  flex-shrink: 0;
}

.pdf-custom-image-preview__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-custom-image-preview__filename {
  font-weight: 600;
  color: #1f2a44;
  font-size: 14px;
  margin: 0;
  word-break: break-all;
}

.pdf-custom-image-preview__dimensions {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.pdf-custom-image-remove {
  align-self: flex-start;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdf-custom-image-remove:hover {
  background: #e74c3c;
  color: #fff;
}

.pdf-form-row__tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdf-category-search {
  flex: 1 1 200px;
  border: 1px solid #d7dbe8;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  background: #f9fafc;
}

.pdf-category-reset,
.pdf-field-reset,
.pdf-draft-reset {
  border: 1px solid #d7dbe8;
  background: #fff;
  color: #1f2a44;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.pdf-field-reset,
.pdf-draft-reset {
  justify-self: start;
}

.pdf-form-row label {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
}

.pdf-form-row input[type="text"],
.pdf-form-row input[type="file"],
.pdf-form-row textarea,
.pdf-form-row select {
  width: 100%;
  border: 1px solid #d7dbe8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #f9fafc;
}

.pdf-file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.pdf-file-item {
  font-size: 13px;
  color: #475569;
}

.pdf-form-row textarea {
  resize: vertical;
  min-height: 160px;
}

.pdf-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: #1f2a44;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(31, 42, 68, 0.25);
}

.pdf-form-submit__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  display: inline-block;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pdf-form-submit.is-loading .pdf-form-submit__spinner {
  opacity: 1;
  transform: scale(1);
  animation: pdf-spin 0.7s linear infinite;
}

.pdf-form-submit.is-loading .pdf-form-submit__label {
  opacity: 0.75;
}

@keyframes pdf-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pdf-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 42, 68, 0.3);
}

@media (max-width: 720px) {
  .pdf-form-group--two {
    grid-template-columns: 1fr;
  }
}

/* Quick create buttons for author and category */
.pdf-form-row__admin-create {
  display: block;
  margin-bottom: 12px;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.pdf-form-row__admin-create input[type="text"] {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  color: #333;
  box-sizing: border-box;
}

.pdf-form-row__admin-create input[type="text"]:focus {
  outline: none;
  border-color: #1f2a44;
  box-shadow: 0 0 4px rgba(31, 42, 68, 0.2);
}

.pdf-author-create-btn,
.pdf-category-create-btn {
  display: inline-block;
  padding: 8px 12px;
  background: linear-gradient(135deg, #1f2a44 0%, #2d3e5f 100%);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.pdf-author-create-btn:hover,
.pdf-category-create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 42, 68, 0.3);
}

.pdf-author-create-btn:active,
.pdf-category-create-btn:active {
  transform: translateY(0);
}

.pdf-form-row__admin-create small {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Mensagem de sucesso */
.pdf-upload-success {
  display: block;
  padding: 16px 20px;
  margin-bottom: 24px;
  background-color: #ecfdf5;
  border-left: 4px solid #10b981;
  color: #065f46;
  font-weight: 500;
  border-radius: 6px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Descrição com "ver mais" */
.pdf-description {
  display: grid;
  gap: 12px;
}

.pdf-description__content {
  max-height: 18em;
  overflow: hidden;
  position: relative;
}

.pdf-description[data-expanded="true"] .pdf-description__content {
  max-height: none;
  overflow: visible;
}

.pdf-description__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5em;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,1));
}

.pdf-description[data-expanded="true"] .pdf-description__content::after {
  display: none;
}

.pdf-description__toggle {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: #1f2a44;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.pdf-description__toggle:hover {
  text-decoration: underline;
}

/* Espaçamentos padronizados (desktop e mobile) */
.livro-single {
  gap: 24px;
  padding: 16px;
}

.livro-details {
  padding: 8px 8px 16px;
}

.entry-header {
  margin-bottom: 8px;
}

.entry-title {
  margin: 6px 0 0;
}

.breadcrumbs {
  margin-top: 0;
}

.livro-description-container-with-shadow,
.livro-details-buttons-container-with-shadow {
  margin: 16px 0;
}

.livro-description {
  margin: 0;
}

.pdf-modal-static {
  margin-top: 12px;
}

@media (max-width: 768px) {
  .livro-single {
    flex-direction: column;
    gap: 16px;
    padding: 12px;
  }

  .livro-thumbnail {
    margin: 0;
  }

  .livro-thumbnail-img {
    padding: 16px;
  }

  .livro-details {
    padding: 0 4px 8px;
  }

  .livro-description-container-with-shadow,
  .livro-details-buttons-container-with-shadow {
    margin: 12px 0;
    padding: 16px;
  }
}
/* Estilo para a seção de posts relacionados */
.related-posts {
    margin-top: 30px;
}

/* Posts relacionados usam o mesmo estilo da home (archive-post-book e book-cover) */
.related-posts-container .archive-post-book {
    margin-bottom: 0;
}

.related-posts-container .book-cover {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    object-position: center;
    padding: 4px;
    box-sizing: border-box;
    background-color: #f9fafb;
    margin: 0 auto 6px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(20, 32, 62, 0.12);
}

@media (max-width: 767px) {
    .related-posts-container .book-cover {
        aspect-ratio: 2 / 3;
        border-radius: 5px;
    }
}
/* Adicione estilos adicionais conforme necessário */
/* Grid Responsivo */
/* Mobile First: 1 coluna por padrão */
.row-cols-1 .col,
.row-cols-sm-1 .col,
.row-cols-md-1 .col {
  flex: 0 0 100%;
  max-width: 100%;
}

.row-cols-sm-2 .col {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Tablet: 2-3 colunas */
@media (min-width: 576px) {
  .row-cols-sm-2 .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Desktop: 5 colunas */
@media (min-width: 768px) {
  .row-cols-md-2 .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .row-cols-md-3 .col {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
  .row-cols-md-4 .col {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .row-cols-md-5 .col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (min-width: 768px) {
	.site-main .row.row-cols-md-3 > .col,
	.site-main .row.archive-grid.row-cols-md-3 > .col {
		flex: 0 0 33.33% !important;
		max-width: 33.33% !important;
	}
}

.download-button-pdf,
.download-button-epub,
.read-online-button {
    margin-right: 10px; /* Ajuste o espaçamento horizontal conforme necessário */
    margin-bottom: 5px; /* Adicione um espaçamento vertical entre os botões */
}

.read-online-button {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px; /* Adicione um espaçamento vertical entre os botões */
    padding: 10px 20px;
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 20px;
    background-color: #007bff; /* Cor de fundo azul */
    border-color: #007bff; /* Cor da borda azul */
    color: #fff; /* Cor do texto branco */
}

.read-online-button:hover {
    background-color: rgba(0, 123, 255, 0.8); /* Cor de fundo azul com transparência ao passar o mouse */
    border-color: rgba(0, 123, 255, 0.8); /* Cor da borda azul com transparência ao passar o mouse */
}


#pdf-viewer-container {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
}

#pdf-viewer-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}

@media (max-width: 767px) {
    #pdf-viewer-container {
        padding: 10px;
        margin-top: 15px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    #pdf-viewer-container iframe {
        height: 500px;
        border-radius: 0;
    }
}

/* ========================================
   SEÇÕES DA HOME PAGE
   ======================================== */

/* Container dos livros em destaque */
.highlighted-books-container {
    margin-bottom: 50px;
    padding: 30px 0;
}

/* Header das seções */
.section-header {
    text-align: center;
    margin-bottom: 35px;
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contêiner de uma seção */
.section-home {
	margin-bottom: 25px;
}

/* Header da seção (título + subtítulo) */
.section-header {
	margin-bottom: 16px;
}

/* Título da seção */
.section-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 8px;
	letter-spacing: -0.3px;
}

/* Subtítulo da seção */
.section-subtitle {
	font-size: 0.95rem;
	color: #6b7280;
	margin: 0;
	font-weight: 400;
	letter-spacing: 0.2px;
}

/* Grid das seções */
.section-home .row {
	gap: 15px;
	margin-left: -7.5px;
	margin-right: -7.5px;
}

.section-home .col {
	padding-left: 7.5px !important;
	padding-right: 7.5px !important;
}

/* Garante alinhamento perfeito dos cards */
.section-home .col > * {
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* ===== New Front Theme (override) ===== */
:root {
  --bg: #e9eff4;
  --surface: #ffffff;
  --ink: #14213d;
  --muted: #4b5563;
  --accent: #1f7a8c;
  --accent-2: #e07a5f;
  --ring: rgba(31, 122, 140, 0.18);
  --shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

body {
  font-family: 'Sora', 'Segoe UI', Tahoma, sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, #f3f7fb 0%, #e9eff4 55%, #e7eef3 100%);
  color: var(--ink);
}

.site {
  background: transparent;
}

.container {
  max-width: 1440px;
}

.site-header {
  background: linear-gradient(120deg, #0f172a 0%, #1f2937 55%, #0b1326 100%);
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.header-top-bar {
  background: transparent;
}

.header-inner {
  padding: 18px 0;
  gap: 24px;
}

.site-branding .site-title a {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.5px;
}

.site-description {
  color: rgba(248, 250, 252, 0.7);
}

.main-navigation a {
  color: #e2e8f0;
  font-weight: 600;
}

.main-navigation a:hover {
  color: #ffffff;
}

.header-search-wrapper .search-form input[type="search"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.header-search-wrapper .search-form button {
  background: var(--accent);
  color: #ffffff;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
    gap: 12px;
  }

  .site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .site-branding .site-title a {
    font-size: 1.35rem;
  }

  .site-description {
    font-size: 0.85rem;
  }

  .header-right-side {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .menu-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
  }

  .header-search-wrapper .search-form {
    display: flex;
    gap: 8px;
  }

  .header-search-wrapper .search-form input[type="search"] {
    width: 100%;
    min-width: 0;
  }
}

.site-content {
  padding-top: 2.5rem;
}

/* Sidebar + main layout */
.sidebar-left {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  border: 1px solid #eef2f6;
}

.sidebar-left #secondary .widget {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.sidebar-left #secondary .widget + .widget {
  margin-top: 18px;
}

@media (min-width: 768px) {
  .sidebar-left {
    flex: 0 0 22%;
    max-width: 22%;
    position: sticky;
    top: 24px;
    height: fit-content;
  }
  .sidebar-left + .site-main {
    flex: 0 0 78%;
    max-width: 78%;
  }
}

/* Section headers */
.section-header {
  margin-bottom: 18px;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.9rem;
  color: var(--ink);
  letter-spacing: -0.4px;
}

/* Archive header */
.archive-header,
.taxonomy-header,
.page-header {
  background: linear-gradient(135deg, #16213e 0%, #1f2a44 60%, #2d3e5f 100%);
  border-radius: 16px;
  padding: 28px 28px;
  color: #f8fafc;
  box-shadow: var(--shadow);
}

.archive-title,
.page-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  color: #f8fafc;
}

.archive-description,
.taxonomy-description {
  color: rgba(248, 250, 252, 0.8);
}

.taxonomy-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.taxonomy-header__photo {
  flex: 0 0 auto;
  position: relative;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.taxonomy-header__photo img {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.taxonomy-header__content .page-title {
  margin-bottom: 8px;
  letter-spacing: -0.6px;
}

.taxonomy-header__content .taxonomy-description {
  font-size: 1.02rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .taxonomy-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.archive-meta .posts-count {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

/* PDF grid */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
}

.pdf-grid > .col {
  padding: 0;
}

@media (max-width: 1400px) {
  .pdf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .pdf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .pdf-grid {
    grid-template-columns: 1fr;
  }
}

/* Card redesign */
.book-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border: 1px solid #eef2f6;
  transform: translateZ(0);
}

.book-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.book-cover-link {
  background: #f7f9fc;
}

.book-cover {
  padding: 10px;
  background: #f7f9fc;
}

.book-info {
  padding: 12px 14px 6px;
}

.book-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.book-author {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.book-action {
  padding: 0 14px 14px;
}

.book-download-btn {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  padding: 10px 12px;
}

.book-download-btn:hover {
  filter: brightness(1.05);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5f5;
}

.site-footer a {
  color: #cbd5f5;
}

@media (max-width: 768px) {
	.section-home {
		margin-bottom: 30px;
	}
	
	.section-title {
		font-size: 1.5rem;
	}
	
	.section-subtitle {
		font-size: 0.9rem;
	}
	
	.section-header {
		margin-bottom: 20px;
	}
}

/* Linha de posts */
.bg-posts-row {
    gap: 8px;
    margin-bottom: 0;
}

/* Override Bootstrap spacing - APENAS para grids de cards com g-3 */
.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    gap: 15px !important;
}

.row {
	--bs-gutter-x: 1rem;
	--bs-gutter-y: 1rem;
}

/* Row cols responsivo */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .section-header {
        margin-bottom: 25px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
}

/* Destacar os livros em destaque */
.highlighted-books {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    padding: 20px;
    border-radius: 14px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 30px !important;
}

.highlighted-books .archive-post-book {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.highlighted-books .archive-post-book:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* ===== ESTILOS DOS CARDS DO CATÁLOGO ===== */

/* Card principal */
.book-card,
.archive-post-book {
	display: flex;
	flex-direction: column;
	align-items: center;
	border: none;
	margin-bottom: 12px;
	padding: 0;
	background-color: #fff;
	text-align: center;
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09), 0 1px 3px rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	gap: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	position: relative;
}

.book-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #5a67d8, #a855f7);
	z-index: 2;
}

.book-card:hover,
.archive-post-book:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Link da capa */
.book-cover-link {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 12px 12px 0 0;
	background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
	position: relative;
}

.book-cover-link::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, transparent 0%, rgba(90, 103, 216, 0.05) 100%);
	z-index: 1;
	pointer-events: none;
}

/* Imagem da capa */
.book-cover {
	width: 100%;
	height: 100%;
	aspect-ratio: 2 / 3;
	object-fit: contain;
	object-position: center;
	padding: 8px;
	box-sizing: border-box;
	background: white;
	border-radius: 12px 12px 0 0;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	z-index: 0;
}

.book-cover-link:hover .book-cover {
	transform: scale(1.05);
}

/* Rating com estrelas */
.book-rating {
	margin: 2px 0 0 0;
	min-height: 16px;
	display: flex;
	justify-content: center;
	width: 100%;
}

.book-rating .bg-rating {
  align-items: center;
}

.book-rating .bg-rating__buttons,
.book-rating .bg-rating__message {
  display: none;
}

/* Informações do livro (título + autor) */
.book-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 6px;
	padding: 12px 10px 8px;
	width: 100%;
  min-height: 76px;
}

/* Título do livro */
.book-title {
	margin: 0;
	padding: 0;
  font-size: 12px;
  line-height: 1.25;
	font-weight: 700;
	color: #1f2a44;
	letter-spacing: -0.3px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-title a {
	color: #1f2a44;
	text-decoration: none;
	font-weight: 700;
	transition: color 0.25s ease;
}

.book-title a:hover {
	color: #5a67d8;
	text-decoration: none;
}

/* Autor do livro */
.book-author {
	margin: 0;
	padding: 0;
	font-size: 11px;
	color: #718096;
	line-height: 1.3;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2px;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: initial;
}

/* Rating personalizado */
.bg-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.bg-rating__stars {
  --star-size: 13px;
  --star-color: #e2e8f0;
  --star-fill: var(--accent, #5a67d8);
  position: relative;
  display: inline-block;
  font-size: var(--star-size);
  line-height: 1;
  letter-spacing: 2px;
}

.bg-rating__stars::before {
  content: "★★★★★";
  color: var(--star-color);
}

.bg-rating__stars::after {
  content: "★★★★★";
  color: var(--star-fill);
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
}

.bg-rating__meta {
  font-size: 11px;
  color: #64748b;
}

.bg-rating__buttons {
  display: flex;
  gap: 6px;
}

.bg-rating__button {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 16px;
  color: var(--accent, #5a67d8);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bg-rating__button:hover {
  color: var(--accent-2, #7c3aed);
  border-color: rgba(90, 103, 216, 0.3);
  transform: translateY(-1px);
}

.bg-rating.is-rated .bg-rating__button,
.bg-rating.is-rated .bg-rating__button:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.bg-rating__message {
  font-size: 12px;
  color: #475569;
}

.livro-rating--compact .bg-rating {
	flex-direction: row;
	align-items: center;
	gap: 6px;
}

.livro-rating--compact .bg-rating__stars {
	display: none;
}

.livro-rating--compact .bg-rating__meta {
  font-size: 14px;
	color: #64748b;
	margin: 0;
}

.livro-rating--compact .bg-rating__message {
	display: none;
}

.livro-rating--compact .bg-rating__buttons {
  gap: 4px;
}

.livro-rating--compact .bg-rating__button {
	background: transparent;
	border: none;
	width: auto;
	height: auto;
  font-size: 14px;
  line-height: 1.2;
	padding: 0;
	color: var(--accent, #5a67d8);
}

/* Ação do livro (botão) */
.book-action {
	width: 100%;
	padding: 0;
	background: #f8f9fb;
	flex: 1;
	display: flex;
	align-items: flex-end;
}

.book-download-btn {
	display: block;
	width: 100%;
	padding: 10px 12px;
	background: linear-gradient(135deg, #5a67d8 0%, #667eea 50%, #a855f7 100%);
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.book-download-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.5s ease, height 0.5s ease;
}

.book-download-btn:hover {
	background: linear-gradient(135deg, #4c51bf 0%, #556dd3 50%, #9333ea 100%);
	color: #fff;
	text-decoration: none;
	transform: translateY(0);
}

.book-download-btn:hover::before {
	width: 300px;
	height: 300px;
}

/* ===== RESPONSIVO PARA DESKTOP (md+) ===== */
@media (min-width: 768px) {
	.book-card,
	.archive-post-book {
		max-width: 210px;
	}
	
	.book-title {
		font-size: 12px;
	}
	
	.book-author {
		font-size: 11px;
	}
	
	.book-download-btn {
		padding: 6px 10px;
		font-size: 10px;
	}
}

/* ===== RESPONSIVO PARA MOBILE ===== */
@media (max-width: 767px) {
	.book-card,
	.archive-post-book {
		max-width: 100%;
		margin-bottom: 8px;
	}
	
	.book-info {
		min-height: 35px;
		padding: 3px 5px 0;
	}
	
	.book-title {
		font-size: 11px;
	}
	
	.book-author {
		font-size: 10px;
	}
	
	.book-download-btn {
		padding: 5px 8px;
		font-size: 9px;
	}
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.related-posts-container-container {
    margin-top: 20px; /* Ajuste conforme necessário */
}

.related-posts-container-with-shadow {
  box-shadow: 0 10px 24px rgba(20, 32, 62, 0.08);
  padding: 18px;
  border-radius: 12px;
  background: #fff;
}

.related-posts h3 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #1f2a44;
}

.related-posts-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 992px) {
  .related-posts-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .related-posts-container {
    grid-template-columns: 1fr;
  }
}

.livro-description-container-with-shadow,
.livro-details-buttons-container-with-shadow {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adapte a sombra conforme necessário */
    padding: 20px; /* Ajuste conforme necessário */
    border-radius: 8px; /* Adapte conforme necessário para cantos arredondados */
    margin-bottom: 20px; /* Ajuste conforme necessário */
}

/* DMCA Report Button */
.dmca-report-button-container {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.dmca-report-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.dmca-report-link:hover {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #7f1d1d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
    border-color: #f87171;
}

.dmca-report-link svg {
    flex-shrink: 0;
}

/* DMCA Report Page */
.dmca-report-page {
    padding: 40px 0;
}

.dmca-report-page h1 {
    font-size: 32px;
    color: #991b1b;
    margin-bottom: 30px;
    text-align: center;
}

.dmca-post-info {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.dmca-post-thumb {
    flex-shrink: 0;
}

.dmca-post-thumb img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dmca-post-details h2 {
    font-size: 20px;
    margin: 0 0 8px;
    color: #1f2937;
}

.dmca-post-details a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.dmca-post-details a:hover {
    text-decoration: underline;
}

/* DMCA Report Form */
.dmca-report-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid #fee2e2;
}

.dmca-report-description {
    color: #4b5563;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.dmca-report-form {
    max-width: 100%;
}

.dmca-form-row {
    margin-bottom: 20px;
}

.dmca-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.dmca-form-row input[type="text"],
.dmca-form-row input[type="email"],
.dmca-form-row input[type="url"],
.dmca-form-row select,
.dmca-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dmca-form-row input:focus,
.dmca-form-row select:focus,
.dmca-form-row textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.dmca-form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.dmca-submit-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    margin-top: 10px;
    width: 100%;
}

.dmca-submit-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.dmca-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 15px;
}

.dmca-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.dmca-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

@media (max-width: 767px) {
    .dmca-report-page {
        padding: 20px 0;
    }
    
    .dmca-report-page h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .dmca-post-info {
        flex-direction: column;
        text-align: center;
    }
    
    .dmca-post-thumb img {
        width: 80px;
    }
    
    .dmca-report-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .dmca-form-row input,
    .dmca-form-row select,
    .dmca-form-row textarea {
        font-size: 16px; /* Evita zoom em iOS */
    }
    
    .dmca-report-link {
        font-size: 13px;
        padding: 10px 18px;
    }
}








