* {
    margin: 0;
    padding: 0;
}


/* header */

.header {
    background-image: url("../images/subheader.jpg");
    height: 50vh;
    width: 100vw;
    background-size: cover;
    background-repeat: no-repeat;
    filter: contrast(100%) brightness(50%);
}

.header-content {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    gap: 30%;
    height: 50vh;
    width: 100vw;
}

.header-content>h1 {
    color: white;
    font-weight: 1000;
    font-size: 40px;
    text-align: center;
}

.header-content>button {
    height: 50px;
    width: 150px;
    border-radius: 80px;
}

.header-content>button>a {
    text-decoration: none;
    color: orange;
    font-weight: 600;
}


/* main box */

.main-content {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.border-style {
    border: 2px solid #efefef;
    padding: 30px;
    background-color: #fff
}

.box2,
.box1 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.box2 {
    margin-top: 101px;
}


/* search */

.popular-tags,
.search {
    position: relative;
    height: 100px;
    width: 270px;
    line-height: 30px;
}

input {
    background-color: #f8f8f8;
    color: #6e6e6e;
    height: 45px;
    width: 80%;
    border: none;
    outline: none;
    border-radius: 20px;
    padding-left: 20px;
}

.search>button {
    position: absolute;
    top: 60px;
    left: 250px;
    height: 45px;
    width: 50px;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    background-color: #ca9b5f;
    border: none;
}

.search>button:hover {
    cursor: pointer;
    background-color: #8d6634;
}

.popular-tags>h3,
.search>h3 {
    margin-top: -18px;
    margin-bottom: 18px;
    margin-left: 10px;
    font-size: x-large;
}

.fas {
    color: white;
}


/* recent posts */

.recent-posts {
    height: 420px;
}

.recent-posts>div {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #f0d6b5;
    padding-top: 20px;
}

.recent-posts>div>img {
    border-radius: 50%;
    height: 70px;
    width: 70px;
    transition: transform 0.2s;
}

.recent-posts>div>img:hover {
    transform: rotate(20deg);
    cursor: pointer;
}

.recent-posts>div>a {
    text-decoration: none;
    line-height: 1;
    font-weight: 600;
    color: black;
}

.recent-posts>div>a>span {
    font-size: 12px;
}

.recent-posts>div>a:hover {
    color: #8d6634;
}

.fa {
    padding: 10px;
    font-size: 15px;
    width: 20px;
    text-align: center;
    text-decoration: none;
    margin: 10px 4px;
    border-radius: 50%;
    background-color: #efefef;
    color: black;
}

.fa:hover {
    background-color: #ca9b5f;
    color: white;
}


/* twitter-feed */

.twitter-feed {
    height: 500px;
}

.twitter-feed>div {
    display: flex;
    gap: 20px;
}

.twitter-feed>div>a {
    height: 10px;
    background: none;
    color: #8d6634;
}

.twitter-feed>div>p>span {
    font-weight: 1000;
    /* color: red; */
}

.twitter-feed>div>p {
    line-height: 1.3;
}

.twitter-feed>div>a:hover {
    background: none;
    color: #8d6634;
    cursor: default;
}

hr {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #ddb889;
}


/* popular tags */

.popular-tags {
    line-height: 2.2;
    height: 150px;
}

.popular-tags>button {
    background-color: #efefef;
    border: none;
    outline: none;
    height: 30px;
    width: 80px;
    border-radius: 100px;
    font-weight: bold;
}

.popular-tags>button:hover {
    cursor: pointer;
    color: white;
    background-color: #ca9b5f;
}


/* ------------------   box-2 starts here   -------------------- */

.card-images {
    height: 200px;
    width: 300px;
    margin-bottom: 20px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 10px #f0eded;
}

.card>a {
    text-decoration: none;
    color: black;
    font-weight: 1000;
    width: 250px;
}

.card>a:hover {
    color: #ca9b5f;
}

.card>a:hover {
    color: #ca9b5f;
}

.card>img:hover {
    cursor: pointer;
}

.admin,
.date {
    text-decoration: none;
}

.card>p {
    width: 250px;
    margin-bottom: 25px;
}

.card>button {
    position: absolute;
    top: 191px;
    left: 212px;
    border: none;
    background-color: #ca9b5f;
    color: white;
    height: 25px;
    width: 80px;
    border-radius: 20px;
}

.card>button:hover {
    cursor: pointer;
    background-color: #bb833a;
}

@media screen and (max-width:550px) {
    .header-content {
        flex-direction: column;
        gap: 10%;
    }
}