﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}
.cover-thumb {
    width: 200px;
    height: auto;
    display: block;

}

/* Alternative: fixed box with cropping to ensure every thumbnail fills the same box */
.cover-thumb-cropped {
    width: 200px;
    height: 300px;
    object-fit: cover; /* crops while preserving aspect ratio */
    display: block;
}


/* This is for the category side bar*/
/*.sidebar-fixed {
    height: 100vh;*/ /* Full viewport height */
/*overflow-y: auto;*/ /* Scroll vertically if content exceeds height */
/*border-right: 1px solid #ddd;*/ /* Optional: subtle divider */
/*padding-top: 1rem;*/ /* Spacing at the top */
/*background-color: #f8f9fa;*/ /* Light Bootstrap background */
/*position: sticky;
    top: 0;
}*/

.sidebar-compact {
    /*max-height: 100vh;*/ /* Full viewport height */
    /*overflow-y: auto;*/ /* Scroll if too many categories */
    /*border-right: 1px solid #ddd;
    background-color: #f8f9fa;
    font-size: 0.9rem;*/ /* Slightly smaller text */
    /*position: sticky;
    top: 0;*/

    max-height: 400px; /* Limit height */
    overflow-y: auto; /* Scroll if content exceeds */
    border-right: 1px solid #ddd;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

    .sidebar-compact .list-group-item {
        border: none; /* Cleaner look */
        padding: 0.4rem 0.75rem; /* Compact spacing */
    }

.list-group-item.active {
    background-color: #0d6efd; /* Bootstrap primary */
    color: #fff;
    font-weight: 600;
}

/* ---------- Site logo (CSS-driven) ---------- */
/* Place your logo file at: /Content/images/logo.png (add to project) */
/* The anchor `.site-logo` is empty in markup and receives the logo via background-image. */
.site-topbar .navbar-brand {
    padding: 0;
    margin-right: 1rem;
    display: block;
    line-height: 1;
}

.site-topbar .site-logo {
    display: block;
    width: 160px; /* adjust width as needed */
    height: 48px; /* adjust height as needed */
    background-image: url('/Content/images/otdlogo.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain; /* preserves aspect ratio */
    text-indent: -9999px; /* hide any text content if present */
}

/* Slightly smaller logo on very small screens */
@media (max-width: 576px) {
    .site-topbar .site-logo {
        width: 120px;
        height: 40px;
    }
}

/* If you'd prefer the logo centered vertically with the navbar content */
.site-topbar .navbar-nav .nav-link,
.site-topbar .nav-link {
    align-items: center;
}

.pubdetailimage{
    height:30%;
    width:30%;

}
.otdtopbar
{

}