/* Blog Index Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
}

.blog-sorting {
    text-align: right;
}

.blog-sorting .form-label {
    font-weight: 600;
    color: #546672;
    margin-bottom: 0.5rem;
}

.blog-sorting .form-select {
    border-color: #546672;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Blog Card Styles */
.blog-card {
    max-height: 450px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.blog-card-img-wrapper {
    height: 200px;
    overflow: hidden;
    display: block;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    position: relative;
}

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

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

.blog-card-no-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder {
    font-size: 3rem;
    color: #6c757d;
}

.blog-card-body {
    flex-grow: 1;
    overflow: hidden;
    padding: 1.25rem;
}

.blog-meta {
    font-size: 0.875rem;
}

.blog-meta a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-meta a:hover {
    color: #546672;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: #333;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #546672;
}

.blog-card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #6c757d;
    line-height: 1.6;
}

.blog-card-footer {
    margin-top: auto;
    padding: 1rem 1.25rem;
}

.blog-card-btn {
    background-color: #546672;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
}

.blog-card-btn:hover {
    background-color: #3d4a52;
    color: #fff;
}

/* Blog Pagination */
.blog-pagination .pagination {
    margin-bottom: 0;
}

.blog-pagination .page-link {
    color: #546672;
    border-color: #dee2e6;
    font-weight: 500;
}

.blog-pagination .page-link:hover {
    background-color: #546672;
    border-color: #546672;
    color: #fff;
}

.blog-pagination .page-item.active .page-link {
    background-color: #546672;
    border-color: #546672;
}

/* Blog No Posts */
.blog-no-posts {
    text-align: center;
    padding: 3rem;
    border-radius: 0.5rem;
}

/* Blog Archive Header */
.blog-archive-header {
    margin-bottom: 1rem;
}

.blog-archive-header .blog-title {
    margin-bottom: 0.5rem;
}

.blog-archive-header .blog-subtitle {
    margin-bottom: 0;
}

/* Single Blog Post Styles */
.blog-single {
    background-color: #fff;
}



/* Service Area Hero Spacing */
.service-area-hero {
    margin-top: 2rem;
}

/* Service Hero Spacing */
.service-hero,
.hero-cta {
    margin-top: 2rem;
}

/* Featured Image Section */
.blog-featured-image-section {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.blog-featured-image-container {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    overflow: hidden;
}

.blog-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.blog-featured-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 3rem 0 2rem;
}

.blog-title-overlay {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
}

.blog-title-overlay {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.blog-no-featured-image {
    background: linear-gradient(135deg, #546672 0%, #3d4a52 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
}

.blog-placeholder-image {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

.blog-placeholder-image .blog-title-overlay {
    color: #fff;
    text-shadow: none;
}

/* Blog Content Wrapper */
.blog-content-wrapper {
    padding: 0 1rem;
}

/* Blog Content Container */
.blog-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Blog Content Layout */
.blog-content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Blog Content */
.blog-content {
    width: 100%;
    max-width: 920px;
}



/* Blog Date Only */
.blog-date-only {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.blog-date-only .blog-date {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.blog-date-only .blog-date i {
    color: #546672;
}

.blog-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 2rem 0;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4,
.blog-article-content h5,
.blog-article-content h6 {
    color: #333;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-article-content h2 {
    font-size: 1.8rem;
}

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

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

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.blog-article-content blockquote {
    border-left: 4px solid #546672;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

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

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

/* Article Content Links */
.blog-article-content a {
    color: #546672;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-article-content a:hover {
    color: #3d4a52;
    text-decoration: underline;
}

.blog-article-content a:focus {
    outline: 2px solid #546672;
    outline-offset: 2px;
}

/* Blog Article Footer */
.blog-article-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

/* Content Template Part Styles */
.blog-post-content {
    margin-bottom: 2rem;
}

.blog-post-content .entry-header {
    margin-bottom: 1.5rem;
}

.blog-post-content .entry-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.blog-post-content .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-content .entry-title a:hover {
    color: #546672;
}

.blog-post-content .entry-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.blog-post-content .entry-meta span {
    margin-right: 1rem;
}

.blog-post-content .entry-meta a {
    color: #546672;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-content .entry-meta a:hover {
    color: #3d4a52;
}

.blog-post-content .post-thumbnail {
    margin-bottom: 1.5rem;
}

.blog-post-content .post-thumbnail img {
    border-radius: 0.5rem;
}

.blog-post-content .entry-content {
    line-height: 1.8;
    color: #333;
}

.blog-post-content .entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.blog-tags {
    font-size: 0.95rem;
}

.blog-tags a {
    display: inline-block;
    background-color: #f8f9fa;
    color: #546672;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border-radius: 1rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-tags a:hover {
    background-color: #546672;
    color: #fff;
}

.blog-navigation .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-color: #546672;
    color: #546672;
    transition: all 0.3s ease;
}

.blog-navigation .btn:hover {
    background-color: #546672;
    border-color: #546672;
    color: #fff;
}

.blog-navigation {
    margin-bottom: 3rem;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.blog-sidebar-form {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-sidebar-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-form-header {
    background: linear-gradient(135deg, #546672 0%, #3d4a52 100%);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.sidebar-form-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-form-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.sidebar-form-content {
    padding: 1.5rem;
}

/* Contact Form 7 Styling */
.blog-sidebar .wpcf7-form {
    margin: 0;
}

.blog-sidebar .wpcf7-form p {
    margin-bottom: 1rem;
}

.blog-sidebar .wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.blog-sidebar .wpcf7-form input[type="text"],
.blog-sidebar .wpcf7-form input[type="email"],
.blog-sidebar .wpcf7-form input[type="tel"],
.blog-sidebar .wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-sidebar .wpcf7-form input[type="text"]:focus,
.blog-sidebar .wpcf7-form input[type="email"]:focus,
.blog-sidebar .wpcf7-form input[type="tel"]:focus,
.blog-sidebar .wpcf7-form textarea:focus {
    outline: none;
    border-color: #546672;
    box-shadow: 0 0 0 3px rgba(84, 102, 114, 0.1);
}

.blog-sidebar .wpcf7-form textarea {
    min-height: 100px;
    resize: vertical;
}

.blog-sidebar .wpcf7-form input[type="submit"] {
    background-color: #546672;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.blog-sidebar .wpcf7-form input[type="submit"]:hover {
    background-color: #3d4a52;
}

.blog-sidebar .wpcf7-response-output {
    margin: 1rem 0 0 0;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.blog-sidebar .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.blog-sidebar .wpcf7-response-output.wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-sorting {
        text-align: left;
        margin-top: 1rem;
    }
    
    .blog-title-overlay {
        font-size: 2rem;
    }
    
    .blog-featured-image-overlay {
        padding: 2rem 0 1.5rem;
    }
    
    .blog-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 767.98px) {
    .blog-container {
        padding: 0 1rem;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
    
    .blog-title-overlay {
        font-size: 1.5rem;
    }
    
    .blog-featured-image-overlay {
        padding: 1.5rem 0 1rem;
    }
    
    .blog-content-wrapper {
        padding: 0 0.5rem;
    }
    
    .blog-content-container {
        padding: 0 0.5rem;
    }
    
    .blog-navigation .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .blog-card-img-wrapper {
        height: 180px;
    }
    
    .blog-title-overlay {
        font-size: 1.25rem;
    }
    
    .blog-article-content {
        font-size: 1rem;
    }
}
