/* ==========================================
   BLOG / STORIES PAGE (Cozy & Informative)
   ========================================== */

/* Main wrapper uses the soft cream background for a warm feel */
.blog-main-wrapper {
    background-color: var(--bg-light); 
    padding-bottom: 90px;
}

/* Blog Hero Header */
.blog-hero {
    background-color: var(--bg-white);
    padding: 80px 20px 60px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 50px;
}

.blog-hero-container {
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--exp-text-main); /* Warm dark brown */
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.blog-hero-subtitle {
    font-size: 1.15rem;
    color: var(--exp-text-muted); /* Soft mocha color */
    line-height: 1.6;
}

/* Blog Grid */
.blog-content {
    padding: 0 20px;
}

.blog-grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Individual Blog Card */
.blog-card {
    background: var(--bg-white);
    border-radius: var(--exp-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    position: relative;
    height: 240px;
    background-color: var(--border-color);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05); /* Gentle zoom effect */
}

.blog-fallback-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--exp-border), var(--bg-light));
}

/* Floating Category Tag */
.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Card Content Area */
.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--exp-text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-card-title a {
    color: var(--exp-text-main);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the 'read more' to the bottom perfectly */
}

/* Friendly 'Read More' Link */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

.read-more-arrow {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.blog-read-more:hover {
    color: var(--primary-dark);
}

.blog-read-more:hover .read-more-arrow {
    transform: translateX(4px);
}

/* Empty State */
.blog-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--exp-text-muted);
}

/* Pagination Styling */
.blog-pagination {
    margin-top: 60px;
    text-align: center;
}

.blog-pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-white);
    color: var(--exp-text-main);
    text-decoration: none;
    border-radius: var(--exp-radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover {
    background: #F8EFEA; /* Extremely faint tint of primary color */
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.blog-pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
