/* ====================================================================
   DEEST - Departamento de Estatística / UFOP
   Modern Visual Identity & Design System
   Paleta: Vinho UFOP (#8F142E), Azul DEEST (#14224C), Ouro DEEST (#EAB308)
   ==================================================================== */

:root {
  --ufop-red: #8f142e;
  --ufop-red-dark: #6e0e23;
  --ufop-red-light: #a8203d;
  --ufop-gray: #4a5568;
  
  --deest-blue: #13214a;
  --deest-blue-dark: #0b1430;
  --deest-blue-light: #1e3575;
  --deest-blue-subtle: #edf2f7;
  
  --deest-gold: #f59e0b;
  --deest-gold-light: #fef3c7;
  --deest-gold-hover: #d97706;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Global Justified Text for all content blocks (sem quebrar/dividir palavras entre linhas) */
p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal;
}

p, .card-text, .profile-section-card p, .profile-section-card li, .card ul li, .staff-meta {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal;
}

a {
  color: var(--deest-blue-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--ufop-red);
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevenção de quebra de layout por tabelas e códigos no mobile */
table {
  max-width: 100%;
}

.table-responsive,
.custom-page-content table,
.card table,
article table,
main table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre, code {
  max-width: 100%;
  overflow-x: auto;
  word-break: break-all;
}

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Bar: UFOP institucional + Language Switcher */
.top-bar {
  background: var(--deest-blue-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--ufop-red);
  padding: 0.4rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-links a {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-links a:hover {
  color: var(--deest-gold);
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
  background: none;
  border: none;
  color: #e2e8f0;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-text {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.lang-sub {
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.flag-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lang-btn.active {
  background: var(--ufop-red);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  color: var(--deest-gold);
}

/* Header Main */
.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid var(--ufop-red);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.logo-ufop {
  height: 74px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.brand-divider {
  width: 1.5px;
  height: 60px;
  background-color: #cbd5e1;
  flex-shrink: 0;
}

.logo-deest {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text h1 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--deest-blue);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.35;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav > ul > li {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deest-blue);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--ufop-red);
  background: rgba(143, 20, 46, 0.05);
}

/* Ajuste de sensibilidade do dropdown: só abre ao passar o mouse em cima do link do menu principal */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

/* O dropdown torna-se ativo e interativo */
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  background: var(--deest-blue-subtle);
  color: var(--ufop-red);
  padding-left: 1.35rem;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--deest-blue);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('../images/banner-texture.svg') right center / auto 100% no-repeat,
              linear-gradient(135deg, var(--deest-blue-dark) 0%, var(--deest-blue) 60%, var(--ufop-red-dark) 100%);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(234, 179, 8, 0.2);
  color: var(--deest-gold);
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h2 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h2 span {
  color: var(--deest-gold);
}

.hero p {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 620px;
  text-align: justify;
  text-justify: inter-word;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--deest-gold);
  color: var(--deest-blue-dark);
}

.btn-primary:hover {
  background: var(--deest-gold-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-ufop {
  background: var(--ufop-red);
  color: #ffffff;
}

.btn-ufop:hover {
  background: var(--ufop-red-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--deest-blue);
  color: var(--deest-blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--deest-blue);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* Hero Stats Card */
.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  border-left: 3px solid var(--deest-gold);
  padding-left: 1rem;
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Page Banner (For inner pages) */
.page-banner {
  background: url('../images/page-banner-texture.svg') right center / auto 100% no-repeat,
              linear-gradient(135deg, var(--deest-blue) 0%, var(--ufop-red-dark) 100%);
  color: #ffffff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.breadcrumbs a {
  color: #f1f5f9;
}

.breadcrumbs a:hover {
  color: var(--deest-gold);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: #f1f5f9;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ufop-red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--deest-blue);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center !important;
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(19, 33, 74, 0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(19, 33, 74, 0.08);
  color: var(--deest-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deest-blue);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  text-align: justify;
  text-justify: inter-word;
}

/* Staff & Faculty Cards */
.staff-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ufop-red);
}

.staff-header {
  background: linear-gradient(135deg, var(--deest-blue) 0%, var(--deest-blue-dark) 100%);
  padding: 1.75rem 1.5rem 1rem;
  color: #ffffff;
  position: relative;
  text-align: center;
}

.staff-avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--ufop-red);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  border: 3px solid var(--deest-gold);
  box-shadow: var(--shadow-md);
}

.staff-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.staff-role {
  font-size: 0.825rem;
  color: var(--deest-gold);
  font-weight: 600;
}

.staff-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  font-size: 0.9rem;
}

.staff-meta {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.staff-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.staff-meta-item svg {
  flex-shrink: 0;
  color: var(--ufop-red);
  margin-top: 3px;
}

.staff-links {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.btn-profile {
  width: 100%;
  background: var(--deest-blue);
  color: #ffffff;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-profile:hover {
  background: var(--ufop-red);
  color: #ffffff;
}

/* Teacher Personal Page Specifics */
.profile-hero {
  background: url('../images/page-banner-texture.svg') right center / auto 100% no-repeat,
              linear-gradient(135deg, var(--deest-blue-dark) 0%, var(--deest-blue) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--deest-gold);
  overflow: hidden;
}

.profile-hero-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.profile-avatar-lg {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--ufop-red);
  font-size: 2.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--deest-gold);
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
}

.profile-info h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-info .profile-title {
  font-size: 1.1rem;
  color: var(--deest-gold);
  font-weight: 600;
  margin-top: 0.25rem;
}

.profile-info .profile-dept {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-top: 0.25rem;
}

.profile-quick-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.profile-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-contact-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--deest-gold);
}

.profile-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.profile-section-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.profile-section-card h3 {
  font-size: 1.35rem;
  color: var(--deest-blue);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.profile-section-card h3 svg {
  color: var(--ufop-red);
}

/* Notice box for teachers to edit */
.teacher-edit-badge {
  background: #ecfdf5;
  border: 1px dashed #10b981;
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Labs & Calendar embed */
.calendar-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.calendar-header {
  padding: 1.25rem 1.5rem;
  background: var(--deest-blue-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-frame {
  width: 100%;
  height: 650px;
  border: none;
}




/* Viewport de rolagem vertical para agendas */
.cal-scroll-viewport {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.cal-scroll-viewport iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Footer */
/* Footer overrides: left-align all footer text */
.site-footer p,
.site-footer li,
.site-footer span,
.footer-links a {
  text-align: left !important;
}

.site-footer {
  background: var(--deest-blue-dark);
  color: #ffffff;
  padding: 4.5rem 0 2.5rem;
  border-top: 4px solid var(--ufop-red);
}

.footer-hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo-side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-side img {
  height: 220px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
  transition: var(--transition);
}

.footer-logo-side img:hover {
  transform: scale(1.03);
}

.footer-content-center {
  flex: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.25fr;
  gap: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--deest-gold);
}

.footer-col p {
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
  color: #ffffff !important;
  text-align: left;
}

.footer-col strong {
  color: #ffffff !important;
}

.footer-col a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--deest-gold) !important;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #ffffff !important;
  font-size: 0.925rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--deest-gold) !important;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #ffffff !important;
}

.footer-bottom div, .footer-bottom span {
  color: #ffffff !important;
}

.footer-bottom a {
  color: #ffffff !important;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--deest-gold) !important;
}

/* Search bar on faculty page */
.faculty-search-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  box-shadow: var(--shadow-sm);
}

.faculty-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  font-family: inherit;
}

/* Responsive */
@media (max-width: 1100px) {
  .footer-hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  .footer-logos-mobile {
    display: flex;
    justify-content: center;
    gap: 3rem;
  }
  .footer-content-center {
    grid-template-columns: repeat(2, 1fr);
    text-align: justify;
  }
  .footer-col h4::after {
    left: 0;
  }
}

/* ====================================================================
   RESPONSIVIDADE: CABEÇALHO COMPACTO EM DISPOSITIVOS MÓVEIS / TABLETS
   Quando o espaço (largura) for pouco, não apresenta o nome inteiro
   do departamento, da UFOP e do ICEB, mas somente as logos e o
   botão de abrir menus (☰).
   ==================================================================== */
@media (max-width: 992px) {
  /* Oculta os textos do cabeçalho institucional (DEEST, ICEB, UFOP) */
  .brand-text {
    display: none !important;
  }

  .brand-wrapper {
    gap: 0 !important;
    flex-shrink: 0;
  }

  /* Cabeçalho enxuto: logos à esquerda e botão de menu à direita, sem quebra de linha */
  .header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 0.65rem 0 !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .brand-logos {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  /* Dimensões adaptadas das logos para visual harmônico e leve */
  .logo-ufop {
    height: 56px !important;
    width: auto !important;
  }

  .brand-divider {
    height: 44px !important;
    margin: 0 0.15rem !important;
  }

  .logo-deest {
    height: 62px !important;
    width: auto !important;
  }

  /* Botão de abrir/fechar menus (Hamburger) */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--deest-blue);
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus {
    color: var(--ufop-red);
    border-color: var(--ufop-red);
    background: rgba(143, 20, 46, 0.05);
  }

  /* Menu de navegação retrátil no mobile */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 3px solid var(--ufop-red);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0 1.25rem;
    z-index: 1000;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    display: block !important;
    animation: slideDownMenu 0.22s ease-out forwards;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1.25rem;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .main-nav > ul > li:last-child {
    border-bottom: none;
  }

  .main-nav .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.85rem 0.5rem;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
    white-space: normal;
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--ufop-red);
    background: var(--bg-main);
    padding: 0.35rem 0 0.35rem 0.75rem;
    margin: 0.25rem 0 0.5rem 0.5rem;
    border-radius: var(--radius-sm);
    pointer-events: auto;
  }

  .has-dropdown.active .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu li {
    width: 100%;
  }

  .dropdown-menu li a {
    display: block;
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
  }

  .dropdown-menu li a:hover {
    background: #ffffff;
    color: var(--ufop-red);
  }

  /* Ajustes gerais de grid e alinhamento */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    margin-top: 1rem;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .news-grid-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }
  .section {
    padding: 3rem 0;
  }
  .page-banner {
    padding: 2.25rem 0;
  }
  .page-banner h1 {
    font-size: 1.65rem;
    word-break: break-word;
  }
  .footer-content-center {
    grid-template-columns: 1fr;
  }
  .profile-hero-content {
    flex-direction: column;
    text-align: center;
  }
  .profile-quick-contacts {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Mais espaço útil para celulares menores */
  .container {
    padding: 0 1rem;
  }

  .top-bar {
    font-size: 0.78rem;
    padding: 0.35rem 0;
  }

  .top-bar .container {
    justify-content: center;
    gap: 0.35rem 0.75rem;
  }

  .top-bar-links {
    gap: 0.75rem;
  }

  /* Logos ajustadas proporcionalmente para celulares estreitos */
  .logo-ufop {
    height: 46px !important;
  }

  .brand-divider {
    height: 36px !important;
    margin: 0 0.05rem !important;
  }

  .logo-deest {
    height: 50px !important;
  }

  .brand-logos {
    gap: 0.55rem !important;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }

  /* Evitar que títulos e textos longos estourem bordas */
  h1 { font-size: 1.6rem; }
  h2, .section-title { font-size: 1.4rem; }
  .hero h2 { font-size: 1.65rem; }
  .hero p { font-size: 0.98rem; }
  .page-banner h1 { font-size: 1.4rem; }
  .section { padding: 2.25rem 0; }

  /* Botões empilhados */
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-card {
    padding: 1.25rem 1rem;
  }

  .hero-stats-grid {
    gap: 1rem;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  /* Cards e Grids adaptáveis */
  .grid-4, .ds-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .news-filter-wrapper {
    padding: 16px 12px;
  }

  .stat-chart-body {
    padding: 14px 10px;
  }

  .profile-hero {
    padding: 2.5rem 0;
  }

  .profile-avatar-lg {
    width: 90px;
    height: 90px;
    font-size: 2rem;
  }

  .profile-info h1 {
    font-size: 1.4rem;
  }

  .profile-section-card {
    padding: 1.25rem 1rem;
  }

  .footer-logos-mobile {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}



/* ====================================================================
   PARALLAX ABOUT SECTION
   ==================================================================== */
.parallax-about {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  min-height: 600px;
  border-top: 4px solid var(--ufop-red);
}

.parallax-bg {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(19, 33, 74, 0.82) 0%,
    rgba(11, 20, 48, 0.78) 40%,
    rgba(143, 20, 46, 0.45) 100%
  );
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

.parallax-about .section-tag {
  color: var(--deest-gold) !important;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
}

.parallax-about .section-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.parallax-about .section-desc {
  color: rgba(255, 255, 255, 0.9) !important;
}

.parallax-text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-parallax {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--deest-gold);
  color: var(--deest-blue) !important;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-parallax:hover {
  background: var(--deest-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.parallax-card {
  border-top: 4px solid var(--ufop-red) !important;
  background: #ffffff !important;
  backdrop-filter: none;
  box-shadow: var(--shadow-xl) !important;
}

/* ====================================================================
   SCROLL ANIMATIONS
   ==================================================================== */
.scroll-anim {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-anim-fade-down {
  transform: translateY(-60px);
}

.scroll-anim-from-left {
  transform: translateX(-120px);
}

.scroll-anim-from-right {
  transform: translateX(120px);
}

.scroll-anim-from-bottom {
  transform: translateY(80px);
}

/* Once visible, snap into place */
.scroll-anim.scroll-visible {
  opacity: 1;
  transform: translate(0, 0) !important;
}

/* Responsive parallax */
@media (max-width: 768px) {
  .parallax-about {
    padding: 3rem 0;
    min-height: auto;
  }
  .parallax-bg {
    top: -10%;
    height: 120%;
  }
  .scroll-anim-from-left,
  .scroll-anim-from-right,
  .scroll-anim-from-bottom {
    transform: translateY(60px);
  }
}


/* ============================================================
   Recursos e Modal de Acessibilidade (Estilo STEMsão / UFOP)
   ============================================================ */

/* Classes aplicadas na tag <html> para acessibilidade */
html.font-step-1 { font-size: 110% !important; }
html.font-step-2 { font-size: 120% !important; }
html.font-step-3 { font-size: 130% !important; }
html.font-step-4 { font-size: 140% !important; }

/* ============================================================
   Acessibilidade: Modo Alto Contraste (WCAG AAA Profissional)
   Fundo escuro profundo (#000000 / #121212) com texto em altíssimo contraste,
   sem filtros destrutivos e com preservação e destaque das marcas/logos.
============================================================ */
/* ============================================================
   Acessibilidade: Modo Alto Contraste (WCAG AAA Profissional)
   Fundo escuro profundo (#000000 / #121212) com texto em altíssimo contraste,
   sem filtros destrutivos e com preservação e destaque das marcas/logos.
============================================================ */
html.high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html.high-contrast body {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
}

/* Header, Topbar, Rodapé e Navegação */
html.high-contrast .site-header,
html.high-contrast .top-bar,
html.high-contrast .site-footer {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffd700 !important;
}

/* Logos no cabeçalho em alto contraste: sem caixa branca. 
   Troca a logo do DEEST para a versão clara/negativo (logo-deest-footer.png) e preserva logo UFOP */
html.high-contrast .brand-logos {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.high-contrast .logo-deest {
  content: url('../images/logo-deest-footer.png') !important;
}

html.high-contrast .brand-divider {
  background-color: #ffd700 !important;
}

html.high-contrast .brand-text h1,
html.high-contrast .brand-text span {
  color: #ffffff !important;
}

/* Menus de navegação */
html.high-contrast .nav-link {
  color: #ffffff !important;
}

html.high-contrast .nav-link * {
  color: inherit !important;
}

/* Menu principal selecionado (active), em hover ou quando o dropdown está aberto */
html.high-contrast .nav-link:hover,
html.high-contrast .nav-link.active,
html.high-contrast .has-dropdown:hover > .nav-link,
html.high-contrast .has-dropdown:focus-within > .nav-link {
  color: #000000 !important;
  background-color: #ffd700 !important;
  font-weight: 800 !important;
}

html.high-contrast .nav-link:hover *,
html.high-contrast .nav-link.active *,
html.high-contrast .has-dropdown:hover > .nav-link *,
html.high-contrast .has-dropdown:focus-within > .nav-link * {
  color: #000000 !important;
}

html.high-contrast .dropdown-menu {
  background: #000000 !important;
  border: 2px solid #ffd700 !important;
}

html.high-contrast .dropdown-menu a {
  color: #ffffff !important;
}

html.high-contrast .dropdown-menu a:hover,
html.high-contrast .dropdown-menu a.active {
  background: #ffd700 !important;
  color: #000000 !important;
  font-weight: 800 !important;
}

html.high-contrast .dropdown-menu a:hover *,
html.high-contrast .dropdown-menu a.active * {
  color: #000000 !important;
}

/* Botão Mobile e Gaveta de Navegação em Alto Contraste */
html.high-contrast .mobile-nav-toggle {
  background: #000000 !important;
  color: #ffd700 !important;
  border: 2px solid #ffd700 !important;
}
html.high-contrast .mobile-nav-toggle:hover,
html.high-contrast .mobile-nav-toggle:focus {
  background: #ffd700 !important;
  color: #000000 !important;
}
html.high-contrast .main-nav {
  background: #000000 !important;
  border-top-color: #ffd700 !important;
  border-bottom-color: #ffd700 !important;
}

/* Banners, Heros e Cabeçalhos temáticos */
html.high-contrast .hero,
html.high-contrast .page-banner,
html.high-contrast .profile-hero,
html.high-contrast .parallax-about {
  background: #000000 !important;
  color: #ffffff !important;
  border-bottom: 3px solid #ffd700 !important;
}

html.high-contrast .hero h1,
html.high-contrast .page-banner h1,
html.high-contrast .profile-hero h1,
html.high-contrast .section-title,
html.high-contrast h2,
html.high-contrast h3,
html.high-contrast h4 {
  color: #ffffff !important;
}

html.high-contrast .section-tag {
  background-color: #ffd700 !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
}

html.high-contrast .breadcrumbs,
html.high-contrast .breadcrumbs a,
html.high-contrast .breadcrumbs span {
  color: #ffd700 !important;
}

/* Cards e Blocos de Conteúdo */
html.high-contrast .card,
html.high-contrast .profile-section-card,
html.high-contrast .staff-card,
html.high-contrast .calendar-wrapper {
  background-color: #121212 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

/* Destaques e Informes Oficiais (Página Principal): Troca bordô por amarelo de alto contraste */
html.high-contrast .card [style*="color: var(--ufop-red)"],
html.high-contrast .card [style*="color:#8f142e"],
html.high-contrast .card [style*="color: #8f142e"] {
  color: #ffd700 !important;
}

/* Ícones dos Pilares de Atuação: Alto Contraste */
html.high-contrast .card-icon {
  background-color: #000000 !important;
  color: #ffd700 !important;
  border: 2px solid #ffd700 !important;
}
html.high-contrast .card-icon svg {
  color: #ffd700 !important;
  stroke: #ffd700 !important;
}

/* Técnicos Administrativos: Box da Jornada de Trabalho (fundo preto com borda amarela e texto nítido) */
html.high-contrast .card [style*="background: var(--deest-blue-subtle)"],
html.high-contrast .card [style*="background:var(--deest-blue-subtle)"],
html.high-contrast .profile-section-card [style*="background: var(--deest-blue-subtle)"] {
  background-color: #000000 !important;
  border: 2px solid #ffd700 !important;
}
html.high-contrast .card [style*="background: var(--deest-blue-subtle)"] h4,
html.high-contrast .card [style*="background: var(--deest-blue-subtle)"] strong {
  color: #ffd700 !important;
}
html.high-contrast .card [style*="background: var(--deest-blue-subtle)"] li {
  color: #ffffff !important;
}

/* Substitui cores inline de baixo contraste (bordô, cinza/azul e tons apagados) */
html.high-contrast [style*="color: var(--deest-blue)"],
html.high-contrast [style*="color:var(--deest-blue)"] {
  color: #ffd700 !important;
}

html.high-contrast [style*="color: var(--text-muted)"],
html.high-contrast [style*="color:var(--text-muted)"] {
  color: #e2e8f0 !important;
}

html.high-contrast [style*="color: var(--text-secondary)"],
html.high-contrast [style*="color:var(--text-secondary)"] {
  color: #f8fafc !important;
}

/* Textos descritivos e parágrafos dentro de cards */
html.high-contrast p,
html.high-contrast .card-text,
html.high-contrast .section-desc,
html.high-contrast li,
html.high-contrast span {
  color: #f0f0f0 !important;
}

html.high-contrast strong,
html.high-contrast b {
  color: #ffd700 !important;
}

/* Títulos dos blocos e cards (Pesquisa, Extensão, Espaços, etc.): Todos em AMARELO (#ffd700) */
html.high-contrast .card .card-title,
html.high-contrast .card h3,
html.high-contrast .card h3.card-title,
html.high-contrast .card h4,
html.high-contrast .profile-section-card h3 {
  color: #ffd700 !important;
}

/* Cabeçalho dos cards dos professores e equipe */
html.high-contrast .staff-header {
  background: #000000 !important;
  border-bottom: 2px solid #ffd700 !important;
}

html.high-contrast .staff-name {
  color: #ffd700 !important;
}

html.high-contrast .staff-role {
  color: #ffffff !important;
}

html.high-contrast .staff-avatar-circle,
html.high-contrast .profile-avatar-lg {
  background: #000000 !important;
  color: #ffd700 !important;
  border: 2px solid #ffd700 !important;
}

html.high-contrast .staff-sub-badge {
  background: #ffd700 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 1px solid #ffffff !important;
}

html.high-contrast .staff-meta,
html.high-contrast .staff-meta-item,
html.high-contrast .staff-meta span,
html.high-contrast .staff-meta svg {
  color: #f0f0f0 !important;
}

/* Links em texto */
html.high-contrast a {
  color: #63b3ed !important;
}

html.high-contrast a:hover {
  color: #ffd700 !important;
}

/* Links em cards (incluindo Pilares de Atuação): Padroniza em amarelo de alto contraste com hover em branco */
html.high-contrast .card a:not(.btn),
html.high-contrast .card a[style*="color:"] {
  color: #ffd700 !important;
  font-weight: 700 !important;
}

html.high-contrast .card a:not(.btn):hover,
html.high-contrast .card a[style*="color:"]:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* TODOS os botões em Alto Contraste: Fundo amarelo (#ffd700) com texto PRETO (#000000) obrigatório.
   Ao passar o mouse (hover): Fundo branco (#ffffff) com texto PRETO (#000000). */
html.high-contrast .btn,
html.high-contrast a.btn,
html.high-contrast .btn-primary,
html.high-contrast a.btn-primary,
html.high-contrast .btn-ufop,
html.high-contrast a.btn-ufop,
html.high-contrast .btn-profile,
html.high-contrast a.btn-profile,
html.high-contrast .btn-outline,
html.high-contrast a.btn-outline,
html.high-contrast .btn-parallax,
html.high-contrast a.btn-parallax {
  background-color: #ffd700 !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 2px solid #ffffff !important;
  text-decoration: none !important;
}

html.high-contrast .btn *,
html.high-contrast a.btn *,
html.high-contrast .btn-profile *,
html.high-contrast a.btn-profile *,
html.high-contrast .btn-outline *,
html.high-contrast a.btn-outline * {
  color: #000000 !important;
}

/* Hover dos botões: fundo branco puro com texto preto */
html.high-contrast .btn:hover,
html.high-contrast a.btn:hover,
html.high-contrast .btn-primary:hover,
html.high-contrast a.btn-primary:hover,
html.high-contrast .btn-ufop:hover,
html.high-contrast a.btn-ufop:hover,
html.high-contrast .btn-profile:hover,
html.high-contrast a.btn-profile:hover,
html.high-contrast .btn-outline:hover,
html.high-contrast a.btn-outline:hover,
html.high-contrast .btn-parallax:hover,
html.high-contrast a.btn-parallax:hover {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border-color: #ffd700 !important;
}

html.high-contrast .btn:hover *,
html.high-contrast a.btn:hover *,
html.high-contrast .btn-profile:hover *,
html.high-contrast a.btn-profile:hover *,
html.high-contrast .btn-outline:hover *,
html.high-contrast a.btn-outline:hover * {
  color: #000000 !important;
}

/* Seções com fundo alternativo */
html.high-contrast .section-alt {
  background-color: #050505 !important;
}

/* Caixa de busca dos docentes */
html.high-contrast .faculty-search-box {
  background-color: #121212 !important;
  border: 2px solid #ffd700 !important;
}

html.high-contrast .faculty-search-box input {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Calendários e Agendas em Alto Contraste */
html.high-contrast .calendar-header {
  background-color: var(--deest-blue-subtle) !important;
  border-bottom: 2px solid #ffffff !important;
  color: #000000 !important;
}

/* Título 'Visão Geral Unificada (Todos os Espaços)' e títulos de todas as outras agendas em PRETO */
html.high-contrast .calendar-header h3,
html.high-contrast .calendar-header h4,
html.high-contrast .calendar-header [style*="color:"] {
  color: #000000 !important;
  font-weight: 800 !important;
}

/* Link 'Ver página completa →' dentro do header do calendário */
html.high-contrast .calendar-header a {
  color: #000000 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
}
html.high-contrast .calendar-header a:hover {
  color: #8f142e !important;
}

/* Legendas da agenda principal nas CORES ORIGINAIS da versão normal */
html.high-contrast .calendar-header div [style*="color: #0b8043"],
html.high-contrast .calendar-header div [style*="color:#0b8043"] {
  color: #0b8043 !important;
}

html.high-contrast .calendar-header div [style*="color: #f4511e"],
html.high-contrast .calendar-header div [style*="color:#f4511e"] {
  color: #f4511e !important;
}

html.high-contrast .calendar-header div [style*="color: #ad1457"],
html.high-contrast .calendar-header div [style*="color:#ad1457"] {
  color: #ad1457 !important;
}

html.high-contrast .calendar-header div [style*="color: #6a1b9a"],
html.high-contrast .calendar-header div [style*="color:#6a1b9a"] {
  color: #6a1b9a !important;
}

html.high-contrast .calendar-header div [style*="color: #a79b8e"],
html.high-contrast .calendar-header div [style*="color:#a79b8e"] {
  color: #6d6356 !important;
}

html.high-contrast .calendar-header div [style*="color: #0047ab"],
html.high-contrast .calendar-header div [style*="color:#0047ab"] {
  color: #0047ab !important;
}

html.high-contrast .calendar-header div {
  color: #000000 !important;
  font-weight: 600 !important;
}

/* Painel de acessibilidade no modo alto contraste */
html.high-contrast .accessibility-panel {
  background-color: #000000 !important;
  border: 2px solid #ffd700 !important;
  color: #ffffff !important;
}

html.high-contrast .a11y-option-btn {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
}

html.high-contrast .a11y-option-btn.active {
  background-color: #ffd700 !important;
  color: #000000 !important;
  border-color: #ffd700 !important;
  font-weight: 800 !important;
}

html.grayscale-mode {
  filter: grayscale(100%) !important;
}

html.underline-links a {
  text-decoration: underline !important;
}

html.reduce-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Botão Flutuante e Painel de Acessibilidade */
.accessibility-wrapper {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
}

.accessibility-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background-color: var(--ufop-red);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 0;
}
.accessibility-btn:hover {
  transform: scale(1.08);
  background-color: var(--ufop-red-dark);
}

.accessibility-panel {
  display: none;
  position: absolute;
  bottom: 4rem;
  right: 0;
  width: min(20rem, calc(100vw - 2.5rem));
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 1.25rem;
  color: var(--text-primary);
  animation: a11yFadeIn 0.2s ease-out;
}
.accessibility-panel.open {
  display: block;
}

@keyframes a11yFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.accessibility-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.accessibility-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deest-blue);
  margin: 0;
}
.accessibility-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.accessibility-close-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-main);
}

.accessibility-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.accessibility-font-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.a11y-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s ease;
}
.a11y-icon-btn:hover:not(:disabled) {
  background: var(--deest-blue-subtle);
  border-color: var(--deest-blue);
}
.a11y-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.a11y-font-label {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deest-blue);
}

.accessibility-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.a11y-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.a11y-toggle-btn:hover {
  background: var(--bg-main);
}
.a11y-toggle-btn.active {
  background: var(--ufop-red);
  color: #ffffff;
  border-color: var(--ufop-red);
}
.a11y-toggle-btn.reset-btn {
  margin-top: 0.5rem;
  border-color: transparent;
  color: var(--text-muted);
}
.a11y-toggle-btn.reset-btn:hover {
  color: var(--ufop-red);
  background: rgba(143, 20, 46, 0.05);
}


/* Ajuste estrito de 3 colunas em telas médias e grandes */
@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 600px) and (max-width: 991px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Selo de Professora Substituta no canto superior direito */
.staff-sub-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ====================================================================
   Dual Language Switching (Instant CSS Visibility)
   ==================================================================== */
html[lang^="en"] .lang-pt,
html[lang="en"] .lang-pt,
html[lang="en-GB"] .lang-pt {
  display: none !important;
}

html[lang^="pt"] .lang-en,
html[lang="pt"] .lang-en,
html[lang="pt-BR"] .lang-en {
  display: none !important;
}

html[lang^="en"] span.lang-pt,
html[lang="en"] span.lang-pt,
html[lang="en-GB"] span.lang-pt {
  display: none !important;
}

html[lang^="pt"] span.lang-en,
html[lang="pt"] span.lang-en,
html[lang="pt-BR"] span.lang-en {
  display: none !important;
}

/* ====================================================================
   DEEST / UFOP - Animated Statistical Charts Widget
   ==================================================================== */
.stat-chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 32px 0 44px 0;
}

.stat-chart-card {
  width: 100%;
  max-width: 620px;
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-chart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.11);
}

.stat-fade-in {
  animation: statFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes statFadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.stat-chart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  font-family: 'Courier New', Courier, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark, #1E293B);
}

.stat-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: statPulse 2s infinite;
}

@keyframes statPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.stat-chart-caption {
  flex: 1;
  letter-spacing: 0.3px;
}

.stat-chart-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(143, 20, 46, 0.08);
  color: var(--ufop-red, #8A191D);
  border-radius: 4px;
  font-weight: 700;
  font-family: inherit;
}

.stat-chart-body {
  padding: 24px 24px 20px 24px;
}

.stat-chart-canvas {
  width: 100%;
}

.stat-chart-svg {
  width: 100%;
  height: 180px;
  display: block;
}

/* ====================================================================
   CONTINUOUS LIVE ANIMATIONS
   ==================================================================== */

/* Intro draw for SVG paths */
.stat-draw-path {
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
  animation: statDrawAnim 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes statDrawAnim {
  to { stroke-dashoffset: 0; }
}

/* Bars Continuous Breathing Wave (3 alternating cadences) */
.stat-hist-bar {
  flex: 1;
  transform-origin: bottom;
  border-radius: 4px 4px 0 0;
}

.riseBarA {
  animation: riseAnimA 3s ease-in-out infinite;
}
.riseBarB {
  animation: riseAnimB 2.8s ease-in-out infinite;
}
.riseBarC {
  animation: riseAnimC 3.4s ease-in-out infinite;
}

@keyframes riseAnimA {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.02); }
}
@keyframes riseAnimB {
  0%, 100% { transform: scaleY(0.98); }
  50% { transform: scaleY(0.60); }
}
@keyframes riseAnimC {
  0%, 100% { transform: scaleY(0.70); }
  40% { transform: scaleY(1.05); }
  75% { transform: scaleY(0.52); }
}

/* Gaussian Bell Curve Continuous Breathing */
.stat-gaussian-wave {
  transform-origin: 280px 160px;
  animation: gaussBreath 3.6s ease-in-out infinite;
}

@keyframes gaussBreath {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  50% { transform: scaleY(0.86) scaleX(1.04); }
}

.stat-mean-line {
  animation: pulseOpacity 2.5s ease-in-out infinite;
}
.stat-sd-line-l, .stat-sd-line-r {
  animation: pulseOpacity 2.5s ease-in-out infinite 0.6s;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.45; }
}

/* Boxplots Continuous Floating Wave */
.stat-box-wave-1 {
  transform-origin: 100px 160px;
  animation: boxFloatA 3.2s ease-in-out infinite;
}
.stat-box-wave-2 {
  transform-origin: 280px 160px;
  animation: boxFloatB 3.6s ease-in-out infinite 0.4s;
}
.stat-box-wave-3 {
  transform-origin: 460px 160px;
  animation: boxFloatA 2.9s ease-in-out infinite 0.8s;
}

@keyframes boxFloatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes boxFloatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Scatter live regression sway & point jitter */
.stat-reg-line-sway {
  transform-origin: 280px 85px;
  animation: regSway 4.5s ease-in-out infinite;
}

@keyframes regSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2deg); }
}

.stat-pop-in {
  animation: statPopIn 0.5s ease-out backwards;
}

@keyframes statPopIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.stat-point-jitter-1 {
  animation: jitterA 2.8s ease-in-out infinite;
}
.stat-point-jitter-2 {
  animation: jitterB 3.2s ease-in-out infinite;
}
.stat-point-jitter-3 {
  animation: jitterC 2.5s ease-in-out infinite;
}

@keyframes jitterA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1.5px, -2px); }
}
@keyframes jitterB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, 1.5px); }
}
@keyframes jitterC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, 2px); }
}

/* Time Series continuous undulating wave */
.stat-ts-wave {
  transform-origin: 280px 90px;
  animation: tsWave 3.8s ease-in-out infinite;
}

@keyframes tsWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.90) translateY(3px); }
}

.stat-ci-pulse {
  animation: ciPulse 3.5s ease-in-out infinite;
}

@keyframes ciPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.30; }
}

.stat-pulse-dot-live {
  animation: liveTipDot 1.6s ease-in-out infinite;
}

@keyframes liveTipDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ====================================================================
   DONUT CHART (PROPORÇÕES MULTIVARIADAS) ANIMATIONS
   ==================================================================== */
.stat-donut-spin-anim {
  transform-origin: 160px 90px;
  animation: donutIntroSpin 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, donutContinuousSway 6s ease-in-out infinite 1.4s;
}

@keyframes donutIntroSpin {
  0% { transform: rotate(-140deg); opacity: 0; }
  100% { transform: rotate(0deg); opacity: 1; }
}

@keyframes donutContinuousSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}

.stat-donut-slice-dynamic {
  transition: transform 0.4s ease;
}

.stat-slice-w1 {
  animation: sliceScaleA 3.4s ease-in-out infinite;
  transform-origin: 160px 90px;
}
.stat-slice-w2 {
  animation: sliceScaleB 3.8s ease-in-out infinite 0.4s;
  transform-origin: 160px 90px;
}
.stat-slice-w3 {
  animation: sliceScaleA 3.2s ease-in-out infinite 0.8s;
  transform-origin: 160px 90px;
}
.stat-slice-w4 {
  animation: sliceScaleB 4s ease-in-out infinite 1.2s;
  transform-origin: 160px 90px;
}

@keyframes sliceScaleA {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes sliceScaleB {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.96); }
}

.stat-donut-center-pulse {
  transform-origin: 160px 90px;
  animation: centerPulse 2.8s ease-in-out infinite;
}

@keyframes centerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ====================================================================
   HEATMAP / CORRELATION MATRIX ANIMATIONS
   ==================================================================== */
.stat-heat-cell {
  animation: statPopIn 0.5s ease-out backwards;
}

.stat-heat-tile {
  transform-box: fill-box;
  transform-origin: center;
}

.stat-heat-pulse-A {
  animation: heatPulseAnimA 3s ease-in-out infinite;
}
.stat-heat-pulse-B {
  animation: heatPulseAnimB 2.7s ease-in-out infinite;
}
.stat-heat-pulse-C {
  animation: heatPulseAnimC 3.4s ease-in-out infinite;
}

@keyframes heatPulseAnimA {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.91); opacity: 0.65; }
}

@keyframes heatPulseAnimB {
  0%, 100% { transform: scale(0.93); opacity: 0.70; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes heatPulseAnimC {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  35% { transform: scale(1.07); opacity: 1; }
  70% { transform: scale(0.92); opacity: 0.60; }
}

/* ML bars continuous evaluation wave */
.stat-ml-bar {
  transform-origin: bottom;
}

/* Footer Metrics */
.stat-chart-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color, #E2E8F0);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

.stat-metric-tag {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted, #64748B);
  font-family: 'Courier New', Courier, monospace;
}

.stat-metric-tag:last-child {
  color: #10B981;
}

/* High-contrast support for statistical widget */
body.high-contrast .stat-chart-card {
  background: #000000 !important;
  border: 2px solid #FFFF00 !important;
  box-shadow: none !important;
}

body.high-contrast .stat-chart-header {
  background: #000000 !important;
  border-bottom: 2px solid #FFFF00 !important;
  color: #FFFFFF !important;
}

body.high-contrast .stat-chart-caption {
  color: #FFFF00 !important;
}

body.high-contrast .stat-status-dot {
  background-color: #00FF00 !important;
}

body.high-contrast .stat-chart-badge {
  background: #333333 !important;
  color: #FFFFFF !important;
  border: 1px solid #FFFF00 !important;
}

body.high-contrast .stat-chart-footer {
  border-top: 1px solid #FFFF00 !important;
}

body.high-contrast .stat-metric-tag {
  color: #FFFFFF !important;
}

body.high-contrast .stat-metric-tag:last-child {
  color: #FFFF00 !important;
}

body.high-contrast .stat-hist-bar {
  border: 1px solid #FFFF00 !important;
}



/* ====================================================================
   DEEST / UFOP - News Module & Carousel
   ==================================================================== */
.news-home-section {
  background: #FFFFFF;
  padding: 64px 0 72px 0;
  border-top: 1px solid var(--border-color, #E2E8F0);
  border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.news-carousel-outer-wrapper {
  position: relative;
  width: 100%;
}

.news-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--text-dark, #1E293B);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.news-arrow-prev {
  left: -20px;
}

.news-arrow-next {
  right: -20px;
}

@media (max-width: 768px) {
  .news-arrow-prev {
    left: 2px;
  }
  .news-arrow-next {
    right: 2px;
  }
}

.news-arrow-btn:hover {
  background: var(--ufop-red, #8A191D);
  color: #FFFFFF;
  border-color: var(--ufop-red, #8A191D);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(138, 25, 29, 0.3);
}

.news-arrow-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.news-carousel-track-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 4px 28px 4px;
}

.news-carousel-track-wrapper::-webkit-scrollbar {
  display: none;
}

.news-carousel-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.news-carousel-slide {
  flex: 0 0 310px;
  max-width: 320px;
  display: flex;
}

@media (min-width: 992px) {
  .news-carousel-slide {
    flex: 0 0 330px;
    max-width: 340px;
  }
}

/* News Card */
.news-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  flex-shrink: 0;
  background: #E2E8F0;
  overflow: hidden;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.news-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  background: #FFFFFF !important; /* High contrast background */
}

.news-badge-pinned {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #FEF08A;
  color: #854D0E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  border: 1px solid #FDE047;
}

.news-card-body {
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.news-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748B;
  margin-bottom: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.news-card-title {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0 0 12px 0;
  font-weight: 700;
  height: 4.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-title a {
  color: var(--text-dark, #0F172A);
  text-decoration: none;
  transition: color 0.2s;
}

.news-card-title a:hover {
  color: var(--ufop-red, #8A191D);
}

.news-card-summary {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 16px 0;
  height: 4.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  flex-shrink: 0;
}

.news-card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ufop-red, #8A191D);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s, color 0.25s;
}

.news-card-link:hover {
  gap: 8px;
  color: #5C0E11;
  text-decoration: underline;
}

/* ====================================================================
   News Hub Page (noticias.html) & Filters
   ==================================================================== */
.news-filter-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 36px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.news-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.news-search-box svg {
  position: absolute;
  left: 16px;
  color: #94A3B8;
}

.news-search-box input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.news-search-box input:focus {
  border-color: var(--ufop-red, #8A191D);
  box-shadow: 0 0 0 3px rgba(138, 25, 29, 0.12);
}

.news-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-pill {
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-pill:hover {
  background: #E2E8F0;
  color: #1E293B;
}

.news-pill.active {
  background: var(--ufop-red, #8A191D);
  color: #FFFFFF;
  border-color: var(--ufop-red, #8A191D);
  box-shadow: 0 3px 8px rgba(138, 25, 29, 0.25);
}

.news-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.news-grid-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-no-results {
  text-align: center;
  padding: 60px 20px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px dashed #CBD5E1;
  color: #64748B;
  font-size: 16px;
  font-weight: 600;
}

/* ====================================================================
   News Detail Article Page (noticia-slug.html)
   ==================================================================== */
.news-detail-container {
  max-width: 840px;
  margin: 0 auto;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.news-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #64748B;
}

.news-detail-hero-img-wrap {
  position: relative;
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.news-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-lead {
  font-size: 1.18rem;
  line-height: 1.6;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E2E8F0;
}

.news-rich-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}

.news-rich-text p {
  margin-bottom: 20px;
}

.news-rich-text a {
  color: var(--ufop-red, #8A191D);
  text-decoration: underline;
  font-weight: 600;
}

.news-detail-back {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}

/* High Contrast for News */
body.high-contrast .news-home-section {
  background: #000000 !important;
  border-color: #FFFF00 !important;
}

body.high-contrast .news-card,
body.high-contrast .news-filter-wrapper {
  background: #000000 !important;
  border: 2px solid #FFFF00 !important;
  box-shadow: none !important;
}

body.high-contrast .news-card-title a {
  color: #FFFF00 !important;
}

body.high-contrast .news-card-summary,
body.high-contrast .news-detail-lead,
body.high-contrast .news-rich-text {
  color: #FFFFFF !important;
}

body.high-contrast .news-card-cat {
  background: #000000 !important;
  color: #FFFF00 !important;
  border: 1px solid #FFFF00 !important;
}

body.high-contrast .news-pill {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 1px solid #FFFFFF !important;
}

body.high-contrast .news-pill.active {
  background: #FFFF00 !important;
  color: #000000 !important;
  border-color: #FFFF00 !important;
}

body.high-contrast .news-arrow-btn {
  background: #000000 !important;
  color: #FFFF00 !important;
  border-color: #FFFF00 !important;
}



/* ====================================================================
   DEEST / UFOP - Áreas de Atuação & Ciência de Dados na Prática
   ==================================================================== */
.data-science-action-section {
  background: #FFFFFF;
  padding: 80px 0 88px 0;
  border-top: 1px solid var(--border-color, #E2E8F0);
  border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.ds-action-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 52px;
}

@media (min-width: 992px) {
  .ds-action-top-grid {
    grid-template-columns: 1.15fr 1.05fr;
    gap: 48px;
  }
}

.ds-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ufop-red, #8A191D);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ds-headline {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-dark, #0F172A);
  line-height: 1.25;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}

.ds-subheadline {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted, #475569);
  margin: 0;
}

.ds-action-widget-col {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* 4 Cards Grid - Áreas de Atuação */
.ds-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.ds-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ds-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

.ds-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(138, 25, 29, 0.08);
  color: var(--ufop-red, #8A191D);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.ds-symbol {
  font-family: 'Times New Roman', Times, serif;
  font-size: 24px;
  font-weight: 700;
}

.ds-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dark, #0F172A);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.ds-card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted, #475569);
  margin: 0;
  flex: 1;
}

/* High Contrast Support */
body.high-contrast .data-science-action-section {
  background: #000000 !important;
  border-color: #FFFF00 !important;
}

body.high-contrast .ds-eyebrow,
body.high-contrast .ds-headline,
body.high-contrast .ds-card-title {
  color: #FFFF00 !important;
}

body.high-contrast .ds-subheadline,
body.high-contrast .ds-card-desc {
  color: #FFFFFF !important;
}

body.high-contrast .ds-card {
  background: #000000 !important;
  border: 2px solid #FFFF00 !important;
  box-shadow: none !important;
}

body.high-contrast .ds-icon-box {
  background: #333333 !important;
  color: #FFFF00 !important;
  border: 1px solid #FFFF00 !important;
}

/* ====================================================================
   DEEST / UFOP - News Pagination Styles (12 Items per Page)
   ==================================================================== */
.news-pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.news-pagination-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-color, #E2E8F0);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.news-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 50px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-page-btn:hover {
  background: #F1F5F9;
  color: var(--ufop-red, #8A191D);
}

.news-page-btn.active {
  background: var(--ufop-red, #8A191D);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(138, 25, 29, 0.3);
}

.news-page-nav {
  font-size: 13.5px;
  background: #F8FAFC;
  border-color: #E2E8F0;
}

/* High Contrast Adjustments */
body.high-contrast .pillar-stack-card {
  background: #000000 !important;
  border: 2px solid #FFFF00 !important;
}

body.high-contrast .pillar-stack-title,
body.high-contrast .pillar-stack-link {
  color: #FFFF00 !important;
}

body.high-contrast .pillar-stack-desc {
  color: #FFFFFF !important;
}

body.high-contrast .news-pagination-wrapper {
  background: #000000 !important;
  border: 2px solid #FFFF00 !important;
}

body.high-contrast .news-page-btn {
  color: #FFFFFF !important;
}

body.high-contrast .news-page-btn.active {
  background: #FFFF00 !important;
  color: #000000 !important;
}
