body {
  padding-top: 60px;
  /*compensa a altura do header fixo*/
  background-color: #ececec;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

/*----------------------MAIN--------------------*/

main {
  width: 100%;
  height: fit-content;
  padding: 30px 0 20px 0;
  flex: 1;
}

.main-content {
  width: calc(100% - 50px);
  height: fit-content;
  margin-bottom: 30px;
  margin-left: 25px;
}

.section-title-text {
  color: #563ab1;
  margin-left: 30px;
  margin-bottom: 20px;
}

.section-title-text span {
  font-weight: bold;
  font-size: 25px;
}

.section-blocks-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  height: fit-content;
  padding: 10px;
}

/*-------------------------BLOCOS DE PROJETO---------------------------*/
.project-block {
  width: 300px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  flex-shrink: 0;
}

.project-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(113, 39, 216, 0.12);
  text-decoration: none !important;
}

.project-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f3f6 0%, #e8e8f0 100%);
  flex-shrink: 0;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-block:hover .project-img img {
  transform: scale(1.08);
}

.project-footer {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 18px;
  background-color: #fff;
  text-align: left;
  border-top: 1px solid #f0f0f0;
}

.project-block:hover .project-footer {
  background-color: #f8f5ff;
}

.project-footer .project-name {
  color: #000000;
  font-weight: bold;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-footer .project-views {
  color: #000000;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
  white-space: nowrap;
}

.project-footer .project-views i {
  font-size: 13px;
}

.project-footer button {
  width: 20px;
  height: 20px;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  flex-shrink: 0;
}

.project-footer button span {
  color: #000000;
}

footer {
  margin-top: auto;
}

/* ------- DARK MODE: PÁGINA DE BUSCA ------- */
body.dark-mode {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-mode .section-title-text {
  color: #c3b1f3;
}

body.dark-mode .project-block {
  background-color: #2c2c2c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .project-block:hover .project-footer {
  background-color: #3a3a3a;
}

body.dark-mode .project-footer {
  background-color: #2c2c2c;
}

body.dark-mode .project-footer .project-name {
  color: #f0f0f0;
}

body.dark-mode .project-footer .project-views {
  color: #b0b0b0;
}

body.dark-mode .project-footer button span {
  color: #f0f0f0;
}