/* =========================================================
   Conselho de Usuários - Câmara Municipal de Cuiabá
   Arquivo: conselho-usuarios.css
   ========================================================= */

.cmusp-page-content {
  background: #fff;
  padding: 28px 0 64px;
}

.cmusp-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.cmusp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.cmusp-main,
.cmusp-sidebar {
  display: grid;
  gap: 24px;
}

.cmusp-card {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .065);
}

.cmusp-card h2 {
  color: #071324;
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 14px;
  line-height: 1.24;
  letter-spacing: -.2px;
}

.cmusp-card h3 {
  color: #071324;
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 6px;
}

.cmusp-card p {
  color: #4d5665;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 14px;
}

/* =========================================================
   Notícia principal
   ========================================================= */

.cmusp-featured {
  padding: 0;
  overflow: hidden;
}

.featured-image {
  height: 292px;
  background: url('/sites/default/files/imagens/conselho1_24-04026.jpg') center 42% / cover no-repeat;
  position: relative;
}

.featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 19, 36, .68));
}

.featured-label {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.featured-label span,
.featured-label strong {
  background: rgba(255, 255, 255, .94);
  color: #071324;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 900;
}

.featured-label span {
  text-transform: uppercase;
}

.featured-body {
  padding: 25px 26px 26px;
}

.cmusp-featured h2 {
  font-size: 29px;
  margin-bottom: 8px;
}

.cmusp-meta {
  font-size: 15px;
  color: #697386;
  font-weight: 700;
  margin-bottom: 15px;
}

.cmusp-meta i {
  color: #00833e;
  margin-right: 6px;
}

/* Leia mais */
.cmusp-readmore {
  margin-top: 8px;
  border-top: 1px solid #e6e9ef;
  padding-top: 13px;
}

.cmusp-readmore summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #00833e;
  font-size: 16px;
  font-weight: 900;
  list-style: none;
  border: 0 !important;
  outline: none !important;
}

.cmusp-readmore summary::-webkit-details-marker {
  display: none;
}

.cmusp-readmore summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #00833e;
  border-bottom: 2px solid #00833e;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: .2s ease;
}

.cmusp-readmore[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.cmusp-readmore .full-text {
  margin-top: 14px;
}

/* Citações */
.cmusp-quote {
  border-left: 4px solid #00833e;
  background: #f7fbf9;
  border-radius: 0 12px 12px 0;
  padding: 15px 18px;
  margin: 15px 0;
  color: #333;
  font-size: 16px;
  line-height: 1.75;
}

.cmusp-quote strong {
  display: block;
  color: #006b33;
  margin-top: 8px;
}

/* =========================================================
   O que é o Conselho
   ========================================================= */

.cmusp-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.cmusp-box {
  background: #f8fafc;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  padding: 18px;
}

.cmusp-box i {
  display: none !important;
}

.cmusp-box::before {
  content: "";
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 131, 62, .10);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
  color: #00833e;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* Acompanhar */
.cmusp-box:nth-child(1)::before {
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='%2300833e' d='M12 5c5.1 0 8.7 4.7 9.7 6.1a1.5 1.5 0 0 1 0 1.8C20.7 14.3 17.1 19 12 19s-8.7-4.7-9.7-6.1a1.5 1.5 0 0 1 0-1.8C3.3 9.7 6.9 5 12 5zm0 3.2a3.8 3.8 0 1 0 0 7.6 3.8 3.8 0 0 0 0-7.6zm0 2a1.8 1.8 0 1 1 0 3.6 1.8 1.8 0 0 1 0-3.6z'/>\
  </svg>");
}

/* Avaliar */
.cmusp-box:nth-child(2)::before {
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='%2300833e' d='M5 19h15a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1V4a1 1 0 1 1 2 0v15zm3.2-3.1a1 1 0 0 1-1.4-1.4l3.7-3.7a1 1 0 0 1 1.4 0l2.1 2.1 4.3-4.3a1 1 0 0 1 1.4 1.4l-5 5a1 1 0 0 1-1.4 0l-2.1-2.1-3 3z'/>\
  </svg>");
}

/* Propor */
.cmusp-box:nth-child(3)::before {
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='%2300833e' d='M12 2a7 7 0 0 0-4 12.7c.6.4 1 1.1 1 1.8V17h6v-.5c0-.7.4-1.4 1-1.8A7 7 0 0 0 12 2zm-3 17a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-.5H9V19zm1.5 3a1 1 0 0 0 .9.6h1.2a1 1 0 0 0 .9-.6h-3z'/>\
  </svg>");
}

.cmusp-box h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.cmusp-box p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* =========================================================
   Galeria
   ========================================================= */

.cmusp-section-head {
  margin-bottom: 18px;
}

.cmusp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.cmusp-gallery-item {
  display: block;
  aspect-ratio: 1 / .75;
  border-radius: 13px;
  overflow: hidden;
  background: #ddd;
  position: relative;
  cursor: pointer;
}

.cmusp-gallery-item::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  background-color: rgba(0, 0, 0, .58);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  border-radius: 50%;
  opacity: 0;
  transition: .25s ease;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='white' d='M10 4a6 6 0 1 0 3.6 10.8l3.8 3.8a1 1 0 0 0 1.4-1.4L15 13.4A6 6 0 0 0 10 4zm0 2a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm-1 2h2v2h2v2h-2v2H9v-2H7v-2h2V8z'/>\
  </svg>");
}

.cmusp-gallery-item:hover::after {
  opacity: 1;
}

.cmusp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s ease;
}

.cmusp-gallery-item:hover img {
  transform: scale(1.05);
}

/* =========================================================
   Competências
   ========================================================= */

.cmusp-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.cmusp-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  background: #f8fafc;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  color: #4d5665;
  font-size: 15px;
  line-height: 1.6;
}

.cmusp-list li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 12px;
  color: #00833e;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

/* =========================================================
   Sidebar
   ========================================================= */

.cmusp-sidebar .cmusp-card {
  padding: 22px;
}

.cmusp-sidebar h2 {
  font-size: 22px;
}

/* =========================================================
   Documentos
   ========================================================= */

.cmusp-doc-list {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.cmusp-doc {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon meta";
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  padding: 14px 14px !important;
  min-height: 78px;
  background: #f8fafc;
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  text-decoration: none !important;
  color: #071324;
  transition: .25s ease;
}

.cmusp-doc:hover {
  background: rgba(0, 131, 62, .05);
  border-color: rgba(0, 131, 62, .20);
  transform: translateY(-1px);
}

.cmusp-doc i {
  display: none !important;
}

.cmusp-doc > span:last-child {
  display: none !important;
}

.cmusp-doc::before {
  content: "";
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 12px;
  background-color: #008c3f;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

/* Ícone padrão PDF - verde */
.cmusp-doc::before {
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='white' d='M7 3h7l5 5v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z' opacity='0.97'/>\
    <path fill='%23008c3f' d='M14 3v5h5z' opacity='0.18'/>\
    <rect x='6.2' y='15.5' width='11.6' height='4.2' rx='1.2' fill='white'/>\
    <text x='12' y='18.5' font-size='4.2' text-anchor='middle' fill='%23008c3f' font-family='Arial, sans-serif' font-weight='700'>PDF</text>\
  </svg>");
}

/* Cronograma */
.cmusp-doc[href*='CRONOGRAMA']::before,
.cmusp-doc[href*='Cronograma']::before,
.cmusp-doc[href*='cronograma']::before {
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <rect x='4' y='5' width='16' height='15' rx='2.2' fill='white'/>\
    <rect x='4' y='8' width='16' height='3' fill='%23008c3f' opacity='0.18'/>\
    <rect x='7' y='3' width='2' height='4' rx='1' fill='white'/>\
    <rect x='15' y='3' width='2' height='4' rx='1' fill='white'/>\
    <rect x='7' y='12' width='2.3' height='2.3' rx='0.4' fill='%23008c3f'/>\
    <rect x='10.8' y='12' width='2.3' height='2.3' rx='0.4' fill='%23008c3f'/>\
    <rect x='14.6' y='12' width='2.3' height='2.3' rx='0.4' fill='%23008c3f'/>\
    <rect x='7' y='15.8' width='2.3' height='2.3' rx='0.4' fill='%23008c3f'/>\
    <rect x='10.8' y='15.8' width='2.3' height='2.3' rx='0.4' fill='%23008c3f'/>\
  </svg>");
}

/* Lei */
.cmusp-doc[href*='L13460']::before,
.cmusp-doc[href*='13460']::before {
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='white' d='M12 5.3 6.2 8.1l5.8 2.8 5.8-2.8z'/>\
    <path fill='white' d='M8.2 11.2h7.6l3.1 4.2a1.7 1.7 0 0 1-1.4 2.7H6.5a1.7 1.7 0 0 1-1.4-2.7z' opacity='0.96'/>\
    <rect x='11' y='4' width='2' height='8.5' rx='1' fill='white'/>\
  </svg>");
}

/* Nota técnica */
.cmusp-doc[href*='NOTA']::before,
.cmusp-doc[href*='Nota']::before,
.cmusp-doc[href*='nota']::before {
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='white' d='M6 4h8l4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z' opacity='0.96'/>\
    <path fill='%23008c3f' d='M14 4v5h5z' opacity='0.18'/>\
    <path fill='%23008c3f' d='M8 15.8c1.1-2.2 2.5-3.9 6.2-5.4l1.2 1.2c-1.6.8-2.8 1.8-3.8 3.1 1.1.2 2.1.5 3.2 1l-.7 1.6c-1.2-.5-2.5-.8-3.9-.9-.6.8-1.1 1.7-1.6 2.7l-1.7-.8c.4-.8.8-1.7 1.3-2.5-.5 0-1 .1-1.5.2l-.3-1.7c.8-.2 1.7-.3 2.6-.3z'/>\
  </svg>");
}

.cmusp-doc > span:first-of-type {
  grid-area: title;
  display: block !important;
  min-width: 0;
  align-self: end;
}

.cmusp-doc strong {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  color: #071324 !important;
  font-weight: 900 !important;
}

.cmusp-doc > small {
  grid-area: meta;
  display: block !important;
  margin: 0 !important;
  align-self: start;
}

.cmusp-doc > small span,
.cmusp-doc small {
  display: inline-block !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  color: #738091 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

/* =========================================================
   Próximas reuniões
   ========================================================= */

.cmusp-meeting {
  border-bottom: 1px solid #e6e9ef;
  padding: 16px 0;
}

.cmusp-meeting:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cmusp-meeting strong {
  display: inline-block;
  color: #00833e;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

.cmusp-meeting span {
  display: block;
  color: #071324;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.cmusp-meeting small {
  display: block;
  color: #697386;
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.45;
}

/* =========================================================
   Ouvidoria
   ========================================================= */

.cmusp-ouvidoria {
  background: #071324;
  color: #fff;
}

.cmusp-ouvidoria h2,
.cmusp-ouvidoria p {
  color: #fff;
}

.cmusp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00833e;
  color: #fff;
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: 900;
  text-decoration: none;
  margin-top: 16px;
}

.cmusp-button:hover {
  background: #006b33;
  color: #fff;
}

/* =========================================================
   Lightbox da galeria
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: #fff;
  color: #111;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 991px) {
  .cmusp-layout {
    grid-template-columns: 1fr;
  }

  .cmusp-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }

  .cmusp-ouvidoria {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .cmusp-page-content {
    padding: 24px 0 45px;
  }

  .cmusp-card {
    padding: 20px;
  }

  .featured-image {
    height: 205px;
  }

  .cmusp-featured h2 {
    font-size: 23px;
  }

  .cmusp-box-grid,
  .cmusp-sidebar {
    grid-template-columns: 1fr;
  }

  .cmusp-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .cmusp-card p {
    font-size: 16px;
  }

  .cmusp-doc {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

/* =========================================================
   Cabeçalho da página - Conselho de Usuários
   ========================================================= */

.cmusp-page-heading {
  background: #ffffff;
  border: 1px solid #dfe6ee;
  border-radius: 18px;
  padding: 28px 32px;
  margin: 0 0 28px 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.cmusp-page-heading p {
  margin: 0 0 14px 0;
  font-size: 17px;
  line-height: 1.65;
  color: #24364b;
}

.cmusp-page-heading p:first-child {
  margin-bottom: 10px;
}

.cmusp-page-heading h1 {
  margin: 0 0 14px 0;
  font-family: "gilmer", Arial, sans-serif;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  color: #001833;
}

.cmusp-kicker {
  display: inline-block;
  font-family: "gilmer", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #00843d;
}

.cmusp-breadcrumb-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cmusp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #b9dfcd;
  border-radius: 999px;
  background: #eaf8f1;
  font-family: "gilmer", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #007a3d;
  line-height: 1;
}

/* Ícones dos selos */
.cmusp-pill::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  color: #00843d;
}

.cmusp-pill:nth-child(1)::before {
  content: "\f0c0"; /* usuários */
}

.cmusp-pill:nth-child(2)::before {
  content: "\f15b"; /* documento */
}

.cmusp-pill:nth-child(3)::before {
  content: "\f073"; /* calendário */
}

/* Responsivo */
@media (max-width: 768px) {
  .cmusp-page-heading {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .cmusp-page-heading h1 {
    font-size: 28px;
  }

  .cmusp-page-heading p {
    font-size: 16px;
  }

  .cmusp-breadcrumb-note {
    gap: 8px;
  }

  .cmusp-pill {
    font-size: 12px;
    padding: 8px 12px;
  }
}