/* --- SINGLE POST LAYOUT --- */
.single-post-layout {
    padding: 60px 0;
    background: #fff;
}

.centered-content {
    max-width: 800px; /* Limits width for readability */
    margin: 0 auto;
    padding: 0 20px;
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
    line-height: 1.2;
}

.entry-meta {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.post-thumbnail {
    margin-bottom: 40px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* --- RELATED SLIDER --- */
.related-posts-section {
    margin-top: 100px;
    padding: 60px 0;
    background: #f9f9f9;
}

.related-posts-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.slide-item {
    padding: 0 15px;
}

.slide-card {
    display: block;
    text-decoration: none;
    color: #222;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.slide-card:hover {
    transform: translateY(-5px);
}

.slide-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.slide-card h3 {
    padding: 15px;
    font-size: 1.1rem;
    margin: 0;
}

/* Slick Dots Styling */
.related-posts-section .slick-dots {
    bottom: -40px;
    display: flex;
    justify-content: center;
    list-style: none;
}

/* --- ULTIMATE EQUAL HEIGHT CAROUSEL FIX --- */

/* 1. The Track: Force all slides to be the same height */
.latest-posts-slider .slick-track {
    display: flex !important;
    align-items: stretch !important;
}

/* 2. The Slide: Force Slick's internal div to fill the track height */
.latest-posts-slider .slick-slide {
    height: auto !important;
    display: flex !important;
}

/* 3. The Slide's first child: Slick often adds a <div> here */
.latest-posts-slider .slick-slide > div {
    display: flex;
    width: 100%;
}

/* 4. Your Item Wrapper: Fill the slide height */
.latest-posts-slider .slide-item {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* 5. The Card: Fill the item wrapper */
.latest-posts-slider .slide-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%; /* This is what makes the border/background reach the bottom */
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

/* 6. The Image: Fixed height to keep the top half consistent */
.latest-posts-slider .slide-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 7. The Title: This is the "spacer" that expands */
.latest-posts-slider .slide-card h3 {
    flex-grow: 1; /* Forces this box to expand and fill the card height */
    padding: 20px 15px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    display: flex;
    align-items: center; /* Centers short titles vertically */
    text-align: center;
}