@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
}

body{
    font-weight: 400;
}

a{
    text-decoration: none;
    color: rgb(3, 22, 58);
}

nav{
    background-color: #0078D4;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    padding: 20px;
    padding-left: 3%;
    padding-right: 3%;
}

nav h1{
    font-weight: 600;
    font-size: 30px;
}

nav a{
    color: white;
    font-weight: 400;
}

nav div{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

nav a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

nav i{
    font-size: 25px;
}

.search{
    width: 100%;
    height: 400px;
    background-color: #E6F9FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.search h2{
    font-size: 40px;
    font-weight: 500;
    color: rgb(3, 22, 58);
    margin-bottom: 20px;
}

.searchbox{
    width: 90%;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #ededed;
    overflow: hidden;
}

.searchbox input[type="text"]{
    width: 85%;
    height: 50px;
    padding-left: 20px;
    font-size: 20px;
}

.searchbox input[type="submit"]{
    width: 15%;
    height: 50px;
    background-color: #0078D4;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.search p{
    font-size: 12px;
    font-weight: 500;
}

.contents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
    margin-bottom: 100px;
}

.content {
    background-color: #f0f0f0;
    padding: 20px;
    font-size: 18px;
    border-radius: 8px;
    background-color: white;
    border: 2px solid #dedede;
    transition: border 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content p{
    width: 100%;
}

.content h6{
    font-size: 25px;
    font-weight: 500;
    margin-top: 20px;
    width: 100%;
}

.content hr{
    width: 100%;
    max-width: 100px;
    background-color: #0078D4;
    height: 3px;
    border-radius: 100px;
}

.content:hover{
    border: 2px solid #0078D4;
}

.left{
    position: absolute;
    left: 0;
    top: 80px;
}

.right{
    position: absolute;
    right: 0;
    top: 290px;
}

.breadcrumb{
    width: 100%;
    padding: 15px;
    background-color: #ededed;
    z-index: -1;
    color: #555;
    padding-left: 3%;
    padding-right: 3%;
    font-weight: 500;
}

.breadcrumb a{
    color: #0078D4;
    font-weight: 500;
}

.article{
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-top: 50px;
}

.article-left{
    display: flex;
    flex-direction: column;
    width: 25%;
    gap: 15px;
    font-weight: 500;
}

.article-left a:hover{
    text-decoration: underline;
}

.article-left h5{
    font-size: 20px;
    font-weight: 500;
    color: #888;
    margin-bottom: 10px;
}

.article-right{
    display: flex;
    flex-direction: column;
    width: 70%;
    gap: 15px;
    min-height: 500px;
}

.article-right h1{
    font-weight: 600;
}

.article-right span{
    font-weight: 500;
    color: #999;
}

.article-right hr{
    width: 100%;
    max-width: 100px;
    background-color: #0078D4;
    height: 3px;
    border-radius: 100px;
}

.article-right p{
    font-weight: 400;
    color: #555;
}

@media (max-width: 1350px) {
    .left{
        display: none;
    }
    .right{
        display: none;
    }
}


@media (max-width: 500px) {
    .navright{
        display: none;
    }
    .contents{
        padding: 0;
    }
    .content{
        overflow: hidden;
        width: 75%;
    }
    .article{
        flex-direction: column;
        gap: 50px;
    }
    .article-left{
        width: 100%;
    }
    .article-right{
        width: 100%;
    }
}