/* Blog Styling for GR8LOCI.ONLINE */

/* Import Cormorant Garamond if not already imported */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, rgba(22, 55, 90, 0.8) 0%, rgba(22, 55, 90, 0.6) 100%),
                url('./files/images/backgrounds/p0000008519-background.jpg') center center;
    background-size: cover;
    background-attachment: scroll;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 600px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 4rem 0;
}

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

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    text-decoration: none;
    background: none;
}

.blog-card-image-link:focus {
    outline: none;
    box-shadow: none;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-category {
    font-size: 0.75rem;
    color: #8B9DC3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-family: 'Noto Sans', sans-serif;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #163759;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: 'Noto Sans', sans-serif;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-chip {
    background: rgba(22, 55, 89, 0.1);
    color: #163759;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(22, 55, 89, 0.2);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tag-chip:hover {
    background: rgba(22, 55, 89, 0.15);
    border-color: rgba(22, 55, 89, 0.3);
}

.blog-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(190, 206, 221, 0.3);
}

.read-more-btn {
    background: #163759;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #becedd;
    color: #163759;
    transform: translateY(-1px);
}

.card-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.card-share-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(190, 206, 221, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.card-share-btn:hover {
    background: #163759;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 55, 90, 0.3);
}

.card-share-btn:nth-child(1):hover {
    background: #1877F2;
}

.card-share-btn:nth-child(2):hover {
    background: #1DA1F2;
}

.card-share-btn:nth-child(3):hover {
    background: #D44638;
}

/* Blog Card Social Share Icons */
.blog-card-social-share {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0 0.25rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(190, 206, 221, 0.2);
}

.card-share-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(190, 206, 221, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #163759;
}

.card-share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-share-icon.facebook-icon:hover {
    background: #1877f2;
    color: white;
}

.card-share-icon.twitter-icon:hover {
    background: #1da1f2;
    color: white;
}

.card-share-icon.linkedin-icon:hover {
    background: #0077b5;
    color: white;
}

.card-share-icon.pinterest-icon:hover {
    background: #e60023;
    color: white;
}

.card-share-icon.email-icon:hover {
    background: #163759;
    color: white;
}

.card-share-icon.copy-icon:hover {
    background: #28a745;
    color: white;
}

.card-share-icon.copied {
    background: #28a745;
    color: white;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Blog Post Social Share Icons (matches blog card style) */
.blog-post-social-share {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0 0.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(190, 206, 221, 0.3);
}

.share-label {
    font-size: 1rem;
    font-weight: 600;
    color: #163759;
    margin-right: 1rem;
    letter-spacing: 0.3px;
}

.post-share-icon {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(190, 206, 221, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #163759;
}

.post-share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-share-icon.facebook-icon:hover {
    background: #1877f2;
    color: white;
}

.post-share-icon.twitter-icon:hover {
    background: #1da1f2;
    color: white;
}

.post-share-icon.linkedin-icon:hover {
    background: #0077b5;
    color: white;
}

.post-share-icon.pinterest-icon:hover {
    background: #e60023;
    color: white;
}

.post-share-icon.email-icon:hover {
    background: #163759;
    color: white;
}

.post-share-icon.copy-icon:hover {
    background: #28a745;
    color: white;
}

.post-share-icon.copied {
    background: #28a745;
    color: white;
    animation: pulse 0.5s ease;
}

/* Top placement styling (after hero image, before content) */
.blog-post-social-share[data-position="top"] {
    border-top: none;
    border-bottom: none;
    margin-top: 1.5rem;
    margin-bottom: 40px;
    padding: 0;
}

/* Bottom placement styling (after content) */
.blog-post-social-share[data-position="bottom"] {
    border-top: 1px solid rgba(190, 206, 221, 0.3);
    border-bottom: none;
    margin-top: 2rem;
    margin-bottom: 0;
    padding: 1.5rem 0 0.5rem 0;
}

.blog-card-date {
    font-style: italic;
}

.blog-card-read-time {
    background: rgba(22, 55, 90, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
    color: #163759;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: #163759;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #0f2a42;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 55, 90, 0.3);
}

/* Blog Categories Filter Section */
.blog-categories-filter {
    padding: 2rem 0;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.categories-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.categories-filter-header h3 {
    color: #163759;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin: 0;
    padding-left: 10px;
}

.active-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    padding-right: 10px;
}

.active-filter strong {
    color: #163759;
}

.clear-filter-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filter-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.categories-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.category-filter-btn {
    background: rgba(22, 55, 90, 0.1);
    color: #163759;
    padding: 0.6rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.category-filter-btn:hover {
    background: #163759;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 55, 90, 0.2);
}

.category-filter-btn.active {
    background: #163759;
    color: white;
    border-color: #0f2a42;
}

.category-filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-filter-btn:hover .count,
.category-filter-btn.active .count {
    background: rgba(255, 255, 255, 0.3);
}

.category-loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.no-posts-message h3 {
    color: #163759;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.no-posts-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.show-all-posts-btn {
    background: #163759;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.show-all-posts-btn:hover {
    background: #0f2a42;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 55, 90, 0.2);
}

/* Blog Categories Section */
.blog-categories {
    padding: 3rem 0;
    border-top: 1px solid #eee;
}

.blog-categories h3 {
    text-align: center;
    font-size: 2rem;
    color: #163759;
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.category-chip {
    background: rgba(22, 55, 90, 0.1);
    color: #163759;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-chip:hover {
    background: #163759;
    color: white;
    transform: translateY(-2px);
}

/* Blog Post Detail Styles */
.breadcrumb {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #163759;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0f2a42;
}

.blog-post {
    padding: 2rem 0;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #163759;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
    align-items: center;
}

/* Post Category Button - Very Compact */
.post-category-btn {
    background: rgba(22, 55, 90, 0.1);
    color: #163759;
    padding: 0.2rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    min-width: auto;
}

.post-category-btn:hover {
    background: #163759;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(22, 55, 90, 0.2);
}

.post-category-btn:focus {
    outline: 2px solid #163759;
    outline-offset: 2px;
}

/* Back to Top Button */
.back-to-top-container {
    text-align: center;
    margin: 3rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-to-top-btn {
    background: #51C4BE; /* 80% tint of #20B2AA */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(81, 196, 190, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.back-to-top-btn:hover {
    background: #20B2AA; /* Original active nav color */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(32, 178, 170, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.3);
}

.back-to-top-btn:focus {
    outline: 2px solid #20B2AA;
    outline-offset: 3px;
}

.post-hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.post-hero-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-bottom: 3rem;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-body h2 {
    font-size: 1.8rem;
    color: #163759;
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
}

.post-body h3 {
    font-size: 1.4rem;
    color: #163759;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body ul, .post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid #163759;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    background: rgba(22, 55, 90, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
}

/* Social Sharing */
.social-sharing {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 55, 90, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-label {
    display: block;
    font-weight: 600;
    color: #163759;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: #becedd;
    color: #163759;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 110px;
    justify-content: center;
}

.share-btn:hover {
    background: #163759;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 55, 90, 0.3);
}

.share-btn.facebook:hover {
    background: #1877F2;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
}

.share-btn.linkedin:hover {
    background: #0077B5;
}

.share-btn.email:hover {
    background: #D44638;
}

.share-btn.copy-link:hover {
    background: #4CAF50;
}

.share-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.related-posts h3 {
    font-size: 1.8rem;
    color: #163759;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

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

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

.related-card-image {
    height: 150px;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-content {
    padding: 1rem;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #163759;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Loading States */
.blog-loading, .post-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.1rem;
}

/* Lazy Loading Animations */
img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    filter: blur(2px);
    transition: filter 0.3s ease;
}

img.loading {
    opacity: 0.7;
    filter: blur(2px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

img.loaded {
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

img.error {
    opacity: 0.8;
    filter: grayscale(20%);
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Performance optimizations for images */
img {
    will-change: transform;
    transform: translateZ(0);
}

.post-hero-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

/* Enhanced Content Styles for Rich Text Editor Output */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-table thead th {
    background: linear-gradient(135deg, #163759 0%, #1e4a66 100%);
    color: white;
    font-weight: 600;
    padding: 14px 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
    transition: background-color 0.2s ease;
}

.content-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.content-table tbody tr:hover {
    background: #e9ecef;
}

/* Enhanced blockquotes */
blockquote {
    border-left: 4px solid #163759;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

blockquote:before {
    content: '"';
    font-size: 4rem;
    color: #163759;
    position: absolute;
    left: 0.5rem;
    top: -0.5rem;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Code styling */
code {
    background: #f1f3f4;
    color: #d73a49;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 0.9em;
    border: 1px solid #e1e4e8;
}

pre {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Enhanced image styling */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Video/media embeds */
.post-content iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Horizontal rules */
hr {
    border: none;
    border-top: 2px solid #dee2e6;
    margin: 3rem 0;
    width: 100%;
    position: relative;
}

hr:after {
    content: '✦';
    position: absolute;
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
    background: white;
    color: #163759;
    padding: 0 1rem;
    font-size: 1.2rem;
}

/* Enhanced lists */
.post-content ul, .post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.post-content ul li {
    list-style-type: none;
    position: relative;
}

.post-content ul li:before {
    content: '▸';
    color: #163759;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Enhanced links */
.post-content a {
    color: #163759;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: #163759;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .blog-hero {
        height: 300px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .social-sharing {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: auto;
        flex: 1;
    }
    
    .share-icon {
        font-size: 0.9rem;
    }
    
    .read-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .card-share-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .post-body {
        font-size: 1rem;
    }
    
    .post-body h2 {
        font-size: 1.5rem;
    }
    
    .post-body h3 {
        font-size: 1.2rem;
    }
}

/* Blog Pagination Styling */
.blog-pagination {
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
}

.pagination-info {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.pagination-btn {
    background: white;
    border: 2px solid rgba(22, 55, 90, 0.2);
    color: #163759;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-width: 2.5rem;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(22, 55, 90, 0.1);
}

.pagination-btn:hover {
    background: #163759;
    color: white;
    border-color: #163759;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 55, 90, 0.2);
}

.pagination-btn.active {
    background: #163759;
    color: white;
    border-color: #163759;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22, 55, 90, 0.3);
}

.pagination-btn:active {
    transform: translateY(0);
}

.pagination-ellipsis {
    color: #999;
    font-weight: bold;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
}

/* Mobile responsiveness for pagination */
@media (max-width: 768px) {
    .pagination-controls {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 2rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
}