/*----Google Fonts----*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/*----variables----*/

*{
    font-family: 'poppins' , sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    box-sizing: border-box;
}


:root{
    --container-color: #0000;
    --second-color:  #ff4d29;
    --text-color:  #172317;
    --bg-color: #fff;
    --brand: #ff4d29;
}

::selection{
    color: var(--bg-color);
    background: var(--second-color);
}


a{
    text-decoration: none;
}

/*li{ 
    list-style: none;
}*/

img{
    width: 100%;
}

section{
    padding: 3rem 0 2rem ;
}


.container{
    max-width: 1068px;
    margin: auto;
    width: 100%;
    
}

/*---header---*/

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
}

header.shadow{
    background: var(--bg-color);
    box-shadow: 0 1px 4px hsla(0, 57%, 41%, 0.1);
    transition: 0.4s;
}

header.shadow.logo{
    color: var(--text-color);
}


.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}


.logo{
    font-size: 1.3rem;
    color: var(--second-color);
    text-decoration: none;
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
    padding: 5px;
    border-radius: 10px;
    text-decoration: none;
}

.login{
    padding: 8px 14px;
    text-transform: uppercase;
    font-weight: 500px;
    border-radius: 4px;
    background: var(--second-color);
    color: var(--bg-color);
}

.login:hover{
    background: hsl(24, 98%, 58%);
    transition: 3s;
}



/* ---Home---- 

.home{
    width: 100%;
    min-height: 140px;
    background: var(--container-color);
    display: grid;
    justify-content: center;
    align-items: center;
}

.home-text{
    color: var(--bg-color);

}

.home-title{
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
}

.home-subtitle{
    text-align: center;
}*/




/* ---Post Filter--- 

.post-filter{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    margin-top: 2rem !important;
}

#search-container{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    margin-top: 2rem !important;
}

#search-container input {
    background-color: transparent;
    width: 40%;
    border-bottom: 2px solid #110f29;
    padding: 1em 0.3em;
  }
  
#search-container input:focus {
    border-bottom-color: #6759ff;
  }

  #search-container {
    margin: 1em 0;
  }


.filter-item{
    font-size: 0.9rem ;
    font-weight: 500;
    cursor: pointer;
}

.active-filter{
    background-color: var(--second-color);
    color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 4px;
}*/


/* Posts 

.post{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,auto));
    justify-content: center;
    gap: 1.5rem;
}

.post-box{
    background: var(--bg-color);
    box-shadow: 0 4px hsl(355deg 25% 15%/10%);
    padding: 15px;
    border-radius: 0.5rem;
}

.post-img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;

}

.category{
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--second-color);
}

.post-title{
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    /* To remain Title in 2 line  
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-date{
    display: flex;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 4px;
}

.post-description{
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin: 5px 0 10px;
    /* To remain description in 3 line 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile{
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--second-color);

}

.profile-name{
    font-size: 0.82rem;
    font-weight: 500;
}*/


/* Post Content */

.post-header{
    width: 100%;
    height: 200px;
    background-color: var(--container-color);
}

.post-container{
    max-width: 1000px;
    margin: auto;
    width: 100%;
}

.header-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem !important;
}

.back-home{
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 0rem;
}

.consultation{
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
}

.header-title{
    
    font-size: 1.5rem;
    color: var(--bg-color);
    text-align: center;
    margin-top: 2.5rem;
}

.header-img{
    width: 100%;
    height: 420px;
    object-fit: cover;

}

.post-content{
    margin-top: 0.5rem !important;
}

.sub-heading{
    font-size: 1.2rem;
}

.post-text{
    font-size: 1rem;
    line-height: 1.7rem;
    margin: 1rem 0;
    text-align: justify;
}


/* share 

.share{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
}

.share-title{
    font-size: 1.1rem;
}

.bx{
    color: #fd8f44;
    
}*/




/* Responsive */

@media (max-width: 1060px){
    .container{
        margin: 0 auto;
        width: 95%;
    }

    .home-text{
        width: 100%;
    }
}

@media (max-width: 800px){
    .nav{
        padding: 14px 0;
    }

    .post-container{
        margin: 0 auto;
        width: 95%;
    }
}

@media (max-width: 768px){
    .nav{
        padding: 10px 0;
    }

    section{
        padding: 2rem 0;
    }

    .header-content{
        margin-top: 3rem !important;
    }
    .home {
        min-height: 380px;
    }

    .home-title{
        font-size: 2rem;
    }
    .header-img{
        height: 370px;
    }

    .post-header{
        height: auto;
    }

    .post-content{
        margin-top: 1rem !important;
    }
}

@media (max-width: 570px){
    .post-header{
        height: auto;
    }

    .header-title{
        width: 100%;
    }
    .header-img{
        height: 340px;
    }
}

@media (max-width: 450px){
    .home-title{
        font-size: 2rem;
    }

    .home-subtitle{
        font-size: 0.9rem;
    }
    .home{
        min-height: 300px;
    }
    .post-box{
        padding: 10px;
    }
    .header-title{
        font-size: 1.4rem;
    }
    .header-img{
        height: 240px;
    }

    .nav{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        padding:  0;
        
    }

    .consultation{
        display: flex;
        flex-direction: column;
        margin: 2px;
        padding: 10px;
        text-align: center;
        border-radius: 10px;
        text-decoration: none;
    }

    .nav a{
        padding: 10px;
        margin: 5px;
        
    }

    .post-header{
        height: auto;
        padding-top: 100px;
    }

    .post-content{
        margin-top: 0.5rem !important;
    }

    .post-text{
        font-size: 0.875rem;
        line-height: 1.5rem;
        margin: 10px 0;
    }

}

