@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap'); body { font-family: 'Inter', sans-serif; color: #000; background: #f7f7f7; font-size: 16px; line-height: 1.6; margin: 0; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .search-section { padding: 20px 0; } .search-wrapper { position: relative; max-width: 500px; margin: 0 auto; } .search-field { width: 100%; padding: 12px 50px 12px 20px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 16px; outline: none; background: #ffffff; transition: border-color 0.3s ease, box-shadow 0.3s ease; } .search-field:focus { border-color: #1a1a1a; box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.2); } .search-submit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 8px; cursor: pointer; color: #1a1a1a; font-size: 18px; transition: color 0.3s ease; } .search-submit:hover { color: #000; } .featured-posts-section { padding: 20px 0; } .section-title { font-size: 28px; font-weight: 600; color: #000; margin-bottom: 20px; position: relative; } .section-title::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 3px; background: #000; } .section-title:empty::after { display: none; } .post-slider { position: relative; overflow: hidden; } .featured-post { display: none; background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); flex-direction: row; align-items: center; } .featured-post.active { display: flex; } .post-image { width: 50%; padding-bottom: 33.33%; position: relative; overflow: hidden; } .post-image img { width: 100%; height: 100%; object-fit: cover; object-position: top left; position: absolute; top: 0; left: 0; } .post-content { width: 50%; padding: 20px; display: flex; flex-direction: column; justify-content: center; } .post-title a { font-size: 22px; font-weight: 600; color: #000; text-decoration: none; transition: color 0.3s ease; } .post-title a:hover { color: #1a1a1a; } .post-excerpt { color: #1a1a1a; font-size: 14px; margin: 10px 0; } .author-info { display: flex; align-items: center; gap: 10px; } .author-info img { border-radius: 50%; width: 32px; height: 32px; } .author-name a { color: #1a1a1a; text-decoration: none; font-weight: 600; transition: color 0.3s ease; } .author-name a:hover { color: #000; } .post-date { color: #1a1a1a; font-size: 14px; } .slider-pagination { text-align: center; padding: 10px 0; } .pagination-dot { display: inline-block; width: 10px; height: 10px; background: #e2e8f0; border-radius: 50%; margin: 0 5px; cursor: pointer; transition: background 0.3s ease; } .pagination-dot.active { background: #000; } .popular-posts-section { padding: 30px 0; } .popular-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .popular-post { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; } .popular-post:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); } .popular-post-image { position: relative; } .popular-post-image img { width: 100%; height: 200px; object-fit: cover; } .popular-post-content { padding: 15px; } .popular-post-title a { font-size: 16px; font-weight: 600; color: #000; text-decoration: none; transition: color 0.3s ease; } .popular-post-title a:hover { color: #1a1a1a; } .popular-post-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #1a1a1a; font-size: 14px; } .popular-post-meta img { border-radius: 50%; width: 24px; height: 24px; } .latest-posts-section { padding: 30px 0; } .latest-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .latest-post-item { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; } .latest-post-item:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); } .latest-post-image { position: relative; } .latest-post-image img { width: 100%; height: 150px; object-fit: cover; } .post-categories { position: absolute; top: 10px; left: 10px; background: rgba(26, 26, 26, 0.9); color: #ffffff; padding: 4px 10px; border-radius: 6px; font-size: 12px; } .post-categories a { color: #ffffff; text-decoration: none; transition: opacity 0.3s ease; } .post-categories a:hover { opacity: 0.8; } .post-time-ago { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, 0.9); padding: 4px 10px; border-radius: 6px; font-size: 12px; color: #1a1a1a; } .latest-post-content { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; } .latest-post-title { margin: 0; } .latest-post-title a { font-size: 16px; font-weight: 600; color: #000; text-decoration: none; transition: color 0.3s ease; } .latest-post-title a:hover { color: #1a1a1a; } .latest-post-excerpt { color: #1a1a1a; font-size: 14px; margin: 5px 0; } .read-more-btn { display: block; text-align: center; padding: 8px 16px; background: #000; color: #ffffff; text-decoration: none; border-radius: 6px; font-size: 14px; transition: background 0.3s ease; margin-top: 15px; } .read-more-btn:hover { background: #1a1a1a; } .load-more-btn { display: block; margin: 20px auto 0; padding: 12px 24px; background: #000; color: #ffffff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; transition: background 0.3s ease; } .load-more-btn:hover { background: #1a1a1a; } @media (max-width: 768px) { .featured-post { flex-direction: column; } .post-image, .post-content { width: 100%; } .post-image { padding-bottom: 50%; } .featured-post .post-content { padding: 15px !important; box-sizing: border-box; } .post-title a { font-size: 18px; } .post-excerpt { font-size: 14px; } .popular-posts-grid, .latest-posts-grid { grid-template-columns: 1fr; gap: 15px; } .section-title { font-size: 24px; } .popular-post-title a, .latest-post-title a { font-size: 16px; } .read-more-btn, .load-more-btn { font-size: 14px; padding: 10px 20px; } } @media (max-width: 480px) { .container { padding: 0 15px; } .search-field { padding: 10px 40px 10px 15px; font-size: 14px; } .search-submit { font-size: 16px; } .post-image { padding-bottom: 60%; } .post-title a { font-size: 18px; } .post-excerpt { font-size: 13px; } .popular-post-image img, .latest-post-image img { height: 140px; } .popular-post-title a, .latest-post-title a { font-size: 15px; } .read-more-btn { padding: 6px 12px; font-size: 13px; } .load-more-btn { padding: 8px 16px; font-size: 13px; } }