/**
 * Page Builder - Estilos de Renderização Frontend
 *
 * @package Conect_Prefeitura
 * @author Leandro Kywdery (https://conectsistemas.com.br) - 18/09/2026 17:40:00
 * @version 2.4.0
 */

.conect-pb-container-root {
  width: 100%;
  overflow-x: hidden;
}

/* Seções */
.conect-pb-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.conect-pb-section-inner {
  width: 100%;
}

.conect-pb-fullwidth {
  max-width: 100% !important;
  padding-left: 20px;
  padding-right: 20px;
}

.conect-pb-columns-wrap {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

/* Colunas */
.conect-pb-column {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.conect-pb-column-inner {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Classes Responsivas de Ocultação */
@media (min-width: 992px) {
  .hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .conect-pb-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
  }
}

/* Widgets Gerais */
.conect-pb-widget {
  margin-bottom: 20px;
}

.conect-pb-widget:last-child {
  margin-bottom: 0;
}

.conect-pb-heading {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.25;
}

.conect-pb-text {
  line-height: 1.6;
}

.conect-pb-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.conect-pb-btn-wrap {
  margin: 10px 0;
}

.conect-pb-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pm-primary, #005a36);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.conect-pb-link:hover {
  text-decoration: underline;
  transform: translateX(4px);
}

/* Widget Destaque Institucional */
.conect-pb-highlight-box {
  background: var(--pm-primary, #005a36);
  color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
}

.conect-pb-hl-title {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0;
}

.conect-pb-hl-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 24px;
}

.conect-pb-hl-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Widget Acesso Rápido */
.conect-pb-quick-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.conect-pb-quick-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.conect-pb-quick-ul li {
  margin-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 8px;
}

.conect-pb-quick-ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.conect-pb-quick-ul a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.conect-pb-quick-ul a:hover {
  color: var(--pm-primary, #005a36);
}

/* Widget Contatos */
.conect-pb-contacts-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.conect-pb-contacts-card .contact-line {
  margin-bottom: 10px;
  font-size: 14px;
  color: #475569;
}

/* Widget Pesquisa */
.conect-pb-survey-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.survey-question {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 14px;
}

.survey-options {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* CPT Dinâmico Grid */
.conect-pb-cpt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.conect-pb-cpt-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.conect-pb-cpt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.conect-pb-cpt-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.conect-pb-cpt-card .cpt-card-content {
  padding: 16px;
}

.conect-pb-cpt-card h4 {
  margin: 6px 0;
  font-size: 16px;
}

.conect-pb-cpt-card h4 a {
  color: #1e293b;
  text-decoration: none;
}

.conect-pb-cpt-card h4 a:hover {
  color: var(--pm-primary, #005a36);
}

.conect-pb-cpt-card .date {
  font-size: 12px;
  color: #94a3b8;
}
