/*
 * Article card + coach articles page (Nov 2026 redesign).
 * Card markup: resources/views/frontend/partials/cv-article-card.blade.php (used on the coach profile and /coach/{name}/articles).
 * Page markup: resources/views/frontend/tutor-articles.blade.php (.cva).
 */
.cva-card { --ink: #1d1a17; --muted: #6b625a; --line: #eadfd2; --cream: #fbf6ef; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; height: 100%; font-family: Poppins, system-ui, sans-serif; transition: transform 160ms ease, box-shadow 160ms ease; }
.cva-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29, 26, 23, .08); }
.cva-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f5ebdf; }
.cva-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.cva-card:hover .cva-card__img img { transform: scale(1.03); }
.cva-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cva-card__meta { display: flex; flex-wrap: nowrap; align-items: center; min-width: 0; white-space: nowrap; gap: 6px; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.cva-card__meta a { color: var(--muted); text-decoration: none; }
.cva-card__meta a:hover { color: var(--ink); }
.cva-card__meta em { font-style: normal; }
.cva-card__cats { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cva-card .cva-card__title { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.cva-card .cva-card__title a { color: var(--ink); text-decoration: none; }
.cva-card .cva-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cva-card__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cva-card .am-blog-audience-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 6px 0 0; }
.cva-card .am-blog-audience-tags li { list-style: none; margin: 0; padding: 0; }
.cva-card .am-blog-audience-tags li::before, .cva-card .am-blog-audience-tags li::marker { content: none; }
.cva-card .am-blog-audience-tags span { display: inline-block; font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); }
.cva-card .am-blog-audience-tags a { text-decoration: none; }

.cva-card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cva-card__foot .am-blog-audience-tags { margin: 0; padding: 0; }
.cva-card__author { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.cva-card__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.cva-card__author a { color: var(--ink); text-decoration: none; }
.cva-card__author a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Grid used on both pages */
.cva-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cva-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Coach articles page */
body:has(.cva) { background: #fbf6ef; }
body:has(.cva) .am-header_two.am-header_eight { background: #fbf6ef !important; }
.cva { --ink: #1d1a17; --muted: #6b625a; --line: #eadfd2; background: #fbf6ef; color: var(--ink); font-family: Poppins, system-ui, sans-serif; padding: 28px 0 80px; }
.cva *, .cva *::before, .cva *::after { box-sizing: border-box; }
.cva-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.cva-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: linear-gradient(135deg, #fdf3d9 0%, #fcefe6 55%, #fbebee 100%); border-radius: 36px; padding: 40px 44px; margin-bottom: 36px; }
.cva-hero__who { display: flex; align-items: center; gap: 22px; min-width: 0; }
.cva-hero__photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 4px solid #fff; flex: none; }
.cva .cva-hero h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 42px; line-height: 1.12; font-weight: 600; color: var(--ink); }
.cva-hero p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.cva-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; background: #fff; color: var(--ink) !important; border: 1px solid var(--ink); white-space: nowrap; transition: transform 160ms ease; }
.cva-btn:hover { transform: translateY(-1px); }
.cva-btn--dark { background: var(--ink); color: #fff !important; }
.cva-empty { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 48px 28px; text-align: center; }
.cva-empty p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }

/* Pagination (Bootstrap markup from Laravel) */
.cva .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.cva .page-item .page-link { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px !important; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14.5px; box-shadow: none; }
.cva .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
.cva .page-item.disabled .page-link { opacity: .45; }

@media (max-width: 991.98px) {
    .cva-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cva-wrap { padding: 0 24px; }
}
@media (max-width: 767.98px) {
    .cva-grid, .cva-grid--two { grid-template-columns: 1fr; gap: 16px; }
    .cva { padding: 16px 0 56px; }
    .cva-wrap { padding: 0 12px; }
    .cva-hero { padding: 28px 22px; border-radius: 28px; gap: 20px; }
    .cva-hero__who { gap: 16px; }
    .cva-hero__photo { width: 68px; height: 68px; }
    .cva .cva-hero h1 { font-size: 30px; }
    .cva-hero .cva-btn { width: 100%; }
    .cva-card__body { padding: 18px 18px 20px; }
}
