/* Base Styles */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #34495e;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Blog page */
.blog_page{
    max-width: 100%;
    min-height: 100vh;
    padding: 50px;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
}

.blog_box{
    width: 80%;
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog_div{
    width: 460px;
    min-height: 250px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 25px;
    border-radius: 10px;
    box-shadow: 0.1px 0.1px 3px 0px gray;
}

.blog_div h1:first-child{
    padding: 15px;
    border-radius: 5px;
    color: #3498db;
    background-color: whitesmoke;
    font-size: 18px;
    font-weight: bold;
}

.blog_content{
    padding: 10px;
}

.date{
    color: gray;
    display: block;
}

@media screen and (max-width:460px) {
    .blog_page{
        padding: 10px 0;
        justify-content: center;
    }
    .blog_box{
        width: 100%;
        grid-template-columns: 1fr;
        align-items: center;
        justify-items: center;
    }
    .blog_div{
        width: 300px;
        height: fit-content;
        padding: 15px;
    }
    .blog_div h1:first-child{
        font-size: 17px;
    }

    .blog_data{
        padding-top: 100px;
    }
}

/* -------------- */

/* Blog content page */

.con_blog_box{
    width: 80%;
    height: fit-content;
}
.back-btn{
    margin: 10px;
    padding: 10px 25px;
    border-radius: 10px;
    border: none;
    outline: none;
    background-color: #e74c3c;
    transition: background-color .5s;
    color: white;
}

.back-btn:hover{
    cursor: pointer;
    background-color: red;
}

.blog_data h1,.blog_data p{
    margin-bottom: 15px ;
}

.blog_contents{
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px;
}

.blog_contents p, .blog_contents h1, .blog_contents h2{
    margin: 8px 0;
}

.blog_contents p,.blog_contents li{
    font-size: 17px;
    color: black;
}

.blog_contents ul{
    margin-left: 50px;
}

.blog_contents img{
    margin: 12px 0;
    width: 300px !important;
}

/* ---------------- */

/* blog board */

.dash{
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    padding: 50px;
}

.blogb{
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash h1{
    color: #34495e;
    margin: 10px 0;
}

.dash table{
    width: 80%;
    height: 100%;
    
}

.dash thead{
    background-color: #34495e;
    color: #ecf0f1;
    text-transform: uppercase;
}

.dash th, .dash td{
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid gray;
}

.dash tbody tr:nth-child(odd){
    transition: background-color .5s;
    background-color: white;
}

.dash tbody tr:nth-child(even){
    transition: background-color .5s;
    background-color: whitesmoke;
}

.dash td button{
    padding: 5px 20px;
    border: 2px solid transparent;
    outline: none;
    border-radius: 5px;
    color: white;
    transition: border .5s;
    &:hover{
        cursor: pointer;
        border: 2px solid #34495e;
    }
}

.dash td:nth-child(1){
    color: #34495e;
    font-weight: bold;
}

.dash td:nth-child(3) button{
    background-color: #3498db;
}

.dash td:nth-child(4) button{
    background-color: crimson;
}

.dash tbody tr:hover{
    margin-bottom: 3px;
    background-color: rgb(233, 231, 231);
}

.addb{
    position: relative;
    left: 0% !important;
    margin: 20px 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    outline: none;
    background-color: limegreen;
    color: white;
    border-radius: 0px;
    transition: background-color .5s, border-radius .5s;
    &:hover{
        cursor: pointer;
        border-radius: 10px;
        background-color: lawngreen;
    }
}

.addb2{
    background-color: skyblue;
    &:hover{
        background-color: rgb(113, 177, 202);
    }
}

/* ------------ */

/* Blog add/update */

.addblogup{
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px;
}

.addblogup h1{
    margin: 20px 0;
    color: #34495e;
}

.addblogup form{
    width: 80vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.addblogup form input, .addblogup form textarea{
    margin: 20px 0;
    min-width: 300px;
    padding: 10px;
}

.addblogup form i{
    font-size: 16px;
}

/* ------------ */