/* ==========================================================================
   1. FONTS & BASE STYLES
   ========================================================================== */

/* Import Poppins from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

/* ==========================================================================
   2. HEADER & LOGO AREA
   ========================================================================== */

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Removes standard browser margins from the H1 wrapping the logo */
.logo-heading {
    margin: 0; 
    padding: 0;
}

/* Controls the size and spacing of your logo.png */
.site-logo {
    max-height: 70px; /* Tweak this number to make the logo larger or smaller */
    width: auto; 
    display: inline-block; 
    margin-bottom: 20px; 
}

/* The introductory paragraph under the logo */
.site-description {
    max-width: 700px;
    margin: 0 auto 40px auto; /* 40px adds breathing room before the grid starts */
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* ==========================================================================
   3. THE GRID LAYOUT
   ========================================================================== */

.feed-grid {
    display: grid;
    /* Auto-fits as many columns as possible, down to a minimum width of 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   4. INDIVIDUAL POST CARDS
   ========================================================================== */

.feed-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

/* Lift effect when hovering over a card */
.feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* ==========================================================================
   5. CARD TYPOGRAPHY & LINKS
   ========================================================================== */

/* The root blog name (e.g., Digital by Default) */
.site-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0073aa;
    margin-bottom: 8px;
    font-weight: bold;
}

.site-name a {
    color: inherit;
    text-decoration: none;
}

.site-name a:hover {
    text-decoration: underline;
}

/* The title of the specific post */
.feed-card h2 {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    font-weight: 600; /* Uses the Poppins Semi-Bold */
}

.feed-card h2 a {
    text-decoration: none;
    color: #1a1a1a;
}

.feed-card h2 a:hover {
    text-decoration: underline;
}

/* The date the post was published */
.feed-card time {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
}

/* The short excerpt/description */
.feed-card p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    flex-grow: 1; /* Pushes the excerpt apart to fill empty card space */
}

/* ==========================================================================
   6. NEW POST HIGHLIGHTS
   ========================================================================== */

/* Container to keep the site name on the left and the badge on the right */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* We need to remove the bottom margin from your existing .site-name rule 
   because .card-meta is handling the spacing now. 
   Find your existing .site-name rule and change margin-bottom: 8px to margin: 0; */
.site-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0073aa;
    font-weight: bold;
    margin: 0; /* Updated */
}

/* The visual style for the "New" badge */
.new-badge {
    background-color: #d9eafd;
    color: #005a87;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Adds a subtle blue bar to the top of the card for new posts */
.new-post-highlight {
    border-top: 4px solid #0073aa;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* ==========================================================================
   7. READ MORE LINK
   ========================================================================== */

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600; /* Uses the Poppins Semi-Bold */
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #005a87;
    text-decoration: underline;
}
/* ==========================================================================
   8. PRIVACY FOOTER
   ========================================================================== */

footer {
    text-align: center;
    margin-top: 60px; /* Generous spacing below your post cards */
    padding: 30px 20px;
    border-top: 1px solid #e1e1e8; /* Soft dividing line */
}

.privacy-notice {
    font-size: 0.8rem;
    color: #777; /* Muted gray text so it stays unobtrusive */
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}