/* =========================================================
   ASH KT — SIDEBAR SYSTEM
   (Right Sidebar + Top Sidebar + Bottom Sidebar — सभी widget-box
   pattern एक जैसा follow करते हैं, इसलिए एक ही file में रखे गए हैं)
   ========================================================= */


/* =========================================================
   1. RIGHT SIDEBAR (Single Post / Blog Page साइड में)
   ========================================================= */

.ashkt-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ashkt-sidebar-widget {
    padding: 22px 24px !important;
    background: var(--ashkt-content-bg) !important;
    border: 1px solid var(--ashkt-borders) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.07) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0;
}

.ashkt-sidebar-title {
    margin: 0 0 16px !important;
    color: var(--ashkt-headings) !important;
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.ashkt-sidebar-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ashkt-sidebar-list li {
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--ashkt-borders) !important;
}

.ashkt-sidebar-list li:first-child {
    padding-top: 0 !important;
}

.ashkt-sidebar-list li:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.ashkt-sidebar-list a {
    color: var(--ashkt-text) !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    transition: color 0.25s ease !important;
    text-decoration: none !important;
}

.ashkt-sidebar-list a:hover {
    color: var(--ashkt-accent) !important;
}

/* Sidebar Search Form */
.ashkt-sidebar .search-form {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ashkt-sidebar .search-field {
    min-width: 0 !important;
    flex: 1 !important;
    padding: 10px 12px !important;
    border: 1px solid var(--ashkt-borders) !important;
    border-radius: 8px !important;
    background: var(--ashkt-content-bg) !important;
    color: var(--ashkt-headings) !important;
    box-sizing: border-box !important;
}

.ashkt-sidebar .search-submit {
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--ashkt-accent) !important;
    color: var(--ashkt-site-bg) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}


/* =========================================================
   2. TOP SIDEBAR
   ========================================================= */

.ashkt-top-sidebar-wrapper {
    max-width: var(--ashkt-container-width) !important;
    width: 100% !important;
    margin: 35px auto 30px !important;
    padding-left: var(--ashkt-side-spacing) !important;
    padding-right: var(--ashkt-side-spacing) !important;
    box-sizing: border-box !important;

    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ashkt-top-sidebar-box {
    width: 100%;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ashkt-top-sidebar-widget {
    padding: 28px 30px;

    background: var(--ashkt-content-bg);
    border: 1px solid var(--ashkt-borders);
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.07);

    box-sizing: border-box;
}

.ashkt-top-sidebar-title {
    margin: 0 0 16px;

    color: var(--ashkt-headings);
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
}

.ashkt-top-sidebar-widget p,
.ashkt-top-sidebar-widget li {
    color: var(--ashkt-text);
}

.ashkt-top-sidebar-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ashkt-top-sidebar-widget li {
    padding: 9px 0;
    border-bottom: 1px solid var(--ashkt-borders);
}

.ashkt-top-sidebar-widget li:last-child {
    border-bottom: 0;
}

.ashkt-top-sidebar-widget a {
    color: var(--ashkt-text);
}

.ashkt-top-sidebar-widget a:hover {
    color: var(--ashkt-accent);
}


/* =========================================================
   3. BOTTOM SIDEBAR
   ========================================================= */

.ashkt-bottom-sidebar {
    max-width: var(--ashkt-container-width) !important;
    width: 100% !important;
    margin: 35px auto 0 !important;
    padding-left: var(--ashkt-side-spacing) !important;
    padding-right: var(--ashkt-side-spacing) !important;
    box-sizing: border-box !important;

    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ashkt-bottom-sidebar-widget {
    width: 100%;
    margin: 0 0 24px;

    padding: 28px 30px;

    background: var(--ashkt-content-bg);
    border: 1px solid var(--ashkt-borders);
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.07);
}

.ashkt-bottom-sidebar-widget:last-child {
    margin-bottom: 0;
}

.ashkt-bottom-sidebar-title {
    margin: 0 0 16px;

    color: var(--ashkt-headings);
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
}

.ashkt-bottom-sidebar-widget p,
.ashkt-bottom-sidebar-widget li {
    color: var(--ashkt-text);
}

.ashkt-bottom-sidebar-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ashkt-bottom-sidebar-widget li {
    padding: 9px 0;
    border-bottom: 1px solid var(--ashkt-borders);
}

.ashkt-bottom-sidebar-widget li:last-child {
    border-bottom: 0;
}

.ashkt-bottom-sidebar-widget a {
    color: var(--ashkt-text);
}

.ashkt-bottom-sidebar-widget a:hover {
    color: var(--ashkt-accent);
}


/* =========================================================
   MOBILE — ALL SIDEBARS
   ========================================================= */

@media (max-width: 768px) {

    .ashkt-sidebar {
        width: 100%;
    }

    .ashkt-top-sidebar-wrapper {
        gap: 18px;
        margin-top: 25px !important;
        margin-bottom: 25px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .ashkt-top-sidebar-widget {
        padding: 24px 20px;
    }

    .ashkt-bottom-sidebar {
        gap: 18px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .ashkt-bottom-sidebar-widget {
        padding: 24px 20px;
    }
}