/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --mb-text-dark: #1e293b;
    --mb-text-gray: #475569;
    --mb-border: #e2e8f0;
    --mb-accent: #0f172a;
}

/* =========================================
   1. Filter Tabs (Pill Shaped Design)
========================================= */
.mb-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.mb-tab-btn {
    background: #ffffff;
    border: 1px solid var(--mb-border);
    border-radius: 50px; /* Pill Shape */
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--mb-text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mb-tab-btn:hover, 
.mb-tab-btn.active {
    border-color: var(--mb-accent);
    color: var(--mb-accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* =========================================
   2. Grid Layout (Mariven Stories Style)
========================================= */
.mb-luxury-wrapper {
    margin: 40px 0;
}

.mb-luxury-grid {
    display: grid;
    grid-template-columns: repeat(var(--mb-cols, 3), 1fr);
    gap: 40px 30px;
    transition: opacity 0.3s ease;
}

/* Individual Card (No Borders, Minimal) */
.mb-grid-card {
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Image Hover Zoom */
.mb-card-image {
    overflow: hidden;
    margin-bottom: 24px;
    background: #f8fafc;
    aspect-ratio: 4/3; /* Keeps images beautifully uniform */
}

.mb-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mb-grid-card:hover .mb-card-image img {
    transform: scale(1.06); /* Smooth elegant zoom */
}

.mb-placeholder-img {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
}

/* Typography (Titles & Excerpt) */
.mb-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mb-card-title {
    margin: 0 0 12px 0;
    font-family: 'Playfair Display', serif; /* Elegant Serif */
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--mb-text-dark);
}

.mb-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.mb-card-title a:hover {
    color: #64748b;
}

.mb-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--mb-text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Bottom Date */
.mb-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* =========================================
   3. Single Post Design (Clean Editoral)
========================================= */
/* Targeting WordPress default single post classes */
.single-blog_post .site-main,
.single-blog_post .entry-content,
.single-blog_post #main {
    max-width: 800px !important;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-blog_post h1.entry-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    text-align: center;
    color: var(--mb-text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-blog_post .mb-author-meta {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #3b82f6; /* Matching the blue in your screenshot */
    margin-bottom: 40px;
}

.single-blog_post .entry-content {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

.single-blog_post .entry-content h2, 
.single-blog_post .entry-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--mb-text-dark);
    margin-top: 40px;
}

/* =========================================
   4. Advanced Animations
========================================= */
@keyframes mbFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.mb-grid-card.animate-on-scroll {
    animation: mbFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; /* Starts hidden, animation reveals it */
}

/* Responsive Setup */
@media (max-width: 992px) { .mb-luxury-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .mb-luxury-grid { grid-template-columns: 1fr !important; } }