* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Roboto", sans-serif;
}



/* Top Nav */
.top-nav {
  position: fixed;
  left: 0;
  right: 0;
  background: #222;
  padding: 0.5% 0;
  z-index: 200;
    
}

.top-nav .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3%;
}

.top-nav .search-icon {
  cursor: pointer;
}

.top-nav nav ul {
  display: flex;
  list-style: none;
}

.top-nav nav ul li a {
  color: #fff;
  text-decoration: none;
  margin: 0 2vw;
  text-transform: uppercase;
  font-size: 2vmin;
}


/* Header Section */
.header-wrapper {
  width: 100%;
  height: 50vh;

  margin: 0 auto;
  background: #000;
  
}

.header-wrapper .header-image {
  width: 100%;
  height: 100%;

}

.header-wrapper .header-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill; 
}

.header-wrapper .header-title {
  align-self: center;
  padding-left: 10%;
  
  position: absolute;
  margin-top: 10%;

}

.header-wrapper h1.main-heading {
  color: #fcfcfc;
  font-family: "Dancing Script", cursive;
  font-size: 5vmax;
}

.header-wrapper p.main-subheading {
  color: #fcfcfc;
  font-size: 1.25vmax;
  
}

a.btn {
  background: #ffe259;
  color: #000;
  text-decoration: none;
  padding: 8px 24px;
  display: inline-block;
  font-size: 16px;
}




/* Blog Section */
.posts-wrapper {
  position: relative;
  width: 100%;
  height: 80vh;

  padding-top: 10%;
  margin-top: 25%;

}


h2 {
  font-size: 24px;
  text-transform: uppercase;

  margin-top: 0;
  
  position: absolute;
}

h2::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 48px;
  background: #ffe259;
  bottom: -8px;
  left: 0;
}



.blogpost-card {
  padding-bottom: 10%;
  border-bottom: 1px solid #bbafaf;
  padding-top: 2%;

  position: absolute;
  margin-top: 10%;
  
  height: 60%;
  width: 100%;

}

.blogpost-card .thumbnail-image {
  
  /* padding: center;  */
  height: 80%;
  width: 40%;
  position: absolute;
  left: 5%;


}

.blogpost-card .thumbnail-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain; 
} 

.blogpost-card .post-abs {
  height: 100%;
  position: absolute;
  margin-left: 50%;
 
  
}

.blogpost-card h3 {
  font-family: "Dancing Script", cursive;
  font-size: 36px;
  margin: 20% 0 5% 0;
}

.blogpost-card .post-abs a{
  color:#000;
  text-decoration: none;
}


.blogpost-card .post-meta {
  font-size: 14px;
  background: #000;
  color: #fcfcfc;
  display: inline-block;
  padding: 2% 5%;
  margin-left: 15%;
  
}



/* Footer */

footer {
  background: #000;
  color: #fcfcfc;
  padding: 2%;
  margin-top: 5%;

  width: 100%;
}

footer a {
  color: #fcfcfc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-container {
  display: flex; 

  height: 25vh;
  width: 100%;
}

footer .footer-left {
  position: absolute;
  margin-left: 5%;
  margin-top: 3%;

  height: 6vh;
  width: 3vw;

}

footer .footer-left img{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit:fill; 

}


footer .footer-center {
  position: absolute;
  margin-left: 35%;
  
  height: 10%;
  
}

footer ul {
  list-style: none;
  margin-top: 1vh;
  margin-right: 1vw;
  
}

footer ul li {
  margin: 1vh 1vw;
  margin-top: 2vh;
}


footer .footer-right {    
  padding: center;
  position: absolute;
  margin-left: 60%;

}


footer .footer-right ul li{
  text-align: center;
  margin-left: 0px;
  margin-top: 2vh;

}

footer .social-icons {
  margin-top: 3vh;
  background: #000;
  padding: center;
  max-width: 30vw;
  border-radius: 1%;
  padding-left: 2vw;

  width: 30vw;
  height: 6vh;
  

}

footer .social-icons img {
  margin: 0px 1vw;
  padding: center;

  object-fit:fill;
}

footer .social-icons a {
  text-decoration: none;
      
}



footer .footer-right p {
  margin-top: 1vh;
  
  padding: center;

}

footer .footer-right h4 {
  
  padding-inline: center;

}



/* Search Bar */

.top-nav .search-container {
  position: absolute;
  right: 0;
  top: 24px;
  opacity: 0;
  pointer-events: none;
  transition: 400ms;
}

.top-nav .search-container.active {
  top: 40px;
  opacity: 1;
  pointer-events: auto;
}

.top-nav .wrapper {
  position: relative;
}

.top-nav .search-container input[type="text"] {
  padding: 8px 24px;
  border: 0;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2);
}

.top-nav .search-container input[type="submit"] {
  padding: 8px 24px;
  background: #ffe259;
  border: 1px solid #ffe259;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2);
}

/* Read More Button */

.post-body {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.post-body::after {
  content: "";
  height: 100px;
  width: 100%;
  position: absolute;
  bottom: 0;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 48%,
    rgba(255, 255, 255, 0.7) 77%,
    rgba(236, 252, 255, 0) 100%
  );
}

.post-body .read-more-container {
  position: absolute;
  bottom: 16px;
  z-index: 100;
  text-align: center;
  left: 0;
  right: 0;
}

.post-body .read-more-container .read-more {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

/* Hidden Items */

.mobile-menu-icon,
.mobile-menu-container,
.menu-close-icon {
  display: none;
}

/* Media Queries */

@media (max-width: 600px) {
  /* Top Nav */

  .top-nav nav,
  .top-nav .search-icon,
  .top-nav .search-container {
    display: none;
  }

  .wrapper {
    width: 100%;
    padding: 0 16px;
  }

  .top-nav .mobile-menu-icon {
    display: block;
    cursor: pointer;
  }

  /* Header */

  .header-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .header-wrapper .hero {
    display: block;
    height: 100vh;
    position: relative;
  }

  .header-wrapper .hero .hero-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100px;
  }

  .header-wrapper .hero .hero-left {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 32px;
  }

  .header-wrapper .hero h1.main-heading {
    font-size: 48px;
    margin-bottom: 12px;
  }

  .header-wrapper a.btn {
    width: 160px;
    text-align: center;
  }

  /* Blog Posts */

  .posts-wrapper .blogpost-card .thumbnail-image > img {
    height: 220px;
  }

  h3.post-title {
    font-size: 32px;
    margin-top: 24px;
  }

  /* Popular Posts */

  .popular-posts-container {
    box-shadow: unset;
    padding: 16px;
  }

  .popular-posts-container .popular-posts {
    flex-direction: column;
  }

  .popular-posts .popular-post {
    margin: 16px 0;
  }

  /* Contact Us */

  .contact-container {
    box-shadow: unset;
    padding: 16px;
  }

  /* Footer */

  .footer-container {
    flex-direction: column;
  }

  .footer-container .footer-center {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .footer-container .footer-right {
    text-align: center;
  }

  .footer-container .footer-right .social-icons {
    margin: 20px auto;
    margin-bottom: 60px;
  }

  /* Mobile Navigation Menu */

  .top-nav .mobile-menu-container {
    display: flex;
    position: fixed;
    background: #222;
    height: 100vh;
    z-index: 200;
    left: 0;
    right: 0;
    top: -100%;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 500ms cubic-bezier(0.03, 0.95, 0.11, 1.09);
  }

  .top-nav .mobile-menu-container.active {
    opacity: 1;
    pointer-events: auto;
    top: 0;
  }

  .top-nav .mobile-menu-container ul {
    list-style: none;
    text-align: center;
  }

  .top-nav .mobile-menu-container ul li {
    margin: 16px 0;
  }

  .top-nav .mobile-menu-container ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
  }

  .top-nav .mobile-menu-container.active + .menu-close-icon {
    display: flex;
    z-index: 300;
    cursor: pointer;
    padding: 16px;
    background: #000;
    border-radius: 50%;
    margin: 4px;
  }
}
