/* =========================================
   Shared List Item Styles
   ========================================= */
.list-item {
    min-width: 0; 
    overflow-wrap: break-word;
    word-break: break-word;
    transition: all 0.2s ease;
}

/* =========================================
    Card Layout (Blog & Notes)
   ========================================= */
body.section-blog .list-item,
body.section-notes .list-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

body.section-blog .list-item:hover,
body.section-notes .list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}


/* =========================================
   Typography & Inner Elements
   ========================================= */
.post-title {
    display: block;    
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #006aff;        
    text-decoration: none;
    margin-bottom: 0.5rem;    
    line-height: 1.35;
    transition: color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-title:hover {
    color: #000000;
    text-decoration: none; 
}

.post-summary {
    color: #475569; 
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem; 
}

.meta-row {
    display: flex;         
    align-items: center;   
    flex-wrap: wrap;
    gap: 0.75rem;             
    font-size: 0.85rem;
    color: #64748b;           
}

.post-date {
    font-family: monospace; 
    color: #64748b;
    white-space: nowrap; 
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags a {
    display: inline-block;
    background-color: #f1f5f9;
    color: #006aff;        
    text-decoration: none;
    padding: 2px 10px;
    border-radius: 99px; 
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    background-color: #e2e8f0;
    color: #000000;
}      

/* =========================================
   Section Headers
   ========================================= */
.list-container h2 {
    margin-top: 3rem;      
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;  
    border-bottom: none; 
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.list-container h2 small {
    font-size: 0.6em;      
    color: #94a3b8;
    font-weight: 500;
}

/* =========================================
   Categories Page List
   ========================================= */
.CategoriesPage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.CategoriesPage a {
    font-size: 1.25rem;
    text-decoration: none;
    color: #006aff;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.CategoriesPage a:hover {
    color: #000000;
}

.CategoriesPage a small {
    color: #94a3b8;
    font-size: 0.8em;
}

/* =========================================
   Pagination
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}

.page-item {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.2s ease; 
}

.page-item a {
    text-decoration: none;
    color: #64748b;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    font-weight: 500;
}

.page-item.active {
    background-color: #2563eb; 
}

.page-item.active a {
    color: white !important;
}

.page-item:not(.active):not(.disabled):hover {
    background-color: #f1f5f9; 
}

.page-item:not(.active):not(.disabled):hover a {
    color: #000000;
}

.page-item.disabled a {
    color: #cbd5e1;
    pointer-events: none;
    cursor: default;
}


/* =========================================
   Card Style & Hover for Categories
   ========================================= */

.category-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1.75rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}

.category-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: #cbd5e1 !important;
}

.category-card:last-child {
    border-bottom: 1px solid #e2e8f0 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1.75rem !important;
}