:root {
	--color-primary: #cc0000;        /* NC State Red */
	--color-primary-dark: #b30000;   /* Darker red for hover */
	
	--color-text-primary: #1a1a1a;   /* Main text (AAA contrast) */
	--color-text-secondary: #424242; /* Secondary text (AAA contrast) */
	--color-text-tertiary: #555555;  /* Tertiary text (AAA contrast) */
	--color-text-muted: #666666;     /* Muted text */
	
	--color-bg-light: #ffffff;       /* Light background */
	--color-bg-lighter: #f9f9f9;     /* Slightly darker light */
	--color-bg-form: #f0f0f0;        /* Form element background */
	--color-bg-overlay: #f8f8f8;     /* Overlay background */
	
	--color-border: #e0e0e0;         /* Border color */
	--color-border-dark: #cccccc;    /* Darker border */
	--color-border-gray: #a1a1a1;    /* Gray border */
	
	--color-indicator-active: #6f7d1c;    /* Active indicator (green) */
	--color-indicator-waitlist: #4156a1;  /* Waitlist indicator (blue) */
	
	/* Dark Mode Colors */
	--color-dark-bg-primary: #222222;
	--color-dark-bg-secondary: #1a1a1a;
	--color-dark-text-primary: #f0f0f0;
	--color-dark-text-secondary: #d0d0d0;
	--color-dark-border: #444444;
}

.course-id {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

@media (max-width: 480px) {
	.course-id {
		font-size: 0.875rem; /* Keep at least 14px minimum */
	}

	.course-title {
		font-size: 1rem; /* 16px minimum for readability */
		line-height: 1.5;
	}

	.rb-content {
		padding: 1rem;
	}

	.course-listing {
		padding: 0.75rem;
	}
}

/* Course Date Section */
.course-date {
	flex-shrink: 0;
	margin-right: 1.5rem;
	min-width: 80px;
}

.entryDate {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.keyword-list-hero-date {
	text-align: center;
	border: 2px solid var(--color-primary);
	border-radius: 2px;
	padding: 0.5rem 0.75rem;
	background-color: var(--color-bg-light);
	min-width: 100%;
}

.heroMonth,
.heroDay,
.heroYear {
	display: block;
	line-height: 1;
	font-weight: 600;
	color: var(--color-text-primary);
}

.heroMonth {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.heroDay {
	font-size: 1.75rem;
	margin: 0.25rem 0;
}

.heroYear {
	font-size: 0.75rem;
	color: var(--color-text-secondary);
}

.course-listing {
  display: grid;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas: "course-date course-detail";
  align-items: start;
  justify-items: start;
  align-content: center;
  justify-content: start;
}

.course-date {
  grid-area: course-date;
  position: relative;
}

.course-detail {
  grid-area: course-detail;
}

.course-detail h4 {
  padding: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  text-transform: capitalize;
}

.course-links-by-keyword ul li a {
  box-shadow: none;
  padding: 1%;
  text-decoration: none;
}

.course-links-by-keyword ul {
  margin: 0 auto !important;
}

.course-links-by-keyword {
  list-style-type: none;
  cursor: pointer;
}

.entryDate {
  line-height: 1;
  padding: 0 !important;
  width: 80px;
}

.entryDate span {
  display: block;
  text-align: center;
}

.postMonth {
  text-transform: capitalize;
  font-size: 0.9em;
  padding: 0.4em;
	background-color: var(--color-primary);
	font-weight: 400;
	color: var(--color-bg-light);
  padding-top: 0.1em;
}

.postYear {
	color: var(--color-text-muted);
  padding-top: 0.3em;
  padding-bottom: 0.3em;
}

/* Make the badge float in the top right corner of the button */
.indicator-badge {
  /* make a silver gradient */
	background: linear-gradient(to bottom, var(--color-bg-overlay), var(--color-border-dark));
	border: var(--color-border-gray) solid 1px;
	border-radius: 100px;
	text-align: center;
	padding: 5px 5px 5px 5px;
  display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--color-primary);
	color: var(--color-bg-light);
	font-size: 0.75rem;
	font-weight: 700;
}

.fa-forward, .fa-eye {
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
  cursor: pointer;
	padding: 0;
}

.fa-forward {
	color: var(--color-indicator-active);
	font-style: normal;
	font-size: 14px;
}

.fa-eye {
	color: var(--color-indicator-waitlist);
  min-height: 1em;
  vertical-align: middle;
  cursor: wait;
  background-color: transparent !important;
}

.hero-container {
  display: grid;
  gap: 0px 0px;
  grid-template-areas:
    "Date Title"
    "Badge Badge";
  grid-template-columns: 100px 1fr;
}

.hero-date span {
  display: block;
  text-align: center;
}

.heroMonth {
  font-family: NCSTSerif, Georgia, serif;
  text-transform: uppercase;
  font-size: 1.2em;
  padding: 2px 0 0 0;
  font-weight: 700;
}

.heroDay {
  font-size: 3em;
  font-weight: 700;
  padding: 2px 0 2px;
}

.heroYear {
  font-size: 0.7em;
  font-weight: 400;
  padding: 0 0 2px 0;
}

.hero {
  width: 356px;
}

@media (max-width: 1540px) {
  .tiles-container {
    justify-content: center;
  }
  .hero {
    width: 460px;
  }
}

.hero-indicator-badge {
  background-color: var(--color-bg-light);
  margin: 0 0 0 auto;
  overflow: hidden;
}

.hero-indicator-badge i {
  font-size: 28px;
  padding: 10px 14px 6px 0;
}

.hero-course-listing {
  text-decoration: none !important;
}

.hero-date {
  color: var(--color-bg-light);
  border: 1px solid var(--color-primary);
  line-height: 1;
  width: 80px;
  margin: 10px;
}

/**
 * Shared Card Patterns (Reusable across REPORTER plugin blocks only)
 * WCAG 2.1 Level AA compliant
 * Scoped to prevent conflicts with other site styles
 */

/* Only apply to reporter plugin content cards */
.ncst-course--listing-layer .wp-block-ncst-featured-content .ncst-content-card,
.ncst-course--listing-layer .wp-block-ncst-content-card.ncst-content-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-primary);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Ensure link states keep high-contrast text color */
.ncst-course--listing-layer .wp-block-ncst-featured-content .ncst-content-card:link,
.ncst-course--listing-layer .wp-block-ncst-featured-content .ncst-content-card:visited,
.ncst-course--listing-layer .wp-block-ncst-content-card.ncst-content-card:link,
.ncst-course--listing-layer .wp-block-ncst-content-card.ncst-content-card:visited {
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
}

.ncst-course--listing-layer .wp-block-ncst-featured-content .ncst-content-card:hover,
.ncst-course--listing-layer .wp-block-ncst-featured-content .ncst-content-card:focus,
.ncst-course--listing-layer .wp-block-ncst-content-card.ncst-content-card:hover,
.ncst-course--listing-layer .wp-block-ncst-content-card.ncst-content-card:focus {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.ncst-course--listing-layer .wp-block-ncst-featured-content .ncst-content-card:focus-visible,
.ncst-course--listing-layer .wp-block-ncst-content-card.ncst-content-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Scope content-card__ classes to reporter plugin blocks */
.ncst-course--listing-layer .wp-block-ncst-featured-content .content-card__text-container,
.ncst-course--listing-layer .wp-block-ncst-content-card .content-card__text-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ncst-course--listing-layer .wp-block-ncst-featured-content .content-card__meta,
.ncst-course--listing-layer .wp-block-ncst-content-card .content-card__meta {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.ncst-course--listing-layer .wp-block-ncst-featured-content .content-card__headline,
.ncst-course--listing-layer .wp-block-ncst-content-card .content-card__headline {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.ncst-course--listing-layer .wp-block-ncst-featured-content .content-card__teaser,
.ncst-course--listing-layer .wp-block-ncst-content-card .content-card__teaser {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.ncst-course--listing-layer .wp-block-ncst-featured-content .content-card__cta,
.ncst-course--listing-layer .wp-block-ncst-content-card .content-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 700;
  color: var(--color-primary);
}

.ncst-course--listing-layer .wp-block-ncst-featured-content .content-card__cta .arrow-indicator svg,
.ncst-course--listing-layer .wp-block-ncst-content-card .content-card__cta .arrow-indicator svg {
  width: 20px;
  height: 20px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .ncst-course--listing-layer .wp-block-ncst-featured-content .ncst-content-card,
  .ncst-course--listing-layer .wp-block-ncst-content-card.ncst-content-card {
    transition: none;
  }
}