/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* General CSS */
.article > :first-child {
  margin: -8px 0px 12px 0px;
}
.info-wrapper {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
}
/**** TABLE ****/
table,
.wp-block-table {
  border-collapse: collapse;
  width: 100%;
  overflow: visible;
  table-layout: auto !important;
border-radius: 8px;
}
.wp-block-table th,
.wp-block-table td {
  border: none;
}
table th,
.wp-block-table thead {
  padding: 16px 8px !important;
  text-align: left;
  background-color: var(--bg-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
table tr:nth-child(even) {
  background: #f4f7ff;
}
table td {
  padding: 14px 12px !important;
  text-align: left;
  font-size: 14px;
}
table th img {
  max-width: 40px !important;
}
.responsive {
  overflow: auto;
  border-radius: 12px;
  margin: 0px 0px !important;
  max-width: 360px;
  min-width: 100%;
 border: 2px solid #d9def6;
}
/* Payments  */
.hidden-pay {
  position: absolute;
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  min-width: 155px;
  justify-content: center;
  padding: 8px;
  box-shadow: rgba(149, 157, 165, 0.25) 0px 8px 24px;
  top: 70px;
  left: -8px;
  z-index: 3;
}
.hidden-pay-rev {
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  min-width: 155px;
  justify-content: center;
  padding: 8px;
  box-shadow: rgba(149, 157, 165, 0.25) 0px 8px 24px;
  top: 30px;
  right: -8px;
  z-index: 3;
}
.pay-wrapper img {
  width: 45px;
  align-self: center;
  align-items: center;
  height: 30px;
}
.count {
  background-color: var(--bg-hero);
  border: 1px solid #eeeeee;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
  width: 45px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  transition: background 1s ease-in;
}
.marked {
  background: var(--accent);
  color: #fff;
}
/* CTA Articles */
.cta-article {
  margin: 12px 0;
}
.good {
  color: var(--color-good);
}
.meh {
  color: var(--color-meh);
}
.bad {
  color: var(--color-bad);
}

/* Styling UL LI  */
.mini-pros,
.pros-container ul,
.cons-container ul,
.pros,
.cons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding-inline-start: 0px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
}
.pros-container ul,
.cons-container ul {
  margin-top: 0;
}
.mini-pros li {
  background: var(--bg-lite-green);
  padding: 10px;
  border-radius: 8px;
}
.pros-container ul li {
  background: var(--bg-lite-green);
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #fff;
}
.cons-container ul li {
  background: #f4dee470;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #fff;
}
.mini-pros li::before,
.pros-container ul li::before,
.pros li::before {
  content: "";
  background-image: url(/wp-content/uploads/check-pros.svg);
  background-size: contain;
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  position: relative;
  top: 0.3rem;
  margin-right: 0.4rem;
}
.cons-container ul li::before,
.cons li::before {
  content: "";
  background-image: url(/wp-content/uploads/cross-vermelho.svg);
  background-size: contain;
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  position: relative;
  top: 0.3rem;
  margin-right: 0.4rem;
}
/* proTIP */
.pro-tip-bad {
  padding: 12px;
  border: 1px solid var(--color-bad);
  margin: 16px 0;
  border-radius: 12px;
  background: #f4433625;
}
.pro-tip {
  padding: 22px;
  margin: 16px 0;
  border-radius: 12px;
  background: var(--bg-hero);
}
.pro-tip-lite {
  padding: 22px;
  margin: 16px 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eeeeee;
}
.pro-tip-dark{
	padding: 22px;
  margin: 16px 0;
  border-radius: 12px;
  background: var(--bg-dark);
  border: 1px solid #eeeeee;
	color: #fff;
}
.pro-tip h3 {
  margin-top: 8px;
}

/* grid boxes */

.text-box {
  padding: 22px;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  box-shadow: rgba(100, 100, 111, 0.05) 0px 7px 29px 0px;
}
.text-box h3 {
  margin-top: 16px;
}

/* Top */
.top:before {
    background-image: url(/wp-content/uploads/top-melhor.png);
    background-size: 30px;
    display: inline-block;
    width: 30px;
    height: 26px;
    content: "";
	margin-right: 12px;
}

/* FAQ */
.open svg {
  rotate: 180deg;
}
.faq .accordion-title-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}
/* click states */
[is="open"] {
  display: grid !important;
}
[is="pressed"] svg,
[is="pressed"] i {
  rotate: 180deg;
}
.intro-btn-hero:hover{
	background: var(--bg-dark)!important;
	color: #fff;
}
/* Menu  */

/* Review CTA */
.review-cta {
  display: grid;
  align-items: initial;
  grid-gap: 16px;
  background-color: var(--font-lite);
  border-radius: 12px;
  overflow: visible;
  grid-template-columns: 140px 235px 1fr 95px;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 24px;
  border: 2px solid #d9def6;
box-shadow: 0 0 16px 0 #7787DE40;
}
.image-review-cta {
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  max-width: 140px;
  max-height: 140px;
  display: flex;
  justify-content: center;
  align-self: center !important;
  align-items: center;
  padding: 12px;
	border: 7px double #fff;
	border-radius: 50%;
	box-sizing: border-box;
	flex-shrink: 0;
	overflow: visible;
}
.bonus-container-review-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bonus-label-review-cta {
  font-weight: 500;
  font-size: 14px;
}
.promo-review-cta {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}
.features-review-cta {
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  row-gap: 6px;
}
.feature-li-cta {
  display: flex;
  justify-content: center;
  column-gap: 4px;
  align-items: center;
  font-size: 14px;
}
.icon-li-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 12px;
}
.btn-review-cta {
  padding-top: 10px;
  padding-right: 16px;
  padding-bottom: 10px;
  padding-left: 16px;
  background-color: #FE6F18;
  color: var(--font-lite)!important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
}
.is-layout-grid {
  grid-gap: 10px;
	margin: 16px 0;
}
#brx-header.sticky.scrolling > *{
	background: rgba( 34, 37, 58, 0.55 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 7px );
-webkit-backdrop-filter: blur( 4px );
border-radius: 6px;
border: 1px solid rgba( 255, 255, 255, 0.18 );
}

/* Bonus CTA */
.top-cta {
    width: 100%;
    display: grid;
    align-items: initial;
    grid-gap: 16px;
    grid-template-columns: 1.4fr 310px;
    padding-top: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
    padding-left: 16px;
    background-image: url(apuestas/wp-content/uploads/bg-hero-cta.svg);
    background-size: cover;
    background-blend-mode: overlay;
    background-color: #053a66;
    border-radius: 12px;
    position: relative;
    min-height: 180px;
    align-items: center;
	margin: 16px 0;
}
.top-cta-title-container {
    display: flex;
    flex-direction: column;
    column-gap: 16px;
    row-gap: 16px;
    align-items: flex-start;
}
.top-cta-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}
.top-cta-btn {
    padding-top: 14px;
    padding-right: 20px;
    padding-bottom: 14px;
    padding-left: 20px;
    font-size: 13px;
    color: #fff!important;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: background-color 0.3s ease-in;
    gap: 8px;
    cursor: pointer;
    flex-direction: row;
    align-items: center;
    background-color: var(--accent);
}
.top-cta-engage {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    padding-top: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    background-color: var(--font-lite);
    border: 1px solid #eeeeee;
    border-radius: 16px;
    width: 100%;
	position: relative;
}
.top-cta-engage-img {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 80px;
    padding-top: 8px;
    padding-right: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
    border: 2px solid #eeeeee;
    border-radius: 10px;
    align-items: center;
}
.top-cta-engage-img img{
	max-height: 45px;
	object-fit: scale-down;
}
.top-cta-rating-container {
    display: flex;
    align-items: center;
    column-gap: 6px;
    position: absolute;
    background-color: var(--font-lite);
    padding-top: 2px;
    padding-right: 4px;
    padding-bottom: 2px;
    padding-left: 4px;
    border-radius: 8px;
    bottom: -32px;
}
.top-cta-rating-icon {
    color: #ffbd38;
    fill: #ffbd38;
    font-size: 16px;
}
.top-cta-rating-code-ctnr {
    display: flex;
    align-items: center;
    column-gap: 3px;
    align-self: center !important;
}
.top-cta-rating-master {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    width: fit-content;
}
.top-cta-rating-max {
    font-size: 1.4rem;
    font-weight: 400;
    color: #a6a6a6;
    text-align: left;
}
.top-cta-best-for-ctnr {
    display: flex;
    align-items: center;
    column-gap: 6px;
    position: absolute;
    background-color: var(--font-lite);
    padding-top: 3px;
    padding-right: 6px;
    padding-bottom: 2px;
    padding-left: 4px;
    border-radius: 8px 8px 0 0;
    top: -14px;
    left: 2%;
}
.top-cta-rating-best-for-icon {
    position: relative;
    bottom: 0px;
    right: -2px;
    background-color: #ffffff;
    border-radius: 10px;
	width: 10px;
	height: 10px;
}
.top-cta-best-for-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.styled-ol{
	list-style-type: none;
    counter-reset: item;
    margin-left: 0px;
    padding-left: 0px;
    position: relative;
}
.styled-ol::before{
		content: "";
    display: block;
    position: absolute;
    top: 30px;
    left: 19px;
    height: calc(100% - 50px);
    width: 1px;
    background: #EEEEEE;
    z-index: 0;
}
.styled-ol li {
	counter-increment: item;
    padding: 12px 0px;
    padding-left: 48px;
    line-height: 30px;
}
.styled-ol li::before {
    margin-right: 10px;
    content: counter(item);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    font-size: 15px;
    font-weight: 800;
    border-radius: 8px;
    z-index: 1;
    left: 3px;
    position: absolute;
		color:#fff;
}

/* Media queries */

@media only screen and (max-width: 991px) {
  .review-cta {
    grid-template-columns: 120px 220px 1fr;
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
  }

  .image-review-cta {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    max-width: 110px;
    max-height: 110px;
    padding: 16px;
    border-radius: 50%;
    border-width: 5px;
  }

  .btn-container-review-cta {
    grid-column: 1 / 4;
    width: 100%;
  }

  .btn-review-cta {
    min-width: 100%;
  }
}

@media only screen and (max-width: 766px) {
  .hidden-pay {
    top: 30px;
    right: 0px;
    left: 40%;
  }
  .review-cta {
    grid-template-columns: 120px 1fr;
  }
  .image-review-cta {
    width: 110px !important;
    height: 110px !important;
    min-width: 110px !important;
    min-height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
    padding: 8px !important;
    border-width: 4px !important;
  }
  .image-review-cta img {
    max-height: 40px !important;
  }
  .features-review-cta {
    display: none;
  }
	.top-cta{
		grid-template-columns: 1fr;
		grid-gap: 36px;
	}
	    .top-cta-rating-container {
        bottom: 0px;
        right: 0px;
        border-radius: 4px 0 8px 0;
        column-gap: 2px;
    }
	.top-cta-rating-icon {
        font-size: 12px;
    }
	    .top-cta-rating-master {
        font-size: 1.2rem;
    }
	    .top-cta-rating-max {
        line-height: 1;
        font-size: 0.7rem;
    }
	.bricks-mobile-menu-wrapper {
		padding: 0px 3%;
	}
	.top-cta-engage{
		order: -1;
		margin: 12px -12px 0px 0px;
	}
	.top-cta-title-container .top-cta-btn{
		border: 1px solid #fff;
	}
}
/* Fix screenshot border-radius in mini reviews and post content */
.brxe-post-content .wp-block-image img,
.article .wp-block-image img,
.brxe-post-content figure img,
.article figure img {
    border-radius: 12px !important;
    width: 100%;
}

/* ============================================
   FAQ Accordion for Gutenberg H3+P pairs
   ============================================ */
.faq-section h3.wp-block-heading {
  cursor: pointer;
  padding: 16px 20px;
  padding-right: 44px;
  background: var(--bg-hero, #f4f7ff);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1.5;
}
.faq-section h3.wp-block-heading:hover {
  background: #e8ecf8;
  border-color: #c4cae0;
}
.faq-section h3.wp-block-heading::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: #666;
  transition: transform 0.3s ease;
}
.faq-section h3.wp-block-heading.faq-open::after {
  content: "−";
}
.faq-section h3.wp-block-heading + p {
  display: none;
  padding: 16px 20px;
  margin-top: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
}
.faq-section h3.wp-block-heading.faq-open {
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}
.faq-section h3.wp-block-heading.faq-open + p {
  display: block;
}

/* Prós e Contras visual styling */
.brxe-post-content h3:has(+ ul), 
.brxe-post-content h4:has(+ ul) {
    margin-bottom: 8px;
}

/* Prós/Contras styling in post content */
/* Note: .pros/.cons lists use SVG background-image from rules above */
/* These rules provide consistent styling for all lists in post content */
.brxe-post-content ul:not(.pros):not(.cons):not(.mini-pros):not(.features-review-cta) {
    list-style: none !important;
    padding-left: 0 !important;
}
.brxe-post-content ul:not(.pros):not(.cons):not(.mini-pros):not(.features-review-cta) li {
    padding: 8px 12px 8px 36px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    line-height: 1.6;
}
.brxe-post-content ul:not(.pros):not(.cons):not(.mini-pros):not(.features-review-cta) li:last-child {
    border-bottom: none;
}
.brxe-post-content ul:not(.pros):not(.cons):not(.mini-pros):not(.features-review-cta) li::before {
    content: "\2713";
    position: absolute;
    left: 8px;
    color: #27ae60;
    font-weight: 700;
    font-size: 16px;
}
/* Cons specific override for generic lists */
.brxe-post-content .cons li::before,
.brxe-post-content h3.cons-heading + ul li::before {
    content: "\2717" !important;
    color: #e74c3c !important;
}

/* FINAL FIX: Ensure pros/cons SVG icons always show */
.brxe-post-content ul.pros li::before,
ul.wp-block-list.pros li::before {
    content: "" !important;
    background-image: url(/wp-content/uploads/check-pros.svg) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    display: inline-block !important;
    width: 1.3em !important;
    height: 1.3em !important;
    position: relative !important;
    top: 0.3rem !important;
    margin-right: 0.4rem !important;
}
.brxe-post-content ul.cons li::before,
ul.wp-block-list.cons li::before {
    content: "" !important;
    background-image: url(/wp-content/uploads/cross-vermelho.svg) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    display: inline-block !important;
    width: 1.3em !important;
    height: 1.3em !important;
    position: relative !important;
    top: 0.3rem !important;
    margin-right: 0.4rem !important;
}

/* Footer logo fix - inject logo via CSS since Bricks logo element is empty */
#brx-footer .brxe-logo {
    display: block;
    width: 250px;
    height: 40px;
    background-image: url(/wp-content/uploads/2026/03/site_logo_v5_footer-1.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

/* All brand circles: fixed size 140x140, double white border */
.brxe-yrxhbh {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px !important;
    min-height: 140px !important;
    max-width: 140px !important;
    max-height: 140px !important;
    border-radius: 50% !important;
    border: 7px double #ffffff !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* === Intro text styling (larger, like acreditaportugal.pt) === */
.brxe-post-content > p:first-of-type,
.brxe-post-content > p:nth-of-type(2),
.brxe-post-content > p:nth-of-type(3),
.brxe-wpbqjz p,
.brxe-text p {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

/* Bolder strong tags in intro */
.brxe-wpbqjz p strong,
.brxe-text p strong,
.brxe-post-content p strong {
    font-weight: 700 !important;
    color: #1a2332 !important;
}

/* === Author section at bottom === */
.wp-block-columns:has(> .wp-block-column img[alt="Mariana Silva"]) {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}

/* Make sure the author H3 doesn't look like an accordion item */
h3#author-mariana-silva {
    cursor: default !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 22px !important;
    color: #1a2332 !important;
    margin-bottom: 16px !important;
}

/* Remove the + icon from author H3 if FAQ JS added it */
h3#author-mariana-silva::after {
    display: none !important;
    content: none !important;
}

/* === VER MAIS / VER MENOS toggle button === */
.ver-mais-btn {
    display: inline-block;
    background: #e67e22;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    margin: 8px 0 16px 0;
    transition: background 0.2s;
}
.ver-mais-btn:hover {
    background: #d35400;
}

/* Hidden intro paragraphs (2nd and 3rd) */
.intro-hidden {
    display: none;
}

/* === Footer text - increase contrast === */
footer .brxe-text p,
footer .brxe-text a,
footer .brxe-text strong,
#brx-footer .brxe-text p,
#brx-footer .brxe-text a,
#brx-footer p {
    color: #c8d0dc !important;
    font-size: 15px !important;
}
#brx-footer .brxe-text strong,
footer .brxe-text strong {
    color: #ffffff !important;
}

/* === Author section envelope icon === */
.author-email-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    margin-top: 8px;
}
.author-email-icon svg {
    width: 20px;
    height: 20px;
    fill: #64748b;
}

/* === Footer text - STRONGER contrast === */
#brx-footer p,
#brx-footer .brxe-text p,
#brx-footer a:not(.brxe-logo),
footer p,
footer .brxe-text p {
    color: #d4dae4 !important;
}
#brx-footer strong,
footer strong {
    color: #ffffff !important;
}
#brx-footer .brxe-text:last-child p,
footer .brxe-text:last-child p {
    color: #b0bac8 !important;
}

/* === Heading spacing - more breathing room === */
.brxe-post-content h2,
.brxe-post-content h3 {
    margin-top: 2.2em !important;
    margin-bottom: 0.8em !important;
}
.brxe-post-content h2 + p,
.brxe-post-content h3 + p {
    margin-top: 0.6em !important;
}
.brxe-post-content p {
    margin-bottom: 1.1em !important;
}

/* Also make the footer logo bigger */
#brx-footer .brxe-logo {
    min-width: 280px !important;
    min-height: 60px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* === SPACING: Brand cards + Mini reviews breathing room === */
/* Brand card in ranking table (each post in query loop) */
.brxe-post-content > article,
.brxe-post-content > .brxe-div,
.brxe-post-content > div[class*="brand"],
.query-loop-item {
    margin-bottom: 1.5em !important;
}

/* Mini review sections (h2 with brand name + screenshot + pros/cons) */
.brxe-post-content h2 {
    margin-top: 2.5em !important;
    margin-bottom: 1em !important;
    padding-top: 1em !important;
}

.brxe-post-content h3 {
    margin-top: 2em !important;
    margin-bottom: 0.7em !important;
}

/* Brand card containers (the review-cta boxes) */
.review-cta-container,
div[class*="review-cta"],
.image-review-cta {
    margin-top: 2em !important;
    margin-bottom: 2em !important;
}

/* Pros/cons to next brand card */
.brxe-post-content ul + .review-cta-container,
.brxe-post-content ul + div[class*="review-cta"],
.brxe-post-content .cons + .review-cta-container,
.brxe-post-content p + .review-cta-container {
    margin-top: 2.5em !important;
}

/* Screenshots in mini reviews */
.brxe-post-content .wp-block-image,
.brxe-post-content figure {
    margin-top: 1.5em !important;
    margin-bottom: 1.5em !important;
}

/* Paragraphs general */
.brxe-post-content p {
    margin-bottom: 1.2em !important;
    line-height: 1.75 !important;
}

/* Light bg brand cards need grey border */
.image-review-cta[style*="background-color: rgb(255, 255, 255)"],
.image-review-cta[style*="background-color: rgb(239, 239, 239)"],
.image-review-cta[style*="background-color: rgb(248, 248, 248)"],
.image-review-cta[style*="background-color: #ffffff"],
.image-review-cta[style*="background-color: #efefef"],
.image-review-cta[style*="background-color: #f8f8f8"] {
    border: 7px double #6b7280 !important;
}

/* === CIRCLE STYLING === */
/* Ranking table circles - NO size override, just border + centering */
.brxe-yrxhbh {
    border: 7px double #ffffff !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Light/white bg circles: grey double border (softer inner line) */

/* Logo centering inside ranking circles */
.brxe-yrxhbh .brxe-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto !important;
}
.brxe-yrxhbh .brxe-image img {
    max-height: 55px !important;
    width: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* === Brand card circles in mini reviews (shortcode) === */
/* Light bg brand cards: grey double border */
.image-review-cta[style*="background: #ffffff"],
.image-review-cta[style*="background: #efefef"],
.image-review-cta[style*="background: #f8f8f8"],
.image-review-cta[style*="background: #FFFFFF"] {
    border: 7px double #9ca3af !important;
}

/* === Footer logo: remove brightness/invert filter === */
#brx-footer .brxe-logo,
footer .brxe-logo {
    filter: none !important;
}

/* Outer = solid 3px grey, inner = inset box-shadow 1px (thinner than outer) */
.brxe-yrxhbh[style*="background: #ffffff"],
.brxe-yrxhbh[style*="background: #FFFFFF"],
.brxe-yrxhbh[style*="background-color: #ffffff"],
.brxe-yrxhbh[style*="background-color: rgb(255, 255, 255)"] {
    border: 3px solid #9ca3af !important;
    box-shadow: inset 0 0 0 1.5px #b0b7c3 !important;
}

/* outer = outline (same thickness as other circles outer line ~3px) */
/* gap = outline-offset pushes outline inward, white bg shows through */
/* inner = border (thinner, 1.5px) */
.brxe-yrxhbh[style*="background: #ffffff"],
.brxe-yrxhbh[style*="background: #FFFFFF"],
.brxe-yrxhbh[style*="background-color: #ffffff"],
.brxe-yrxhbh[style*="background-color: rgb(255, 255, 255)"] {
    border: 1.5px solid #b0b7c3 !important;
    outline: 3px solid #9ca3af !important;
    outline-offset: 3px !important;
}


/* === White bg circles: size compensated for thinner border === */
.brxe-yrxhbh[style*="background: #ffffff"],
.brxe-yrxhbh[style*="background: #FFFFFF"],
.brxe-yrxhbh[style*="background-color: #ffffff"],
.brxe-yrxhbh[style*="background-color: rgb(255, 255, 255)"] {
    width: 134px !important;
    height: 134px !important;
    min-width: 134px !important;
    min-height: 134px !important;
    border: 2px solid #9ca3af !important;
    outline: none !important;
    box-shadow: inset 0 0 0 2.5px #ffffff, inset 0 0 0 3.5px #c0c5cc !important;
}

.image-review-cta[style*="background: #ffffff"],
.image-review-cta[style*="background: #FFFFFF"] {
    border: 2px solid #9ca3af !important;
    outline: none !important;
    box-shadow: inset 0 0 0 2.5px #ffffff, inset 0 0 0 3.5px #c0c5cc !important;
}

/* ========================================
   SITESDEAPOSTAS.COM.PT - Custom overrides v3
   ======================================== */

/* 1. Mobile header logo bigger */
@media only screen and (max-width: 766px) {
    #brx-header .brxe-logo img {
        min-width: 180px !important;
        width: 180px !important;
    }
}

/* 2. Footer logo */
#brx-footer .brxe-logo {
    background-image: none !important;
    min-width: unset !important;
    min-height: unset !important;
}
#brx-footer .brxe-logo img {
    width: 220px !important;
    height: auto !important;
    filter: none !important;
}
#brx-footer img.css-filter { filter: none !important; }
@media only screen and (max-width: 766px) {
    #brx-footer .brxe-logo img { width: 180px !important; }
}

/* 3. Author section */
.author-section { background: #f8f9fc; border-radius: 16px; padding: 28px; margin-top: 48px; }
.author-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 17px !important; line-height: 1.2 !important; margin: 0 !important; color: #1a2332; }
.author-title { color: #6b7280; font-size: 13px !important; margin: 1px 0 0 0 !important; }
.author-bio { font-size: 15px; line-height: 1.7; color: #4a5568; margin: 0 0 12px 0 !important; }
.author-email { font-size: 14px; margin: 0 !important; }
.author-email span { margin-right: 6px; }
.author-email a { color: var(--accent, #0168FF); text-decoration: none; }
@media only screen and (max-width: 766px) {
    .author-section { padding: 20px; }
    .author-photo { width: 60px; height: 60px; }
}

/* 4. Hide Bricks FAQ */
#brxe-9e9005, section:has(#faq) { display: none !important; }

/* 5. Inline FAQ */
.faq { border-bottom: 1px solid #e2e8f0; }
.faq .accordion-title-wrapper { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 16px 0; }
.faq .accordion-title-wrapper h3 { margin: 0; font-size: 18px; font-weight: 600; color: #1a2332; flex: 1; }
.faq .accordion-title-wrapper svg { width: 20px; height: 20px; flex-shrink: 0; margin-left: 12px; transition: transform 0.3s ease; }
.faq.open .accordion-title-wrapper svg { transform: rotate(180deg); }
.faq .accordion-content { display: none; padding: 0 0 20px 0; font-size: 16px; line-height: 1.7; color: #4a5568; }
.faq.open .accordion-content { display: block !important; }

/* 6. Footer text */
@media only screen and (max-width: 766px) {
    #brx-footer .brxe-text p, #brx-footer p { font-size: 13px !important; word-wrap: break-word; overflow-wrap: break-word; }
}

/* 7. Payment table sticky */
@media only screen and (max-width: 766px) {
    .wp-block-table { overflow-x: auto !important; overflow-y: visible !important; display: block; -webkit-overflow-scrolling: touch; }
    .wp-block-table table { min-width: 700px; }
    .wp-block-table td:first-child, .wp-block-table th:first-child { position: sticky; left: 0; background: #f8f9fc; z-index: 1; min-width: 140px; box-shadow: 2px 0 4px rgba(0,0,0,0.05); }
    .wp-block-table th:first-child { background: #1a2332; z-index: 2; }
}

/* 8. Ver Mais outline */
.intro-btn-hero, .ver-mais-btn { display: inline-block; background: transparent !important; color: var(--accent, #0168FF) !important; border: 2px solid var(--accent, #0168FF) !important; padding: 12px 28px !important; border-radius: 8px !important; font-size: 15px !important; font-weight: 600 !important; cursor: pointer; transition: all 0.2s; text-transform: none !important; }
.intro-btn-hero:hover, .ver-mais-btn:hover { background: var(--accent, #0168FF) !important; color: #fff !important; }

/* 9. Author H3 fix */
h3#author-ricardo-ferreira { cursor: default !important; background: none !important; border: none !important; padding: 0 !important; }
h3#author-ricardo-ferreira::after { display: none !important; }

/* 10. Logo inside review-cta circles */
.image-review-cta img { max-height: 60px !important; max-width: 100% !important; object-fit: fill !important; width: auto !important; height: auto !important; border-radius: 0 !important; overflow: visible !important; }
@media only screen and (max-width: 766px) {
    .image-review-cta img { max-height: 50px !important; max-width: 100% !important; object-fit: fill !important; }
}

/* Fix: #intro-extra paragraphs must match article font-size */
#intro-extra p {
    font-size: 18px !important;
    line-height: 1.7 !important;
    margin-bottom: 1.2em !important;
}

/* Fix: intro-btn-hero must stay outline style even after click */
.intro-btn-hero, .intro-btn-hero:focus, .intro-btn-hero:active {
    background: transparent !important;
    color: var(--accent, #0168FF) !important;
    border: 2px solid var(--accent, #0168FF) !important;
    outline: none !important;
}


/* === HEADER LOGO: MelhoresCasinos === */
#brx-header .brxe-logo img { display: none !important; }
#brx-header .brxe-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-decoration: none !important;
    min-width: 200px !important;
}
#brx-header .brxe-logo::before {
    content: "MelhoresCasinos";
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
#brx-header .brxe-logo::after {
    content: "CASINOS LEGAIS EM PORTUGAL";
    display: block;
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-top: 1px;
}
