/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
}

/* Blog Header Styles */
.blog-header {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.blog-search {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.blog-search input {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.blog-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.blog-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    background: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #2196f3;
    border-color: #2196f3;
}

/* Latest Posts Section Styles */
.latest-posts {
    padding: 6rem 2rem;
    background: #f5f6fa;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.posts-filter {
    display: flex;
    gap: 1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.post-image {
    position: relative;
    height: 240px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2196f3;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-category {
    color: #2196f3;
    font-weight: 500;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.read-more {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s;
}

.read-more:hover {
    transform: translateX(5px);
}

.load-more {
    text-align: center;
}

.load-more button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: #2196f3;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Trending Topics Styles */
.trending-topics {
    padding: 6rem 2rem;
    background: white;
}

.topics-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem;
    margin: 0 -2rem;
}

.topic-card {
    flex: 0 0 300px;
    padding: 2rem;
    background: #f5f6fa;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.topic-card:hover {
    transform: translateY(-10px);
    background: #2196f3;
    color: white;
}

.topic-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Expert Insights Styles */
.expert-insights {
    padding: 6rem 2rem;
    background: #f5f6fa;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.expert-profile {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.expert-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.expert-info h4 {
    margin: 0;
    color: #333;
}

.expert-info span {
    color: #2196f3;
    font-size: 0.9rem;
}

/* Related Articles Section */
.related-articles {
    padding: 6rem 2rem;
    background: white;
}

.article-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.article-carousel::-webkit-scrollbar {
    display: none;
}

.article-slide {
    flex: 0 0 350px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    scroll-snap-align: start;
}

.article-image {
    position: relative;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.reading-time {
    font-size: 0.9rem;
}

.article-content {
    padding: 2rem;
}

.article-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: #2196f3;
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.article-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Tax Resources Hub */
.resources-hub {
    padding: 6rem 2rem;
    background: white;
}

.hub-header {
    text-align: center;
    margin-bottom: 4rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: #f5f6fa;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.resource-card:hover {
    transform: translateY(-10px);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.resource-list {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.resource-list li {
    margin-bottom: 0.8rem;
}

.resource-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.resource-list a:hover {
    color: #2196f3;
}

/* Video Section */
.video-section {
    padding: 6rem 2rem;
    background: #f5f6fa;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    height: 200px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2196f3;
    transition: all 0.3s;
}

.video-card:hover .play-button {
    background: #2196f3;
    color: white;
}

.video-content {
    padding: 1.5rem;
}

.video-duration {
    color: #666;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #1976d2;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2196f3;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background: #1976d2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-card.featured {
        grid-template-columns: 1fr;
    }

    .posts-header {
        flex-direction: column;
        gap: 1rem;
    }

    .posts-filter {
        flex-wrap: wrap;
        justify-content: center;
    }

    .article-slide {
        flex: 0 0 300px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}