@font-face {
    font-family: 'lexend';
    src: url('/fonts/Lexend-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 200 300 400 500 600 700 800 900;
    font-style: regular;
    font-display: swap;
}

@font-face {
    font-family: 'DM_Serif_Text';
    src: url('/fonts/DMSerifText-Regular.ttf') format('truetype');
    font-weight: 100 200 300 400 500 600 700 800 900;
    font-style: regular;
    font-display: swap;
}
*, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
}

[hidden] {
    display: none !important;
}

/* === Define CSS variables if not done elsewhere === */
:root {
    --color-neutral-300: #d4d4d4; 
}

:where(
  button,
  input,
  textarea,
  select,
  a,
  img,
  picture,
  article,
  section,
  aside,
  nav,
  header,
  footer,
  main,
  div,
  figure,
  figcaption,
  iframe
) {
  border-radius: 5px;
}

/* === Basic Typography === */
body {
    font-family: 'lexend', sans-serif;
    padding: 0;
    margin: 0;
}

.font-DM {
    font-family: 'DM_Serif_Text';
}

#mobile-menu {
  -webkit-overflow-scrolling: touch;
}

.notch {
  clip-path: polygon(
    0 0,
    calc(100% - 15px) 0,
    100% 15px,
    100% 100%,
    15px 100%,
    0 calc(100% - 15px)
  );
}

.notch-border {
  clip-path: polygon(
    0 0,
    calc(100% - 15px) 0,
    100% 15px,
    100% 100%,
    15px 100%,
    0 calc(100% - 15px)
  );
  background-color: var(--notch-border-color, #d4d4d4);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  position: relative;
}

.notch-border:hover {
  background-color: #2563eb;
      color: white;
}

.notch-border::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: white;
  clip-path: inherit;
  z-index: -1;
}

.notch-border:hover::after {
  opacity: 0;
}

.blog-detail {
  width: min(100% - 48px, 960px);
  margin: 72px auto;
}

.blog-detail__image {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
  margin-bottom: 32px;
}

.blog-detail__meta {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.blog-detail__content {
  color: #475569;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
}

.blog-detail__content p {
  margin: 0 0 24px;
}

.event-detail {
  max-width: 108rem;
  margin: 80px auto 0;
  padding: 40px 20px;
}

.event-detail__layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.event-detail__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-detail__headline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-detail__title {
  margin: 0;
  color: #334155;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
}

.event-detail__time,
.event-detail__date-row,
.event-detail__location,
.event-detail__participants {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-detail__time p,
.event-detail__date-row p,
.event-detail__location p,
.event-detail__participants p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.event-detail__date-row {
  flex-wrap: wrap;
}

.event-detail__date-badge {
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f4f4f5;
}

.event-detail__visual {
  width: 100%;
}

.event-detail__visual img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.event-detail__visual--mobile img {
  max-height: 26rem;
}

.event-detail__visual--desktop {
  display: none;
}

.event-detail__about {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-detail__about h3,
.event-detail__about p {
  margin: 0;
}

.event-detail__about h3 {
  color: #334155;
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  font-weight: 400;
}

.event-detail__about p {
  max-width: 41rem;
  color: #6b7280;
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  line-height: 1.9;
  text-align: justify;
}

.event-detail__cta {
  width: 13rem;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.event-detail__avatars {
  position: relative;
  width: 7rem;
  height: 2.75rem;
}

.event-detail__avatars img {
  position: absolute;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
}

.event-detail__avatars img:nth-child(1) { left: 0; z-index: 4; }
.event-detail__avatars img:nth-child(2) { left: 1.5rem; z-index: 3; }
.event-detail__avatars img:nth-child(3) { left: 3rem; z-index: 2; }
.event-detail__avatars img:nth-child(4) { left: 4.5rem; z-index: 1; }

.event-detail__time--desktop {
  display: none;
}

/* === Form and Loader Styles === */
.loader {
    border: 4px solid rgba(37, 99, 235, 0.1);
    border-top-color: #2563eb; 
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin89345 1s linear infinite;
}

@keyframes spin89345 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide native calendar icon on WebKit browsers */
input::-webkit-calendar-picker-indicator {
  display: none !important;
  -webkit-appearance: none;
}

/* Chrome / Edge */
input[type="date"]::-webkit-calendar-picker-indicator {
  display: none !important;
  -webkit-appearance: none;
}

/* Firefox */
input[type="date"]::-moz-focus-inner {
  display: none !important;
  border: 0;
}

.flatpickr-calendar {
  z-index: 9999 !important;
}

.hidden {
  display: none;
}

@media (min-width: 1024px) {
  .event-detail {
    padding: 40px;
  }

  .event-detail__layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }

  .event-detail__content {
    width: 50%;
  }

  .event-detail__visual--desktop {
    width: 50%;
    display: block;
  }

  .event-detail__visual--desktop img {
    height: 35rem;
  }

  .event-detail__visual--mobile,
  .event-detail__time--mobile {
    display: none;
  }

  .event-detail__headline {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }

  .event-detail__title {
    padding-right: 24px;
  }

  .event-detail__time--desktop {
    display: inline-flex;
  }
}
