/* File: assets/css/blog-styles.css */
/*--------------------------------------------------------------
Blog Common Styles
--------------------------------------------------------------*/
.page-header {
background-color: var(--primary-color);
color: white;
padding: 4rem 0;
text-align: center;
margin-bottom: 3rem;
position: relative;
overflow: hidden;
}
.page-header:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('../images/paw-pattern-dark.png');
background-size: 200px;
background-repeat: repeat;
opacity: 0.1;
z-index: 0;
}
.page-header h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
position: relative;
z-index: 1;
}
.page-header p {
font-size: 1.2rem;
max-width: 600px;
margin: 0 auto;
opacity: 0.9;
position: relative;
z-index: 1;
}
.blog-container {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 3rem;
margin-bottom: 3rem;
}
/*--------------------------------------------------------------
Blog Listing Page
--------------------------------------------------------------*/
.blog-posts {
display: grid;
grid-template-columns: 1fr;
gap: 2.5rem;
}
.blog-post {
display: grid;
grid-template-columns: 1fr 2fr;
background-color: var(--bg-color);
border-radius: 15px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid rgba(0, 0, 0, 0.05);
}
.blog-post:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.post-image {
height: 100%;
overflow: hidden;
}
.post-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.blog-post:hover .post-image img {
transform: scale(1.05);
}
.post-content {
padding: 2rem;
display: flex;
flex-direction: column;
}
.post-meta {
display: flex;
align-items: center;
margin-bottom: 1rem;
font-size: 0.9rem;
}
.post-category {
background-color: var(--primary-color);
color: white;
padding: 3px 12px;
border-radius: 20px;
font-weight: 500;
margin-right: 10px;
}
.post-date {
color: var(--text-light);
}
.post-title {
font-size: 1.5rem;
font-weight: 700;
line-height: 1.4;
margin-bottom: 1rem;
}
.post-title a {
color: var(--text-dark);
text-decoration: none;
transition: color 0.3s ease;
}
.post-title a:hover {
color: var(--primary-color);
}
.post-excerpt {
color: var(--text-light);
margin-bottom: 1.5rem;
line-height: 1.6;
flex-grow: 1;
}
.post-footer {
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid var(--border-color);
padding-top: 1rem;
}
.post-author {
font-size: 0.9rem;
color: var(--text-light);
}
.read-more {
color: var(--primary-color);
font-weight: 500;
text-decoration: none;
display: flex;
align-items: center;
transition: color 0.3s ease;
}
.read-more i {
margin-left: 5px;
transition: transform 0.3s ease;
}
.read-more:hover {
color: var(--primary-dark);
}
.read-more:hover i {
transform: translateX(5px);
}
.no-posts {
text-align: center;
padding: 4rem 2rem;
background-color: var(--bg-alt);
border-radius: 15px;
}
.no-posts h2 {
font-size: 1.8rem;
margin-bottom: 1rem;
color: var(--text-dark);
}
.no-posts p {
margin-bottom: 2rem;
color: var(--text-light);
}
/*--------------------------------------------------------------
Blog Sidebar
--------------------------------------------------------------*/
.blog-sidebar {
position: sticky;
top: 100px;
}
.sidebar-widget {
background-color: var(--bg-color);
border-radius: 15px;
padding: 1.8rem;
margin-bottom: 2rem;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(0, 0, 0, 0.05);
}
.sidebar-widget h3 {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 1.5rem;
position: relative;
padding-bottom: 10px;
color: var(--text-dark);
}
.sidebar-widget h3:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 3px;
background-color: var(--primary-color);
}
.category-list {
list-style: none;
padding: 0;
margin: 0;
}
.category-list li {
margin-bottom: 10px;
border-bottom: 1px solid var(--border-light);
padding-bottom: 10px;
}
.category-list li:last-child {
margin-bottom: 0;
border-bottom: none;
padding-bottom: 0;
}
.category-list a {
color: var(--text-color);
text-decoration: none;
display: flex;
justify-content: space-between;
align-items: center;
transition: color 0.3s ease;
}
.category-list a:hover,
.category-list a.active {
color: var(--primary-color);
}
.category-list .count {
font-size: 0.9rem;
color: var(--text-light);
transition: color 0.3s ease;
}
.category-list a:hover .count,
.category-list a.active .count {
color: var(--primary-color);
}
.recent-posts {
list-style: none;
padding: 0;
margin: 0;
}
.recent-posts li {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid var(--border-light);
}
.recent-posts li:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.recent-posts a {
color: var(--text-color);
text-decoration: none;
font-weight: 500;
display: block;
margin-bottom: 5px;
transition: color 0.3s ease;
}
.recent-posts a:hover {
color: var(--primary-color);
}
.recent-posts .date {
font-size: 0.8rem;
color: var(--text-light);
}
.newsletter-widget {
background-color: var(--primary-color);
color: white;
}
.newsletter-widget h3 {
color: white;
}
.newsletter-widget h3:after {
background-color: white;
}
.newsletter-widget p {
margin-bottom: 1.5rem;
opacity: 0.9;
}
.newsletter-sidebar-form {
display: flex;
}
.newsletter-sidebar-form input[type="email"] {
flex: 1;
padding: 10px 15px;
border: none;
border-radius: 25px 0 0 25px;
font-size: 0.9rem;
}
.newsletter-sidebar-form input[type="email"]:focus {
outline: none;
}
.newsletter-sidebar-form button {
background-color: var(--accent-color);
color: white;
border: none;
border-radius: 0 25px 25px 0;
padding: 0 15px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.newsletter-sidebar-form button:hover {
background-color: #e64c2e;
}
/*--------------------------------------------------------------
Blog Post Detail
--------------------------------------------------------------*/
.blog-post-detail {
background-color: var(--bg-color);
border-radius: 15px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
overflow: hidden;
margin-bottom: 3rem;
border: 1px solid rgba(0, 0, 0, 0.05);
}
.post-header {
text-align: center;
padding: 3rem;
}
.post-header .post-meta {
justify-content: center;
margin-bottom: 1.5rem;
}
.post-header .post-title {
font-size: 2.5rem;
max-width: 800px;
margin: 0 auto 1.5rem;
}
.post-author {
font-size: 1rem;
color: var(--text-light);
}
.post-featured-image {
width: 100%;
max-height: 600px;
overflow: hidden;
}
.post-featured-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.post-content {
padding: 3rem;
font-size: 1.05rem;
line-height: 1.8;
color: var(--text-color);
}
.post-content p,
.post-content ul,
.post-content ol {
margin-bottom: 1.5rem;
}
.post-content h2,
.post-content h3,
.post-content h4 {
margin: 2.5rem 0 1rem;
color: var(--text-dark);
}
.post-content img {
max-width: 100%;
border-radius: 10px;
margin: 1.5rem 0;
}
.post-content a {
color: var(--primary-color);
text-decoration: none;
}
.post-content a:hover {
text-decoration: underline;
}
.post-content blockquote {
border-left: 4px solid var(--primary-color);
padding: 1rem 0 1rem 2rem;
margin: 2rem 0;
font-style: italic;
color: var(--text-light);
}
.post-share {
border-top: 1px solid var(--border-color);
padding-top: 2rem;
margin-top: 3rem;
}
.post-share h4 {
font-size: 1.2rem;
margin-bottom: 1rem;
}
.social-share {
display: flex;
gap: 1rem;
}
.social-share a {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
transition: transform 0.3s ease;
}
.social-share a:hover {
transform: translateY(-3px);
}
.social-share .facebook {
background-color: #3b5998;
}
.social-share .twitter {
background-color: #1da1f2;
}
.social-share .pinterest {
background-color: #bd081c;
}
.social-share i {
font-size: 1rem;
}
/* Related Posts */
.related-posts {
padding: 3rem;
border-top: 1px solid var(--border-color);
}
.related-posts h2 {
font-size: 1.8rem;
margin-bottom: 2rem;
text-align: center;
}
.related-posts-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
.related-post {
background-color: var(--bg-alt);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-post:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.related-post-img {
display: block;
height: 180px;
overflow: hidden;
}
.related-post-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.related-post:hover .related-post-img img {
transform: scale(1.05);
}
.related-post-content {
padding: 1.5rem;
}
.related-post-content h3 {
font-size: 1.1rem;
margin-bottom: 0.5rem;
line-height: 1.4;
}
.related-post-content h3 a {
color: var(--text-dark);
text-decoration: none;
transition: color 0.3s ease;
}
.related-post-content h3 a:hover {
color: var(--primary-color);
}
.related-post-content .date {
font-size: 0.8rem;
color: var(--text-light);
}
/*--------------------------------------------------------------
Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 1200px) {
.post-header .post-title {
font-size: 2.2rem;
}
}
@media (max-width: 992px) {
.blog-container {
grid-template-columns: 1fr;
gap: 2rem;
}
.blog-sidebar {
    position: static;
}

.related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.page-header {
padding: 3rem 0;
}
.page-header h1 {
    font-size: 2rem;
}

.blog-post {
    grid-template-columns: 1fr;
}

.post-image {
    height: 250px;
}

.post-header {
    padding: 2rem;
}

.post-header .post-title {
    font-size: 1.8rem;
}

.post-content {
    padding: 2rem;
}

.related-posts {
    padding: 2rem;
}

.related-posts h2 {
    font-size: 1.5rem;
}
}
@media (max-width: 576px) {
.related-posts-grid {
grid-template-columns: 1fr;
}
.social-share {
    justify-content: center;
}
}
/* Dark Mode Styles */
[data-theme="dark"] .blog-post,
[data-theme="dark"] .blog-post-detail,
[data-theme="dark"] .sidebar-widget {
border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .related-post {
background-color: var(--bg-color);
}
[data-theme="dark"] .post-content blockquote {
color: #a0aec0;
}