.project-header-content {
  padding: 2.5rem 0;
  text-align: center;
}

.project-overlay-header {
  color: #fff;
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.project-overlay-header:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to bottom right, #00246b, #000000);
  opacity: .88;
}

.project-overlay-header > div {
  position: relative;
}

.project-overlay-header h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: normal;
}

.project-navbar .nav-link {
  font-weight: 600;
}

.project-navbar .nav-link:hover {
  color: var(--c-dark-blue);
}

.project-section .section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.project-section .section-title {
  color: var(--c-dark-blue);
}

#project-target a {
  text-decoration: none;
  font-weight: normal;
}

#project-target .card:hover {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

#project-target .card-target .icon-circle {
  max-width: 75px;
  max-height: 75px;
  font-size: 1.5rem;
}

#project-target .card-target:hover .icon-circle {
  background-color: var(--c-dark-blue);
}

#project-target .card-title {font-size: 1.1rem}

.map-embed {
  width: 100%;
  height: auto;
}

.map-embed iframe {
  width: 100%;
  max-height: 320px;
  border: 0;
}

/* Project Section Full Width */
.project-section-full-width {
  width: 100%;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

/* Default background color only when no custom color is set */
.project-section-full-width:not([style*="background-color"]):not([style*="background-image"]) {
  background-color: #f8f9fa;
}

.project-section-full-width:nth-child(even):not([style*="background-color"]):not([style*="background-image"]) {
  background-color: #ffffff;
}

/* Custom background colors for full-width sections */
.project-section-full-width[style*="background-color"] {
  border-top: none;
  border-bottom: none;
}

/* Custom background colors for all sections */
.project-section[style*="background-color"] {
  border-top: none;
  border-bottom: none;
}

/* Custom text colors for sections with custom background */
.project-section[style*="color"] * {
  color: inherit !important;
}

/* High specificity selectors to override default colors */
.project-section[style*="color"] .section-title,
.project-section[style*="color"] .section-subtitle,
.project-section[style*="color"] .section-body,
.project-section[style*="color"] h1,
.project-section[style*="color"] h2,
.project-section[style*="color"] h3,
.project-section[style*="color"] h4,
.project-section[style*="color"] h5,
.project-section[style*="color"] h6,
.project-section[style*="color"] p,
.project-section[style*="color"] span,
.project-section[style*="color"] div,
.project-section[style*="color"] a {
  color: inherit !important;
}

/* Specific override for full-width sections with custom colors */
.project-section-full-width[style*="color"] .section-title,
.project-section-full-width[style*="color"] .section-subtitle,
.project-section-full-width[style*="color"] .section-body,
.project-section-full-width[style*="color"] h1,
.project-section-full-width[style*="color"] h2,
.project-section-full-width[style*="color"] h3,
.project-section-full-width[style*="color"] h4,
.project-section-full-width[style*="color"] h5,
.project-section-full-width[style*="color"] h6,
.project-section-full-width[style*="color"] p,
.project-section-full-width[style*="color"] span,
.project-section-full-width[style*="color"] div,
.project-section-full-width[style*="color"] a {
  color: inherit !important;
}

/* Custom background images for full-width sections */
.project-section-full-width[style*="background-image"] {
  border-top: none;
  border-bottom: none;
  position: relative;
}

.project-section-full-width[style*="background-image"]:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.project-section-full-width[style*="background-image"] > div {
  position: relative;
  z-index: 2;
}

/* Responsive background images */
.responsive-background-image {
  border-top: none;
  border-bottom: none;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.responsive-background-image:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.responsive-background-image > div {
  position: relative;
  z-index: 2;
}

/* Background images are controlled by JavaScript */
/* No CSS media queries needed - JavaScript handles responsive behavior */

/* Custom text color for responsive background images */
.responsive-background-image.custom-text-color * {
  color: inherit !important;
}

.responsive-background-image.custom-text-color .section-title,
.responsive-background-image.custom-text-color .section-subtitle,
.responsive-background-image.custom-text-color .section-body,
.responsive-background-image.custom-text-color h1,
.responsive-background-image.custom-text-color h2,
.responsive-background-image.custom-text-color h3,
.responsive-background-image.custom-text-color h4,
.responsive-background-image.custom-text-color h5,
.responsive-background-image.custom-text-color h6,
.responsive-background-image.custom-text-color p,
.responsive-background-image.custom-text-color span,
.responsive-background-image.custom-text-color div,
.responsive-background-image.custom-text-color a {
  color: inherit !important;
}

.project-section-full-width .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.project-section-full-width .section-title {
  color: var(--c-dark-blue);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ULTRA HIGH SPECIFICITY - Must come after default rules */
.project-section-full-width[style*="color"] .section-title {
  color: inherit !important;
}

.project-section-full-width .section-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 400;
}

/* ULTRA HIGH SPECIFICITY - Must come after default rules */
.project-section-full-width[style*="color"] .section-subtitle {
  color: inherit !important;
}

.project-section-full-width .section-body {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ULTRA HIGH SPECIFICITY - Must come after default rules */
.project-section-full-width[style*="color"] .section-body {
  color: inherit !important;
}

/* Responsive adjustments for full-width sections */
@media (max-width: 768px) {
  .project-section-full-width .section-title {
    font-size: 1.5rem;
  }
  
  .project-section-full-width .section-subtitle {
    font-size: 1rem;
  }
  
  .project-section-full-width .section-body {
    font-size: 1rem;
  }
}

/* ============================================
   NOVO LAYOUT - LISTA DE ITENS HORIZONTAL
   ============================================ */

/* Container principal */
.list-items-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
}

/* Card horizontal */
.list-item-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.list-item-card:hover {
  box-shadow: 0 8px 24px rgba(0, 36, 107, 0.12);
  border-color: var(--c-dark-blue);
}

.list-item-card:focus {
  outline: 2px solid var(--c-dark-blue);
  outline-offset: 2px;
}

/* Conteúdo do card */
.list-item-content {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

/* Imagem do item */
.list-item-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1rem;
  overflow: hidden;
}

.list-item-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.list-item-image-placeholder {
  background: linear-gradient(135deg, var(--c-dark-blue) 0%, #0056b3 100%);
  color: white;
}

.list-item-image-placeholder .fa-file-lines {
  font-size: 3rem;
  opacity: 0.8;
}

.list-item-card:hover .list-item-image {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 36, 107, 0.15);
}

/* Corpo do card */
.list-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--c-dark-blue);
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.list-item-card:hover .list-item-title {
  color: #0056b3;
}

.list-item-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #6c757d;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ação do card */
.list-item-action {
  margin-top: auto;
  padding-top: 0.5rem;
}

.list-item-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-dark-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.list-item-link .fa-arrow-right {
  transition: transform 0.3s ease;
}

.list-item-card:hover .list-item-link {
  color: #0056b3;
}

.list-item-card:hover .list-item-link .fa-arrow-right {
  transform: translateX(4px);
}

/* Modal */
.list-item-modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.list-item-modal-header {
  background: linear-gradient(135deg, var(--c-dark-blue) 0%, #0056b3 100%);
  border-bottom: none;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.list-item-modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.list-item-modal-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.list-item-modal-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.list-item-modal-header .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

.list-item-modal-body {
  padding: 2.5rem;
  background: #ffffff;
}

.list-item-content-full {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.list-item-content-full h1,
.list-item-content-full h2,
.list-item-content-full h3,
.list-item-content-full h4,
.list-item-content-full h5,
.list-item-content-full h6 {
  color: var(--c-dark-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.list-item-content-full h1 { font-size: 2rem; }
.list-item-content-full h2 { font-size: 1.75rem; }
.list-item-content-full h3 { font-size: 1.5rem; }
.list-item-content-full h4 { font-size: 1.25rem; }

.list-item-content-full p {
  margin-bottom: 1.25rem;
}

.list-item-content-full ul,
.list-item-content-full ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.list-item-content-full li {
  margin-bottom: 0.5rem;
}

.list-item-content-full img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.list-item-content-full a {
  color: var(--c-dark-blue);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.list-item-content-full a:hover {
  color: #0056b3;
}

.list-item-modal-footer {
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.list-item-modal-footer .btn {
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  border-width: 2px;
}

/* Botão "Ver Mais Itens" */
.list-items-more-button {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

/* Paginação melhorada */
.pagination {
  margin-top: 3rem;
}

.pagination .page-link {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  margin: 0 2px;
  border: 1px solid #dee2e6;
  color: var(--c-dark-blue);
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: var(--c-dark-blue);
  border-color: var(--c-dark-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 36, 107, 0.2);
}

.pagination .page-item.active .page-link {
  background-color: var(--c-dark-blue);
  border-color: var(--c-dark-blue);
  box-shadow: 0 2px 8px rgba(0, 36, 107, 0.3);
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
  .list-item-content {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  
  .list-item-image {
    width: 100px;
    height: 100px;
  }
  
  .list-item-title {
    font-size: 1.2rem;
  }
  
  .list-item-description {
    font-size: 0.95rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .list-items-container {
    gap: 1rem;
  }
  
  .list-item-card {
    border-radius: 12px;
  }
  
  .list-item-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .list-item-image {
    width: 80px;
    height: 80px;
    align-self: center;
  }
  
  .list-item-image-placeholder .fa-file-lines {
    font-size: 2rem;
  }
  
  .list-item-title {
    font-size: 1.1rem;
  }
  
  .list-item-description {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }
  
  .list-item-card:hover {
    transform: translateX(0);
    box-shadow: 0 4px 12px rgba(0, 36, 107, 0.1);
  }
  
  .list-item-modal-header {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .list-item-modal-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .list-item-modal-logo {
    width: 50px;
    height: 50px;
  }
  
  .list-item-modal-header .modal-title {
    font-size: 1.25rem;
  }
  
  .list-item-modal-body {
    padding: 1.5rem;
  }
  
  .list-item-content-full {
    font-size: 1rem;
  }
  
  .list-item-modal-footer {
    padding: 1rem 1.5rem;
  }
  
  .pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Animação de entrada */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.list-item-card {
  animation: slideInRight 0.5s ease-out;
  animation-fill-mode: both;
}

.list-item-card:nth-child(1) { animation-delay: 0.05s; }
.list-item-card:nth-child(2) { animation-delay: 0.1s; }
.list-item-card:nth-child(3) { animation-delay: 0.15s; }
.list-item-card:nth-child(4) { animation-delay: 0.2s; }
.list-item-card:nth-child(5) { animation-delay: 0.25s; }
.list-item-card:nth-child(6) { animation-delay: 0.3s; }
.list-item-card:nth-child(n+7) { animation-delay: 0.35s; }
