/* Blog Archive & Listing Styles */

.blog-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.blog-archive-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1e3a5f;
    font-weight: 700;
    margin: 0;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #1e3a5f;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-all-link:hover {
    background-color: #2d4a7c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.view-all-link i {
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(4px);
}

.archive-direct-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Categories List Block */
.categories-list-block {
    margin-bottom: 80px;
}

.categories-list-title {
    font-size: 1.5rem;
    color: #1e3a5f;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-item {
    border: 1px solid #56585e;
    color: #56585e;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    display: inline-block;
}

.category-item:hover {
    background-color: #1e3a5f;
    color: #fff;
    transform: translateY(-2px);
    border: 1px solid #1e3a5f;
    white-space: nowrap;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.category-item .category-name {
    font-weight: 500;
}

.category-item .category-count {
    font-size: 0.85rem;
    opacity: 0.7;
}

.category-item:hover .category-count {
    opacity: 0.9;
}

.page-header {
    /* margin-bottom: 3rem; */
    /* text-align: center; */
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1e3a5f;
    font-weight: 300;
    margin-bottom: 1rem;
}

.page-title span {
    color: #c9a961;
    font-weight: 600;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-image,
.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-header {
    margin-bottom: 1rem;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #c9a961;
    color: #fff;
    font-size: 0.875rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.post-category:hover {
    background-color: #b8964f;
    color: #fff;
}

.post-title {
    font-size: 1.5rem;
    color: #1e3a5f;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

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

.post-title a:hover {
    color: #c9a961;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.post-meta .post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-meta .author-name {
    font-weight: 500;
}

.post-meta .post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: #c9a961;
}

.post-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-excerpt p {
    margin: 0;
}

.post-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.read-more:hover {
    color: #c9a961;
    gap: 0.75rem;
}

.read-more i {
    font-size: 0.875rem;
}

/* Single Post Header Styles */
.single-post-header {
    background: #043266;
    color: white;
    padding: clamp(3rem, 6vw, 5rem) 0;
    margin-bottom: 3rem;
}

/* All Posts Header Styles */
/* All Posts Header - Now using unified page-header styles */
/* Legacy styles removed - see page-header.css for unified styles */

.all-posts-page {
    background: #f8fafb;
    padding: 100px 0;
}

/* Legacy class name kept for backward compatibility */
.all-posts-title {
    /* Styles now handled by .page-header__title in page-header.css */
}

/* Category Archive Header Styles */
.category-archive-header {
    background: #043266;
    color: white;
    padding: clamp(3rem, 6vw, 5rem) 0;
    margin-bottom: 3rem;
}

.category-archive-header .container {
    padding: 0 150px;
}

.category-archive-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    color: white;
}

.category-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.single-post-header .container {
    padding: 0 150px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.6;
}

.single-post-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    color: white;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.single-post-meta .tag {
    background: white;
    color: #001952;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.single-post-meta .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-post-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    overflow: hidden;
}

.single-post-meta .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-meta .author-name {
    font-weight: 600;
    font-size: 15px;
    color: white;
}

.single-post-meta .reading-time,
.single-post-meta .date {
    font-size: 14px;
    opacity: 0.8;
    color: white;
}

.single-post-header .intro {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    color: white;
}

.social-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-btn.copy-btn {
    width: auto;
    padding: 0 20px;
    gap: 8px;
}

.social-btn.copy-btn span {
    font-size: 14px;
}

/* Single Post Styles */


.entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1e3a5f;
    font-weight: 300;
    margin: 1rem 0;
    line-height: 1.3;
}

.entry-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-meta i {
    color: #c9a961;
}

.single-post .post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.entry-content {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #1e3a5f;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 2rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    color: #1e3a5f;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #c9a961;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.entry-content blockquote {
    border-left: 4px solid #c9a961;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.tags-label {
    font-weight: 600;
    color: #1e3a5f;
}

.post-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: #f5f5f5;
    color: #1e3a5f;
    font-size: 0.875rem;
    border-radius: 999px;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.post-tag:hover {
    background-color: #c9a961;
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.nav-disabled {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f5f5f5;
}

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

.nav-content {
    flex: 1;
    min-width: 0;
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #c9a961;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-size: 1.1rem;
    color: #1e3a5f;
    font-weight: 600;
    line-height: 1.4;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-next a {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .nav-thumbnail {
        width: 60px;
        height: 60px;
    }

    .nav-previous a,
    .nav-next a {
        gap: 0.75rem;
    }

    .nav-title {
        font-size: 1rem;
    }

    .nav-subtitle {
        font-size: 0.8rem;
    }
}

/* Pagination */
.posts-navigation {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.posts-navigation .nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.posts-navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: #fff;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.posts-navigation .page-numbers:hover,
.posts-navigation .page-numbers.current {
    background-color: #1e3a5f;
    color: #fff;
}

.posts-navigation .page-numbers.dots {
    background-color: transparent;
    color: #666;
}

.posts-navigation .page-numbers.dots:hover {
    background-color: transparent;
    color: #666;
}

/* No Results */
.no-results,
.error-404 {
    background-color: #fff;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-results .page-header,
.error-404 .page-header {
    margin-bottom: 1.5rem;
}

.no-results h2,
.error-404 h1 {
    color: #1e3a5f;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-results .page-content,
.error-404 .page-content {
    color: #666;
    line-height: 1.7;
}

.no-results .page-content p,
.error-404 .page-content p {
    margin-bottom: 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1e3a5f;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #c9a961;
    color: #fff;
}

/* Comments */
.comments-area {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comments-title {
    font-size: 1.75rem;
    color: #1e3a5f;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.comment-list .comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 1rem;
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar img {
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: #1e3a5f;
    margin-right: 0.5rem;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #666;
}

.comment-text {
    color: #555;
    line-height: 1.7;
    margin-top: 0.5rem;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #1e3a5f;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.comment-reply-link:hover {
    color: #c9a961;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e3a5f;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: #c9a961;
}

.no-comments {
    color: #666;
    font-style: italic;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-list-block {
        padding: 1.5rem;
    }

    .categories-list-title {
        font-size: 1.25rem;
    }

    .categories-list {
        gap: 0.75rem;
    }

    .category-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-links {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }

    .single-post {
        padding: 1.5rem;
    }

    .entry-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .single-post-title {
        font-size: 36px;
    }

    .single-post-meta {
        font-size: 13px;
    }

    .single-post-header {
        padding: 2rem 0;
    }

    /* Legacy all-posts-header responsive styles removed - responsive styles now in page-header.css */

    .category-archive-header {
        padding: 2rem 0;
    }

    .category-archive-header .container {
        padding: 0 20px;
    }

    .category-archive-title {
        font-size: 32px;
    }

    .category-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .post-content {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.25rem;
    }

    .entry-title {
        font-size: 1.75rem;
    }
}
