@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
/* google font */
html {
  scroll-behavior: smooth;
  scroll-padding: 18px 0;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  font-family: "Montserrat", sans-serif;
}

.home {
  background-image: linear-gradient(#050a23bf, #050a23bf),
    url("../img/header.jpg");
  height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}
.overlay {
  text-align: center;
  display: flex;
  align-items: center;
  align-content: center;
  height: 100%;
}
.container {
  width: 90%;
  margin: auto;
}
.home-content h3 {
  font-size: 28px;
}
.home-content h1 {
  font-size: 70px;
  font-weight: 500;
  margin: 10px 0;
}
.home-content p {
  font-size: 16px;
  max-width: 50%;
  margin: auto;
  line-height: 1.7;
}
.btns {
  margin-top: 50px;
}
.btn {
  text-decoration: none;
  color: #fff;
  padding: 13px;
  border: #dc3545 1px solid;
  background-color: #dc3545;
  font-size: 20px;
  font-weight: 500;
  border-radius: 8px;
  text-transform: capitalize;
  transition: 0.3s;
}
.sec-btn {
  color: #dc3545;
  background-color: transparent;
  border: #fff 1px solid;
  margin-left: 20px;
}
.btn:hover {
  background-color: #fff;
  color: #dc3545;
}

/* end home */
/* start blog */

.blog {
  margin-top: 50px;
  background-image: linear-gradient(#050a23bf, #050a23bf),
    url("../img/blog-section.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 50px 0;
}

.blog img {
  width: 100%;
}

.blog-content {
  text-align: center;
}
.blog-content h3 {
  font-weight: 400;
  font-size: 40px;
  padding: 20px;
}
.cards {
  display: flex;
  justify-content: space-between;
  margin: 30px 0 60px;
}
.card {
  width: 30%;
  background-color: #fff;
  color: rgb(108, 117, 125);
  text-align: left;
  border: #fff 1px solid;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.card:hover {
  transform: scale(1.1);
}
.card-content {
  padding: 40px;
}
.card-content h5 {
  font-weight: 500;
  color: black;
  font-size: 22px;
  text-transform: capitalize;
  margin-bottom: 20px;
}
.card-content p {
  line-height: 1.7;
}
/* end blog */
/* start footer */
.footer {
  padding: 100px 0;
}
.items {
  display: flex;
  justify-content: space-between;
}
.media {
  margin: 50px 30px 0 0;
}
.media i {
  color: #fff;
  font-size: 30px;
  padding: 10px;
  background-color: #dc3545;
  margin-right: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px #dc3545 solid;
  transition: 0.3s;
}
.media i:hover {
  border: 1px #dc3545 solid;
  color: #dc3545;
  background-color: transparent;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links ul a {
  text-decoration: none;
  color: #dc3545;
  font-size: 17px;
  text-transform: capitalize;
  font-weight: 700;
  transition: 0.3s;
}
.footer-links ul a:hover {
  color: #888;
}
.item .info-footer {
  list-style: none;
}
.item .info-footer li {
  margin-bottom: 15px;
  color: #888;
  font-weight: 400;
}
.item .info-footer a {
  text-decoration: none;
  color: #dc3545;
}
.item .info-footer a:hover {
  color: #888;
}
.sec-footer {
  padding: 40px 0;
  background-color: #f8f9fa;
  text-align: center;
}
.sec-footer p {
  font-weight: 400;
}
.error {
  color: #dc3545;
  font-weight: 600;
}

/* end footer */

/* start nav */
.nav {
  background-color: hsl(0, 0%, 93%);
  padding: 18px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0px 0px 14px 0px #0000001b;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  text-decoration: none;
  color: #dc3545;
  font-size: 26px;
  font-weight: 550;
}
.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin: 10px;
}
.nav-links li a {
  color: #dc3545;
  text-decoration: none;
  text-transform: capitalize;
  font-size: 18px;
  transition: 0.3s;
  font-weight: 500;
  position: relative;
  position: relative;
}
.nav-links li a:hover{
  color: #7e0707;
}
.nav-links li a::after{
    content: "";
    position: absolute;
    height: 3px;
    width: 0%;
    top:100%;
    left: 0;
    background-color: #7e0707;
    transition: .4s;
}

.nav-links li a:hover::after{
  width: 100%;

}