/* =========================================================
   COURSE CATALOG
========================================================= */

/* SEARCH */
.view-catalogo-de-cursos .views-exposed-form {
  width: 100%;
  margin-bottom: 5px;
}

.view-catalogo-de-cursos .form-item-title {
  width: 100%;
}

.view-catalogo-de-cursos label[for*="edit-title"] {
  display: none;
}

.view-catalogo-de-cursos input[name="title"] {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 32px;
  background: #f5f7f8;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
}

/* GRID */
.view-catalogo-de-cursos .views-view-grid {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}

.view-catalogo-de-cursos .views-view-grid__item {
  width: 100% !important;
}

/* CARD */
.course-row {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.course-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.course-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* LEFT */
.course-content {
  flex: 1;
}

.course-title-link {
  text-decoration: none;
}

.course-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2e7d32;
  line-height: 1.35;
}

.course-title-link:hover .course-title {
  text-decoration: underline;
}

.course-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.badge {
  background: #2e7d32;
  color: white;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: lowercase;
}

.meta-item {
  color: #666;
  font-size: 15px;
}

/* RIGHT */
.course-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.course-cta {
  background: rgba(57, 169, 0, 0.10);
  color: #39a900;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(57, 169, 0, 0.20);
  transition: all 0.2s ease;
}

.course-cta:hover {
  background: #2e7d32;
}

.course-arrow {
  font-size: 28px;
  color: #39a900;
  text-decoration: none;
}

/* NODE TITLE */
h2.block__title {
  font-size: 28px;
  font-weight: 700;
  color: #2e7d32;
  line-height: 1.35;
}

/* MOBILE */
@media (max-width: 768px) {
  .course-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-actions {
    width: 100%;
    justify-content: space-between;
  }

  .course-title {
    font-size: 24px;
  }
}

.view-catalogo-de-cursos .view-header {
  text-align: center;
  margin-bottom: 18px;
}

.view-catalogo-de-cursos .view-header h1 {
  font-size: 40px;
  font-weight: 700;
  color: #2e7d32;
  margin: 0;
  line-height: 1.2;
}

.block-field-blocknodecoursetitle .block__content span {
  display: block !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #2e7d32 !important;
  line-height: 1.25 !important;
  margin-bottom: 20px !important;
}
