/* .page-home *******************************/

.page-home {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0 auto;
	margin-top: 40px;
	max-width: 1390px;
	position: relative;

	> .main {

		.top {
			display: flex;
			flex-direction: column;
			gap: 20px;
			margin-bottom: 40px;

			.main {
			}

			.sidebar {

				.article {
					margin-bottom: 20px;
				}
			}
		}

		.cta {
			align-items: center;
			background-color: var(--color-brand-dark);
			border-top: 20px solid var(--color-brand-red);
			color: #fff;
			display: flex;
			flex-direction: column;
			gap: 20px;
			margin-bottom: 40px;
			padding: 40px;

			.author {

				img {
					border-radius: 50px;
					height: auto;
					width: 100px;
				}
			}

			.text {
				text-align: center;

				h2 {
					font-size: 2rem;
				}
			}

			.start {
			}
		}
	}

	> .sidebar {
		padding: 0 20px;
	}
}

@media (min-width: 1000px) {

	.page-home {
		flex-direction: row;

		> .main {
			width: 1069px;

			.top {
				flex-direction: row;

				.main {
					width: 728px;
				}

				.sidebar {
					border-left: 1px solid #ccc;
					padding-left: 20px;
					width: 321px;
				}
			}

			.cta {
				border: 0;
				border-left: 20px solid var(--color-brand-red);
				border-radius: var(--css-border-radius);
				flex-direction: row;

				.author {

					img {
					}
				}

				.text {
					text-align: left;

					h2 {
					}
				}

				.start {
					width: 200px;
				}
			}
		}

		> .sidebar {
			border-left: 1px solid #ccc;
			padding: 0;
			padding-left: 20px;
			width: 321px;
		}
	}
}

/* .page-home section.topics *******************************/

.page-home section.topics {

	.topic {
		margin-bottom: 80px;
		padding: 0 20px;

		.header {
			border-bottom: 1px solid #ccc;
			display: flex;
			flex-direction: column;
			margin-bottom: 20px;
			padding-bottom: 10px;

			h3 {
				font-family: var(--font-headline);
				font-size: 2.2rem;
				font-weight: 800;
				line-height: 2.5rem;
			}

			.nav {

				a, button {
					color: #222;
					text-decoration: none;

					&:hover {
						color: #222;
						text-decoration: underline;
					}
				}

				span {
					margin: 0 10px;
				}
			}
		}

		.articles {
			display: flex;
			flex-direction: column;
			gap: 40px;
			margin-bottom: 40px;

			.article {
				width: 100%;
			}
		}
	}
}

@media (min-width: 1000px) {

  .page-home section.topics {
		margin-bottom: 80px;

		.topic {

			.header {
				align-items: flex-end;
				flex-direction: row;
				justify-content: space-between;

				h3 {
				}

				.nav {

					a, button {

						&:hover {
						}
					}

					span {
					}
				}
			}

			.articles {
				flex-direction: row;

				.article {
					width: calc((100% - 80px) / 3);
				}
			}
		}
  }
}
