/* Cara o Cruz adjustments on top of the imported template styles. */

/* Keep the official horizontal brand mark crisp and proportional. */
img[src*="logo-caraocruz"] {
  width: auto;
  max-width: 100%;
}

/* Numbered "Más Leídas" list, as in the original template. */
.jetpack_top_posts_widget ul {
  counter-reset: rb-top-posts;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jetpack_top_posts_widget li {
  counter-increment: rb-top-posts;
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.jetpack_top_posts_widget li:last-child {
  border-bottom: 0;
}

.jetpack_top_posts_widget li::before {
  content: counter(rb-top-posts);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  line-height: 26px;
  width: 26px;
  min-width: 26px;
  height: 26px;
  text-align: center;
  border-radius: 50%;
  flex: 0 0 26px;
}

/* Sponsored slots keep the template's centered, full-width behaviour. */
.elementor-shortcode img[alt="Publicidad"], .elementor-shortcode .v2-ad {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* --- Cara o Cruz brand adjustments (footer, ads, sections) --- */

/* Footer uses the brand navy from the logo instead of black. */
#site-footer,
.footer-wrap,
.footer-columns,
.footer-bottom,
.footer-1 .footer-wrap,
.footer-has-bg .footer-wrap {
  background-color: #1f1e3f !important;
}

/* Newsletter submit button needs breathing room. */
#site-footer .wpcf7 input[type="submit"],
#site-footer input[type="submit"],
#site-footer button[type="submit"],
.footer-wrap input[type="submit"],
.footer-wrap button[type="submit"] {
  padding: 12px 22px !important;
  border-radius: 4px;
}

/* Section grid replacing the video slider. */
.v2-section-grid .block-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.v2-section-grid .p-featured img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.v2-section-grid .entry-title {
  margin-top: 8px;
}

@media (max-width: 991px) {
  .v2-section-grid .block-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .v2-section-grid .block-inner {
    grid-template-columns: 1fr;
  }
}

/* Stacked ad slots in the first section's right column. */
.elementor-element-429eb9a2 {
  margin-top: 24px;
}

/* Let the navy footer colour show through the template's dark containers. */
footer.footer-wrap .e-con,
footer.footer-wrap .e-con-inner,
footer.footer-wrap .elementor-section,
footer.footer-wrap > .elementor {
  background-color: transparent !important;
  background-image: none !important;
}

/* --- Chat panel: brand colours and icon sizing --- */
:root {
  --chat-primary: #123f8f;
  --chat-primary-hover: #0d2f6b;
  --chat-user-bubble: #123f8f;
}

.chat-trigger-btn {
  background: #123f8f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-trigger-btn:hover,
.chat-trigger-btn:focus-visible {
  background: #0d2f6b !important;
  color: #ffffff !important;
}

.chat-trigger-btn.chat-mic-btn {
  background: rgba(18, 63, 143, 0.08);
  color: #123f8f;
}

.chat-trigger-btn.chat-mic-btn:hover {
  background: #123f8f !important;
  color: #ffffff !important;
}

.chat-trigger-btn svg {
  width: 20px;
  height: 20px;
}

/* Newsletter submit button also needs side padding in article sidebars. */
button.tdn-submit-btn {
  padding: 12px 22px !important;
  white-space: nowrap;
}

/* CTA panel: the original background image lived on the source site. */
.elementor-element-9b9f9d8:not(.elementor-motion-effects-element-type-background) {
  background-image: linear-gradient(120deg, #1f1e3f 0%, #123f8f 100%) !important;
  background-color: #1f1e3f !important;
}

/* Submenus must be white instead of the imported template's pink. */
body .elementor-element-31828499 .main-menu .sub-menu {
  --subnav-bg: #ffffff;
  --subnav-bg-from: #ffffff;
  --subnav-bg-to: #ffffff;
  background: #ffffff;
  background-image: none;
}

body .elementor-element-31828499 .sub-menu > .menu-item a {
  color: #000000;
}

body .elementor-element-31828499 .sub-menu > .menu-item a:hover {
  color: #ffffff;
}

/* Article byline belongs after the story, not above its content. */
.coc-article-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--border, #e8e8e8);
  border-bottom: 1px solid var(--border, #e8e8e8);
}

.coc-article-author-avatar {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.coc-article-author-avatar img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.coc-article-author-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.coc-article-author-label {
  color: #707070;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.coc-article-author-name {
  color: var(--ink, #1f1e3f);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.coc-article-author-name:hover {
  color: #123f8f;
}

.coc-article-author-bio {
  max-width: 640px;
  margin: 5px 0 0;
  color: #5f5f5f;
  font-size: 14px;
  line-height: 1.65;
}

.coc-article-author-bio:empty {
  display: none;
}
