/*
 Theme Name:   Twenty Twenty-Three Child
 Description:  My custom child theme
 Author:       Dyrl Dee
 Template:     twentytwentythree
 Version:      1.0.0
*/

/* --- Custom Posts Grid Styling --- */

/* The outer container holding all the posts */
.custom-posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}

/* 
   FIX: Style the new outer anchor tag. 
   This makes it a block level element so the whole area is clickable,
   and drops the default underline.
*/
.custom-post-item-link {
    text-decoration: none !important;
    display: block;
    color: inherit; /* Keeps the body text from turning default blue */
}

/* Your original card layout */
.custom-post-item {
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.25s ease;
}

/* 
   FIX: Trigger the hover shadow and lift when the 
   mouse enters anywhere on the parent link block.
*/
.custom-post-item-link:hover .custom-post-item {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.custom-post-item h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    line-height: 1.3;
    color: #111; /* Set the title color here directly */
    transition: color 0.2s ease;
}

/* 
   FIX: Change the title color to your royal blue (#2563eb)
   whenever someone hovers anywhere on the card.
*/
.custom-post-item-link:hover h3 {
    color: #2563eb;
}

.post-excerpt {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}