
:root {
    --primary-green: #2d5f2e;
    --secondary-green: #4a8f4d;
    --light-green: #6bc96e;
    --accent-green: #8ed18f;
    --dark-green: #1a3d1b;
    --gold-accent: #d4af37;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--dark-gray);
    background: var(--light-gray);
    padding-top: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Prevenir overflow horizontal em mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }

    /* Garantir que containers principais não excedam viewport */
    .container,
    .container-fluid,
    .row {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
}

.site-header.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

/* ===== HEADER TOP (Logo, Busca, Autenticação) ===== */
.header-top {
    background: #203A24;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100% !important;
}

.header-top-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

/* Logo */
.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 200px;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo-img {
    height: 40px;
}

/* Campo de Busca */
.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.search-form {
    width: 100%;
}

.search-input-wrapper .ae {
    display: none;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.9rem 0.5rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
}

.search-input:focus {
    border-color: var(--white);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    background: var(--white);
}

.search-input::placeholder {
    color: #999;
}

/* O Botão Lupa Flutuante */
.search-icon-btn {
    position: absolute;
    top: 50%;
    right: 15px; /* Ajuste a distância da direita conforme gosto */
    transform: translateY(-50%);
    
    /* Remove estilos padrão de botão cinza */
    background: transparent !important; 
    border: none !important;
    padding: 0;
    
    /* Configura o ícone */
    font-size: 1.2rem;
    color: #666;
    z-index: 10;
    cursor: pointer;
}

.search-icon-btn:hover {
    color: #000; /* Escurece ao passar o mouse */
}

/* O Wrapper garante que o botão "absoluto" fique preso a essa área */
.search-input-wrapper {
  max-width: 600px; /* Ou o tamanho que desejar */
  margin: 0 auto;   /* Centralizar se necessário */
}

/* O "Pulo do Gato": Posicionar o botão sobre o input */
.search-input-wrapper .search-icon-btn {
  position: absolute;
  top: 50%;
  right: 2px;               /* Distância da direita */
  transform: translateY(-50%); /* Centraliza verticalmente exato */
  
  background: transparent;   /* Fundo transparente */
  border: none;              /* Sem bordas */
  color: #666;               /* Cor da lupa (cinza escuro) */
  font-size: 1.2rem;         /* Tamanho da lupa */
  z-index: 10;               /* Garante que fique por cima do input */
  padding: 0 10px;
}

/* Efeito ao passar o mouse na lupa */
.search-input-wrapper .search-icon-btn:hover {
  color: #000;
  background: transparent;
}

/* Backdrop  */
/* --- 1. O Fundo Escuro (Backdrop) --- */
/* ID deve ser igual ao definido no seu Javascript */
#peticoes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65); /* Escuro 65% */
    z-index: 9998; /* Camada Alta */
    
    /* Estado inicial: Invisível */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Quando ativo (classe do JS) */
body.search-active #peticoes-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Trava a rolagem da página */
body.search-active {
    overflow: hidden;
}

/* --- 2. O Destaque da Busca (A Mágica do Z-Index) --- */
/* Eleva o container acima do fundo escuro */
body.search-active .search-input-wrapper {
    position: relative; /* O Bootstrap já põe isso, mas reforçamos */
    z-index: 9999; /* Mais alto que o overlay (9998) */
}

/* --- 3. Estilo do Input no Foco --- */
/* Garante fundo branco e sombra quando ativo */
body.search-active .search-input-wrapper input.form-control {
    background-color: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2); /* Sombra de destaque */
    color: #212529;
}

/* --- 4. Posicionamento da Lupa --- */
/* Alinha o botão criado no PHP dentro do input */
.search-icon-btn {
    position: absolute;
    top: 50%;
    right: 10px; /* Distância da direita */
    transform: translateY(-50%); /* Centraliza verticalmente */
    
    background: transparent;
    border: none;
    color: #6c757d; /* Cinza suave */
    z-index: 10000; /* Garante o clique */
    font-size: 1.2rem;
    padding: 0.375rem 0.75rem;
    transition: color 0.2s;
}

.search-icon-btn:hover {
    color: #000; /* Escurece ao passar o mouse */
}


/* ==========================================================================
   CORREÇÃO CRÍTICA DE Z-INDEX (PARA A BUSCA FICAR NA FRENTE)
   ========================================================================== */

/*
   O problema: A busca está ficando presa atrás do overlay porque o cabeçalho
   (ou um container pai) tem um z-index menor que o overlay.
   
   A solução: Quando a classe .search-active é adicionada ao body, forçamos
   toda a estrutura do cabeçalho a ficar acima de tudo.
*/

/* 1. Elevar o container principal da busca */
body.search-active .header-search {
    position: relative; /* Necessário para o z-index funcionar */
    z-index: 10001;     /* Valor altíssimo, acima de tudo */
}

/* 2. Elevar a tag <header> inteira (se sua busca estiver dentro dela) */
/* Ajuste o seletor se seu cabeçalho tiver uma classe ou ID diferente */
body.search-active header,
body.search-active .site-header {
    position: relative;
    z-index: 10001;
    /* Garante que não haja transformações ou opacidade que criem novo contexto */
    transform: none !important;
    opacity: 1 !important;
}

/* 3. Elevar o wrapper do conteúdo do topo (se existir) */
body.search-active .header-top-content {
    position: relative;
    z-index: 10001;
}

/* 4. Reforço no wrapper direto da busca (já estava no CSS anterior, mas reforçamos) */
body.search-active .search-input-wrapper {
    position: relative;
    z-index: 10002; /* Um ponto a mais que os pais, por garantia */
}

/* 5. Reforço no fundo escuro para ele ficar logo atrás */
#peticoes-overlay {
    z-index: 10000; /* Logo abaixo dos elementos elevados */
}
/* Backdrop  */


/* Botões de Autenticação */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-auth {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-auth:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.btn-auth i {
    font-size: 1.1rem;
}

.btn-register {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
}

.btn-register:hover {
    background: var(--white);
    color: var(--primary-green);
}

.btn-login {
    background: var(--white);
    color: var(--primary-green) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: var(--light-gray);
}

.btn-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: 55px;
    height: 44px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cart > i.bi-cart3 {
    position: absolute;
    left: 6px;
}

.btn-cart > i.bi-arrow-right-short {
    position: absolute;
    right: 2px;
    line-height: 0;
}

.btn-cart:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.btn-cart i {
    font-size: 1.3rem;
}

.btn-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* ===== MENU PRINCIPAL (Linha Inferior) ===== */
.navbar-main {
    background: var(--secondary-green);
    padding: 0;
    margin-top: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-main .container {
    padding: 0;
}

/* Navigation Links (Menu Principal) */
.navbar-nav {
    gap: 0.2rem;
    padding: 0.5rem 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* Active state indicator */
.nav-item .nav-link.active {
    color: var(--white) !important;
    border-bottom-color: var(--white);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: 2px solid var(--white);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    transition: all 0.3s ease;
    display: none;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.15);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

/* Breadcrumb */
.breadcrumb-wrapper {
    padding: 0.8rem 0;
    background: transparent;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--gray);
}

.breadcrumb-item a {
    color: var(--secondary-green);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--dark-gray);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--gray);
    padding: 0 0.5rem;
}

/* Capa da Petição - Vertical A4 */
.peticao-cover {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 3px solid var(--light-green);
    position: sticky;
    top: 100px;
}

.cover-image-wrapper {
    aspect-ratio: 210/297; /* A4 proporção */
    width: 100%;
    background: linear-gradient(180deg, #f5f9f5 0%, #ffffff 100%);
    border: 2px solid var(--light-green);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(45, 95, 46, 0.1);
    position: relative;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder quando não há capa */
.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #f5f9f5 0%, #e8f5e8 100%);
}

.cover-placeholder-icon {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.cover-placeholder-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 10px;
}

.cover-placeholder-type {
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.cover-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-accent);
    color: var(--dark-green);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
    z-index: 1;
}

.format-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.format-badge {
    background: var(--secondary-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}


.peticao-sobre,
.peticao-preview {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.preview-header {
    border-bottom: 3px solid var(--light-green);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.preview-category {
    display: inline-block;
    background: var(--light-green);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.preview-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 15px;
    line-height: 1.2;
}

.preview-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    color: var(--gold-accent);
    font-size: 1.3rem;
}

/* Trecho da Petição */
.peticao-excerpt {
    background: #f8fdf8;
    border-left: 5px solid var(--secondary-green);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    font-family: 'Georgia', serif;
}

.peticao-excerpt-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.peticao-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
    text-align: justify;
}

.peticao-text p {
    margin-bottom: 0px !important;
    line-height: 1;
}

.peticao-text div p {
    padding-left: 40% !important;
}

.peticao-text strong {
    color: var(--primary-green);
    font-weight: 700;
}

.peticao-signature {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-green);
    font-style: italic;
    color: var(--gray);
}


.peticao-excerpt .notification-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 28px;
    max-width: fit-content;
}

.peticao-excerpt .checkmark {
    width: 18px;
    height: 18px;
    background-color: #3e704a;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.peticao-excerpt .message-text {
    color: #155724;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Ler mais/menos */
.peticao-text-wrapper {
    transition: max-height 0.5s ease;
}

.peticao-read-more-wrapper {
    margin-top: 20px;
    margin-bottom: 10px;
}

.btn-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 7px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: #3e704a;
}

.btn-read-more:hover {
    background: var(--secondary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 143, 77, 0.3);
}

.btn-read-more i {
    font-size: 26px;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateY(2px);
}

.tab-pane .lead {
    font-size: 1rem;
}

/* Author Expert Section */
.author-expert-section {
    background: linear-gradient(135deg, #f8fdf8 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 0px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(45, 95, 46, 0.08);
    border: 1px solid #e8f5e9;
}

.author-expert-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-green);
}

.author-expert-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.author-expert-title i {
    font-size: 1.5rem;
}

.author-expert-subtitle {
    font-size: 0.95rem;
    color: var(--gray);
    margin-top: 8px;
}

.author-expert-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-photo-wrapper {
    flex-shrink: 0;
}

.author-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-green);
    box-shadow: 0 4px 15px rgba(45, 95, 46, 0.2);
    background: #f5f5f5;
}

.author-details {
    flex: 1;
}

.author-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.author-name-large a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name-large a:hover {
    color: var(--secondary-green);
}

.author-specialty {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 15px;
}

.author-bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid var(--light-green);
    border-radius: 20px;
    font-size: 0.70rem;
    color: var(--primary-green);
    font-weight: 600;
}

.credential-badge i {
    font-size: 1rem;
    color: var(--secondary-green);
}

.author-cta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.author-link:hover {
    color: var(--light-green);
}

.author-link i {
    font-size: 1.1rem;
}

/* Price Box */
.price-box {
    background: linear-gradient(135deg, var(--white) 0%, #f0f9f0 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 3px solid var(--light-green);
    position: sticky;
    top: 100px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-green);
    text-align: center;
}

/* Formas de Pagamento */
.payment-methods {
    background: rgba(45, 95, 46, 0.03);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(45, 95, 46, 0.1);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: rgba(45, 95, 46, 0.05);
    transform: translateX(3px);
}

.payment-item i {
    font-size: 1.2rem;
    color: var(--secondary-green);
    flex-shrink: 0;
}

.payment-item span {
    font-weight: 500;
}

.btn-buy-primary {
    background: #203A24;
    color: var(--white);
    border: none;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(74, 143, 77, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.btn-buy-primary span {
    flex: 1;
    text-align: center;
}

.btn-buy-primary i.bi-arrow-right-short {
    position: absolute;
    right: 20px;
    line-height: 0;
}

.btn-buy-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 143, 77, 0.8);
    background: #20c997;
}

/* Free download button alignment */
.btn-success.w-100.btn-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-left: 30px;
    padding-right: 30px;
}

.btn-success.w-100.btn-lg > span {
    flex: 1;
    text-align: center;
}

.btn-success.w-100.btn-lg > i.bi-arrow-right-short {
    position: absolute;
    right: 20px;
    line-height: 0;
}

.btn-success.w-100.btn-lg i:not(.bi-arrow-right-short) {
    line-height: 0;
}

/* Features */
.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.features-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    color: var(--secondary-green);
    font-size: 1.5rem;
}

/* Specifications */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
}

.spec-icon {
    color: var(--secondary-green);
    font-size: 1.5rem;
}

/* accordion relacionadas */
.accordion-header {
    font-size: 16px;
    font-weight: bold;
    color:#203a24;
}

.accordion-button::after {
    display: none;
}
.accordion-button {
    border: none;
}
.accordion-button,
.accordion-button:not(.collapsed) {
    color:#007bff !important;
    width: fit-content;
    display: block !important;
}
.toggle-text {
    /*margin-left: calc(calc(100% / 2) - 107.25px);*/
    font-weight: normal;
}

.accordion-body h4,
.accordion-body h5 {
    font-size: 14px;
}

/* Peças Relacionadas - Remover marcadores da lista */
.accordion-body ul {
    list-style: none;
    padding-left: 0;
}

.accordion-body ul li {
    padding-left: 0;
}

.accordion-body ul li::marker {
    display: none;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-title {
    color: var(--light-green);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-green);
    padding-left: 5px;
}


/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Header Mobile */
    .site-header {
        position: sticky;
        top: 0;
    }

    .navbar-custom {
        padding: 0.5rem 0;
    }

    .logo-img {
        height: 35px;
    }

    .navbar-collapse {
        background: var(--white);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
        justify-content: flex-start;
        border-radius: 8px;
        font-size: 1rem;
    }

    .nav-link i {
        font-size: 1.2rem;
    }

    .nav-item-cta {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(45, 95, 46, 0.1);
    }

    .btn-header-cart {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }

    .cart-text {
        display: inline;
    }

    /* Breadcrumb Mobile */
    .breadcrumb-wrapper {
        padding: 0.6rem 0;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.3rem;
    }

    /* Content */
    .peticao-cover,
    .price-box {
        position: static;
        margin-bottom: 30px;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .preview-title {
        font-size: 1.8rem;
    }

    /* Ajustes de padding e margens para mobile */
    .peticao-preview {
        padding: 20px;
        margin-bottom: 20px;
    }

    .peticao-cover {
        padding: 15px;
    }

    .price-box {
        padding: 20px;
    }

    /* Ajuste do título */
    .preview-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    /* Ajuste de botões */
    .btn-buy-primary {
        padding: 14px;
        font-size: 1rem;
    }

    /* Ajuste do trecho da petição */
    .peticao-excerpt {
        padding: 15px;
        margin: 20px 0;
    }

    .peticao-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .peticao-text p {
        text-indent: 1em;
    }

    .peticao-text div p {
        padding-left: 30px !important;
    }

    /* Ajuste do placeholder da capa */
    .cover-placeholder {
        padding: 15px;
    }

    .cover-placeholder-icon {
        font-size: 4rem;
    }

    .cover-placeholder-title {
        font-size: 1.1rem;
    }

    .cover-placeholder-type {
        font-size: 0.95rem;
    }

    /* Ajuste do preço */
    .price-amount {
        font-size: 2rem;
    }

    /* Ajuste de features */
    .features-list li {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .feature-icon {
        font-size: 1.2rem;
    }

    /* Ajuste de especificações */
    .spec-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    .spec-icon {
        font-size: 1.2rem;
    }

    /* Botão Ler mais em mobile */
    .btn-read-more {
        font-size: 0.9rem;
        padding: 10px 25px;
    }
}

/* Ajustes específicos para o template node-m2 em mobile */
@media (max-width: 768px) {
    /* Container principal */
    #product-content.content {
        padding: 10px;
        overflow-x: hidden;
    }

    /* Wrapper de informações */
    .main.info.wrapper {
        padding: 15px !important;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Forçar conteúdo do CKEditor a se ajustar */
    .petition-excerpt .collapsible,
    .petition-sinopse .collapsible,
    .jurisprudences .collapsible {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Forçar todos os elementos dentro do trecho da petição a respeitarem a largura */
    .petition-excerpt .collapsible *,
    .petition-sinopse .collapsible *,
    .jurisprudences .collapsible * {
        max-width: 100% !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Tabelas do CKEditor */
    .petition-excerpt table,
    .petition-sinopse table,
    .jurisprudences table {
        width: 100% !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .petition-excerpt table td,
    .petition-excerpt table th,
    .petition-sinopse table td,
    .petition-sinopse table th,
    .jurisprudences table td,
    .jurisprudences table th {
        width: auto !important;
        min-width: 0 !important;
        white-space: normal !important;
    }

    /* Imagens do CKEditor */
    .petition-excerpt img,
    .petition-sinopse img,
    .jurisprudences img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }

    /* Divs com largura fixa do CKEditor */
    .petition-excerpt div[style*="width"],
    .petition-sinopse div[style*="width"],
    .jurisprudences div[style*="width"] {
        width: auto !important;
        max-width: 100% !important;
    }

    /* Parágrafos e spans com largura fixa */
    .petition-excerpt p[style*="width"],
    .petition-excerpt span[style*="width"],
    .petition-sinopse p[style*="width"],
    .petition-sinopse span[style*="width"],
    .jurisprudences p[style*="width"],
    .jurisprudences span[style*="width"] {
        width: auto !important;
        max-width: 100% !important;
    }

    /* Botões VEJA TRECHO e CONFIRA EM PDF */
    .btn-trecho,
    .btn-preview {
        width: 100% !important;
        max-width: 322px;
        margin: 0 auto 15px !important;
    }

    .w-100.d-flex.justify-content-around {
        flex-direction: column;
        align-items: center;
    }

    /* Título de seção */
    .info-title {
        font-size: 1.3rem !important;
    }

    /* Author Expert Section - Mobile */
    .author-expert-section {
        padding: 20px;
        margin: 20px 0;
    }

    .author-expert-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .author-expert-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 5px;
    }

    .author-expert-title i {
        font-size: 1.3rem;
    }

    .author-expert-subtitle {
        font-size: 0.85rem;
    }

    .author-expert-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .author-photo-large {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .author-name-large {
        font-size: 1.3rem;
    }

    .author-specialty {
        font-size: 0.9rem;
    }

    .author-bio {
        font-size: 0.9rem;
    }

    .author-credentials {
        justify-content: center;
        gap: 8px;
    }

    .credential-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

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

    /* Área de características */
    .about.change-about {
        padding: 10px;
    }

    .resume p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .resume p b {
        font-size: 16px !important;
        display: block;
        margin-bottom: 5px;
    }

    /* Área de preço e ações */
    .icon.change-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .icon.change-icon .about {
        width: 100%;
        max-width: 400px;
    }

    .icon.change-icon .offer {
        text-align: center;
        margin-bottom: 15px;
    }

    /* Botões de ação */
    .actions.actions-to-buy {
        width: 100%;
    }

    .actions.actions-to-buy form,
    .actions.actions-to-buy .form-item,
    .actions.actions-to-buy .form-actions {
        width: 100% !important;
    }

    /* Seções expansíveis (accordion) */
    .petition-excerpt,
    .petition-sinopse,
    .jurisprudences,
    .important-info,
    .comments {
        margin: 15px 0;
    }

    .button.accordion {
        font-size: 1.1rem;
        padding: 15px;
    }

    .collapsible {
        padding: 15px;
    }

    /* Histórico de atualizações */
    .updates {
        margin: 15px 0;
    }

    .updates-title {
        font-size: 1rem;
    }

    #history_id ul {
        padding-left: 20px;
    }

    #history_id li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    /* Área de petições relacionadas */
    #peticoes-relacionadas {
        padding: 15px !important;
    }

    #peticoes-relacionadas h3 {
        font-size: 20px !important;
    }

    /* Área de busca avançada */
    .p-3.mt-5 {
        padding: 15px !important;
    }

    .btn-search-advanced {
        font-size: 0.9rem;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .btn-search-advanced i {
        font-size: 18px;
    }

    /* Rating box */
    div[style*="display: inline-flex"] {
        flex-direction: column !important;
        align-items: center;
    }

    /* Imagens */
    img[src*="download-automatico-robot.png"] {
        width: 50px !important;
        margin: 10px 0;
    }

    img[src*="busca-site-po.gif"] {
        width: 60px !important;
    }

    /* Ajuste de ícones nos botões */
    .position-relative i.bi-arrow-right-short {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        display: inline-block;
        margin-left: 5px;
    }

    /* Form de comentários */
    .block[style*="width: 30%"] {
        width: 100% !important;
    }
}

/* Ajustes para telas muito pequenas (smartphones em portrait) */
@media (max-width: 480px) {
    .preview-title {
        font-size: 1.3rem;
    }

    .price-amount {
        font-size: 1.8rem;
    }

    .btn-trecho,
    .btn-preview {
        font-size: 14px;
        height: auto !important;
        padding: 12px 10px !important;
        line-height: 1.4 !important;
    }

    .btn-trecho img,
    .btn-preview img {
        position: static !important;
        display: block;
        margin: 0 auto 5px;
    }

    .info-title {
        font-size: 1.1rem !important;
    }

    .resume p {
        font-size: 14px;
    }

    .resume p b {
        font-size: 14px !important;
    }

    .button.accordion {
        font-size: 1rem;
        padding: 12px;
    }

    .peticao-text {
        font-size: 0.95rem;
    }

    .btn-search-advanced {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* ===== NOVO HEADER - MOBILE ===== */
    .header-top {
        padding: 0.8rem 0;
    }

    .header-top-content {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .navbar-brand {
        order: 1;
    }

    .logo-img {
        height: 32px !important;
    }

    /* Busca Mobile - Full Width */
    .header-search {
        order: 4;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 1rem 0.6rem 2.5rem;
    }

    /* Header Actions Mobile */
    .header-actions {
        order: 2;
        gap: 0.4rem;
    }

    .btn-auth span {
        display: none;
    }

    .btn-auth {
        padding: 0.6rem;
        min-width: 40px;
        justify-content: center;
    }

    .btn-auth i {
        margin: 0;
        font-size: 1.2rem;
    }

    .btn-register,
    .btn-login {
        border-radius: 8px;
    }

    .btn-cart {
        width: 40px;
        height: 40px;
    }

    /* Menu Toggle */
    .navbar-toggler {
        order: 3;
        padding: 0.4rem 0.6rem;
        display: block !important;
    }

    /* Menu Principal Mobile */
    .navbar-main .navbar-collapse {
        background: var(--white);
        padding: 1rem 0;
    }

    .navbar-main .navbar-nav {
        gap: 0;
        padding: 0;
    }

    .navbar-main .nav-link {
        padding: 1rem !important;
        justify-content: flex-start;
        border-radius: 8px;
        border-bottom: none !important;
        font-size: 1rem;
    }

    .navbar-main .nav-link:hover {
        background: rgba(45, 95, 46, 0.05);
    }

    .navbar-main .nav-link.active {
        background: rgba(45, 95, 46, 0.1);
        color: var(--secondary-green) !important;
    }

    .navbar-main .nav-link i {
        font-size: 1.2rem;
    }
}


/* Custom Login Styles - Split Layout */
.login-container {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f9f5 0%, #e8f5e8 100%);
    min-height: 100vh;
}

.login-box {
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.login-split {
    display: flex;
    min-height: 600px;
}

/* Hero Section */
.login-hero {
    flex: 1;
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--light-green) 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

.hero-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.benefit-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Form Section */
.login-form-section {
    flex: 1;
    padding: 60px 50px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--gray);
    margin-bottom: 35px;
}

/* Tabs */
.custom-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
    border-bottom: 2px solid var(--light-gray);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.tab-btn.active {
    color: var(--secondary-green);
    border-bottom-color: var(--secondary-green);
}

.tab-btn:hover {
    color: var(--secondary-green);
    text-decoration: none;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.social-btn {
  padding: 2px 8px;
  border: 0.75px solid #3D8AF7;
  border-radius: 5px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: 195px;
  height: 50px;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.social-btn.google {
  border-color: #4285f4;
}

.social-btn.google:hover {
  background: #fc8200;
  color: #ffffff;
}

.social-btn.facebook {
  border-color: #1877f2;
}

.social-btn.facebook:hover {
  background: #fc8200;
  color: #ffffff;
}

.social-btn.instagram {
  border-color: #1877f2;
}

.social-btn.instagram:hover {
  background: #fc8200;
  color: #ffffff;
}

.social-btn.x {
  border-color: #1877f2;
}

.social-btn.x:hover {
  background: #fc8200;
  color: #ffffff;
}

.social-btn.disabled {
    filter: grayscale(1) opacity(0.5);
}

.custom-login-divider {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 3rem;
}

.custom-login-divider span {
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  z-index: 2;
  position: relative;
  padding: 10px;
}

.custom-login-divider::after {
    content: " ";
    display: block;
    width: 50%;
    position: absolute;
    top: 10px;
    border-bottom: 2px dashed #000000;
    z-index: 1;
    left: 25%;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Input icon wrapper */
.input-icon {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
}

.input-icon i.icon-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.2rem;
    z-index: 5;
    pointer-events: none;
}

.input-icon i.icon-right {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.2rem;
    z-index: 5;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-icon i.icon-right:hover {
    color: var(--secondary-green);
}

.custom-login-input {
    padding: 14px 50px 14px 50px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.custom-login-input:focus {
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 4px rgba(74, 143, 77, 0.1);
    outline: none;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #636e72;
}

.terms-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.custom-terms-checkbox {
  margin-top: 3px;
}

.terms-text {
  font-size: 14px;
  color: #636e72;
  line-height: 1.4;
}

/* Forgot Password Link */
.recover-pass {
    text-align: right;
    margin-bottom: 20px;
}

.recover-pass a,
.forgot-link {
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.recover-pass a:hover,
.forgot-link:hover {
    text-decoration: underline;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-green);
    background: #f0f9f0;
    border: 1px solid var(--light-green);
    border-radius: 12px;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.security-badge i {
    font-size: 1.2rem;
}

/* Submit Button */
.custom-login-submit {
    background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(74, 143, 77, 0.4);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.custom-login-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 143, 77, 0.5);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--gray);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--light-gray);
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

/* Social Buttons Grid */
.social-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    background: var(--white);
    border: 2px solid var(--light-gray);
    color: var(--dark-gray);
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-social:hover {
    border-color: var(--secondary-green);
    background: #f8f9fa;
    transform: translateY(-2px);
    text-decoration: none;
}

.register-link, .login-link {
  margin-top: 20px;
  text-align: center;
  line-height: 2;
  letter-spacing: 0.7px;
  font-weight: bold;
  color: #000000;
}

.register-link a, .login-link a {
  color: #3D8AF7;
  text-decoration: none;
  font-weight: 500;
}

.register-link a:hover, .login-link a:hover {
  text-decoration: underline;
}

label[for="edit-terms"] {
  display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-split {
        flex-direction: column;
    }

    .login-hero {
        padding: 40px 30px;
    }

    .login-form-section {
        padding: 40px 30px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .login-hero,
    .login-form-section {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .social-buttons-grid {
        grid-template-columns: 1fr;
    }

  .security-badge {
    width: 100%;
    height: auto;
  }

  .social-buttons {
    flex-direction: column;
  }

  .social-btn {
    width: 100%;
  }

  .target-search-advanced {
    display: none;
  }

  .nao-encontrado {
    line-height: 3;
  }
}

/* Hide default Drupal form elements */
/* Hide Drupal form labels - usando placeholders */
.custom-login-form .form-item label,
.login-form-section .form-item label,
.custom-register-form .form-item label {
  position: absolute;
  top: -20px
}

.custom-login-form .form-item,
.custom-register-form .form-item {
  margin-bottom: 20px;
  max-width: max-content;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: lowercase;
}

#custom-login-form .form-item .form-required {
  display: none;
}

.custom-login-form .form-actions,
.custom-register-form .form-actions {
  margin: 0;
}

/* Error messages */
.messages.error {
  background: #ffe6e6;
  border: 1px solid #ff4757;
  color: #c44569;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.messages.status {
  background: #e6ffe6;
  border: 1px solid #2ed573;
  color: #2ed573;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Checkbox for terms */
.form-item-terms {
    margin-bottom: 25px !important;
}

.form-item-terms label {
    position: static !important;
    display: none !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray);
    cursor: pointer;
}

.form-item-terms .form-checkbox {
    margin-top: 3px;
    cursor: pointer;
}

.form-item-terms .description {
    margin-left: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-item-terms a {
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: 600;
}

.form-item-terms a:hover {
    text-decoration: underline;
}

/* Form checkbox styling */
.form-checkbox:checked {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
}

.div-sidebar.fl-11 {
  display: none !important;
}

.header-top {
  min-height: unset !important;
}

.header-top .header-center {
  display: none;
}

#breadcrumbs {
  display: none !important;
}

#body header {
  display: none !important;
}

#content {
  width: 100% !important;
}

.font-bold {
  font-weight: bold !important;
}

.font-size-10 {
  font-size: 10px !important;
}

.custom-register-form .form-type-checkbox.form-item-terms {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 25px auto;
}

.custom-register-form .form-type-checkbox.form-item-terms .description {
  padding-left: 10px;
}

.custom-register-form .form-type-checkbox.form-item-terms input {
  margin: 0;
}
/* Mensagens na página de recuperação de senha */
.custom-login-messages {
    margin-bottom: 20px;
}
.custom-login-messages .messages {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.custom-login-messages .messages.status {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.custom-login-messages .messages.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.custom-login-messages .messages.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}
