html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

.hero-banner {
  position: relative;
  padding: 220px 45px;
  min-height: 100vh;
  background-image: url(../images/bg-image.jpg);
  background-size: cover;
  background-position: center;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(23, 29, 59, 0.7);
}

.hero-banner .hero-content {
  position: relative;
  max-width: 920px;
  text-align: center;
  z-index: 1;
}

.hero-banner h1 {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: capitalize;
}

.hero-banner p {
  width: 76%;
  margin: 0 auto;
  color: #ebebeb;
  font-size: 16px;
  letter-spacing: 1px;
}

.hero-banner a.browse-link {
  display: inline-block;
  position: relative;
  margin-top: 40px;
  padding: 16px 40px;
  min-width: 90px;
  color: #ffffff;
  background-color: #e71d36;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  text-decoration: none;
  text-align: center;
  border: 2px solid #e71d36;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  -webkit-transition: 0.2s all ease-in-out;
  transition: 0.2s all ease-in-out;
}

.hero-banner a.browse-link:hover {
  background-color: #b6162e;
  border-color: #b6162e;
}

section {
  width: 100%;
  background: #f5f5f5;
  padding: 80px 20px 100px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.row {
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-auto-rows: 380px;
  grid-auto-flow: dense;
  grid-gap: 50px;
}

.col {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 10px;
  flex-direction: column;
  box-shadow: 10px 10px 30px -12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.preview {
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.preview::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(23, 29, 59, 0.7);
  opacity: 0;
  transition: all 0.3s ease;
}

.preview:hover::before {
  opacity: 1;
}

.preview img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.preview-title {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 5px;
  color: #ffffff;
  background-color: #e71d36;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.preview:hover .preview-title {
  opacity: 1;
  visibility: visible;
}

footer {
  width: 100%;
  padding: 50px 20px;
  color: #ffffff;
  background-color: #171d3b;
  text-align: center;
}

footer p {
  font-size: 18px;
  font-weight: 400;
}

footer p a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}
