/*
Theme Name: Knowledge, News & Research
Theme URI: https://sarasintl.com/
Author: Sara
Author URI: https://sarasintl.com/
Description: A WordPress theme for news, research, and articles.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: sarasintl
*/

@import url('https://fonts.googleapis.com/css?family=Arial:400,700&display=swap');

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background: #f4f4f4;
    line-height: 23px;
}

.container {
    width: 1000px;
    display: flex;
    flex-direction: row;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 42px auto;
    position: relative;
}

.sidebar {
    width: 200px;
    background: #090d4a;
    color: #fff;
    padding: 20px;
    position: fixed;
    height: 100%;
    left: -200px;
    top: 0;
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

.toggle-btn {
    position: absolute;
    left: 10px;
    top: 0px;
    background: #090d4a;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 100%;
    width: 122px;
    height: 122px;
    border-radius: 12px;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu li {
    padding: 10px;
    border-bottom: 1px solid #444;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: fit-content;
}

.post {
    background: #f9f9f969;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: calc(80% - 10px);
}

.post .featured-image img {
    width: 100%;
    height: auto;     
    display: block;   
    border-radius: 8px;   
    object-fit: cover;    
}

.post-author {
  font-size: 13px;
  font-weight: 600;
  color: chocolate;
}

.content h1 {
    font-size: 20px;
}

.float, .floatq {
    position: fixed;
    width: auto;
    height: 45px;
    right: 22px;
    color: #FFF;
    text-align: center;
    font-size: 30px;
    z-index: 100;
}

.float {
    bottom: 68px;
}
.floatq {
    bottom: 20px;
}

.my-float, .q-float {
    width: auto;
    height: 100%;
}

.post-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post h4 {
  display: inline-block;
  padding: 12px;
}
.post-link {
    text-decoration: none; /* remove underline */
    color: inherit;        /* use default text color */
    display: block;        /* allow entire block clickable */
}


.post-link p {
    color: #333;           /* simple paragraph color */
    font-size: 14px;       /* adjust font size */
    margin: 10px 0 0 0;    /* spacing from title */
}

.post-link:hover {
    background: #f0f0f0;   /* optional hover effect for the whole post */
}
.post h4 a {
  color: #f9f5f5;
  text-decoration: none;
}
@media screen and (max-width: 1024px) {
    .container {
        width: 100%;
        flex-direction: column;
    }
    .sidebar {
        width: 200px;
        left: -227px;
        position: fixed;
        top: 0;
        height: 100%;
    }
    .content {
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
    }
    .post {
        width: 100%;
    }
    .toggle-btn {
        display: block;
    }
}
