.sidebar-custom-root .offcanvas-body .catagory-tag a {
    background: transparent;
    padding: 14px 14px 14px 20px;
    display: flex;
    column-gap: 0;
    align-items: center;
    border-radius: 6px;
    --bs-primary: #7886C7 !important;
    /* border: 1px solid var(--bs-border-color-style-1); */
    justify-content: space-between;
    width: 100%;
    font-weight: 700;
    color: #fff !important;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sidebar-custom-root .catagory-count {
    font-size: 12px;
    color:rgb(255, 255, 255) !important;
}

.sidebar-custom-root .offcanvas-body .offcanvas-title {
    position: relative;
    padding-left: 40px;
    margin-right: auto;
    color: var(--bs-heading-color);
    color: #fff !important;
    font-size: 22px;
    font-weight: 900;
    line-height: 30px;
}
.sidebar-custom-root .offcanvas-body .offcanvas-title::before {
    position: absolute;
    content: "";
    left: 0;
    bottom: 7px;
    width: 30px;
    height: 2px;
    background: #fff !important;
}
.sidebar-custom-root .offcanvas-body .author-socials a {
    border: 1px solid #fff !important;
    height: 30px;
    width: 30px;
    text-align: center;
    line-height: 28px;
    font-size: 16px;
    border-radius: 4px;
    color: #fff !important;
}
.sidebar-custom-root.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: var(--bs-offcanvas-zindex);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    color: var(--bs-offcanvas-color);
    visibility: hidden;
    background-color: #2d336b !important;
    background-clip: padding-box;
    outline: 0;
    transition: var(--bs-offcanvas-transition);
}

.sidebar-custom-root ::-webkit-scrollbar {
    width: 8px;
}

.sidebar-custom-root ::-webkit-scrollbar-thumb {
    background-color: #7886C7;
    border-radius: 10px;
}

.sidebar-custom-root ::-webkit-scrollbar-thumb:hover {
    background-color: #5a6fa3;
}

.sidebar-custom-root ::-webkit-scrollbar-track {
    background-color: #2d336b;
}

.sidebar-custom-root .row.custom-row-gap-search {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important; 
}

.sidebar-custom-root .blog-cards, 
.sidebar-custom-root .magazine-cards, 
.sidebar-custom-root .quote-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
}

.sidebar-custom-root .mini-card-style {
    flex: 1 1 calc(33.333% - 20px); 
    box-sizing: border-box;
}

/* Default: 3 per row */
.sidebar-custom-root .blog-cards .col-md-4,
.sidebar-custom-root .magazine-cards .col-md-4,
.sidebar-custom-root .quote-card,
.sidebar-custom-root .user-card {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    box-sizing: border-box;
}

.sidebar-custom-root .card-image-wrapper {
    position: relative !important;
    overflow: hidden !important;
    height: 300px !important;
}

.sidebar-custom-root .quote-card {
    width: 420px;
    height: 300px;
    background: var(--bs-quote-color);
    font-family: inherit;
    position: relative;
    border-radius:  0 100px 0px 100px !important;
}

.sidebar-custom-root .quote-card .quote {
    color: #7886c7;
    padding-left: 30px;
    position: relative;
}

.sidebar-custom-root .quote-card .card-name {
    text-transform: uppercase;
    font-weight: 700;
    color: #2d336b;
    padding: 35px;
    line-height: 23px;
}

.sidebar-custom-root .quote-card .body-text {
    font-size: 16px;
    font-weight: 900;
    color: #2d336b;
    position: relative;
    transform: translateY(-50%);
    line-height: 23px;
    text-align: center;
}

.sidebar-custom-root .quote-card .author {
    margin-top: auto;
    opacity: 1;
    transition: 0.5s;
    position: absolute;
    bottom: 10px;
    right: 10px;
    text-align: center;
}

.sidebar-custom-root .img-fluid.rounded-circle-quote {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: -10px;
}

.sidebar-custom-root .quote-card .card-text {
    margin-left: 10px;
    color: #2d336b !important;
    font-size: 14px; 
}

.sidebar-custom-root .dark-mode .blog-card {
    background: #7886c7;
    border: 0.5px solid #27414D;
    --bs-primary: wheat;
}

.sidebar-custom-root .user-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
}

.sidebar-custom-root .user-card {
    flex: 1 1 calc(33.333% - 20px); 
    box-sizing: border-box;
    border: none;
    height: 200px;
    width: 200px;
    background-color: #7886c7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-custom-root .offcanvas .nav-item.dropdown .nav-link {
    color: #fff !important;
}

.sidebar-custom-root .user-profile-image {
    width: 80px; 
    height: 80px;
    object-fit: cover;
    border-radius: 50%; 
    border: 2px solid #fff; 
}

.sidebar-custom-root .user-card .card-body {
    padding: 20px;
}

.sidebar-custom-root .user-card .card-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.sidebar-custom-root .user-card .card-text {
    font-size: 14px;
    color: #2d336b; /* Subtle text color */
}

.sidebar-custom-root .offcanvas.offcanvasserch .search-tag a {
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 20px !important;
    text-align: left !important;
    border-radius: 18px !important;
    color: #2d336b !important;
    border: 1px solid var(--bs-body-color-style-5) !important;
    padding: 8px 20px !important;
    background: #a9b5df !important;
}

.sidebar-custom-root .offcanvas.offcanvasserch .search-tag a:hover {
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-primary) !important;
}

.sidebar-custom-root .offcanvas.offcanvasserch input {
    border: 1px solid var(--bs-border-color-style-1) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    letter-spacing: 0em !important;
    text-align: left !important;
    color: #fff !important;
    border-radius: 25px !important;
    width: 80% !important;
    padding: 16px 30px !important;
}

.sidebar-custom-root .magazine-cards .col-md-4 {
    flex: 0 0 calc(33.333% - 20px); /* Fixed size for all cards */
    max-width: calc(33.333% - 20px);
    box-sizing: border-box;
}

.sidebar-custom-root .serch-form .suggestions-container {
    position: absolute;
    left: 6px;
    right: 0;
    top: 100%;
    width: 97% !important;
    min-width: 0;
    margin: 0;
    z-index: 1050;
    background: #fff;
    /* border: 1px solid #e1e1e1; */
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(44,51,107,0.08);
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
}

.sidebar-custom-root .suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 1rem;
    color: #2d336b;
    transition: background 0.2s;
}

.sidebar-custom-root .suggestion-item:hover {
    background: #f0f0f0;
    color: #7886c7;
}

.sidebar-custom-root .suggestion-type {
    font-size: 0.9em;
    color: #888;
}

.sidebar-custom-root .suggestion-section-title {
    font-weight: bold;
    font-size: 1rem;
    background: #f5f5f5;
    padding: 8px 16px;
    border-bottom: 1px solid #e1e1e1;
    color: #2d336b;
}

.sidebar-custom-root .navbar-brand img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

@media (max-width: 768px) {
    .sidebar-custom-root .navbar-brand img {
        max-width: 150px;
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .sidebar-custom-root .navbar-brand img {
        max-width: 120px;
        max-height: 40px;
    }
}

/* Tablet: 2 per row */
@media (max-width: 991.98px) {
    .sidebar-custom-root .blog-cards .col-md-4,
    .sidebar-custom-root .magazine-cards .col-md-4,
    .sidebar-custom-root .quote-card,
    .sidebar-custom-root .user-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
    .sidebar-custom-root .offcanvas.offcanvasserch .offcanvas-body {
        padding: 20px 0;
    }
    .sidebar-custom-root .serch-modal-title,
    .sidebar-custom-root .modal-post-title {
        font-size: 1.3rem !important;
        text-align: center;
    }
    .sidebar-custom-root .serch-form .form-control,
    .sidebar-custom-root .serch-form .search-btn {
        width: 100% !important;
        margin-bottom: 10px;
    }
    .sidebar-custom-root .serch-form .d-flex {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* Mobile: 1 per row */
@media (max-width: 576px) {
    .sidebar-custom-root .blog-cards .col-md-4,
    .sidebar-custom-root .magazine-cards .col-md-4,
    .sidebar-custom-root .quote-card,
    .sidebar-custom-root .user-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .sidebar-custom-root .quote-card,
    .sidebar-custom-root .user-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .sidebar-custom-root .author-socials {
        gap: 20px; /* Less gap on mobile */
    }
}

/* Remove fixed width from .quote-card and .user-card for responsiveness */
.sidebar-custom-root .quote-card,
.sidebar-custom-root .user-card {
    width: auto;
    min-width: 0;
    max-width: 100%;
}

.sidebar-custom-root .offcanvas-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Offcanvas search modal responsiveness */
.sidebar-custom-root .offcanvas.offcanvasserch .offcanvas-body {
    padding: 40px 0;
}

@media (min-width: 768px) {
  #search-form .row.g-2 > .col-md-9 {
    padding-right: 0.5rem;
  }
  #search-form .row.g-2 > .col-md-3 {
    padding-left: 0.5rem;
  }
}

/* Match input and button height, border radius, and font */
.sidebar-custom-root .serch-form .form-control,
.sidebar-custom-root .serch-form .search-btn {
    height: 48px; /* or the same as your input */
    border-radius: 25px !important;
    font-size: 16px;
    font-weight: 500;
    padding: 0 30px !important;
    box-sizing: border-box;
    background-color: #7886c7 !important;
}

.sidebar-custom-root .serch-form .search-btn {
    background: #7886c7 !important;
    color: #fff !important;
    border: none;
    margin-left: 0;
    margin-right: 0;
    min-width: 120px;
    /* Remove default button padding if any */
    padding: 0 30px !important;
    /* Vertically center text */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-custom-root .search-icon-btn {
    background: #7886c7 !important;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    padding: 0;
    border-radius: 25px;
}

@media (max-width: 600px) {
    .sidebar-custom-root .search-btn { display: none !important; }
    .sidebar-custom-root .search-icon-btn { display: flex !important; }
}
@media (min-width: 601px) {
    .sidebar-custom-root .search-btn { display: flex !important; }
    .sidebar-custom-root .search-icon-btn { display: none !important; }
}

@media (max-width: 892px) and (max-height: 497px) {
    .sidebar-custom-root.offcanvas.offcanvasserch {
        top: 110px !important;
    }
}

@media (min-width: 200px) and (max-width: 896px) {
    .sidebar-custom-root.offcanvas.offcanvasserch {
        top: 110px !important;
    }
}

@media (min-width: 900px) and (max-width: 1200px) {
    .sidebar-custom-root.offcanvas.offcanvasserch {
        top: 110px !important;
    }
}

.sidebar-magazine-card {
    border: 6px solid #7886c7 !important;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #7886c7;
}

.sidebar-magazine-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.sidebar-magazine-card .card-img-sidebar, .sidebar-magazine-card .card-img-bottom {
    width: 100% !important;
    height: 350px !important;
    object-fit: fill;
}
.sidebar-magazine-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff !important;
    margin-bottom: 10px;
    margin-top: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .sidebar-magazine-card .card-img-sidebar, .sidebar-magazine-card .card-img-bottom {
        height: 140px !important;
    }
}
@media (max-width: 480px) {
    .sidebar-magazine-card .card-img-sidebar, .sidebar-magazine-card .card-img-bottom {
        height: 100px !important;
    }
}

.sidebar-custom-root .magazine-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.sidebar-custom-root .magazine-cards > div {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    box-sizing: border-box;
}
@media (max-width: 991.98px) {
    .sidebar-custom-root .magazine-cards > div {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}
@media (max-width: 576px) {
    .sidebar-custom-root .magazine-cards > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Center the author-socials container and space the icons evenly */
.sidebar-custom-root .author-socials-sidebar {
    display: flex;
    justify-content: center;   
    align-items: center;
    gap: 40px;                 
    width: 100%;
    margin-bottom: 30px;
}

.sidebar-custom-root .author-socials-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff !important;
    height: 44px;
    width: 44px;
    text-align: center;
    line-height: 44px;
    font-size: 22px;
    border-radius: 6px;
    color: #fff !important;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sidebar-custom-root .author-socials-sidebar a:hover {
    background: #fff !important;
    color: #2d336b !important;
    border-color: #fff !important;
}

.sidebar-custom-root .author-socials-sidebar a i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 22px;
    margin: 0;
    padding: 0;
}
.sidebar_dots{
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 2px 12px;
}

