@use '../scss/base/colors'as colors;
/* STO Events Calendar Styles - Matching the Design */

/* .sto-events-wrapper {
  background-color: #F0F5FA;
  min-height: 100vh;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
} */

/* Header Section */
.sto-events-header {
    text-align: center;
    margin-bottom: 40px;
}

.sto-connect-btn {
    /* background: #902a8d;
  background: #902a8d;
  border: 1px solid #902a8d; */
    /* border-radius: 6px; */

    /* font-weight: 600;
  color: #fff; */
    /* cursor: pointer;
  transition: all 0.2s ease;
  padding: .75rem 1.125rem; */
    border: none;
    font-weight: 600;
    color: #475467;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    background-color: transparent;
    padding: .75rem 1.125rem;

}

/* .sto-connect-btn:hover {
  background: #fff;
  border-color: #902a8d;
  color: #902a8d;
} */

/* .sto-events-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px 0;
  line-height: 1.2;
} */

/* .sto-events-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
} */

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

/* Calendar Section */
.sto-calendar-section {
    flex: 1;
    max-width: 551px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sto-events-section {
    width: 100%;
    max-width: 721px;
    margin-left: auto;
}

.sto-calendar-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 511px;
    width: 100%;
}

.sto-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

body .sto-calendar-month-year {
    color: #003da6;
    text-transform: uppercase;
    margin-bottom: 0;
}

.sto-calendar-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: end;
}

.sto-calendar-nav-btn {
    background: transparent;
    border: none;
    color: #902A8D;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-weight: 700;
}

.sto-calendar-nav-btn:hover {
    background: #f0f8ff;
}

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

.sto-weekday {
    text-align: center;
    font-size: 20px;
    color: #475467;
    font-weight: 600;
    padding: 20px 20px;
    line-height: 28px;
    font-family: "Geist", sans-serif;
}

.sto-calendar-days {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    /* Ensure consistent height */
    border: 1px solid #475467;
}

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

.sto-calendar-day,
.sto-calendar-day-empty {
    min-height: 64px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #475467;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 20px 20px;
}

/* .sto-calendar-day-empty {
  min-height: 40px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: default;
} */
.sto-calendar-day:hover {
    background: #e6f3ff;
    border-color: #4A90E2;
}

.sto-calendar-day-number {
    font-size: 16px;
    font-weight: 400;
    color: #475467;
    line-height: 24px;
    font-family: "Geist", sans-serif;
}

.sto-calendar-day-has-events {
    position: relative;
}

.sto-calendar-day-has-events::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #902A8D;
    border-radius: 50%;
}

.sto-calendar-day-selected {
    background: #902A8D !important;
    border-color: transparent !important
}

.sto-calendar-day-selected span.sto-calendar-day-number {
    color: #fff;
}

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

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

/* Events Section */
/* .sto-events-section {
  flex: 1;
  max-width: 500px;
} */

.sto-events-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* .sto-event-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
} */

/* .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: 60px;
} */

/* .sto-event-month {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
} */

/* .sto-event-day {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1;
  margin-top: 2px;
} */

/* .sto-event-content {
  flex: 1;
} */

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

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

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

/* .sto-event-location {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
} */

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

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

/* .sto-event-location-link:hover {
  text-decoration: underline;
} */
/* Footer Section */
.sto-events-footer {
    text-align: center;
    margin-top: 40px;
}

.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 {
    width: 100%;
    /* Full width within calendar section */
    display: flex;
    gap: 0px;
    align-items: flex-start;
    height: 100%;
    min-height: 10.1875rem;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px
}

.sto-selected-date-display {
    background: #003da6;
    color: white;
    border-radius: 12px 0 0 12px;
    padding: 20px;
    text-align: center;
    min-width: 116px;
    flex-shrink: 0;
    height: 100%;
    max-height: 244px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    min-height: -webkit-fill-available;
}

.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: 221px;
    width: 100%;
}

.sto-no-events-message {
    text-align: center;

    /* font-style: italic; */
    padding: 20px;
    background: transparent;
    border-radius: 0px;
    font-size: 20px;
    font-weight: 400;
    color: #475467;
    line-height: 20px;
    font-family: "Geist", sans-serif;
}

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

.sto-event-detail-card {
    background: transparent;
    border-radius: 8px;
    padding: 1.5rem 2rem 1.5rem;
    margin-bottom: 16px;
    /* border-left: 4px solid #4A90E2; */
}

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

.sto-event-detail-title {
    text-align: left;
    color: #003da6 !important;
    width: 100%;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    box-sizing: border-box;
    text-transform: uppercase;
    margin-bottom: 0;
}

.sto-event-detail-title a {
    color: #003da6 !important;
    text-decoration: none;
}

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

.sto-event-detail-time::before {
    content: '';
    font-size: 12px;
    /* background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNsb2NrLWljb24gbHVjaWRlLWNsb2NrIj48cGF0aCBkPSJNMTIgNnY2bDQgMiIvPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PC9zdmc+); */
    background-size: 100%;
    background-repeat: no-repeat;
    height: 22px;
    width: 22px;
    /* filter: grayscale(1); */
    /* stroke: #475467; */
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM0NzU0NjciIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jbG9jay1pY29uIGx1Y2lkZS1jbG9jayI+PHBhdGggZD0iTTEyIDZ2Nmw0IDIiLz48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIvPjwvc3ZnPg==);
}

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

.sto-event-detail-location::before {
    content: '';
    font-size: 12px;
    /* background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNsb2NrLWljb24gbHVjaWRlLWNsb2NrIj48cGF0aCBkPSJNMTIgNnY2bDQgMiIvPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PC9zdmc+); */
    background-size: 100%;
    background-repeat: no-repeat;
    height: 22px;
    width: 22px;
    /* filter: grayscale(1); */
    /* stroke: #475467; */
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM0NzU0NjciIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1tYXAtcGluLWljb24gbHVjaWRlLW1hcC1waW4iPjxwYXRoIGQ9Ik0yMCAxMGMwIDQuOTkzLTUuNTM5IDEwLjE5My03LjM5OSAxMS43OTlhMSAxIDAgMCAxLTEuMjAyIDBDOS41MzkgMjAuMTkzIDQgMTQuOTkzIDQgMTBhOCA4IDAgMCAxIDE2IDAiLz48Y2lyY2xlIGN4PSIxMiIgY3k9IjEwIiByPSIzIi8+PC9zdmc+")
}

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

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

.sto-event-detail-link:hover {
    background: #902a8d;
    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: 768px) {
    /* .sto-events-container {
    flex-direction: column;
    gap: 20px;
  } */

    /* .sto-events-title {
    font-size: 2rem;
  } */
    .sto-event-details-content {
        max-height: 221px;
        min-height: auto;
    }

    .sto-calendar-card {
        padding: 24px;
        max-width: 100%;
    }

    .sto-weekday {
        font-size: 18px;
        line-height: 25.2px;
        padding: 12px 12px;

    }

    .sto-calendar-day,
    .sto-calendar-day-empty {
        padding: 12px 12px;
    }

    .sto-calendar-day-number {
        font-size: 16px;
        line-height: 24px;
    }

    .sto-events-description {
        font-size: 1rem;
    }

    .sto-event-details-section {
        flex-direction: column;
        gap: 0px;
        max-width: 100%;
        /* Full width on mobile */
    }

    .sto-selected-date-display {
        min-width: auto;
        width: 100%;
        border-radius: 12px 12px 0 0;
        min-height: 152px;
    }

    .sto-selected-day {
        font-size: 28px;
    }
}


.sto-calendar-month-year {
    color: #003DA6;
    font-weight: 700;
    margin-bottom: 0;

}

.sto-calendar-month-year {
    width: 100%;
    color: #003da6;
}


.sto-calendar-day-has-events {
    position: relative;
}

.sto-calendar-day.sto-calendar-day-has-events {
    border-bottom: 4px solid #902a8d;
}

.sto-calendar-day.sto-calendar-day-selected.sto-calendar-day-has-events:after {
    background: #fff;
}

.sto-selected-month,
.sto-selected-day {
    text-align: center;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0;
}

p.sto-events-description.event-desc.body-style-b1 {
    width: 100%;
    max-width: 60%;
    margin: 0 auto;
}

@media (max-width: 991px) {
    p.sto-events-description.event-desc.body-style-b1 {
        max-width: 100%;
    }

    .sto-calendar-section {
        max-width: 100% !important;

    }
}

.sto-event-detail-description p {
    margin: 0;
}

button.sto-calendar-nav-btn.sto-calendar-prev {
    transform: scaleX(-1);
    opacity: 0.8;
}

.sto-selected-month.h5 {
    font-weight: 600;
    text-transform: capitalize;
}

.sto-event-detail-time {
    color: #475467;
    font-weight: 500;
}

.sto-event-detail-location.body-style-b2 {
    color: #475467;
    position: relative !important;
    text-decoration: none !important;
    font-style: normal;
}


.sto-calendar-div:before {
    content: unset !important;
}

.sto-calendar-weekdays:before {
    content: unset;
}

.sto-calendar-days:before {
    content: unset;
}

/* .sto-calendar-day-empty {
  display: none;
} */


@media (max-width: 575px) {

    .sto-calendar-day,
    .sto-calendar-day-empty {
        padding: 12px 9px;
        min-height: 44px;
    }

    .sto-calendar-day-number {
        font-size: 16px;
    }
}


.sto-event-details-section.sto-no-events-data .sto-selected-date-display {
    min-height: 100%;
    padding: 8px;
    gap: 8px;
}

.sto-event-details-section.sto-no-events-data .sto-selected-date-display .sto-selected-month.h5,
.sto-event-details-section.sto-no-events-data .sto-selected-date-display div#sto-selected-day {
    margin-bottom: 0;
}

.sto-event-details-section.sto-no-events-data .sto-event-details-content {
    min-height: 100% !important;
}

.sto-event-details-section.sto-no-events-data {
    min-height: 100%;
    align-items: center;
}