/*
Theme Name: Mediaholic by Martech
Theme URI: https://mediaholic.io/
Description: A theme by Mediaholic
Version: 1.4.90
Author: Mediaholic Tech Team
Text Domain: mediaholicv1
Domain Path: /languages
Requires PHP: 8.0
*/

/** Estilos globais **/
:root {
  --black-800: #181a1f;
  --gray--500: #3d3d3d;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  font-family: 'Quicksand';
  background-color: rgb(252, 252, 252);
}
.container {
  width: 100%;
  max-width: 1440px;
  padding: 0 1rem;
  margin: 0 auto;
}

.container-text {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}
/** Titulos e textos **/
h1 {
  color: var(--black-800);
  font-size: 2.5rem;
}
h2 {
  color: var(--black-800);
  font-size: 2rem;
}
h2::after {
  content: '';
  display: block;
  width: 5rem;
  height: 0.25rem;
  background-color: var(--primary-color);
  margin-top: 0.313rem;
}
article h2::after {
  display: none;
}

h3 {
  color: var(--black-800);
  font-size: 1.5rem;
}
h4 {
  color: var(--black-800);
  font-size: 1.3rem;
}
h5 {
  color: var(--black-800);
  font-size: 1.2rem;
}
h6 {
  color: var(--black-800);
  font-size: 1rem;
}

p {
  color: var(--gray--500) !important;
  line-height: 2rem;
  font-size: 1.1rem;
  font-weight: 400;
}

/* WordPress editor alignment helpers */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  background-color: var(--primary-color);
  border-radius: 1rem;
  display: flex;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  justify-content: space-around;
  min-height: 44px; /* Minimum touch target size */
  align-items: center;
}
.btn:hover {
  opacity: 0.9;
}
.box-card-note {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.box-card-note span {
  font-weight: bold;
  color: var(--black-800);
}
.box-card-note .stars-outer {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  color: #ccc;
  line-height: 1;
}

.box-card-note .stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: gold;
  width: 0;
}

.box-card-note .stars-outer::before,
.box-card-note .stars-inner::before {
  content: '★★★★★';
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Focus visible polyfill */
.focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Touch active state for feedback */
.touch-active {
  opacity: 0.7;
  transform: scale(0.98);
  transition: all 0.1s ease;
}

/* Skip link styles */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 100000;
}

.skip-link:focus {
  top: 0;
}

.box-author {
  margin-top: 2rem;
}
.box-author h2::after {
  display: block !important;
}
.box-author .content-author {
  margin-top: 1rem;
  align-items: center;
  display: flex;
  gap: 1rem;
}

.box-author .content-author .img-author img {
  max-width: 100px;
  width: min-content;
  border-radius: 50%;
}

.box-author .content-author h3 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-size: 1.25rem;
}

.box-author p {
  color: #7a7a7a;
  margin-top: 0.313rem;
  margin-bottom: 0.313rem;
}

.box-author .content-author .info-author h6 {
  font-size: 0.75rem;
  color: #949494;
  margin-top: 0;
  font-weight: bold;
}

.box-author .content-author a {
  margin: 0.625rem 0;
  display: block;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
}

/** Estilos da paginação **/
.pagination {
  margin-top: 4rem;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
}
.pagination .list-pagination {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: var(--primary-color);
  color: var(--black-800);
  transition: all 0.3s ease;
  min-width: 44px; /* Minimum touch target size */
  min-height: 44px;
  justify-content: center;
}
.pagination .list-pagination:hover {
  opacity: 0.6;
}
.pagination i {
  width: 16px !important;
}
.pagination li {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  justify-content: center;
  list-style-type: none;
  width: 44px; /* Minimum touch target size */
  font-weight: bold;
  font-size: 1rem;
  height: 44px;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  gap: 0.625rem;
  color: inherit;
}
.pagination .page-numbers.current {
  background: #fff;
  color: var(--primary-color);
  border-radius: 10px;
}
.pagination .dots {
  color: var(--black-800);
}
.pagination .prev,
.pagination .next {
  background: transparent;
}
.pagination .prev:hover,
.pagination .next:hover {
  color: #fff;
}

/** Estilos globais boxs post **/
.box-single-post {
  background-color: white;
  border-radius: 1rem;
  min-height: 44px; /* Minimum touch target size for links inside */
}
.box-single-post a {
  text-decoration: none;
  display: block;
  min-height: 44px; /* Minimum touch target size */
}
.box-single-post .box-post-img {
  background-color: rgba(var(--primary-color-rgb), 0.5);
  width: 100%;
  border-radius: 1rem 1rem 0 0;
  /* Let the image define the height to avoid overlap with meta */
  padding: 0; /* remove inner padding that pushed meta upward */
  height: auto; /* was 200px; caused image overflow + meta overlap */
}

.box-single-post .box-post-img img {
  display: block; /* remove inline-img baseline gap */
  width: 100%;
  height: auto;
  border-radius: 1rem 1rem 0 0;
  object-fit: cover;
}

.box-post-meta {
  display: flex;
  padding: 0.625rem 1rem 0.313rem 1rem;
  gap: 1rem;
  align-items: center;
}

.box-post-meta span {
  display: flex;
  align-items: center;
  text-transform: capitalize;
  font-weight: bold;
  gap: 0.313rem;
  color: var(--black-800);
  font-size: 0.875rem;
  min-height: 44px; /* Minimum touch target size */
}
.box-single-post h3 {
  font-size: 1.25rem;
  color: var(--black-800);
  word-break: break-word;
  min-height: 44px; /* Minimum touch target size */
}
.box-single-post:hover h3 {
  color: var(--primary-color);
}
.box-single-post p {
  color: var(--black-600);
  font-size: 1rem;
  line-height: 1.5rem;
}
.box-single-post .box-text {
  padding: 0.313rem 1rem 1rem 1rem;
}
/** Header **/
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000; /* ensure header stays above page content */
}
header .content-header {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  justify-content: space-between;
  position: relative; /* anchor for absolute mobile navbar */
  min-height: 3.75rem; /* match previous header height to vertically center items */
}
header .content-header .logo a {
  display: flex;
  align-items: center;
}
header .content-header .logo img {
  width: 80%;
  max-width: 10rem;
  height: auto;
}
header .content-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2rem;
  position: relative;
}
header .content-header .navbar .navbar-itens {
  display: flex;
  align-items: center;
  gap: 1rem;
}
header .content-header .navbar li {
  list-style-type: none;
}
header .content-header .navbar .navbar-itens li a {
  color: var(--black-800);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}
header .content-header .navbar .navbar-itens li a:hover {
  color: var(--primary-color);
}
/* Mobile menu button is visible by default; hide only on desktop */
header .content-header .pll-parent-menu-item {
  position: relative;
  display: inline-block;
}
header .content-header .pll-parent-menu-item > a {
  position: relative;
  padding-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
header .content-header .pll-parent-menu-item > a::after {
  display: flex;
  width: 10px;
  height: 10px;
  align-items: center;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--black-800);
}
header .content-header .pll-parent-menu-item .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding: 0.625rem 0;
  width: min-content;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
header .content-header .pll-parent-menu-item:hover .sub-menu {
  display: block;
}
header .content-header .pll-parent-menu-item .sub-menu li {
  padding: 0.625rem;
  text-align: left;
  background: white;
}
header .content-header .pll-parent-menu-item .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #333;
  text-decoration: none;
  min-height: 44px; /* Minimum touch target size */
}
header .content-header .pll-parent-menu-item img {
  width: 16px;
  height: 11px;
  display: inline-block;
}
header .content-header .clean-search {
  position: relative;
  display: flex;
  align-items: center;
}

header .content-header .clean-search .search-field {
  padding: 8px 12px 8px 12px;
  border: 1px solid #aaa;
  border-radius: 20px;
  font-size: 14px;
  background-size: 16px;
  width: 100%;
  max-width: 250px;
  transition: all 0.3s ease;
  min-height: 44px; /* Minimum touch target size */
}

header .content-header .clean-search .search-field:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}
/** Footer **/
footer {
  background-color: white;
  padding-top: 2rem;
  text-align: center;
}
footer .content-footer {
  padding-left: 1rem;
  padding-right: 1rem;
}
footer .logo-footer {
  width: 100%;
  max-width: 10rem;
  height: auto;
}
footer p {
  margin-top: 1rem;
  color: white;
  font-size: 0.875rem;
  line-height: 1.3rem;
}
footer .footer-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: bold;
}
footer .footer-nav a {
  margin-top: 1rem;
  display: block;
  color: var(--black-800);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px; /* Minimum touch target size */
  display: flex;
  align-items: center;
  justify-content: center;
}
footer .footer-nav a:hover {
  color: var(--primary-color);
}
.content-copyright {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3rem;
}

/** Estilos P1 das p1s  **/
.section-text-content {
  margin: 1rem 0;
}

.section-text-content .header-content-text {
  text-align: center;
}
.section-text-content .header-content-text p {
  line-height: normal !important;
  font-size: 1.0rem;
}
.section-text-content .product-hero {
  display: flex;
  flex-direction: column;
}
.section-text-content .product-hero .header-content-text,
.section-text-content .product-hero .box-card-note {
  order: 1;
}
.section-text-content .product-hero .img-content-text {
  order: 2;
}
.section-text-content .img-content-text {
  width: 100%;
  background-color: white;
  /* Reserve space to avoid CLS while image loads */
  aspect-ratio: 16 / 9;
  max-width: 23.438rem;
  text-align: center;
  margin: 0.625rem auto;
  border-radius: 1rem;
  overflow: hidden;
}
.section-text-content .img-content-text img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover; /* Maintain aspect ratio while covering the container */
  display: block;
}
.section-text-content .box-card-note {
  display: flex;
  justify-content: center;
}
.section-text-content .box-advantages {
  margin-top: 1rem;
}

.section-text-content .box-advantages h3 {
  text-align: center;
}

.section-text-content .box-advantages .advantages-list {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.section-text-content .advantage-single {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-text-content .advantage-single p {
  margin: 0;
}

.section-text-content .box-button {
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.section-text-content h1 {
  font-size: 2rem;
}

.section-text-content .box-button p {
  margin-top: -0.875rem;
  font-size: 0.875rem;
}

.section-text-content .box-text1 h2,
.section-text-content .box-text2 h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-text-content .box-text1 h3,
.section-text-content .box-text2 h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-text-content .box-text1 h4,
.section-text-content .box-text2 h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-text-content .box-text1 h5,
.section-text-content .box-text2 h5 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-text-content .box-text1 h6,
.section-text-content .box-text2 h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-text-content .box-text1 ul,
.section-text-content .box-text2 ul,
.section-text-content .box-text1 ol,
.section-text-content .box-text2 ol {
  margin: 1rem;
}

.section-text-content .box-text1 ul li,
.section-text-content .box-text2 ul li,
.section-text-content .box-text1 ol li,
.section-text-content .box-text2 ol li {
  font-size: 1.125rem;
  margin: 0.75rem 0;
  color: var(--gray--500);
  font-weight: 400;
}

.section-text-content .box-text1 a,
.section-text-content .box-text2 a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

/** Estilos da card padrão das p1s **/
.section-text-content .box-card-default {
  margin-top: 2rem;
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: rgb(245, 245, 245);
  align-items: center;
  display: flex;
  gap: 1rem;
}

.section-text-content .box-card-default .card-default-img {
  width: 50%;
}
.section-text-content .box-card-default .card-default-img img {
  width: 100%;
  border-radius: 1rem;
  height: 250px;
  object-fit: cover;
}
.section-text-content .box-card-default .card-default-text {
  width: 50%;
}

.section-text-content .box-card-default .card-default-text h3 {
  text-align: center;
}

.section-text-content .box-card-default .card-default-text p {
  margin-top: 0.625rem;
}

.section-text-content .box-card-default .card-default-text a {
  margin-top: 1rem;
  background-color: #5ca542;
  font-size: 1.2rem;
  font-weight: bold;
  min-height: 44px; /* Minimum touch target size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/** Estilos das p1 alternativas**/
.section-text-content .content-advantages {
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  width: 100%;
  background-color: white;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: center;
}
.section-text-content .content-advantages .box-info .box-card-note {
  justify-content: flex-start;
}
.section-text-content .content-advantages .box-info .img-content-text {
  width: 100%;
  height: 100%;
  max-height: auto !important;
  max-width: none !important;
  border-radius: 1rem;
  margin: 1rem 0 0 0 !important;
}
.section-text-content .content-advantages .box-info .img-content-text img {
  width: 100%;
  height: auto;
  max-height: auto !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: 1rem;
}

.section-text-content
  .content-advantages
  .box-infos-advatagens
  .box-advantages {
  margin-top: 0rem !important;
}
.section-text-content
  .content-advantages
  .box-infos-advatagens
  .box-advantages
  h3 {
  font-size: 1.25rem;
  margin: 0.625rem 0;
  text-align: left;
}
.section-text-content
  .content-advantages
  .box-infos-advatagens
  .box-advantages
  .advantages-list {
  display: flex !important;
  margin-top: 0.625rem !important;
  flex-direction: column !important;
  gap: 0.625rem !important;
}
.section-text-content
  .content-advantages
  .box-infos-advatagens
  .box-advantages
  .advantages-list
  p {
  font-size: 1rem;
}

/** Estilos page single **/
.page-single {
  margin: 2rem auto;
}
.page-single .content-page-single h1 {
  font-size: 2rem;
}
.page-single .content-page-single .box-button p {
  margin-top: -0.875rem;
  font-size: 0.875rem;
}
.page-single .content-page-single h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.page-single .content-page-single h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.page-single .content-page-single h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.page-single .content-page-single h5 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.page-single .content-page-single h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.page-single .content-page-single ul {
  margin: 1rem;
}
.page-single .content-page-single ul li {
  font-size: 1.125rem;
  margin: 0.75rem 0;
  color: var(--gray--500);
  font-weight: 400;
}
.page-single .content-page-single a {
  text-decoration: none;
}
.container-text .box-advertisements {
  margin-top: 0.625rem !important;
}
.ad-label {
  width: 100%;
  border-bottom: 1px solid lightgray;
  text-align: center;
  margin-bottom: 10px;
}

.ad-label p {
  font-size: 12px;
}
.sticky-parent {
  border-bottom: 1px solid lightgray;
  padding-bottom: 10px;
  margin-bottom: 10px;
  min-height: 440px;
}
.sticky {
  position: sticky !important;
  position: -webkit-sticky !important;
  top: 0;
}

/* Ad filler placement and sizing inside sticky slots */
.sticky-parent .mh-ad-filler {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.sticky-parent.ad-empty .mh-ad-filler { display: none !important; }
.sticky-parent .mh-ad-filler img {
  max-width: 100%;
  height: auto;
  display: block;
}

.logged-in .sticky-parent {
  background-color: #efecec;
}
.logged-in .publinker-ad {
  height: 280px;
  background-color: #efecec;
}

.pblk-qm-modal :is(button, a, [tabindex], .publinker-rewarded):focus,
.pblk-qm-modal :is(button, a, [tabindex], .publinker-rewarded):focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px rgba(24, 26, 31, 0.8);
}

/* No-ads path: fallback module placement and gating */
/* Reserve-and-swap (Variant A): in-flow fallback, centered */
.after-ad-fallback { display: none; }
.sticky-parent.ad-empty .after-ad-fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 8px 0;
}

/* Center fallback link + image */
.after-ad-fallback .mh-ad-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 336px);
  aspect-ratio: 336 / 280; /* lock geometry to avoid CLS before image decode */
}
.after-ad-fallback img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Stabilize label line-height so text swap doesn't shift layout */
.ad-label {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-label .ad-label-text { line-height: 1; }

/* Hide ad containers within reserved area when empty without reflowing outside parent */
.sticky-parent.ad-empty .publinker-ad,
.sticky-parent.ad-empty [id^="div-gpt-ad"],
.sticky-parent.ad-empty [id^="google_ads_iframe"],
.sticky-parent.ad-empty .gpt-slot,
.sticky-parent.ad-empty .ad-slot {
  visibility: hidden;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/** Section hero **/
.section-hero {
  padding: 3rem 0;
  display: flex;
  align-items: center;
}

.section-hero .content-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.section-hero .hero-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-left: auto;
}

.section-hero .hero-img img {
  width: 100%;
  display: block;
  height: auto;
}

.section-hero h1 {
  font-size: 2.5rem;
}

.section-hero p {
  margin-top: 1rem;
}

/** Section hero reverse **/
.section-hero-reverse {
  padding: 3rem 0;
  display: flex;
  align-items: center;
}

.section-hero-reverse .content-hero-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.section-hero-reverse .hero-img {
  max-width: 500px;
  margin-right: auto;
}

.section-hero-reverse .hero-img img {
  width: 100%;
  display: block;
}

.section-hero-reverse h1,
.section-hero-reverse h2,
.section-hero-reverse h3,
.section-hero-reverse h4,
.section-hero-reverse h5,
.section-hero-reverse h6 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Responsive styles for section-hero-reverse */
@media screen and (max-width: 768px) {
  /* Language switcher submenu should flow within the opened mobile menu */
  header .content-header .pll-parent-menu-item {
    width: 100%;
  }
  header .content-header .pll-parent-menu-item > a {
    width: 100%;
  }
  header .content-header .pll-parent-menu-item .sub-menu {
    position: static; /* avoid viewport clipping */
    width: 100%;
    box-shadow: none;
    padding: 0;
    margin-top: 0.25rem;
  }
  header .content-header .pll-parent-menu-item.open .sub-menu {
    display: block; /* revealed via JS toggle */
  }
  header .content-header .pll-parent-menu-item .sub-menu li {
    width: 100%;
  }
  header .content-header .pll-parent-menu-item .sub-menu li a {
    padding: 0.75rem 1rem;
  }
  .section-hero-reverse .content-hero-reverse {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap-reverse;
  }
  
  .section-hero-reverse .hero-text {
    width: 100%;
  }
  
  .section-hero-reverse .hero-img {
    width: 100%;
    margin-right: 0;
    margin-bottom: 2rem;
  }
}
@media screen and (min-width: 769px) {
  header .content-header .menu-mobile { display: none; }
}

/** Section grid boxs posts **/
.page-search .section-grid-boxs-posts {
  margin: 2rem 0;
}
.section-grid-boxs-posts {
  margin-top: 2rem;
}
.section-grid-boxs-posts .content-grid-boxs-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-content: left;
  margin-top: 2rem;
  align-items: stretch;
}

.section-grid-boxs-posts .box-single-post {
  background-color: white;
  border: 1px solid #e9e9e9;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-grid-boxs-posts .box-single-post a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.section-grid-boxs-posts .box-text {
  padding: 0 1rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.section-grid-boxs-posts .box-text h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.section-grid-boxs-posts .box-text p {
  font-size: 0.875rem;
  color: var(--gray--500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/** Section categories **/
.section-categories {
  padding: 4rem 0;
}

.section-categories .content-categories {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
}

.section-categories .content-categories .categorie-single {
  text-align: center;
}

.section-categories .content-categories .categorie-single a {
  text-decoration: none;
  display: block;
  min-height: 44px; /* Minimum touch target size */
}

.section-categories .content-categories .categorie-single h3 {
  font-size: 1rem;
  color: var(--black-800);
}

.section-categories .content-categories .categorie-single:hover h3 {
  color: var(--primary-color);
}

.section-categories .content-categories .categorie-img {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.section-categories .content-categories .categorie-img:hover {
  opacity: 0.9;
}

/** Section main box posts **/
.section-main-boxs {
  background-color: var(--primary-color);
  margin-top: 2rem;
  padding: 4rem 0;
}
.section-main-boxs h2 {
  color: white;
}
.section-main-boxs h2::after {
  background-color: white;
  color: white;
}
.section-main-boxs .content-main-boxs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-content: left;
  margin-top: 2rem;
  align-items: stretch;
}
/* Two-line clamp for emphasis cards */
.section-main-boxs .box-text h3{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.section-main-boxs .box-text p{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/* Financial Calculator Styles for section-main-boxs */
.section-main-boxs .financial-calculator {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.section-main-boxs .financial-calculator h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #343a40;
  font-size: 1.5rem;
  text-align: center;
}

.section-main-boxs .calculator-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.section-main-boxs .form-group {
  margin-bottom: 1rem;
}

.section-main-boxs .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.section-main-boxs .form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.section-main-boxs .form-group input:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.section-main-boxs .calculate-btn {
  grid-column: span 2;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  margin-top: 1rem;
}

.section-main-boxs .calculate-btn:hover {
  background-color: #0056b3;
}

.section-main-boxs .calculator-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

.section-main-boxs .result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.section-main-boxs .result-label {
  font-weight: 500;
  color: #495057;
}

.section-main-boxs .result-value {
  font-weight: 700;
  color: #343a40;
}

/* Responsive styles for calculator in section-main-boxs */
@media (max-width: 768px) {
  .section-main-boxs .calculator-form {
    grid-template-columns: 1fr;
  }
  
  .section-main-boxs .calculate-btn {
    grid-column: span 1;
  }
}

/** Section faqs **/
.section-faqs {
  margin-top: 2rem;
  padding: 3rem 0;
  background-color: #f9f9f9;
}
.section-faqs .faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section-faqs .faq-item {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}
.section-faqs .faq-question {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: bold;
  color: #333;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  min-height: 44px; /* Minimum touch target size */
}
.section-faqs .faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}
.section-faqs .faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  transition: all 0.3s ease;
}
.section-faqs .faq-item.open .faq-answer {
  max-height: 500px;
  padding: 1rem 1.5rem 1.5rem;
}
.section-faqs .faq-item.open .faq-icon {
  transform: rotate(180deg);
}
/** Estilos seção de cartões **/
.section-cards {
  background-color: white;
  margin-top: 3rem;
  padding: 3rem 0;
}
.section-cards .content-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.section-cards .content-cards .card-single {
  width: 100%;
  display: grid;
  height: 150px;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e9e9e9;
  border-radius: 1rem;
}
.section-cards .content-cards .card-single a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.section-cards .content-cards .card-single:hover {
  background-color: #afafaf3a;
}
.section-cards .content-cards .card-single .card-infos {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.section-cards .content-cards .card-single .card-infos .box-card-note {
  margin: 0.313rem 0;
}
.section-cards
  .content-cards
  .card-single
  .card-infos
  .box-card-note
  .stars-outer {
  font-size: 22px;
}
.section-cards .content-cards .card-single h3 {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.section-cards .content-cards .card-single .card-thumbnail {
  max-width: 414px;
  position: relative;
  height: 150px;
  width: 100%;
  border-radius: 1rem;
}
.section-cards .content-cards .card-single .card-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-color);
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
  border-radius: 1rem;
}
.section-cards .content-cards .card-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}
.section-cards .content-cards .card-single .card-button-section {
  margin-top: auto;
  background-color: var(--primary-color);
  border-radius: 1rem;
  display: flex;
  cursor: pointer;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
  padding: 0.5rem 2rem;
  text-decoration: none;
  width: max-content;
  min-height: 44px; /* Minimum touch target size */
  align-items: center;
  justify-content: center;
}
.section-cards .content-cards .card-single .card-button-section:hover {
  opacity: 0.9;
}
.section-cards .content-cards .card-single .card-button-section span {
  text-transform: uppercase;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}
/** Estilos da p2 **/
.section-single-post {
  margin: 1rem 0;
}
.section-single-post .content-single-post {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Mobile responsiveness for single post layout */
@media screen and (max-width: 768px) {
  .section-single-post .content-single-post {
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
    /* Allow sticky ads to use viewport scroll container */
    overflow: visible !important;
  }
  
  /* Ensure flex children don't overflow padded container */
  .section-single-post .content-single-post article,
  .section-single-post .content-single-post .content-sidebar {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

.section-single-post .content-single-post article {
  flex: 1 1 65%;
  min-width: 300px;
}

.section-single-post .content-single-post .content-sidebar {
  flex: 1 1 30%;
  min-width: 250px;
}

.section-single-post .content-single-post .header-single-post p {
  line-height: normal !important;
  font-size: 1rem;
}
.section-single-post .content-single-post .header-single-post .card-meta {
  margin-top: 0.625rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.section-single-post
  .content-single-post
  .header-single-post
  .card-meta
  .meta-item {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  font-weight: 500;
  min-height: 44px; /* Minimum touch target size */
}
.section-single-post
  .content-single-post
  .header-single-post
  .card-meta
  .meta-item
  img {
  width: 1rem;
  height: 1rem;
}
.section-single-post .content-single-post article h1 {
  font-size: 2rem;
}
.section-single-post .content-single-post article h2,
.section-single-post .content-single-post article h3,
.section-single-post .content-single-post article h4,
.section-single-post .content-single-post article h5,
.section-single-post .content-single-post article h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-single-post .content-single-post article ul,
.section-single-post .content-single-post article ol {
  margin: 2rem 0;
  font-size: 1rem;
  padding-left: 32px;
  border-left: 6px solid var(--primary-color);
}
.section-single-post .content-single-post article ul li,
.section-single-post .content-single-post article ol li {
  margin: 1rem 0;
  color: var(--gray--500);
}
.section-single-post .content-single-post article a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}
.section-single-post .content-single-post article .post-single-img {
  width: 100%;
  background-color: white;
  height: auto;
  max-width: 100%;
  text-align: center;
  margin: 1rem auto;
  border-radius: 1rem;
}
.section-single-post .content-single-post article .post-single-img img,
.section-single-post .content-single-post article .post-single-img picture img,
.section-single-post .content-single-post article .post-single-img figure img {
  display: block;
  max-width: 100%; /* never exceed container width */
  width: auto;     /* avoid unintended upscaling */
  height: auto;
  margin-left: auto;  /* center block image within container */
  margin-right: auto; /* center block image within container */
  border-radius: 1rem;
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 768px) {
  .section-single-post .content-single-post article .post-single-img {
    margin: 1rem 0;
    border-radius: 0.5rem;
  }
  
  .section-single-post .content-single-post article .post-single-img img {
    border-radius: 0.5rem;
  }
}
.section-single-post .content-single-post .content-sidebar {
  background-color: white;
  padding: 2rem;
  height: max-content;
  border-radius: 1rem;
  border-left: 4px solid var(--primary-color);
}
.section-single-post .content-single-post .content-sidebar ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.section-single-post .content-single-post .content-sidebar ul li {
  list-style-type: none;
}
.section-single-post .content-single-post .content-sidebar ul a {
  text-decoration: none;
  color: var(--primary-color);
  min-height: 44px; /* Minimum touch target size */
  display: flex;
  align-items: center;
}

.section-single-post .content-single-post .content-sidebar ul a:hover {
  color: var(--black-800);
  font-weight: bold;
}
.section-single-post .content-single-post .post-single-text img {
  max-width: 100%;
  height: auto;
  width: auto;
}

/* Prevent extra-wide URLs or tokens from breaking mobile layout */
.section-single-post .content-single-post .post-single-text,
.section-single-post .content-single-post .post-single-text p,
.section-single-post .content-single-post .post-single-text li,
.section-single-post .content-single-post .post-single-text a,
.section-single-post .content-single-post .post-single-text td,
.section-single-post .content-single-post .post-single-text th {
  overflow-wrap: anywhere;
  word-break: break-word;
  word-wrap: break-word; /* legacy browsers */
}

/* Ensure all common content images never exceed container width */
.section-single-post .content-single-post .post-single-text .wp-block-image img,
.section-single-post .content-single-post .post-single-text figure img,
.section-single-post .content-single-post .post-single-text .wp-caption img {
  max-width: 100%;
  height: auto;
}

.section-single-post .content-single-post .post-single-text a[href*="play.google.com"] img,
.section-single-post .content-single-post .post-single-text a[href*="apps.apple.com"] img,
.section-single-post .content-single-post .post-single-text a[href*="itunes.apple.com"] img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  flex-shrink: 0;
}

/* Prevent Gutenberg align classes from overflowing content area */
.section-single-post .content-single-post .post-single-text .alignwide,
.section-single-post .content-single-post .post-single-text .alignfull {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Ensure images don't overflow on mobile */
@media screen and (max-width: 768px) {
  .section-single-post .content-single-post .post-single-text img {
    max-width: 100%;
    height: auto;
  }
}
.section-archives {
  margin: 2rem 0;
}
.section-archives .archive-description {
  margin-top: 1rem;
}

.content p { 
  padding:5px 0;
}

/** Touch and Mobile Enhancements **/
/* Swipe container for galleries */
.swipe-container {
  touch-action: pan-y;
  user-select: none;
}

/* Gallery items wrapper */
.gallery-items,
.swiper-wrapper,
.carousel-items {
  display: flex;
  transition: transform 0.3s ease;
}

/* Gallery item */
.gallery-item,
.swiper-slide,
.carousel-item {
  flex: 0 0 100%;
  position: relative;
}

/* Gallery indicators */
.indicators,
.swiper-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.indicator,
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
}

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

/* (Removed) .table-wrapper rules.
   Table responsiveness is implemented via server-side wrapper (.mh-table-scroll)
   and scoped rules in css/seo-content.css. */

/* Form enhancements */
.focused {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(92, 165, 66, 0.2);
}

/* Responsive navigation menu items */
@media screen and (max-width: 768px) {
  header .content-header .navbar .navbar-itens li a {
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  .pagination li {
    width: 36px;
    height: 36px;
  }
  
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
  }
}
@media screen and (max-width: 990px) {
  .section-grid-boxs-posts .content-grid-boxs-posts {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .section-categories .content-categories {
    grid-template-columns: repeat(4, 1fr);
  }
  .section-cards .content-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-main-boxs .content-main-boxs {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media screen and (max-width: 768px) {
  .container {
    max-width: 100%; /* Ensure container does not exceed screen width */
    padding: 0 0.6rem;
  }
  h1 {
    font-size: 1.45rem !important;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.2rem;
  }
  h5 {
    font-size: 1.1rem;
  }
  h6 {
    font-size: 1rem;
  }

  header .content-header .menu-mobile {
    display: block;
  }
  header .content-header .menu-mobile .icon-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 17px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  header .content-header .menu-mobile .icon-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--black-800);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  header .content-header .navbar {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    position: absolute;
    gap: 1rem;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 60;
    height: 0;
    background-color: #f1f1f1;
    opacity: 0;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  header .content-header .clean-search .search-field {
    width: 100%;
    max-width: none;
  }
  header .content-header .navbar .navbar-itens {
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    width: 100%;
    display: flex;
  }
  header .content-header .navbar.active {
    opacity: 1;
    height: auto;
    overflow: visible;
  }
  footer .footer-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  footer .footer-nav a {
    margin-top: 0rem;
  }
  .section-hero {
    height: auto;
  }
  .section-hero .content-hero {
    grid-template-columns: 1fr;
  }
  .section-hero .content-hero .hero-img {
    text-align: center;
  }
  .section-hero-reverse .content-hero-reverse {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap-reverse;
  }
  .section-grid-boxs-posts .content-grid-boxs-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-single-post .content-single-post .content-sidebar {
    display: none;
  }
  .section-main-boxs .content-main-boxs {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .section-text-content .content-advantages {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
}
@media screen and (max-width: 620px) {
  .section-categories .content-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-cards .content-cards {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media screen and (max-width: 550px) {
  .section-grid-boxs-posts .content-grid-boxs-posts {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-text-content .box-advantages .advantages-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .section-text-content .content-advantages .box-info .img-content-text {
    width: 100%;
    height: auto;
  }
  .section-text-content .content-advantages .box-info .img-content-text img {
    width: 100%;
    height: 100%;
  }
  .section-text-content .box-card-default {
    flex-direction: column;
  }
  .section-text-content .box-card-default .card-default-img {
    width: 100%;
  }
  .section-text-content .box-card-default .card-default-text {
    width: 100%;
  }
  .section-cards .content-cards .card-single {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    height: auto;
    grid-template-columns: 1fr;
  }
  .section-cards .content-cards .card-single .card-thumbnail {
    max-width: 100% !important;
    position: relative;
    height: 200px;
    width: 100%;
    border-radius: 1rem;
  }
  .section-main-boxs .content-main-boxs {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-single-post
    .content-single-post
    .header-single-post
    .card-meta
    .meta-item {
    font-size: 0.85rem;
  }
}

.bg-check-circle-fill {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    background-image: url('img/icons-global-site.png');
    background-position: -10px -60px;
    background-repeat: no-repeat;
    display: inline-block;
}

.bg-chevron {
    width: 20px;
    height: 11px;
    background-image: url('img/icons-global-site.png');
    background-position: -10px -96px;
    background-repeat: no-repeat;
    display: inline-block;
}

.bg-clock-fill {
    width: 16px;
    height: 16px;
    background-image: url('img/icons-global-site.png');
    background-position: -46px -60px;
    background-repeat: no-repeat;
    display: inline-block;
}

.bg-icon-calendar {
    width: 16px;
    height: 16px;
    background-image: url('img/icons-global-site.png');
    background-position: -82px -60px;
    background-repeat: no-repeat;
    display: inline-block;
}

.bg-icon-user {
    width: 16px;
    height: 16px;
    background-image: url('img/icons-global-site.png');
    background-position: -131px -10px;
    background-repeat: no-repeat;
    display: inline-block;
}

.bg-arrow-left {
    width: 12px;
    height: 21px;
    background-image: url('img/icons-global-site.png');
    background-position: -67px -10px;
    background-repeat: no-repeat;
    display: inline-block;
}

.bg-arrow-right {
    width: 12px;
    height: 21px;
    background-image: url('img/icons-global-site.png');
    background-position: -99px -10px;
    background-repeat: no-repeat;
    display: inline-block;
}

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

.content-single-post .disclaimer-message {
    margin-top: 0.313rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ==================== PRELOADER ANIMATIONS ==================== */
/**
 * Preloader animation keyframes
 * These animations are used by the JavaScript preloader for various loading styles
 */

/* Spinner animation - rotating border */
@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

/* Pulse animation - scaling circle */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.7; 
    }
}

/* Bounce animation - dots bouncing */
@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0); 
        opacity: 0.5; 
    }
    40% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* Bars animation - vertical bars scaling */
@keyframes bars {
    0%, 40%, 100% { 
        transform: scaleY(0.4); 
        opacity: 0.5; 
    }
    20% { 
        transform: scaleY(1); 
        opacity: 1; 
    }
}

/* Squares animation - 3D rotating squares */
@keyframes squares {
    0%, 100% { 
        transform: perspective(140px) rotateX(-180deg); 
        opacity: 0; 
    }
    50% { 
        transform: perspective(140px) rotateX(0deg); 
        opacity: 1; 
    }
}

/* ==================== END PRELOADER ANIMATIONS ==================== */


/* ==================== PRELOADER STYLES ==================== */
/**
 * Preloader styles
 * These styles define the appearance and layout of the preloader element
 */

/* Preloader container */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of other content */
    transition: opacity 0.5s ease; /* Smooth fade-out transition */
}

/* Preloader content wrapper */
.preloader-content {
    text-align: center;
}

/* Preloader logo */
.preloader-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

/* Preloader text */
.preloader-text {
    font-size: 18px;
    color: #333;
    margin-top: 10px;
}

/* Spinner style */
.preloader-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff; /* Blue spinner color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite; /* Apply the spin animation */
}

/* Pulse style */
.preloader-pulse {
    width: 50px;
    height: 50px;
    background-color: #007bff; /* Blue pulse color */
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out; /* Apply the pulse animation */
}

/* Dots style */
.preloader-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-dots .dot {
    width: 12px;
    height: 12px;
    background-color: #007bff; /* Blue dot color */
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 1.4s infinite ease-in-out both; /* Apply the bounce animation */
}

.preloader-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.preloader-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* Bars style */
.preloader-bars {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.preloader-bars .bar {
    width: 6px;
    height: 100%;
    background-color: #007bff; /* Blue bar color */
    margin: 0 3px;
    animation: bars 1.2s infinite ease-in-out; /* Apply the bars animation */
}

.preloader-bars .bar:nth-child(1) {
    animation-delay: -1.1s;
}

.preloader-bars .bar:nth-child(2) {
    animation-delay: -1.0s;
}

.preloader-bars .bar:nth-child(3) {
    animation-delay: -0.9s;
}

.preloader-bars .bar:nth-child(4) {
    animation-delay: -0.8s;
}

.preloader-bars .bar:nth-child(5) {
    animation-delay: -0.7s;
}

/* Squares style */
.preloader-squares {
    width: 40px;
    height: 40px;
    background-color: #007bff; /* Blue square color */
    animation: squares 2s infinite ease-in-out; /* Apply the squares animation */
}

/* ==================== END PRELOADER STYLES ==================== */

/* Screen reader text for accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  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: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* 404 Error Page Styles */
.error-404 {
  padding: 2rem 0;
  text-align: center;
}

.error-404-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.error-404-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: #007bff;
  margin: 0;
  line-height: 1;
}

.error-illustration {
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.error-illustration svg {
  width: 100%;
  height: 100%;
}

.error-404-text {
  max-width: 600px;
}

/* Financial Calculator Styles */
.financial-calculator {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.financial-calculator h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #343a40;
  font-size: 1.5rem;
  text-align: center;
}

.calculator-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.calculate-btn {
  grid-column: span 2;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  margin-top: 1rem;
}

.calculate-btn:hover {
  background-color: #0056b3;
}

.calculator-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.result-label {
  font-weight: 500;
  color: #495057;
}

.result-value {
  font-weight: 700;
  color: #343a40;
}

/* Responsive styles for calculator */
@media (max-width: 768px) {
  .calculator-form {
    grid-template-columns: 1fr;
  }
  
  .calculate-btn {
    grid-column: span 1;
  }
}

.error-404-text .page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #343a40;
}

.error-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #6c757d;
}

.error-suggestions {
  text-align: left;
  margin-bottom: 2rem;
}

.error-suggestions h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #343a40;
}

.error-suggestions ul {
  list-style-type: none;
  padding: 0;
}

.error-suggestions li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.error-suggestions li:before {
  content: "✓";
  color: #28a745;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.error-actions {
  margin-bottom: 2rem;
}

.error-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
  transform: translateY(-2px);
}

/* Search form in 404 page */
.error404 .search-form {
  margin-bottom: 2rem;
  display: flex;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error404 .search-field {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #dee2e6;
  border-radius: 0.25rem 0 0 0.25rem;
  font-size: 1rem;
}

.error404 .search-submit {
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: white;
  border: 2px solid #007bff;
  border-radius: 0 0.25rem 0.25rem 0;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.error404 .search-submit:hover {
  background-color: #0056b3;
}

/* Categories section */
.error-404-categories {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
}

.error-404-categories h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #343a40;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-link {
  text-decoration: none;
  color: inherit;
}

.category-item {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.category-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #343a40;
}

.category-count {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Responsive styles */
@media (max-width: 768px) {
  .error-404-content {
    flex-direction: column;
  }
  
  .error-code {
    font-size: 4rem;
  }
  
  .error-illustration {
    width: 150px;
    height: 150px;
  }
  
  .error-404-text .page-title {
    font-size: 2rem;
  }
  
  .error-navigation {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .error-code {
    font-size: 3rem;
  }
  
  .error-illustration {
    width: 120px;
    height: 120px;
  }
  
  .error-404-text .page-title {
    font-size: 1.75rem;
  }
  
  .error404 .search-form {
    flex-direction: column;
  }
  
  .error404 .search-field {
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
  }
  
  .error404 .search-submit {
    border-radius: 0.25rem;
    width: 100%;
  }
}

/** ==========================================
 * Core Web Vitals Performance Optimizations
 * ==========================================
 * CSS containment and content-visibility for better CLS and INP
 */

/* Layout containment for independent sections */
.section-text-content,
.box-advertisements,
.box-card-default {
  contain: layout style;
}

/* Content visibility for below-fold sections
 * Defers rendering until elements approach viewport
 * contain-intrinsic-size provides estimated height to prevent CLS
 */
.section-text-content .box-text2 {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.section-text-content .box-card-default {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

/* Aspect ratio for image containers to prevent CLS */
.section-text-content .img-content-text img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Will-change hint for animated elements */
#loadingAnimation {
  will-change: transform, opacity;
}

/* ========================================
   Floating Card Search (404 Page)
   ======================================== */
.search-floating-card {
  background: var(--white, #ffffff);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 500px;
  margin: 0 auto;
}

.search-floating-card:focus-within {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 4px rgba(92, 165, 66, 0.15);
  transform: translateY(-2px);
}

.search-floating-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.search-floating-card:focus-within .search-floating-inner {
  border-color: var(--primary-color, #5ca542);
  background: var(--white, #ffffff);
}

.search-floating-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--gray--500, #747272);
  transition: color 0.2s ease;
}

.search-floating-card:focus-within .search-floating-icon {
  color: var(--primary-color, #5ca542);
}

.search-floating-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--black-800, #181a1f);
  outline: none;
  min-width: 0;
}

.search-floating-input::placeholder {
  color: #b8b8b8;
}

.search-floating-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-color, #5ca542) 0%, #6fbf50 100%);
  border: none;
  border-radius: 0.625rem;
  padding: 0.875rem 1.5rem;
  color: white;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.search-floating-btn:hover {
  background: linear-gradient(135deg, #6fbf50 0%, var(--primary-color, #5ca542) 100%);
  transform: scale(1.02);
}

.search-floating-btn:active {
  transform: scale(0.98);
}

/* Responsive adjustments for search floating card */
@media (max-width: 576px) {
  .search-floating-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .search-floating-input {
    width: 100%;
    order: 1;
  }

  .search-floating-icon {
    order: 0;
  }

  .search-floating-btn {
    width: 100%;
    order: 2;
    margin-top: 0.25rem;
  }
}
