/* STO Events Calendar Styles - Matching the Design */

.sto-events-wrapper {
  background-color: #E1ECF7;
  padding: 96px 24px 105px 24px;
  @media (max-width: 991px) {
    padding: 48px 24px;
  }
}

/* Header Section */
.sto-events-header {
  text-align: center;
  margin-bottom: 64px;
  @media (max-width: 991px) {
    text-align: left;
    margin-bottom: 1.5rem;
  }
}

.sto-connect-btn {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  color: #111111;
  background: transparent;
  padding: 14px 16px;
  border: 1px solid #00000033;
  margin-bottom: 16px;
  border-radius: 1000px;
  display: inline-block;
  @media (max-width: 991px) {
    margin-bottom: .5rem;
  }
}


.sto-events-title {
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  text-align: center;
  color: #111111;
  margin: 0 0 8px 0;
  @media (max-width: 991px) {
    text-align: left;
  }
}

.sto-events-description {
  color: #535862;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.8em;
  text-align: center;
  padding: 0 24px;
  @media (max-width: 991px) {
    text-align: left;
    padding: 0;
    max-width: 100%;
  }
}

/* Main Container */
.sto-events-container {
  display: flex;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Calendar Section */
.sto-calendar-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  @media (max-width: 991px) {
    width: 100%;
  }
}

.sto-calendar-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 32px 48px 32px;
  box-shadow: 0px 16px 32px 0px #0000000A;
  @media (max-width: 991px) {
    padding: 24px 24px 32px 24px;
  }
}

.sto-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  @media (max-width: 991px) {
    margin-bottom: 8px;
  }
}

.sto-calendar-month-year {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #131212;
  @media (max-width: 991px) {
    font-size: 16px;
    line-height: 22px;
  }
}

.sto-calendar-nav {
  display: flex;
  gap: 8px;
}

.sto-calendar-nav-btn {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.99837 0.71811C4.62463 0.32692 3.99996 0.32692 3.62622 0.71811C3.27584 1.08485 3.27584 1.6623 3.62622 2.02904L8.37541 7L3.62622 11.971C3.27584 12.3377 3.27584 12.9152 3.62622 13.2819C3.99996 13.6731 4.62463 13.6731 4.99837 13.2819L11 7L4.99837 0.71811Z" fill="%23046B99"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  border: none; /* Optional */
  font-size: 0; /* Hide the > text */
  width: 46px;   /* Button size; adjust as needed */
  height: 46px;
  cursor: pointer;
  background-color: transparent;
  @media (max-width: 991px) {
    width: 30px;
    height: 30px;
  }
}

.sto-calendar-nav-btn.sto-calendar-prev {
  transform: rotate(180deg);
}

.sto-calendar-nav-btn:hover {
  opacity: 0.5;
}

.sto-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 0;
}

.sto-weekday {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
  color: #131212;
  padding: 16px 0;
  @media (max-width: 991px) {
    padding: 12px 0;
    font-size: 12px;
  }
}

.sto-calendar-days {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 320px; /* Ensure consistent height */
  @media (max-width: 991px) {
    min-height: 200px;
  }
}

.sto-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.sto-calendar-day {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #E3E3E3;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, outline 0.2s ease;
  @media (max-width: 991px) {
    min-height: 42px;
  }
}
.sto-calendar-day:focus,
.sto-calendar-day:focus-visible {
  outline: 2px solid #0071BC;
  outline-offset: -2px;
}

.sto-calendar-day-empty {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: default;
  @media (max-width: 991px) {
    min-height: 42px;
  }
}

.sto-calendar-day:hover:not(:focus) {
  outline: 2px solid #E3E3E3;
  outline-offset: -2px;
}

.sto-calendar-day-number {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  color: #131212;
  @media (max-width: 991px) {
    font-size: 12px;
  }
}

.sto-calendar-day-has-events {
  position: relative;
  border-bottom: 5px solid #046B99;
}

.sto-calendar-day-has-events::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #046B99;
  border-radius: 50%;
  @media (max-width: 991px) {
    width: 3px;
    height: 3px;
  }
}

.sto-calendar-day-selected {
  border: 2px solid #B1B3B3;
}

.sto-calendar-day-selected:focus,
.sto-calendar-day-selected:focus-visible,
.sto-calendar-day-current:focus,
.sto-calendar-day-current:focus-visible {
  outline: 2px solid #0071BC;
  outline-offset: -2px;
}

.sto-calendar-day-current{
  background-color: #B1D8FC33;
}
.sto-calendar-day-other-month {
  color: #ccc;
  background: #fafafa;
}

.sto-calendar-day-other-month:hover {
  background: #f0f0f0;
}

/* Events Section */
.sto-events-section {
  flex: 1;
  @media (max-width: 991px) {
    width: 100%;
  }
}

.sto-events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: calc(3 * 11rem + 2 * 1.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #046B99 #e8e8e8;
  @media (max-width: 991px) {
    gap: 1rem;
    max-height: calc(3 * 11rem + 2 * 1rem);
  }
}

.sto-events-list > * {
  flex-shrink: 0;
}

.sto-events-list::-webkit-scrollbar {
  width: 8px;
}

.sto-events-list::-webkit-scrollbar-track {
  background: #e8e8e8;
  border-radius: 4px;
}

.sto-events-list::-webkit-scrollbar-thumb {
  background: #046B99;
  border-radius: 4px;
}

.sto-event-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  @media (max-width: 991px) {
    flex-direction: column;
  }
}

.sto-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sto-event-date {
  text-align: center;
  min-width: 100px;
  background: #F7F8FA;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0.5rem;
  align-self: stretch;
  padding: 24px;
  @media (max-width: 991px) {
    min-width: 80px;
    box-sizing: content-box;
  }
}

.sto-event-month {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  color: #131212;
  text-transform: uppercase;
}

.sto-event-day {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #131212;
  @media (max-width: 991px) {
    font-size: 40px;
    line-height: 1;
  }
}

.sto-event-content {
  flex: 1;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  @media (max-width: 991px) {
    width: 100%;
  }
}

.sto-event-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0;
  color: #111111;
  margin: 0;
  @media (max-width: 991px) {
    font-size: 18px;
    line-height: 1.5;
  }
}

.sto-event-time {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #535862;
  margin: 0;
  display: flex;
  align-items: center;
  padding-left: 30px;
  position: relative;
  @media (max-width: 991px) {
    font-size: 14px;
  }
}

.sto-event-time::before {
  content: '';
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgdmlld0JveD0iMCAwIDIyIDIyIiBmaWxsPSJub25lIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfNTUwOV8yNDcyNSkiPjxwYXRoIGQ9Ik0xMSA1LjUwMDE2VjExLjAwMDJMMTQuNjY2NyAxMi44MzM1TTIwLjE2NjcgMTEuMDAwMkMyMC4xNjY3IDE2LjA2MjggMTYuMDYyNyAyMC4xNjY4IDExIDIwLjE2NjhDNS45Mzc0MyAyMC4xNjY4IDEuODMzNyAxNi4wNjI4IDEuODMzNyAxMS4wMDAyQzEuODMzNyA1LjkzNzU1IDUuOTM3NDMgMS44MzM1IDExIDEuODMzNUMxNi4wNjI3IDEuODMzNSAyMC4xNjY3IDUuOTM3NTUgMjAuMTY2NyAxMS4wMDAyWiIgc3Ryb2tlPSIjNTM1ODYyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwXzU1MDlfMjQ3MjUiPjxyZWN0IHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgZmlsbD0id2hpdGUiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.sto-event-location {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #535862;
  margin: 0;
  display: flex;
  align-items: center;
  padding-left: 30px;
  position: relative;
}

.sto-event-location::before {
  content: '';
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPS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luPSJyb3VuZCIvPjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.sto-event-location-link {
  color: #4A90E2;
  text-decoration: none;
}

.sto-event-location-link:hover {
  text-decoration: underline;
}

/* Footer Section */
.sto-events-footer {
  margin-top: 24px;
  @media (max-width: 768px) {
    display: flex;
    width: 100%;
  }
  .btn-primary{
    @media (max-width: 600px) {
      width: 100%;
    }
  }
}

.sto-view-full-calendar {
  background: #FFD700;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  transition: all 0.2s ease;
}

.sto-view-full-calendar:hover {
  background: #FFC700;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

/* Event Details Section */
.sto-event-details-section {
  display: none;
}

.sto-selected-date-display {
  background: #1e3a8a;
  color: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  min-width: 100px;
  flex-shrink: 0;
}

.sto-selected-month {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.sto-selected-day {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.sto-event-details-content {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 120px;
}

.sto-no-events-message {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px dashed #ccc;
}

.sto-loading {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}

.sto-event-detail-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border-left: 4px solid #4A90E2;
}

.sto-event-detail-card:last-child {
  margin-bottom: 0;
}

.sto-event-detail-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.sto-event-detail-time {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sto-event-detail-time::before {
  content: '🕐';
  font-size: 12px;
}

.sto-event-detail-location {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sto-event-detail-location::before {
  content: '📍';
  font-size: 12px;
}

.sto-event-detail-description {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 12px;
}

.sto-event-detail-link {
  color: #4A90E2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  padding: 6px 12px;
  background: #e6f3ff;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sto-event-detail-link:hover {
  background: #d1e7ff;
  text-decoration: none;
}

/* No Events Message */
.sto-no-events {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px dashed #ccc;
}

/* Responsive Design */
@media (max-width: 991px) {
  .sto-events-container {
    flex-direction: column;
    gap: 24px;
  }
  
  .sto-events-title {
    font-size: 36px;
    line-height: 42px;
  }
  
  .sto-events-description {
    font-size: 1rem;
    line-height: 1.625em;
  }
  
  .sto-event-details-section {
    flex-direction: column;
    gap: 16px;
    max-width: 100%; /* Full width on mobile */
  }
  
  .sto-selected-date-display {
    min-width: auto;
    width: 100%;
  }
  
  .sto-selected-day {
    font-size: 28px;
  }
}
.sto-calendar-day-selected.selected-date:not(.sto-calendar-day-current) {
  background: #F2B202;
}