:root {
  --evt-primary: #036f29;
  --evt-primary-hover: #02521e;
  --evt-accent-upcoming: #e63946;
  --evt-accent-recent: #5a6268;
  --evt-text: #ffffff;
  --evt-radius: 12px;
  --evt-layer-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --evt-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Card Layout */
.cim-event-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #ffffff;
  border-radius: var(--evt-radius);
  overflow: hidden;
  box-shadow: var(--evt-layer-card);
  width: 100%;
  max-width: 1140px;
  margin: 2rem auto;
}

/* Media Screen Element */
.cim-event-media-pane {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f8f9fa;
}

.cim-event-thumbnail,
.cim-event-img,
.cim-event-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cim-event-placeholder {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

/* Dynamic Event Badges */
.cim-event-badge {
  position: absolute;
  top: 1.25rem;
  left: 0;
  background-color: var(--evt-accent-upcoming);
  color: var(--evt-text);
  padding: 0.6rem 1.5rem;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.cim-event-badge.is-past {
  background-color: var(--evt-accent-recent);
}

/* Core Content Window */
.cim-event-content-pane {
  background-color: var(--evt-primary);
  color: var(--evt-text);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

/* Typography Mechanics using fluid clamp values */
.cim-event-title {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.cim-event-description {
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.05rem);
  line-height: 1.6;
  opacity: 0.9;
}

.cim-event-description p {
  margin: 0;
}

/* Layout Divider Rule replacements */
.cim-event-body {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1.5rem;
}

.cim-event-datetime {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  width: 100%;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cim-event-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Button & Micro-interaction Systems */
.cim-event-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.cim-event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--evt-text);
  background: transparent;
  color: var(--evt-text);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--evt-transition);
}

.cim-event-btn.icon-only {
  width: 48px;
  padding: 0;
  flex-shrink: 0;
}

.cim-event-svg {
  width: 18px;
  height: 18px;
  transition: var(--evt-transition);
}

/* Interactive Focus and Hover states */
.cim-event-btn:hover,
.cim-event-btn:focus-visible {
  background-color: var(--evt-text);
  color: var(--evt-primary);
  outline: none;
}

.cim-event-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

/* Desktop Evolution Breakpoint */
@media (min-width: 768px) {
  .cim-event-card {
    grid-template-columns: 4.5fr 5.5fr;
    min-height: 480px;
  }
  
  .cim-event-media-pane {
    aspect-ratio: auto; /* Allow height to match content container seamlessly */
  }
}

/* Print/Optimized Rendering */
@media (prefers-reduced-motion: reduce) {
  .cim-event-btn, .cim-event-svg {
    transition: none;
  }
}