/*************************************************** * AirTheme — Post Grid / Cards ***************************************************/ /* Grid-wrap layout */ .post-grid-wrap { max-width: 100%; margin: 0 auto; padding: 0 5px; } /* Grid layout */ .post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 310px)); gap: 28px; margin-top: 25px; justify-content: center; } /* Card wrapper */ .post-card { background: rgba(255,255,255,0.45); border-radius: 14px; overflow: hidden; box-shadow: 0 3px 14px rgba(0,0,0,0.06); transition: .25s ease; max-width: 100%; width: 100%; justify-content: center; } .post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.10); } /* Thumbnail */ .post-thumb { position: relative; height: 210px; overflow: hidden; } .post-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(0.85); transition: .4s ease; } .post-card:hover .post-thumb img { filter: grayscale(0%) brightness(1); } /* Bottom overlay */ .thumb-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 38%; background: linear-gradient( to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.10) 100% ); display: flex; align-items: flex-end; padding: 12px 14px; } /* Title inside thumbnail */ .post-card .thumb-title { color: #fff; font-size: 15px; font-weight: 600; margin: 0; line-height: 1.35; max-width: 92%; text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 2px rgba(255,255,255,0.35); } .post-card .thumb-title { word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; } /* Related posts section */ .related-posts { margin-top: 60px; } .related-title { font-size: 24px; font-weight: 700; margin: 50px 0 25px; color: #333; } /* Excerpt block */ .post-excerpt { padding: 14px 18px 18px; font-size: 15px; line-height: 1.55; color: rgba(20,20,20,0.8); } /* Inline "Read more" inside excerpt */ .post-excerpt .read-more { display: inline-block; margin-top: 10px; font-size: 13px; padding: 7px 14px; border-radius: 6px; background: rgba(0,0,0,0.05); color: var(--accent-color); text-decoration: none; transition: .25s ease; } .post-excerpt .read-more:hover { background: rgba(0,0,0,0.12); } /* Standalone "Read more" button */ .read-more { display: inline-block; padding: 8px 16px; margin-top: 14px; font-size: 13px; font-weight: 500; color: rgba(20,20,20,0.75); background: rgba(255,255,255,0.85); border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; text-decoration: none; letter-spacing: 0.2px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); backdrop-filter: blur(4px); transition: all .25s ease; } .read-more:hover { border-color: rgba(0,0,0,0.12); box-shadow: 0 4px 12px rgba(0,0,0,0.12); transform: translateY(-1px); color: rgba(0,0,0,0.9); } .read-more:hover::after { transform: translateX(2px); }