/* Global Styles */
body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Fix image size */
.logo-container img {
    max-width: 150px;
    height: auto;
}

/* ---Homepage Layout --- */

/* Create a responsive grid for the cards */
.card-grid {
    display: grid;
    /* This automatically creates columns that are at least 300px wide, and fills the screen */
    grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap: 20px; /*Space between the cards*/
    padding: 20px;
}

/* Draw the actual card */
.snippet-card{
    border: 1px solid #ccc;
    border-radius: 8px; /* Rounded corners */
    padding: 20px;
    background-color: #f9f9f9;
}

/* Style the individual tags */
.tag{
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px; /* Makes it a pill shape */
    font-size: 0.85em;
    margin-right: 5px;
    display: inline-block; /* Keeps them from breaking weirdly */
}

/* --- Buttons --- */
.read-more-btn{
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

/* The Hover State */
.read-more-btn:hover {
    background-color: #007bff;
    color: white;
}

/* --- Navigation Bar --- */
.main-nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.logo-container{
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}


.main-nav ul{
    list-style: none;
    margin: 0; 
    padding: 0;
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.main-nav a{
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.logo-container h1{
    margin: 0;
    font-size: 1.8rem;
    max-width: 280px;
    min-width: 280px;
    line-height: 1.2;
    text-align: center;
}

.main-nav{
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
}

/* --- Search Bar Layout --- */

/* The Container */
.search-bar {
    flex: 1; /* Tells it to grow and fill the empty middle space */
    max-width: 500px; /* Stops it from getting comically wide on huge monitors */
    margin: 0 20px; /* Pushes it away from the logo and the nav links */
    display: flex;
    flex-direction: column; /* Stacks the label on top of the input */
    gap: 5px; /* Tiny space between label and box */
}

/* The Title Label */
.search-bar label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #555; /* A soft dark grey */
}

/* The Input Box */
.search-bar input {
    width: 100%; /* Forces the input to stretch to the edges of its container */
    box-sizing: border-box;
    padding: 8px 12px; /* Makes the box taller and gives the text breathing room */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* --- Single Post Layout --- */
.post-container{
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.description {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}
    






