/* Tayba Posts — cards in the Tayba Centre design. Colours follow Elementor global colours. */
.tp-grid { --tp-ink: var(--e-global-color-primary, #212121); --tp-bg: var(--e-global-color-secondary, #F3F3F3); --tp-muted: var(--e-global-color-text, #5A5A5A); --tp-mint: var(--e-global-color-accent, #74F5A1); --tp-white: var(--e-global-color-tcwhite, #FFFFFF);
  display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); font-family: var(--e-global-typography-text-font-family, "Inter Tight"), sans-serif; }
.tp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-card { position: relative; background: var(--tp-white); color: var(--tp-ink); border-radius: 8px; display: flex; flex-direction: column; transition: background-color .2s ease-in-out; }
.tp-layout-image .tp-card { padding: 8px 8px 24px; }
.tp-layout-text .tp-card { padding: 24px; min-height: 280px; }
.tp-media { overflow: hidden; border-radius: 4px; margin-bottom: 16px; aspect-ratio: 16 / 10; background: var(--tp-bg); }
.tp-media img, .tp-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.425, 1, .6, 1); }
.tp-card:hover .tp-media img { transform: scale(1.045); }
.tp-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.tp-placeholder img { width: 88px !important; height: 88px !important; object-fit: contain; }
.tp-body { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.tp-layout-image .tp-body { padding: 0 12px; }
.tp-meta { margin: 0; font-size: 14px; line-height: 1.4; color: var(--tp-muted); }
.tp-title { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--tp-ink); font-family: var(--e-global-typography-primary-font-family, "Inter Tight"), sans-serif; }
.tp-title[lang="ml"] { font-size: 19px; line-height: 1.45; letter-spacing: 0; }
.tp-title a { color: inherit; text-decoration: none; }
.tp-title a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.tp-title a:focus-visible { outline: none; }
.tp-card:focus-within { outline: 2px solid var(--tp-mint); outline-offset: 3px; }
.tp-excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tp-muted); flex-grow: 1; }
.tp-excerpt[lang="ml"] { line-height: 1.7; }
.tp-arrow { align-self: flex-end; margin-top: 16px; width: 32px; height: 32px; border-radius: 4px; background: var(--tp-mint); color: var(--tp-ink); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 600; transition: background-color .2s, color .2s; }
.tp-arrow > span { display: block; text-shadow: -32px 32px 0 currentColor; transition: transform .35s cubic-bezier(.625, .05, 0, 1); }
.tp-card:hover .tp-arrow { background: var(--tp-ink); color: var(--tp-mint); }
.tp-card:hover .tp-arrow > span { transform: translate(32px, -32px); }
.tp-layout-text .tp-card:hover { background: #F7F7F7; }
.tp-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; font-family: var(--e-global-typography-text-font-family, "Inter Tight"), sans-serif; }
.tp-pager-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--e-global-color-primary, #212121); color: #fff !important; border-radius: 4px; font-weight: 600; text-decoration: none; }
.tp-pager-btn:hover { background: #000; }
.tp-pager-count { color: var(--e-global-color-text, #5A5A5A); font-size: 15px; }
.tp-empty { color: var(--e-global-color-text, #5A5A5A); }
@media (max-width: 1024px) { .tp-grid, .tp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tp-grid, .tp-cols-2, .tp-cols-4 { grid-template-columns: minmax(0, 1fr); } .tp-layout-text .tp-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .tp-card *, .tp-card { transition: none !important; } }