/* ============================================================
   Portal Prefeitura Municipal de Brejo Santo
   Custom Styles - Tons Azuis Institucionais
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  --portal-primary: #316AFF;
  --portal-primary-dark: #2555cc;
  --portal-primary-light: #5a8aff;
  --portal-dark: #0C243C;
  --portal-darker: #091b2e;
  --portal-darkest: #060f1a;
  --portal-navy: #0e2a47;
  --portal-light: #ECF2FD;
  --portal-lighter: #f4f7fe;
  --portal-accent: #00b4d8;
  --portal-gold: #f0c040;
  --portal-text-light: rgba(255, 255, 255, 0.75);
  --portal-text-muted: rgba(255, 255, 255, 0.5);
  --portal-white: #ffffff;
  --portal-shadow: 0 4px 20px rgba(12, 36, 60, 0.1);
  --portal-shadow-lg: 0 8px 40px rgba(12, 36, 60, 0.15);
  --portal-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --portal-font: "Plus Jakarta Sans", sans-serif;
}

/* ----------------------------------------------------------
   2. General & Resets
   ---------------------------------------------------------- */
.portal-body {
  font-family: var(--portal-font);
  overflow-x: hidden;
}

.portal-body .page-layout {
  display: block;
}

/* Skip to content (accessibility) */
.portal-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  background: var(--portal-primary);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.3s;
  text-decoration: none;
}

.portal-skip-link:focus {
  top: 0;
  color: #fff;
}

/* ----------------------------------------------------------
   3. Top Utility Bar
   ---------------------------------------------------------- */
.portal-topbar {
  background: linear-gradient(135deg, var(--portal-darkest) 0%, var(--portal-dark) 100%);
  padding: 0;
  font-size: 13px;
  color: var(--portal-text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1050;
}

.portal-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}

.portal-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.portal-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: var(--portal-text-light);
  text-decoration: none;
  transition: var(--portal-transition);
  white-space: nowrap;
}

.portal-topbar-item:hover {
  color: var(--portal-white);
}

.portal-topbar-item i {
  font-size: 12px;
  color: var(--portal-primary-light);
}

.portal-topbar-separator {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 10px;
  display: inline-block;
}

.portal-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.portal-topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--portal-text-light);
  text-decoration: none;
  transition: var(--portal-transition);
  font-size: 13px;
}

.portal-topbar-social:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--portal-white);
  transform: translateY(-1px);
}

.portal-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--portal-text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--portal-transition);
  margin-left: 8px;
}

.portal-topbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--portal-white);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ----------------------------------------------------------
   4. Main Header & Navigation
   ---------------------------------------------------------- */
.portal-header {
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 1040;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  padding: 18px 0;
}

.portal-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--portal-white);
  box-shadow: var(--portal-shadow-lg);
  animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.portal-header .navbar {
  padding: 0;
  min-height: 80px;
}

.portal-header .navbar-brand {
  padding: 10px 0;
  margin-right: 2rem;
}

.portal-header .navbar-brand img {
  height: 48px;
  width: auto;
  transition: var(--portal-transition);
}

.portal-header .navbar-brand .logo-scrolled {
  display: none;
}

.portal-header .navbar-brand .logo-transparent {
  display: block;
}

.portal-header.is-sticky .navbar-brand .logo-scrolled {
  display: block;
}

.portal-header.is-sticky .navbar-brand .logo-transparent {
  display: none;
}

.portal-header .navbar-brand:hover img {
  transform: scale(1.03);
}

/* Hamburger Menu Toggle */
.portal-header .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 6px 10px;
  transition: var(--portal-transition);
}

.portal-header .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.portal-header.is-sticky .navbar-toggler {
  border-color: var(--portal-primary);
}

.portal-header.is-sticky .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(49, 106, 255, 0.25);
}

.portal-header .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");
}

.portal-header.is-sticky .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='%23316AFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navigation Links */
.portal-nav .nav-item {
  position: relative;
}

.portal-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 24px 16px !important;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: var(--portal-transition);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.portal-header.is-sticky .portal-nav .nav-link {
  color: var(--portal-dark);
}

.portal-nav .nav-link i {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--portal-transition);
}

.portal-header.is-sticky .portal-nav .nav-link i {
  color: var(--portal-primary);
}

.portal-nav .nav-link::after {
  display: none;
}

.portal-nav .nav-link .nav-arrow {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.8;
}

.portal-header.is-sticky .portal-nav .nav-link .nav-arrow {
  color: var(--portal-dark);
  opacity: 0.5;
}

.portal-nav .nav-link:hover .nav-arrow,
.portal-nav .nav-item.show .nav-link .nav-arrow {
  color: var(--portal-white);
  opacity: 1;
}

.portal-header.is-sticky .portal-nav .nav-link:hover .nav-arrow,
.portal-header.is-sticky .portal-nav .nav-item.show .nav-link .nav-arrow {
  color: var(--portal-primary);
}

.portal-nav .nav-item.show .nav-link .nav-arrow {
  transform: rotate(180deg);
}

/* Bottom border animation on hover */
.portal-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border-radius: 3px 3px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.portal-header.is-sticky .portal-nav .nav-link::before {
  background: linear-gradient(90deg, var(--portal-primary), var(--portal-primary-light));
}

.portal-nav .nav-link:hover::before,
.portal-nav .nav-link.active::before,
.portal-nav .nav-item.show .nav-link::before {
  width: 100%;
}

.portal-nav .nav-link:hover,
.portal-nav .nav-link.active,
.portal-nav .nav-item.show > .nav-link {
  color: var(--portal-white);
}

.portal-header.is-sticky .portal-nav .nav-link:hover,
.portal-header.is-sticky .portal-nav .nav-link.active,
.portal-header.is-sticky .portal-nav .nav-item.show > .nav-link {
  color: var(--portal-primary);
}

/* ----------------------------------------------------------
   5. Dropdown Menus
   ---------------------------------------------------------- */
.portal-nav .dropdown-menu {
  border: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--portal-shadow-lg);
  padding: 8px 0;
  margin-top: 0;
  min-width: 260px;
  border-top: 3px solid var(--portal-primary);
  animation: dropdownFadeIn 0.25s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-nav .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--portal-dark);
  transition: var(--portal-transition);
  border-left: 3px solid transparent;
}

.portal-nav .dropdown-item i {
  font-size: 16px;
  color: var(--portal-primary);
  width: 22px;
  text-align: center;
  opacity: 0.7;
  transition: var(--portal-transition);
}

.portal-nav .dropdown-item:hover,
.portal-nav .dropdown-item:focus {
  background: var(--portal-light);
  color: var(--portal-primary);
  border-left-color: var(--portal-primary);
  padding-left: 24px;
}

.portal-nav .dropdown-item:hover i,
.portal-nav .dropdown-item:focus i {
  opacity: 1;
  color: var(--portal-primary);
}

.portal-nav .dropdown-divider {
  margin: 4px 20px;
  border-color: rgba(0, 0, 0, 0.06);
}

/* Portal Header Wrapper */
.portal-header-wrapper {
  position: relative;
}

/* Portal Search Panel (acima do topbar, largura total) */
.portal-search-panel {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.portal-header-wrapper.search-open .portal-search-panel {
  max-height: 120px;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--portal-darkest) 0%, var(--portal-dark) 100%);
  padding-top: 12px;
}

.portal-search-panel-inner {
  padding: 0 24px 16px;
  width: 100%;
  box-sizing: border-box;
}

.portal-search-form {
  margin: 0;
  width: 100%;
}

.portal-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  transition: var(--portal-transition);
}

/* Search sempre tema escuro (acima do topbar) */
.portal-search-icon {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.portal-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--portal-white);
  outline: none;
}

.portal-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.portal-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: var(--portal-transition);
}

.portal-search-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--portal-white);
}

/* Header Search Button */
.portal-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  cursor: pointer;
  transition: var(--portal-transition);
  margin-left: 12px;
}

.portal-search-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--portal-white);
  transform: scale(1.05);
}

.portal-header.is-sticky .portal-search-btn {
  border-color: var(--portal-light);
  color: var(--portal-primary);
}

.portal-header.is-sticky .portal-search-btn:hover {
  background: var(--portal-primary);
  border-color: var(--portal-primary);
  color: var(--portal-white);
}

/* Header CTA Button */
.portal-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: var(--portal-white) !important;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: var(--portal-transition);
  white-space: nowrap;
  margin-left: 16px;
  border: none;
}

.portal-header-cta:hover {
  background: linear-gradient(135deg, var(--portal-primary-dark), var(--portal-darkest));
  color: var(--portal-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(49, 106, 255, 0.4);
}

.portal-header:not(.is-sticky) .portal-header-cta {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.portal-header:not(.is-sticky) .portal-header-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.8);
}

.portal-header-cta i {
  font-size: 14px;
}

/* ----------------------------------------------------------
   6. Portal Content Area
   ---------------------------------------------------------- */
.portal-main {
  min-height: 60vh;
}

/* Hero Section (for home page) */
.portal-hero {
  padding: 160px 0 100px;
  margin-top: -116px;
  position: relative;
  overflow: hidden;
  color: var(--portal-white);
}

.portal-hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.portal-hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
}

.portal-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(12, 36, 60, 0.85) 0%, rgba(14, 42, 71, 0.8) 40%, rgba(49, 106, 255, 0.75) 100%);
}

.portal-hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.portal-hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
}

.portal-hero-shapes .shape-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  opacity: 0.06;
  animation: floatShape 20s ease-in-out infinite;
}

.portal-hero-shapes .shape-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
  opacity: 0.05;
  animation: floatShape 15s ease-in-out infinite reverse;
}

.portal-hero-shapes .shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 15%;
  opacity: 0.04;
  animation: floatShape 12s ease-in-out infinite 2s;
}

.portal-hero-shapes .shape-4 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  opacity: 0.06;
  animation: floatShape 10s ease-in-out infinite 4s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.portal-hero .container {
  position: relative;
  z-index: 3;
}

.portal-hero-content {
  position: relative;
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.portal-hero-badge i {
  color: var(--portal-gold);
}

.portal-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.portal-hero .portal-hero-accent {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-hero .portal-hero-subtitle,
.portal-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.portal-hero-search {
  max-width: 540px;
  margin-top: 2rem;
}

.portal-hero-search .input-group {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: var(--portal-transition);
}

.portal-hero-search .input-group:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.portal-hero-search .form-control {
  background: transparent;
  border: none;
  color: #fff;
  padding: 16px 24px;
  font-size: 15px;
}

.portal-hero-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.portal-hero-search .form-control:focus {
  box-shadow: none;
  background: transparent;
}

.portal-hero-search .btn {
  background: var(--portal-white);
  color: var(--portal-primary);
  border: none;
  padding: 12px 28px;
  font-weight: 700;
  border-radius: 50px !important;
  margin: 4px;
  transition: var(--portal-transition);
}

.portal-hero-search .btn:hover {
  background: var(--portal-light);
  transform: scale(1.02);
}

.portal-hero-tags {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.portal-hero-tags span {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.portal-hero-tags a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--portal-transition);
  font-weight: 500;
}

.portal-hero-tags a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Quick Access Cards */
.portal-quick-access {
  margin-top: -55px;
  position: relative;
  z-index: 10;
  padding-bottom: 0;
}

.portal-quick-card {
  background: var(--portal-white);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--portal-shadow);
  transition: var(--portal-transition);
  text-decoration: none;
  display: block;
  border: 1px solid transparent;
  height: 100%;
}

.portal-quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--portal-shadow-lg);
  border-color: var(--portal-primary);
}

.portal-quick-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--portal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: var(--portal-transition);
}

.portal-quick-card .icon-box i {
  font-size: 24px;
  color: var(--portal-primary);
  transition: var(--portal-transition);
}

.portal-quick-card:hover .icon-box {
  transform: scale(1.08);
}

.portal-quick-card h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 4px;
}

.portal-quick-card p {
  font-size: 12px;
  color: #97A1C0;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   GENERIC SECTION STYLES
   ---------------------------------------------------------- */
.portal-section {
  padding: 72px 0;
}

.portal-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.portal-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--portal-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.portal-section-badge i {
  font-size: 14px;
}

.portal-section-badge--gold {
  color: var(--portal-gold);
}

.portal-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--portal-dark);
  margin-bottom: 6px;
  line-height: 1.2;
}

.portal-section-subtitle {
  font-size: 1rem;
  color: #6b7a99;
  margin-bottom: 0;
  max-width: 520px;
}

.portal-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--portal-transition);
  padding: 8px 0;
}

.portal-section-link:hover {
  color: var(--portal-primary-dark);
  gap: 10px;
}

.portal-section-link--light {
  color: rgba(255, 255, 255, 0.9);
}

.portal-section-link--light:hover {
  color: #fff;
}

/* ----------------------------------------------------------
   STATISTICS SECTION
   ---------------------------------------------------------- */
.portal-stats {
  padding: 40px 0 48px;
  position: relative;
  z-index: 5;
}

.portal-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--portal-white);
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(12, 36, 60, 0.07);
  padding: 32px 16px;
  flex-wrap: wrap;
}

.portal-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 36px;
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.portal-stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(12, 36, 60, 0.1), transparent);
}

.portal-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--portal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-stat-icon i {
  font-size: 22px;
  color: var(--portal-primary);
}

.portal-stat-info {
  display: flex;
  flex-direction: column;
}

.portal-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--portal-dark);
  line-height: 1.1;
}

.portal-stat-label {
  font-size: 13px;
  color: #6b7a99;
  font-weight: 500;
}

/* ----------------------------------------------------------
   NEWS SECTION
   ---------------------------------------------------------- */
.portal-news-section {
  background: var(--portal-lighter);
}

.portal-news-featured {
  display: block;
  background: var(--portal-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--portal-shadow);
  transition: var(--portal-transition);
  text-decoration: none;
  height: 100%;
}

.portal-news-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--portal-shadow-lg);
}

.portal-news-featured-img {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.portal-news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portal-news-featured:hover .portal-news-featured-img img {
  transform: scale(1.05);
}

.portal-news-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--portal-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.portal-news-featured-body {
  padding: 24px;
}

.portal-news-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #6b7a99;
}

.portal-news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portal-news-meta i {
  font-size: 12px;
  color: var(--portal-primary);
}

.portal-news-featured-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-news-featured-body p {
  font-size: 14px;
  color: #6b7a99;
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News list (side) */
.portal-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.portal-news-item {
  display: flex;
  gap: 16px;
  background: var(--portal-white);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  transition: var(--portal-transition);
  box-shadow: 0 1px 8px rgba(12, 36, 60, 0.05);
  flex: 1;
  align-items: center;
}

.portal-news-item:hover {
  transform: translateX(4px);
  box-shadow: var(--portal-shadow);
}

.portal-news-item-img {
  width: 100px;
  min-width: 100px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
}

.portal-news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-news-item-body {
  flex: 1;
  min-width: 0;
}

.portal-news-category-sm {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--portal-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.portal-news-item-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-news-date {
  font-size: 12px;
  color: #97A1C0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-news-date i {
  font-size: 11px;
}

/* ----------------------------------------------------------
   SECRETARIAS SLIDER
   ---------------------------------------------------------- */
.portal-secretarias-section {
  padding-bottom: 72px;
  overflow: hidden;
}

.portal-slider-nav {
  display: flex;
  gap: 8px;
}

.portal-slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(12, 36, 60, 0.12);
  background: var(--portal-white);
  color: var(--portal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--portal-transition);
  font-size: 14px;
}

.portal-slider-btn:hover {
  background: var(--portal-primary);
  border-color: var(--portal-primary);
  color: #fff;
  transform: scale(1.05);
}

.portal-secretarias-slider {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 20px;
}

.portal-secretarias-slider::-webkit-scrollbar {
  display: none;
}

.portal-secretarias-track {
  display: flex;
  gap: 20px;
  /* Alinha com o container Bootstrap: margem de centralização + gutter (12px) */
  padding-left: max(0.75rem, calc((100vw - 1140px) / 2 + 0.75rem));
  padding-right: max(0.75rem, calc((100vw - 1140px) / 2 + 0.75rem));
}

@media (min-width: 1400px) {
  .portal-secretarias-track {
    padding-left: max(0.75rem, calc((100vw - 1320px) / 2 + 0.75rem));
    padding-right: max(0.75rem, calc((100vw - 1320px) / 2 + 0.75rem));
  }
}

@media (max-width: 1199.98px) {
  .portal-secretarias-track {
    padding-left: max(0.75rem, calc((100vw - 960px) / 2 + 0.75rem));
    padding-right: max(0.75rem, calc((100vw - 960px) / 2 + 0.75rem));
  }
}

@media (max-width: 991.98px) {
  .portal-secretarias-track {
    padding-left: max(0.75rem, calc((100vw - 720px) / 2 + 0.75rem));
    padding-right: max(0.75rem, calc((100vw - 720px) / 2 + 0.75rem));
  }
}

@media (max-width: 767.98px) {
  .portal-secretarias-track {
    padding-left: max(0.75rem, calc((100vw - 540px) / 2 + 0.75rem));
    padding-right: max(0.75rem, calc((100vw - 540px) / 2 + 0.75rem));
  }
}

@media (max-width: 575.98px) {
  .portal-secretarias-track {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.portal-secretaria-card {
  flex: 0 0 280px;
  background: var(--portal-white);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(12, 36, 60, 0.06);
  border: 1px solid rgba(12, 36, 60, 0.06);
  transition: var(--portal-transition);
  display: flex;
  flex-direction: column;
}

.portal-secretaria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(12, 36, 60, 0.12);
  border-color: var(--card-accent, var(--portal-primary));
}

.portal-secretaria-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-accent, var(--portal-primary)) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: var(--portal-transition);
}

.portal-secretaria-icon i {
  font-size: 22px;
  color: var(--card-accent, var(--portal-primary));
}

.portal-secretaria-card:hover .portal-secretaria-icon {
  background: var(--card-accent, var(--portal-primary));
}

.portal-secretaria-card:hover .portal-secretaria-icon i {
  color: #fff;
}

.portal-secretaria-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 8px;
}

.portal-secretaria-card p {
  font-size: 13px;
  color: #6b7a99;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.portal-secretaria-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--card-accent, var(--portal-primary));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--portal-transition);
}

.portal-secretaria-card:hover .portal-secretaria-link {
  gap: 10px;
}

/* ----------------------------------------------------------
   SERVICES SECTION
   ---------------------------------------------------------- */
.portal-services-section {
  background: var(--portal-lighter);
}

.portal-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--portal-white);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 8px rgba(12, 36, 60, 0.04);
  border: 1px solid rgba(12, 36, 60, 0.05);
  transition: var(--portal-transition);
  height: 100%;
}

.portal-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--portal-shadow);
  border-color: color-mix(in srgb, var(--svc-color, var(--portal-primary)) 30%, transparent);
}

.portal-service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--svc-color, var(--portal-primary)) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: var(--portal-transition);
}

.portal-service-icon i {
  font-size: 24px;
  color: var(--svc-color, var(--portal-primary));
  transition: var(--portal-transition);
}

.portal-service-card:hover .portal-service-icon {
  background: var(--svc-color, var(--portal-primary));
  transform: scale(1.08);
}

.portal-service-card:hover .portal-service-icon i {
  color: #fff;
}

.portal-service-card h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 4px;
}

.portal-service-card p {
  font-size: 12px;
  color: #97A1C0;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   TOURISM SECTION
   ---------------------------------------------------------- */
.portal-tourism-section {
  background: linear-gradient(135deg, var(--portal-dark) 0%, var(--portal-navy) 50%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
}

.portal-tourism-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.portal-tourism-section .container {
  position: relative;
  z-index: 1;
}

.portal-tourism-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--portal-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portal-tourism-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.portal-tourism-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.portal-tourism-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portal-tourism-card:hover .portal-tourism-img img {
  transform: scale(1.08);
}

.portal-tourism-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.portal-tourism-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.portal-tourism-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portal-tourism-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.portal-tourism-body p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  flex: 1;
}

.portal-tourism-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--portal-gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--portal-transition);
}

.portal-tourism-link:hover {
  color: #fff;
  gap: 10px;
}

/* ----------------------------------------------------------
   CTA TRANSPARENCY SECTION
   ---------------------------------------------------------- */
.portal-cta-section {
  padding: 0;
  position: relative;
  z-index: 2;
  margin-top: -36px;
  margin-bottom: 0;
}

.portal-cta-card {
  background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 12px 40px rgba(49, 106, 255, 0.3);
  flex-wrap: wrap;
}

.portal-cta-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.portal-cta-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-cta-icon i {
  font-size: 24px;
  color: #fff;
}

.portal-cta-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.portal-cta-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 480px;
}

.portal-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.portal-cta-btn-primary {
  background: #fff !important;
  color: var(--portal-primary) !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  border: none;
  transition: var(--portal-transition);
}

.portal-cta-btn-primary:hover {
  background: var(--portal-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.portal-cta-btn-outline {
  background: transparent !important;
  color: #fff !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  transition: var(--portal-transition);
}

.portal-cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   EVENTS SECTION
   ---------------------------------------------------------- */
.portal-events-section {
  padding-top: 90px;
}

.portal-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: var(--portal-transition);
  border: none;
  text-decoration: none;
}

.portal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(49, 106, 255, 0.35);
  color: #fff;
}

.portal-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-event-card {
  display: flex;
  gap: 20px;
  background: var(--portal-white);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(12, 36, 60, 0.06);
  border: 1px solid rgba(12, 36, 60, 0.05);
  transition: var(--portal-transition);
  align-items: center;
}

.portal-event-card:hover {
  transform: translateX(6px);
  box-shadow: var(--portal-shadow);
  border-color: var(--portal-primary);
}

.portal-event-date {
  width: 68px;
  min-width: 68px;
  height: 72px;
  background: var(--portal-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--portal-transition);
}

.portal-event-card:hover .portal-event-date {
  background: var(--portal-primary);
}

.portal-event-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--portal-primary);
  line-height: 1;
  transition: var(--portal-transition);
}

.portal-event-card:hover .portal-event-day {
  color: #fff;
}

.portal-event-month {
  font-size: 12px;
  font-weight: 700;
  color: var(--portal-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--portal-transition);
}

.portal-event-card:hover .portal-event-month {
  color: rgba(255, 255, 255, 0.8);
}

.portal-event-info {
  flex: 1;
  min-width: 0;
}

.portal-event-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--portal-primary);
  background: color-mix(in srgb, var(--portal-primary) 10%, transparent);
  padding: 3px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.portal-event-tag--green {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
}

.portal-event-tag--purple {
  color: #9333ea;
  background: rgba(168, 85, 247, 0.1);
}

.portal-event-info h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.portal-event-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6b7a99;
  flex-wrap: wrap;
}

.portal-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portal-event-meta i {
  font-size: 12px;
  color: var(--portal-primary);
}

/* ----------------------------------------------------------
   PUBLICATIONS SECTION
   ---------------------------------------------------------- */
.portal-publications-section {
  background: var(--portal-lighter);
}

.portal-pub-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-pub-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--portal-white);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  transition: var(--portal-transition);
  border: 1px solid rgba(12, 36, 60, 0.05);
}

.portal-pub-item:hover {
  transform: translateX(4px);
  box-shadow: var(--portal-shadow);
  border-color: var(--portal-primary);
}

.portal-pub-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.portal-pub-icon--decree {
  background: rgba(49, 106, 255, 0.1);
  color: var(--portal-primary);
}

.portal-pub-icon--portaria {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
}

.portal-pub-icon--law {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.portal-pub-icon--resolution {
  background: rgba(0, 180, 216, 0.1);
  color: #00b4d8;
}

.portal-pub-info {
  flex: 1;
  min-width: 0;
}

.portal-pub-info h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 3px;
}

.portal-pub-info p {
  font-size: 13px;
  color: #6b7a99;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-pub-date {
  font-size: 12px;
  color: #97A1C0;
  font-weight: 600;
  white-space: nowrap;
}

.portal-pub-item--no-link {
  cursor: default;
  pointer-events: none;
}
.portal-pub-item--no-link:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(12, 36, 60, 0.05);
}

/* Legislacao Section (Leis, Decretos, etc.) */
.portal-legislacao-section {
  background: var(--portal-lighter);
}

.portal-legislacao-search {
  background: var(--portal-white);
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(12, 36, 60, 0.08);
  box-shadow: 0 2px 12px rgba(12, 36, 60, 0.06);
  overflow: hidden;
}

.portal-legislacao-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--portal-lighter) 0%, rgba(49, 106, 255, 0.04) 100%);
  border-bottom: 1px solid rgba(12, 36, 60, 0.06);
}

.portal-legislacao-search-hint {
  font-size: 14px;
  color: #6b7a99;
}

.portal-legislacao-search-header i {
  font-size: 18px;
  color: var(--portal-primary);
}

.portal-legislacao-search-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-dark);
  margin: 0;
}

.portal-legislacao-dados-abertos-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.portal-legislacao-dados-abertos-link:hover {
  color: var(--portal-primary-dark);
}

.portal-legislacao-search-form {
  padding: 24px 24px 20px;
}

.portal-legislacao-search-form .form-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7a99;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.portal-legislacao-search-form .form-label i {
  opacity: 0.85;
}

.portal-legislacao-search-form .form-control,
.portal-legislacao-search-form .form-select {
  border-color: rgba(12, 36, 60, 0.12);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.portal-legislacao-search-form .form-control:focus,
.portal-legislacao-search-form .form-select:focus {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 3px rgba(49, 106, 255, 0.12);
}

.portal-legislacao-search-form .input-group .form-control {
  border-radius: 0 10px 10px 0;
}
.portal-legislacao-search-form .input-group .form-control:first-of-type {
  border-radius: 10px 0 0 10px;
}
.portal-legislacao-search-form .input-group-text {
  background: var(--portal-lighter);
  border-color: rgba(12, 36, 60, 0.12);
  color: #6b7a99;
  font-size: 12px;
  font-weight: 500;
}

.portal-legislacao-search-form .btn-filter {
  background: var(--portal-primary);
  border-color: var(--portal-primary);
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 14px;
}
.portal-legislacao-search-form .btn-filter:hover {
  background: var(--portal-primary-dark);
  border-color: var(--portal-primary-dark);
}

.portal-legislacao-search-form .btn-export {
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
}
.portal-legislacao-search-form .btn-export:hover {
  background: rgba(49, 106, 255, 0.08);
}

.portal-legislacao-search-footer {
  padding-top: 4px;
  border-top: 1px solid rgba(12, 36, 60, 0.06);
  margin-top: 16px;
}

.portal-legislacao-clear-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7a99;
  text-decoration: none;
  transition: color 0.2s;
}
.portal-legislacao-clear-link:hover {
  color: #dc3545;
}
.portal-legislacao-clear-link i {
  font-size: 12px;
}

.portal-legislacao-sidebar {
  position: sticky;
  top: 100px;
}

.portal-legislacao-widget {
  background: var(--portal-white);
  border-radius: 16px;
  box-shadow: var(--portal-shadow);
  padding: 20px 24px;
  border: 1px solid rgba(12, 36, 60, 0.05);
}

.portal-legislacao-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-legislacao-widget-title i {
  color: var(--portal-primary);
}

.portal-legislacao-filter .form-select {
  border-radius: 10px;
  border-color: rgba(12, 36, 60, 0.12);
}

.portal-legislacao-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-legislacao-list .portal-pub-info p {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-legislacao-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7a99;
}
.portal-legislacao-meta i {
  margin-right: 4px;
}

.portal-legislacao-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(49, 106, 255, 0.1);
  color: var(--portal-primary);
  border-radius: 8px;
  font-weight: 600;
}

.portal-legislacao-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--portal-white);
  border-radius: 16px;
  border: 1px dashed rgba(12, 36, 60, 0.12);
}
.portal-legislacao-empty i {
  font-size: 48px;
  color: var(--portal-primary);
  opacity: 0.4;
  display: block;
  margin-bottom: 16px;
}
.portal-legislacao-empty p {
  font-size: 15px;
  color: #6b7a99;
  margin-bottom: 0;
}

.portal-legislacao-pagination .pagination {
  justify-content: center;
}

.portal-legislacao-chart .card {
  border-radius: 16px;
  border: 1px solid rgba(12, 36, 60, 0.08);
  box-shadow: 0 2px 12px rgba(12, 36, 60, 0.06);
}

.portal-legislacao-chart .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-dark);
}

.portal-legislacao-chart .card-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--portal-dark);
}

.portal-legislacao-chart .card-body .text-success {
  color: #16a34a !important;
}

.portal-legislacao-chart .card-body .text-success + span {
  font-size: 13px;
  color: #6b7a99;
}

@media (max-width: 991px) {
  .portal-legislacao-sidebar {
    position: relative;
    top: 0;
    order: -1;
  }
}

/* Sidebar card (Licitações) */
.portal-sidebar-card {
  background: var(--portal-white);
  border-radius: 16px;
  box-shadow: var(--portal-shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portal-sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--portal-dark), var(--portal-navy));
  color: #fff;
}

.portal-sidebar-card-header i {
  font-size: 18px;
  color: var(--portal-gold);
}

.portal-sidebar-card-header h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0;
  color: #fff;
}

.portal-sidebar-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-licit-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(12, 36, 60, 0.06);
  text-decoration: none;
  transition: var(--portal-transition);
  align-items: flex-start;
}

.portal-licit-item:hover {
  background: var(--portal-lighter);
  border-color: var(--portal-primary);
}

.portal-licit-badge {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--portal-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.portal-licit-badge--cc {
  background: #16a34a;
}

.portal-licit-badge--tp {
  background: #d4a017;
}

.portal-licit-item strong {
  font-size: 13px;
  color: var(--portal-dark);
  display: block;
  margin-bottom: 3px;
}

.portal-licit-item p {
  font-size: 12px;
  color: #6b7a99;
  margin-bottom: 4px;
  line-height: 1.4;
}

.portal-licit-deadline {
  font-size: 11px;
  color: #e11d48;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-licit-deadline i {
  font-size: 10px;
}

.portal-sidebar-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: var(--portal-lighter);
  font-size: 13px;
  font-weight: 700;
  color: var(--portal-primary);
  text-decoration: none;
  transition: var(--portal-transition);
  border-top: 1px solid rgba(12, 36, 60, 0.05);
}

.portal-sidebar-card-footer:hover {
  background: var(--portal-light);
  color: var(--portal-primary-dark);
}

/* ----------------------------------------------------------
   CONTACT CTA (Bottom)
   ---------------------------------------------------------- */
.portal-contact-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--portal-light) 0%, #dce8ff 100%);
  position: relative;
  overflow: hidden;
}

.portal-contact-cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--portal-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.portal-contact-cta-text {
  font-size: 1rem;
  color: #6b7a99;
  max-width: 440px;
  line-height: 1.7;
}

.portal-contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.portal-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--portal-white);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(12, 36, 60, 0.06);
  text-decoration: none;
  transition: var(--portal-transition);
  border: 1px solid transparent;
}

.portal-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--portal-shadow);
  border-color: var(--portal-primary);
}

.portal-contact-card-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: var(--portal-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.portal-contact-card-icon--whatsapp {
  background: #25D366;
}

.portal-contact-card-icon--email {
  background: #00b4d8;
}

.portal-contact-card-icon--location {
  background: #9333ea;
}

.portal-contact-card strong {
  display: block;
  font-size: 13px;
  color: var(--portal-dark);
  font-weight: 700;
}

.portal-contact-card span {
  font-size: 13px;
  color: #6b7a99;
}

/* ----------------------------------------------------------
   PORTAL INNER PAGES (paginas)
   ---------------------------------------------------------- */
.portal-page-header {
  background: linear-gradient(135deg, var(--portal-dark) 0%, var(--portal-navy) 50%, var(--portal-primary) 100%);
  padding: 140px 0 72px;
  margin-top: -116px;
  position: relative;
  overflow: hidden;
  color: var(--portal-white);
}

.portal-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.portal-page-header .container {
  position: relative;
  z-index: 1;
}

.portal-breadcrumb {
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
}

.portal-breadcrumb .breadcrumb-item {
  font-size: 13px;
}

.portal-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--portal-transition);
}

.portal-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}

.portal-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.portal-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.portal-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--portal-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.portal-page-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.portal-page-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Variante: Notícias (ligeiramente diferente) */
.portal-page-header--news {
  background: linear-gradient(135deg, var(--portal-dark) 0%, var(--portal-primary-dark) 40%, var(--portal-accent) 100%);
}

.portal-page-header--news::before {
  opacity: 0.5;
}

.portal-page-header--news .portal-page-badge {
  color: var(--portal-accent);
  background: rgba(0, 180, 216, 0.2);
  padding: 6px 14px;
  border-radius: 8px;
}

.portal-page-header--news .portal-page-header-content {
  border-left: 4px solid var(--portal-accent);
  padding-left: 20px;
}

/* Secretarias Page Cards */
.portal-secretarias-page {
  padding-top: 72px;
  padding-bottom: 80px;
}

.portal-secretaria-page-card {
  height: 100%;
}

.portal-secretaria-page-card-link {
  display: block;
  background: var(--portal-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(12, 36, 60, 0.06);
  border: 1px solid rgba(12, 36, 60, 0.06);
  text-decoration: none;
  transition: var(--portal-transition);
  height: 100%;
}

.portal-secretaria-page-card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--portal-shadow-lg);
  border-color: var(--portal-primary);
}

.portal-secretaria-page-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.portal-secretaria-page-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portal-secretaria-page-card-link:hover .portal-secretaria-page-card-img img {
  transform: scale(1.08);
}

.portal-secretaria-page-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(12, 36, 60, 0.6) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  gap: 12px;
}

.portal-secretaria-page-secretario-foto {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  background: var(--portal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-secretaria-page-secretario-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-secretaria-page-secretario-iniciais {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.portal-secretaria-page-sigla {
  display: inline-block;
  background: var(--portal-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.portal-secretaria-page-card-body {
  padding: 24px;
}

.portal-secretaria-page-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-secretaria-page-secretario {
  font-size: 13px;
  color: #6b7a99;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-secretaria-page-secretario i {
  color: var(--portal-primary);
  font-size: 12px;
}

.portal-secretaria-page-desc {
  font-size: 13px;
  color: #6b7a99;
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-secretaria-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #97A1C0;
}

.portal-secretaria-page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-secretaria-page-meta i {
  font-size: 11px;
  color: var(--portal-primary);
}

.portal-secretaria-page-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--portal-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--portal-transition);
}

.portal-secretaria-page-card-link:hover .portal-secretaria-page-cta {
  gap: 10px;
}

/* Empty state */
.portal-empty-state {
  text-align: center;
  padding: 80px 24px;
}

.portal-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--portal-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-empty-icon i {
  font-size: 36px;
  color: var(--portal-primary);
}

.portal-empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 8px;
}

.portal-empty-state p {
  font-size: 15px;
  color: #6b7a99;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   SECRETARIA PROFILE PAGE (perfil estilo rede social)
   ---------------------------------------------------------- */
.portal-secretaria-profile {
  position: relative;
  margin-top: -116px;
  padding-bottom: 0;
}

.portal-secretaria-cover {
  height: 320px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--portal-dark) 0%, var(--portal-navy) 40%, var(--portal-primary) 100%);
}

.portal-secretaria-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.portal-secretaria-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  position: absolute;
  inset: 0;
}

.portal-secretaria-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 36, 60, 0.4) 0%, rgba(12, 36, 60, 0.75) 50%, rgba(12, 36, 60, 0.95) 100%);
  z-index: 2;
}

.portal-secretaria-profile-card {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-top: -100px;
  position: relative;
  z-index: 5;
  flex-wrap: wrap;
}

.portal-secretaria-profile-avatar {
  width: 140px;
  height: 140px;
  min-width: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--portal-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: var(--portal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-secretaria-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-secretaria-profile-iniciais {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.portal-secretaria-profile-info {
  flex: 1;
  padding-bottom: 8px;
}

.portal-secretaria-profile-badge {
  display: inline-block;
  background: var(--portal-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.portal-secretaria-profile-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--portal-white);
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.portal-secretaria-profile-role {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.portal-secretaria-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-secretaria-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--portal-white);
  color: var(--portal-primary);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--portal-transition);
}

.portal-secretaria-profile-btn:hover {
  background: var(--portal-light);
  color: var(--portal-primary-dark);
  transform: translateY(-2px);
}

.portal-secretaria-profile-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.portal-secretaria-profile-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.portal-secretaria-breadcrumb-wrap {
  padding-top: 24px;
  padding-bottom: 8px;
}

/* Página de notícia (artigo) */
.portal-article {
  padding-bottom: 80px;
}

.portal-article-cover {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.portal-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-article-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 36, 60, 0.95) 0%, rgba(12, 36, 60, 0.4) 50%, transparent 100%);
}

.portal-article-cover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 0 40px;
}

.portal-article-category {
  display: inline-block;
  background: var(--portal-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.portal-article-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.portal-article-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.portal-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.portal-article-meta i {
  font-size: 16px;
  opacity: 0.9;
}

.portal-article-breadcrumb {
  padding-top: 24px;
  padding-bottom: 8px;
}

/* Seção artigo com sidebar */
.portal-article-section {
  padding: 32px 0 80px;
}

.portal-article-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(12, 36, 60, 0.1);
}

.portal-article-img img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.portal-article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--portal-dark);
}

.portal-article-content p {
  margin-bottom: 1.5em;
}

.portal-article-content p:last-child {
  margin-bottom: 0;
}

/* Barra Compartilhar (abaixo do texto) */
.portal-article-share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(12, 36, 60, 0.08);
}

.portal-article-share-label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7a99;
}

.portal-article-share-bar .portal-article-share {
  display: flex;
  gap: 10px;
}

/* Card de autor / fonte */
.portal-article-author {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin-top: 40px;
  background: var(--portal-light);
  border-radius: 16px;
  border: 1px solid rgba(12, 36, 60, 0.06);
}

.portal-article-author-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--portal-primary);
  color: #fff;
  border-radius: 14px;
  font-size: 28px;
}

.portal-article-author-info {
  flex: 1;
  min-width: 0;
}

.portal-article-author-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #97A1C0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.portal-article-author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 6px;
}

.portal-article-author-secretaria {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--portal-primary);
  text-decoration: none;
  transition: var(--portal-transition);
}

.portal-article-author-secretaria:hover {
  color: var(--portal-primary-dark);
}

.portal-article-author-secretaria i {
  font-size: 14px;
}

.portal-article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(12, 36, 60, 0.08);
}

.portal-article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--portal-primary);
  text-decoration: none;
  transition: var(--portal-transition);
}

.portal-article-back:hover {
  color: var(--portal-primary-dark);
  gap: 12px;
}

.portal-article-back i {
  font-size: 18px;
}

/* Sidebar do artigo */
.portal-article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 140px;
}

.portal-article-widget {
  background: var(--portal-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(12, 36, 60, 0.06);
  border: 1px solid rgba(12, 36, 60, 0.06);
}

.portal-article-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-article-widget-title i {
  color: var(--portal-primary);
  font-size: 18px;
}

.portal-article-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-article-widget-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(12, 36, 60, 0.06);
  font-size: 14px;
  color: var(--portal-dark);
}

.portal-article-widget-list li:last-child {
  border-bottom: none;
}

.portal-article-widget-label {
  font-size: 11px;
  font-weight: 600;
  color: #97A1C0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.portal-article-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-article-share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--portal-light);
  color: var(--portal-primary);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--portal-transition);
}

.portal-article-share-btn:hover {
  background: var(--portal-primary);
  color: #fff;
}

.portal-article-share-btn i {
  font-size: 20px;
}

.portal-article-related {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-article-related li {
  border-bottom: 1px solid rgba(12, 36, 60, 0.06);
}

.portal-article-related li:last-child {
  border-bottom: none;
}

.portal-article-related a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: var(--portal-transition);
}

.portal-article-related-link {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
}

.portal-article-related a:hover {
  color: var(--portal-primary);
}

.portal-article-related-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(12, 36, 60, 0.06);
}

.portal-article-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-article-related-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.portal-article-related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-dark);
  line-height: 1.4;
}

.portal-article-related a:hover .portal-article-related-title {
  color: var(--portal-primary);
}

.portal-article-related-date {
  font-size: 12px;
  color: #97A1C0;
}

.portal-article-widget-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-primary);
  text-decoration: none;
  margin-top: 12px;
  transition: var(--portal-transition);
}

.portal-article-widget-more:hover {
  color: var(--portal-primary-dark);
  gap: 10px;
}

.portal-article-widget-more i {
  font-size: 12px;
}

/* Lei Municipal - página de detalhe */
.portal-lei-article {
  background: var(--portal-white);
  border-radius: 16px;
  padding: 28px 32px;
  border: 1px solid rgba(12, 36, 60, 0.06);
  box-shadow: 0 2px 12px rgba(12, 36, 60, 0.04);
}

.portal-lei-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(12, 36, 60, 0.08);
}

.portal-lei-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7a99;
}

.portal-lei-meta-item i {
  color: var(--portal-primary);
}

.portal-lei-ementa {
  margin-bottom: 28px;
}

.portal-lei-ementa-title,
.portal-lei-content-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.portal-lei-ementa p {
  font-size: 16px;
  color: var(--portal-dark);
  line-height: 1.6;
  margin-bottom: 0;
}

.portal-lei-content {
  margin-bottom: 24px;
}

.portal-lei-texto {
  font-size: 15px;
  line-height: 1.7;
  color: var(--portal-dark);
}

.portal-lei-texto p {
  margin-bottom: 16px;
}

.portal-lei-texto h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 16px;
  color: var(--portal-dark);
}

.portal-lei-assinatura {
  margin-top: 32px;
  font-style: italic;
  color: #6b7a99 !important;
}

.portal-lei-download-list {
  padding: 20px 0;
  margin-bottom: 16px;
  border-top: 1px solid rgba(12, 36, 60, 0.08);
}

.portal-lei-download-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.portal-lei-download-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.portal-lei-download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(12, 36, 60, 0.02);
  border-radius: 8px;
  flex-wrap: wrap;
}

.portal-lei-download-item-icon {
  font-size: 18px;
  color: #dc2626;
  flex-shrink: 0;
}

.portal-lei-download-item-name {
  flex: 1;
  min-width: 120px;
  font-size: 14px;
  color: var(--portal-dark);
}

.portal-lei-download-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(49, 106, 255, 0.06);
  transition: background 0.2s;
}

.portal-lei-download-item-link:hover {
  background: rgba(49, 106, 255, 0.12);
  color: var(--portal-primary);
}

.portal-lei-download-item-count {
  font-size: 12px;
  color: #97A1C0;
}

.portal-lei-article .portal-article-share-bar {
  justify-content: center;
}

@media (max-width: 575px) {
  .portal-lei-download-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-lei-download-item-name {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .portal-article-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .portal-article-cover {
    height: 280px;
  }
  .portal-article-title {
    font-size: 1.5rem;
  }
}

/* Lista de notícias (página) */
.portal-news-page .portal-news-item {
  height: 100%;
}

.portal-breadcrumb--dark .breadcrumb-item a {
  color: var(--portal-dark);
}

.portal-breadcrumb--dark .breadcrumb-item a:hover {
  color: var(--portal-primary);
}

.portal-breadcrumb--dark .breadcrumb-item.active {
  color: #6b7a99;
}

.portal-breadcrumb--dark .breadcrumb-item + .breadcrumb-item::before {
  color: #97A1C0;
}

.portal-secretaria-content {
  padding: 24px 0 80px;
}

.portal-secretaria-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portal-secretaria-widget {
  background: var(--portal-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(12, 36, 60, 0.06);
  border: 1px solid rgba(12, 36, 60, 0.06);
}

.portal-secretaria-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-secretaria-widget-title i {
  color: var(--portal-primary);
  font-size: 18px;
}

.portal-secretaria-widget-text {
  font-size: 14px;
  color: #6b7a99;
}

.portal-secretaria-schedule {
  font-size: 14px;
  color: #6b7a99;
  line-height: 1.6;
  margin-bottom: 0;
}

.portal-secretaria-schedule strong {
  color: var(--portal-dark);
}

.portal-secretaria-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-secretaria-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--portal-dark);
}

.portal-secretaria-contact-list li:last-child {
  margin-bottom: 0;
}

.portal-secretaria-contact-list i {
  color: var(--portal-primary);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.portal-secretaria-contact-list a {
  color: var(--portal-primary);
  text-decoration: none;
  transition: var(--portal-transition);
}

.portal-secretaria-contact-list a:hover {
  text-decoration: underline;
}

.portal-secretaria-quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-secretaria-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--portal-lighter);
  border-radius: 10px;
  color: var(--portal-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--portal-transition);
}

.portal-secretaria-quick-link:hover {
  background: var(--portal-light);
  color: var(--portal-primary);
  transform: translateX(4px);
}

.portal-secretaria-quick-link i {
  color: var(--portal-primary);
  font-size: 18px;
}

/* Agenda / Calendário */
.portal-secretaria-calendar {
  font-size: 13px;
}

.portal-secretaria-calendar-header {
  text-align: center;
  margin-bottom: 16px;
}

.portal-secretaria-calendar-month {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-dark);
}

.portal-secretaria-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}

.portal-secretaria-calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #97A1C0;
  text-transform: uppercase;
}

.portal-secretaria-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.portal-secretaria-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--portal-dark);
  background: var(--portal-lighter);
}

.portal-secretaria-calendar-day--empty {
  background: transparent;
}

.portal-secretaria-calendar-day--today {
  background: var(--portal-primary);
  color: #fff;
}

.portal-secretaria-calendar-day--event {
  background: color-mix(in srgb, var(--portal-primary) 15%, transparent);
  color: var(--portal-primary);
  font-weight: 700;
}

.portal-secretaria-calendar-day--event.portal-secretaria-calendar-day--today {
  background: var(--portal-primary);
  color: #fff;
}

.portal-secretaria-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(12, 36, 60, 0.08);
}

.portal-secretaria-calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b7a99;
}

.portal-secretaria-calendar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.portal-secretaria-calendar-dot--today {
  background: var(--portal-primary);
}

.portal-secretaria-calendar-dot--event {
  background: color-mix(in srgb, var(--portal-primary) 50%, transparent);
}

.portal-secretaria-calendar-agenda {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(12, 36, 60, 0.08);
}

/* Bloco Próximos compromissos (abaixo das notícias) */
.portal-secretaria-agenda-block {
  background: var(--portal-white);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
  border: 1px solid rgba(12, 36, 60, 0.08);
  box-shadow: 0 1px 8px rgba(12, 36, 60, 0.04);
}

.portal-secretaria-agenda-block-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7a99;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-secretaria-agenda-block-title i {
  font-size: 16px;
  color: var(--portal-primary);
  opacity: 0.8;
}

.portal-secretaria-calendar-agenda h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 12px;
}

.portal-secretaria-agenda-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-secretaria-agenda-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(12, 36, 60, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-secretaria-agenda-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portal-secretaria-agenda-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--portal-primary);
  text-transform: uppercase;
}

.portal-secretaria-agenda-list strong {
  font-size: 13px;
  color: var(--portal-dark);
}

.portal-secretaria-agenda-list span:last-child {
  font-size: 12px;
  color: #6b7a99;
}

/* Documentos e Publicações (tabs) */
.portal-secretaria-docs {
  background: var(--portal-white);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(12, 36, 60, 0.08);
  box-shadow: 0 2px 16px rgba(12, 36, 60, 0.06);
}

.portal-secretaria-docs-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-secretaria-docs-title i {
  font-size: 20px;
  color: var(--portal-primary);
}

.portal-secretaria-docs-tabs {
  border-bottom: 2px solid rgba(12, 36, 60, 0.08);
  margin-bottom: 20px;
  gap: 4px;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.portal-secretaria-docs-tabs .nav-link {
  border: none !important;
  border-radius: 10px 10px 0 0;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7a99;
  background: transparent !important;
  transition: var(--portal-transition);
}

.portal-secretaria-docs-tabs .nav-link:hover {
  color: var(--portal-primary);
  background: rgba(49, 106, 255, 0.06) !important;
  border-color: transparent !important;
}

.portal-secretaria-docs-tabs .nav-link.active {
  color: var(--portal-primary) !important;
  background: rgba(49, 106, 255, 0.1) !important;
  border: none !important;
  border-bottom: 2px solid var(--portal-primary) !important;
  margin-bottom: -2px;
}

.portal-secretaria-docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-secretaria-docs-list li {
  border-bottom: 1px solid rgba(12, 36, 60, 0.06);
}

.portal-secretaria-docs-list li:last-child {
  border-bottom: none;
}

.portal-secretaria-docs-list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--portal-dark);
  text-decoration: none;
  transition: var(--portal-transition);
}

.portal-secretaria-docs-list a:hover {
  color: var(--portal-primary);
}

.portal-secretaria-docs-list a i {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--portal-primary);
  margin-top: 2px;
}

.portal-secretaria-docs-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-primary);
  text-decoration: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(12, 36, 60, 0.08);
  transition: var(--portal-transition);
}

.portal-secretaria-docs-more:hover {
  color: var(--portal-primary-dark);
  gap: 10px;
}

.portal-secretaria-docs-more i {
  font-size: 12px;
}

/* Destaque: O que fazemos */
.portal-secretaria-highlight {
  background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(49, 106, 255, 0.25);
}

.portal-secretaria-highlight-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-secretaria-highlight-title i {
  font-size: 22px;
  opacity: 0.95;
}

.portal-secretaria-highlight-text {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 24px;
}

.portal-secretaria-highlight-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-secretaria-highlight-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.portal-secretaria-highlight-card i {
  font-size: 16px;
  opacity: 0.9;
}

/* Notícias da Secretaria (menor destaque) */
.portal-secretaria-news {
  background: var(--portal-white);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid rgba(12, 36, 60, 0.08);
  box-shadow: 0 1px 8px rgba(12, 36, 60, 0.04);
}

.portal-secretaria-news-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7a99;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-secretaria-news-title i {
  font-size: 16px;
  color: var(--portal-primary);
  opacity: 0.8;
}

.portal-secretaria-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-secretaria-news-item {
  border-bottom: 1px solid rgba(12, 36, 60, 0.06);
}

.portal-secretaria-news-item:last-child {
  border-bottom: none;
}

.portal-secretaria-news-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: var(--portal-transition);
}

.portal-secretaria-news-link:hover {
  color: var(--portal-primary);
}

.portal-secretaria-news-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(12, 36, 60, 0.06);
}

.portal-secretaria-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-secretaria-news-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.portal-secretaria-news-date {
  font-size: 11px;
  font-weight: 600;
  color: #97A1C0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.portal-secretaria-news-text {
  font-size: 13px;
  color: var(--portal-dark);
  line-height: 1.5;
}

.portal-secretaria-news-link:hover .portal-secretaria-news-text {
  color: var(--portal-primary);
}

.portal-secretaria-news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--portal-primary);
  text-decoration: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(12, 36, 60, 0.06);
  transition: var(--portal-transition);
}

.portal-secretaria-news-more:hover {
  color: var(--portal-primary-dark);
  gap: 10px;
}

.portal-secretaria-news-more i {
  font-size: 10px;
}


/* ----------------------------------------------------------
   7. Footer
   ---------------------------------------------------------- */
.portal-footer {
  background: linear-gradient(180deg, var(--portal-dark) 0%, var(--portal-darkest) 100%);
  color: var(--portal-text-light);
  position: relative;
}

.portal-footer-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--portal-primary), var(--portal-accent), var(--portal-primary));
}

.portal-footer-main {
  padding: 64px 0 48px;
}

/* Footer About Column */
.portal-footer-brand img {
  height: 50px;
  margin-bottom: 20px;
}

.portal-footer-about {
  font-size: 14px;
  line-height: 1.8;
  color: var(--portal-text-light);
  margin-bottom: 24px;
  max-width: 320px;
}

.portal-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--portal-text-light);
  font-size: 16px;
  transition: var(--portal-transition);
  text-decoration: none;
}

.portal-footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(49, 106, 255, 0.4);
}

.portal-footer-social a.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
}

.portal-footer-social a.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #e6683c;
  color: #fff;
}

.portal-footer-social a.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #fff;
}

.portal-footer-social a.twitter:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.portal-footer-social a.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

/* Footer Column Headings */
.portal-footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-white);
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
}

.portal-footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--portal-primary), var(--portal-primary-light));
  border-radius: 3px;
}

/* Footer Links */
.portal-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.portal-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-text-light);
  text-decoration: none;
  font-size: 14px;
  transition: var(--portal-transition);
  padding: 2px 0;
}

.portal-footer-links a i {
  font-size: 10px;
  color: var(--portal-primary-light);
  transition: var(--portal-transition);
}

.portal-footer-links a:hover {
  color: var(--portal-white);
  padding-left: 6px;
}

.portal-footer-links a:hover i {
  color: var(--portal-white);
}

/* Footer Contact Info */
.portal-footer-contact li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.portal-footer-contact .contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: rgba(49, 106, 255, 0.15);
  color: var(--portal-primary-light);
  font-size: 16px;
}

.portal-footer-contact .contact-info {
  font-size: 14px;
  line-height: 1.6;
}

.portal-footer-contact .contact-info strong {
  display: block;
  color: var(--portal-white);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

/* Footer Working Hours Box */
.portal-footer-hours {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-top: 8px;
}

.portal-footer-hours h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-white);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-footer-hours h6 i {
  color: var(--portal-primary-light);
}

.portal-footer-hours p {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--portal-text-light);
}

.portal-footer-hours .badge {
  font-size: 11px;
  padding: 4px 10px;
}

/* Footer Newsletter */
.portal-footer-newsletter {
  margin-top: 24px;
}

.portal-footer-newsletter .input-group {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
}

.portal-footer-newsletter .form-control::placeholder {
  color: var(--portal-text-muted);
}

.portal-footer-newsletter .form-control:focus {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
}

.portal-footer-newsletter .btn {
  background: var(--portal-primary);
  border: none;
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  transition: var(--portal-transition);
}

.portal-footer-newsletter .btn:hover {
  background: var(--portal-primary-dark);
}

/* ----------------------------------------------------------
   8. Footer Bottom
   ---------------------------------------------------------- */
.portal-footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  padding: 20px 0;
  font-size: 13px;
}

.portal-footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-footer-copyright {
  color: var(--portal-text-muted);
}

.portal-footer-copyright strong {
  color: var(--portal-text-light);
}

.portal-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-footer-bottom-links li:not(:last-child)::after {
  content: "|";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.15);
}

.portal-footer-bottom-links a {
  color: var(--portal-text-muted);
  text-decoration: none;
  transition: var(--portal-transition);
  font-size: 13px;
}

.portal-footer-bottom-links a:hover {
  color: var(--portal-primary-light);
}

.portal-footer-dev {
  color: var(--portal-text-muted);
  font-size: 12px;
}

.portal-footer-dev a {
  color: var(--portal-primary-light);
  text-decoration: none;
  font-weight: 600;
}

.portal-footer-dev a:hover {
  color: var(--portal-white);
}

/* ----------------------------------------------------------
   9. Back to Top Button
   ---------------------------------------------------------- */
.portal-back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--portal-transition);
  box-shadow: 0 4px 15px rgba(49, 106, 255, 0.4);
}

.portal-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.portal-back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(49, 106, 255, 0.5);
}

/* ----------------------------------------------------------
   10. Responsive Breakpoints
   ---------------------------------------------------------- */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .portal-nav .nav-link {
    padding: 24px 12px !important;
    font-size: 13px;
  }

  .portal-cta-card {
    padding: 32px 36px;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .portal-header .navbar-collapse {
    background: var(--portal-white);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: var(--portal-shadow-lg);
    border-top: 3px solid var(--portal-primary);
    border-radius: 0 0 12px 12px;
    padding: 12px 0;
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Menu mobile: mesmo estilo do desktop sticky (texto e ícones escuros) */
  .portal-header .navbar-collapse .portal-nav .nav-link {
    color: var(--portal-dark);
    padding: 12px 20px !important;
    border-left: 3px solid transparent;
  }

  .portal-header .navbar-collapse .portal-nav .nav-link i {
    color: var(--portal-primary);
  }

  .portal-header .navbar-collapse .portal-nav .nav-link .nav-arrow {
    color: var(--portal-dark);
    opacity: 0.5;
  }

  .portal-header .navbar-collapse .portal-nav .nav-link:hover,
  .portal-header .navbar-collapse .portal-nav .nav-link.active,
  .portal-header .navbar-collapse .portal-nav .nav-item.show > .nav-link {
    color: var(--portal-primary);
    background: var(--portal-light);
    border-left-color: var(--portal-primary);
  }

  .portal-header .navbar-collapse .portal-nav .nav-link:hover i,
  .portal-header .navbar-collapse .portal-nav .nav-link.active i,
  .portal-header .navbar-collapse .portal-nav .nav-item.show > .nav-link i {
    color: var(--portal-primary);
  }

  .portal-header .navbar-collapse .portal-nav .nav-link:hover .nav-arrow,
  .portal-header .navbar-collapse .portal-nav .nav-item.show .nav-link .nav-arrow {
    color: var(--portal-primary);
    opacity: 1;
  }

  .portal-nav .nav-link::before {
    display: none;
  }

  .portal-nav .dropdown-menu {
    border: none;
    border-top: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    padding-left: 20px;
    background: var(--portal-lighter);
    animation: none;
  }

  .portal-nav .dropdown-item {
    padding: 10px 20px;
    font-size: 13px;
  }

  .portal-header-cta {
    margin: 12px 20px;
    text-align: center;
    justify-content: center;
  }

  /* Botão de busca no menu mobile: cores do desktop */
  .portal-header .navbar-collapse .portal-search-btn {
    border-color: var(--portal-light);
    color: var(--portal-primary);
    margin-left: 0;
  }

  .portal-header .navbar-collapse .portal-search-btn:hover {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
    color: var(--portal-white);
  }

  .portal-search-btn {
    margin-left: 0;
  }

  .portal-hero h1 {
    font-size: 2.2rem;
  }

  .portal-hero .portal-hero-content {
    text-align: center;
  }

  .portal-section {
    padding: 56px 0;
  }

  .portal-section-title {
    font-size: 1.6rem;
  }

  .portal-stat-item {
    padding: 8px 20px;
  }

  .portal-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 28px;
  }

  .portal-cta-content {
    flex-direction: column;
    align-items: center;
  }

  .portal-cta-actions {
    justify-content: center;
  }

  .portal-contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .portal-topbar-left {
    display: none;
  }

  .portal-page-header {
    padding: 120px 0 56px;
  }

  .portal-page-title {
    font-size: 1.75rem;
  }

  .portal-secretarias-page {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .portal-secretaria-page-card-img {
    height: 180px;
  }

  .portal-secretaria-cover {
    height: 240px;
  }

  .portal-secretaria-profile-card {
    margin-top: -80px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .portal-secretaria-profile-avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
  }

  .portal-secretaria-profile-iniciais {
    font-size: 36px;
  }

  .portal-secretaria-profile-name {
    font-size: 1.5rem;
  }

  .portal-secretaria-profile-actions {
    justify-content: center;
  }

  .portal-secretaria-profile-info {
    padding-bottom: 0;
  }

  .portal-secretaria-feed {
    padding: 20px;
  }

  .portal-secretaria-post-image img {
    max-height: 200px;
    object-fit: cover;
  }

  .portal-topbar .container {
    justify-content: center;
  }

  .portal-topbar-right {
    gap: 2px;
  }

  .portal-hero {
    padding: 120px 0 80px;
  }

  .portal-hero h1 {
    font-size: 1.8rem;
  }

  .portal-hero p {
    font-size: 1rem;
  }

  .portal-section {
    padding: 48px 0;
  }

  .portal-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .portal-stats-grid {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
  }

  .portal-stat-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(12, 36, 60, 0.1), transparent);
  }

  .portal-stat-item {
    padding: 4px 0;
    justify-content: flex-start;
    width: 100%;
  }

  .portal-news-featured-img {
    height: 200px;
  }

  .portal-secretaria-card {
    flex: 0 0 240px;
  }

  .portal-cta-card {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .portal-cta-section {
    margin-top: -24px;
    padding: 0 12px;
  }

  .portal-events-section {
    padding-top: 72px;
  }

  .portal-event-card {
    flex-direction: row;
    gap: 14px;
    padding: 16px;
  }

  .portal-event-date {
    width: 56px;
    min-width: 56px;
    height: 60px;
  }

  .portal-event-day {
    font-size: 1.2rem;
  }

  .portal-contact-cards {
    grid-template-columns: 1fr;
  }

  .portal-contact-cta-title {
    font-size: 1.6rem;
  }

  .portal-footer-main {
    padding: 48px 0 32px;
  }

  .portal-footer-heading {
    margin-top: 16px;
  }

  .portal-footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .portal-footer-bottom-links {
    justify-content: center;
  }

  .portal-quick-access {
    margin-top: -30px;
  }

  .portal-back-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Extra small devices (less than 576px) */
@media (max-width: 575.98px) {
  .portal-topbar-btn span {
    display: none;
  }

  .portal-header .navbar-brand img {
    height: 40px;
  }

  .portal-hero {
    padding: 110px 0 70px;
  }

  .portal-hero h1 {
    font-size: 1.5rem;
  }

  .portal-hero-tags {
    flex-direction: column;
    gap: 6px;
  }

  .portal-hero-tags a {
    font-size: 12px;
  }

  .portal-news-item-img {
    width: 80px;
    min-width: 80px;
    height: 64px;
  }

  .portal-pub-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
  }

  .portal-pub-info p {
    white-space: normal;
  }

  .portal-pub-date {
    width: 100%;
    padding-left: 60px;
    margin-top: -4px;
  }

  .portal-contact-cta {
    padding: 48px 0;
  }

  .portal-contact-cta-title {
    font-size: 1.4rem;
    text-align: center;
  }

  .portal-contact-cta-text {
    text-align: center;
    margin: 0 auto 20px;
  }
}

/* ----------------------------------------------------------
   PÁGINAS: Prefeito e Vice-Prefeito | Estrutura Organizacional
   ---------------------------------------------------------- */

/* Prefeito e Vice-Prefeito */
.portal-prefeito-hero {
  position: relative;
  padding: 140px 0 90px;
  margin-top: -116px;
  overflow: hidden;
}

.portal-prefeito-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0C243C 0%, #0e2a47 25%, #316AFF 70%, #5a8aff 100%);
}

.portal-prefeito-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 44v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 44v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.portal-prefeito-hero .container { position: relative; z-index: 2; }

.portal-prefeito-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-prefeito-badge i { color: #f0c040; }

.portal-prefeito-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.portal-prefeito-hero-accent {
  background: linear-gradient(135deg, #f0c040, #ffd666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-prefeito-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.portal-prefeito-mandato-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.portal-prefeito-mandato-badge i { opacity: 0.9; }

.portal-prefeito-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  line-height: 0;
}

.portal-prefeito-hero-wave svg { width: 100%; height: 100%; display: block; }

.portal-prefeito-cards {
  padding: 48px 0 56px;
  margin-top: -2px;
}

.portal-prefeito-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 48px 32px 36px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(12, 36, 60, 0.08);
  border: 1px solid rgba(12, 36, 60, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  overflow: hidden;
}

.portal-prefeito-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(12, 36, 60, 0.12);
}

.portal-prefeito-card--primary { border-top: 4px solid #316AFF; }
.portal-prefeito-card--vice { border-top: 4px solid #0e2a47; }

.portal-prefeito-card-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #316AFF, #2555cc);
  color: #fff;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.portal-prefeito-card-ribbon--vice {
  background: linear-gradient(135deg, #0e2a47, #0C243C);
}

.portal-prefeito-card-avatar {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 8px auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 30px rgba(49, 106, 255, 0.25);
}

.portal-prefeito-card--vice .portal-prefeito-card-avatar {
  box-shadow: 0 8px 30px rgba(14, 42, 71, 0.25);
}

.portal-prefeito-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-prefeito-card-avatar-ring {
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(49, 106, 255, 0.3);
  border-radius: 50%;
  animation: portalRingPulse 4s ease-in-out infinite;
}

.portal-prefeito-card--vice .portal-prefeito-card-avatar-ring {
  border-color: rgba(14, 42, 71, 0.3);
}

@keyframes portalRingPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.portal-prefeito-card-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0C243C;
  margin-bottom: 6px;
}

.portal-prefeito-card-partido {
  font-size: 13px;
  color: #6b7a99;
  font-weight: 600;
  margin-bottom: 16px;
}

.portal-prefeito-card-bio {
  font-size: 14px;
  color: #6b7a99;
  line-height: 1.65;
  margin-bottom: 24px;
}

.portal-prefeito-card-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.portal-prefeito-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #316AFF;
  color: #fff !important;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.portal-prefeito-card-btn:hover {
  background: #2555cc;
  transform: translateY(-2px);
}

.portal-prefeito-card-btn--outline {
  background: transparent;
  border: 2px solid #316AFF;
  color: #316AFF !important;
}

.portal-prefeito-card-btn--outline:hover {
  background: rgba(49, 106, 255, 0.08);
}

.portal-prefeito-card-btn--vice { background: #0e2a47; }
.portal-prefeito-card-btn--vice:hover { background: #0C243C; }

.portal-prefeito-unite {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #316AFF, #0e2a47);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(49, 106, 255, 0.35);
}

.portal-prefeito-mensagem {
  padding: 40px 0 56px;
  background: linear-gradient(180deg, #f4f7fe 0%, #ECF2FD 100%);
}

.portal-prefeito-mensagem-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 4px 24px rgba(12, 36, 60, 0.06);
  border-left: 6px solid #316AFF;
}

.portal-prefeito-mensagem-icon {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 48px;
  color: rgba(49, 106, 255, 0.08);
}

.portal-prefeito-mensagem-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0C243C;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-prefeito-mensagem-title i { color: #316AFF; }

.portal-prefeito-mensagem-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #0C243C;
  margin-bottom: 24px;
  font-style: italic;
}

.portal-prefeito-mensagem-author {
  font-size: 14px;
  font-weight: 600;
  color: #6b7a99;
}

.portal-prefeito-links { padding: 48px 0 72px; }

.portal-prefeito-links-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0C243C;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-prefeito-links-title i { color: #316AFF; }

.portal-prefeito-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(12, 36, 60, 0.06);
  text-decoration: none;
  color: #0C243C;
  font-weight: 600;
  transition: all 0.3s ease;
}

.portal-prefeito-link-card:hover {
  border-color: #316AFF;
  box-shadow: 0 8px 24px rgba(49, 106, 255, 0.12);
  color: #316AFF;
}

.portal-prefeito-link-card i:first-child {
  font-size: 24px;
  color: #316AFF;
}

.portal-prefeito-link-card span { flex: 1; }

.portal-prefeito-link-arrow {
  font-size: 18px;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.portal-prefeito-link-card:hover .portal-prefeito-link-arrow {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .portal-prefeito-hero-title { font-size: 1.9rem; }
}

@media (max-width: 767px) {
  .portal-prefeito-hero { padding: 120px 0 70px; }
  .portal-prefeito-hero-title { font-size: 1.6rem; }
  .portal-prefeito-card { padding: 40px 24px 32px; }
  .portal-prefeito-mensagem-card { padding: 32px 24px; }
}

/* Estrutura Organizacional */
.portal-estrutura-chefes {
  padding: 32px 0 40px;
  background: #fff;
}

.portal-estrutura-chefes-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0C243C;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-estrutura-chefes-title i { color: #316AFF; }

.portal-estrutura-chefe-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(12, 36, 60, 0.08);
  box-shadow: 0 2px 12px rgba(12, 36, 60, 0.04);
  transition: all 0.3s ease;
  height: 100%;
}

.portal-estrutura-chefe-card:hover {
  border-color: #316AFF;
  box-shadow: 0 4px 20px rgba(49, 106, 255, 0.1);
}

.portal-estrutura-chefe-card--prefeito { border-left: 4px solid #316AFF; }
.portal-estrutura-chefe-card--vice { border-left: 4px solid #0e2a47; }

.portal-estrutura-chefes .row.g-0 > [class*="col-"] { padding: 0; }
.portal-estrutura-chefes .row.g-0 .portal-estrutura-chefe-card { border-radius: 0; }
.portal-estrutura-chefes .row.g-0 .col-md-6:first-child .portal-estrutura-chefe-card { border-radius: 16px 0 0 16px; }
.portal-estrutura-chefes .row.g-0 .col-md-6:last-child .portal-estrutura-chefe-card { border-radius: 0 16px 16px 0; }

.portal-estrutura-chefe-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f7fe;
}

.portal-estrutura-chefe-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-estrutura-chefe-info { flex: 1; min-width: 0; }

.portal-estrutura-chefe-cargo {
  font-size: 11px;
  font-weight: 700;
  color: #6b7a99;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-estrutura-chefe-nome {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0C243C;
  margin: 4px 0 8px;
}

.portal-estrutura-chefe-link {
  font-size: 13px;
  font-weight: 600;
  color: #316AFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.portal-estrutura-chefe-link:hover { color: #2555cc; gap: 10px; }

.portal-estrutura-secretarias {
  padding: 40px 0 48px;
  background: #f4f7fe;
}

.portal-estrutura-secretarias-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0C243C;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-estrutura-secretarias-title i { color: #316AFF; }

.portal-estrutura-secretarias .col-md-6 { display: flex; }

.portal-estrutura-secretaria-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  width: 100%;
  color: inherit;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.portal-estrutura-secretaria-item:hover {
  border-color: #316AFF;
  box-shadow: 0 2px 12px rgba(49, 106, 255, 0.08);
}

.portal-estrutura-secretaria-sigla {
  flex: 0 0 56px;
  font-size: 12px;
  font-weight: 800;
  color: #316AFF;
  background: rgba(49, 106, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
}

.portal-estrutura-secretaria-nome {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #0C243C;
}

.portal-estrutura-secretaria-secretario {
  flex: 0 0 auto;
  font-size: 13px;
  color: #6b7a99;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-estrutura-secretaria-item i {
  font-size: 14px;
  color: #97A1C0;
  flex-shrink: 0;
}

.portal-estrutura-secretaria-item:hover i { color: #316AFF; }

.portal-estrutura-tabs {
  padding: 32px 0 72px;
}

.portal-estrutura-nav-tabs {
  border: none;
  gap: 4px;
  margin-bottom: 0;
  background: #fff;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(12, 36, 60, 0.06);
  border: 1px solid rgba(12, 36, 60, 0.06);
}

.portal-estrutura-nav-tabs .nav-link {
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7a99;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.portal-estrutura-nav-tabs .nav-link:hover {
  color: #316AFF;
  background: rgba(49, 106, 255, 0.06);
}

.portal-estrutura-nav-tabs .nav-link.active {
  background: #316AFF;
  color: #fff !important;
}

.portal-estrutura-tab-content {
  margin-top: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 40px;
  border: 1px solid rgba(12, 36, 60, 0.06);
  box-shadow: 0 2px 16px rgba(12, 36, 60, 0.04);
}

.portal-estrutura-pane p:first-child { margin-bottom: 24px; }

.portal-estrutura-organograma-simplificado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.portal-estrutura-org-nivel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.portal-estrutura-org-nivel span {
  padding: 10px 20px;
  background: #f4f7fe;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0C243C;
}

.portal-estrutura-org-nivel--1 span {
  background: #316AFF;
  color: #fff;
  font-weight: 700;
}

.portal-estrutura-org-nivel--2 span {
  background: #0e2a47;
  color: #fff;
}

.portal-estrutura-org-linhas {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, #316AFF, rgba(49, 106, 255, 0.3));
}

.portal-estrutura-org-linhas--sec {
  background: linear-gradient(180deg, #0e2a47, rgba(14, 42, 71, 0.3));
}

.portal-estrutura-competencias-list { display: flex; flex-direction: column; gap: 20px; }

.portal-estrutura-competencia-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0C243C;
  margin-bottom: 8px;
}

.portal-estrutura-competencia-item p {
  font-size: 14px;
  color: #6b7a99;
  line-height: 1.6;
  margin-bottom: 0;
}

.portal-estrutura-normativos-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-estrutura-normativos-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(12, 36, 60, 0.06);
  font-size: 15px;
  font-weight: 500;
  color: #0C243C;
}

.portal-estrutura-normativos-list li:last-child { border-bottom: none; }
.portal-estrutura-normativos-list i { color: #316AFF; font-size: 18px; }

@media (max-width: 767px) {
  .portal-estrutura-secretaria-secretario { display: none; }
  .portal-estrutura-chefes .row.g-0 .portal-estrutura-chefe-card { border-radius: 16px; }
  .portal-estrutura-nav-tabs { flex-wrap: wrap; }
  .portal-estrutura-nav-tabs .nav-link { flex: 1; min-width: 140px; justify-content: center; }
  .portal-estrutura-tab-content { padding: 24px 20px; }
}

/* Agenda do Prefeito */
.portal-agenda-content {
  padding: 32px 0 72px;
  background: var(--portal-lighter);
}

.portal-agenda-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portal-agenda-widget {
  background: var(--portal-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(12, 36, 60, 0.06);
  border: 1px solid rgba(12, 36, 60, 0.06);
}

.portal-agenda-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-agenda-widget-title i {
  color: var(--portal-primary);
  font-size: 18px;
}

.portal-agenda-prefeito-card {
  text-align: center;
}

.portal-agenda-prefeito-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--portal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-agenda-prefeito-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-agenda-prefeito-iniciais {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.portal-agenda-prefeito-nome {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--portal-dark);
  margin-bottom: 4px;
}

.portal-agenda-prefeito-partido {
  font-size: 13px;
  color: #6b7a99;
  margin-bottom: 4px;
}

.portal-agenda-prefeito-mandato {
  font-size: 12px;
  color: #97A1C0;
  margin-bottom: 16px;
}

.portal-agenda-prefeito-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--portal-primary);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.portal-agenda-prefeito-link:hover { color: var(--portal-primary-dark); }

.portal-agenda-prefeito-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--portal-primary);
  color: #fff !important;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.portal-agenda-prefeito-btn:hover {
  background: var(--portal-primary-dark);
}

.portal-agenda-section {
  background: var(--portal-lighter);
}

.portal-agenda-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--portal-white);
  border-radius: 16px;
  border: 1px dashed rgba(12, 36, 60, 0.12);
}

.portal-agenda-empty i {
  font-size: 48px;
  color: var(--portal-primary);
  opacity: 0.4;
  display: block;
  margin-bottom: 16px;
}

.portal-agenda-empty p {
  font-size: 15px;
  color: #6b7a99;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .portal-agenda-sidebar { order: -1; }
}

/* ----------------------------------------------------------
   TRANSPARÊNCIA - Central de acesso
   ---------------------------------------------------------- */
.portal-transparencia-section {
  background: var(--portal-lighter);
}

.portal-transparencia-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 40px;
  background: var(--portal-white);
  border-radius: 16px;
  border: 1px solid rgba(12, 36, 60, 0.06);
  box-shadow: 0 2px 12px rgba(12, 36, 60, 0.04);
}

.portal-transparencia-hero-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(49, 106, 255, 0.1);
  color: var(--portal-primary);
  border-radius: 14px;
  font-size: 28px;
}

.portal-transparencia-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--portal-dark);
  margin: 0 0 8px;
}

.portal-transparencia-hero-desc {
  font-size: 15px;
  color: #6b7a99;
  line-height: 1.6;
  margin: 0;
}

.portal-transparencia-block {
  margin-bottom: 40px;
}

.portal-transparencia-block-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-dark);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-transparencia-block-title i {
  color: var(--portal-primary);
}

.portal-transparencia-card {
  display: block;
  padding: 24px;
  background: var(--portal-white);
  border-radius: 12px;
  border: 1px solid rgba(12, 36, 60, 0.06);
  text-decoration: none;
  transition: all 0.25s;
  height: 100%;
}

.portal-transparencia-card:hover {
  border-color: var(--portal-primary);
  box-shadow: 0 4px 20px rgba(49, 106, 255, 0.12);
  transform: translateY(-2px);
}

.portal-transparencia-card--featured {
  border-color: rgba(49, 106, 255, 0.2);
  background: linear-gradient(180deg, rgba(49, 106, 255, 0.03) 0%, var(--portal-white) 100%);
}

.portal-transparencia-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(49, 106, 255, 0.1);
  color: var(--portal-primary);
  border-radius: 10px;
  font-size: 20px;
  margin-bottom: 16px;
}

.portal-transparencia-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-dark);
  margin: 0 0 6px;
}

.portal-transparencia-card-desc {
  font-size: 14px;
  color: #6b7a99;
  line-height: 1.5;
  margin: 0;
}

.portal-transparencia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.portal-transparencia-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--portal-white);
  border-radius: 12px;
  border: 1px solid rgba(12, 36, 60, 0.06);
  text-decoration: none;
  color: var(--portal-dark);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.portal-transparencia-item:hover {
  border-color: var(--portal-primary);
  color: var(--portal-primary);
  background: rgba(49, 106, 255, 0.04);
}

.portal-transparencia-item i {
  font-size: 18px;
  color: var(--portal-primary);
  flex-shrink: 0;
}

.portal-transparencia-card--compact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--portal-white);
  border-radius: 12px;
  border: 1px solid rgba(12, 36, 60, 0.06);
  text-decoration: none;
  transition: all 0.2s;
  height: 100%;
}

.portal-transparencia-card--compact:hover {
  border-color: var(--portal-primary);
  box-shadow: 0 4px 16px rgba(49, 106, 255, 0.1);
}

.portal-transparencia-card--compact > i:first-child {
  font-size: 28px;
  color: var(--portal-primary);
  flex-shrink: 0;
}

.portal-transparencia-card--compact h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-dark);
  margin: 0 0 4px;
}

.portal-transparencia-card--compact p {
  font-size: 13px;
  color: #6b7a99;
  margin: 0;
}

.portal-transparencia-card--compact .portal-transparencia-card-arrow {
  margin-left: auto;
  font-size: 16px;
  color: #97A1C0;
  transition: transform 0.2s;
}

.portal-transparencia-card--compact:hover .portal-transparencia-card-arrow {
  color: var(--portal-primary);
  transform: translateX(4px);
}

.portal-transparencia-cta {
  text-align: center;
  padding: 32px 24px;
  background: var(--portal-white);
  border-radius: 16px;
  border: 1px dashed rgba(12, 36, 60, 0.12);
}

.portal-transparencia-cta p {
  font-size: 15px;
  color: #6b7a99;
  margin: 0 0 12px;
}

.portal-transparencia-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--portal-primary);
  text-decoration: none;
  transition: gap 0.2s;
}

.portal-transparencia-cta-link:hover {
  gap: 12px;
  color: var(--portal-primary-dark);
}

@media (max-width: 767px) {
  .portal-transparencia-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .portal-transparencia-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   Página de Resultados da Pesquisa
   ---------------------------------------------------------- */
.portal-pesquisa-section {
  padding-top: 0;
}

/* Novo design: card claro com faixa de destaque */
.portal-pesquisa-form-card {
  position: relative;
  margin-bottom: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(12, 36, 60, 0.08), 0 1px 3px rgba(12, 36, 60, 0.04);
  border: 1px solid rgba(12, 36, 60, 0.06);
  overflow: hidden;
}

.portal-pesquisa-form-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #316AFF 0%, #00b4d8 100%);
}

.portal-pesquisa-form-card-header {
  padding: 32px 32px 0 36px;
}

.portal-pesquisa-form {
  padding: 24px 32px 32px 36px;
}

.portal-pesquisa-form-card-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #316AFF;
  background: rgba(49, 106, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 16px;
}

.portal-pesquisa-form-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0C243C;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.portal-pesquisa-form-card-desc {
  font-size: 0.95rem;
  color: #6b7a99;
  margin: 0 0 24px;
  line-height: 1.6;
}

.portal-pesquisa-form {
  margin: 0;
}

.portal-pesquisa-form-field {
  display: flex;
  align-items: center;
  max-width: 560px;
  background: #f4f7fe;
  border: 2px solid #e8eef8;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.portal-pesquisa-form-field:focus-within {
  border-color: #316AFF;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 106, 255, 0.15);
}

.portal-pesquisa-form-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: #6b7a99;
  font-size: 18px;
}

.portal-pesquisa-form-field:focus-within .portal-pesquisa-form-field-icon {
  color: #316AFF;
}

.portal-pesquisa-form-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: #0C243C;
  background: transparent;
  border: none;
  outline: none;
}

.portal-pesquisa-form-input::placeholder {
  color: #9ca3af;
}

.portal-pesquisa-form-submit {
  flex-shrink: 0;
  margin: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #316AFF 0%, #2555cc 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-pesquisa-form-submit:hover {
  background: linear-gradient(135deg, #2555cc 0%, #1a4399 100%);
  transform: translateY(-1px);
}

.portal-pesquisa-resumo {
  margin-bottom: 28px;
  padding: 16px 20px;
  background: #f4f7fe;
  border-radius: 10px;
  border-left: 4px solid #316AFF;
}

.portal-pesquisa-resumo-texto {
  margin: 0;
  font-size: 0.95rem;
  color: #0C243C;
}

.portal-pesquisa-resultados {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.portal-pesquisa-resultado-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(12,36,60,0.1);
  border: 1px solid rgba(12,36,60,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-pesquisa-resultado-card:hover {
  box-shadow: 0 8px 40px rgba(12,36,60,0.15);
  transform: translateY(-2px);
}

.portal-pesquisa-resultado-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.portal-pesquisa-resultado-badge--legislacao { background: #e8f0fe; color: #316AFF; }
.portal-pesquisa-resultado-badge--noticias { background: #e6f4ea; color: #16a34a; }
.portal-pesquisa-resultado-badge--transparencia { background: #e0f7fa; color: #00b4d8; }
.portal-pesquisa-resultado-badge--municipio { background: #f3e8ff; color: #9333ea; }
.portal-pesquisa-resultado-badge--servicos { background: #fef3c7; color: #d4a017; }

.portal-pesquisa-resultado-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portal-pesquisa-resultado-titulo a {
  color: #0C243C;
  text-decoration: none;
  transition: color 0.2s;
}

.portal-pesquisa-resultado-titulo a:hover {
  color: #316AFF;
}

.portal-pesquisa-resultado-desc {
  font-size: 0.9rem;
  color: #6b7a99;
  margin-bottom: 12px;
  line-height: 1.5;
}

.portal-pesquisa-resultado-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #316AFF;
  text-decoration: none;
  transition: all 0.3s ease;
}

.portal-pesquisa-resultado-link:hover {
  color: #2555cc;
  gap: 10px;
}

.portal-pesquisa-sugestoes {
  margin-bottom: 40px;
}

.portal-pesquisa-sugestoes-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0C243C;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-pesquisa-sugestoes-titulo i {
  color: #316AFF;
}

.portal-pesquisa-sugestoes-desc {
  font-size: 0.95rem;
  color: #6b7a99;
  margin-bottom: 24px;
}

.portal-pesquisa-links-rapidos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.portal-pesquisa-link-rapido {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(12,36,60,0.08);
  color: #0C243C;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.portal-pesquisa-link-rapido:hover {
  background: #ECF2FD;
  border-color: #316AFF;
  color: #316AFF;
}

.portal-pesquisa-link-rapido i {
  font-size: 18px;
  color: #316AFF;
}

.portal-pesquisa-ajuda {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #f4f7fe;
  border-radius: 12px;
  border: 1px dashed rgba(49,106,255,0.3);
}

.portal-pesquisa-ajuda-icon {
  font-size: 28px;
  color: #316AFF;
}

.portal-pesquisa-ajuda-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0C243C;
  margin-bottom: 4px;
}

.portal-pesquisa-ajuda-content p {
  font-size: 0.9rem;
  color: #6b7a99;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .portal-pesquisa-form-card-header {
    padding: 24px 20px 0 26px;
  }

  .portal-pesquisa-form {
    padding: 20px 20px 24px 26px;
  }

  .portal-pesquisa-form-field {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-pesquisa-form-field-icon {
    display: none;
  }

  .portal-pesquisa-form-input {
    padding: 14px 16px;
    border-radius: 10px 10px 0 0;
  }

  .portal-pesquisa-form-submit {
    margin: 0;
    border-radius: 0 0 10px 10px;
    padding: 14px;
  }
}

/* ----------------------------------------------------------
   Galeria de Vídeos
   ---------------------------------------------------------- */
.portal-videos-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.portal-videos-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.portal-videos-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0C243C 0%, #0e2a47 40%, #1a3a6e 70%, #316AFF 100%);
}

.portal-videos-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm0-30c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zM10 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm0-30c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.portal-videos-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.portal-videos-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  margin-bottom: 20px;
}

.portal-videos-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.portal-videos-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.portal-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.portal-video-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-video-card:hover {
  transform: translateY(-6px);
}

.portal-video-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.portal-video-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.portal-video-card--featured .portal-video-card-link {
  flex-direction: column;
}

.portal-video-card--featured .portal-video-card-thumb {
  flex: 1;
  min-height: 0;
}

.portal-video-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.portal-video-card--featured .portal-video-card-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.portal-video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portal-video-card:hover .portal-video-card-thumb img {
  transform: scale(1.06);
}

.portal-video-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%);
  opacity: 1;
  transition: background 0.3s ease;
}

.portal-video-card:hover .portal-video-card-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.portal-video-card-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  color: #316AFF;
  border-radius: 50%;
  font-size: 28px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.portal-video-card--featured .portal-video-card-play {
  width: 88px;
  height: 88px;
  font-size: 36px;
}

.portal-video-card:hover .portal-video-card-play {
  transform: scale(1.1);
  background: #fff;
}

.portal-video-card-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 6px;
}

.portal-video-card-info {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-video-card--featured .portal-video-card-info {
  padding: 24px;
}

.portal-video-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00b4d8;
  margin-bottom: 8px;
}

.portal-video-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.portal-video-card--featured .portal-video-card-title {
  font-size: 1.25rem;
}

.portal-video-modal-content {
  background: transparent;
  border: none;
  position: relative;
}

.portal-video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  opacity: 1;
  z-index: 10;
}

.portal-video-modal-close:hover {
  background: #f4f7fe;
}

@media (max-width: 992px) {
  .portal-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-video-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .portal-video-card--featured .portal-video-card-thumb {
    min-height: 200px;
  }
}

@media (max-width: 576px) {
  .portal-videos-section {
    padding: 56px 0;
  }

  .portal-videos-title {
    font-size: 1.75rem;
  }

  .portal-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-video-card--featured {
    grid-column: span 1;
  }
}
