/* ==========================================================================
   GET UFPB - MODERN UI STYLESHEET
   ========================================================================== */

:root {
  --primary-color: #0b1082;
  /* Azul da Logomarca GET/UFPB */
  --primary-dark: #06095c;
  --secondary-color: #f8f9fa;
  --text-dark: #333333;
  --text-light: #777777;
  --bg-light: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* --- UI/UX Global Fluid Typography --- */
html {
  font-size: 14px; /* Reduz de 15px para 14px globalmente no PC */
}

@media (max-width: 991px) {
  html {
    font-size: 13.2px; /* Reduz proporções em Laptops / Tablets */
  }
}

@media (max-width: 575px) {
  html {
    font-size: 12.5px; /* Compacta ainda mais os textos e paineis no Celular */
  }
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-dark);
}

.text-primary-get {
  color: var(--primary-color) !important;
}

/* --- Buttons --- */
.btn-get {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(11, 16, 130, 0.3);
}

.btn-get:hover {
  background-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(11, 16, 130, 0.4);
}

/* --- Navbar (Glassmorphism) --- */
.navbar-modern {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-modern .navbar-brand img {
  height: 50px;
  transition: transform 0.3s ease;
}

.navbar-modern .navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-modern .nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin: 0 10px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-modern .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: -5px;
  left: 50%;
  transition: all 0.3s ease;
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link.active::after {
  width: 100%;
  left: 0;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
  padding: 30px 0 25px;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 400;
}

/* --- Modificadores Secundários --- */
.bg-light-blue {
  background-color: #f0f4ff;
}

/* --- Coord Section --- */
.coord-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.coord-img {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* --- Cards Otimizados --- */
.get-card {
  background: var(--bg-light);
  border-radius: 12px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.get-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* --- Responsividade --- */
@media (max-width: 991px) {
  .hero-section {
    padding: 25px 0 40px !important;
    min-height: auto;
  }

  .hero-title-main {
    font-size: 2.8rem;
  }

  .hero-subtitle-sub {
    font-size: 1.1rem;
  }

  .navbar-modern .nav-link::after {
    display: none;
  }

  .navbar-modern .nav-link {
    margin: 10px 0;
  }

  .coord-img {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
  }
}

/* --- Filtros Home (AJAX) --- */
.filter-pill {
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 50px;
  background-color: #f1f3f5;
  color: #495057;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  display: inline-block;
}

.filter-pill:hover {
  background-color: #e2e6ea;
}

.filter-pill.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 91, 161, 0.2);
}

.scroll-mobile-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 5px;
}

.scroll-mobile-pills::-webkit-scrollbar {
  display: none;
}

.filter-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  margin-bottom: 30px;
  border: 1px solid #ebedf0;
}

/* --- Ajuste Mobile Específico (Cards) --- */
@media (max-width: 767px) {
  .get-card h6 {
    font-size: 0.90rem !important;
    line-height: 1.3 !important;
  }
  .get-card h6 a {
    font-size: 0.90rem !important;
  }
}

/* ==========================================================================
   HOME — LAYOUT DUAS COLUNAS (main + sidebar)
   ========================================================================== */

.home-layout-wrapper {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* Coluna principal (esquerda) */
.home-main-col {
  flex: 1 1 0;
  min-width: 0;
}

/* Sidebar (direita) */
.home-sidebar-col {
  width: 340px;
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid #ebedf0;
  min-height: 100vh;
  position: sticky;
  top: 74px;
  align-self: flex-start;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #dde1e7 transparent;
}

.home-sidebar-col::-webkit-scrollbar {
  width: 4px;
}
.home-sidebar-col::-webkit-scrollbar-thumb {
  background: #dde1e7;
  border-radius: 4px;
}

.home-sidebar-sticky {
  padding: 24px 20px;
}

/* Inner padding das seções da coluna principal */
.hero-inner,
.coord-inner {
  padding: 48px 56px;
}

/* Hero alinhado à esquerda */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 0;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.25;
  margin-bottom: 0;
}

/* Coordenador: padding ajustado */
.coord-section {
  background: #fff;
  padding: 0;
}

/* ==========================================================================
   SIDEBAR — CARD COMPACTO DE PUBLICAÇÃO
   ========================================================================== */

.card-post-sidebar {
  transition: background 0.2s ease;
  border-radius: 8px;
  padding: 6px 4px;
}

.card-post-sidebar:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.card-post-sidebar:hover {
  background: #f8f9fa;
}

.card-sidebar-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.card-post-sidebar:hover .card-sidebar-thumb {
  opacity: 0.9;
}

.card-sidebar-title {
  font-size: 0.82rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   SIDEBAR — FILTROS COMPACTOS
   ========================================================================== */

.sidebar-filtros .input-group .form-control,
.sidebar-filtros .input-group .btn {
  height: 36px;
  font-size: 0.83rem;
}

.sidebar-filtros .collapse {
  margin-top: 2px;
}

/* ==========================================================================
   RESPONSIVIDADE — MOBILE (< 992px)
   ========================================================================== */

@media (max-width: 991px) {

  /* Empilha verticalmente */
  .home-layout-wrapper {
    flex-direction: column;
  }

  /* Sidebar fica em baixo, largura total, sem sticky */
  .home-sidebar-col {
    width: 100%;
    border-left: none;
    border-top: 1px solid #ebedf0;
    min-height: auto;
  }

  .home-sidebar-sticky {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding: 24px 20px;
  }

  /* Inner padding menor em mobile */
  .hero-inner,
  .coord-inner {
    padding: 32px 20px;
  }

  .hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-inner,
  .coord-inner {
    padding: 24px 16px;
  }
}