* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.cmp-articlelist {
    padding: 0;
}

#cardDestaque {
    height: 100%;
}

#cardDestaque > div {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    border-radius: 32px;
    border: 1px solid var(--color-tertiary-dark);
    overflow: hidden;
    margin-block: 40px;
}

#cardDestaque .container,
#cardDestaque .cmp-text {
    padding: 0;
}

#cardDestaque > div > .aem-GridColumn:first-child {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
}

#cardDestaque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#cardDestaque__content > .aem-Grid.aem-Grid--12 {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

#cardDestaque__content h2 {
    margin-bottom: 24px;
    color: var(--color-secondary);
}

#cardDestaque__content .cmp-text {
    padding: 0 16px;
}

#cardDestaque__separator > hr {
    border-color: var(--color-tertiary-light);
    margin: 36px 0 31px 0;
}

#cardDestaque .button {
  padding: 15px 0 20px 0;
}

#cardDestaque__publication {
  margin-top: auto;
}

#cardDestaque__publication .aem-Grid.aem-Grid--12 {
  display: flex;
  flex-direction: row-reverse;
}

@media (min-width: 1024px) {

    #cardDestaque > div {
        flex-direction: row;
        height: 413px;
    }

    #cardDestaque > div > .aem-GridColumn:first-child {
        flex: 0 0 623px;
        max-width: 623px;
        height: 100%;
        border-radius: 32px 0 0 32px;
    }
    
    #cardDestaque img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    #cardDestaque__content > .aem-Grid.aem-Grid--12 {
        padding: 40px 80px;
    }

    #cardDestaque__content .cmp-text p {
        height: 142px;
    }

    #cardDestaque__separator > hr {
        margin: 16px 0;
    }
}