/* Blog Image Visibility Fix + Header Navigation Fix - v1.2.3 */

/* FORCE BLOG POST IMAGES TO SHOW - OVERRIDE ANIMATIONS */
.post-card .post-image,
.blog-post-card .post-image,
.featured-post .post-image,
.posts-grid .post-image,
.blog-posts-grid .post-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 250px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f8f9fa !important;
}

.post-card .post-image img,
.blog-post-card .post-image img,
.featured-post .post-image img,
.posts-grid .post-image img,
.blog-posts-grid .post-image img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
    transition: transform 0.3s ease !important;
}

/* Blog Post Cards Force Show */
.post-card,
.blog-post-card,
.featured-post {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* If WordPress is not detecting thumbnails, show placeholder */
.post-card:not(.has-thumbnail) .post-image::before,
.blog-post-card:not(.has-thumbnail) .post-image::before {
    content: "No Image" !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #f0f0f0 !important;
    color: #999 !important;
    font-size: 14px !important;
}

/* HEADER NAVIGATION FIX - MOVE MENU TO RIGHT */
.nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.2rem 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* FORCE navigation to right side */
.nav .nav-menu,
.header .nav-menu,
nav .nav-menu {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

.nav-menu li {
    position: relative !important;
    margin: 0 !important;
}

.nav-menu .nav-link {
    font-weight: 500 !important;
    font-size: 1rem !important;
    color: #666 !important;
    text-decoration: none !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

.nav-menu .nav-link:hover {
    color: #1a1a1a !important;
    background: rgba(26, 26, 26, 0.05) !important;
    transform: translateY(-2px) !important;
}

/* SIDEBAR SEARCH FIX - MAKE IT LIKE BLOG PAGE */
.post-sidebar .search-form,
.sidebar .search-form,
.widget .search-form {
    position: relative !important;
    display: block !important;
    margin-bottom: 1rem !important;
}

.post-sidebar .search-form .search-field,
.sidebar .search-form .search-field,
.widget .search-form .search-field,
.post-sidebar .search-form input[type="search"],
.sidebar .search-form input[type="search"],
.widget .search-form input[type="search"] {
    width: 100% !important;
    padding: 0.75rem 3rem 0.75rem 1rem !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
}

.post-sidebar .search-form .search-field:focus,
.sidebar .search-form .search-field:focus,
.widget .search-form .search-field:focus,
.post-sidebar .search-form input[type="search"]:focus,
.sidebar .search-form input[type="search"]:focus,
.widget .search-form input[type="search"]:focus {
    outline: none !important;
    border-color: #1a1a1a !important;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1) !important;
}

/* Hide search submit button */
.post-sidebar .search-form .search-submit,
.sidebar .search-form .search-submit,
.widget .search-form .search-submit,
.post-sidebar .search-form button[type="submit"],
.sidebar .search-form button[type="submit"],
.widget .search-form button[type="submit"] {
    position: absolute !important;
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem !important;
    font-size: 1rem !important;
}

.post-sidebar .search-form .search-submit:hover,
.sidebar .search-form .search-submit:hover,
.widget .search-form .search-submit:hover,
.post-sidebar .search-form button[type="submit"]:hover,
.sidebar .search-form button[type="submit"]:hover,
.widget .search-form button[type="submit"]:hover {
    color: #1a1a1a !important;
}

/* RELATED POSTS - 2x2 GRID WITH HORIZONTAL IMAGES */
.related-posts .related-posts-grid,
.single .related-posts-grid,
section.related-posts .related-posts-grid,
.related-posts-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.related-posts .related-post,
.single .related-post,
section.related-posts .related-post,
.related-post {
    display: block !important;
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.related-posts .related-post img,
.single .related-post img,
section.related-posts .related-post img,
.related-post img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.related-posts .related-post:hover,
.single .related-post:hover,
section.related-posts .related-post:hover,
.related-post:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
}

.related-posts .related-post:hover img,
.single .related-post:hover img,
section.related-posts .related-post:hover img,
.related-post:hover img {
    transform: scale(1.05) !important;
}

.related-posts .related-post-content,
.single .related-post-content,
section.related-posts .related-post-content,
.related-post-content {
    padding: 1rem !important;
}

.related-posts .related-post-content h4,
.single .related-post-content h4,
section.related-posts .related-post-content h4,
.related-post-content h4 {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

.related-posts .related-post-content h4 a,
.single .related-post-content h4 a,
section.related-posts .related-post-content h4 a,
.related-post-content h4 a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.related-posts .related-post-date,
.single .related-post-date,
section.related-posts .related-post-date,
.related-post-date {
    font-size: 0.8rem !important;
    color: #666 !important;
    margin: 0 !important;
}

/* Responsive for Related Posts */
@media (max-width: 768px) {
    .related-posts .related-posts-grid,
    .single .related-posts-grid,
    section.related-posts .related-posts-grid,
    .related-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .related-posts .related-post img,
    .single .related-post img,
    section.related-posts .related-post img,
    .related-post img {
        height: 150px !important;
    }
}

/* SMALL AUTHOR BOX - ONLY POST HEADER (not the big one at bottom) */
.post-header .post-author-info,
.post-header .author-info,
.post-meta .post-author-info,
.post-meta .author-info,
.entry-header .author-info,
.entry-meta .author-info {
    display: flex !important;
    align-items: flex-start !important;
    text-align: left !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    margin: 1rem 0 !important;
}

.post-header .author-avatar,
.post-meta .author-avatar,
.entry-header .author-avatar,
.entry-meta .author-avatar {
    flex-shrink: 0 !important;
    align-self: flex-start !important;
}

.post-header .author-avatar img,
.post-meta .author-avatar img,
.entry-header .author-avatar img,
.entry-meta .author-avatar img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.post-header .author-details,
.post-meta .author-details,
.entry-header .author-details,
.entry-meta .author-details {
    flex: 1 !important;
    text-align: left !important;
    align-self: flex-start !important;
}

.post-header .author-details h4,
.post-meta .author-details h4,
.entry-header .author-details h4,
.entry-meta .author-details h4,
.post-header .author-name,
.post-meta .author-name,
.entry-header .author-name,
.entry-meta .author-name {
    margin: 0 0 0.25rem 0 !important;
    color: #1a1a1a !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.post-header .author-details p,
.post-meta .author-details p,
.entry-header .author-details p,
.entry-meta .author-details p,
.post-header .author-description,
.post-meta .author-description,
.entry-header .author-description,
.entry-meta .author-description {
    margin: 0 !important;
    color: #666 !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* CONTACT PAGE SIDEBAR - ICONS WITH TITLES INLINE */
.contact-page .contact-item,
.page-contact .contact-item,
body.page-template-page-contact .contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    padding: 1.25rem !important;
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.contact-page .contact-icon,
.page-contact .contact-icon,
body.page-template-page-contact .contact-icon {
    flex-shrink: 0 !important;
    font-size: 1.5rem !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.contact-page .contact-item h3,
.page-contact .contact-item h3,
body.page-template-page-contact .contact-item h3 {
    margin: 0 0 0.25rem 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.contact-page .contact-item p,
.page-contact .contact-item p,
body.page-template-page-contact .contact-item p {
    margin: 0 !important;
    color: #666 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* If icons are causing issues, hide them and use text only */
.contact-page .contact-icon,
.page-contact .contact-icon,
body.page-template-page-contact .contact-icon {
    display: none !important;
}

/* Contact content wrapper */
.contact-page .contact-item .contact-content,
.page-contact .contact-item .contact-content,
body.page-template-page-contact .contact-item .contact-content {
    flex: 1 !important;
    text-align: left !important;
}