/* Container and Layout */
.santenmd-calendar-events-section {
  width: 100%;
  margin: 20px 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.santenmd-calendar-events-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

.santenmd-calendar-left-col {
  flex: 0 0 380px;
  max-width: 400px;
  width: 100%;
}

.santenmd-calendar-right-col {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

.santenmd-calendar-block-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  font-family: "Helvetica", sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* Calendar Header */
.santenmd-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.santenmd-calendar__title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.santenmd-calendar__icon {
  width: 44px;
  height: 44px;
  border: 2px solid #002d72;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #002d72;
}

.santenmd-calendar__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.santenmd-calendar__title {
  font-size: 22px;
  font-weight: 700;
  color: #002d72;
  margin: 0;
  transition: opacity 0.2s ease;
}

.santenmd-calendar__title:hover {
  opacity: 0.8;
}

/* Popup Modal Overlay */
.santenmd-calendar__popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.santenmd-calendar__popup-content {
  background: #ffffff;
  border-radius: 16px;
  width: 320px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.santenmd-calendar__popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 12px;
}

.santenmd-calendar__popup-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #002d72;
}

.santenmd-calendar__popup-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #878787;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.santenmd-calendar__popup-close:hover {
  color: #002d72;
}

/* Year selector */
.santenmd-calendar__popup-year-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f4f6fa;
  border-radius: 8px;
  padding: 8px 12px;
}

.santenmd-calendar__popup-year-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--deep-blue-color-santen);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: opacity 0.2s ease;
}

.santenmd-calendar__popup-year-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.santenmd-calendar__popup-year-btn:hover {
  opacity: 0.6;
}

.santenmd-calendar__popup-year-dropdown {
  font-size: 16px;
  font-weight: 700;
  color: #002d72;
  border: 1px solid #dcdcdc;
  background-color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  padding: 6px 32px 6px 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23002d72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.santenmd-calendar__popup-year-dropdown:hover {
  border-color: #002d72;
  box-shadow: 0 2px 8px rgba(0, 45, 114, 0.08);
}

.santenmd-calendar__popup-year-dropdown:focus {
  border-color: #002d72;
  box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.15);
}

/* Months grid */
.santenmd-calendar__popup-months-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.santenmd-calendar__popup-month-item {
  border: 1px solid #e8e8e8;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.santenmd-calendar__popup-month-item:hover {
  background-color: #f4f6fa;
  border-color: #002d72;
  color: #002d72;
}

.santenmd-calendar__popup-month-item--selected {
  background-color: #002d72 !important;
  border-color: #002d72 !important;
  color: #ffffff !important;
}

.santenmd-calendar__nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.santenmd-calendar__nav-today {
  font-size: 15px;
  font-weight: 500;
  color: #002d72;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.santenmd-calendar__nav-today:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.santenmd-calendar__nav-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--deep-blue-color-santen, #003399);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.santenmd-calendar__nav-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.santenmd-calendar__nav-btn:hover {
  opacity: 0.6;
}

.santenmd-calendar__nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* Calendar Grid */
.santenmd-calendar__divider {
  border-top: 1px solid #e0e0e0;
  margin-bottom: 16px;
}

.santenmd-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 5px;
  text-align: center;
}

.santenmd-calendar__weekday {
  font-size: 13px;
  font-weight: 700;
  color: #002d72;
  padding-bottom: 6px;
}

.santenmd-calendar__day-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 45px;
  cursor: pointer;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.santenmd-calendar__day-cell:hover:not(.santenmd-calendar__day-cell--empty) {
  background-color: #f4f6fa;
}

.santenmd-calendar__day-number {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

/* Selected Day highlighting (capsule/rounded rect) */
.santenmd-calendar__day-cell--selected .santenmd-calendar__day-number {
  background-color: #003399;
  color: #ffffff !important;
  border-radius: 50%;
  font-weight: 700;
}

/* Muted / other month days */
.santenmd-calendar__day-cell--muted .santenmd-calendar__day-number {
  color: #c0c0c0;
}

/* Dots under days */
.santenmd-calendar__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  height: 8px;
  width: 100%;
}

.santenmd-calendar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-sizing: border-box;
}

/* Unregistered dot: hollow blue */
.santenmd-calendar__dot--unregistered {
  border: 1.5px solid #00a2e8;
  background-color: transparent;
}

/* Registered dot: solid dark blue */
.santenmd-calendar__dot--registered {
  background-color: #002d72;
  border: 1.5px solid #002d72;
}

/* -------------------------------------------------------------
 * Event List Component Styles (Right Column)
 * ------------------------------------------------------------- */
.santenmd-events-list__container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Tab Bar Navigation */
.santenmd-events-list__tab-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #66b2ff;
  border-radius: 40px;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0, 51, 153, 0.05);
}

.santenmd-events-list__tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  color: #7b8ea5;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  outline: none;
}

.santenmd-events-list__tab-btn:hover:not(.santenmd-events-list__tab-btn--active) {
  color: #003399;
  background: rgba(0, 51, 153, 0.04);
}

.santenmd-events-list__tab-btn--active {
  background: var(--deep-blue-color-santen);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 51, 153, 0.25);
}

/* Event List Container */
.santenmd-events-list__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.santenmd-events-list__empty {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: #667085;
  font-size: 15px;
  font-weight: 500;
  border: 1px dashed #d0d5dd;
}

/* Event Card UI */
.santenmd-event-card {
  display: flex;
  align-items: center;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #cdeeff 0%, #e2f5ff 50%, #bce9ff 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 16px rgba(0, 51, 153, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.santenmd-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 153, 0.12);
}
.registered{
  color: #fff;
}
.not-register{
  color: var(--deep-blue-color-santen);
}
/* Card Left Column: Date & Time */
.santenmd-event-card__date-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100px;
  padding-left: 8px;
}

.santenmd-event-card__day-name {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  text-transform: capitalize;
}

.santenmd-event-card__day-month {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 2px 0;
}

.santenmd-event-card__time {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

/* Card Middle Main Container (White Card Box) */
.santenmd-event-card__main-box {
  flex: 1 1 0%;
  background: #ffffff;
  border-radius: 5px;
  padding: 40px 20px;
  margin: 0 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.santenmd-event-card__category {
  font-size: 12px;
  color: #0099e6;
  margin-bottom: 6px;
  text-transform: none;
}

.santenmd-event-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #002d72;
}

.santenmd-event-card__title a {
  color: #002d72;
  text-decoration: none;
  transition: color 0.2s ease;
}

.santenmd-event-card__title a:hover {
  color: #0099e6;
}

.santenmd-event-card__day-number {
  font-size: 32px;
  font-weight: 700;
  margin-top: -10px;
}

.santenmd-event-card__month {
  margin-top: -6px;
  font-size: 18px;
  font-weight: 400;
}

/* Card Right Column: Action Button */
.santenmd-event-card__action-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 4px;
}

.santenmd-event-card__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 128px;
  padding: 10px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.santenmd-event-card-view__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 128px;
  padding: 10px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.santenmd-event-card__btn .arrow {
  font-size: 18px;
  line-height: 1;
}

.santenmd-event-card__btn--join {
  background: #00c3ff;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 195, 255, 0.4);
}

.santenmd-event-card__btn--join:hover {
  background: #00b0e6;
  box-shadow: 0 6px 18px rgba(0, 195, 255, 0.5);
  transform: translateY(-1px);
}

.santenmd-event-card__btn--view {
  background: #fff;
  color: #ED8A00;
  box-shadow: 0 4px 14px rgba(0, 195, 255, 0.4);
}

.santenmd-event-card__btn--view:hover {
  background: #E66E00;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 195, 255, 0.5);
  transform: translateY(-1px);
}

.santenmd-event-card__btn--registered {
  background: #00a651;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 166, 81, 0.35);
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 3px !important;
}

.santenmd-event-card__btn--recap {
  background: #003399;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 51, 153, 0.3);
}

.santenmd-event-card__btn--recap:hover {
  background: #002266;
  transform: translateY(-1px);
}

.event-status-sp {
  display: none;
}

.santenmd-event-card__content {
  width: 100%;
}

.webinar-recently-viewed .santenmd-event-card {
  width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .event-status-sp {
    display: block;
    text-align: right;
  }

  .santenmd-calendar-events-container {
    flex-direction: column;
  }

  .santenmd-calendar-left-col {
    max-width: 100%;
  }

  .santenmd-event-card {
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .santenmd-event-card__date-box {
    padding-left: 0;
    margin-bottom: 4px;
    width: 90px;
  }

  .santenmd-event-card__main-box {
    margin: 0;
    padding: 16px 10px;
  }

  .santenmd-event-card__action-box {
    padding-right: 0;
    margin-top: 8px;
  }
  .santenmd-event-card__title{
    font-size: 16px;
  }
  .santenmd-event-card__btn {
    width: 40%;
    height: auto;
    flex-direction: row;
    gap: 8px;
    padding: 2px;
    font-size: 9px;
    border-radius: 12px;
  }

  .santenmd-event-card__btn .arrow {
    margin-top: 0;
  }

  .santenmd-event-card-view__btn {
    width: 72%;
    height: auto;
    flex-direction: row;
    gap: 8px;
    padding: 2px;
    font-size: 9px;
    border-radius: 12px;
  }

  .santenmd-event-card-view__btn .arrow {
    margin-top: 0;
  }

  .santenmd-event-card__action-box.event-status {
    display: none;
  }

  .santenmd-event-card__content {
    width: 100%;
    gap: 5px;
    display: flex;
    flex-direction: column;
  }
}
.online-event{
  color: var(--deep-blue-color-santen);
}

.santenmd-event-card__content.teaser {
  width: 100%;
  gap: 5px;
  display: flex;
  flex-direction: column;
}

.teaser .event-status {
  display: block;
  text-align: right;
}

.teaser .event-status .santenmd-event-card__btn {
  width: 42%;
  height: auto;
  flex-direction: row;
  gap: 5px;
  padding: 0;
  font-size: 9px;
  border-radius: 12px;
}

.teaser .santenmd-event-card__content {
  width: 100%;
  gap: 5px;
  display: flex;
  flex-direction: column;
}

.teaser .santenmd-event-card__main-box {
  margin: 0
}

.teaser .event-status .santenmd-event-card__btn .arrow {
  margin-bottom: 3px;
}

.upcoming-event-wrapper {
  display: flex;
  background-color: #F0F9FF;
  padding: 16px;
}

.upcoming-event-wrapper h2 {
  color: #003399;
  font-size: 24px;
  font-weight: 700;
}

.upcoming-event-wrapper .view-all-link {
  color: var(--blue-color-santen);
}
