/*
Theme Name: WP Project1
Author: Jelson Alfarero
Description: Custom WordPress Project
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url(/wp-content/themes/wpproject1/images/banner.png);
    background-size: cover;
    background-position: center;
}

.logo {
    width: 146px;
    cursor: pointer;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 7%;
}

.nav-links li {
    list-style: none;
    display: inline-block;
    margin: 10px 30px;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
}

.register-btn {
    background: #fff;
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.container {
    padding: 0 7%;
}

.header h1 {
    font-size: 4vh;
    font-weight: 500;
    color: #fff;
    text-align: center;
    padding-top: 22%;
}

.search-bar {
    background: #fff;
    width: 72%;
    margin: 30px auto;
    padding: 6px 10px 6px 30px;
    border-radius: 50px;
}

.search-bar form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.search-bar form input {
    display: block;
    border: 0;
    outline: none;
    background: transparent;
}

.search-bar form button {
    background-color: #ff5361;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 0;
    outline: none;
    cursor: pointer;
}

.search-bar form button img {
    width: 15px;
    margin-top: 7px;
}

.location-input {
    flex: 1;
}

.search-bar form label {
    font-weight: 600;
}

/*Exclusives*/

.sub-title {
    margin: 50px 0 20px;
    font-size: 2.2vw;
    font-weight: 500;
    color: #333;
}

.exclusives {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 30px;
}

.exclusives div img {
    width: 100%;
    border-radius: 10px;
}

.exclusives div {
    position: relative;
}

.exclusives div span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

/*Trending Places*/

.trending {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(192px, 1fr));
    grid-gap: 30px;
    margin-bottom: 30px;
}

.trending div img {
    width: 100%;
    border-radius: 10px;
}

.trending h3 {
    font-weight: 600;
    margin-top: 10px;
}

/*Call to Action*/

.cta {
    margin: 80px 0;
    background-image: linear-gradient(to right, #3f2321, transparent), url(/wp-content/themes/wpproject1/images/banner-2.png);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    padding: 5%;
    color: #fff;
}

.cta h3 {
    font-size: 4vw;
    line-height: 5.3vw;
    font-weight: 500;
}

.cta p {
    font-size: 18px;
    margin: 10px 0;
}

.cta-btn {
    background: #ff5361;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    margin-top: 20px;
    display: inline-block;
}

/*custom post query*/

.post-link {
    text-decoration: none;
}

.post-link:hover {
    text-decoration: underline;
}

.container-query {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px
}

.container-query .post-query a img {
    width: 100%;
    border-radius: 10px;
}

.container-query .post-query {
    position: relative;
    text-align: center;
}

.container-query .post-query a h3 {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

/*archive and index post; shared style*/

.post-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 15px 50px;
}

.post-container .post a img {
    width: 100%;
    border-radius: 10px;
}

.post-container .post {
    position: relative;
    text-align: center;
}

.post-container .post a h3 {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination span {
    letter-spacing: 1.2;
    color: #333;
    background:#ddd;
    padding: 4px;
    border-radius: 4px;
}

/*index.php subtitle style*/
.sub-title-blog {
    margin: 50px 50px 0 50px;
}

/*archive.php subtitle style*/

.sub-title-trending {
    margin: 50px 50px 0 50px;
}

/*single.php style*/
.single-container {
    margin: 40px 160px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.single-container .content {
    grid-column: 1 / 4;
}

.single-container aside {
    grid-column:  4 / 5;
}

.single-container aside li {
    margin-top: 8px;
    list-style: none;
}

.single-container aside li form button {
    background: #551A8B;
    color: #fff;
    padding: 0 8px;
    border-radius: 5px;
    text-transform: uppercase;
}

.single-container aside li form button:hover {
    background: #fff;
    color: #551A8B;
    padding: 0 8px;
    border-radius: 5px;
    text-transform: lowercase;
}

.single-container aside li ul li a {
    text-decoration: none;
}

.single-container aside li ul li a:hover {
    text-decoration: underline;
}

.content article  h2 {
    font-weight: 500;
}

.content article .single-post-img {
    height: 100%;
    width: 100%;
}

.content article .post-author {
    margin-bottom: 20px;
}

.content article div em {
    font-size: small;
}

.content article .post-comment {
    margin-top: 20px;
}

/*comment section*/
#comments-section {
    border-top: 2px solid #eee;
    padding: 8px;
}

.comment-form {
    display: flex;
    flex-direction: column;
}

.comment-form input, .comment-form textarea {
    margin-bottom: 16px;
}

.comment-note {
    text-align: center;
    color: #ae4e4e;
}

#comments-section textarea {
    height: 160px;
}

.form-submit .submit, .wpcf7 .wpcf7-submit {
    background: #fff;
    font-weight: 700;
    width: 100%;
    padding: 8px;
    border: 2px solid #000;
    height: 40px;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: initial;
}

.form-submit .submit:hover, .wpcf7 .wpcf7-submit:hover {
    background: #333;
    color: #fff;
}

.comment-reply-title {
    text-align: center;
}

/*page.php style*/
.page-container {
    margin: 40px 160px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.page-container article {
    grid-column: 1 / 4;
}

.page-container aside {
    grid-column:  4 / 5;
}

.page-container aside li {
    margin-top: 8px;
    list-style: none;
}

.page-container aside li form button {
    background: #551A8B;
    color: #fff;
    padding: 0 8px;
    border-radius: 5px;
    text-transform: uppercase;
}

.page-container aside li form button:hover {
    background: #fff;
    color: #551A8B;
    padding: 0 8px;
    border-radius: 5px;
    text-transform: lowercase;
}

.page-container aside li ul li a {
    text-decoration: none;
}

.page-container aside li ul li a:hover {
    text-decoration: underline;
}

.page-container article h2 {
    font-weight: 500;
}

.page-container article p {
    margin-bottom: 10px;
}

.page-container article .page-post-image {
    height: 450px;
    width: 100%;
}

/*Comments List*/
.comments {
    margin-top: 24px;
    border-top: 2px solid #fff;
}

.all-comments li {
    list-style: none;
    margin-bottom: 16px;
}

.all-comments .comment-meta {
    background: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.all-comments .vcard {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.all-comments .photo {
    border-right: 8px solid transparent;
    border-bottom: 4px solid transparent;
}

.all-comments .says {
    display: none;
}

.all-comments .reply {
    font-weight: bold;
}

.all-comments .children {
    margin-top: 16px;
    padding-left: 32px;
}

.start-btn {
    text-decoration: none;
    background: #ff5361;
    color: #fff;
    width: 80%;
    max-width: 350px;
    display: block;
    text-align: center;
    margin: 60px auto;
    padding: 15px;
    border-radius: 30px;
    font-size: 20px;
}

/*About-Message*/

.about-msg {
    text-align: center;
    margin: 80px 0;
    columns: #333;
    font-size: 17px;
}

.about-msg h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 500;
}

/*Contact form*/
.wpcf7 input, .wpcf7 textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0 16px;
    height: 42px;
}

.wpcf7 textarea {
    height: 100px;
}

/*No result page*/
.no-results {
    text-align: center;
}

.no-results ul {
    list-style: none;
}

.no-results h2 {
    color:#551A8B;
}

/*404 page*/
.container-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.container-404 h2, .container-404 h3 {
    margin: 8px 0;
}

.container-404 img {
    width: 480px;
}

/*Footer*/

.footer {
    margin: 80px 0 10px;
    text-align: center;
}

.footer a {
    text-decoration: none;
    color: #999;
    font-size: 22px;
    margin: 0 10px;
}

.footer hr {
    background: #999;
    height: 1px;
    width: 100%;
    border: 0;
    margin: 20px 0;
}

.footer p {
    padding-bottom: 15px;
}

.active {
    position: relative;
}

.active:after {
    content: '';
    background: #fff;
    width: 25px;
    height: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    border-radius: 2px;
}

nav .fa-bars {
    display: none;
}

/* for small screen devices*/

@media only screen and (max-width: 768px) {
    .logo {
        position: fixed;
        top: 6%;
        left: 7%;
    }

    nav {
        position: fixed;
        top: 0;
        z-index: 100;
        display: inline-block;
        width: 100%;
        padding: 100px 7% 0;
        background: #000;
        text-align: right;
        max-height: 100px;
        overflow: hidden;
        transition: max-height 0.5s;
    }

    nav .nav-links li {
        margin: 10px 0;
        display: block;
    }

    .register-btn {
        margin: 15px 0 30px;
        display: inline-block;
    }

    nav .fa-bars {
        display: block;
        position: fixed;
        top: 6%;
        right: 7%;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
    }

    .active:after {
        left: -40px;
        transform: translateX(0, 50%);
        bottom: 50%;
    }

    .show-menu {
        max-height: 300px;
    }

    .header h1{
        padding: 200px auto;
        font-size: 5vw;
    }

    .search-bar {
        width: 90%;
        margin: 15% auto 30;
        padding: 20px 10px 30px;
        border-radius: 5px;
        position: relative;
    }

    .search-bar form {
        display: block;
    }

    .search-bar form input {
        border-bottom: 1px solid #ddd;
        width: 100%;
        margin-bottom: 20px;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .search-bar form button {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 50%);
    }

    .blog-stories {
        text-decoration: none;
    }

    .blog-container .blog a h3 {
        font-size: 16px;
        font-weight: 500;
    }

    .sub-title {
        font-size: 6vw;
    }

    .cta {
        padding: 15% 5%;
    }

    .cta h3 {
        font-size: 7vw;
        line-height: 8vw;
    }

    .cta p {
        font-size: 14px;
    }

    .cta-btn {
        padding: 6px 15px;
        border-radius: 4px;
        margin-top: 10px;
        font-size: 14px;
    }

    /*single.php style*/
    .single-container {
        margin: 20px 80px;
    }

    .single-container h2 {
        font-weight: 500;
        font-size: large;
        padding: 20px 0;
        text-align: center;
    }

    .single-container .single-post-img {
        height: 400px;
        width: 600px;
    }

    .about-msg {
        font-size: 15px;
    }
}

@media only screen and (max-width: 425px) {
    .logo {
        position: fixed;
        top: 6%;
        left: 7%;
    }

    nav {
        position: fixed;
        top: 0;
        z-index: 100;
        display: inline-block;
        width: 100%;
        padding: 100px 7% 0;
        background: #000;
        text-align: right;
        max-height: 100px;
        overflow: hidden;
        transition: max-height 0.5s;
    }

    nav .nav-links li {
        margin: 10px 0;
        display: block;
    }

    .register-btn {
        margin: 15px 0 30px;
        display: inline-block;
    }

    nav .fa-bars {
        display: block;
        position: fixed;
        top: 6%;
        right: 7%;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
    }

    .active:after {
        left: -40px;
        transform: translateX(0, 50%);
        bottom: 50%;
    }

    .show-menu {
        max-height: 300px;
    }

    .header h1{
        padding: 200px auto;
        font-size: 5vw;
    }

    .search-bar {
        width: 90%;
        margin: 15% auto 30;
        padding: 20px 10px 30px;
        border-radius: 5px;
        position: relative;
    }

    .search-bar form {
        display: block;
    }

    .search-bar form input {
        border-bottom: 1px solid #ddd;
        width: 100%;
        margin-bottom: 20px;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .search-bar form button {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 50%);
    }

    .blog-stories {
        text-decoration: none;
    }

    .blog-container .blog a h3 {
        font-size: 16px;
        font-weight: 500;
    }

    .sub-title {
        font-size: 6vw;
    }

    .cta {
        padding: 15% 5%;
    }

    .cta h3 {
        font-size: 7vw;
        line-height: 8vw;
    }

    .cta p {
        font-size: 14px;
    }

    .cta-btn {
        padding: 6px 15px;
        border-radius: 4px;
        margin-top: 10px;
        font-size: 14px;
    }

    /*single.php style*/
    .single-container {
        margin: 20px 10px;
    }

    .single-container h2 {
        font-weight: 500;
        font-size: large;
        padding: 20px 0;
        text-align: center;
    }

    .single-container .single-post-img {
        height: 320px;
        width: 320px;
    }

    .about-msg {
        font-size: 15px;
    }
}

