  /* ---------------------------------------------------------------------- */
/* --- COLOR PALETTE (From Brand Guidelines) --- */
/* ---------------------------------------------------------------------- */
:root {
    /* Primary (Bright Green) */
    --color-primary: #22c55e;
    /* Dark Text, Primary Headers */
    --color-text-dark: #1e293b;
    /* Body Text, Secondary */
    --color-text-grey: #475569;
    /* Light Grey Backgrounds */
    --color-bg-light: #f8fafc;
    /* Card/Element Borders */
    --color-border-subtle: #e2e8f0;
    /* White */
    --color-white: #ffffff;
}

/* ---------------------------------------------------------------------- */
/* --- GLOBAL SECTION STYLES --- */
/* (Assuming basic setup for h2/p/container exists elsewhere, focused on this section) */
/* ---------------------------------------------------------------------- */
.insights-list-section {
    padding: 4rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.insights-list-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

/* ---------------------------------------------------------------------- */
/* --- HEADER AND SEARCH FORM --- */
/* ---------------------------------------------------------------------- */
.insights-list-header {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-subtle);
}

.insights-search-form {
    display: flex;
    width: 100%; /* Full width on mobile */
    max-width: 400px; /* Constrain width on desktop */
    border: 1px solid var(--color-border-subtle);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease;
}

.insights-search-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.insights-search-form input[type="text"] {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.insights-search-form button[type="submit"] {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.insights-search-form button[type="submit"]:hover {
    background-color: #16a34a; /* Darker green on hover */
}


/* ---------------------------------------------------------------------- */
/* --- BLOG GRID LAYOUT --- */
/* ---------------------------------------------------------------------- */
.insights-list-grid {
    display: grid;
    /* Mobile: Single column */
    grid-template-columns: 1fr; 
    gap: 2rem;
}

/* Tablet / Small Desktop */
@media (min-width: 640px) {
    .insights-list-grid {
        /* Tablet: Two columns */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .insights-list-header {
        flex-direction: row; /* Horizontal layout on desktop */
        margin-bottom: 4rem;
    }
    .insights-list-grid {
        /* Desktop: Three columns */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------------------------- */
/* --- INDIVIDUAL BLOG CARD STYLES --- */
/* ---------------------------------------------------------------------- */
.insights-list-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure all cards are the same height */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Premium shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border-subtle);
}

.insights-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.15); /* Green-tinged shadow on hover */
}

.insights-list-image {
    height: 200px; /* Fixed height for consistent images */
    overflow: hidden;
}

.insights-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insights-list-card:hover .insights-list-image img {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}

.insights-list-body {
    padding: 1.5rem;
    flex-grow: 1; /* Pushes footer to the bottom */
    display: flex;
    flex-direction: column;
}

.insights-list-body h3 {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    line-height: 1.4;
    margin: 0.5rem 0 1rem;
}

.insights-list-body p {
    color: var(--color-text-grey);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Meta information (Date and Author) */
.insights-list-date,
.insights-list-author {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-grey);
}

.insights-list-date i,
.insights-list-author i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.insights-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 1rem;
    margin-top: auto; /* Ensures it sticks to the bottom */
}

.insights-list-readmore {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.insights-list-readmore:hover {
    color: #16a34a; /* Darker green on hover */
    text-decoration: underline;
}

/* Styling for the "No articles found" message */
.insights-list-grid > p {
    grid-column: 1 / -1; /* Make the message span all columns */
    text-align: center;
    padding: 3rem;
    background-color: var(--color-bg-light);
    border-radius: 0.75rem;
    border: 1px dashed var(--color-border-subtle);
}

.insights-list-grid > p a {
    color: var(--color-primary);
    text-decoration: underline;
}
