/* LifeChild Blog Section — v2.0.0 */

/* ═══════════════════════════════════════
   Base
═══════════════════════════════════════ */

.lc-section {
    padding: 2rem 0;
    font-family: inherit;
}

/* ═══════════════════════════════════════
   Header
═══════════════════════════════════════ */

.lc-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.lc-heading {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.lc-view-all {
    font-size: 14px;
    font-weight: 600;
    color: #E05A2B;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.lc-view-all:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════
   Search bar
═══════════════════════════════════════ */

.lc-search-wrap {
    position: relative;
    margin-bottom: 2rem;
}

.lc-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #E05A2B;
    pointer-events: none;
    display: flex;
}

.lc-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 44px 12px 44px;
    border: 1.5px solid #e0dbd6;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.lc-search-input:focus {
    border-color: #E05A2B;
    box-shadow: 0 0 0 3px rgba(224, 90, 43, 0.12);
}

.lc-search-input::placeholder {
    color: #aaa;
}

.lc-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}

.lc-search-clear:hover {
    color: #555;
    background: #f0ece8;
}

/* ═══════════════════════════════════════
   Hero / featured post
═══════════════════════════════════════ */

.lc-hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #e8e4e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
}

.lc-hero-card:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.1);
}

.lc-hero-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background: #f5f0eb;
}

.lc-hero-img-wrap img,
.lc-hero-img-wrap a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.lc-hero-card:hover .lc-hero-img-wrap img {
    transform: scale(1.04);
}

.lc-hero-body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lc-hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E05A2B;
    margin: 0 0 10px;
}

.lc-hero-title {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px;
}

.lc-hero-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.15s;
}

.lc-hero-title a:hover {
    color: #E05A2B;
}

/* ═══════════════════════════════════════
   Grid
═══════════════════════════════════════ */

.lc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ═══════════════════════════════════════
   Card
═══════════════════════════════════════ */

.lc-card {
    background: #ffffff;
    border: 1px solid #e8e4e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: lc-fade-in 0.35s ease both;
}

@keyframes lc-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}

/* Image */
.lc-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f0eb;
}

.lc-img-wrap img,
.lc-img-wrap a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.lc-card:hover .lc-img-wrap img {
    transform: scale(1.05);
}

.lc-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5ede6 0%, #ead9cd 100%);
}

/* Category badge (shared) */
.lc-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #E05A2B;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    line-height: 1.4;
}

/* Body */
.lc-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta */
.lc-meta {
    font-size: 12px;
    color: #999;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lc-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    flex-shrink: 0;
}

/* Title */
.lc-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.lc-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.15s;
}

.lc-title a:hover {
    color: #E05A2B;
}

/* Excerpt */
.lc-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 20px;
    flex: 1;
}

/* Button */
.lc-btn {
    display: inline-block;
    background: #E05A2B;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s ease;
    align-self: flex-start;
    line-height: 1.4;
}

.lc-btn:hover {
    background: #c44d22;
    color: #ffffff;
    text-decoration: none;
}

/* ═══════════════════════════════════════
   No results message
═══════════════════════════════════════ */

.lc-no-results {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem 0;
    margin: 0;
}

/* ═══════════════════════════════════════
   Load More
═══════════════════════════════════════ */

.lc-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.lc-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #E05A2B;
    border: 1.5px solid #E05A2B;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s;
}

.lc-load-more:hover {
    background: #E05A2B;
    color: #ffffff;
}

.lc-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lc-spinner {
    display: none;
    animation: lc-spin 0.75s linear infinite;
    flex-shrink: 0;
}

.lc-load-more.lc-loading .lc-spinner {
    display: block;
}

.lc-load-more.lc-loading .lc-load-more-label {
    opacity: 0.6;
}

@keyframes lc-spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════
   Responsive
═══════════════════════════════════════ */

/* Tablet */
@media (max-width: 960px) {
    .lc-grid         { grid-template-columns: repeat(2, 1fr) !important; }
    .lc-hero-card    { grid-template-columns: 1fr; }
    .lc-hero-img-wrap{ min-height: 240px; aspect-ratio: 16 / 8; }
    .lc-hero-body    { padding: 28px 28px; }
}

/* Mobile */
@media (max-width: 580px) {
    .lc-grid      { grid-template-columns: 1fr !important; }
    .lc-header    { flex-direction: column; align-items: flex-start; }
    .lc-hero-body { padding: 22px 20px; }
}
