/* Blog Specific Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.blog-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
}

.blog-hero-content .underline {
    height: 4px;
    width: 70px;
    background-color: var(--accent-color);
    margin: 0 auto 20px;
    position: relative;
}

.blog-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}

.blog-search {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 50px;
    padding: 8px 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-search.active {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.blog-search i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

.blog-search input {
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 8px 0;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: var(--secondary-color);
}

/* Featured Post Section */
.featured-post {
    padding: 80px 0;
    background-color: white;
}

.featured-post-container {
    display: flex;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-post-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-post-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.featured-post-container:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.featured-post-content {
    flex: 1;
    padding: 40px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-post-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.featured-post-container:hover .featured-post-content h2 {
    color: var(--primary-color);
}

.featured-post-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.post-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Blog Categories Section */
.blog-categories {
    padding: 80px 0;
    background-color: var(--light-color);
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.category-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 200px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    transition: all 0.3s ease;
    z-index: 0;
}

.category-card.hover::before,
.category-card:hover::before {
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    background-color: var(--primary-color);
}

.category-icon i {
    font-size: 30px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    color: white;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Latest Posts Section */
.latest-posts {
    padding: 80px 0;
    background-color: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.post-content {
    padding: 25px;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.post-card:hover .post-content h3 {
    color: var(--primary-color);
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more i {
    transition: all 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 5px;
    color: var(--text-color);
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination a.next {
    width: auto;
    padding: 0 20px;
    gap: 5px;
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Newsletter Section */
.newsletter {
    padding: 50px 0;
    background-color: var(--light-color);
}

.newsletter-container {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    border-radius: 15px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-content {
    flex: 1;
    color: white;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.newsletter-form {
    flex: 1;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    white-space: nowrap;
}

.newsletter-form button i {
    transition: all 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(5px);
}

/* Individual Blog Post Page Styles */
.blog-post-hero {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    color: white;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post-content {
    padding: 80px 0;
    background-color: white;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-text h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--dark-color);
}

.blog-post-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-text ul, 
.blog-post-text ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-post-text li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-post-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    background-color: var(--light-color);
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.blog-post-text img {
    max-width: 100%;
    border-radius: 10px;
    margin: 30px 0;
}

.blog-post-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.blog-post-text th, 
.blog-post-text td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.blog-post-text th {
    background-color: var(--primary-color);
    color: white;
}

.blog-post-text tr:nth-child(even) {
    background-color: var(--light-color);
}

.blog-post-text tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.blog-post-text code {
    background-color: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.blog-post-text pre {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 30px 0;
}

.blog-post-text pre code {
    background-color: transparent;
    padding: 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
}

.blog-tag {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.blog-share span {
    font-weight: 500;
}

.blog-share-icons {
    display: flex;
    gap: 10px;
}

.blog-share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.blog-share-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.blog-author {
    display: flex;
    gap: 20px;
    background-color: var(--light-color);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
}

.blog-author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-author-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-author-social {
    display: flex;
    gap: 10px;
}

.blog-author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.blog-author-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.blog-comments {
    margin: 60px 0;
}

.blog-comments h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 500;
}

.comment-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-text p {
    margin-bottom: 10px;
}

.comment-reply {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.comment-reply:hover {
    color: var(--secondary-color);
}

.comment-reply i {
    font-size: 0.9rem;
}

.comment-form {
    margin-top: 60px;
}

.comment-form h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Related Posts Section */
.related-posts {
    padding: 80px 0;
    background-color: var(--light-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-post-container {
        flex-direction: column;
    }
    
    .featured-post-image {
        height: 300px;
    }
    
    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-post-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .blog-author {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-author-image {
        margin: 0 auto;
    }
    
    .blog-author-social {
        justify-content: center;
    }
    
    .comment {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .comment-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-search {
        flex-direction: column;
        padding: 15px;
    }
    
    .blog-search input {
        margin-bottom: 10px;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .categories-container {
        flex-direction: column;
        align-items: center;
    }
    
    .category-card {
        width: 100%;
        max-width: 300px;
    }
    
    .pagination a {
        width: 35px;
        height: 35px;
    }
}
