:root {
  --primary-color: #0056b3; /* Deep Blue */
  --secondary-color: #6c757d;
  --accent-color: #ffc107; /* Amber/Yellow for highlights */
  --bg-light: #f8f9fa;
  --text-dark: #343a40;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

body {
  /* padding-top: 80px; Removed for sticky-top navbar */
  font-family: var(--font-body);
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%); /* W3C Blueish Gradient */
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #2c3e50;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #003d80;
  text-decoration: none;
}

/* Card Styling */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background-color: #fff;
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid #eee;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: #888;
}

/* Sidebar Widgets */
.sidebar-widget .card-header {
  background-color: #fff;
  border-bottom: 2px solid var(--primary-color);
  font-weight: 700;
  padding: 1rem;
  color: var(--primary-color);
}

.sidebar-widget ul {
  padding-left: 0;
  list-style: none;
}

.sidebar-widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f1f1;
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  color: #555;
  display: block;
}

.sidebar-widget ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-link {
  color: var(--primary-color);
  border-radius: 5px;
  margin: 0 2px;
}

/* Footer */
footer {
  background-color: #2c3e50 !important; /* Dark blue/grey */
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
  margin-top: 3rem;
}

/* Category Badge */
.category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Search Box */
.input-group .form-control {
  border-right: 0; 
  box-shadow: none; 
  border-color: #ced4da;
}
.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Navbar Custom Styles from Main Site */
.navbar-brand img { height: 45px; margin-right: 12px; }
.nav-link { font-weight: 500; color: #4b5563 !important; padding: 10px 15px !important; }
.nav-link:hover { color: #0d6efd !important; background: rgba(13, 110, 253, 0.05); border-radius: 5px; }
.nav-link.active { color: #0d6efd !important; font-weight: 600; }
