/* ============================================================================
   PUBLIC GLOBAL CSS - GENERIC DYNAMIC PAGES
   Bootstrap 5.3.8 compatible
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --navy: #0d2545;
  --navy-mid: #163566;
  --navy-soft: #365b97;
  --blue: #1a4fa0;
  --blue-soft: #2563c8;
  --gold: #c9972b;
  --gold-lt: #e8b84b;
  --cream: #f8f5ef;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --text: #1a1f2e;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13, 37, 69, 0.10);
  --shadow-lg: 0 12px 40px rgba(13, 37, 69, 0.18);
  --transition: 0.25s ease;
  --public-search-highlight-bg: transparent;
  --public-search-highlight-text: inherit;
  --public-search-underline-color: var(--gold);
  --public-search-underline-offset: 2px;
  --public-search-underline-thickness: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition), gap var(--transition);
  text-decoration: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue);
}

.section-link:hover {
  color: var(--gold);
}

.btn-gold,
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-gold {
  padding: 12px 28px;
  border: none;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
}

.btn-gold:hover {
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline-white {
  padding: 11px 26px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}


/* ============================================================================
   PUBLIC SEARCH HIGHLIGHT
   ============================================================================ */

mark.public-search-hit {
  background: var(--public-search-highlight-bg);
  color: var(--public-search-highlight-text);
  padding: 0;
  border-radius: 0;
  text-decoration-line: underline;
  text-decoration-color: var(--public-search-underline-color);
  text-decoration-thickness: var(--public-search-underline-thickness);
  text-underline-offset: var(--public-search-underline-offset);
}

/* ============================================================================
   SHARED BREADCRUMB
   ============================================================================ */

.page-breadcrumb-wrap {
  padding: 18px 0 0;
  background: var(--cream);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  min-height: 54px;
}

.page-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #5d7398;
  font-size: 0.88rem;
  line-height: 1.5;
}

.page-breadcrumb__item+.page-breadcrumb__item::before {
  content: "\f105";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  color: rgba(26, 79, 160, 0.42);
  font-size: 0.72rem;
  margin-right: 2px;
}

.page-breadcrumb__link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--transition);
}

.page-breadcrumb__link:hover,
.page-breadcrumb__link:focus,
.page-breadcrumb__link:active,
.page-breadcrumb__link:visited {
  color: var(--blue);
  text-decoration: none !important;
}

.page-breadcrumb__current {
  color: #5d7398;
  font-weight: 700;
  word-break: break-word;
}

.page-breadcrumb__home-icon {
  display: inline-block;
  vertical-align: -1px;
  line-height: 1;
  color: var(--navy);
  font-size: 0.82rem;
}

/* ============================================================================
   SHARED INTERNAL HERO
   ============================================================================ */

.page-hero,
.public-hero,
.news-hero,
.agenda-hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at top right, rgba(26, 79, 160, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy) 0%, #0b2448 100%);
}

.page-hero__title,
.public-hero__title,
.news-hero__title,
.agenda-hero__title {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.page-hero__text,
.public-hero__text,
.news-hero__text,
.agenda-hero__text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.8;
}

/* ============================================================================
   SHARED PAGE SHELL
   ============================================================================ */

.page-content,
.public-page,
.news-page,
.news-detail-page,
.agenda-page {
  padding: 30px 0;
  background: var(--cream);
}

.public-page {
  --tree-color: rgba(26, 79, 160, 0.72);
  --tree-arm: 16px;
  --tree-indent: 28px;
  --tree-node-center: 30px;
  --tree-gap: 6px;
}

.page-toolbar,
.public-toolbar,
.news-toolbar {
  margin-bottom: 40px;
}

/* ============================================================================
   SHARED SEARCH BAR
   ============================================================================ */

.page-search,
.public-search,
.news-search {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(26, 79, 160, 0.22);
  border-radius: 14px;
}

.public-search {
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  border-radius: 10px;
}

.page-search__icon,
.public-search__icon,
.public-search__loading,
.news-search__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--navy);
  background: rgba(13, 43, 87, 0.08);
  border: 1px solid rgba(26, 79, 160, 0.22);
  border-radius: 10px;
  transition: var(--transition);
}

.page-search__input,
.public-search__input,
.news-search__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.92rem;
  background: rgba(13, 43, 87, 0.03);
  border: 1px solid rgba(26, 79, 160, 0.22);
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.public-search__input {
  border-radius: 10px;
}

.page-search__input:focus,
.public-search__input:focus,
.news-search__input:focus {
  outline: none;
  background: var(--white);
  border-color: rgba(26, 79, 160, 0.42);
  box-shadow: 0 0 0 0.25rem rgba(26, 79, 160, 0.08);
}

.page-search__clear,
.public-search__clear,
.news-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(13, 43, 87, 0.08);
  border: 1px solid rgba(26, 79, 160, 0.22);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.page-search__clear:hover,
.public-search__clear:hover,
.news-search__clear:hover {
  background: rgba(13, 43, 87, 0.14);
}

.public-search__loading[hidden] {
  display: none;
}

/* ============================================================================
   SHARED EMPTY STATES
   ============================================================================ */

.page-empty,
.public-empty,
.news-empty {
  margin: 0;
  padding: 14px 16px;
  color: var(--gray-700);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 79, 160, 0.12);
  border-radius: 8px;
}

.news-empty {
  padding: 16px 18px;
  font-size: 0.9rem;
  border-style: dashed;
  border-radius: 12px;
}

.public-empty--warning {
  color: #7c4a03;
  background: #fff8e6;
  border-color: rgba(194, 120, 3, 0.24);
}

/* ============================================================================
   SHARED PAGINATION
   ============================================================================ */

.page-pagination,
.public-pagination,
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-pagination[hidden],
.public-pagination[hidden],
.news-pagination[hidden] {
  display: none !important;
}

.page-pagination__pages,
.public-pagination__pages,
.news-pagination__pages,
.pfl-pages,
.pcard-pages,
.parcard-pages,
.depcard-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pfl-nav>div,
.pcard-nav>div,
.parcard-nav>div,
.depcard-nav>div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-pagination__button,
.public-pagination__button,
.news-pagination__button,
.pfl-first,
.pfl-prev,
.pfl-next,
.pfl-last,
.pfl-pages button,
.pcard-first,
.pcard-prev,
.pcard-next,
.pcard-last,
.pcard-pages button,
.parcard-first,
.parcard-prev,
.parcard-next,
.parcard-last,
.parcard-pages button,
.depcard-first,
.depcard-prev,
.depcard-next,
.depcard-last,
.depcard-pages button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 8px;
  margin: 0;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  background: rgba(13, 43, 87, 0.08);
  border: 1px solid rgba(26, 79, 160, 0.44);
  border-radius: 2px;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.page-pagination__button:hover:not(:disabled),
.public-pagination__button:hover:not(:disabled),
.news-pagination__button:hover:not(:disabled),
.pfl-first:hover:not(:disabled),
.pfl-prev:hover:not(:disabled),
.pfl-next:hover:not(:disabled),
.pfl-last:hover:not(:disabled),
.pfl-pages button:hover:not(:disabled),
.pcard-first:hover:not(:disabled),
.pcard-prev:hover:not(:disabled),
.pcard-next:hover:not(:disabled),
.pcard-last:hover:not(:disabled),
.pcard-pages button:hover:not(:disabled),
.parcard-first:hover:not(:disabled),
.parcard-prev:hover:not(:disabled),
.parcard-next:hover:not(:disabled),
.parcard-last:hover:not(:disabled),
.parcard-pages button:hover:not(:disabled),
.depcard-first:hover:not(:disabled),
.depcard-prev:hover:not(:disabled),
.depcard-next:hover:not(:disabled),
.depcard-last:hover:not(:disabled),
.depcard-pages button:hover:not(:disabled) {
  color: var(--navy);
  background: rgba(13, 43, 87, 0.14);
  border-color: rgba(26, 79, 160, 0.58);
}

.page-pagination__button.is-active,
.public-pagination__button.is-active,
.news-pagination__button.is-active,
.pfl-pages button.is-active,
.pcard-pages button.is-active,
.parcard-pages button.is-active,
.depcard-pages button.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: rgba(26, 79, 160, 0.22);
}

.page-pagination__button:disabled,
.public-pagination__button:disabled,
.news-pagination__button:disabled,
.pfl-first:disabled,
.pfl-prev:disabled,
.pfl-next:disabled,
.pfl-last:disabled,
.pfl-pages button:disabled,
.pcard-first:disabled,
.pcard-prev:disabled,
.pcard-next:disabled,
.pcard-last:disabled,
.pcard-pages button:disabled,
.parcard-first:disabled,
.parcard-prev:disabled,
.parcard-next:disabled,
.parcard-last:disabled,
.parcard-pages button:disabled,
.depcard-first:disabled,
.depcard-prev:disabled,
.depcard-next:disabled,
.depcard-last:disabled,
.depcard-pages button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-pagination__ellipsis,
.public-pagination__ellipsis,
.news-pagination__ellipsis,
.pfl-pages span,
.pcard-pages span,
.parcard-pages span,
.depcard-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 28px;
  color: #5f77a5;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ===================== TOPBAR ===================== */
#topbar {
  padding: 7px 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}

#topbar a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

#topbar a:hover {
  color: var(--gold-lt);
}

#topbar .divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 10px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.25);
}

#topbar .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--navy-mid);
  font-size: 1rem;
  line-height: 0.5rem;
  border-radius: 5px;
}

#topbar .social-icons a:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

#topbar .top-links a {
  margin-left: 6px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

#topbar .top-links a:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

#clock {
  font-variant-numeric: tabular-nums;
}

/* ===================== MENU ======================= */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(13, 37, 69, 0.08);
}

#main-nav .container-xl {
  position: relative;
}

#main-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  margin-right: 24px;
  text-decoration: none;
}

#main-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

#main-nav .brand-text {
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

#main-nav .brand img {
  display: block;
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

#main-nav .navbar-toggler {
  padding: 10px;
  border: 0 !important;
  border-radius: 10px;
  box-shadow: none !important;
}

#main-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(201, 151, 43, 0.18) !important;
}

#main-nav .navbar-toggler-icon {
  background-image: none;
  width: 24px;
  height: 24px;
  position: relative;
  background-color: transparent;
}

#main-nav .navbar-toggler-icon::before,
#main-nav .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

#main-nav .navbar-toggler-icon::before {
  top: 7px;
  box-shadow: 0 6px 0 var(--navy);
}

#main-nav .navbar-toggler-icon::after {
  top: 19px;
}

#main-nav .navbar-collapse {
  min-height: 100%;
}

#main-nav .navbar-nav {
  gap: 0;
}

#main-nav .navbar-nav>.nav-item {
  position: relative;
}

#main-nav .navbar-nav>.nav-item>.nav-link,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 88px;
  padding: 0 14px !important;
  color: var(--gray-700) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}

#main-nav .navbar-nav>.nav-item>.nav-link::before,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

#main-nav .navbar-nav>.nav-item>.nav-link:hover,
#main-nav .navbar-nav>.nav-item>.nav-link:focus,
#main-nav .navbar-nav>.nav-item>.nav-link.active,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle:hover,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle:focus,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle.active,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle.show,
#main-nav .navbar-nav>.nav-item.show>.nav-link,
#main-nav .navbar-nav>.nav-item.show>.dropdown-toggle {
  color: var(--gold) !important;
  background: transparent !important;
}

#main-nav .navbar-nav>.nav-item>.nav-link:hover::before,
#main-nav .navbar-nav>.nav-item>.nav-link:focus::before,
#main-nav .navbar-nav>.nav-item>.nav-link.active::before,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle:hover::before,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle:focus::before,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle.active::before,
#main-nav .navbar-nav>.nav-item>.dropdown-toggle.show::before,
#main-nav .navbar-nav>.nav-item.show>.nav-link::before,
#main-nav .navbar-nav>.nav-item.show>.dropdown-toggle::before {
  transform: scaleX(1);
}

/* remove caret nativo do Bootstrap */
#main-nav .navbar-nav>.nav-item>.dropdown-toggle::after,
#main-nav .dropdown-submenu>.dropdown-toggle::after {
  display: none !important;
}

/* ícones font awesome */
#main-nav .dropdown-fa-icon,
#main-nav .submenu-fa-icon,
#mainMenuMobile .mobile-chevron {
  font-size: 0.78rem;
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}

#main-nav .navbar-nav>.nav-item>.dropdown-toggle.show .dropdown-fa-icon,
#main-nav .navbar-nav>.nav-item.show>.dropdown-toggle .dropdown-fa-icon {
  transform: rotate(180deg);
}

#main-nav .dropdown-submenu>.dropdown-toggle.is-open .submenu-fa-icon {
  transform: rotate(90deg);
}

/* dropdown desktop */
#main-nav .dropdown-menu {
  min-width: 260px;
  margin-top: 0;
  padding: 10px 0;
  border: 1px solid rgba(13, 37, 69, 0.12);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(13, 37, 69, 0.12);
}

#main-nav .dropdown-divider {
  margin: 0.35rem 0;
  border-top-color: rgba(13, 37, 69, 0.08);
}

#main-nav .dropdown-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.78rem 1rem;
  color: var(--gray-700);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  background: transparent;
  border: 0;
  transition: color var(--transition), background-color var(--transition);
}

#main-nav .dropdown-item:hover,
#main-nav .dropdown-item:focus,
#main-nav .dropdown-item.active,
#main-nav .dropdown-item:active {
  color: var(--gold) !important;
  background: rgba(201, 151, 43, 0.12) !important;
}

#main-nav .dropdown-item i {
  flex-shrink: 0;
}

/* submenu lateral */
#main-nav .dropdown-submenu {
  position: relative;
}

#main-nav .dropdown-submenu>.dropdown-toggle {
  position: relative;
}

#main-nav .dropdown-submenu>.dropdown-menu {
  top: -10px;
  left: 100%;
  margin-left: 0.35rem;
}

/* mobile offcanvas */
#mainMenuMobile.offcanvas {
  max-width: 360px;
  background: var(--white);
}

#mainMenuMobile .offcanvas-header {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(13, 37, 69, 0.08);
}

#mainMenuMobile .offcanvas-title {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#mainMenuMobile .btn-close {
  box-shadow: none !important;
}

#mainMenuMobile .offcanvas-body {
  padding: 1rem;
}

#mainMenuMobile .offcanvas-body img {
  display: block;
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

#mainMenuMobile .menu-mobile-tree a,
#mainMenuMobile .menu-mobile-tree span,
#mainMenuMobile .menu-mobile-tree button {
  color: var(--gray-700);
}

#mainMenuMobile .menu-mobile-tree a {
  background: var(--white);
}

#mainMenuMobile .menu-mobile-tree a:hover,
#mainMenuMobile .menu-mobile-tree a.active {
  color: var(--gold) !important;
  background: rgba(201, 151, 43, 0.08) !important;
  border-color: rgba(201, 151, 43, 0.22) !important;
}

#mainMenuMobile .menu-mobile-tree .btn-link {
  color: var(--gray-700);
  background: var(--white);
}

#mainMenuMobile .menu-mobile-tree .btn-link:hover,
#mainMenuMobile .menu-mobile-tree .btn-link:focus {
  color: var(--gold);
  background: rgba(201, 151, 43, 0.08);
}

#mainMenuMobile .menu-mobile-tree .collapse {
  transition: height 0.25s ease;
}

#mainMenuMobile .menu-mobile-tree .d-flex.border {
  background: var(--white);
  border-color: rgba(13, 37, 69, 0.10) !important;
}

#mainMenuMobile .menu-mobile-tree .d-flex.border>a,
#mainMenuMobile .menu-mobile-tree .d-flex.border>span {
  color: var(--gray-700);
}

#mainMenuMobile .menu-mobile-tree .d-flex.border>a:hover {
  color: var(--gold);
  background: rgba(201, 151, 43, 0.08);
}

#mainMenuMobile .menu-mobile-tree .border-start {
  border-left-color: rgba(13, 37, 69, 0.10) !important;
}

#mainMenuMobile .mobile-chevron.is-open {
  transform: rotate(180deg);
}

/* responsivo */
@media (min-width: 992px) {
  #main-nav .dropdown:hover>.dropdown-menu {
    display: block;
  }

  #main-nav .dropdown-menu .dropdown-submenu:hover>.dropdown-menu {
    display: block;
  }
}

@media (max-width: 991.98px) {
  #main-nav .navbar-brand {
    padding: 10px 0;
    margin-right: 0;
  }

  #main-nav .brand img {
    max-height: 54px;
  }

  #main-nav .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  #main-nav .brand img {
    max-height: 46px;
  }

  #mainMenuMobile.offcanvas {
    width: 88vw;
  }
}

/* ===================== SITE POPUP ================= */
#site-popup-root {
  z-index: 2147483646;
}

#site-popup-root.site-popup-hidden {
  display: none !important;
}

#site-popup-backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.site-popup-dialog-wrap {
  z-index: 2147483647;
  padding: 32px 24px;
}

.site-popup-dialog {
  width: 100%;
  max-width: min(92vw, 720px);
  position: relative;
}

#site-popup-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(13, 37, 69, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #214483;
  box-shadow: 0 1rem 2rem rgba(13, 37, 69, 0.18);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#site-popup-close:hover,
#site-popup-close:focus {
  background: #f8fafc;
  color: #0d2545;
  border-color: rgba(13, 37, 69, 0.2);
}

#site-popup-card {
  max-height: 85vh;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.5rem 3rem rgba(13, 37, 69, 0.24);
}

.site-popup-scroll {
  overflow: auto;
}

.site-popup-image-holder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-popup-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-popup-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.site-popup-media-padding {
  padding: 20px 20px 16px;
}

.site-popup-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: .75rem;
  background: #000;
}

.site-popup-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-popup-video-direct {
  display: block;
  width: 100%;
  max-height: min(60vh, 480px);
  border-radius: .75rem;
  background: #000;
  object-fit: contain;
}

.site-popup-video-warning {
  padding: 14px;
  border: 1px solid #fdba74;
  border-radius: .75rem;
  background: #fff7ed;
  color: #9a3412;
  font-size: .875rem;
}

.site-popup-text-content {
  overflow: auto;
  padding: 28px 24px 24px;
}

.site-popup-richtext {
  color: #000;
}

.site-popup-actions {
  display: flex;
  justify-content: center;
  padding: 4px;
}

.site-popup-actions.site-popup-actions-text {
  padding-top: 24px;
}

.site-popup-btn {
  padding: .7rem 1.25rem;
  border: 1px solid rgba(13, 37, 69, 0.12);
  border-radius: .75rem;
  background: #f8fafc;
  color: #214483;
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 .25rem .75rem rgba(13, 37, 69, 0.08);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.site-popup-btn:hover,
.site-popup-btn:focus {
  background: #eef4ff;
  color: #0d2545;
  border-color: rgba(13, 37, 69, 0.2);
}

@media (max-width: 575.98px) {
  .site-popup-dialog-wrap {
    padding: 20px 14px;
  }

  .site-popup-dialog {
    max-width: 100%;
  }

  #site-popup-close {
    top: -12px;
    right: -6px;
  }

  .site-popup-text-content {
    padding: 22px 18px 18px;
  }

  .site-popup-media-padding,
  .site-popup-actions {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ===================== COOKIE CONSENT ===================== */
#cookie-consent {
  z-index: 9999;
}

#cookie-consent.cookie-hidden,
#cookie-preferences-modal.cookie-hidden {
  display: none !important;
}

#cookie-consent .cookie-consent-shell {
  padding: 0 0 1rem;
}

#cookie-consent .cookie-consent-card {
  border: 1px solid rgba(13, 37, 69, 0.12);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(13, 37, 69, 0.18);
}

#cookie-consent .cookie-consent-title {
  margin: 0;
  color: var(--navy, #0d2545);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

#cookie-consent .cookie-consent-title i {
  color: var(--gold, #c9972b);
}

#cookie-consent .cookie-consent-text {
  margin: 0.75rem 0 0;
  color: var(--gray-700, #374151);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cookie-btn-outline {
  border-color: rgba(13, 37, 69, 0.18);
  color: var(--navy, #0d2545);
  background: #fff;
}

.cookie-btn-outline:hover,
.cookie-btn-outline:focus {
  border-color: rgba(13, 37, 69, 0.3);
  color: var(--navy, #0d2545);
  background: rgba(13, 37, 69, 0.04);
}

.cookie-btn-reject {
  border-color: rgba(220, 53, 69, 0.22);
  color: #b42318;
  background: #fff;
}

.cookie-btn-reject:hover,
.cookie-btn-reject:focus {
  border-color: rgba(220, 53, 69, 0.38);
  color: #b42318;
  background: rgba(220, 53, 69, 0.06);
}

.cookie-btn-accept,
.cookie-btn-save {
  color: #fff;
  background: var(--navy, #0d2545);
  border-color: var(--navy, #0d2545);
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus,
.cookie-btn-save:hover,
.cookie-btn-save:focus {
  color: #fff;
  background: #091a31;
  border-color: #091a31;
}

/* ===================== PREFERENCES MODAL ===================== */

#cookie-preferences-modal {
  z-index: 10000;
}

#cookie-preferences-modal .cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

#cookie-preferences-modal .cookie-modal-dialog {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

#cookie-preferences-modal .cookie-modal-card {
  position: relative;
  width: 100%;
  max-width: 42rem;
  border: 1px solid rgba(13, 37, 69, 0.12);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(13, 37, 69, 0.18);
  overflow: hidden;
}

#cookie-preferences-modal .cookie-modal-title {
  margin: 0;
  color: var(--navy, #0d2545);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

#cookie-preferences-modal .cookie-modal-subtitle {
  margin: 0.35rem 0 0;
  color: #5b6678;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cookie-modal-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(13, 37, 69, 0.14);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--navy, #0d2545);
}

.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: rgba(13, 37, 69, 0.04);
  color: var(--navy, #0d2545);
}

.cookie-pref-box {
  border: 1px solid rgba(13, 37, 69, 0.1);
  border-radius: 0.9rem;
  padding: 1rem;
}

.cookie-pref-box.cookie-pref-required {
  background: rgba(13, 37, 69, 0.04);
}

.cookie-pref-title {
  margin: 0;
  color: var(--navy, #0d2545);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.cookie-pref-text {
  margin: 0.35rem 0 0;
  color: var(--gray-700, #374151);
  font-size: 0.92rem;
  line-height: 1.65;
}

.cookie-pill-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

#cookie-pref-analytics.form-check-input {
  width: 2.8rem;
  height: 1.45rem;
  cursor: pointer;
}

@media (min-width: 576px) {
  #cookie-preferences-modal .cookie-modal-dialog {
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  #cookie-consent .cookie-consent-title {
    font-size: 1rem;
  }

  #cookie-consent .cookie-consent-text {
    font-size: 0.9rem;
  }
}

/* ===================== SECTIONS ================== */

.home-section {
  padding: 30px 0;
  background: var(--home-section-bg, var(--cream));
}

.home-section--cream {
  --home-section-bg: var(--cream);
}

.home-section--white {
  --home-section-bg: var(--white);
}

#services.home-section,
#updates.home-section,
#contact.home-section {
  background: var(--home-section-bg);
}

.home-section+.home-section {
  border-top: 1px solid rgba(13, 37, 69, 0.06);
}

/* ===================== HOME HERO ================== */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background:
    radial-gradient(circle at top right, rgba(201, 151, 43, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(26, 79, 160, 0.20), transparent 34%),
    linear-gradient(135deg, var(--navy) 0%, #0b2448 100%);
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 480px);
  gap: 32px;
  align-items: center;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #f3d38a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.home-hero__title {
  max-width: 25ch;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.home-hero__text {
  max-width: 62ch;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.75;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none !important;
  border-radius: 12px;
  transition: var(--transition);
}

.home-hero__btn--primary {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.home-hero__btn--primary:hover {
  color: var(--navy);
  transform: translateY(-2px);
}

.home-hero__btn--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.home-hero__btn--ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
}

.home-hero__panel {
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.home-hero__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.home-hero__panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.home-hero__panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: #f3d38a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(201, 151, 43, 0.18);
  border-radius: 999px;
}

.home-hero__panel-text {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.7;
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.home-hero__stat {
  min-height: 116px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.home-hero__stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-hero__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #f3d38a;
  font-size: 1.05rem;
  background: rgba(201, 151, 43, 0.16);
  border-radius: 14px;
}

.home-hero__stat-number {
  display: block;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.home-hero__stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-hero__panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero__panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  transition: var(--transition);
}

.home-hero__panel-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .home-hero {
    padding: 56px 0;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__title {
    max-width: none;
  }
}

@media (max-width: 575px) {
  .home-hero {
    padding: 44px 0;
  }

  .home-hero__panel {
    padding: 18px;
    border-radius: 20px;
  }

  .home-hero__panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero__stats {
    grid-template-columns: 1fr;
  }

  .home-hero__actions {
    flex-direction: column;
  }

  .home-hero__btn {
    width: 100%;
  }
}

/* ===================== SERVICES ========================== */
#services {
  padding: 30px 0;
  /* background: var(--cream); */
}

.service-card {
  position: relative;
  display: block;
  height: 260px;
  cursor: pointer;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(13, 37, 69, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 16px 34px rgba(13, 37, 69, 0.16);
}

.service-card__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card__image {
  transform: scale(1.06);
}

.service-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--blue-soft), var(--navy));
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(13, 37, 69, 0.88) 0%,
      rgba(13, 37, 69, 0.58) 28%,
      rgba(13, 37, 69, 0.18) 58%,
      rgba(13, 37, 69, 0.05) 100%);
  transition: background 0.3s ease;
}

.service-card:hover .service-card__overlay {
  background: linear-gradient(to top,
      rgba(13, 37, 69, 0.92) 0%,
      rgba(13, 37, 69, 0.70) 34%,
      rgba(13, 37, 69, 0.32) 68%,
      rgba(13, 37, 69, 0.12) 100%);
}

.service-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.service-card__hover {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.service-card:hover .service-card__hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-card__hover-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.service-card__caption {
  display: block;
}

.service-card__title {
  margin: 0;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.service-card__text {
  display: none;
}

.services-gallery {
  position: relative;
}

.services-gallery__viewport {
  width: 100%;
  overflow: hidden;
}

.services-gallery__track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

.services-gallery__page {
  flex: 0 0 100%;
  min-width: 100%;
}

.services-gallery__footer {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.services-gallery__pagination {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--gold-lt);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(13, 37, 69, 0.06);
}

.services-gallery__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
}

.services-gallery__dot:hover {
  transform: scale(1.1);
}

.services-gallery__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--gold);
}

.services-gallery__divider {
  width: 1px;
  height: 18px;
  margin: 0 2px 0 4px;
  background: var(--gold);
}

.services-gallery__counter {
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 991.98px) {
  .service-card {
    height: 240px;
  }
}

@media (max-width: 575.98px) {
  #services {
    padding: 56px 0;
  }

  .service-card {
    height: 230px;
  }

  .service-card__content {
    padding: 16px;
  }

  .service-card__title {
    font-size: 0.98rem;
  }

  .service-card__hover-button {
    padding: 11px 18px;
    font-size: 0.88rem;
  }
}

/* ===================== NEWS + AGENDA ===================== */
#updates {
  padding: 30px 0;
  /* background: var(--white); */
}

#updates .col-lg-7,
#updates .col-lg-5 {
  display: flex;
  flex-direction: column;
}

.news-feature {
  position: relative;
  height: 200px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--radius);
}

.news-feature__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 37, 69, 0.82) 0%, transparent 60%);
}

.news-feature__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  background: var(--gold);
}

.news-feature__content {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  color: var(--white);
}

.news-feature__date {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}

.news-feature__title {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0 10px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item__thumb {
  flex-shrink: 0;
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.news-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--gray-500);
  font-size: 0.72rem;
  flex-wrap: wrap;
}

.news-item__tag {
  padding: 2px 8px;
  color: var(--blue);
  font-weight: 600;
  border-radius: 4px;
  background: var(--cream);
}

.news-item__title {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-item__excerpt {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.8rem;
  line-height: 1.5;
}

.agenda-box {
  overflow: hidden;
  background: var(--cream);
  border-radius: var(--radius);
}

.agenda-item {
  display: flex;
  align-items: stretch;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
}

.agenda-item:last-child {
  border-bottom: none;
}

.agenda-item:hover {
  background: #f0f4ff;
}

.agenda-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 10px 0;
  color: var(--white);
  background: var(--navy);
}

.agenda-item__month {
  color: var(--gold-lt);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agenda-item__day {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.agenda-item__weekday {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-item__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
}

.agenda-item__time {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 600;
}

.agenda-item__title {
  margin: 0;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}


/* ===================== PAGE: NOTÍCIAS ==================== */
.news-grid {
  padding-top: 0;
}

.news-cards-group {
  display: grid;
  gap: 10px;
}

/* ===================== CARDS ===================== */
.news-card {
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 37, 69, 0.14);
  box-shadow: 0 10px 20px rgba(13, 37, 69, 0.08);
}

.news-card__image-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: rgba(13, 43, 87, 0.08);
  border: 1px solid rgba(26, 79, 160, 0.22);
}

.news-card__image,
.news-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.news-card__image {
  object-fit: cover;
}

.news-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(13, 43, 87, 0.28);
  font-size: 2rem;
  background: rgba(13, 43, 87, 0.05);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 220px);
  padding: 22px;
}

.news-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.news-card__category,
.news-card__date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.news-card__category {
  color: var(--navy);
  background: rgba(13, 43, 87, 0.08);
  border: 1px solid rgba(26, 79, 160, 0.22);
}

.news-card__date {
  color: var(--gray-700);
  background: rgba(55, 65, 81, 0.08);
}

.news-card__title {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-card__excerpt {
  margin: 0 0 18px;
  color: var(--gray-500);
  font-size: 0.86rem;
  line-height: 1.7;
}

.news-card__actions {
  margin-top: auto;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  color: var(--navy);
  background: rgba(13, 43, 87, 0.08);
  border: 1px solid rgba(26, 79, 160, 0.22);
  transition: var(--transition);
}

.news-card__link:hover {
  background: rgba(13, 43, 87, 0.14);
}


@media (max-width: 767px) {
  .news-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-card__image-wrap {
    height: 200px;
  }

  .news-card__body {
    height: auto;
    padding: 18px 16px;
  }
}

/* ===================== PAGE: DETALHE NOTÍCIA ============= */
.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(26, 79, 160, 0.12);
}

.news-detail-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
  font-size: 0.84rem;
  font-weight: 600;
}

.news-detail-meta__item i {
  color: var(--navy);
  font-size: 0.84rem;
}

.news-detail-content {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.85;
}

.news-detail-content p:last-child {
  margin-bottom: 0;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.news-detail-section {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(26, 79, 160, 0.12);
}

.news-detail-section__title {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}

.news-gallery__item {
  display: block;
  height: 100%;
  overflow: hidden;
  background: rgba(13, 43, 87, 0.06);
  border: 1px solid rgba(26, 79, 160, 0.14);
  border-radius: 14px;
  transition: var(--transition);
}

.news-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(13, 43, 87, 0.08);
}

.news-gallery__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.news-files {
  display: grid;
  gap: 12px;
}

.news-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: var(--navy);
  text-decoration: none;
  background: rgba(13, 43, 87, 0.04);
  border: 1px solid rgba(26, 79, 160, 0.14);
  border-radius: 12px;
  transition: var(--transition);
}

.news-file:hover {
  background: rgba(13, 43, 87, 0.08);
  text-decoration: none;
}

.news-file__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.news-file__left i {
  color: var(--navy);
  font-size: 0.9rem;
}

.news-file__name {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
}

.news-file__action {
  flex-shrink: 0;
  color: #5d7398;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-share__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(13, 43, 87, 0.08);
  border: 1px solid rgba(26, 79, 160, 0.16);
  border-radius: 10px;
  transition: var(--transition);
}

.news-share__link:hover {
  background: rgba(13, 43, 87, 0.14);
  text-decoration: none;
}

.news-empty-state {
  padding: 18px 20px;
  color: var(--gray-700);
  font-size: 0.92rem;
  background: rgba(13, 43, 87, 0.04);
  border: 1px dashed rgba(26, 79, 160, 0.18);
  border-radius: 12px;
}


@media (max-width: 991px) {
  .news-detail-body {
    padding: 22px;
  }

  .news-gallery__image {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .news-detail-body {
    padding: 18px 16px;
  }

  .news-detail-meta {
    gap: 10px 12px;
  }

  .news-gallery__image {
    height: 180px;
  }

  .news-file {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===================== CONTACT =========================== */
#contact {
  padding: 30px 0;
  /* background: var(--cream); */
}

.contact-wrap {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
}

.contact-panel {
  position: relative;
  height: 100%;
  padding: 38px 34px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(13, 37, 69, 0.96), rgba(26, 79, 160, 0.94)),
    radial-gradient(circle at top right, rgba(232, 184, 75, 0.18), transparent 35%);
}

.contact-panel::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.contact-panel .section-label {
  color: var(--gold-lt);
}

.contact-panel .section-title {
  margin-bottom: 14px;
  color: var(--white);
}

.contact-panel__text {
  max-width: 460px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96rem;
  line-height: 1.75;
}

.contact-info-list {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.contact-info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  color: var(--gold-lt);
  font-size: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
}

.contact-info-card__title {
  display: block;
  margin-bottom: 3px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-info-card__text,
.contact-info-card__link {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.55;
  text-decoration: none;
}

.contact-info-card__link:hover {
  color: var(--gold-lt);
}

.contact-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-summary__card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.contact-summary__value {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-lt);
  font-size: 1.2rem;
  font-weight: 800;
}

.contact-summary__label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-form {
  height: 100%;
  padding: 38px 34px;
  background: var(--white);
}

.contact-form__head {
  margin-bottom: 24px;
}

.contact-form__title {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.7rem;
  font-weight: 700;
}

.contact-form__description {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.7;
}

.form-label-custom {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.form-control-custom,
.form-select-custom {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.92rem;
  background: #fbfbfc;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

textarea.form-control-custom {
  min-height: 150px;
  resize: vertical;
}

.form-control-custom:focus,
.form-select-custom:focus {
  outline: none;
  background: var(--white);
  border-color: rgba(26, 79, 160, 0.45);
  box-shadow: 0 0 0 4px rgba(26, 79, 160, 0.08);
}

.contact-form__note {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.82rem;
  line-height: 1.6;
}

.contact-form__submit {
  min-height: 52px;
  padding-inline: 28px;
}

/* ============================================================================
   SEÇÃO FALE CONOSCO
============================================================================ */
.contact-form {
  position: relative;
}

.contact-form__feedback {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 20px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 14px 30px rgba(13, 43, 87, 0.08);
  animation: contactFeedbackIn .22s ease both;
}

.contact-form__feedback[hidden] {
  display: none !important;
}

.contact-form__feedback.is-success {
  color: #14532d;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.contact-form__feedback.is-warning {
  color: #713f12;
  background: #fffbeb;
  border-color: #fde68a;
}

.contact-form__feedback.is-error {
  color: #7f1d1d;
  background: #fef2f2;
  border-color: #fecaca;
}

.contact-form__feedback.is-info {
  color: #0d2b57;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.contact-form__feedback-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
}

.contact-form__feedback-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-form__feedback-content>strong {
  display: block;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.25;
}

.contact-form__feedback-content>span {
  display: block;
  font-size: .88rem;
  line-height: 1.55;
}

.contact-form__feedback-content>span strong {
  display: inline;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
}

.contact-form__feedback-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.62);
  transition: var(--transition);
}

.contact-form__feedback-close:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.contact-form__sending {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(3px);
  border-radius: inherit;
}

.contact-form__sending[hidden] {
  display: none !important;
}

.contact-form__sending-card {
  width: min(100%, 340px);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(26, 79, 160, 0.14);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(13, 43, 87, 0.16);
  animation: contactFeedbackIn .2s ease both;
}

.contact-form__sending-card strong {
  font-size: 1rem;
  font-weight: 800;
}

.contact-form__sending-card span:not(.contact-form__sending-spinner) {
  color: #5d7398;
  font-size: .86rem;
  line-height: 1.5;
}

.contact-form__sending-spinner {
  width: 42px;
  height: 42px;
  display: inline-block;
  border-radius: 50%;
  border: 4px solid rgba(13, 43, 87, 0.12);
  border-top-color: var(--gold);
  animation: contactSpin .8s linear infinite;
}

.contact-form__submit.is-loading {
  pointer-events: none;
  opacity: .86;
}

#homeContactForm.was-validated .form-control-custom:invalid,
#homeContactForm.was-validated .form-select-custom:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 .18rem rgba(220, 53, 69, .12);
}

@keyframes contactSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes contactFeedbackIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 575.98px) {
  .contact-form__feedback {
    grid-template-columns: 36px minmax(0, 1fr) 30px;
    padding: 12px;
  }

  .contact-form__feedback-icon {
    width: 36px;
    height: 36px;
  }

  .contact-form__feedback-close {
    width: 30px;
    height: 30px;
  }
}

/* ===================== ACESSIBILIDADE ==================== */
#site-accessibility-tools {
  position: fixed;
  left: initial;
  right: 0;
  top: 40%;
  bottom: initial;
  z-index: 2147483600 !important;
  transform: translateY(calc(-50% - 10px));
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 95vw;
  margin: 10px !important;
}

#site-accessibility-tools * {
  box-sizing: border-box;
}

#site-accessibility-tools[data-open="false"] .site-accessibility-panel {
  display: none;
}

#site-accessibility-tools[data-open="true"] .site-accessibility-panel {
  display: block;
}

.site-accessibility-trigger {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  border: 1px solid rgba(13, 37, 69, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(13, 37, 69, 0.16);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
}

.site-accessibility-trigger:hover,
.site-accessibility-trigger:focus {
  border-color: rgba(26, 79, 160, 0.42);
  background: #f8fbff;
  box-shadow: 0 14px 34px rgba(13, 37, 69, 0.22);
  outline: none;
}

.site-accessibility-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-accessibility-panel {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  width: min(360px, calc(100vw - 82px));
  max-height: calc(100vh - 32px);
  padding: 14px;
  overflow: auto;
  pointer-events: auto;
  transform: translateY(-50%);
  border: 1px solid rgba(13, 37, 69, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(13, 37, 69, 0.22);
}

.site-accessibility-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 12px;
}

.site-accessibility-panel-title {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.site-accessibility-panel-subtitle {
  margin: 4px 0 0;
  color: #5d7398;
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-accessibility-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 37, 69, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
}

.site-accessibility-close:hover,
.site-accessibility-close:focus {
  background: rgba(13, 37, 69, 0.06);
  outline: none;
}

.site-accessibility-grid,
.site-accessibility-actions {
  display: grid;
  gap: 10px;
}

.site-accessibility-actions {
  margin-top: 12px;
}

.site-accessibility-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--navy);
  text-align: left;
  border: 1px solid rgba(26, 79, 160, 0.18);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.site-accessibility-btn:hover,
.site-accessibility-btn:focus {
  border-color: rgba(26, 79, 160, 0.42);
  background: rgba(13, 43, 87, 0.04);
  outline: none;
}

.site-accessibility-btn.is-active {
  color: #ffffff;
  border-color: var(--navy);
  background: var(--navy);
}

.site-accessibility-btn span {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.site-accessibility-btn small {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0.82;
}

/* ===================== EFEITOS FUNCIONAIS ==================== */
/* Mantém os widgets sempre fora dos filtros */
#site-accessibility-tools,
#site-accessibility-tools *,
[vw],
[vw] *,
[vw-access-button],
[vw-plugin-wrapper],
.vw-plugin-wrapper,
.vw-access-button {
  filter: none !important;
}

/* Escala de cinza somente no conteúdo da página, não nos widgets fixos */
html[data-accessibility-grayscale="on"] body>*:not(#site-accessibility-tools):not([vw]) {
  filter: grayscale(1);
}

/* Contraste negativo somente no conteúdo da página, não nos widgets fixos */
html[data-accessibility-negative-contrast="on"] body {
  background: #000000 !important;
}

html[data-accessibility-negative-contrast="on"] body>*:not(#site-accessibility-tools):not([vw]) {
  filter: invert(1) hue-rotate(180deg);
}

html[data-accessibility-negative-contrast="on"] body>*:not(#site-accessibility-tools):not([vw]) img,
html[data-accessibility-negative-contrast="on"] body>*:not(#site-accessibility-tools):not([vw]) video,
html[data-accessibility-negative-contrast="on"] body>*:not(#site-accessibility-tools):not([vw]) iframe,
html[data-accessibility-negative-contrast="on"] body>*:not(#site-accessibility-tools):not([vw]) canvas,
html[data-accessibility-negative-contrast="on"] body>*:not(#site-accessibility-tools):not([vw]) svg {
  filter: invert(1) hue-rotate(180deg);
}

/* Alto contraste sem filter, para não afetar elementos fixos */
html[data-accessibility-high-contrast="on"] {
  --navy: #000000;
  --navy-mid: #000000;
  --blue: #000000;
  --cream: #000000;
  --white: #000000;
  --text: #ffffff;
  --gray-700: #ffffff;
  --gold: #ffff00;
  --gold-lt: #ffff66;
}

html[data-accessibility-high-contrast="on"] body {
  background: #000000 !important;
  color: #ffffff !important;
}

html[data-accessibility-high-contrast="on"] body :where(section, main, article, header, footer, nav, div, p, span, small, strong, label, li, td, th, h1, h2, h3, h4, h5, h6):not(#site-accessibility-tools):not(#site-accessibility-tools *) {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

html[data-accessibility-high-contrast="on"] a:not(#site-accessibility-tools a):not(#site-accessibility-tools *) {
  color: #ffff00 !important;
}

html[data-accessibility-high-contrast="on"] button:not(.site-accessibility-btn):not(.site-accessibility-trigger):not(.site-accessibility-close) {
  color: #ffffff !important;
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

/* Links sublinhados */
html[data-accessibility-underline-links="on"] a:not(#site-accessibility-tools a):not(#site-accessibility-tools *) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Fonte legível */
html[data-accessibility-readable-font="on"] body,
html[data-accessibility-readable-font="on"] body *:not(i):not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: Arial, Verdana, Tahoma, sans-serif !important;
  letter-spacing: 0.01em;
}

/* ===================== PAGE: AGENDA ======================= */
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.agenda-panel {
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(26, 79, 160, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(13, 43, 87, 0.04);
}

/* ===================== CALENDÁRIO ======================== */
.agenda-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 590px;
  margin: 0 auto 12px;
}

.agenda-calendar__title {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
}

.agenda-calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--navy);
  background: rgba(13, 43, 87, 0.06);
  border: 1px solid rgba(26, 79, 160, 0.18);
  border-radius: 10px;
  transition: var(--transition);
}

.agenda-calendar__nav:hover {
  background: rgba(13, 43, 87, 0.12);
}

.agenda-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  max-width: 590px;
  margin: 0 auto 12px;
}

.agenda-calendar__legend:empty {
  display: none;
}

.agenda-calendar__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  border-radius: 999px;
  background: rgba(13, 43, 87, 0.04);
  transition: var(--transition);
}

.agenda-calendar__legend-item.is-dim {
  opacity: 0.42;
}

.agenda-calendar__legend-item.is-active {
  box-shadow: inset 0 0 0 2px rgba(26, 79, 160, 0.22);
  background: rgba(13, 43, 87, 0.08);
}

.agenda-calendar__legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agenda-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 590px;
  margin: 0 auto 6px;
}

.agenda-calendar__weekdays span {
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 800;
  text-align: center;
}

.agenda-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 590px;
  margin: 0 auto;
}

.agenda-calendar__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 52px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(13, 43, 87, 0.03);
  border: 1px solid #d7ddea;
  border-radius: 11px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.agenda-calendar__day:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(13, 43, 87, 0.08);
}

.agenda-calendar__day.is-muted {
  color: #c8d0dd;
  background: #f8f9fb;
}

.agenda-calendar__day.is-today {
  box-shadow: inset 0 0 0 2px var(--navy);
}

.agenda-calendar__day.has-event-single {
  color: var(--white);
}

.agenda-calendar__day.has-event-multi {
  color: var(--navy);
}

.agenda-calendar__day-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.agenda-calendar__day-number {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}

.agenda-calendar__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 8px;
}

.agenda-calendar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95), 0 0 0 2px rgba(30, 64, 175, 0.08);
}

.agenda-calendar__extra {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  color: #355b9c;
}

/* ===================== EVENTOS =========================== */
.agenda-upcoming__head {
  margin-bottom: 12px;
}

.agenda-upcoming__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.agenda-upcoming__empty {
  padding: 12px;
  color: var(--gray-700);
  font-size: 0.84rem;
  background: rgba(13, 43, 87, 0.03);
  border: 1px dashed rgba(26, 79, 160, 0.18);
  border-radius: 12px;
}

.agenda-upcoming__empty[hidden] {
  display: none !important;
}

.agenda-upcoming__list {
  display: grid;
  gap: 9px;
}

.agenda-upcoming__card {
  overflow: hidden;
  background: rgba(13, 43, 87, 0.03);
  border: 1px solid #d7ddea;
  border-radius: 12px;
}

.agenda-upcoming__card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px;
  text-align: left;
  background: transparent;
  border: none;
}

.agenda-upcoming__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 11px;
  background: rgba(26, 79, 160, 0.12);
}

.agenda-upcoming__info {
  min-width: 0;
  flex: 1;
}

.agenda-upcoming__event-title {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.agenda-upcoming__event-time {
  color: #355b9c;
  font-size: 0.76rem;
  line-height: 1.4;
}

.agenda-upcoming__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.agenda-upcoming__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 3px 7px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}

.agenda-upcoming__caret {
  color: #355b9c;
  transition: transform var(--transition);
}

.agenda-upcoming__card.is-open .agenda-upcoming__caret {
  transform: rotate(180deg);
}

.agenda-upcoming__details {
  padding: 0 10px 10px 58px;
}

.agenda-upcoming__details[hidden] {
  display: none !important;
}

.agenda-upcoming__details p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.81rem;
  line-height: 1.6;
}

.agenda-upcoming__details p+p {
  margin-top: 8px;
}

.agenda-upcoming__location {
  margin-bottom: 8px !important;
  color: #355b9c !important;
  font-weight: 600;
}

.agenda-upcoming__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.agenda-upcoming__link:hover {
  text-decoration: none;
}

.agenda-upcoming__pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.agenda-upcoming__pagination[hidden] {
  display: none !important;
}

.agenda-upcoming__page {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  color: #1f4f9e;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(13, 43, 87, 0.04);
  border: 1px solid rgba(26, 79, 160, 0.22);
  border-radius: 10px;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.agenda-upcoming__page:hover:not(:disabled) {
  background: rgba(13, 43, 87, 0.08);
  border-color: rgba(26, 79, 160, 0.34);
}

.agenda-upcoming__page.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: rgba(26, 79, 160, 0.34);
}

.agenda-upcoming__page:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.agenda-upcoming__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  color: #5f77a5;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ===================== RESPONSIVO ======================== */
@media (max-width: 1199px) {
  .agenda-layout {
    grid-template-columns: 1fr;
  }

  .agenda-calendar__header,
  .agenda-calendar__legend,
  .agenda-calendar__weekdays,
  .agenda-calendar__grid {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .agenda-panel {
    padding: 14px;
  }

  .agenda-calendar__title {
    font-size: 1.15rem;
  }

  .agenda-calendar__grid,
  .agenda-calendar__weekdays {
    gap: 5px;
  }

  .agenda-calendar__day {
    min-height: 42px;
    border-radius: 9px;
    font-size: 0.82rem;
  }

  .agenda-calendar__day-number {
    font-size: 0.82rem;
  }

  .agenda-calendar__dot {
    width: 4px;
    height: 4px;
  }

  .agenda-upcoming__title {
    font-size: 1.05rem;
  }

  .agenda-upcoming__card-head {
    align-items: center;
    padding: 10px;
  }

  .agenda-upcoming__details {
    padding: 0 10px 10px 10px;
  }
}

/* ============================================================================
   PUBLIC EQUIPES / TEAM CARDS / ESCOLAS
============================================================================ */

.team-cards-group {
  row-gap: 24px;
  margin-bottom: 1rem;
}

.team-card {
  position: relative;
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(13, 37, 69, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(13, 37, 69, 0.06);
}

.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 37, 69, 0.14);
  box-shadow: 0 10px 20px rgba(13, 37, 69, 0.08);
}

.team-card__body {
  height: 100%;
  background: var(--white);
}

.team-card__head {
  position: relative;
  min-height: 76px;
  padding: 14px 16px;
  background: rgba(13, 43, 87, 0.08);
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(26, 79, 160, 0.22);
}

.team-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: calc(100% - 150px);
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card__avatar-wrap {
  position: absolute;
  top: 76px;
  left: 18px;
  z-index: 4;
  width: 102px;
  height: 102px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef2f7, #dce5f0);
  border: 5px solid var(--white);
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(13, 37, 69, 0.12);
}

.team-card__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #eef2f7, #dce5f0);
}

.team-card__avatar-fallback.is-visible {
  display: flex;
}

.team-card__content {
  padding: 18px;
  background: var(--white);
}

.team-card__identity {
  min-height: 44px;
  padding-left: 124px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.team-card__title {
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
}

.team-card__info-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.team-card__info-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(13, 37, 69, 0.08);
}

.team-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(13, 37, 69, 0.06);
  color: var(--navy);
  font-size: 0.88rem;
}

.team-card__meta {
  min-width: 0;
}

.team-card__label {
  display: block;
  margin-bottom: 2px;
  color: var(--gray-500);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.team-card__value {
  display: block;
  color: var(--gray-700);
  font-size: 0.90rem;
  line-height: 1.6;
  word-break: break-word;
}

.team-card__value a {
  color: var(--blue);
  text-decoration: none !important;
  transition: color var(--transition);
}

.team-card__value a:hover {
  color: var(--navy);
}

/* Paginação específica de equipes */
.teamcard-nav,
.team-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.teamcard-nav[hidden],
.team-pagination[hidden] {
  display: none !important;
}

.teamcard-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.teamcard-first,
.teamcard-prev,
.teamcard-next,
.teamcard-last,
.teamcard-pages button,
.team-pagination__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 8px;
  margin: 0;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  background: rgba(13, 43, 87, 0.08);
  border: 1px solid rgba(26, 79, 160, 0.44);
  border-radius: 2px;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.teamcard-first:hover:not(:disabled),
.teamcard-prev:hover:not(:disabled),
.teamcard-next:hover:not(:disabled),
.teamcard-last:hover:not(:disabled),
.teamcard-pages button:hover:not(:disabled),
.team-pagination__button:hover:not(:disabled) {
  color: var(--navy);
  background: rgba(13, 43, 87, 0.14);
  border-color: rgba(26, 79, 160, 0.58);
}

.teamcard-pages button.is-active,
.team-pagination__button.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: rgba(26, 79, 160, 0.22);
}

.teamcard-first:disabled,
.teamcard-prev:disabled,
.teamcard-next:disabled,
.teamcard-last:disabled,
.teamcard-pages button:disabled,
.team-pagination__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.teamcard-pages span,
.team-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 28px;
  color: #5f77a5;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Responsivo */
@media (max-width: 767px) {
  .team-card__head {
    min-height: 66px;
    padding: 12px 14px;
  }

  .team-card__badge {
    top: 12px;
    right: 12px;
    max-width: calc(100% - 132px);
    font-size: 0.70rem;
  }

  .team-card__avatar-wrap {
    top: 66px;
    left: 14px;
    width: 90px;
    height: 90px;
  }

  .team-card__content {
    padding: 16px 14px 16px;
  }

  .team-card__identity {
    min-height: 72px;
    padding-left: 108px;
  }

  .team-card__title {
    font-size: 1.08rem;
  }
}

@media (max-width: 575px) {
  .team-card__content {
    padding: 14px 12px;
  }

  .team-card__identity {
    min-height: 66px;
    padding-left: 96px;
  }

  .team-card__avatar-wrap {
    width: 80px;
    height: 80px;
  }

  .team-card__title {
    font-size: 0.98rem;
  }

  .team-card__value {
    font-size: 0.85rem;
  }
}

/* ============================================================================
   DYNAMIC PUBLIC PAGES
   ============================================================================ */

/* ===================== BLOCOS / SEÇÕES ===================== */
.public-block+.public-block {
  margin-top: 24px;
}

.public-block>header {
  margin: 0 0 10px;
}

.public-block__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  padding: 10px 0 12px;
  margin-bottom: 1rem;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 79, 160, 0.24);
  transition: var(--transition);
}

.public-block .section-title,
.public-block__title {
  margin: 0;
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
}

.public-block__subtitle {
  margin: 6px 0 0;
  color: #5d7398;
  font-size: 0.86rem;
  line-height: 1.55;
}

.public-block__toggle-text {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-block__body {
  display: grid;
  gap: 18px;
}

/* ===================== MODELOS ===================== */
.public-model {
  display: grid;
  gap: 12px;
}

.public-model__title {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.public-model__subtitle {
  margin: 4px 0 0;
  color: #5d7398;
  font-size: 0.82rem;
}

/* ===================== GRUPOS / ÁRVORE ===================== */
.public-block__files,
.public-block__tree,
.public-files-group,
.public-folder,
.public-folder__files,
.public-folder__tree,
.pastas-tree {
  display: grid;
}

.public-block__files,
.public-block__tree {
  gap: 5px;
}

.public-block__tree,
.pastas-tree {
  gap: 10px;
}

.public-files-group {
  gap: 6px;
}

/* ===================== ARQUIVOS ===================== */
.public-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 79, 160, 0.16);
  border-radius: 8px;
  text-decoration: none;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.public-file:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(26, 79, 160, 0.3);
}

.public-file__main {
  min-width: 0;
}

.public-file__name {
  display: block;
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  word-break: break-word;
  text-decoration: none;
}

.public-file__name:hover {
  color: var(--blue);
}

.public-file__description,
.public-file__meta {
  display: block;
  color: #5d7398;
  font-size: 0.8rem;
  line-height: 1.45;
  word-break: break-word;
}

.public-file__description[role="link"] {
  cursor: pointer;
}

.public-file__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* ===================== BOTÕES ===================== */
.public-file__button,
.public-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none !important;
  background: transparent;
  border: 1px solid rgba(26, 79, 160, 0.32);
  border-radius: 6px;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    opacity var(--transition);
}

.public-file__button:hover,
.public-btn:hover {
  color: var(--navy);
  background: rgba(13, 43, 87, 0.06);
  border-color: rgba(26, 79, 160, 0.52);
  text-decoration: none !important;
}

.public-file__button.is-disabled,
.public-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.public-btn--primary {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.public-btn--primary:hover {
  color: var(--white);
  background: var(--blue);
}

/* ===================== PASTAS ===================== */
.public-folder {
  gap: 10px;
}

.public-folder__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: rgba(13, 43, 87, 0.04);
  border: 1px solid rgba(26, 79, 160, 0.22);
  border-radius: 8px;
  transition: var(--transition);
}

.public-folder.is-open>.public-folder__toggle {
  background: rgba(13, 43, 87, 0.06);
  border-color: rgba(26, 79, 160, 0.3);
}

.public-folder__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.public-folder__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--navy);
  background: rgba(13, 43, 87, 0.08);
  border-radius: 8px;
}

.public-folder__name {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.public-folder__meta {
  display: block;
  margin-top: 3px;
  color: #5d7398;
  font-size: 0.76rem;
  line-height: 1.4;
}

/* ===================== CARET DA PASTA ===================== */
.public-folder__caret {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--navy);
  background: rgba(13, 43, 87, 0.12);
  border-radius: 10px;
  transform: none;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.public-folder__caret>i,
.public-folder__caret .fa,
.public-folder__caret .fa-solid,
.public-folder__caret .fa-regular,
.public-folder__caret .fa-brands {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform var(--transition);
}

.public-folder.is-open>.public-folder__toggle .public-folder__caret {
  transform: none;
  background: rgba(13, 43, 87, 0.16);
}

.public-folder.is-open>.public-folder__toggle .public-folder__caret>i,
.public-folder.is-open>.public-folder__toggle .public-folder__caret .fa,
.public-folder.is-open>.public-folder__toggle .public-folder__caret .fa-solid,
.public-folder.is-open>.public-folder__toggle .public-folder__caret .fa-regular,
.public-folder.is-open>.public-folder__toggle .public-folder__caret .fa-brands {
  transform: rotate(180deg);
}

/* ===================== CONTEÚDO DA ÁRVORE ===================== */
.public-folder__content {
  position: relative;
  margin-left: 14px;
  margin-top: 2px;
  margin-bottom: 8px;
  padding-left: var(--tree-indent);
  --tree-line-height: 0px;
}

.public-folder__content::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 0;
  height: var(--tree-line-height);
  border-left: 1px dashed rgba(26, 79, 160, 0.62);
  pointer-events: none;
}

.public-folder__files,
.public-folder__tree {
  gap: var(--tree-gap);
}

.public-folder__files>.public-file,
.public-folder__tree>.public-folder {
  position: relative;
  margin-left: 0;
}

.public-folder__files>.public-file::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--tree-arm));
  top: var(--tree-node-center);
  width: var(--tree-arm);
  height: 0;
  border-top: 1px dashed rgba(26, 79, 160, 0.62);
  pointer-events: none;
}

.public-folder__tree>.public-folder>.public-folder__toggle {
  position: relative;
}

.public-folder__tree>.public-folder>.public-folder__toggle::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--tree-arm));
  top: var(--tree-node-center);
  width: var(--tree-arm);
  height: 0;
  border-top: 1px dashed rgba(26, 79, 160, 0.62);
  pointer-events: none;
}

/* ===================== RICHTEXT / TEXTO ===================== */
.public-richtext,
.public-text-search-block {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.8;
}

.public-richtext :where(p, ul, ol, table) {
  margin-bottom: 1rem;
}

.public-richtext :where(h1, h2, h3, h4, h5, h6) {
  color: var(--navy);
  font-weight: 800;
}

.public-richtext a {
  color: var(--blue);
  font-weight: 700;
}

/* ===================== CARDS DE RESULTADO ===================== */
.public-result-grid {
  margin-top: 0;
}

.public-result-card {
  height: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 79, 160, 0.16);
  border-radius: 10px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.public-result-card:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(26, 79, 160, 0.3);
  box-shadow: 0 10px 24px rgba(13, 43, 87, 0.06);
}

.public-result-card__media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.public-result-card__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.public-result-card__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--navy);
  background: rgba(13, 43, 87, 0.06);
  border: 1px solid rgba(26, 79, 160, 0.14);
  border-radius: 14px;
  font-size: 1.35rem;
}

.public-result-card__title {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word;
}

.public-result-card__text {
  margin: 8px 0 0;
  color: #5d7398;
  font-size: 0.86rem;
  line-height: 1.6;
  word-break: break-word;
}

/* ===================== INFO LIST ===================== */
.public-info-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.public-info-item {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(13, 43, 87, 0.04);
  border: 1px solid rgba(26, 79, 160, 0.14);
  border-radius: 10px;
}

.public-info-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(26, 79, 160, 0.14);
  border-radius: 8px;
}

.public-info-item__label {
  display: block;
  margin: 0 0 4px;
  color: #5d7398;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.public-info-item__value {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.public-info-item a.public-info-item__value {
  text-decoration: none !important;
}

.public-info-item a.public-info-item__value:hover {
  color: var(--blue);
}

/* ===================== MODAL PÚBLICO ===================== */
.public-modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
}

.public-modal[hidden] {
  display: none !important;
}

.public-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 39, 0.58);
}

.public-modal__stage {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.public-modal__dialog {
  width: min(100%, 720px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(26, 79, 160, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(6, 18, 39, 0.28);
}

.public-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(26, 79, 160, 0.14);
}

.public-modal__title {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.public-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--navy);
  background: rgba(13, 43, 87, 0.08);
  border: 1px solid rgba(26, 79, 160, 0.2);
  border-radius: 10px;
}

.public-modal__body {
  max-height: 70vh;
  padding: 18px;
  overflow: auto;
}

/* ===================== TABELAS ===================== */
.public-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 79, 160, 0.16);
  border-radius: 10px;
}

.public-table {
  min-width: 720px;
  margin: 0;
  color: var(--text);
}

.public-table thead th {
  color: var(--navy);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(13, 43, 87, 0.06);
}

.public-table td,
.public-table th {
  vertical-align: middle;
  border-color: rgba(26, 79, 160, 0.14);
}

.public-table-cell,
.public-table-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.public-table-cell__icon {
  flex: 0 0 auto;
  color: var(--navy);
  line-height: 1;
}

.public-table-cell__label {
  min-width: 0;
  line-height: 1.35;
}

.public-table .public-btn,
.public-table-action {
  white-space: normal;
  text-align: left;
}

.public-table-action.public-btn {
  min-height: 34px;
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 991px) {
  .public-page {
    --tree-arm: 14px;
    --tree-indent: 22px;
    --tree-node-center: 28px;
    --tree-gap: 10px;
  }

  .page-search,
  .public-search,
  .news-search {
    grid-template-columns: 1fr;
  }

  .page-search__clear,
  .public-search__clear,
  .news-search__clear {
    width: 100%;
  }

  .public-folder__content::before {
    left: 6px;
  }

  .public-folder__icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 767px) {
  .page-breadcrumb-wrap {
    padding-top: 14px;
  }

  .page-breadcrumb {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .page-breadcrumb__item {
    font-size: 0.82rem;
  }

  .page-hero,
  .public-hero,
  .news-hero,
  .agenda-hero {
    padding: 40px 0 46px;
  }

  .page-content,
  .public-page,
  .news-page,
  .news-detail-page,
  .agenda-page {
    padding: 36px 0 56px;
  }

  .public-page {
    --tree-arm: 10px;
    --tree-indent: 14px;
    --tree-node-center: 26px;
    --tree-gap: 8px;
  }

  .public-folder__content {
    margin-left: 8px;
    padding-left: var(--tree-indent);
  }

  .public-folder__content::before {
    left: 4px;
  }

  .public-folder__files>.public-file::after,
  .public-folder__tree>.public-folder>.public-folder__toggle::before {
    width: var(--tree-arm);
    left: calc(-1 * var(--tree-arm));
    top: var(--tree-node-center);
  }

  .public-file {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .public-file__actions {
    justify-content: flex-start;
  }

  .public-folder__toggle {
    gap: 10px;
    padding: 11px 12px;
  }

  .public-folder__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .public-folder__name,
  .public-file__name {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .public-file__description {
    font-size: 0.8rem;
  }
}

@media (max-width: 575px) {
  .public-page {
    --tree-arm: 8px;
    --tree-indent: 10px;
    --tree-node-center: 24px;
    --tree-gap: 6px;
  }

  .public-folder__content {
    margin-left: 4px;
    padding-left: var(--tree-indent);
  }

  .public-folder__content::before {
    left: 2px;
  }

  .public-file,
  .public-folder__toggle {
    padding: 12px;
  }

  .public-block__toggle {
    padding: 10px 0 12px;
  }

  .public-folder__icon {
    width: 32px;
    height: 32px;
  }

  .public-folder__name,
  .public-file__name {
    font-size: 0.85rem;
  }

  .public-file__description {
    font-size: 0.78rem;
  }
}

/* ===================== CARET DAS SEÇÕES ===================== */
/* O quadrado fica fixo. Quem gira é somente o ícone interno. */

.public-block__caret {
  transform: none;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.public-block__caret>i,
.public-block__caret .fa,
.public-block__caret .fa-solid,
.public-block__caret .fa-regular,
.public-block__caret .fa-brands {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform var(--transition);
}

.public-block__toggle[aria-expanded="true"] .public-block__caret {
  transform: none;
  background: rgba(13, 43, 87, 0.16);
}

.public-block__toggle[aria-expanded="true"] .public-block__caret>i,
.public-block__toggle[aria-expanded="true"] .public-block__caret .fa,
.public-block__toggle[aria-expanded="true"] .public-block__caret .fa-solid,
.public-block__toggle[aria-expanded="true"] .public-block__caret .fa-regular,
.public-block__toggle[aria-expanded="true"] .public-block__caret .fa-brands {
  transform: rotate(180deg);
}

.public-block__toggle[aria-expanded="false"] .public-block__caret>i,
.public-block__toggle[aria-expanded="false"] .public-block__caret .fa,
.public-block__toggle[aria-expanded="false"] .public-block__caret .fa-solid,
.public-block__toggle[aria-expanded="false"] .public-block__caret .fa-regular,
.public-block__toggle[aria-expanded="false"] .public-block__caret .fa-brands {
  transform: rotate(0deg);
}

/* ===================== FOOTER ============================ */
#footer {
  padding-top: 60px;
  color: rgba(255, 255, 255, 0.75);
  background: var(--navy);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

#footer .brand-icon {
  color: var(--gold-lt);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
}

#footer .brand-title {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}

#footer .brand-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-divider-gold {
  width: 36px;
  height: 3px;
  margin: 12px 0;
  border-radius: 2px;
  background: var(--gold);
}

.footer-description {
  max-width: 100%;
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.7;
}

.footer-title {
  margin-bottom: 18px;
  color: var(--gold-lt);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-list a i {
  width: 14px;
  color: var(--gold);
  font-size: 0.78rem;
}

.footer-list a:hover {
  color: var(--gold-lt);
}

.footer-logo {
  height: 64px;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.75);
  background: var(--navy-mid);
  font-size: 1rem;
  line-height: 0.5rem;
  text-decoration: none;
  border-radius: 8px;
}

.footer-social a:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.footer-bottom {
  margin-top: 48px;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold-lt);
}

/* ===================== RESPONSIVO ======================== */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 12px 14px !important;
  }

  .hero-stats {
    gap: 20px;
  }

  .contact-panel,
  .contact-form {
    padding: 30px 24px;
  }
}

@media (max-width: 767px) {
  #hero {
    padding: 50px 0 60px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-link {
    width: 100%;
  }

  #contact {
    padding: 60px 0;
  }

  .contact-summary {
    grid-template-columns: 1fr;
  }

}