/* MBK Post Loop Carousel Styles */
.mbk-post-loop-carousel .swiper-container {
    width: 100%;
    padding-bottom: 40px; /* Space for pagination */
}

.mbk-post-card {
    background: var(--color-surface, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Softer shadow */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mbk-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Image Container */
.mbk-post-card-image {
    position: relative;
    padding-top: 60%; /* Aspect Ratio */
    overflow: hidden;
}

.mbk-post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mbk-post-card:hover .mbk-post-card-image img {
    transform: scale(1.05); /* Zoom effect */
}

/* Date Badge */
.mbk-post-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #A3D933; /* Green - keeping distinct accent color or map to secondary? pattern says --color-secondary is #00B29D. User might want A3D933. I will keep raw or use var(--color-secondary) if it matches. #A3D933 is Lime Green. #00B29D is Teal. I'll keep default branding color for now or use specific var if available. Pattern doesn't have lime. */
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

/* Content Body */
.mbk-post-card-content {
    padding: var(--space-6, 24px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Terms/Tags */
.mbk-post-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mbk-post-term {
    font-size: 11px; /* Keeping small for tags, pattern-style xs is too big (22px) */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light, #6b7280);
    border: 1px solid var(--color-border, #e5e5e5);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mbk-post-term:hover {
    background-color: var(--color-bg, #f5f5f5);
    color: var(--color-text, #1f2937);
    border-color: #ccc;
}

/* Title */
.mbk-post-card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary, #003d5c);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.mbk-post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.mbk-post-card-title a:hover {
    color: var(--color-secondary, #00B29D);
}

/* Excerpt */
.mbk-post-card-excerpt {
    font-size: 22px;
    color: var(--color-text-light, #6b7280);
    line-height: 1.2;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link */
.mbk-post-card-link {
    font-size: 22px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.mbk-post-card-link:hover {
    color: var(--color-secondary, #00B29D);
}


/* Button Base Styles */
.mbk-hero-btn {
    /* Glassmorphism hint */
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    white-space: nowrap;
}

/* Swiper Pagination Customization */
/* Swiper Pagination Customization */
.mbk-post-loop-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.mbk-post-loop-carousel .swiper-pagination-bullet-active {
    width: 32px;
    background: #00B29D; /* Lime Green */
    border-radius: 6px;
    box-shadow: 0 0 10px #00B29D;
}

/* Swiper Navigation Customization - Premium Design */
/* Navigation Controls - Standard Swiper Sides */
.mbk-post-loop-carousel .swiper-button-next,
.mbk-post-loop-carousel .swiper-button-prev {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 178, 157, 0.15) 0%, rgba(0, 139, 122, 0.15) 100%);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 178, 157, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 40px rgba(0, 178, 157, 0.1);
    display: flex !important; /* Force flex for icon alignment */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Reset Positioning */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 10;
}

.mbk-post-loop-carousel .swiper-button-next {
    right: 20px;
}

.mbk-post-loop-carousel .swiper-button-prev {
    left: 20px;
}

.mbk-post-loop-carousel .swiper-button-next svg,
.mbk-post-loop-carousel .swiper-button-prev svg {
    width: 30px;
    height: 30px;
    stroke-width: 1px;
    stroke: white;
}

/* Hover Effects */
.mbk-post-loop-carousel .swiper-button-next:hover,
.mbk-post-loop-carousel .swiper-button-prev:hover {
    background: linear-gradient(135deg, rgba(0, 178, 157, 0.35) 0%, rgba(0, 139, 122, 0.35) 100%);
    border-color: rgba(0, 178, 157, 0.8);
    transform: translateY(-50%) scale(1.1); /* Keep centered + scale */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 50px rgba(0, 178, 157, 0.4);
}

.mbk-post-loop-carousel .swiper-button-next:after,
.mbk-post-loop-carousel .swiper-button-prev:after {
    display: none;
}

/* Active (Click) state */
.mbk-post-loop-carousel .swiper-button-next:active,
.mbk-post-loop-carousel .swiper-button-prev:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(0, 178, 157, 0.5);
}

/* Ripple effect on click */
.mbk-post-loop-carousel .swiper-button-next::before,
.mbk-post-loop-carousel .swiper-button-prev::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 178, 157, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
}

.mbk-post-loop-carousel .swiper-button-next:active::before,
.mbk-post-loop-carousel .swiper-button-prev:active::before {
    width: 100px;
    height: 100px;
    opacity: 0;
}

/* Slide animations */
@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@keyframes slideLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}
