@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');

body{
    background-color: white;
    font-family: "Cormorant Garamond", serif;
}
p{
    font-family: "Cormorant Garamond", serif;
}
h2{
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
}

/* title */
h1{
    margin:0
}
.title {
    color: black !important;
    text-decoration: none !important;
    cursor: pointer;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 4vw;
}
.title:hover {
    color: black !important;
    text-decoration: none !important;
}
.title:visited {
    color: black !important;
    text-decoration: none !important;
}
.title:active {
    color: black !important;
    text-decoration: none !important;
}

/* hamburger menu */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001; 
    background: none;
    border: none;
}
.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: grey;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: black;
    padding-top: 60px;
    transition: 0.5s;
    overflow-x: hidden;
    z-index: 1000;
}
.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: grey;
    display: block;
    transition: 0.3s;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
}
.sidebar a:hover {
    color: white;
}
.sidebar.open {
    width: 250px;
}

/* navbar */
.bighr {
    height: 3px;
    background-color: black;
    border: none;
}
.navbar a {
    padding: 0 20px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
}
.navbar a:hover {
    color: rgb(171, 171, 171);
}
.navbar a.active {
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 2px;
}
.add-article-link{
    margin-top: 40vh;
    margin-left: 1vw;
    margin-right: 1vw;
    border: 2px solid #333;
    padding: 10px;
    border-radius: 5px;
}

/* modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.form-group textarea {
    resize: vertical;
    min-height: 60px;
}
.submit-btn {
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}
.submit-btn:hover {
    background-color: #555;
}

/* success/error messages */
.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: bold;
}
.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* articles */
#recent-articles-container p {
    align-items: left;
    font-size: 1.2em;
    color: black;
}
.recent-articles-column:empty::after,
.small-articles-column:empty::after {
    content: '';
    display: block;
    min-height: 100px;
}
.articles{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px
}
.recentDiv{
    display: flex;
    align-items: center;
    margin-top: 2vw;
    position: relative;
    
    .recentText{
        width: 15vw;
        min-height: 15vw;
        margin-left: 5vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: left !important;
    }
    .recentDescription{
        margin-top: 0;
    }
    .recentAuthor{
        margin-bottom: 0;
        font-weight: bold;
    }
    .recentDate{
        margin-top: 0;
    }
    
    h2 {
        font-size: 2vw;
        margin: 0 0 0.5vw 0;
        line-height: 1.2;
        text-align: left !important;
    }
    
    p {
        font-size: 1vw;
        line-height: 1.4;
        text-align: left !important;
    }

    img {
        width: 45vw;
        height: auto;
        object-fit: cover;
    }
    
    .vertical-line {
        height: 25vw; 
        width: 2px; 
        background-color: gray;
        margin-left: 1vw;
        margin-right: 1vw;
    }
}
.smallDiv{
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "text image";
    gap: 1vw;
    align-items: start;
    margin-top: 2vw;
    padding-right: 5vw;

    p {
        margin: 0.3vw 0;
        font-size: 0.9vw;
        line-height: 1.3;
    }

    h2 {
        font-size: 1vw;
        margin: 0 0 0.5vw 0;
        line-height: 1.2;
    }
    .smallText{
        grid-area: text;
        min-height: 10vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    img{
        grid-area: image;
        width: 10vw;
        height: 10vw;
        object-fit: cover;
        margin: 0;
    }
    .smallAuthor {
        margin-top: auto;
        font-weight: bold;
         }
}

/* article page seperate styles (most r same tho)*/
.title-small {
    color: black !important;
    text-decoration: none !important;
    cursor: pointer;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 1vw;
    margin: 0;
}
.title-small:hover {
    color: black !important;
    text-decoration: none !important;
}
.title-small:visited {
    color: black !important;
    text-decoration: none !important;
}
.title-small:active {
    color: black !important;
    text-decoration: none !important;
}
.article-container{
    margin-top: 10vh;
    padding-left: 25vw;
    padding-right: 25vw;
}
.article-title{
    font-size: 3vw;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
}
.article-image{
    width: 50vw;
}
.article-date p, .article-author p{
    margin:0;
    display: flex;
    align-items: left !important;
    font-style: italic;
    font-size: 2vw;
    font-weight: bold;
}
.article-author {
    color: grey; 
    margin:0.5vh
}
.article-date {
    color: grey;
    margin:0.5vh
}
.article-meta {
    display: flex;
    gap: 2vw;
    margin-bottom: 2vw;
    font-size: 1.2vw;
}
.article-category {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 0.3vw 0.8vw;
    border-radius: 3px;
    font-size: 1vw;
    font-weight: bold;
    color: #333;
    width: 10vh
}
.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.article-body {
    line-height: 1.6;
    font-size: 1.3vw;
}

.article-description {
    font-size: 1.4vw;
    color: #555;
    margin-bottom: 2vw;
    border-left: 3px solid #333;
    padding-left: 1vw;
    font-weight: bold;
}

.article-content {
    text-align: justify;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5vw;
}

.recentDiv:hover,
.smallDiv:hover {
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}




/* categorized section */
.categorized-image{
    width: 15vw;
    height: 15vw;
}

.categorized-articles {
    display: flex;
    gap: 2vw;
    padding: 1vw 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 100%;
}

.categorized-article {
    width: 15vw;
    flex-shrink: 0;
}

.categorized-headline {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
}

.categorized-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

.categorized-articles::-webkit-scrollbar {
    height: 8px;
}

.categorized-articles::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.categorized-articles::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.categorized-articles::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.sections{
    padding:5vw
}

