/* ==========================================================================

   Lone Star Hosting Blog Theme - Custom Styles

   Blog-specific overrides and additions

   ========================================================================== */

/* Blog-specific variables */
:root {
    --blog-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --blog-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --blog-border-radius: 12px;
    --blog-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Critical above-the-fold styles */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hero-section {
    background: linear-gradient(135deg, #002868 0%, #1a365d 100%);
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.hero-blog {
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.8) 0%, rgba(26, 54, 93, 0.9) 100%), 
                url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.7) 0%, rgba(26, 54, 93, 0.8) 100%);
    z-index: -1;
}

.hero-blog .container {
    position: relative;
    z-index: 2;
}

/* Popular Categories */
.texas-border {
    border-bottom: 3px solid var(--texas-red);
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 50px;
}

/* Category Filter Cards */
.category-filter {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-filter:hover {
    transform: translateY(-5px);
}

.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--texas-blue);
    box-shadow: 0 8px 20px rgba(0, 40, 104, 0.15);
}

.category-card.active,
.category-card.category-active {
    border-color: var(--texas-red);
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.05) 0%, rgba(191, 10, 48, 0.05) 100%);
    box-shadow: 0 8px 25px rgba(191, 10, 48, 0.2);
}

.category-card.active .feature-icon,
.category-card.category-active .feature-icon {
    background: linear-gradient(135deg, var(--texas-blue) 0%, var(--texas-red) 100%);
    transform: scale(1.1);
}

.category-card.active h4,
.category-card.category-active h4 {
    color: var(--texas-red);
    font-weight: 700;
}

#clearFilter {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#filterStatus {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Blog post fade animation for filtering */
.blog-post-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-post-item[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
}

/* Page Content Section */
.page-content {
    background: white;
    padding: 3rem;
    border-radius: var(--blog-border-radius);
    box-shadow: var(--blog-card-shadow);
    margin: 2rem 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: var(--texas-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    border-bottom: 3px solid var(--texas-red);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 2rem;
    font-weight: 600;
}

.page-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.page-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
}

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

.page-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.page-content strong {
    color: var(--texas-blue);
    font-weight: 600;
}

.page-content a {
    color: var(--texas-red);
    text-decoration: none;
    font-weight: 500;
}

.page-content a:hover {
    color: var(--texas-blue);
    text-decoration: underline;
}

.page-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--texas-red), var(--texas-blue));
    margin: 3rem 0;
    border-radius: 1px;
}

.texas-border::after {
    content: "★";
    color: var(--texas-red);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 10px;
    font-size: 1.2rem;
}

/* Blog Navigation Styles */
.blog-nav {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 40, 104, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.blog-nav .nav-link {
    color: var(--texas-blue) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--blog-transition);
    position: relative;
}

.blog-nav .nav-link:hover,
.blog-nav .nav-link.active {
    background: var(--texas-blue);
    color: white !important;
}

.blog-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--texas-red);
    border-radius: 2px;
}

/* Blog Search */
.blog-search {
    position: relative;
    max-width: 300px;
}

.blog-search input {
    border: 2px solid rgba(0, 40, 104, 0.1);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    transition: var(--blog-transition);
    background: rgba(255, 255, 255, 0.8);
}

.blog-search input:focus {
    border-color: var(--texas-blue);
    box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.1);
    background: white;
}

.blog-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texas-blue);
    opacity: 0.6;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--blog-border-radius);
    box-shadow: var(--blog-card-shadow);
    transition: var(--blog-transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--blog-hover-shadow);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--blog-transition);
}

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

.blog-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-title {
    color: var(--texas-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card .card-text {
    color: var(--text-light);
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card .card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-card .card-meta i {
    color: var(--texas-red);
    margin-right: 0.25rem;
}

.blog-card .read-more {
    color: var(--texas-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--blog-transition);
    margin-top: auto;
}

.blog-card .read-more:hover {
    color: var(--texas-blue);
    transform: translateX(5px);
}

/* Blog Post Styles */
.blog-post {
    background: white;
    border-radius: var(--blog-border-radius);
    box-shadow: var(--blog-card-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-post .post-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(0, 40, 104, 0.1);
}

.blog-post .post-title {
    color: var(--texas-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post .post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-post .post-meta i {
    color: var(--texas-red);
    margin-right: 0.5rem;
}

.blog-post .post-content {
    padding: 2rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.blog-post .post-content h1,
.blog-post .post-content h2,
.blog-post .post-content h3,
.blog-post .post-content h4,
.blog-post .post-content h5,
.blog-post .post-content h6 {
    color: var(--texas-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-post .post-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--texas-red);
    padding-bottom: 0.5rem;
}

.blog-post .post-content blockquote {
    border-left: 4px solid var(--texas-red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    background: rgba(0, 40, 104, 0.05);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.blog-post .post-content code {
    background: rgba(0, 40, 104, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--texas-red);
}

.blog-post .post-content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post .post-content pre code {
    background: none;
    padding: 0;
    color: var(--text-dark);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--texas-blue) 0%, #1a365d 100%);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: var(--blog-border-radius);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--blog-border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    transition: var(--blog-transition);
}

.newsletter-form .form-control:focus {
    background: white;
    border-color: var(--texas-sand);
    box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.2);
}

.newsletter-form .form-control::placeholder {
    color: var(--text-light);
}

.newsletter-form .btn {
    background: var(--texas-sand);
    border: none;
    color: var(--texas-blue);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: var(--blog-transition);
}

.newsletter-form .btn:hover {
    background: #e5c53b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.3);
}

/* Honeypot field */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Category and Tag Styles */
.blog-categories,
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.blog-category,
.blog-tag {
    background: rgba(0, 40, 104, 0.1);
    color: var(--texas-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--blog-transition);
}

.blog-category:hover,
.blog-tag:hover {
    background: var(--texas-red);
    color: white;
    transform: translateY(-2px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.blog-pagination .page-link {
    color: var(--texas-blue);
    border: 2px solid rgba(0, 40, 104, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--blog-transition);
    font-weight: 500;
}

.blog-pagination .page-link:hover,
.blog-pagination .page-link.active {
    background: var(--texas-blue);
    color: white;
    border-color: var(--texas-blue);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 40, 104, 0.1);
}

.related-posts h3 {
    color: var(--texas-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Social Sharing */
.social-sharing {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 40, 104, 0.05);
    border-radius: var(--blog-border-radius);
}

.social-share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--blog-transition);
    font-size: 0.9rem;
}

.social-share-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.social-share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Author Bio */
.author-bio {
    background: rgba(0, 40, 104, 0.05);
    border-radius: var(--blog-border-radius);
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-bio .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--texas-red);
}

.author-bio .author-info h4 {
    color: var(--texas-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.author-bio .author-info p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-nav {
        padding: 0.5rem 0;
    }
    
    .blog-nav .nav-link {
        padding: 0.5rem !important;
        font-size: 0.9rem;
    }
    
    .blog-post .post-title {
        font-size: 2rem;
    }
    
    .blog-post .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .blog-post .post-header,
    .blog-post .post-content {
        padding: 1.5rem;
    }
    
    .newsletter-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .newsletter-form {
        padding: 1.5rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .social-sharing {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .blog-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .blog-card .card-body {
        padding: 1rem;
    }
    
    .blog-post .post-title {
        font-size: 1.75rem;
    }
    
    .blog-post .post-header,
    .blog-post .post-content {
        padding: 1rem;
    }
    
    .newsletter-form {
        padding: 1rem;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        padding: 0.75rem 1rem;
    }
}

/* Loading States */
.blog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.blog-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 40, 104, 0.1);
    border-top: 4px solid var(--texas-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error States */
.blog-error {
    background: rgba(191, 10, 48, 0.1);
    border: 1px solid var(--texas-red);
    color: var(--texas-red);
    padding: 1.5rem;
    border-radius: var(--blog-border-radius);
    text-align: center;
    margin: 2rem 0;
}

.blog-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Success Messages */
.blog-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
    padding: 1.5rem;
    border-radius: var(--blog-border-radius);
    text-align: center;
    margin: 2rem 0;
}

.blog-success i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-blog {
        min-height: 50vh;
        padding: 4rem 0;
    }
    
    .hero-blog h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-blog {
        min-height: 45vh;
        padding: 3rem 0;
    }
    
    .hero-blog h1 {
        font-size: 2.2rem;
    }
    
    .hero-blog .lead {
        font-size: 1.1rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-nav .nav-pills {
        flex-direction: column;
    }
    
    .blog-nav .nav-link {
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .blog-nav .col-md-4 {
        margin-top: 1rem;
    }
    
    .blog-card {
        margin-bottom: 2rem;
    }
    
    .blog-card .card-body {
        padding: 1.5rem;
    }
    
    .hero-blog {
        min-height: 40vh;
        padding: 2.5rem 0;
    }
    
    .hero-blog h1 {
        font-size: 2rem;
    }
    
    .hero-blog .lead {
        font-size: 1rem;
    }
    
    .texas-border {
        margin-bottom: 2rem;
        padding-bottom: 20px;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-blog {
        min-height: 35vh;
        padding: 2rem 0;
    }
    
    .hero-blog h1 {
        font-size: 1.8rem;
    }
    
    .hero-blog .lead {
        font-size: 0.95rem;
    }
    
    .blog-card .card-body {
        padding: 1.25rem;
    }
    
    .blog-card h3 {
        font-size: 1.3rem;
    }
    
    .blog-card .card-text {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-card h4 {
        font-size: 1rem;
    }
    
    .texas-border {
        margin-bottom: 1.5rem;
        padding-bottom: 15px;
    }
}

/* Author Bio */
.author-bio {
    background: rgba(0, 40, 104, 0.05);
    border-radius: var(--blog-border-radius);
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--texas-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 2rem;
}

.author-info h4 {
    color: var(--texas-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.author-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Blog Sidebar Styles
   ========================================================================== */

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    background: white;
    border-radius: var(--blog-border-radius);
    box-shadow: var(--blog-card-shadow);
}

/* Custom scrollbar for sidebar */
.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: var(--texas-blue);
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--texas-red);
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 40, 104, 0.1);
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-widget-title {
    color: var(--texas-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-widget-title:hover {
    color: var(--texas-red);
}

.sidebar-widget-title.collapsible {
    position: relative;
}

.sidebar-widget-title.collapsible .fa-chevron-down {
    transition: transform 0.3s ease;
}

.sidebar-widget-title.collapsible[aria-expanded="false"] .fa-chevron-down {
    transform: rotate(-90deg);
}

.sidebar-widget-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Recent Posts List */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumbnail img {
    transform: scale(1.1);
}

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

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.recent-post-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: var(--texas-red);
}

.recent-post-date {
    font-size: 0.75rem;
    color: #666;
    display: block;
}

/* Category List */
.category-list,
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item,
.archive-item {
    margin-bottom: 0.5rem;
}

.category-item:last-child,
.archive-item:last-child {
    margin-bottom: 0;
}

.category-filter-link,
.archive-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(0, 40, 104, 0.02);
}

.category-filter-link:hover,
.archive-link:hover {
    background: rgba(0, 40, 104, 0.08);
    color: var(--texas-blue);
    transform: translateX(5px);
}

.category-filter-link .badge,
.archive-link .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 40, 104, 0.05);
    color: var(--texas-blue);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-cloud-item:hover {
    background: var(--texas-blue);
    color: white;
    transform: translateY(-2px);
}

.tag-cloud-item.tag-lg {
    font-size: 1rem;
    font-weight: 600;
}

.tag-cloud-item.tag-md {
    font-size: 0.9rem;
    font-weight: 500;
}

.tag-cloud-item.tag-sm {
    font-size: 0.8rem;
}

/* Sidebar Search */
.sidebar-search-form .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-search-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.sidebar-search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--texas-blue);
}

.sidebar-search-form .btn {
    border: none;
    padding: 0.75rem 1.25rem;
}

/* Sidebar Newsletter */
.sidebar-newsletter {
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.05) 0%, rgba(191, 10, 48, 0.05) 100%);
    padding: 1.5rem;
    border-radius: var(--blog-border-radius);
    border: none;
}

.sidebar-newsletter .sidebar-widget-title {
    color: var(--texas-blue);
}

.sidebar-newsletter p {
    color: #666;
    margin-bottom: 1rem;
}

/* Sidebar Toggle Button (Mobile) */
.sidebar-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--texas-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 40, 104, 0.3);
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--texas-red);
    transform: scale(1.1);
}

/* Blog Layout with Sidebar */
.blog-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.blog-main-content {
    min-width: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .blog-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1050;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        padding: 2rem 1.5rem;
    }
    
    .blog-sidebar.show {
        right: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    /* Sidebar overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .blog-sidebar {
        width: 280px;
        padding: 1.5rem 1rem;
    }
    
    .sidebar-widget {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .sidebar-widget-title {
        font-size: 1.1rem;
    }
    
    .recent-post-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* Print Styles */
@media print {
    .blog-nav,
    .newsletter-section,
    .social-sharing,
    .related-posts,
    .blog-sidebar,
    .sidebar-toggle {
        display: none !important;
    }
    
    .blog-post {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .blog-with-sidebar {
        grid-template-columns: 1fr;
    }
}
