/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-link {
    display: inline-block;
}

.logo-image {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #555;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s ease;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4rem 0;
}

.blog-hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    color: #1e40af;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.newsletter-signup {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: #2563eb;
}

.newsletter-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #1d4ed8;
}

.hero-image-container {
    flex: 1;
}

.hero-image {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Featured Posts */
.featured-posts {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #2563eb;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.featured-content {
    padding: 1.5rem;
}

.featured-title {
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.featured-excerpt {
    color: #64748b;
    margin-bottom: 1rem;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.featured-link {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    transition: color 0.3s ease;
}

.featured-link:hover {
    color: #1d4ed8;
}

/* Blog Layout */
.blog-container {
    padding: 4rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Recent Posts */
.posts-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-button {
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    border: none;
    border-radius: 20px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background-color: #2563eb;
    color: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-image-wrapper {
    height: 180px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    color: #64748b;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.meta-category {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.meta-category.strategy { background-color: #dcfce7; color: #166534; }
.meta-category.tools { background-color: #dbeafe; color: #1e40af; }
.meta-category.analytics { background-color: #fef3c7; color: #92400e; }
.meta-category.case-studies { background-color: #fce7f3; color: #9d174d; }

.meta-date {
    font-size: 0.875rem;
    color: #94a3b8;
}

.post-link {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: #1d4ed8;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination-button {
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    border: none;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-button:hover:not(:disabled) {
    background-color: #2563eb;
    color: white;
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #64748b;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.search-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.category-link {
    color: #4b5563;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #2563eb;
}

.category-count {
    color: #94a3b8;
    font-size: 0.875rem;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.popular-link {
    color: #1e293b;
    transition: color 0.3s ease;
}

.popular-link:hover {
    color: #2563eb;
}

.popular-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #94a3b8;
}

.widget-text {
    color: #64748b;
    margin-bottom: 1rem;
}

.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-newsletter-input {
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.sidebar-newsletter-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-newsletter-button:hover {
    background-color: #1d4ed8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0;
}

.cta-section .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.cta-content {
    flex: 1;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background-color: #2563eb;
    color: white;
}

.cta-button.primary:hover {
    background-color: #1d4ed8;
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: #1e293b;
}

.cta-image-container {
    flex: 1;
}

.cta-image {
    border-radius: 12px;
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: #94a3b8;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-heading {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1e293b;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #2563eb;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #94a3b8;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.legal-link {
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: white;
}

.legal-separator {
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-hero .container,
    .cta-section .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .newsletter-signup {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .featured-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
}