@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    background: #fff;
    overflow-x: hidden;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5cc5da;
    padding: 0 0 0 0;
    width: 100%;
    height: 260px;
    box-sizing: border-box;
}

.logo {
    width: 173px;
    height: 173px;
    margin-right: 40px;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 173px;
}

.header-text h1 {
    font-weight: 700;
    font-size: 80px;
    line-height: 90%;
    margin: 0;
    color: #fff;
}

.header-text p {
    font-weight: 300;
    font-size: 20px;
    line-height: 110%;
    margin: 0;
    color: #fff;
}

.ultimas-postagens {
    padding: 40px;
    text-align: center;
    background-color: #5cc5da;
}

.search-container {
    position: relative;
    display: inline-block;
}

.search {
    width: 693px;
    height: 55px;
    border-radius: 30px;
    border: none;
    padding: 0 20px;
    padding-left: 60px;
    font-size: 18px;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    pointer-events: none;
}

.enem-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #5cc5da;
}

.enem-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    max-width: 1111px;
    margin: 40px auto;
    border-radius: 40px;
    padding: 44px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-buttons-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.social-icons-group {
    display: flex;
    gap: 15px;
}

.buttons-group {
    display: flex;
    gap: 15px;
}

.icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.icon.whatsapp {
    background-color: #25d366;
}

.icon.facebook {
    background-color: #3b5998;
}

.icon.twitter {
    background-color: #1da1f2;
}

.badges {
    display: flex;
    gap: 10px;
}

.badge {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 90%;
    letter-spacing: 0%;
    vertical-align: middle;
    height: 59px;
    padding: 5px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
}

.badge.purple {
    background-color: #5756a5;
    color: white;
}

.badge.yellow {
    background-color: #ebbe07;
    color: white;
}

.title {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 60px;
    line-height: 90%;
    letter-spacing: 0%;
    vertical-align: middle;
    margin: 0 0 40px;
    color: #135963;
}

.main-image {
    width: 100%;
    max-width: 987px;
    height: auto;
    border-radius: 35px;
    margin-bottom: 60px;
    object-fit: cover;
    display: block;
}

.content {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 23px;
    line-height: 1.4;
    color: #000000;
}

.content p {
    margin-bottom: 20px;
}

.content h2 {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 32px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #000000;
}

.content a {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    color: #000000;
    text-decoration: underline;
}

.content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.content ul {
  list-style: circle;   /* bolinha preenchida */
  padding-left: 20px; /* afasta os itens da margem */
  margin-bottom: 20px;
}

.content ol {
  list-style: decimal; /* numeração */
  padding-left: 20px;
  margin-bottom: 20px;
}


.buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}

.home-btn,
.share-btn {
    width: 287px;
    height: 59px;
    border-radius: 50px;
    background-color: #db4f66;
    color: white;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 90%;
    letter-spacing: 0%;
    vertical-align: middle;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-cards {
    text-align: left;
    color: white;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 90%;
    letter-spacing: 0%;
    vertical-align: middle;
    margin-bottom: 24px;
    margin-top: 42px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1327px;
    margin: 0 auto;
    position: relative;
    padding-top: 30px;
}

.cards-container {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
}

.cards-wrapper {
    display: flex;
    gap: 24px;
    will-change: transform;
    transition: transform 0.5s ease-in-out;
}

.card {
    background-color: white;
    border-radius: 40px;
    width: calc((1200px - 48px) / 3);
    height: 396px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    flex-shrink: 0;
}

.card img {
    width: 339px;
    height: 206px;
    border-radius: 20px;
    object-fit: cover;
}

.tags {
    display: flex;
    gap: 8px;
    margin: 16px 0 8px;
    width: 100%;
    justify-content: flex-start;
}

.tag {
    padding: 6px 12px;
    border-radius: 50px;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 90%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: white;
}

.tag.enem {
    background-color: #5756a5;
}

.tag.vestibular {
    background-color: #ebbe07;
}

.card-title {
    font-size: 32px;
    line-height: 0.9;
    color: #135963;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.button {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #db4f66;
    color: white;
    font-size: 30px;
    font-weight: 400;
    width: 183px;
    height: 59px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    padding: 0;
}

.carousel-button {
    width: 21px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-button.prev {
    left: -40px;
}

.carousel-button.next {
    right: -40px;
}

@media (max-width: 420px) {
    .card {
        width: 90%;
        height: auto;
        padding-bottom: 60px;
    }

    .card img {
        width: 100%;
        height: auto;
    }

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

    .button {
        font-size: 20px;
        width: 150px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        height: auto;
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .logo {
        width: 120px;
        height: 120px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .header-text h1 {
        font-size: 40px;
    }

    .header-text p {
        font-size: 16px;
    }

    .search {
        width: 90%;
        max-width: 400px;
    }

    .enem-container {
        padding: 20px;
        margin: 20px;
    }

    .social-buttons-container {
        flex-direction: column;
        gap: 20px;
    }

    .title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .main-image {
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }

    .content {
        font-size: 16px;
    }

    .content h2 {
        font-size: 24px;
    }

    .buttons {
        flex-direction: column;
        gap: 20px;
    }

    .home-btn,
    .share-btn {
        width: 100%;
    }

    .section-cards {
        font-size: 32px;
        padding: 0 20px;
    }

    .carousel-section {
        padding: 0 20px;
    }

    .cards-container {
        width: 100%;
    }

    .card {
        width: 100%;
        min-width: 100%;
        height: auto;
        padding-bottom: 60px;
    }

    .card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

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

    .button {
        font-size: 20px;
        width: 150px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 15px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .header-text h1 {
        font-size: 32px;
    }

    .enem-container {
        padding: 15px;
        margin: 15px;
    }

    .title {
        font-size: 24px;
    }

    .content {
        font-size: 14px;
    }

    .content h2 {
        font-size: 20px;
    }

    .section-cards {
        font-size: 24px;
    }

    .carousel-section {
        padding: 0 15px;
    }

    .card {
        width: 100%;
        min-width: 100%;
    }

    .card img {
        height: 160px;
    }

    .card-title {
        font-size: 20px;
    }

    .button {
        font-size: 16px;
        width: 120px;
        height: 40px;
    }
}
.back-to-blog {
  margin: 24px 0 16px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #6c63ff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button .arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.back-button:hover {
  color: #4b46d3;
}

.back-button:hover .arrow {
  transform: translateX(-4px);
}