/*
Theme Name: BeStreetSmartNJ
Description: Child theme for BeStreetSmartNJ subdomain
Template: njtpa
Version: 1.0.0
*/

@import url("../njtpa/style.css");
@import url("assets/css/base/variables-override.css");

/* brand specific focus visible */
*:focus-visible {
  outline: 2px solid var(--bs-green);
  outline-offset: 2px;
}

/* Use parent theme's container and design system */
/* .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
} */

/* @media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
} */

#page {
  background: var(--njtpa-gray-lighter);
}

.site-main {
  margin-bottom: 0px;
}

.streetsmart-header-main {
  padding: 20px 0;
}

.page-header {
  background: var(--bs-green-darker) !important;
}

.streetsmart-header-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile-first header - stack on mobile, grid on larger screens */
.streetsmart-header-inner {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .streetsmart-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }
}

.back-to-njtpa {
  /* color: white; */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  justify-self: start;
}

.back-to-njtpa:hover {
  text-decoration: underline;
}

.streetsmart-logo {
  text-align: center;
}

.streetsmart-logo img {
  height: 60px;
  width: auto;
}


/* Mobile-first navigation */
.streetsmart-navbar {
  background: var(--bs-green-darker);
  padding: 0;
}

.streetsmart-navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.streetsmart-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.streetsmart-navigation {
  flex: 0 1 auto;
  width: 100%;
}

/* Mobile-first menu - horizontal scroll on small screens */
.streetsmart-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 768px) {
  .streetsmart-menu {
    /* justify-content: center; */
    overflow-x: visible;
  }
}

.streetsmart-menu li {
  margin: 0;
  background: var(--bs-green-darker);
  list-style: none;
}

/* Mobile-first menu items */
.streetsmart-menu a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1rem;
  display: block;
  background-color: transparent;
  transition: background-color 0.3s;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .streetsmart-menu a {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
}

.streetsmart-menu li:not(.current-menu-item):not(.current_page_item) a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}


.streetsmart-menu .current-menu-item a,
.streetsmart-menu .current_page_item a {
  background-color: transparent;
  color: black;
}

.streetsmart-menu .menu-item a {
  cursor: pointer;
}

.streetsmart-search {
  position: relative;
}

.streetsmart-search form {
  display: flex;
  align-items: center;
}

.streetsmart-search-field {
  width: 250px;
  padding: 8px 40px 8px 15px;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
}

.streetsmart-search-submit {
  position: absolute;
  right: 5px;
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  color: var(--njtpa-black);
}

.footer-menu a {
  color: var(--njtpa-black);
}

/* ========================================
   BeStreetSmartNJ Homepage Styles
   ======================================== */

/* Homepage wrapper */
.bestreetsmart-homepage {
  min-height: 100vh;
}

/* Hero Section */
.homepage-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bs-green-darker) 0%, var(--bs-green-dark) 100%);
  color: white;
  padding: var(--space-5xl) 0;
  overflow: hidden;
  min-height: 400px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .homepage-hero {
    padding: var(--space-5xl) 0 4rem 0;
  }
}

.home .hero-content {
  max-width: 500px;
  padding: 1rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 500px;
  margin: 0 !important;
  background: rgba(0, 0, 0, 0.6);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin: 0px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  min-width: 180px;
}

.btn-primary {
  background: var(--bs-green-darker);
  color: var(--njtpa-white);
  border: 2px solid var(--bs-green-darker);
}

.btn-primary:hover {
  background: var(--njtpa-white);
  color: var(--bs-green-darker);
  border: 2px solid var(--njtpa-white);
}

.btn-secondary {
  background: transparent;
  color: var(--njtpa-white);
  border: 2px solid var(--njtpa-white);
}

.btn-secondary:hover {
  background: var(--njtpa-white);
  color: var(--bs-green-darker);
}

.btn-outline {
  background: transparent;
  color: var(--bs-green-darker);
  border: 2px solid var(--bs-green);
}

.btn-outline:hover {
  background: var(--bs-green);
  color: white;
}

/* Homepage Content */
.homepage-content {
  padding: var(--space-3xl) 0;
  background: var(--njtpa-gray-lighter);
}

.content-section {
  margin-bottom: var(--space-3xl);
  background: var(--njtpa-white);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--njtpa-gray-light);
}

.content-section:last-child {
  margin-bottom: 0;
}

/* Section Headers */
.section-header {
  text-align: left;
  margin-bottom: var(--space-xl);
  max-width: none;
}

.section-description {
  color: var(--njtpa-gray-medium);
}

.section-header h2 {
  font-size: var(--font-size-xl);
  color: var(--bs-green-darker);
  /* margin-bottom: var(--space-sm); */
  font-weight: var(--font-weight-bold);
  margin: 0px;
}

.section-header p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.section-link {
  display: inline-flex;
  align-items: center;
  color: var(--bs-green-darker);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: color 0.3s ease;
}

.section-link:hover {
  color: var(--bs-green-dark);
}

/* Content Grids */
.content-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bestreetsmart-homepage .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Events grid is always 3 columns on larger screens */
@media (min-width: 768px) {
  .events-grid {
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
  }
}

/* Content Cards */
.content-card {
  background: var(--color-background);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

a.content-card:hover {
  cursor: pointer;
  border-color: var(--bs-green);
}

a.content-card:hover .card-title {
  color: var(--bs-green-darker);
}

a.content-card:focus-visible {
  outline: 2px solid var(--bs-green);
  outline-offset: 2px;
}

.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

/* Fix aspect ratio at mid-screen sizes where 2-column layout causes extreme cropping */
@media (min-width: 576px) and (max-width: 850px) {
  .content-grid.grid--2col .card-image {
    aspect-ratio: 16/9;
  }
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  /* background: var(--bs-green); */
  background: var(--bs-green-darker);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.card-meta time {
  color: var(--bs-green-darker);
  font-weight: 500;
}

.card-content h2,
.card-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-snug);
  color: var(--color-text);
  transition: color 0.3s ease;
}

.card-content p {
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex: 1;
  font-size: var(--font-size-sm);
}

.card-link-text {
  color: var(--bs-green-darker);
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-top: auto;
  transition: color 0.3s ease;
}

a.content-card:hover .card-link-text {
  color: var(--bs-green-dark);
}

.card-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: auto;
}

.download-link {
  color: var(--color-text-muted);
}

.download-link:hover {
  color: var(--bs-green-darker);
}

/* Report Cards */
.report-card .card-content {
  padding: var(--space-xl);
}

.report-year {
  background: var(--bs-green-darker);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.report-counties {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* Event Cards */
.event-card .card-content {
  padding: var(--space-md);
  text-align: center;
}

.event-date-badge {
  background: var(--bs-green);
  color: white;
  /* padding: var(--space-sm) var(--space-md); */
  /* border-radius: var(--border-radius-lg); */
  font-size: var(--font-size-xs);
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.event-time,
.event-location {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.event-location:before {
  content: "📍 ";
  margin-right: 4px;
}


/* Reports Table Layout */
.reports-table {
  display: flex;
  flex-direction: column;
}

.home .report-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-bottom: none;
  transition: all 0.3s ease;
}
.home .report-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.home .report-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  /* min-width: 120px; */
}

.report-year {
  background: var(--bs-green-darker);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-align: center;
  width: fit-content;
}

.report-counties {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.3;
}

.report-title {
  flex: 1;
}

.home .report-title a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.report-title a:hover {
  color: var(--bs-green-darker);
}

.report-actions {
  min-width: 100px;
  text-align: right;
}

.view-details-link {
  color: var(--bs-green-darker);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: color 0.3s ease;
}

.view-details-link:hover {
  color: var(--bs-green-dark);
}

/* Mobile responsive for reports table */
@media (max-width: 767px) {
  .report-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .report-meta {
    min-width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .report-actions {
    min-width: auto;
    text-align: left;
  }
}

/* Reports and Events Container */
.reports-events-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

@media (min-width: 768px) {
  .reports-events-container {
    flex-direction: row;
    gap: var(--space-3xl);
  }

  .reports-events-container .content-section {
    flex: 1;
    margin-bottom: 0;
  }
}

/* No Content State */
.no-content {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .homepage-content {
    /* padding: var(--space-6xl) 0; */
  }

  .content-section {
    /* margin-bottom: var(--space-6xl); */
  }
}

.streetsmart-footer-info {
  padding: 60px 0;
  background: var(--njtpa-gray-lighter);
}

.streetsmart-footer-info .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile-first footer grid */
.footer-info-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-info-grid {
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-info-grid {
    gap: 4rem;
  }
}

.streetsmart-logo-section {
  text-align: left;
}

.streetsmart-logo-section img {
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.contact-info {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.contact-info a {
  color: var(--bs-green-darker);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Mobile-first footer navigation columns */
.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-nav-columns {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.footer-nav-column h4 {
  color: var(--color-text);
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-nav-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-column li {
  margin-bottom: 8px;
}

.footer-nav-column a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav-column a:hover {
  color: var(--bs-green-darker);
}

.footer-copyright {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--njtpa-gray-light);
  font-size: 0.85rem;
}

.footer-copyright a {
  color: var(--bs-green-darker);
  text-decoration: none;
}

/* BeStreetSmartNJ Blog Styles */

/* Blog Layout Structure */
.blog-layout {
  /* padding: 2rem 0; */
}

/* Mobile-first blog layout */
.blog-layout .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .blog-layout .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .blog-layout .container {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }
}

.blog-layout .content-area {
  min-width: 0;
}

/* Blog Archive Grid */
/* Mobile-first blog posts grid */
.blog-posts-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 576px) {
  .blog-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

.blog-post-card {
  background: var(--color-background);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.blog-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-content {
  padding: 1.5rem;
}

.blog-post-content .entry-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.blog-post-content .entry-title a {
  color: var(--bs-green-darker);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-content .entry-title a:hover {
  color: var(--bs-green);
}

.entry-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.entry-summary {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--color-text);
}

.read-more-link {
  background: var(--bs-green-darker);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.read-more-link:hover {
  background: var(--bs-green-dark);
  color: white;
}

.comments-link a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.comments-link a:hover {
  color: var(--bs-green);
}

/* Single Blog Post */
.blog-post-single {
  /* No padding/margin needed - handled by container */
}

.blog-post-single .entry-header {
  margin-bottom: 2rem;
  text-align: center;
}

/* Mobile-first blog single title */
.blog-post-single .entry-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bs-green-darker);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-post-single .entry-meta {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.post-thumbnail {
  margin-bottom: 2rem;
  text-align: center;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.entry-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--bs-green-darker);
  margin: 2rem 0 1rem 0;
}

.entry-content a {
  color: var(--bs-green-darker);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--bs-green-dark);
}

.entry-content ul,
.entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* Post Navigation - Simplified like NJTPA but with BeStreetSmartNJ colors */
.post-navigation {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Mobile-first post navigation */
.post-navigation .nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .post-navigation .nav-links {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation a {
  text-decoration: none;
  color: var(--bs-green-darker);
  transition: color 0.3s ease;
}

.post-navigation a:hover {
  color: var(--bs-green);
}

.nav-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: normal;
}

.nav-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--bs-green-darker);
  line-height: 1.3;
}

.post-navigation a:hover .nav-title {
  color: var(--bs-green);
}

/* Page Header */
.page-header {
  /* margin-bottom: 3rem; */
  /* padding: 2rem 0; */
  /* border-bottom: 2px solid #6cbe45; */
}

/* Mobile-first page title */
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bs-green-darker);
  margin-bottom: 1rem;
}

.archive-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Pagination */
.pagination {
  margin: 3rem 0;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text-muted);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
  background: var(--bs-green);
  color: white;
  border-color: var(--bs-green);
}

/* Blog Sidebar Styles */
/* Mobile-first blog sidebar */
.bestreetsmartnj-blog-sidebar {
  background: var(--njtpa-gray-lighter);
  padding: 1.5rem;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .bestreetsmartnj-blog-sidebar {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .bestreetsmartnj-blog-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
  }
}

.bestreetsmartnj-blog-sidebar .widget {
  margin-bottom: 2rem;
}

.bestreetsmartnj-blog-sidebar .widget:last-child {
  margin-bottom: 0;
}

.bestreetsmartnj-blog-sidebar .widget-title {
  color: var(--bs-green-darker);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bs-green);
}

/* Monthly Archives Widget */
.bestreetsmartnj-monthly-archives ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bestreetsmartnj-monthly-archives .archive-year {
  margin-bottom: 1rem;
}

.year-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.year-toggle:hover {
  background: var(--njtpa-gray-lighter);
}

.year-toggle.expanded {
  background: var(--bs-green);
  color: white;
  border-color: var(--bs-green);
}

.toggle-icon {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
  font-weight: bold;
}

.year-title {
  flex: 1;
  font-weight: 600;
}

.post-count {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.year-toggle.expanded .post-count {
  color: rgba(255, 255, 255, 0.8);
}

.archive-months {
  margin-top: 0.5rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.archive-months li {
  border-bottom: 1px solid var(--njtpa-gray-lighter);
}

.archive-months li:last-child {
  border-bottom: none;
}

.archive-months a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.archive-months a:hover {
  background: var(--njtpa-gray-lighter);
  color: var(--bs-green);
}

/* Search Widget */
.bestreetsmartnj-search .search-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bestreetsmartnj-search .search-field {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
}

.bestreetsmartnj-search .search-submit {
  background: var(--bs-green);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.bestreetsmartnj-search .search-submit:hover {
  background: var(--bs-green-dark);
}

/* Remove redundant media query - already handled by mobile-first approach */

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results .page-title {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.no-results .page-content {
  max-width: 500px;
  margin: 0 auto;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ====================================
   BeStreetSmart Events Styles
   ==================================== */

.events-container {
  padding: 3rem 0;
}

/* Mobile-first events layout grid */
.events-layout-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .events-layout-grid {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
  }
}

.events-controls {
  margin-bottom: 2rem;
}

.view-controls {
  display: flex;
  gap: 1rem;
}

.view-btn {
  background: var(--njtpa-gray-lighter);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.view-btn.active {
  background: var(--bs-green);
  color: white;
}

.view-btn:hover:not(.active) {
  background: var(--njtpa-gray-light);
}

.events-section {
  display: none;
}

.events-section.active {
  display: block;
}

/* Mobile-first events grid */
.events-grid {
  display: grid;
  gap: 1.5rem;
}

.events-grid .card-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.events-grid .card-content * {
  margin: 0px;
}

.events-grid .card-link {
  margin-left: auto;
}

@media (min-width: 576px) {
  .events-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* gap: 2rem; */
    gap: var(--space-sm);
  }
}

.event-card {
  background: var(--color-background);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-content {
  /* padding: 1.5rem; */
}

.event-date {
  color: var(--bs-green-darker);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.event-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
}

.event-title a {
  /* color: var(--bs-green-darker); */
  text-decoration: none;
}

.event-title a:hover {
  /* color: var(--bs-green-darker); */
}

.event-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.location-icon {
  color: var(--bs-green-darker);
}

.event-summary {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.event-link {
  color: var(--bs-green-darker);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.event-link:hover {
  color: var(--bs-green-dark);
}

.past-event {
  opacity: 0.8;
}

.no-events-message {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

/* Events Sidebar */
.events-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.sidebar-widget {
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.widget-title {
  color: var(--bs-green-darker);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--bs-green);
  padding-bottom: 0.5rem;
}

.quick-links-list {
  list-style: none;
  padding: 0;
}

.quick-links-list li {
  margin-bottom: 0.5rem;
}

.quick-links-list a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.quick-links-list a:hover {
  color: var(--bs-green-darker);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.btn-submit {
  background: var(--bs-green);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-submit:hover {
  background: var(--bs-green-dark);
}

.safety-tip {
  margin-bottom: 1.5rem;
}

.safety-tip h4 {
  color: var(--bs-green-darker);
  margin-bottom: 0.5rem;
}

.safety-tip ul {
  padding-left: 1rem;
  color: var(--color-text-muted);
}

.safety-tip li {
  margin-bottom: 0.25rem;
}

/* Single Event */
.bestreetsmart-event-single {
  padding: 3rem 0;
}

.event-header {
  /* text-align: center; */
  margin-bottom: 3rem;
}

/* Mobile-first event meta */
.event-meta-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
  .event-meta-top {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .event-meta-top {
    margin-bottom: 2rem;
  }
}

.event-date-badge,
.event-location-badge,
.event-time-badge {
  background: var(--bs-green);
  color: white;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
}

/* Homepage event cards styling */
.bestreetsmart-homepage .event-card .card-content {
  padding: var(--space-md);
  text-align: center;
}

.bestreetsmart-homepage .event-card h3 {
  margin: var(--space-md) 0;
}

.bestreetsmart-homepage .event-card .event-location {
  font-size: var(--font-size-xs);
  line-height: 1.4;
  color: var(--color-text-muted);
  margin: var(--space-sm) 0;
}

.bestreetsmart-homepage .event-card .event-date-badge {
  background: var(--bs-green-darker);
  color: var(--njtpa-white);
}

.bestreetsmart-homepage .event-card .card-link {
  display: inline-block;
  margin-top: var(--space-xs);
  color: var(--bs-green-darker);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-xs);
  line-height: 1.2;
}

.bestreetsmart-homepage .event-card .card-link:hover {
  color: var(--bs-green-dark);
  text-decoration: underline;
}

/* Report counties styling when under title */
.report-title .report-counties {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: normal;
}

/* Mobile-first event title */
.event-title {
  /* font-size: clamp(1.5rem, 4vw, 2.5rem); */
  /* color: var(--bs-green-darker); */
  margin-bottom: 1rem;
}

.event-summary-lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.event-featured-image {
  margin: 2rem 0;
  text-align: center;
}

.event-featured-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-content-wrapper {
  line-height: 1.7;
  color: var(--color-text);
}

.event-content {
  /* margin-bottom: 3rem; */
}

/* Mobile-first event actions */
.event-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid var(--njtpa-gray-lighter);
  margin: 1.5rem 0;
}

@media (min-width: 576px) {
  .event-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .event-actions {
    padding: 2rem 0;
    margin: 2rem 0;
  }
}

.btn-back {
  background: var(--njtpa-gray-lighter);
  color: var(--color-text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: var(--njtpa-gray-light);
  color: var(--color-text);
}

.related-events {
  margin-top: 3rem;
}

.related-events h2 {
  color: var(--bs-green-darker);
  margin-bottom: 2rem;
  text-align: center;
}

/* Mobile-first related events grid */
.related-events-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .related-events-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.related-event-card {
  background: var(--color-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.related-event-card:hover {
  transform: translateY(-2px);
}

.related-event-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-event-content {
  padding: 1rem;
}

.related-event-date {
  color: var(--bs-green-darker);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.related-event-title {
  font-size: 1rem;
  margin: 0;
}

.related-event-title a {
  color: var(--bs-green-darker);
  text-decoration: none;
}

.related-event-title a:hover {
  color: var(--bs-green-darker);
}


/* BeStreetSmart Footer */
.streetsmart-footer {
  background: var(--njtpa-dark-gray);
  color: white;
  padding: 40px 0 20px;
}

/* Mobile-first footer content grid */
.streetsmart-footer-content {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .streetsmart-footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

.streetsmart-footer .footer-section h4 {
  color: var(--bs-green-darker);
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

.streetsmart-footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.streetsmart-footer .footer-section ul li {
  margin-bottom: 8px;
}

.streetsmart-footer .footer-section ul li a {
  color: var(--njtpa-gray-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.streetsmart-footer .footer-section ul li a:hover {
  color: var(--bs-green-darker);
}

.streetsmart-footer-bottom {
  border-top: 1px solid var(--njtpa-dark-gray);
  padding-top: 20px;
  text-align: center;
  color: var(--njtpa-gray-medium);
  font-size: 0.9rem;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Street Smart — Change nav chevron color to SS green */
:root.streetsmart-site {
  --ss-green: #4b8235;
}

.footer-col-title::after {
  /* content: ""; */
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-right: 2px solid #4b8235;
  border-bottom: 2px solid #4b8235;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.footer-logo img {
  /* margin: auto auto; */
  /* padding-bottom: 20px; */
}

/* Utility classes for responsive design */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive text utilities */
.text-center {
  text-align: center;
}

@media (min-width: 768px) {
  .md\:text-left {
    text-align: left;
  }
  .md\:text-center {
    text-align: center;
  }
}

/* Responsive spacing utilities */
.mt-auto {
  margin-top: auto;
}

.mb-auto {
  margin-bottom: auto;
}

/* Intrinsic web design patterns */
.content-stack > * + * {
  margin-top: var(--space-md);
}

.content-stack-sm > * + * {
  margin-top: var(--space-sm);
}

.content-stack-lg > * + * {
  margin-top: var(--space-lg);
}

/* Responsive image utility */
.responsive-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Flexible media query mixins via CSS */
.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
}
