.cc-events-module {
  padding: 4rem 1.5rem 5rem;
  background: #fff;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cc-events-module * {
  box-sizing: border-box;
}
.cc-events-container {
  max-width: 1120px;
  margin: 0 auto;
}

:root {
  --cc-events-primary: #111827;
  --cc-events-muted: #6b7280;
  --cc-events-border: #e5e7eb;
  --cc-events-bg-card: #ffffff;
  --cc-events-radius-lg: 1.25rem;
  --cc-events-radius-md: 0.75rem;
  --cc-events-radius-pill: 999px;
  --cc-events-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.14);
  --cc-events-shadow-subtle: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.cc-events-header {
  margin-bottom: 2.5rem;
}
.cc-events-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5rem;
}
.cc-events-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}
.cc-events-intro {
  max-width: 38rem;
  /* font-size: 0.98rem; */
  color: var(--cc-events-muted);
  margin: 0;
  line-height: 1.7;
}
/* featured event card */
.cc-events-featured {
  margin-bottom: 3rem;
}
.cc-event-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 0;
  background: var(--cc-events-bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--cc-events-border);
  box-shadow: var(--cc-events-shadow-soft);
}
.cc-event-featured-media {
  position: relative;
  max-height: 353px;
  background: radial-gradient(circle at 20% 20%, #dbeafe 0, #eff6ff 40%, #e5e7eb 100%);
}
.cc-event-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc-event-featured-placeholder {
  position: absolute;
  inset: 18%;
  border-radius: 16px;
  border: 2px dashed rgba(148, 163, 184, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.cc-event-pill {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  background: var(--blue);
  color: #f9fafb;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.cc-event-featured-body {
  padding: 1.9rem 2.1rem 2.1rem;
  display: flex;
  flex-direction: column;
  background: #F6F8F9;
}
.cc-event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--cc-events-muted);
  margin-bottom: 0;
}
.cc-event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.cc-event-meta-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0.8;
}
.cc-event-featured-title {
  margin: 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 33px;
}
.cc-event-speaker-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cc-events-muted);
  margin-top: 0.4rem;
}
.cc-event-speaker {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.cc-event-featured-description {
  font-size: 0.9rem;
  color: var(--cc-events-muted);
  line-height: 1.7;
  max-width: 32rem;
}
.cc-event-featured-footer {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
}
.cc-event-capacity {
  font-size: 0.78rem;
  color: var(--cc-events-muted);
}
.cc-event-capacity strong {
  color: var(--cc-events-primary);
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
  white-space: nowrap;
}
.cc-btn-primary {
  background: var(--blue);
  color: #f9fafb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}
.cc-btn-primary:hover,
.cc-btn-primary:focus-visible {
  background: #1d4ed8;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}
.cc-btn-outline {
  background: transparent;
  border-color: var(--cc-events-border);
  color: var(--cc-events-primary);
}
.cc-btn-outline:hover,
.cc-btn-outline:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}

.cc-chip-soldout {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
}

/* upcoming list */
.cc-upcoming-list {
  margin-bottom: 3.5rem;
}
.cc-upcoming-list-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cc-events-muted);
  margin-bottom: 0.9rem;
}
.cc-upcoming-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  background: #F6F8F9;
  border-radius: 16px;
  border: 1px solid var(--cc-events-border);
  box-shadow: var(--cc-events-shadow-subtle);
  margin-bottom: 1.5rem;
}
.cc-upcoming-date {
  text-align: center;
  padding-right: 0.75rem;
  border-right: 1px solid #e5e7eb;
  min-width: 72px;
}
.cc-upcoming-date-weekday {
  font-size: 0.78rem;
  color: var(--cc-events-muted);
  margin-bottom: 0.15rem;
}
.cc-upcoming-date-day {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}
.cc-upcoming-date-month {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cc-events-muted);
  margin-top: 0.1rem;
}
.cc-upcoming-body {
  min-width: 0;
}
.cc-upcoming-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.cc-upcoming-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  line-height: 29px;
}
.cc-upcoming-meta {
  font-size: 0.78rem;
  color: var(--cc-events-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.25rem;
}
.cc-upcoming-description {
  font-size: 0.82rem;
  color: var(--cc-events-muted);
  margin: 0;
  max-width: 90%;
}
.cc-upcoming-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.cc-upcoming-cta-note {
  font-size: 0.72rem;
  color: var(--cc-events-muted);
}

/* past events grid */
.cc-past-section {
  padding-top: 0.5rem;
}
.cc-past-header {
  margin-bottom: 1.5rem;
}
.cc-past-title {
  font-weight: 600;
  margin: 0;
}
.cc-past-intro {
  font-size: 0.9rem;
  color: var(--cc-events-muted);
  margin: 0;
}
.cc-past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}
.cc-past-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cc-events-border);
  box-shadow: var(--cc-events-shadow-subtle);
  min-height: 100%;
}
.cc-past-media {
  position: relative;
  background: radial-gradient(circle at 30% 20%, #e0f2fe 0, #eff6ff 40%, #e5e7eb 100%);
  min-height: 240px;
  max-height: 240px;
}
.cc-past-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc-past-pill {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  border-radius: 8px;
  background: var(--blue);
  color: #f9fafb;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.cc-past-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.cc-past-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--cc-events-muted);
  align-items: center;
}
.cc-past-title-text {
  font-weight: 600;
  margin-top: 0.4rem;
}
.cc-past-description {
  font-size: 0.82rem;
  color: var(--cc-events-muted);
  margin: 0.2rem 0 0.6rem;
  flex: 1;
}
.cc-past-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.cc-past-link {
  font-size: 0.78rem;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 500;
}
.cc-past-link span {
  transform: translateY(1px);
}
.cc-past-link:hover {
  text-decoration: underline;
}

/* empty states */
.cc-events-empty {
  padding: 3rem 0 0;
  font-size: 0.95rem;
  color: var(--cc-events-muted);
}

/* responsiveness */
@media (max-width: 900px) {
  .cc-event-featured-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .cc-event-featured-body {
    padding: 1.5rem 1.4rem 1.7rem;
  }
}
@media (max-width: 768px) {
  .cc-events-module {
    padding: 3rem 1.25rem 3.5rem;
  }
  .cc-upcoming-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }
  .cc-upcoming-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 0.75rem;
    margin-bottom: 0.5rem;
  }
  .cc-upcoming-cta {
    align-items: flex-start;
    width: 100%;
  }
  .cc-upcoming-description {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .cc-event-featured-body {
    padding: 1.3rem 1.1rem 1.5rem;
  }
  .cc-events-header {
    margin-bottom: 2rem;
  }
}

.cc-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.cc-past-link {
  cursor: pointer;
}
.cc-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.cc-modal-content {
  position: relative;
  width: 80%;
  height: 80%;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.cc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ff4747;
  color: white;
  border: none;
  padding: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.cc-modal-close:hover {
  background: #e03e3e;
}

.cc-modal-video {
  width: 100%;
  height: 100%;
}

.card-link {
  font-weight: bold;
  transition: all 350ms ease;
}
.card-link:hover {
  font-weight: bold;
  color: var(--blue);
  transition: all 350ms ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}










{# HERO #}


/* Hero Section Styling */
.hero {
  position: relative;
  height: auto;
  background: url('path-to-image.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 160px 24px 70px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  color: white;
  width: 100%;
}

.hero-content h1 {
  padding-right: 40%;
}
.hero-title {
  font-size: 3rem; /* Optimized heading size for a balanced look */
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #fff;
  animation: fadeInUp 0.8s ease;;
}

.hero-description {
  font-size: 1.375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 600px;
  animation: fadeInUp 1.2s ease;;
}

.hero-btn {
  background-color: #497cad;
  padding: 1.25rem 2.75rem;
  border-radius: 50px;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  animation: fadeInUp 1.8s ease;;
}

.hero-btn:hover {
  background-color: #3b678b;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem; /* Slightly smaller for mobile */
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .hero-btn {
    font-size: 1.125rem;
  }
}

/* Subscribe Section Styling */
.subscribe-section {
  background-color: #fff;
  padding: 60px 24px 80px;
  text-align: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  margin-bottom: 40px;
  overflow: hidden;
}

.subscribe-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.subscribe-form {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-input {
  padding: 8px 16px !important;
  font-size: 1.125rem;
  width: 300px;
  border-radius: 8px;
  border: 2px solid #ddd;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 380px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: medium none;
  right: -4px;
  position: relative;
  top: 0px;
  height: 50px;
}


.subscribe-form button.btn.btn-primary {
  border-width: 2px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 48.7px;
  top: 1.5px;
}

.subscribe-input:focus {
  border-color: #497cad;
  box-shadow: 0 2px 6px rgba(73, 124, 173, 0.4);
}

.subscribe-btn {
  background-color: #497cad;
  color: white;
  padding: 1.25rem 2.75rem;
  border-radius: 25px;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.subscribe-btn:hover {
  background-color: #3b678b;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
#kommende {
  position: relative;
  top: -40px;
}

@media (max-width: 767px) {
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

.subscribe-input {
  padding: 8px 16px !important;
  font-size: 1.125rem;
  width: 300px;
  border-radius: 8px;
  border: 2px solid #ddd;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 100%;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-right: 2px solid #ddd;
  right: 0;
  position: relative;
  top: 0px;
  height: 50px;
}
  .subscribe-form button.btn.btn-primary {
  border-width: 2px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
  
  .cc-past-media {
    min-height: 160px;
  }
  .cc-past-media img {
    max-height: 160px;
  }
  .cc-upcoming-item {
  gap: 0.8rem;
}
  
}
.subscribe-section .container {
  position: relative;
}

{# Blob animations #}
.subscribe-section {
  position: relative;
}
.subscribe-section svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.out-top {
  animation: rotate 20s linear infinite;
  transform-origin: 13px 25px;
}
.in-top {
  animation: rotate 10s linear infinite;
  transform-origin: 13px 25px;
}
.out-bottom {
  animation: rotate 25s linear infinite;
  transform-origin: 84px 93px;
}
.in-bottom {
  animation: rotate 15s linear infinite;
  transform-origin: 84px 93px;
}

path.in-bottom {
  fill: #fff;
}
path.out-bottom {
  fill: #ecf1f6;
}
path.in-top {
  fill: #fff;
}
path.out-top {
  fill: #ecf1f6;
}

.featured-events__card-date {
  display: flex;
  gap: 8px;
}
.featured-events__card-date img {
  margin-bottom: -6px;
  margin-right: 8px;
}
.featured-events__card-date div {
  font-size: 14px;
  line-height: 22px;
}
.featured-events__card-date div img {
  width: 20px;
  height: 20px;
}
.featured-events__card-date div:last-child img {
  width: 23px;
  height: 21px;
  margin-right: 2px;
}
.featured-events__card-led {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 1rem;
}
.featured-events__card-led img {
  height: 40px;
  width: 40px;
}