/* =============================================
   MRP Guides - Cards, Filter & Single Post
   Add to Astra Additional CSS or new CSS file
   ============================================= */

/* ---- Filter Bar ---- */
.mrp-guide-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0;
}

.mrp-guide-filter__tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.mrp-guide-tab {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.mrp-guide-tab.active {
    color: #111827;
	background-color: none;
    border-bottom-color: #111827;
    font-weight: 600;
}

.mrp-guide-tab__count {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.mrp-guide-filter__search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    background: #ffffff;
}

.mrp-guide-filter__search svg {
    color: #9ca3af;
    flex-shrink: 0;
}

#mrp-guide-search {
    border: none;
    outline: none;
    font-size: 14px;
    color: #111827;
    background: transparent;
    width: 180px;
}

#mrp-guide-search::placeholder {
    color: #9ca3af;
}

/* ---- Guide Cards ---- */
.mrp-guide-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    transition: box-shadow 0.2s ease;
    position: relative;
}

.mrp-guide-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.mrp-guide-card__cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: white;
    background: #378add;
    padding: 3px 10px;
    border-radius: 4px;
    width: fit-content;
}

.mrp-guide-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0;
}

.mrp-guide-card__title a {
    color: #111827;
    text-decoration: none;
}

.mrp-guide-card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.mrp-guide-card__excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.mrp-guide-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.mrp-guide-card__date,
.mrp-guide-card__time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.mrp-guide-card__read {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.mrp-guide-card__read:hover {
    text-decoration: underline;
}

/* ---- Single Guide Post ---- */
.mrp-guide-single {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.mrp-guide-single__header {
    max-width: 720px;
    margin-bottom: 32px;
}

.mrp-guide-single__cat {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 16px;
    color: #1d4ed8;
}

.mrp-guide-single__title {
    font-size: 42px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 16px;
}

.mrp-guide-single__subtitle {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 20px;
}

.mrp-guide-single__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mrp-guide-single__date,
.mrp-guide-single__time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.mrp-guide-single__divider {
    color: #d1d5db;
}

.mrp-guide-single__divider-line {
    height: 1px;
    background: #e5e7eb;
    margin-bottom: 48px;
}

/* Body layout */
.mrp-guide-single__body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

/* Content */
.mrp-guide-single__content {
    font-size: 16px;
    color: #374151;
    line-height: 1.8;
}

.mrp-guide-single__content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 40px 0 16px;
}

.mrp-guide-single__content h3 {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin: 32px 0 12px;
}

.mrp-guide-single__content p {
    margin-bottom: 20px;
}

.mrp-guide-single__content ul,
.mrp-guide-single__content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.mrp-guide-single__content li {
    margin-bottom: 8px;
}

/* Sidebar */
.mrp-guide-single__sidebar {
    position: sticky;
    top: 32px;
}

.mrp-guide-single__cta {
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 24px;
}

.mrp-guide-single__cta-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.mrp-guide-single__cta-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px;
}

.mrp-guide-single__cta-link {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.mrp-guide-single__cta-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .mrp-guide-single__title {
        font-size: 28px;
    }

    .mrp-guide-single__body {
        grid-template-columns: 1fr;
    }

    .mrp-guide-single__sidebar {
        position: static;
    }

    .mrp-guide-filter {
        flex-direction: column;
        align-items: flex-start;
    }
}