/* Sticky Footer CSS */
html, body {
    height: 100%;
}

#page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#main {
    flex: 1;
}

/* Footer Styling */
#wrapper-footer {
    background-color: #222;
    color: white;
    margin-top: auto;
}

#wrapper-footer .site-footer {
    background-color: #222;
    color: white;
    padding: 3%;
}

#wrapper-footer .site-info {
    color: white;
}

#wrapper-footer a {
    color: white;
    text-decoration: none;
}

#wrapper-footer a:hover {
    color: #ccc;
    text-decoration: underline;
}

/* Additional responsive styling */
@media (max-width: 768px) {
    #wrapper-footer .site-footer {
        padding: 15px 0;
        text-align: center;
    }
}

/* Home Page Post Cards Styling */

.post-cards-container {
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

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

.post-card-image {
    overflow: hidden;
    height: 250px;
    position: relative;
    margin: 0;
    padding: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.post-card-image:first-child {
    margin-top: 0 !important;
}

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

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

.post-card .card-body {
    padding: 1.5rem;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0;
}

/* Ensure no gaps between image and card edges */
.post-card .post-card-image:first-child {
    margin-top: 0;
}

.post-card .card-img-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin: 0;
    padding: 0;
}

/* Remove any default margins from WordPress post thumbnails */
.post-card .wp-post-image {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

.post-card .entry-title {
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card .entry-title.card-title {
    font-weight: bold;
    font-size: 1.25rem;
    color: #333;
}

.post-card .entry-title a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.post-card .entry-title a:hover {
    color: #000;
    text-decoration: none;
}

.post-card .entry-meta {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-card .entry-meta .posted-on::after {
    content: " • ";
    margin-left: 0.5rem;
}

.post-card .entry-meta a {
    color: #6c757d;
    text-decoration: none;
}

.post-card .entry-meta a:hover {
    color: #0056b3;
}

/* Remove unused styles */

.post-card .cat-links {
    margin-top: 0.5rem;
}

.post-card .cat-links .badge.accent-color-bg {
    font-size: 0.75rem;
    font-weight: normal;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    background-color: #667eea !important;
    color: white !important;
    border: none !important;
}

/* Category badge styling across all templates */
.badge.accent-color-bg,
.cat-links .badge.accent-color-bg,
.entry-footer .badge.accent-color-bg {
    background-color: #667eea !important;
    color: white !important;
    border: none !important;
    font-weight: 500 !important;
}

/* No results styling */
.no-results.not-found {
    text-align: center;
    padding: 3rem 1rem;
}

.no-results .page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.no-results .page-content {
    max-width: 500px;
    margin: 0 auto;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-cards-container {
        margin-top: 1rem;
    }
    
    .post-card .card-body {
        padding: 1rem;
    }
    
    .post-card .entry-title.card-title {
        font-size: 1.1rem;
    }
    
    .post-card-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .post-card-image {
        height: 180px;
    }
    
    .post-card .entry-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .post-card .entry-meta .posted-on::after {
        display: none;
    }
}

/* Single Post Styling */

.single-post-article {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.single-post-featured-image {
    width: 100%;
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-content {
    padding: 3%;
}

.single-post-content .entry-header {
    margin-bottom: 2rem;
}

.single-post-content .entry-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post-content .entry-meta {
    font-size: 0.95rem;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.single-post-content .entry-meta .posted-on::after {
    content: " • ";
    margin-left: 0.5rem;
}

.single-post-content .entry-meta a {
    color: #6c757d;
    text-decoration: none;
}

.single-post-content .entry-meta a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.single-post-content .entry-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

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

.single-post-content .entry-content h1,
.single-post-content .entry-content h2,
.single-post-content .entry-content h3,
.single-post-content .entry-content h4,
.single-post-content .entry-content h5,
.single-post-content .entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #333;
}

.single-post-content .entry-content h2 {
    font-size: 2rem;
}

.single-post-content .entry-content h3 {
    font-size: 1.5rem;
}

.single-post-content .entry-content h4 {
    font-size: 1.25rem;
}

.single-post-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.single-post-content .entry-content blockquote {
    border-left: 4px solid #0056b3;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

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

.single-post-content .entry-content li {
    margin-bottom: 0.5rem;
}

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

.single-post-content .tag-links {
    font-size: 0.9rem;
}

.single-post-content .tag-links .tags-label {
    font-weight: bold;
    color: #333;
}

.single-post-content .tag-links a {
    color: #0056b3;
    text-decoration: none;
    margin-right: 0.25rem;
}

.single-post-content .tag-links a:hover {
    text-decoration: underline;
}

.single-post-content .page-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.single-post-content .page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: #f8f9fa;
    color: #0056b3;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.single-post-content .page-links a:hover {
    background-color: #0056b3;
    color: white;
}

.comments-wrapper {
    margin-top: 2rem;
    padding: 3%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-post-content .entry-title {
        font-size: 2rem;
    }
    
    .single-post-content .entry-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .single-post-content .entry-meta .posted-on::after {
        display: none;
    }
    
    .single-post-content .entry-content {
        font-size: 1rem;
    }
    
    .single-post-content .entry-content h2 {
        font-size: 1.75rem;
    }
    
    .single-post-content .entry-content h3 {
        font-size: 1.375rem;
    }
}

@media (max-width: 576px) {
    .single-post-content .entry-title {
        font-size: 1.75rem;
    }
    
    .single-post-content .entry-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Header background color fix - Now controlled by customizer */
/* Removed hardcoded #1f0063 to allow customizer control */
/* #wrapper-navbar,
#wrapper-navbar.custom-primary-bg,
.custom-primary-bg {
    background: #1f0063 !important;
}

Navbar styling
#main-nav.navbar {
    background: #1f0063 !important;
} */

/* Mobile menu toggle button */
@media (max-width: 768px) {
    #main-nav > div > button {
        background: transparent !important;
        border-color: white !important;
        border-radius: 250px!important;
    }
}

/* Bootstrap 5 Offcanvas Mobile Menu Fix */
.offcanvas {
    --bs-offcanvas-width: 300px;
}

@media (max-width: 767px) {
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
    }
    
    .offcanvas-header {
        /* background: #633375 !important; - Now controlled by customizer */
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .offcanvas-body {
        /* background: #633375 !important; - Now controlled by customizer */
    }
    
    .offcanvas .navbar-nav .nav-link {
        /* color: white !important; - Now controlled by customizer */
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .offcanvas .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* OFFCANVAS MENU TEXT COLOR - Controlled by customizer, fallback to #BF0000 */
    html body .offcanvas .navbar-nav .nav-link,
    html body .offcanvas .navbar-nav a.nav-link,
    html body .offcanvas .navbar-nav .nav-link:link,
    html body .offcanvas .navbar-nav .nav-link:visited,
    html body .offcanvas .navbar-nav .nav-link:hover,
    html body .offcanvas .navbar-nav .nav-link:focus,
    html body .offcanvas .navbar-nav .nav-link:active,
    html body .offcanvas-body .navbar-nav .nav-link,
    html body .offcanvas-body .navbar-nav a.nav-link,
    html body .offcanvas-body .navbar-nav .nav-link:link,
    html body .offcanvas-body .navbar-nav .nav-link:visited,
    html body .offcanvas-body .navbar-nav .nav-link:hover,
    html body .offcanvas-body .navbar-nav .nav-link:focus,
    html body .offcanvas .nav-link,
    html body .offcanvas a,
    html body .offcanvas-body .nav-link,
    html body .offcanvas-body a,
    html body .offcanvas ul li a,
    html body .offcanvas-body ul li a,
    html body .offcanvas .navbar-nav li a,
    html body .offcanvas-body .navbar-nav li a {
        color: #e03d5b !important;
    }

    /* ABSOLUTE FINAL OVERRIDE - TARGET EVERYTHING IN OFFCANVAS */
    .offcanvas a,
    .offcanvas .nav-link,
    .offcanvas-body a,
    .offcanvas-body .nav-link {
        color: #e03d5b !important;
    }
}

/* ===== MODERN BLOG SIDEBAR STYLING ===== */

.blog-sidebar-container {
    position: sticky;
    top: 2rem;
}

.blog-sidebar-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-sidebar-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-sidebar-widget {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

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

/* Individual widget containers */
.blog-sidebar-widget .latest-posts-widget,
.blog-sidebar-widget .cta-widget {
    margin: 0 !important;
    padding: 1.5rem !important;
}

/* Force widget styling to override any theme defaults */
#blog-sidebar .widget,
#blog-sidebar .blog-sidebar-widget {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
    text-align: left !important;
}

/* Widget class targeting */
.widget_custom_latest_posts_widget,
.widget_custom_cta_widget {
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    text-align: left !important;
}

/* Add extra margin to CTA widget specifically */
.widget_custom_cta_widget {
    margin-bottom: 2.5rem !important;
}

/* Ensure equal width for all sidebar widgets */
#blog-sidebar .widget,
#blog-sidebar .blog-sidebar-widget,
.widget_custom_latest_posts_widget,
.widget_custom_cta_widget {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: both !important;
}

.widget_custom_latest_posts_widget .latest-posts-widget {
    border: 3px solid #dee2e6 !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    background: rgba(255,255,255,0.9) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.widget_custom_cta_widget .cta-widget {
    border: 3px solid #dee2e6 !important;
    border-radius: 15px !important;
    background: #3b1c85 !important;
    color: white !important;
    text-align: center !important;
    padding: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.blog-sidebar-widget .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.blog-sidebar-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

/* Latest Posts Widget Styling */
.latest-posts-widget,
.blog-sidebar-widget .latest-posts-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 3px solid #dee2e6 !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    background: rgba(255,255,255,0.9) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.latest-post-item {
    background: rgba(255,255,255,0.7);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.latest-post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latest-post-item:hover::before {
    opacity: 1;
}

.latest-post-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.9);
}

.latest-post-image {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.latest-post-image:hover img {
    transform: scale(1.1);
}

.latest-post-content {
    flex: 1;
}

.latest-post-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Override Bootstrap link colors and force purple links in Latest Posts widget */
.widget_custom_latest_posts_widget a.btn-link,
.widget_custom_latest_posts_widget .btn-link,
.latest-posts-widget a.btn-link,
.latest-posts-widget .btn-link,
#blog-sidebar a.btn-link,
#blog-sidebar .btn-link {
    color: #667eea !important;
}

/* Nuclear option - target exact HTML structure from DevTools */
.latest-post-item .latest-post-content h6.latest-post-title a,
.d-flex.mb-3 .latest-post-content h6.mb-1 a,
.latest-posts-widget .d-flex.mb-3 .latest-post-content h6 a,
.widget_custom_latest_posts_widget .latest-post-item a[href] {
    color: #667eea !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.latest-post-item .latest-post-content h6.latest-post-title a:hover,
.d-flex.mb-3 .latest-post-content h6.mb-1 a:hover,
.latest-posts-widget .d-flex.mb-3 .latest-post-content h6 a:hover,
.widget_custom_latest_posts_widget .latest-post-item a[href]:hover {
    color: #764ba2 !important;
    text-decoration: none !important;
}

/* Absolute nuclear option - target ANY link in the Latest Posts widget */
.widget_custom_latest_posts_widget a,
.widget_custom_latest_posts_widget a:link,
.widget_custom_latest_posts_widget a:visited {
    color: #667eea !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.widget_custom_latest_posts_widget a:hover,
.widget_custom_latest_posts_widget a:active,
.widget_custom_latest_posts_widget a:focus {
    color: #764ba2 !important;
    text-decoration: none !important;
}

/* Force purple links in Latest Posts widget - targeting exact HTML structure */
.latest-post-title a,
.blog-sidebar-widget .latest-post-title a,
.latest-posts-widget .latest-post-title a,
.widget_custom_latest_posts_widget .latest-post-title a,
#blog-sidebar .latest-post-title a,
.latest-posts-widget a,
.widget_custom_latest_posts_widget a,
.latest-post-item a,
.latest-posts-widget .latest-post-item a,
#blog-sidebar a,
.widget_custom_latest_posts_widget h6 a,
.widget_custom_latest_posts_widget .latest-post-content a,
h6.latest-post-title a,
.latest-posts-widget h6.latest-post-title a,
.widget_custom_latest_posts_widget h6.latest-post-title a,
a.text-decoration-none,
.latest-posts-widget a.text-decoration-none,
.widget_custom_latest_posts_widget a.text-decoration-none,
.latest-post-content a.text-decoration-none {
    color: #667eea !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.latest-post-title a:hover,
.blog-sidebar-widget .latest-post-title a:hover,
.latest-posts-widget .latest-post-title a:hover,
.widget_custom_latest_posts_widget .latest-post-title a:hover,
#blog-sidebar .latest-post-title a:hover,
.latest-posts-widget a:hover,
.widget_custom_latest_posts_widget a:hover,
.latest-post-item a:hover,
.latest-posts-widget .latest-post-item a:hover,
#blog-sidebar a:hover,
.widget_custom_latest_posts_widget h6 a:hover,
.widget_custom_latest_posts_widget .latest-post-content a:hover,
h6.latest-post-title a:hover,
.latest-posts-widget h6.latest-post-title a:hover,
.widget_custom_latest_posts_widget h6.latest-post-title a:hover,
a.text-decoration-none:hover,
.latest-posts-widget a.text-decoration-none:hover,
.widget_custom_latest_posts_widget a.text-decoration-none:hover,
.latest-post-content a.text-decoration-none:hover {
    color: #764ba2 !important;
    text-decoration: none !important;
}

.latest-post-item small {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

/* CTA Widget Styling */
.cta-widget,
.blog-sidebar-widget .cta-widget,
.widget_custom_cta_widget .cta-widget {
    background: #3b1c85 !important;
    color: white !important;
    text-align: center !important;
    border: 3px solid #dee2e6 !important;
    border-radius: 15px !important;
    position: relative;
    overflow: hidden;
    padding: 1.5rem !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cta-widget h5,
.blog-sidebar-widget .cta-widget h5,
.widget_custom_cta_widget .cta-widget h5 {
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
    color: white !important;
    text-align: center !important;
}

.cta-widget p,
.blog-sidebar-widget .cta-widget p,
.widget_custom_cta_widget .cta-widget p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    color: white !important;
    text-align: center !important;
}

.cta-widget .btn,
.blog-sidebar-widget .cta-widget .btn,
.widget_custom_cta_widget .cta-widget .btn,
.cta-widget a.btn,
.cta-widget .btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0.75rem 2rem !important;
    border-radius: 25px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.cta-widget .btn:hover,
.blog-sidebar-widget .cta-widget .btn:hover,
.widget_custom_cta_widget .cta-widget .btn:hover,
.cta-widget a.btn:hover,
.cta-widget .btn-danger:hover {
    background-color: #bb2d3b !important;
    border-color: #bb2d3b !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
}

/* ===== ARCHIVE PAGES STYLING ===== */

.archive-hero,
.category-hero,
.author-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.archive-hero::before,
.category-hero::before,
.author-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.archive-hero .page-title,
.category-hero .page-title,
.author-hero .page-title {
    position: relative;
    z-index: 1;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.archive-hero .taxonomy-description,
.category-hero .taxonomy-description,
.author-hero .taxonomy-description {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    opacity: 0.9;
}

.archive-hero .badge,
.category-hero .badge,
.author-hero .badge {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Archive Post Items */
.archive-post-item,
.category-post-item,
.author-post-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.archive-post-item::before,
.category-post-item::before,
.author-post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.archive-post-item:hover::before,
.category-post-item:hover::before,
.author-post-item:hover::before {
    transform: scaleY(1);
}

.archive-post-item:hover,
.category-post-item:hover,
.author-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.archive-post-item .post-thumbnail,
.category-post-item .post-thumbnail,
.author-post-item .post-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.archive-post-item .post-thumbnail img,
.category-post-item .post-thumbnail img,
.author-post-item .post-thumbnail img {
    transition: transform 0.3s ease;
}

.archive-post-item .post-thumbnail:hover img,
.category-post-item .post-thumbnail:hover img,
.author-post-item .post-thumbnail:hover img {
    transform: scale(1.05);
}

.archive-post-item .entry-title a,
.category-post-item .entry-title a,
.author-post-item .entry-title a {
    color: #2c3e50;
    font-weight: 700;
    transition: color 0.3s ease;
}

.archive-post-item .entry-title a:hover,
.category-post-item .entry-title a:hover,
.author-post-item .entry-title a:hover {
    color: #667eea;
}

.archive-post-item .entry-meta,
.category-post-item .entry-meta,
.author-post-item .entry-meta {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.archive-post-item .entry-meta i,
.category-post-item .entry-meta i,
.author-post-item .entry-meta i {
    color: #667eea;
}

.archive-post-item .btn,
.category-post-item .btn,
.author-post-item .btn {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.archive-post-item .btn:hover,
.category-post-item .btn:hover,
.author-post-item .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ===== COMMENTS STYLING ===== */

.comments-area {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.comments-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
}

.comment-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.comment-container:hover::before {
    transform: scaleY(1);
}

.comment-container:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comment-author .fn {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.comment-metadata .comment-date a {
    color: #6c757d;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-metadata .comment-date a:hover {
    color: #667eea;
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-top: 1rem;
}

.comment-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

.comment-form h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-form .form-control {
    border-radius: 8px;
    border: 1px solid #d6d8db;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.comment-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.comment-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

@media (max-width: 991px) {
    .blog-sidebar-container {
        margin-top: 3rem;
        position: static;
    }
    
    .archive-hero,
    .category-hero,
    .author-hero {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-sidebar-inner {
        padding: 1.5rem;
    }
    
    .latest-post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .latest-post-image {
        margin-bottom: 1rem;
        align-self: center;
    }
    
    .archive-post-item,
    .category-post-item,
    .author-post-item {
        margin-bottom: 1.5rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .blog-sidebar-widget {
        padding: 1rem;
    }
    
    .cta-widget h5 {
        font-size: 1.1rem;
    }
    
    .cta-widget .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .archive-hero .page-title,
    .category-hero .page-title,
    .author-hero .page-title {
        font-size: 1.75rem;
    }
}

/* ===== CUSTOM DROPDOWN MENU STYLING ===== */

/* Main navigation dropdown menu styling - Now controlled by customizer */
/* Removed hardcoded #1f0063 gradient to allow customizer control */
.navbar-nav .dropdown-menu {
    border: none !important;
    border-radius: 8px !important;
    /* background: linear-gradient(135deg, #1f0063 0%, #633375 100%) !important; */
    /* box-shadow: 0 4px 20px rgba(31, 0, 99, 0.25) !important; */
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
    min-width: 180px !important;
    /* backdrop-filter: blur(10px); - Removed to fix transparency overlay */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Dropdown menu items */
.navbar-nav .dropdown-menu .dropdown-item {
    color: white !important;
    font-weight: 500 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
    margin: 0.1rem 0 !important;
    transition: all 0.2s ease !important;
    font-size: 0.95rem !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Dropdown item hover effect */
.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: translateX(2px) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2) !important;
}

/* Dropdown item active state */
.navbar-nav .dropdown-menu .dropdown-item.active,
.navbar-nav .dropdown-menu .dropdown-item:active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: white !important;
}

/* Dropdown divider styling */
.navbar-nav .dropdown-menu .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin: 0.5rem 1rem !important;
}

/* Dropdown toggle caret styling */
.navbar-nav .dropdown-toggle::after {
    border-top: 0.4em solid white !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
    transition: transform 0.3s ease !important;
}

/* Rotate caret when dropdown is open */
.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg) !important;
}

/* Dropdown menu animation */
.navbar-nav .dropdown-menu {
    opacity: 0 !important;
    transform: translateY(-10px) scale(0.95) !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
}

.navbar-nav .dropdown-menu.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: all !important;
}

/* Sub-dropdown (dropdown within dropdown) styling */
.navbar-nav .dropdown-menu .dropdown-submenu {
    position: relative !important;
}

.navbar-nav .dropdown-menu .dropdown-submenu .dropdown-menu {
    left: 100% !important;
    top: 0 !important;
    margin-top: 0 !important;
    margin-left: 0.25rem !important;
}

/* Mobile offcanvas dropdown styling */
@media (max-width: 767px) {
    .offcanvas .navbar-nav .dropdown-menu {
        background: rgba(255, 255, 255, 0.1) !important;
        /* backdrop-filter: blur(5px) !important; - Removed to fix transparency */
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        margin: 0.5rem 1rem !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    }
    
    .offcanvas .navbar-nav .dropdown-menu .dropdown-item {
        /* color: white !important; - Now controlled by customizer */
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
        margin: 0.1rem 0.25rem !important;
    }
    
    .offcanvas .navbar-nav .dropdown-menu .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateX(3px) !important;
    }
}

/* Desktop dropdown positioning and styling enhancements */
@media (min-width: 768px) {
    /* Ensure dropdown appears correctly on larger screens */
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        will-change: transform !important;
    }
    
    /* Remove the excessive glow effect */
    
    /* Enhanced dropdown item styling for desktop */
    .navbar-nav .dropdown-menu .dropdown-item {
        position: relative !important;
    }
    
    /* Removed left accent bar to prevent container overflow */
}

/* Dropdown menu header styling (if using dropdown headers) */
.navbar-nav .dropdown-menu .dropdown-header {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.5rem 1.5rem 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

/* Dropdown menu text styling */
.navbar-nav .dropdown-menu .dropdown-item-text {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.85rem !important;
}

/* Fix for Bootstrap dropdown positioning */
.navbar-nav .dropdown {
    position: static !important;
}

@media (min-width: 768px) {
    .navbar-nav .dropdown {
        position: relative !important;
    }
}

/* Force dropdown visibility when show class is present */
.navbar-nav .dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: all !important;
    visibility: visible !important;
}

/* Override any conflicting Popper positioning */
.navbar-nav .dropdown-menu[data-popper-placement] {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

/* Ensure dropdown container allows overflow */
.navbar-nav .dropdown {
    position: relative !important;
    overflow: visible !important;
}

/* ===== NEWS PAGE HEADER SECTION ===== */

/* Purple header section for news page */
.news-hero-section {
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.news-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.news-hero-content {
    position: relative;
    z-index: 2;
}

.news-hero-content h1 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.news-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Fix z-index issues with post cards */
.post-card {
    position: relative;
    z-index: 10;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.post-cards-container {
    position: relative;
    z-index: 5;
    background: white;
    margin-top: 0;
    padding-top: 40px;
}

/* Ensure proper stacking order */
.wrapper#index-wrapper {
    position: relative;
    z-index: 1;
    background: white;
}