.container-material {
  margin: 100px auto;
  max-width: 1100px;
  width: 95%;
}

/*CABEÇALHO DA SEÇÃO */

.section-header {
  margin-bottom: 50px;
  position: relative;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
}

.text-content {
  /* flex: 2; */
  max-width: 600px;
}

.section-header h1 {
  flex: 1;
  font-size: 3.5rem;
  font-weight: 800;
  color: #660099;
  margin: 0;
}

.section-header .subtitle {
  font-size: 1.375rem;
  color: #5C5C5C;
  opacity: 0.8;
  margin: 0 0 30px 0;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0%;
}

.section-header .aside-subtitle {
  font-size: 1.375rem;
  color: #5C5C5C;
  opacity: 0.8;
  margin: 0;
  line-height: 28px;
}

.section-header .subtitle,
.section-header .aside-subtitle {
  flex: 2;
}

.material-card-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.material-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Main Layout (2 columns) */

.success-material-container-material {
  display: flex;
  flex-wrap: wrap;
  gap: 4.625rem;
}

.left-description {
  flex: 1;
  min-width: 250px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}

/* Cards Grid */
.material-grid {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 5.9rem;
  row-gap: 2.875rem;
}

/* Card style */
.material-card {
  background-color: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  /* text-align: center; */
}

.material-card img {
  width: 100%;
  /* height: 180px; */

  object-fit: contain;
  /* width: 320px; */
  height: 225px;
  flex-shrink: 0;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.aside-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 15px;
  line-height: 32px;
  color: #000;
  opacity: 0.7;
}




.card-content p {
  margin: 0;
  color: #4E2771;
  flex-grow: 1;
  line-height: 32px;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.525px;
  padding-bottom: 20px;
}

.card-content .material-types {
  font-size: 1rem;
  color: #4E2771;
  font-weight: 400;
  line-height: 30px;
  padding-bottom: 10px;
  letter-spacing: -0.4px;
}

.card-content .read-more {
  margin-top: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: right;
  color: #4E2771;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1px;
}

/* Responsiveness */
@media (max-width: 992px) {
  .success-material-container-material {
    flex-direction: column;
  }

  .container-material {
    width: 90%;
  }

  .left-description {
    text-align: center;
    margin-bottom: 20px;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }

  .text-content {
    max-width: 100%;
  }

  .section-header h1 {
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .material-grid {
    grid-template-columns: 1fr;
  }

  .section-header h1 {
    font-size: 2rem;
  }
}



/* ===== MOBILE ===== */
@media (max-width: 500px) {
  .section-header h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.2rem;
    line-height: 26px;
  }

  .aside-subtitle {
    font-size: 1rem;
    line-height: 24px;
  }
}
