/* Small additions on top of the original theme (Laravel version). */

.blog-thumb a { display: block; }
.blog-thumb-empty { display: block; height: 100%; background: #e9ecef url("logo.png") no-repeat center / 35%; opacity: .6; }

.entry-content img { max-width: 100%; height: auto; }
.entry-content iframe { max-width: 100%; }
.entry-content .entry-meta { color: #888; margin-bottom: 20px; }
.entry-content .entry-image { text-align: center; }
.entry-content table { width: 100%; margin-bottom: 20px; border-collapse: collapse; }
.entry-content td, .entry-content th { border: 1px solid #ddd; padding: 6px 10px; }
.draft-note { background: #fff3cd; color: #856404; padding: 10px 15px; border-radius: 4px; }

.site-map iframe { display: block; border: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Pagination: round page buttons in the theme's green */
.navigation.pagination { display: block; width: 100%; margin: 0; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 40px 0 70px; text-align: center; }
.nav-links .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 12px; margin: 0;
    border: 1px solid #e3e6ef; border-radius: 50px; background: #fff;
    color: #171932; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.nav-links a.page-numbers:hover, .nav-links a.page-numbers:focus-visible {
    background: #d3ffea; border-color: #31dc89; color: #0f9d58; transform: translateY(-2px); outline: none;
}
.nav-links .page-numbers.current {
    background: #31dc89; border-color: #31dc89; color: #fff; font-weight: 700;
    box-shadow: 0 6px 16px rgba(49, 220, 137, .35);
}
.nav-links .page-numbers.dots { min-width: 24px; padding: 0; border: 0; background: none; color: #9aa0b4; }
.nav-links .prev, .nav-links .next { padding: 0; background: #171932; border-color: #171932; color: #fff; }
.nav-links a.prev:hover, .nav-links a.next:hover { background: #31dc89; border-color: #31dc89; color: #fff; }
.nav-links .page-numbers.disabled { background: #f4f5f8; border-color: #f4f5f8; color: #c3c7d4; cursor: default; }
.nav-links svg { display: block; }
@media (max-width: 480px) {
    .nav-links { gap: 4px; }
    .nav-links .page-numbers.dots { min-width: 14px; }
    .nav-links .page-numbers { min-width: 34px; height: 34px; padding: 0 6px; font-size: 13px; }
}

/* Post cards: equal height, same picture size, title up to 3 lines, date at the bottom */
.post-grid { display: flex; flex-wrap: wrap; }
.post-grid::before, .post-grid::after { display: none; }
.post-grid > [class*="col-"] { display: flex; float: none; margin-bottom: 30px; }
.post-grid .single-blog-item { display: flex; flex-direction: column; width: 100%; background: #fff; }
.post-grid .blog-thumb { position: relative; aspect-ratio: 16 / 10; flex: none; background: #e9ecef; }
.post-grid .blog-thumb a { height: 100%; }
.post-grid .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-grid .blog-details { display: flex; flex-direction: column; flex: 1; }
.post-grid .blog-title { margin-bottom: 20px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-grid .blog-meta { margin: auto 0 0; }

/* Files in post texts: a download button (App\Support\FileLinks) */
.entry-content .file-download {
    display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 6px 8px 6px 0; padding: 12px 22px; border-radius: 50px;
    background: #31dc89; color: #fff; font-weight: 600; line-height: 1.3; text-decoration: none;
    box-shadow: 0 6px 16px rgba(49, 220, 137, .3); transition: background .2s, box-shadow .2s, transform .2s;
}
.entry-content .file-download:hover, .entry-content .file-download:focus-visible {
    background: #171932; color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(23, 25, 50, .25); outline: none;
}
.entry-content .file-download .fa { font-size: 16px; }
.entry-content .file-download__meta { font-size: 12px; font-weight: 500; opacity: .85; white-space: nowrap; }
.entry-content .wp-block-file { display: block; margin: 0 0 10px; }
