/* Blog Specific Styles */
.blog-header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 80px 0;
}

.blog-header h1 {
    color: var(--light-text-color);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.blog-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.blog-articles {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

.blog-post {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 768px) {
    .blog-post {
        flex-direction: row;
        min-height: 280px;
    }
}

.blog-image {
    overflow: hidden;
    flex: 1;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    flex: 2;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.blog-meta span i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.blog-content h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.blog-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color var(--transition-speed);
}

.read-more i {
    margin-left: 5px;
    transition: transform var(--transition-speed);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

.blog-subscribe {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 60px 0;
}

.subscribe-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .subscribe-content {
        flex-direction: column;
        text-align: center;
    }
}

.subscribe-text {
    max-width: 500px;
}

.subscribe-text h2 {
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.subscribe-text p {
    color: rgba(255, 255, 255, 0.8);
}

.subscribe-form {
    display: flex;
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    .subscribe-form {
        width: 100%;
        max-width: 500px;
    }
}

.subscribe-form input {
    padding: 12px 15px;
    width: 300px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.subscribe-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

@media screen and (max-width: 576px) {
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        width: 100%;
        border-radius: var(--border-radius);
    }
    
    .subscribe-form button {
        margin-top: 10px;
        border-radius: var(--border-radius);
    }
}

/* Article Page Styling */
.article-section {
    padding: 60px 0;
}

.article-header {
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.article-meta span i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.article-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: var(--border-radius);
}

.article-author-bio {
    margin-top: 60px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

.article-author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.author-info h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.author-info h4 {
    margin-bottom: 10px;
}

.author-info p {
    margin-bottom: 0;
    color: var(--gray-color);
}

.article-share {
    margin-top: 40px;
    text-align: center;
}

.article-share h3 {
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    color: var(--light-text-color);
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.share-button i {
    margin-right: 8px;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.linkedin {
    background-color: #0077b5;
}

.share-button.email {
    background-color: #666;
}

.share-button:hover {
    opacity: 0.9;
    color: var(--light-text-color);
}

.related-articles {
    margin-top: 60px;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media screen and (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-article {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.related-article a {
    display: block;
}

.related-article img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.related-article:hover img {
    transform: scale(1.05);
}

.related-article h4 {
    padding: 15px;
    margin-bottom: 0;
    font-size: 1rem;
}

@media screen and (max-width: 992px) {
    .article-image img {
        height: auto;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .article-author-bio img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 576px) {
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
}
