@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #057674;
    --primary-hover: #034241;
    --dark-slate: #171717;
    --text-main: #333333;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

#header-placeholder {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background-color: var(--bg-white);
}

.site-header {
    box-shadow: none !important;
}

#header-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.blog-container, .post-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.blog-container h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-slate);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -1px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card-link {
    display: block;
    color: inherit;
}

.blog-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-slate);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.blog-card-content .date {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

.blog-card-content p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.btn-pagination {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--bg-white);
    color: var(--dark-slate);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
}

.btn-pagination:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.post-container {
    max-width: 800px;
}

.post-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-slate);
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.post-date {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.share-btn {
    background: none;
    border: none;
    color: var(--dark-slate);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.post-content {
    font-size: 18px;
    color: var(--text-main);
    line-height: 1.8;
}

.post-content h2, .post-content h3, .post-content h4 {
    color: var(--dark-slate);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.post-content h2 { font-size: 32px; }
.post-content h3 { font-size: 26px; }
.post-content h4 { font-size: 22px; }

.post-content p {
    margin-bottom: 25px;
}

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

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-light);
    margin: 30px 0;
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--dark-slate);
}

.post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.post-footer h3, .recommended-posts h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 30px;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.recent-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.recent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.recent-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.recent-card-text {
    padding: 15px;
    flex-grow: 1;
}

.recent-card-text h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-slate);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.active-link {
    color: var(--primary-color) !important;
}

.active-link::after {
    width: 100% !important;
}

.category-filters {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    width: 100%;
}

.category-pill {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-pill:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(5, 118, 116, 0.25);
}

@media (max-width: 768px) {
    .blog-container, .post-container {
        padding: 40px 20px;
    }
    
    .blog-container h1 {
        font-size: 36px;
    }
    
    .post-title {
        font-size: 34px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 { font-size: 26px; }
    .post-content h3 { font-size: 22px; }
    
    .recent-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recent-card img {
        width: 100%;
        height: 140px;
    }

    .category-filters {
        flex-direction: column;
        gap: 14px;
        padding: 0 15px;
    }
    
    .category-pill {
        width: 100%;
        padding: 14px 20px;
    }
}
