/* Joseph Carlebach Institute - Collections Stylesheet 
   Consolidated for MGC, CAR, JC, and JCI pages
*/
     :root {
            --primary-navy: #1a3a52;
            --accent-gold: #b8860b;
            --soft-gray: #f4f7f9;
            --border-color: #dee2e6;
            --text-main: #2c3e50;
            --text-muted: #6c757d;
        }

/* --- LINK STYLES --- */
a:link {
    text-decoration: none;

}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
	
}

a:active {
    text-decoration: none;
	  	font-weight: 500;
}

/* --- BASE LAYOUT --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* --- NAVIGATION --- */
.navbar { 
    background-color: var(--primary-navy); 
    padding: 1rem 0; 
}

.navbar-brand { 
    font-size: 1.5rem; 
    font-weight: 600; 
    color: white !important; 
}

.navbar-subtitle { 
    font-size: 0.85rem; 
    color: rgba(255,255,255,0.8); 
    font-style: italic; 
}

.nav-link { 
    color: rgba(255,255,255,0.9) !important; 
    font-weight: 500; 
    padding: 0.5rem 1rem !important; 
	  color: white !important; 
}

/* Overriding link decoration for UI elements like Nav buttons */
.nav-link:hover, 
.nav-link.active { 
    color: white !important; 
    background-color: rgba(255,255,255,0.1); 
    border-radius: 4px; 
    text-decoration: none !important; 
}

/* --- PAGE HEADER & HERO --- */
.page-header {
    background: linear-gradient(rgba(26, 58, 82, 0.9), rgba(26, 58, 82, 0.9)), 
                url('images/ny1.jpg'); /* Fallback to image if SVG not used */
    background-size: cover; 
    background-position: center;
    color: white; 
    padding: 2rem 0;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7) !important;
}

.breadcrumb a:hover {
    color: white !important;
}

.archive-quote { 
    border-left: 3px solid var(--accent-gold); 
    padding-left: 1.5rem; 
    margin: 1.5rem 0; 
    font-size: 1.1rem; 
    font-style: italic; 
    color: rgba(255,255,255,0.9); 
}

      .breadcrumb {
            background: transparent;
            padding: 0;
            margin-bottom: 1rem;
        }

        .breadcrumb-item a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
        }

        .breadcrumb-item.active {
            color: white;
        }

/* --- CONTENT SECTIONS --- */
.section-heading { 
    color: var(--primary-navy); 
    font-weight: 400; 
    margin-bottom: 1rem; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 0.5rem; 
}

details summary { 
    cursor: pointer; 
    user-select: none; 
}

details summary:hover {
    color: var(--accent-gold);
}

/* --- SIDEBAR --- */
.sidebar-card { 
    border: none; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    border-radius: 8px; 
    position: sticky; 
    top: 20px; 
    background: white;
}

.sidebar-nav .nav-link { 
    color: var(--text-dark) !important; 
    background-color: #eee; 
    border-left: 3px solid transparent; 
    margin-bottom: 5px; 
    padding: 0.4rem 1rem; 
    transition: all 0.2s; 
	  font-weight: 400; 
}

.sidebar-nav .nav-link:hover { 
    background-color: var(--bg-light); 
    border-left-color: var(--accent-gold); 
    text-decoration: none !important;
	    font-weight: 600; 
	  color: var(--text-dark) !important;  
}

.sidebar-nav .nav-link.active { 
    background-color: #ddd; 
    border-left-color: var(--primary-navy); 
    font-weight: 600; 
	  color: var(--text-dark) !important;  
}

/* --- DATA TABLE & SCROLL CONTAINER --- */
.scroll-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    padding-right: 5px;
}

/* Custom Scrollbar */
.scroll-container::-webkit-scrollbar { width: 8px; }
.scroll-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 0 8px 8px 0; }
.scroll-container::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; }
.scroll-container::-webkit-scrollbar-thumb:hover { background: #666; }

.table thead { 
    position: sticky; 
    top: 0; 
    background-color: #f8f9fa; 
    z-index: 10; 
}

.sort-header { 
    cursor: pointer; 
    transition: background 0.2s; 
}

.sort-header:hover { 
    background-color: #ececec !important; 
}

.sort-header i { 
    font-size: 0.8rem; 
    margin-left: 5px; 
    color: #aaa; 
}

.pdf-icon-cell {
    width: 60px;
    text-align: center;
    vertical-align: middle;
}

.pdf-icon-cell i {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

/* --- MODAL VIEWER --- */
.modal-header {
    background-color: var(--primary-navy);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* --- FOOTER --- */
footer { 
    background-color: var(--primary-navy); 
    color: white; 
    padding: 4rem 0 2rem; 
    margin-top: 5rem; 
}

footer a { 
    color: rgba(255,255,255,0.8); 
    transition: 0.3s; 
}

footer a:hover { 
    color: white; 
    padding-left: 2px; 
}

.footer-heading { 
    font-weight: 600; 
    margin-bottom: 1.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 0.5rem; 
}

     :root {
            --primary-navy: #1a3a52;
            --accent-gold: #b8860b;
            --text-dark: #2c3e50;
            --bg-light: #f8f9fa;
        }

        body {
            font-family: ;
            color: var(--text-dark);
        }

        .navbar {
            background-color: var(--primary-navy);
            padding: 1rem 0;
        }

        .navbar-brand {
            font-size: 1.5rem;
            font-weight: 600;
            color: white !important;
        }

        .navbar-subtitle {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.8);
            font-style: italic;
        }

        .nav-link {
            color: rgba(255,255,255,0.9) !important;
            font-weight: 500;
            padding: 0.5rem 1rem !important;
        }

        .nav-link:hover, .nav-link.active {
            color: white !important;
            background-color: rgba(255,255,255,0.1);
            border-radius: 4px;
        }

        .hero-section {
            background: linear-gradient(rgba(26, 58, 82, 0.85), rgba(26, 58, 82, 0.85)), 
                        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23e8e8e8" width="1200" height="400"/></svg>');
            background-size: cover;
            color: white;
            padding: 5rem 0;
        }

        .hero-section h1 {
            font-size: 2.4rem;
            font-weight: 300;
            margin-bottom: 1.5rem;
        }

        .hero-section p {
            font-size: 1.1rem;
            line-height: 1.6;
            max-width: 800px;
            margin: 0 auto 2rem;
        }

        .btn-primary-custom {
            background-color: var(--accent-gold);
            border: none;
            padding: 0.5rem 1rem;
            font-weight: 600;
				font-size:14px;
            transition: all 0.3s;
        }

        .btn-primary-custom:hover {
            background-color: #9a7109;
            transform: translateY(-2px);
        }

        .section-title {
            font-size: 1.8rem;
            font-weight: 300;
            color: var(--primary-navy);
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--accent-gold);
        }

        .card {
            border: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: all 0.3s;
            height: 100%;
				padding-bottom:20px;
        }

        .card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            transform: translateY(-4px);
        }

        .card-title {
            color: var(--primary-navy);
            font-weight: 500;
				line-height:140%;
				margin:0 0 20px 0;
        }

        .icon-box {
            width: 60px;
            height: 60px;
            background-color: var(--primary-navy);
            color: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .news-date {
            color: var(--accent-gold);
            font-weight: 600;
            font-size: 0.9rem;
        }

        .collection-card {
            position: relative;
            overflow: hidden;
        }

        .collection-card img {
            transition: transform 0.3s;
        }

        .collection-card:hover img {
            transform: scale(1.05);
        }
		  
		  
		
        .photo-card-img img {
            object-fit: cover;
            width: 100%;
            border-radius: 4px;
        }
    
		  
		  
		  
		  
		  
		      .publication-card {
            border: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: all 0.3s;
            cursor: pointer;
            height: 100%;
            overflow: hidden;
        }

        .publication-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            transform: translateY(-4px);
        }

        .publication-thumbnail {
            width: 100%;
            height: 200px;
            object-fit: contain;
            background-color: #eee;
            padding: 1rem;
        }

        .publication-card .card-body {
            padding: 1rem;
        }

        .publication-card .card-title {
            color: var(--primary-navy);
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 0.75rem;
            line-height: 1.4;
            min-height: 2.5rem;
        }

        .publication-author {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .publication-date {
            color: var(--accent-gold);
            font-weight: 600;
            font-size: 0.85rem;
        }

        .badge-custom {
            background-color: var(--accent-gold);
            color: white;
            padding: 0.3rem 0.7rem;
            font-weight: 500;
            font-size: 0.75rem;
            text-transform: uppercase;
        }

        .badge-book { background-color: #3498db; }
        .badge-article { background-color: #2ecc71; }
        .badge-chapter { background-color: #e74c3c; }
        .badge-interview { background-color: #9b59b6; }

        .modal-header {
            background-color: var(--primary-navy);
            color: white;
        }

        .modal-title {
            font-weight: 300;
        }

        .modal-thumbnail {
            max-height: 400px;
            width: auto;
            margin: 0 auto;
            display: block;
        }

    

        .btn-outline-custom {
            border: 2px solid var(--primary-navy);
            color: var(--primary-navy);
            padding: 0.5rem 1.2rem;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-outline-custom:hover {
            background-color: var(--primary-navy);
            color: white;
        }

        footer {
            background-color: var(--primary-navy);
            color: white;
            padding: 2rem 0;
            margin-top: 4rem;
        }

        footer a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
        }

        footer a:hover {
            color: white;
        }

        .metadata-list {
            list-style: none;
            padding: 0;
            margin-top: 1rem;
        }

        .metadata-list li {
            padding: 0.5rem 0;
            border-bottom: 1px solid #eee;
        }

        .metadata-list strong {
            color: #666;
            display: inline-block;
            width: 120px;
        }

        #publicationsContainer .col-lg-3 {
            margin-bottom: 2rem;
        }

        .search-box {
            background-color: var(--bg-light);
            padding: 1rem;
            border-radius: 5px;
            margin-bottom: 1rem;
			
        }
		  
		      .filter-buttons {
            margin: 1rem 0;
        }

        .filter-btn {
        background-color: var(--primary-navy);
            border: 1px solid #fff;
            color: var(--primary-navy);
            padding: 0.3rem 1rem;
            margin-right: 0.3rem;
            font-weight: 500;
            transition: all 0.3s;
				color:white;
        }

        .filter-btn:hover, .filter-btn.active {
            background-color: var(--primary-navy);
            color: white;
        }
		  
	