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

html {
    font-family: "Roboto", sans-serif;
}

body {
    background: #00FF00;
}

.wrapper {
    width: 1152px;
    margin: 0 auto;
    padding: 0 120px;
}

.wrapper p {
    line-height: 2;
    margin-bottom: 20px;
}

.top-nav {
    position: fixed;
    left: 0;
    right: 0;
    background: #000000;
    padding: 4px 0;
    z-index: 200;
}

.top-nav .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 42px;
    font-family: 'Poppins', sans-seri;
    font-weight: 900;
}

.top-nav .logo-icon img {
    transition: 0.5s;
}

.top-nav .logo-icon img:hover {
    transform: translateY(-5px);
}

.top-nav .search-icon img {
    cursor: pointer;
    transition: 0.5s;
}

.top-nav .search-icon img:hover {
    transform: translateY(-5px);
}

.top-nav nav ul {
    display: flex;
    list-style: none;
}

.top-nav nav ul li a {
    color: #00fd00;
    text-decoration: none;
    margin: 0 20px;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.5s;
}

.top-nav nav ul li a:hover {
    /* color: #1999; */
    background-color: #00ff00;
    font-size: 17;
    padding: 5px 5px;
    letter-spacing: 5px;
    color: #000000;
}


/* Hero Section */

.header-wrapper {
    max-width: 1152px;
    margin: 0 auto;
    background: #000000;
    height: 100vh;
}

.header-wrapper .hero {
    display: flex;
}

.header-wrapper .hero .hero-left,
.header-wrapper .hero .hero-right {
    flex: 1;
}

.header-wrapper .hero .hero-left {
    padding-left: 100px;
    align-self: center;
}

.header-wrapper .hero h1.main-heading {
    color: #00fd00;
    font-size: 64px;
    font-family: 'Poppins', sans-seri;
}

.header-wrapper .hero p.main-subheading {
    color: #00fd00;
    font-size: 16px;
    margin-bottom: 24px;
}

a.btn {
    background: #00fd00;
    color: #000000;
    text-decoration: none;
    padding: 8px 24px;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    transition: 0.4s;
}

a.btn:hover {
    /* transform: scale(1.1) translateY(6px) translateX(6px); */
    letter-spacing: 2px;
    border-radius: 15px;
    /* color: #00fd00;
    background: #000; */
}


/* Blog section */

h2 {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 35px;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 48px;
    background: #00fd00;
    bottom: -8px;
    left: 0;
}

.posts-wrapper {
    padding-top: 100px;
}

.blogpost-card .thumbnail-image {
    position: relative;
}

.blogpost-card .thumbnail-image>img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.blogpost-card .thumbnail-image .post-labels {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #00fd00;
    padding: 8px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.4);
}

.blogpost-card .thumbnail-image .post-labels img {
    margin: 10px;
}

.blogpost-card .thumbnail-image a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.blogpost-card {
    padding-bottom: 50px;
    border-bottom: 1px solid #000000;
    padding-top: 100px;
}

.blogpost-card:nth-of-type(1) {
    padding-top: 16px;
}

.blogpost-card h3 {
    font-family: 'Poppins', sans-seri;
    font-size: 36px;
    margin: 42px 0 12px 0;
}

.blogpost-card .post-meta {
    font-size: 14px;
    background: #000000;
    color: #00fd00;
    display: inline-block;
    padding: 4px 18px;
    border-radius: 10px;
    margin-left: 24px;
    margin-bottom: 24px;
}


/* Popular Posts */

.popular-posts-container {
    box-shadow: 0, 4px 13px -3px rgba(0, 0, 0, 0.4);
    padding: 32px;
    margin-top: 100px;
}

.popular-post {
    margin: 0 8px;
}

.popular-post h3.title {
    font-family: 'Poppins', sans-seri;
    font-size: 26px;
    margin-top: 16px;
}

.popular-posts-container .popular-posts {
    display: flex;
}

.popular-post .thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}


/* contact us container */

.contact-container {
    margin-top: 100px;
    box-shadow: 0, 4px 13px -3px rgba(0, 0, 0, 0.4);
    padding: 32px;
}

.contact-container form {
    display: flex;
    flex-direction: column;
}

.contact-container form input[type='text'],
.contact-container form textarea {
    padding: 8px 24px;
    font-family: "Roboto", sans-serif;
    margin-bottom: 10px;
}

.contact-container form input[type='submit'] {
    background: #000;
    color: #00fd00;
    width: 120px;
    padding: 8px 20px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 10px;
    transition: 0.5s;
}

.contact-container form input[type='submit']:hover {
    letter-spacing: 3px;
    border-radius: 18px;
}


/* Footer */

footer {
    background: #000000;
    color: #00fd00;
    padding: 30px;
}

footer a {
    color: #00fd00;
    text-decoration: none;
}

footer .footer-center a {
    padding: 4px 5px;
    font-weight: 800;
    transition: 0.5s;
}

footer .footer-center a:hover {
    /* letter-spacing: 2px; */
    color: #000;
    background: #00fd00;
    /* text-decoration: underline; */
}

footer .footer-container {
    display: flex;
    justify-content: space-around;
}

footer .footer-left {
    align-self: center;
}

footer .footer-left img {
    transition: 0.6s;
}

footer .footer-left img:hover {
    transform: translateY(-10px);
}

footer ul {
    list-style: none;
    margin-top: 16px;
}

footer ul li {
    margin: 12px 8px;
}

footer .social-icons {
    margin-top: 20px;
    background: #f111;
    padding: 10px;
    max-width: 260px;
    border-radius: 10px;
}

footer .social-icons img {
    margin: 0 20px;
    transition: 0.5s;
    width: 17px;
}

footer .social-icons a {
    text-decoration: none;
}

footer .social-icons img:hover {
    transform: translateY(-10px);
}

footer .footer-right p {
    margin-top: 20px;
}


/* search bar */

.top-nav .search-container {
    position: absolute;
    right: 0;
    top: 24px;
    opacity: 0;
    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="search"] {
    padding: 8px 24px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2);
}

.top-nav .search-container input[type="submit"] {
    padding: 8px 24px;
    background: #00fd00;
    border: 1px solid #00fd00;
    border-radius: 10px;
    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(0, 255, 0);
    background: linear-gradient(180deg, rgba(0, 255, 0, 0) 1%, rgba(0, 255, 0, 0.5298494397759104) 26%, rgba(0, 255, 0, 0.7399334733893557) 43%, rgba(0, 255, 0, 1) 56%);
}

.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;
    padding: 7px;
    border-radius: 8px;
    background: #000000;
    color: #00fd00;
    transition: 0.5s;
}

.read-more-container .read-more:hover {
    letter-spacing: 3px;
    border-radius: 30px;
}


/* hidden items  */

.mobile-menu-icon,
.mobile-menu-container,
.menu-close-icon {
    display: none;
}


/* media quries */

@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: #00fd00;
        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: #000000;
        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;
    }
}