/*--------------------------------------------------------------
# Single Post
--------------------------------------------------------------*/
.site-content {
  display: flex;
  gap: 3em;
  padding: 2em 0;
}

.site-main {
  flex: 1;
  min-width: 0;
}

#secondary {
  width: 300px;
  flex-shrink: 0;
}

.single .entry-header {
  margin-bottom: 2em;
}

.single .entry-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: var(--color-navy);
}

.single .entry-meta {
  color: #666;
  font-size: 16px;
}

.single .entry-meta .posted-on,
.single .entry-meta .byline,
.single .entry-meta .cat-links {
  display: inline-block;
}

.single .post-thumbnail img {
  border-radius: 8px;
  margin-bottom: 2em;
}

.entry-content p {
  font-size: 18px;
  line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
  font-size: 18px;
}

.entry-content table {
  font-size: 18px;
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background-color: #fff;
}

.entry-content table th,
.entry-content table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e5e5e5;
}

.entry-content table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: var(--color-navy);
}

.entry-content table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.entry-content table tr:nth-child(odd) {
  background-color: #fff;
}

.entry-content table tr:hover {
  background-color: var(--main-gray-50);
  transition: background-color 0.2s ease;
}

.entry-content h2,
.entry-content h3 {
  color: var(--color-navy);
  margin-top: 1em;
  margin-bottom: 1em;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-gold);
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
}

/* Sidebar Widgets */
.widget {
  margin-bottom: 2.5em;
}

.widget-title {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 1em;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.5em;
}

.widget_criticopolis_recomenda {
  background-color: var(--color-gold);
  padding: 1.5em;
  border-radius: 8px;
  color: var(--color-navy);
}

.widget_criticopolis_recomenda .widget-title {
  color: var(--color-navy);
  border-bottom: none;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.widget_criticopolis_recomenda p {
  margin-bottom: 1em;
}

.widget_criticopolis_recomenda .button {
  background-color: var(--color-green);
  color: var(--color-white);
  padding: 0.8em 1.5em;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  width: 100%;
}

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

.widget_mais_lidas ul li {
  display: flex;
  align-items: center;
  margin-bottom: 1em;
}

.widget_mais_lidas ul li img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 1em;
  border-radius: 4px;
}

.widget_mais_lidas ul li a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
}

.single-post-thumbnail {
  margin-bottom: 2em;
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-post-header {
  margin-top: 22px;
}

.single-post-header .entry-title {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 600;
  color: #303030;
  font-weight: bold;
  line-height: 1.2;
}

.single-post-header .entry-meta {
  margin-bottom: 0rem;
  font-size: 16px;
}

.single-post-header .entry-meta a {
  text-decoration: none;
  color: var(--color-navy);
}

/* Post Meta - Authors, Date, Reading Time */
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.single-post-meta .meta-authors {
  display: flex;
  align-items: center;
  gap: 12px;
}

.single-post-meta .author-avatars {
  display: flex;
  align-items: center;
  position: relative;
}

.single-post-meta .author-avatar {
  display: inline-block;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  line-height: 0;
}

.single-post-meta .author-avatar img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.single-post-meta .author-avatar:not(:first-child) {
  margin-left: -12px;
}

.single-post-meta .author-names {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: var(--main-gray-950);
}

.single-post-meta .meta-date,
.single-post-meta .meta-reading-time {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--main-gray-200);
  padding-left: 20px;
}

.single-post-meta .meta-date img,
.single-post-meta .meta-reading-time img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.single-post-meta .meta-date .posted-on,
.single-post-meta .meta-reading-time .reading-time {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: var(--main-gray-950);
}

.single-post-meta .meta-date .posted-on a {
  color: var(--main-gray-950);
  text-decoration: none;
}

.single-post-meta .meta-date .posted-on a:hover {
  color: var(--main-blue-950);
}

/* Hide the updated time in the meta */
.single-post-meta .posted-on .updated {
  display: none;
}

@media (max-width: 767px) {
  .single-post-meta {
    gap: 16px;
  }

  .single-post-meta .author-names {
    font-size: 14px;
  }

  .single-post-meta .meta-date .posted-on,
  .single-post-meta .meta-reading-time .reading-time {
    font-size: 14px;
  }
}

.single-post-resume {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--main-gray-600);
}

.single-post-breadcrumbs {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.single-post-breadcrumbs a {
  text-decoration: none;
  color: var(--color-navy);
}

.single-post-breadcrumbs span {
  margin: 0 0.5em;
}

.single-post-content {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 30px;
  margin: 0 auto;
  max-width: 690px;
  color: #303030;
}

.single-post-content.with-sidebar {
  max-width: 100%;
  flex: 1;
}

.single-post-content p {
  margin-bottom: 1em;
}

.single-post-content a {
  color: var(--main-blue-700);
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

.single-post-content a:hover {
  color: var(--main-blue-900);
  text-decoration: underline;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
  color: var(--main-blue-950);
  font-weight: 600;
}

.single-post-content h2 {
  font-size: 32px;
}

.single-post-content h3 {
  font-size: 24px;
}

.single-post-content h4 {
  font-size: 20px;
}

.single-post-content h5 {
  font-size: 18px;
}

.single-post-content h6 {
  font-size: 16px;
}

/* WordPress Image Block with Caption */
.single-post-content .wp-block-image {
  margin: 2em 0;
}

.single-post-content .wp-block-image figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.single-post-content .wp-block-image figure.aligncenter {
  text-align: center;
}

.single-post-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-post-content .wp-block-image figcaption,
.single-post-content .wp-block-image .wp-element-caption {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #5d5d5d;
  margin-top: 12px;
  text-align: center;
  width: 100%;
  max-width: 690px;
}

/*--------------------------------------------------------------
# Author Info Card
--------------------------------------------------------------*/
.author-card-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  margin-bottom: 18px;
}

.subauthor-card-wrapper {
  margin: 0px;
  background: var(--main-blue-950);
  border-radius: 16px;
  padding: 32px 40px;
  margin: 0 auto;
  max-width: 690px;
}

.subauthor-card-wrapper .author-info-card {
  border-radius: 0;
  padding: 10px 0;
  margin: 0;
}

.subauthor-card-wrapper .author-info-card:first-child {
  border-bottom: 2px solid var(--main-gray-100);
  padding-bottom: 32px;
}

.subauthor-card-wrapper .author-info-card:last-child {
  padding-top: 32px;
}

.author-info-card {
  background: var(--main-blue-950);
  border-radius: 16px;
  padding: 32px 40px;
  margin: 0 auto;
  max-width: 690px;
}

/* Full width for sidebar layout */
.single-post-content.with-sidebar .author-info-card {
  max-width: 100%;
}

.author-info-card-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.author-info-avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.author-info-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.author-info-content {
  flex: 1;
  min-width: 0;
}

.author-info-top-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

h3.author-info-name {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.author-info-name a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-info-name a:hover {
  color: var(--color-gold);
}

.author-info-bio {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.author-info-social {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 24px;
}

.author-info-social a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info-social a:hover {
  transform: translateY(-2px);
}

.author-info-social a img {
  width: 20px;
  height: 20px;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
  .author-info-card {
    max-width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .author-card-wrapper {
    margin: 32px 0 24px;
  }

  .author-info-card {
    padding: 24px;
    border-radius: 12px;
  }

  .author-info-card-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .author-info-avatar {
    width: 80px;
    height: 80px;
  }

  .author-info-name {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .author-info-bio {
    font-size: 14px;
  }

  .author-info-social {
    margin-left: 0;
    padding-left: 0;
    justify-content: center;
  }

  .author-info-social a {
    width: 36px;
    height: 36px;
  }

  .author-info-social a img {
    width: 18px;
    height: 18px;
  }

  .author-info-top-wrapper {
    flex-direction: column;
    gap: 8px;
  }
}

@media screen and (max-width: 480px) {
  .author-info-card {
    padding: 20px;
  }

  .site-main iframe {
    max-height: 218px;
  }

  .author-info-card-inner {
    gap: 16px;
  }

  .author-info-avatar {
    width: 70px;
    height: 70px;
    border-width: 3px;
  }

  .author-info-name {
    font-size: 18px;
  }

  .author-info-bio {
    font-size: 13px;
    line-height: 1.5;
  }

  .author-info-social {
    gap: 12px;
  }

  .author-info-social a {
    width: 32px;
    height: 32px;
  }

  .author-info-social a img {
    width: 16px;
    height: 16px;
  }
}

/*--------------------------------------------------------------
# Additional Mobile Styles for Single Posts
--------------------------------------------------------------*/

@media screen and (max-width: 991px) {
  .single-post-header .entry-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .single-post-resume {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .single-post-content {
    font-size: 18px;
    max-width: 100%;
  }

  .single-post-content h2 {
    font-size: 28px;
  }

  .single-post-content h3 {
    font-size: 22px;
  }

  .single-post-content h4 {
    font-size: 18px;
  }

  .single-post-content h5 {
    font-size: 16px;
  }

  .single-post-content h6 {
    font-size: 14px;
  }

  .single-post-content .wp-block-image figcaption,
  .single-post-content .wp-block-image .wp-element-caption {
    font-size: 13px;
    margin-top: 8px;
  }
}

@media screen and (max-width: 767px) {
  #featured-video-iframe {
    width: 100%;
    height: 300px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .single-post-header {
    margin-top: 16px;
  }

  .single-post-header .entry-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .single-post-resume {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .single-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
  }

  .single-post-meta .meta-date,
  .single-post-meta .meta-reading-time {
    border-left: none;
    padding-left: 0;
  }

  .single-post-content {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .single-post-content h2 {
    font-size: 24px;
  }

  .single-post-content h3 {
    font-size: 20px;
  }

  .single-post-content h4 {
    font-size: 16px;
  }

  .single-post-content h5 {
    font-size: 14px;
  }

  .single-post-content h6 {
    font-size: 13px;
  }

  .single-post-content blockquote {
    font-size: 1.1rem;
    padding-left: 1rem;
    margin: 1.5em 0;
  }

  .single-post-content .wp-block-image {
    margin: 1.5em 0;
  }

  .single-post-content .wp-block-image figcaption,
  .single-post-content .wp-block-image .wp-element-caption {
    font-size: 12px;
    margin-top: 6px;
  }

  .author-card-wrapper {
    margin: 24px 0 20px;
  }

  .author-info-card {
    padding: 20px;
  }

  .author-info-card-inner {
    gap: 16px;
  }

  .author-info-avatar {
    width: 80px;
    height: 80px;
  }

  .author-info-name {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .author-info-bio {
    font-size: 14px;
  }

  .author-info-social {
    gap: 12px;
  }

  .author-info-social a {
    width: 36px;
    height: 36px;
  }

  .author-info-social a img {
    width: 18px;
    height: 18px;
  }
}

#featured-video-iframe {
  width: 1280px;
  height: 558px;
}

@media screen and (max-width: 480px) {
  #featured-video-iframe {
    width: 100%;
    height: 100%;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .single-post-header,
  .single .entry-header {
    margin-bottom: 0px;
  }

  .single .post-thumbnail img {
    margin-bottom: 0px;
  }

  .single-post-thumbnail {
    margin: 14px 0;
  }

  .single-post-header .entry-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  .single-post-resume {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .single-post-meta {
    gap: 10px;
    margin-top: 12px;
    display: flex;
  }

  .single-post-meta .author-avatar img {
    width: 24px;
    height: 24px;
  }

  .single-post-meta .author-names {
    font-size: 13px;
  }

  .single-post-meta .meta-date .posted-on,
  .single-post-meta .meta-reading-time .reading-time {
    font-size: 13px;
  }

  .single-post-content {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .single-post-content h2 {
    font-size: 24px;
  }

  .single-post-content h3 {
    font-size: 22px;
  }

  .single-post-content h4 {
    font-size: 20px;
  }

  .single-post-content h5 {
    font-size: 18px;
  }

  .single-post-content h6 {
    font-size: 16px;
  }

  .single-post-content blockquote {
    font-size: 1rem;
    padding-left: 0.75rem;
    margin: 1em 0;
  }

  .single-post-content .wp-block-image {
    margin: 1em 0;
  }

  .single-post-content .wp-block-image figcaption,
  .single-post-content .wp-block-image .wp-element-caption {
    font-size: 11px;
    margin-top: 4px;
  }

  .author-card-wrapper {
    margin: 20px 0 16px;
  }

  .author-info-card {
    padding: 16px;
  }

  .author-info-card-inner {
    gap: 12px;
  }

  .author-info-avatar {
    width: 70px;
    height: 70px;
    border-width: 3px;
  }

  .author-info-name {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .author-info-bio {
    font-size: 13px;
    line-height: 1.5;
  }

  .author-info-social {
    gap: 10px;
  }

  .author-info-social a {
    width: 32px;
    height: 32px;
  }

  .author-info-social a img {
    width: 16px;
    height: 16px;
  }
}
