* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
a {
text-decoration: none;
color: inherit;
transition: color 0.3s ease;
}
a:hover {
color: #e74c3c;
}
img {
max-width: 100%;
height: auto;
display: block;
}
ul, ol {
list-style: none;
}
button, input, textarea {
font-family: inherit;
font-size: inherit;
} .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.site-content {
min-height: calc(100vh - 200px);
padding: 40px 0;
} .site-header {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
color: #fff;
padding: 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-top {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-logo {
font-size: 28px;
font-weight: 700;
color: #fff;
letter-spacing: 2px;
}
.site-logo span {
color: #e74c3c;
}
.main-navigation {
display: flex;
justify-content: center;
gap: 5px;
}
.main-navigation ul {
display: flex;
gap: 5px;
}
.main-navigation li {
position: relative;
}
.main-navigation a {
display: block;
padding: 12px 20px;
color: rgba(255,255,255,0.85);
font-size: 15px;
font-weight: 500;
transition: all 0.3s ease;
border-radius: 4px;
}
.main-navigation a:hover,
.main-navigation a.active {
color: #fff;
background: rgba(231, 76, 60, 0.8);
}
.main-navigation .sub-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
background: #1a1a2e;
min-width: 200px;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
border-radius: 4px;
overflow: hidden;
}
.main-navigation li:hover > .sub-menu {
display: block;
}
.sub-menu li a {
padding: 10px 20px;
border-bottom: 1px solid rgba(255,255,255,0.1);
} .hero-section {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
color: #fff;
padding: 80px 0;
text-align: center;
position: relative;
overflow: hidden;
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="2" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.04)"/></svg>');
background-size: 200px 200px;
}
.hero-content {
position: relative;
z-index: 1;
}
.hero-section h1 {
font-size: 48px;
margin-bottom: 20px;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-section p {
font-size: 20px;
opacity: 0.9;
margin-bottom: 30px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.hero-buttons {
display: flex;
gap: 15px;
justify-content: center;
}
.btn {
display: inline-block;
padding: 12px 30px;
border-radius: 30px;
font-weight: 600;
transition: all 0.3s ease;
cursor: pointer;
border: none;
}
.btn-primary {
background: #e74c3c;
color: #fff;
}
.btn-primary:hover {
background: #c0392b;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}
.btn-secondary {
background: transparent;
color: #fff;
border: 2px solid #fff;
}
.btn-secondary:hover {
background: #fff;
color: #1a1a2e;
} .categories-section {
padding: 60px 0;
background: #fff;
}
.section-title {
text-align: center;
font-size: 32px;
margin-bottom: 40px;
color: #1a1a2e;
position: relative;
}
.section-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: #e74c3c;
border-radius: 2px;
}
.categories-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 25px;
}
.category-card {
background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 12px;
padding: 30px 20px;
text-align: center;
transition: all 0.3s ease;
cursor: pointer;
border: 2px solid transparent;
}
.category-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
border-color: #e74c3c;
}
.category-card .icon {
font-size: 48px;
margin-bottom: 15px;
}
.category-card h3 {
font-size: 18px;
color: #1a1a2e;
margin-bottom: 8px;
}
.category-card .count {
font-size: 14px;
color: #666;
} .articles-section {
padding: 60px 0;
}
.articles-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}
.article-card {
background: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
transition: all 0.3s ease;
}
.article-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.article-card .thumbnail {
height: 200px;
overflow: hidden;
background: #ddd;
}
.article-card .thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.article-card:hover .thumbnail img {
transform: scale(1.05);
}
.article-card .content {
padding: 20px;
}
.article-card .category {
display: inline-block;
padding: 4px 12px;
background: #e74c3c;
color: #fff;
border-radius: 20px;
font-size: 12px;
margin-bottom: 10px;
}
.article-card h3 {
font-size: 18px;
margin-bottom: 10px;
line-height: 1.4;
color: #1a1a2e;
}
.article-card h3 a:hover {
color: #e74c3c;
}
.article-card .meta {
font-size: 13px;
color: #888;
}
.article-card .excerpt {
font-size: 14px;
color: #666;
margin-top: 10px;
line-height: 1.6;
} .pagination {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 40px;
}
.pagination a,
.pagination span {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 40px;
height: 40px;
padding: 0 12px;
background: #fff;
border-radius: 8px;
font-size: 14px;
transition: all 0.3s ease;
}
.pagination a:hover {
background: #e74c3c;
color: #fff;
}
.pagination .current {
background: #e74c3c;
color: #fff;
} .site-footer {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
color: #fff;
padding: 60px 0 30px;
}
.footer-widgets {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 30px;
margin-bottom: 40px;
}
.footer-widget h4 {
font-size: 16px;
margin-bottom: 20px;
color: #e74c3c;
position: relative;
padding-bottom: 10px;
}
.footer-widget h4::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 2px;
background: #e74c3c;
}
.footer-widget ul li {
margin-bottom: 10px;
}
.footer-widget ul li a {
color: rgba(255,255,255,0.7);
font-size: 14px;
transition: color 0.3s ease;
}
.footer-widget ul li a:hover {
color: #e74c3c;
}
.footer-widget p {
color: rgba(255,255,255,0.7);
font-size: 14px;
line-height: 1.8;
}
.site-info {
text-align: center;
padding-top: 30px;
border-top: 1px solid rgba(255,255,255,0.1);
}
.site-info p {
color: rgba(255,255,255,0.5);
font-size: 14px;
}
.site-info a {
color: #e74c3c;
} .single-post {
max-width: 800px;
margin: 0 auto;
}
.single-post .post-header {
text-align: center;
margin-bottom: 30px;
}
.single-post .post-category {
display: inline-block;
padding: 4px 12px;
background: #e74c3c;
color: #fff;
border-radius: 20px;
font-size: 12px;
margin-bottom: 15px;
}
.single-post h1 {
font-size: 36px;
margin-bottom: 15px;
color: #1a1a2e;
}
.single-post .post-meta {
color: #888;
font-size: 14px;
}
.single-post .post-thumbnail {
margin-bottom: 30px;
border-radius: 12px;
overflow: hidden;
}
.single-post .post-content {
font-size: 16px;
line-height: 1.8;
color: #333;
}
.single-post .post-content h2 {
font-size: 24px;
margin: 30px 0 15px;
color: #1a1a2e;
}
.single-post .post-content h3 {
font-size: 20px;
margin: 25px 0 10px;
color: #1a1a2e;
}
.single-post .post-content p {
margin-bottom: 15px;
}
.single-post .post-content ul,
.single-post .post-content ol {
margin: 15px 0;
padding-left: 25px;
}
.single-post .post-content li {
margin-bottom: 8px;
list-style: disc;
}
.single-post .post-content img {
border-radius: 8px;
margin: 20px 0;
}
.single-post .post-content blockquote {
border-left: 4px solid #e74c3c;
padding: 15px 20px;
background: #f8f9fa;
margin: 20px 0;
font-style: italic;
} .comments-section {
margin-top: 40px;
padding-top: 40px;
border-top: 1px solid #eee;
}
.comments-section h3 {
font-size: 20px;
margin-bottom: 20px;
} .search-form {
display: flex;
gap: 10px;
margin-bottom: 30px;
}
.search-form input {
flex: 1;
padding: 12px 20px;
border: 2px solid #ddd;
border-radius: 8px;
font-size: 16px;
}
.search-form button {
padding: 12px 30px;
background: #e74c3c;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s ease;
}
.search-form button:hover {
background: #c0392b;
} @media (max-width: 1024px) {
.categories-grid {
grid-template-columns: repeat(3, 1fr);
}
.footer-widgets {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {
.hero-section h1 {
font-size: 32px;
}
.categories-grid {
grid-template-columns: repeat(2, 1fr);
}
.articles-grid {
grid-template-columns: repeat(2, 1fr);
}
.footer-widgets {
grid-template-columns: repeat(2, 1fr);
}
.main-navigation ul {
flex-wrap: wrap;
justify-content: center;
}
}
@media (max-width: 480px) {
.categories-grid,
.articles-grid {
grid-template-columns: 1fr;
}
.footer-widgets {
grid-template-columns: 1fr;
}
.hero-buttons {
flex-direction: column;
align-items: center;
}
}