/* Make logout link red on hover */
.logout-link:hover, .logout-link:focus {
  color: #dc3545 !important;
  transition: color 0.2s;
}
/* Prevent hover effect on auth (login/register) cards */
.auth-card:hover, .auth-card:focus, .auth-card:active {
  transform: none !important;
  box-shadow: 0 6px 18px var(--shadow) !important;
  z-index: auto !important;
}
/* ...existing code... */

/* Global font and color palette */
:root{
  --bg: #f7f9fc;
  --card-bg: #ffffff;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e6e9ee;
  --shadow: rgba(15, 23, 42, 0.06);
  --banner-height: 260px;
}

html,body{
  height: 100%;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: #111827;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Headings */
h1, h2 {
  font-weight: 700; /* bold for H1 and H2 */
  margin: 0;
}
h3, h4, h5, h6 {
  font-weight: 400;
}

/* Site banner + navbar */
.site-banner{
  position: relative;
  min-height: var(--banner-height);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.site-banner::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.25), rgba(2,6,23,0.55));
  pointer-events: none;
}
.site-banner .banner-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 2rem 1rem;
  margin: 0 auto;
}
.site-banner .banner-title{
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}
.site-banner .banner-sub{
  color: rgba(255,255,255,0.85);
  margin-top: .5rem;
  font-size: .95rem;
  opacity: .95;
}

/* Navbar inside banner (modern, semi-transparent) */
.site-banner .navbar{
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  padding: .5rem 1rem;
  border-radius: .5rem;
  box-shadow: 0 6px 18px rgba(2,6,23,0.25);
  margin-bottom: 1rem;
}
.site-banner .navbar .navbar-brand{
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
}
.site-banner .navbar .nav-link{
  color: rgba(255,255,255,0.95);
  margin-left: 1rem;
  transition: color .15s ease;
}
.site-banner .navbar .nav-link:hover{
  color: var(--accent);
}

/* Centered main container */
.container-centered{
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Cards grid (default 4 columns) */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

/* Responsive breakpoints */
@media (max-width: 1200px){ .cards-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px){ .cards-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px){ .cards-grid{ grid-template-columns: 1fr; } }

/* Card base styles */
.card{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 18px var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(15,23,42,0.10);
}

/* Keep summary card static (no hover motion) */
.static-card:hover{
  transform: none;
  box-shadow: 0 6px 18px var(--shadow);
}

/* Card body padding with left margin so text isn't flush */
.card .card-body{
  padding: 1rem 1rem 1rem 1.25rem; /* left padding slightly larger */
}

/* Card title boldness */
.card .card-title{
  font-weight: 700; /* card titles bold */
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

/* Card subtitle / meta */
.card .card-sub{
  color: var(--muted);
  font-size: .92rem;
}

/* Make whole card clickable if wrapped in anchor or tagged */
.card-clickable{
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.card-clickable:focus, .card-clickable:hover{ text-decoration: none;}

/* Articles / thumbnails */
.article-card .thumb{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}
.article-card .meta{
  font-size: .9rem;
  color: var(--muted);
  margin-top: .5rem;
}

/* Manufacturers / models / vehicles grids: reuse .cards-grid + ensure equal heights */
.col-card { display: block; height: 100%; }

/* Breadcrumbs */
.breadcrumb-component{
  margin-bottom: 1rem;
  padding: .5rem 0;
}
.breadcrumb-component a{ color: var(--accent); text-decoration:none; }
.breadcrumb-component a:hover{ text-decoration:underline; }

/* Categories tree: single wide column centered */
.categories-tree{
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
}
.categories-tree .category-card{
  width: 100%;
  max-width: 1100px;
  border-radius: 8px;
  overflow: visible;
}
.categories-tree .category-card .card-body{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.collapse-children{ margin-top: .6rem; padding-left: 1rem; }

/* Controls */
.toggle-btn{
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.15rem;
}
.toggle-btn[aria-expanded="true"]{ color: var(--accent); }

/* Search forms */
.search-bar{
  display:flex;
  gap:.5rem;
  align-items:center;
  margin-bottom: 1rem;
}
.search-bar input[type="search"]{
  flex: 1;
  padding: .5rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Small utilities */
.home-links{ margin-top: 1rem; }
.home-links .btn{ min-width: 160px; }
.centered { text-align: center; }
.muted { color: var(--muted); font-size: .95rem; }

/* Accessibility / focus */
a:focus, button:focus, .card:focus { outline: 3px solid rgba(37,99,235,0.12); outline-offset: 2px; }

/* Small print */
.small { font-size: .85rem; color: var(--muted); }

/* End of stylesheet */
/* ...existing code... */