/* Sidebar latest posts & list-style tweaks */
.widget_recent_entries ul,
.wp-block-latest-posts {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.widget_recent_entries ul li,
.wp-block-latest-posts li {
    position: relative;
    font-weight: 500;
    color: #9ba4b3;
    line-height: 1.6;
    padding-left: 16px;
}

.widget_recent_entries ul li::before,
.wp-block-latest-posts li::before {
    content: '\00B7';
    position: absolute;
    left: 0;
    top: 0;
    color: #212632;
    line-height: 1.6;
}

.wp-block-latest-posts__post-title,
.widget_recent_entries a {
    display: block;
    font-weight: 500;
    color: #212632;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-block-latest-posts__post-title:hover,
.widget_recent_entries a:hover {
    color: #0e979b;
}

/* Top search widget */
.page-col-search-top {
    width: 100%;
    margin-bottom: 30px;
    padding: 0 20px;
}

.page-col-search-top .page-card-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: slideInDown 0.8s ease-out;
}

.page-col-search-top .page-card-search h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-col-search-top .stickywrap-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-col-search-top .search-form {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.page-col-search-top .search-field {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.page-col-search-top .search-field:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 0 0 1px #667eea;
}

.page-col-search-top .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #1F3E75;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-col-search-top .search-submit:hover {
    background: #1a3560;
    transform: translateY(-50%) scale(1.1) rotate(15deg);
}

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

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.page-col-search-top .page-card-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 3s infinite;
    border-radius: 15px;
    pointer-events: none;
}

.page-col-search-top .page-card-search:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.page-col-search-top .search-focused {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.page-col-search-top .search-field::placeholder {
    color: #888;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.page-col-search-top .search-field:focus::placeholder {
    opacity: 0.4;
}

.page-col-search-top .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.page-col-search-top .search-suggestions.show {
    display: block;
}

.page-col-search-top .search-suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-col-search-top .search-suggestion-item:hover {
    background-color: #f5f5f5;
}

.page-col-search-top .search-suggestion-item:last-child {
    border-bottom: none;
}

.page-col-search-top .search-submit:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Sidebar search widget */
.sidebar-search-section {
    margin: 20px 0;
    padding: 20px;
    background: #6E6CEA;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(110, 108, 234, 0.3);
}

.sidebar-search-section .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search-section .search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.sidebar-search-section .search-field {
    width: 100%;
    padding: 12px 50px 12px 16px;
    padding-right: 55px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.sidebar-search-section .search-field:focus {
    border-color: #6BA3D8;
    box-shadow: 0 0 0 3px rgba(107, 163, 216, 0.2);
}

.sidebar-search-section .search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #6BA3D8;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 1;
}

.sidebar-search-section .search-submit svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .page-col-search-top {
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .page-col-search-top .page-card-search {
        padding: 20px;
    }

    .page-col-search-top .page-card-search h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .page-col-search-top .search-field {
        padding: 10px 45px 10px 15px;
        font-size: 14px;
    }

    .page-col-search-top .search-submit {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .sidebar-search-section {
        margin: 0 -15px;
        padding: 15px;
        width: calc(100% + 30px);
        max-width: calc(100% + 30px);
        box-sizing: border-box;
    }

    .sidebar-search-section .search-input-wrapper {
        padding: 0 15px;
        position: relative;
    }

    .sidebar-search-section .search-field {
        padding: 10px 50px 10px 14px;
        padding-right: 50px;
        font-size: 13px;
        margin: 0;
        box-sizing: border-box;
        width: 100%;
    }

    .sidebar-search-section .search-submit {
        width: 32px;
        height: 32px;
        right: 25px;
    }

    .sidebar-search-section .search-submit svg {
        width: 16px;
        height: 16px;
    }
}

/* Category navigation under search */
.category-menu-below-search {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    margin-bottom: 20px;
}

.category-navigation-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-menu-main {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.category-menu-item-main {
    margin: 0;
}

.category-link-main {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-link-main:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.category-navigation-main .menu-item,
.category-menu-item-main .menu-item,
.category-link-main.menu-item,
nav.category-navigation-main .menu-item,
.category-menu-main .menu-item {
    background: #f8f9fa !important;
    color: #333 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.category-navigation-main .menu-item:hover,
.category-menu-item-main .menu-item:hover,
.category-link-main.menu-item:hover,
nav.category-navigation-main .menu-item:hover,
.category-menu-main .menu-item:hover {
    background: #667eea !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3) !important;
}

@media (max-width: 768px) {
    .category-navigation-main {
        padding: 0 15px;
    }

    .category-menu-main {
        gap: 8px;
    }

    .category-link-main {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Search results page cleanup */
.search .page-title-box .searchform,
.search .page-title-box .themeform,
.search .page-title-box form[method="get"] {
    display: none !important;
}

.error404 .page-title-box .searchform {
    display: block !important;
}

.search .page-title-box {
    padding-bottom: 10px;
}

.search .page-title-box span {
    color: #0e979b;
    font-weight: bold;
}

/* Font Awesome rendering tweaks */
.fa,
.fab,
.fal,
.far,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    width: 1em !important;
    text-align: center !important;
}

.fa:hover {
    transform: scale(1.1) !important;
    transition: transform 0.3s ease !important;
}
