/* ======================================
   BLOG PAGE STYLES - WWG THEME COLORS
   ====================================== */

/* Blog Container */
.blog-page-container, .single-post-container, .category-archive-container {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* ======================================
   BLOG POST CARDS
   ====================================== */

.blog-post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.post-featured-image img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

.blog-post-card:hover .post-featured-image img {
    transform: scale(1.02);
}

/* ======================================
   CATEGORY ARCHIVE CARDS (NEW)
   ====================================== */

.category-post-card .card {
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.category-post-card .card-img-top a {
    display: block;
    position: relative;
    overflow: hidden;
}

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

.category-post-card .card-title a {
    color: #080808;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.category-post-card .card:hover .card-title a {
    color: #d0473e !important;
}

.category-post-card .post-meta i {
    color: #d0473e;
}

.category-post-card .btn-outline-primary {
    color: #d0473e;
    border-color: #d0473e;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.category-post-card .card:hover .btn-outline-primary {
    background-color: #d0473e;
    border-color: #d0473e;
    color: white;
    transform: translateY(-1px);
}

/* ======================================
   POST HEADER & META
   ====================================== */

.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.post-meta i {
    color: #d0473e; /* WWG primary color */
}

.post-category a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #d0473e; /* WWG primary color */
}

.post-category a:hover {
    color: #5a5a5a; /* WWG hover color */
}

.post-title {
    font-weight: 700;
    line-height: 1.3;
        font-size: calc(1.25rem + 1vw);
    color: #080808; /* WWG secondary color */
}

.post-title a:hover {
    color: #d0473e !important; /* WWG primary color */
}

/* ======================================
   AUTHOR INFO
   ====================================== */

.post-author-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #d0473e; /* WWG primary color */
    padding: 1rem !important; /* Reduced from default p-4 */
    margin-bottom: 1.5rem !important; /* Reduced from mb-4 */
    border-radius: 8px !important; /* Smaller radius for cleaner look */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-author-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.author-avatar {
    margin-right: 0.75rem !important; /* Reduced spacing */
    flex-shrink: 0; /* Prevent avatar from shrinking */
}

.author-avatar img {
    width: 48px !important; /* Smaller avatar size */
    height: 48px !important;
    border: 2px solid white; /* Thinner border */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-author-info:hover .author-avatar img {
    transform: scale(1.05);
}

.author-details {
    flex: 1;
    min-width: 0; /* Allow text to wrap properly */
}

.author-name {
    color: #080808; /* WWG secondary color */
    font-size: 0.95rem; /* Slightly smaller */
    margin-bottom: 0.25rem !important; /* Reduced spacing */
    font-weight: 600 !important;
    line-height: 1.2;
}

.author-details small {
    font-size: 0.8rem; /* Smaller text */
    color: #6c757d;
    line-height: 1.3;
}

/* ======================================
   POST CONTENT
   ====================================== */

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

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

.post-content h2, .post-content h3, .post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #080808; /* WWG secondary color */
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #d0473e; /* WWG primary color */
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* ======================================
   POST TAGS
   ====================================== */

.post-tags .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-transform: lowercase;
    background-color: #d0473e; 
    white-space: break-spaces;
}

.post-tags .badge:hover {
    background-color: #5a5a5a !important; /* WWG hover color */
    color: white !important;
}

/* ======================================
   POST NAVIGATION
   ====================================== */

.post-navigation .nav-prev,
.post-navigation .nav-next {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
}

/* Enhanced clickable post navigation */
.post-nav-clickable {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-nav-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(208, 71, 62, 0.1) 0%, rgba(208, 71, 62, 0.05) 50%, transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.post-nav-clickable:hover::before {
    left: 100%;
}

.post-nav-clickable:hover {
    background: linear-gradient(135deg, #d0473e 0%, #b8392f 100%) !important;
    color: white !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(208, 71, 62, 0.3);
    border-color: transparent !important;
}

.post-nav-clickable:hover small,
.post-nav-clickable:hover h6 {
    color: white !important;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.post-nav-clickable small,
.post-nav-clickable h6 {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* ======================================
   FULL WIDTH RELATED POSTS
   ====================================== */

.related-posts-full-width {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid #e9ecef;
    /* margin-top: 3rem !important; */
}

.related-posts-full-width .section-title {
    color: #080808; /* WWG secondary color */
    font-weight: 700;
    position: relative;
    font-size: 2rem;
}

.related-posts-full-width .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d0473e, #5a5a5a); /* WWG colors */
    border-radius: 2px;
}

.related-post-card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef !important;
}

/* Enhanced clickable related post cards */
.related-post-clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.related-post-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(208, 71, 62, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.related-post-clickable:hover::before {
    left: 100%;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(208, 71, 62, 0.2); /* WWG primary color shadow */
    border-color: #d0473e !important;
}

.related-post-clickable:hover .related-post-title {
    color: #d0473e !important; /* WWG primary color */
}

.related-post-clickable:hover .related-post-image img {
    transform: scale(1.08);
}

.related-post-title a:hover {
    color: #d0473e !important; /* WWG primary color */
}

.related-post-image img {
    transition: transform 0.4s ease;
}

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

/* ======================================
   FULL WIDTH COMMENTS SECTION
   ====================================== */

.comments-section-full-width {
    background: #f8f9fa;
}

.comments-section-full-width .section-title {
    color: #080808; /* WWG secondary color */
    font-weight: 700;
    position: relative;
    font-size: 2rem;
}

.comments-section-full-width .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d0473e, #5a5a5a); /* WWG colors */
    border-radius: 2px;
}

.comments-section-full-width .comments-area {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* ======================================
   COMMENTS SECTION
   ====================================== */

.comments-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* ======================================
   COMMENT REPLY TITLE
   ====================================== */

#reply-title.comment-reply-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #080808; /* WWG secondary color */
    margin-bottom: 1.5rem;
    /* margin-top: 1.5rem; */
    padding: 1rem 0;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

#reply-title.comment-reply-title::before {
    content: "💬";
    margin-right: 0.5rem;
    font-size: 1rem;
}

#reply-title.comment-reply-title small {
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 1rem;
}

#reply-title.comment-reply-title small a {
    color: #6c757d;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#reply-title.comment-reply-title small a:hover {
    color: #d0473e; /* WWG primary color */
    border-color: #d0473e; /* WWG primary color */
    background-color: rgba(208, 71, 62, 0.1);
    transform: translateY(-1px);
}

/* Alternative style for cancel link */
#cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem !important;
    color: #6c757d !important;
    text-decoration: none !important;
    padding: 0.5rem 1.2rem;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#cancel-comment-reply-link::before {
    content: "×";
    margin-right: 0.4rem;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

#cancel-comment-reply-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

#cancel-comment-reply-link:hover {
    color: white !important;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
    text-decoration: none !important;
}

#cancel-comment-reply-link:hover::before {
    transform: rotate(180deg) scale(1.2);
    color: white;
}

#cancel-comment-reply-link:hover::after {
    left: 100%;
}

#cancel-comment-reply-link:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* ======================================
   COMMENT REPLY BUTTON
   ====================================== */

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #d0473e, #b8392f); /* WWG primary color gradient */
    color: white !important;
    text-decoration: none !important;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(208, 71, 62, 0.3);
    position: relative;
    overflow: hidden;
}

.comment-reply-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.comment-reply-link:hover::before {
    left: 100%;
}

.comment-reply-link:hover {
    background: linear-gradient(135deg, #5a5a5a, #4a4a4a); /* WWG hover color gradient */
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(90, 90, 90, 0.4);
    text-decoration: none !important;
}

.comment-reply-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(208, 71, 62, 0.3);
}

.comment-reply-link i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.comment-reply-link:hover i {
    transform: translateX(-2px);
}

/* Alternative button style - outline version */
.comment-reply-link.outline-style {
    background: transparent;
    color: #d0473e !important;
    border: 2px solid #d0473e;
    box-shadow: none;
}

.comment-reply-link.outline-style:hover {
    background: #d0473e;
    color: white !important;
    border-color: #d0473e;
}

/* Small size variant */
.comment-reply-link.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* Large size variant */
.comment-reply-link.btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
}

.comment-form-comment textarea {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form-comment textarea:focus {
    border-color: #d0473e; /* WWG primary color */
    box-shadow: 0 0 0 0.2rem rgba(208, 71, 62, 0.25); /* WWG primary color */
}

.form-submit input[type="submit"] {
    background: #d0473e; /* WWG primary color */
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background: #5a5a5a; /* WWG hover color */
    transform: translateY(-1px);
}

.comment-item {
    border-left: 3px solid #d0473e; /* WWG primary color */
}

.comment-reply .btn-outline-primary {
    color: #d0473e; /* WWG primary color */
    border-color: #d0473e; /* WWG primary color */
}

.comment-reply .btn-outline-primary:hover {
    background-color: #d0473e; /* WWG primary color */
    border-color: #d0473e; /* WWG primary color */
}

/* ======================================
   LOGGED-IN USER COMMENT FORM STYLES
   ====================================== */

.logged-in-as {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #d0473e; /* WWG primary color */
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.logged-in-as a {
    color: #d0473e; /* WWG primary color */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.logged-in-as a:hover {
    color: #5a5a5a; /* WWG hover color */
    background-color: rgba(208, 71, 62, 0.1);
    text-decoration: none;
}

.logged-in-as .required-field-message {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    color: #6c757d;
}

.logged-in-as .required {
    color: #d0473e; /* WWG primary color */
    font-weight: bold;
}

/* ======================================
   SIDEBAR STYLES
   ====================================== */

.blog-sidebar {
    padding-left: 1.5rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.widget-title {
    color: #080808; /* WWG secondary color */
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #d0473e; /* WWG primary color */
    border-radius: 2px;
}

/* ======================================
   SEARCH WIDGET
   ====================================== */

.search-widget .search-field {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    transition: border-color 0.3s ease;
}

.search-widget .search-field:focus {
    border-color: #d0473e; /* WWG primary color */
    box-shadow: 0 0 0 0.2rem rgba(208, 71, 62, 0.25); /* WWG primary color */
}

.search-widget .btn {
    padding: 0.5rem;
    right: 0.5rem !important;
    color: #d0473e; /* WWG primary color */
}

/* ======================================
   CATEGORIES WIDGET
   ====================================== */

.categories-list .category-item {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.categories-list .category-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.categories-list .category-item a:hover {
    color: #d0473e !important; /* WWG primary color */
}

.categories-list .badge {
    background-color: #d0473e; /* WWG primary color */
}

/* ======================================
   POPULAR POSTS WIDGET
   ====================================== */

.popular-post-item {
    transition: all 0.3s ease;
}

.popular-post-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem !important;
    margin: -0.25rem;
    margin-bottom: 0.75rem !important;
}

.popular-post-thumb img {
    transition: transform 0.3s ease;
}

.popular-post-item:hover .popular-post-thumb img {
    transform: scale(1.1);
}

.popular-post-title a:hover {
    color: #d0473e !important; /* WWG primary color */
}

/* ======================================
   RECENT COMMENTS WIDGET
   ====================================== */

.recent-comment-item {
    transition: all 0.3s ease;
}

.recent-comment-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem !important;
    margin: -0.25rem;
    margin-bottom: 0.75rem !important;
}

.comment-avatar img {
    border: 2px solid #e9ecef;
}

.recent-comment-item:hover .comment-avatar img {
    border-color: #d0473e; /* WWG primary color */
}

/* ======================================
   TAGS WIDGET
   ====================================== */

.tags-cloud .badge {
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa !important;
    color: #080808 !important; /* WWG secondary color */
}

.tags-cloud .badge:hover {
    background-color: #d0473e !important; /* WWG primary color */
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(208, 71, 62, 0.3); /* WWG primary color shadow */
}

/* ======================================
   PAGINATION
   ====================================== */

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #d0473e; /* WWG primary color */
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #d0473e; /* WWG primary color */
    color: white;
    border-color: #d0473e; /* WWG primary color */
    transform: translateY(-1px);
}

.blog-pagination .prev,
.blog-pagination .next {
    font-weight: 600;
}

/* Archive and Search Pagination */
.archive-pagination .page-numbers,
.search-pagination .page-numbers,
.blog-pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #d0473e; /* WWG primary color */
    text-decoration: none;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current,
.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #d0473e; /* WWG primary color */
    color: white;
    border-color: #d0473e; /* WWG primary color */
    transform: translateY(-1px);
}

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

@media (max-width: 991.98px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .post-author-info {
        padding: 0.75rem !important; /* Even more compact on tablets */
        margin-bottom: 1rem !important;
    }
    
    .author-avatar img {
        width: 44px !important; /* Smaller on tablets */
        height: 44px !important;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .author-details small {
        font-size: 0.75rem;
    }
    
    .post-featured-image img {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .blog-post-card,
    .sidebar-widget,
    .related-posts,
    .comments-section {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .post-author-info {
        padding: 0.5rem !important; /* Very compact on mobile */
        margin-bottom: 1rem !important;
        border-radius: 6px !important;
    }
    
    .author-avatar {
        margin-right: 0.5rem !important; /* Tighter spacing on mobile */
    }
    
    .author-avatar img {
        width: 40px !important; /* Even smaller on mobile */
        height: 40px !important;
        border-width: 1px; /* Thinner border on mobile */
    }
    
    .author-name {
        font-size: 0.85rem;
        margin-bottom: 0.1rem !important;
    }
    
    .author-details small {
        font-size: 0.7rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .popular-post-item {
        flex-direction: column;
    }
    
    .popular-post-thumb {
        margin-right: 0 !important;
        margin-bottom: 0.75rem;
    }
    
    .post-featured-image img {
        height: 250px;
    }
}

/* ======================================
   SECTION TITLES
   ====================================== */

.section-title {
    color: #080808; /* WWG secondary color */
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d0473e, #5a5a5a); /* WWG colors */
    border-radius: 2px;
}

/* ======================================
   UTILITY CLASSES
   ====================================== */

.text-gradient {
    background: linear-gradient(135deg, #d0473e, #5a5a5a); /* WWG colors */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 8px 25px rgba(208, 71, 62, 0.15) !important; /* WWG primary color shadow */
}

/* ======================================
   ARCHIVE AND SEARCH SPECIFIC STYLES
   ====================================== */

.archive-header, .search-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 3rem !important;
}

.archive-title {
    color: #080808;
    font-weight: 700;
}

/* Updated Archive Post Cards - Clean Modern Design */
.archive-post-card, .search-result-item {
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.archive-post-card:hover, .search-result-item:hover {
    transform: translateY(-2px);
}

.archive-post-title a:hover, .result-title a:hover {
    color: #d0473e !important; /* WWG primary color */
}

.archive-post-image img, .search-result-image img {
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.archive-post-card:hover .archive-post-image img,
.search-result-item:hover .search-result-image img {
    transform: scale(1.05);
}

.btn-primary {
    background-color: #d0473e; /* WWG primary color */
    border-color: #d0473e; /* WWG primary color */
}

.btn-primary:hover {
    background-color: #5a5a5a; /* WWG hover color */
    border-color: #5a5a5a; /* WWG hover color */
}

.btn-outline-primary {
    color: #d0473e; /* WWG primary color */
    border-color: #d0473e; /* WWG primary color */
}

.btn-outline-primary:hover {
    background-color: #d0473e; /* WWG primary color */
    border-color: #d0473e; /* WWG primary color */
}

.badge.bg-primary {
    background-color: #d0473e !important; /* WWG primary color */
}

/* Form controls */
.form-control:focus {
    border-color: #d0473e; /* WWG primary color */
    box-shadow: 0 0 0 0.2rem rgba(208, 71, 62, 0.25); /* WWG primary color */
}

/* Links */
a.text-primary, .text-primary {
    color: #d0473e !important; /* WWG primary color */
}

a.text-primary:hover {
    color: #5a5a5a !important; /* WWG hover color */
}

/* ======================================
   SCROLLBAR STYLING
   ====================================== */

.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.blog-sidebar::-webkit-scrollbar-thumb {
    background: #d0473e; /* WWG primary color */
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a; /* WWG hover color */
}

/* ======================================
   AJAX PAGINATION STYLES
   ====================================== */

.blog-ajax-pagination {
    margin: 3rem 0;
    display: block !important; /* Ensure pagination is always visible */
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

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

.blog-ajax-pagination .ajax-page-btn {
    min-width: 45px;
    height: 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #d0473e;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
        display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
        gap: 0 5px;
}

.blog-ajax-pagination .ajax-page-btn i{
        font-size: 12px;
}

.blog-ajax-pagination .ajax-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(208, 71, 62, 0.1), transparent);
    transition: left 0.6s ease;
}

.blog-ajax-pagination .ajax-page-btn:hover::before {
    left: 100%;
}

.blog-ajax-pagination .ajax-page-btn:hover {
    background: #d0473e;
    border-color: #d0473e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(208, 71, 62, 0.3);
}

.blog-ajax-pagination .ajax-page-btn.btn-primary {
    background: #d0473e;
    border-color: #d0473e;
    color: white;
    box-shadow: 0 2px 8px rgba(208, 71, 62, 0.3);
}

.blog-ajax-pagination .ajax-page-btn.btn-primary:hover {
    background: #5a5a5a;
    border-color: #5a5a5a;
    color: white;
}

.blog-ajax-pagination .ajax-page-btn:disabled,
.blog-ajax-pagination .ajax-page-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.blog-ajax-pagination .ajax-prev-btn,
.blog-ajax-pagination .ajax-next-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: auto;
}

.blog-ajax-pagination .pagination-dots {
    color: #6c757d;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

.blog-ajax-pagination .pagination-info {
    margin-top: 1rem;
    text-align: center;
}

.blog-ajax-pagination .ajax-loading {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 8px;
    color: #d0473e;
    font-weight: 600;
}

.blog-ajax-pagination .ajax-loading i {
    margin-right: 0.5rem;
    color: #d0473e;
}

/* Loading overlay for posts container */
.ajax-loading-overlay {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 12px;
}

.ajax-loading-overlay i {
    color: #d0473e;
}

/* Notification styles */
.ajax-notification {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
}

.ajax-notification.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.ajax-notification.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Smooth transitions for content updates */
.blog-posts-wrapper,
.archive-posts-wrapper,
.search-results-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-posts-wrapper.loading,
.archive-posts-wrapper.loading,
.search-results-wrapper.loading {
    opacity: 0.7;
    transform: translateY(10px);
}

#ajaxsearchlite1 .probox, div.asl_w .probox{
    height: 38px;
    align-items: center;
}

#ajaxsearchlite1 .probox .proinput input.autocomplete{
    height: fit-content;
}

#ajaxsearchlite1 .probox .proinput input.orig{
    height: 100%;
}

/* ======================================
   RESPONSIVE AJAX PAGINATION
   ====================================== */

@media (max-width: 768px) {
    .blog-ajax-pagination .pagination-container {
        gap: 0.25rem;
    }
    
    .blog-ajax-pagination .ajax-page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .blog-ajax-pagination .ajax-prev-btn,
    .blog-ajax-pagination .ajax-next-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .blog-ajax-pagination .pagination-dots {
        font-size: 1rem;
        padding: 0 0.25rem;
    }
    .post-featured-image img{
        height: 400px !important;
    }
}

@media (max-width: 576px) {
    .blog-ajax-pagination .ajax-prev-btn .fas,
    .blog-ajax-pagination .ajax-next-btn .fas {
        margin: 0;
    }
    
    .blog-ajax-pagination .ajax-prev-btn,
    .blog-ajax-pagination .ajax-next-btn {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
    }
    
    /* Hide text on mobile, show only icons */
    .blog-ajax-pagination .ajax-prev-btn span,
    .blog-ajax-pagination .ajax-next-btn span {
        display: none;
    }
}

/* ======================================
   AJAX PAGINATION HOVER EFFECTS
   ====================================== */

.blog-ajax-pagination .ajax-page-btn {
    position: relative;
    z-index: 1;
}

.blog-ajax-pagination .ajax-page-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.blog-ajax-pagination .ajax-page-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(208, 71, 62, 0.25);
}

/* Pulse animation for current page */
.blog-ajax-pagination .ajax-page-btn.btn-primary {
    animation: pulse-current 2s infinite;
}

@keyframes pulse-current {
    0% { box-shadow: 0 2px 8px rgba(208, 71, 62, 0.3); }
    50% { box-shadow: 0 2px 15px rgba(208, 71, 62, 0.5); }
    100% { box-shadow: 0 2px 8px rgba(208, 71, 62, 0.3); }
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ajax-loading i.fa-spin {
    animation: spin 1s linear infinite;
}

/* ======================================
   BOOTSTRAP OVERRIDES FOR POST AUTHOR
   ====================================== */

/* Override Bootstrap p-4 (padding) class specifically for post-author-info */
.post-author-info.p-4 {
    padding: 1rem !important;
}

/* Override Bootstrap mb-4 (margin-bottom) class specifically for post-author-info */
.post-author-info.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Override Bootstrap bg-light for better gradient */
.post-author-info.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Override Bootstrap rounded class for smaller radius */
.post-author-info.rounded {
    border-radius: 8px !important;
}

/* Responsive overrides for smaller screens */
@media (max-width: 991.98px) {
    .post-author-info.p-4 {
        padding: 0.75rem !important;
    }
    
    .post-author-info.mb-4 {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .post-author-info.p-4 {
        padding: 0.5rem !important;
    }
    
    .post-author-info.mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .post-author-info.rounded {
        border-radius: 6px !important;
    }
}