@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

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

:root{
    --black: #1c1c1c;
    --grey: #7E7E7E;
    --grey-light: #e4e4e4;
    --red: #b30000;
    --font-size-base: 1rem;
    --font-size-md: clamp(1.25rem, 0.61vh + 1.1rem, 1.58rem );
    --font-size-lg: clamp(1.56rem, 1vh + 1.31rem, 2.11rem);
    --font-size-xl: clamp(2.44rem, 2.38vh + 1.85rem, 3.75rem);
    --border-radius: 10px;
}


body{
    color: var(--black) !important;
    font-size: var(--font-size-base);
    font-family: "Poppins", sans-serif !important;
    background-color: #FAF5EE ;
    background-image: url("/img/img-noise.webp");
    margin: 0;
}


a{
    color: var(--black) !important;
}
a:hover{
    color: var(--black);
    text-decoration: none !important;
}
h1{font-size: var(--font-size-xl);}
h2{font-size: var(--font-size-lg);}
h3{font-size: var(--font-size-md);}


input[type="search"]{
    border: 2px solid var(--black);
    outline: none;
}

.goButton{
    padding: 3px 10px !important;
    margin: 0px 5px !important;
}

.form-control{
    background-color: #f6f6f6 !important;
    color: #1c1c1c !important;
}

.form-group{
    padding: 10px;
}

.form-group label{
    color: #1c1c1c;
    font-weight: 600 !important;
}


.filter-form input{
    padding: 4px 7px;
    border-color: whitesmoke;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    background-color: #f6f6f6;
    width: 25%;   
}

.filter-form input:first-child{
    margin-right: 30px;
}

.login__field {
    position: relative;
}

.login__field button {
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
}





input[type="text"],
input[type="password"],
input[type="search"],
textarea,
select{
    font-size: var(--font-size-base);
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.7rem, 0.75rem;
}
input[type="email"]{
    font-size: var(--font-size-base);
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.7rem, 0.75rem;
    margin-bottom: 1rem;
}

.btn{
    background-color: var(--black);
    border: none;
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    margin: 2px 4px;
    cursor: pointer;
}

.btn:hover{
    color: white;
}

.btn-danger{
    padding: 0 !important;
    font-size: 20px !important;
}

.btn-danger a{
    padding:0 10px !important;

}

.btn-danger a:hover{
    text-decoration: none;
}


.btn-warning1{
    background-color: rgb(20, 52, 164) !important;
    color: white !important;
    border-color:rgba(20, 52, 164, 0.8) !important;
}

.btn-warning1:hover{
    background-color: rgba(20, 52, 164, 0.8) !important;
}


img{
    width: 100%;
    height: auto;
}

.container{
    max-width: 982px;
    margin: 0 auto;
    padding: 0 10px;
}

.container1{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    
    overflow: hidden;
}
.main{
    width: 100%;
    height: auto;
}

.deletebutton:hover{
    background-color: #5a6268 !important;
}


.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:20px 0;
    gap: 20px;
}

.header img{
    max-width: 300px;
    margin-left: 8px;
}


.header_logo{
    grid-area: logo;
    font-size: 35px;
    font-weight: 800;
    text-decoration: none;
    color: teal !important;
    text-decoration: underline;
    text-transform: capitalize;
}

@media screen and (max-width:991px){
    .header_logo{
        font-size: 25px;
    }
}

@media screen and (max-width:767px){
    .header img{
        max-width: 200px;
    }
}

.header img:hover{
    text-decoration: none;
    color: var(--black);
    transform: scale(1.04);
}

.header__button{
    grid-area: button;
    display: flex;
    justify-content: end;
}


.header__button button{
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 2px solid transparent;
    color: var(--black);
    border-radius: var(--border-radius);
    background: none;
    padding: 6px 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
}

.header__button button a{
    margin: 0;
    width: 100%;
    height: 100%;
}

.header__button button:hover{
    border: 2px solid var(--black);
}

.author{
    text-align: center;
    padding: 10px 0;
}

.author_heading{
    margin-top: 10px;
    margin-bottom: 5px;
}

.articles-heading{
    margin-top: 4rem;
    font-weight: 400;

}

.articles_ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: clamp(1.13rem, calc(1.08rem + 0.22vh), 1.25rem);
    display: flex;
    flex-direction: column;
}

.articles_list__date{
    font-size: 1rem;
    color: var(--grey);
    width: 260px;
    display: inline-block;
}


.articles_ul li a{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    margin: 18px 0;
}


@media only screen and (min-width: 1200px){
    .date-time{
        text-wrap: nowrap;
    }
}

@media only screen and (min-width: 768px){
    .articles_ul li a{
        flex-direction: row;
        align-items: center;
    }

    .article_list__date{
        text-align: right;
    }
}

.articles_ul li{
    font-size: 25px;
    cursor: pointer;
    transition: filter 0.1s;
}

.articles_ul li:not(:last-child){
    border-bottom: 3px solid var(--grey-light);
}

.article{
    white-space: nowrap;
    /* padding-top: 30px; */
}

.articles{
    padding-top: 40px;
}


/* for search bar  */


.height{
    display: flex !important; 
    width: 40%;
    flex-wrap: nowrap !important;
    margin-right: -7px !important;
}


.search{
    position: relative;
    width: 400px;
    max-width: 100%;
    }

    .search input{
     height: 40px;
     text-indent: 25px;
     border: 2px solid #d6d4d4;
     font-size: 15px;
    }


    .search input:focus{
     box-shadow: none;
     border: 2px solid #1c1c1c;
    }

    .search .fa-search{
     position: absolute;
     top: 12px;
     left: 11px;
    }

    .search button{
     position: absolute;
     top: 3px;
     right: 3px;
     height: 30px;
     width: 60px;
    }

.searchByMonth{
    padding-left: 10px;
    padding-bottom: 30px;
}



.searchByMonth div a{
    color: #00008B !important;
    font-weight: 600;
    margin-right: 10px;
    margin-left: 10px;
}




@media screen and (max-width:476px){
    .height form{
        display: none !important;
    }
}




input.delete-button{
    background: none;
    color: #e65151;
    border: none;
    padding-top: 8px;
    font-size: 15px;
  
}
input.delete-button:hover{
    color: rgb(240, 47, 8);
    text-decoration: underline;

}

a.edit-button{
    color:  #00008B !important;
    font-weight: 500;
    font-size: 15px

}
a.edit-button:hover{
    color: #0096FF !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.pagination{
    display: flex;
    align-items: center;
    justify-content: center;

}

.pagination li{
    margin-right: 10px;
}

.pagination li:hover a:hover{
    font-weight: 0;
}

/* Responsive Pagination */
@media screen and (max-width: 576px) {
    .pagination {
        text-align: center;
    }
    .pagination li {
        display: inline-block;
        margin-right: 5px;
    }
}


.pagination a.active{
    font-weight: 900;
    text-decoration: underline;
}

.admin-title{
    display: flex;
    align-items: center;
    justify-content: center;
}

.heading{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.heading h2{
    font-weight: 600;
    margin-left: 8px;
}

.heading a{
    font-size: 20px;
}

.deleteForm input:hover{
    background-color: black;
}



.admin-post-controls .btn-secondary{
    padding: 5px 22px !important;
}

.admin-post-controls a:hover{
    font-weight: normal;
}


/* .container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
    overflow: hidden;
} */

.screen {		
	background: whitesmoke;		
	position: relative;	
    min-height: 600px;
	height: 100%;
	width: 360px;	
	box-shadow: 0px 0px 24px rgba(0,0,0,0.7);
    border-radius: 10px;
}

.screen__content {
	z-index: 1;
	position: relative;	
	height: 100%;
}

.screen__background {		
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	-webkit-clip-path: inset(0 0 0 0);
	clip-path: inset(0 0 0 0);	
}

.screen__background__shape {
	transform: rotate(45deg);
	position: absolute;
}

.screen__background__shape1 {
	height: 520px;
	width: 520px;
	background: #FFF;	
	top: -50px;
	right: 120px;	
	border-radius: 0 72px 0 0;
}

.screen__background__shape2 {
	height: 220px;
	width: 220px;
	background: #ddd;	
	top: -172px;
	right: 0;	
	border-radius: 32px;
}

.screen__background__shape3 {
	height: 540px;
	width: 190px;
	background: rgba(0,0,0,0.7);
	top: -24px;
	right: 0;	
	border-radius: 32px;
}

.screen__background__shape4 {
	height: 400px;
	width: 200px;
	background: #ddd;	
	top: 420px;
	right: 50px;	
	border-radius: 60px;
}
.head_login{
    font-size: 20px;
    font-weight: 600;
    background: black;
    color: white;
    width: max-content;
    padding: 10px 14px;
    border-radius: 20px;
    margin-top: -40px;
    margin-left: -15px;
}


.login-logo{
    width: 90px;
    height: 70px;
    position: relative;
    top: -110px;
}



.login-message{
    padding: 10px 0;
}


.login {
	max-width: 320px;
	padding: 30px;
	padding-top: 145px;
}

.login__field {
	padding: 20px 0px;	
	position: relative;	
}

.login__icon {
	position: absolute;
	top: 30px;
	color: var(--black);
}

.login__input {
	border: none;
	border-bottom: 2px solid #D1D1D4;
	background: none;
	padding: 10px;
	padding-left: 24px;
	font-weight: 700;
	width: 75%;
	transition: .2s;
}

.login__input:active,
.login__input:focus,
.login__input:hover {
	outline: none;
	border-bottom-color: var(--black);
}

.login__submit {
	background: #fff;
	font-size: 14px;
	margin-top: 30px;
	padding: 16px 20px;
	border-radius: 26px;
	border: 1px solid #D4D3E8;
	text-transform: uppercase;
	font-weight: 700;
	display: flex;
	align-items: center;
	color: var(--black);
	box-shadow: 0px 2px 2px var(--black);
	cursor: pointer;
	transition: .2s;
}

.login__submit:active,
.login__submit:focus,
.login__submit:hover {
	border-color: var(--black);
	outline: none;
}

.button__icon {
	font-size: 24px;
	margin-left: auto;
	color: var(--black);
}







.searchBar{
    visibility: hidden;
    transform: translateY(-100px);
    padding: 75px 0;
    position: absolute;
    width: 100%;
    top: 0;
    right: 0;
}

.searchBar.open{
    transform: translateY(0);
    transition: transform 0.3s;
}

.searchBar input{
    margin: 0;
    padding: 5px;
}


#searchClose{
    background: black;
    width: 30px;
    height: 38px;
    border: 1px solid black;
    border-radius: 3px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

input[type=search]{
    display: flex;
}

.search-form{
    display: flex;
}


/* user dashboard table  */

.table-responsive {
    margin: 30px 0;
}
.table-wrapper {
    background: #fff;
    padding: 20px 25px;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.table-title {
    padding-bottom: 15px;
    color: #fff;
    padding: 16px 30px;
    margin: -20px -25px 10px;
    border-radius: 3px 3px 0 0;
}
.table-title h2 {
    margin: 5px 0 0;
    font-size: 24px;
}
.table-title .btn {
    color: #566787;
    float: right;
    font-size: 13px;
    background: #fff;
    border: none;
    min-width: 50px;
    border-radius: 2px;
    border: none;
    outline: none !important;
    margin-left: 10px;
}
.table-title .btn:hover, .table-title .btn:focus {
    color: #566787;
    background: #f2f2f2;
}
.table-title .btn i {
    float: left;
    font-size: 21px;
    margin-right: 5px;
}
.table-title .btn span {
    float: left;
    margin-top: 2px;
}
table.table tr th, table.table tr td {
    border-color: #e9e9e9;
    padding: 12px 15px;
    vertical-align: middle;
    text-align: left !important;
}
table.table tr th:first-child {
    width: 60px;
}
table.table tr th:last-child {
    width: 100px;
}
table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fcfcfc;
}
table.table-striped.table-hover tbody tr:hover {
    background: #f5f5f5;
}
table.table th i {
    font-size: 13px;
    margin: 0 5px;
    cursor: pointer;
}	
table.table td:last-child i {
    opacity: 0.9;
    font-size: 22px;
    margin: 0 5px;
}
table.table td a {
    font-weight: bold;
    color: #566787;
    display: inline-block;
    text-decoration: none;
}


@media screen and (min-width: 767px){
    .table-wrapper {
        height: 100%;
    }
}



table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center !important;
}
thead {
    background-color: #f2f2f2;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.35px;
    opacity: 1;
}

/* Responsive design */
@media screen and (max-width: 767px) {
    /* Hide the table header in small screens */
    thead {
        display: none;
    }
    tfoot{
        display: none;
    }
/* 
    tr {
        display: block;
        border: 1px solid #ddd;
        margin-bottom: 10px;
    }

    td {
        display: block;
        text-align: left;
    }

    tr:nth-child(odd) {
        background-color: #f2f2f2;
    } */

    table, tbody, tr, td{
        display: block;
        width: 100%;
    }
    tr{
        margin-bottom: 15px;
    }
    td{
        text-align: right !important;
        padding-left: 50%;
        position: relative;
    }
    table td::before{
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: 600;
        font-size: 14px;
        text-align: left;

    }
    .admin-post-controls{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    input.delete-button{
        padding-top: 0;
    }

    .edit-button{
        padding-left: 0;
    }

}



@media screen and (max-width: 576px) {
   
    .serachBtn{
        font-size: x-small;
    }
    .header__button1 a{
        font-size: medium;
    }
    .articles_heading{
        font-size: 20px !important;
    }
    .heading a{
        font-size: medium;
    }
}


@media screen and (max-width: 400px){
    .pagination{
        font-size: 13px;
    }
}




h1 {
    margin-bottom: 40px;
}

label {
    color: #333;
}

.btn-send {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    width: 80%;
    margin-left: 3px;
    }
.help-block.with-errors {
    color: #ff5050;
    margin-top: 5px;

}

.card{
	margin-left: 10px;
	margin-right: 10px;
}





