|
4 | 4 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"/> |
5 | 5 | <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script> |
6 | 6 |
|
| 7 | +<style> |
| 8 | + /* --- Latest News Page Styles --- */ |
| 9 | +.news-container { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; } |
| 10 | +.news-header { text-align: center; margin-bottom: 3rem; } |
| 11 | +.news-header h1 { font-size: 3.5em; font-weight: 800; margin-bottom: 2rem; } |
| 12 | + |
| 13 | +.news-search-wrapper { position: relative; } |
| 14 | +.news-search-wrapper .fa-search { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); color: #aaa; } |
| 15 | +.news-search-input { width: 100%; padding: 0.8rem 1rem 0.8rem 3rem; font-size: 1em; border-radius: 12px; border: 1px solid #ddd; background-color: #f8f8fa; } |
| 16 | + |
| 17 | +.news-entry { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid #e5e5e5; } |
| 18 | +.news-entry:last-child { border-bottom: none; margin-bottom: 0; } |
| 19 | + |
| 20 | +.news-date { font-size: 0.9em; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; } |
| 21 | +.news-title { font-size: 2em; font-weight: 700; line-height: 1.3; margin: 0 0 1rem 0; } |
| 22 | +.news-content { font-size: 1.1em; line-height: 1.7; color: #333; } |
| 23 | + |
| 24 | +/* --- Image Slider Styles --- */ |
| 25 | +.swiper { width: 100%; height: 500px; border-radius: 16px; margin-top: 2rem; box-shadow: 0 5px 25px rgba(0,0,0,0.1); } |
| 26 | +.swiper-slide { display: flex; justify-content: center; align-items: center; background: #eee; } |
| 27 | +.swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; } |
| 28 | +.swiper-button-next, .swiper-button-prev { color: #fff; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); } |
| 29 | +@media (max-width: 768px) { .swiper { height: 400px; } } |
| 30 | +</style> |
| 31 | + |
7 | 32 | <div class="news-container"> |
8 | 33 | <header class="news-header"> |
9 | 34 | <h1>Latest News</h1> |
|
0 commit comments