/* Modal Z-Index Management */
:root {
    --z-index-base: 1000;
    --z-index-modal: 2000;
    --z-index-modal-backdrop: 1999;
    --z-index-share-modal: 2100;
    --z-index-share-backdrop: 2099;
    --z-index-toast: 3000;
    --z-index-tooltip: 3100;
}

/* Event Calendar Styles */

/* Main Event Calendar Page */
.eventCalendarPage {
    background: var(--black);
    min-height: 100vh;
}

/* Hero Section */
.eventCalendarHero {
    background: var(--black);
    padding: 120px 0 80px 0;
    text-align: center;
}

.eventHeroWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.go-HighlightHeading {
    font-size: 60px;
    line-height: 120%;
    color: var(--white);
    font-family: 'go-regular';
    margin: 0;
}

.fr-HeadingItalic {
    font-family: "Fraunces", serif;
    font-weight: 350;
    font-style: italic;
    color: var(--yellow);
}

.heroParaTech {
    font-size: 18px;
    line-height: 150%;
    color: var(--grey5);
    font-family: 'go-regular';
    max-width: 600px;
    margin: 0;
}

/* Calendar Controls */
.calendarControls {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.calendarNavBtn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--grey18);
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendarNavBtn:hover {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

.currentMonthTitle {
    font-size: 28px;
    font-family: 'go-medium';
    color: var(--white);
    margin: 0;
    min-width: 200px;
}

/* Filter Controls */
.filterControls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filterSelect {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--grey18);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--white);
    font-family: 'go-regular';
    font-size: 14px;
    min-width: 150px;
    cursor: pointer;
}

.filterSelect:focus {
    outline: none;
    border-color: var(--yellow);
}

.filterSelect option {
    background: var(--black);
    color: var(--white);
}

/* Calendar Section */
.calendarSection {
    padding: 60px 0 120px 0;
}

/* Loading States */
.loadingWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 0;
}

.loadingSpinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loadingWrapper p {
    color: var(--grey5);
    font-family: 'go-regular';
    font-size: 16px;
}

/* Error State */
.errorWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 0;
}

.errorMessage {
    color: var(--warning);
    font-family: 'go-regular';
    font-size: 16px;
}

.retryButton {
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: 'go-medium';
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retryButton:hover {
    background: var(--darkYellow);
}

/* No Events State */
.noEventsWrapper {
    text-align: center;
    padding: 80px 0;
}

.noEventsWrapper h3 {
    color: var(--white);
    font-family: 'go-medium';
    font-size: 24px;
    margin: 0 0 10px 0;
}

.noEventsWrapper p {
    color: var(--grey5);
    font-family: 'go-regular';
    font-size: 16px;
    margin: 0;
}

/* Calendar Grid */
.calendarWrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    overflow-x: auto;
}

.calendarHeader {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 280px;
}

.dayHeader {
    padding: 15px 5px;
    text-align: center;
    font-family: 'go-medium';
    font-size: 14px;
    color: var(--grey5);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-width: 40px;
}

.calendarDays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
    min-width: 280px;
}

.calendarDay {
    min-height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 8px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendarDay:hover {
    background: rgba(255, 255, 255, 0.08);
}

.calendarDay.otherMonth {
    opacity: 0.3;
}

.calendarDay.today {
    background: rgba(250, 209, 51, 0.1);
    border: 1px solid var(--yellow);
}

.dayNumber {
    font-family: 'go-medium';
    font-size: 14px;
    color: var(--white);
    margin-bottom: 6px;
    flex-shrink: 0;
    line-height: 1;
}

.calendarDay.otherMonth .dayNumber {
    color: var(--grey6);
}

.eventIndicator {
    width: calc(100% - 2px);
    height: 18px;
    background: var(--yellow);
    border-radius: 3px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-size: 9px;
    font-family: 'go-medium';
    color: var(--black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.eventIndicator:hover {
    background: var(--darkYellow);
    transform: translateY(-1px);
}

.eventIndicator.virtualEvent {
    background: #39B6D8;
    color: var(--white);
}

.eventIndicator.completedEvent {
    background: var(--grey6);
    color: var(--white);
}

.eventsContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    min-height: 0;
}

.moreEvents {
    font-size: 8px;
    color: var(--grey5);
    font-family: 'go-regular';
    margin-top: 2px;
    flex-shrink: 0;
    text-align: center;
    padding: 1px 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    line-height: 1.2;
}

/* Event Modal */
.eventModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    z-index: var(--z-index-modal);
    overflow-y: auto;
}

.eventModal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eventModalContent {
    background: var(--black2);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.modalHeader {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.closeModalBtn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.closeModalBtn:hover {
    background: var(--warning);
}

.modalBody {
    padding: 0;
}

/* Event Banner */
.eventBanner {
    width: 100%;
    height: 200px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
}

.eventBanner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bannerPlaceholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--grey3), var(--grey6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey5);
}

/* Event Info */
.eventInfo {
    padding: 30px;
}

.statusBadge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'go-medium';
    margin-bottom: 15px;
    text-transform: uppercase;
}

.statusBadge.upcoming {
    background: rgba(250, 209, 51, 0.2);
    color: var(--yellow);
    border: 1px solid var(--yellow);
}

.statusBadge.today {
    background: rgba(28, 124, 84, 0.2);
    color: var(--darkGreen);
    border: 1px solid var(--darkGreen);
}

.statusBadge.tomorrow {
    background: rgba(57, 182, 216, 0.2);
    color: var(--darkBlue);
    border: 1px solid var(--darkBlue);
}

.statusBadge.yesterday {
    background: rgba(227, 131, 48, 0.2);
    color: var(--darkOrange);
    border: 1px solid var(--darkOrange);
}

.statusBadge.completed {
    background: rgba(153, 153, 153, 0.2);
    color: var(--grey6);
    border: 1px solid var(--grey6);
}

.eventTitle {
    font-size: 28px;
    font-family: 'go-medium';
    color: var(--white);
    line-height: 130%;
    margin: 0 0 25px 0;
}

/* Event Details */
.eventDetails {
    margin-bottom: 30px;
}

.detailRow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.detailIcon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.detailLabel {
    font-family: 'go-medium';
    color: var(--grey5);
    font-size: 14px;
    min-width: 100px;
}

.detailValue {
    font-family: 'go-regular';
    color: var(--white);
    font-size: 14px;
    flex: 1;
}

/* Event Description */
.eventDescription {
    margin-bottom: 30px;
}

.eventDescription h3 {
    font-family: 'go-medium';
    color: var(--white);
    font-size: 18px;
    margin: 0 0 15px 0;
}

.eventDescription p {
    font-family: 'go-regular';
    color: var(--grey5);
    font-size: 14px;
    line-height: 160%;
    margin: 0;
}

/* Event Coordinators */
.eventCoordinators {
    margin-bottom: 30px;
}

.eventCoordinators h3 {
    font-family: 'go-medium';
    color: var(--white);
    font-size: 18px;
    margin: 0 0 15px 0;
}

.coordinatorsList {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.coordinator {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coordinatorName {
    font-family: 'go-medium';
    color: var(--white);
    font-size: 14px;
}

.coordinatorPhone {
    font-family: 'go-regular';
    color: var(--yellow);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.coordinatorPhone:hover {
    color: var(--darkYellow);
}

/* Action Buttons */
.eventActions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.actionBtn {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'go-medium';
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex: 1;
    min-width: 120px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.primaryBtn {
    background: var(--yellow);
    color: var(--black);
}

.primaryBtn:hover {
    background: var(--darkYellow);
}

.secondaryBtn {
    background: #25D366;
    color: var(--white);
}

.secondaryBtn:hover {
    background: #128C7E;
}

.outlineBtn {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--grey18);
}

.outlineBtn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Share Modal */
.shareModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-index-share-modal);
}

.shareModal.active {
    display: flex;
}

.shareModalContent {
    background: var(--black2);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shareHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.shareHeader h3 {
    font-family: 'go-medium';
    color: var(--white);
    font-size: 20px;
    margin: 0;
}

.shareOptions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.shareOption {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'go-regular';
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.shareOption:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Text rendering optimizations */
.go-HighlightHeading,
.currentMonthTitle,
.eventTitle {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and Base Responsive Styles */
.container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
}

/* Responsive Design */

/* Large Desktop (1600px+) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .go-HighlightHeading {
        font-size: 62px;
    }
    
    .heroParaTech {
        font-size: 20px;
        max-width: 700px;
    }
    
    .calendarWrapper {
        padding: 40px;
    }
    
    .calendarDay {
        min-height: 140px;
        padding: 15px;
    }
}

/* Ultra-wide screens (2000px+) */
@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
        padding: 0 60px;
    }
    
    .go-HighlightHeading {
        font-size: 60px;
    }
    
    .heroParaTech {
        font-size: 22px;
        max-width: 800px;
    }
    
    .calendarWrapper {
        padding: 50px;
    }
    
    .calendarDay {
        min-height: 160px;
        padding: 20px;
    }
    
    .eventModalContent {
        max-width: 700px;
    }
}

/* Desktop (1024px - 1599px) */
@media (min-width: 1024px) and (max-width: 1599px) {
    .container {
        max-width: 1100px;
        padding: 0 30px;
    }
    
    .go-HighlightHeading {
        font-size: 60px;
    }
    
    .heroParaTech {
        font-size: 18px;
    }
    
    .calendarWrapper {
        padding: 35px;
    }
    
    .calendarDay {
        min-height: 130px;
        padding: 12px;
    }
    
    .eventTitle {
        font-size: 26px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 100%;
        padding: 0 25px;
    }
    
    .eventCalendarHero {
        padding: 100px 0 70px 0;
    }
    
    .go-HighlightHeading {
        font-size: 50px;
    }
    
    .heroParaTech {
        font-size: 17px;
        max-width: 550px;
    }
    
    .calendarControls {
        gap: 25px;
    }
    
    .currentMonthTitle {
        font-size: 24px;
        min-width: 180px;
    }
    
    .filterControls {
        gap: 18px;
    }
    
    .filterSelect {
        min-width: 140px;
        padding: 10px 14px;
    }
    
    .calendarWrapper {
        padding: 20px;
        overflow-x: hidden;
    }
    
    .calendarHeader {
        gap: 1px;
        min-width: auto;
    }
    
    .calendarDays {
        gap: 1px;
        min-width: auto;
    }
    
    .calendarDay {
        min-height: 100px;
        padding: 6px;
        aspect-ratio: 1;
    }
    
    .dayHeader {
        padding: 12px 3px;
        font-size: 13px;
        min-width: auto;
    }
    
    .dayNumber {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .eventIndicator {
        height: 16px;
        font-size: 9px;
        padding: 0 3px;
        margin-bottom: 1px;
    }
    
    .moreEvents {
        font-size: 7px;
        padding: 1px;
    }
    
    .eventModalContent {
        max-width: 550px;
        margin: 15px;
        max-height: 88vh;
    }
    
    .eventInfo {
        padding: 25px;
    }
    
    .eventTitle {
        font-size: 24px;
    }
    
    .detailRow {
        margin-bottom: 12px;
    }
    
    .actionBtn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .shareOptions {
        gap: 12px;
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .eventCalendarHero {
        padding: 90px 0 65px 0;
    }
    
    .go-HighlightHeading {
        font-size: 64px;
    }

    .heroParaTech {
        font-size: 16px;
        max-width: 480px;
    }

    .calendarControls {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .currentMonthTitle {
        font-size: 20px;
        min-width: 150px;
    }

    .filterControls {
        gap: 15px;
        width: 100%;
        justify-content: center;
    }

    .filterSelect {
        min-width: 140px;
        font-size: 13px;
        flex: 1;
        max-width: 180px;
    }

    .calendarWrapper {
        padding: 15px;
        overflow-x: hidden;
    }
    
    .calendarHeader {
        gap: 1px;
        min-width: auto;
    }
    
    .calendarDays {
        gap: 1px;
        min-width: auto;
    }

    .calendarDay {
        min-height: 80px;
        padding: 4px;
        aspect-ratio: 1;
    }
    
    .dayHeader {
        padding: 10px 2px;
        font-size: 12px;
        min-width: auto;
    }

    .dayNumber {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .eventIndicator {
        height: 14px;
        font-size: 8px;
        padding: 0 2px;
        margin-bottom: 1px;
    }
    
    .moreEvents {
        font-size: 6px;
        padding: 1px;
    }

    .eventModalContent {
        margin: 10px;
        max-height: 85vh;
        max-width: 95%;
    }

    .eventInfo {
        padding: 20px;
    }

    .eventTitle {
        font-size: 22px;
    }

    .eventActions {
        flex-direction: column;
        gap: 12px;
    }

    .coordinator {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .shareOptions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Mobile Landscape (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .eventCalendarHero {
        padding: 80px 0 50px 0;
    }

    .go-HighlightHeading {
        font-size: 48px;
        line-height: 110%;
    }
    
    .heroParaTech {
        font-size: 15px;
        max-width: 350px;
    }

    .calendarControls {
        flex-direction: column;
        gap: 15px;
    }

    .currentMonthTitle {
        font-size: 18px;
        order: -1;
    }
    
    .calendarNavBtn {
        width: 44px;
        height: 44px;
    }

    .filterControls {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .filterSelect {
        width: 100%;
        min-width: auto;
        padding: 12px;
    }

    .calendarWrapper {
        padding: 10px;
        overflow-x: hidden;
    }
    
    .calendarHeader {
        gap: 1px;
        margin-bottom: 10px;
        min-width: auto;
    }
    
    .calendarDays {
        gap: 1px;
        min-width: auto;
    }
    
    .calendarDay {
        min-height: 70px;
        padding: 3px;
        aspect-ratio: 1;
    }
    
    .dayHeader {
        padding: 8px 1px;
        font-size: 11px;
        min-width: auto;
    }

    .dayNumber {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .eventIndicator {
        height: 12px;
        font-size: 7px;
        padding: 0 1px;
        margin-bottom: 1px;
    }
    
    .moreEvents {
        font-size: 6px;
        padding: 0px 1px;
    }

    .eventModalContent {
        margin: 5px;
        max-height: 95vh;
        width: calc(100% - 10px);
    }
    
    .modalHeader {
        top: 15px;
        right: 15px;
    }
    
    .closeModalBtn {
        width: 36px;
        height: 36px;
    }

    .eventInfo {
        padding: 15px;
    }
    
    .eventTitle {
        font-size: 20px;
        line-height: 125%;
    }
    
    .statusBadge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .detailRow {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 12px;
    }

    .detailLabel {
        min-width: auto;
        font-size: 13px;
    }
    
    .detailValue {
        font-size: 13px;
    }
    
    .detailIcon {
        font-size: 16px;
    }
    
    .eventDescription h3 {
        font-size: 16px;
    }
    
    .eventDescription p {
        font-size: 13px;
    }
    
    .eventCoordinators h3 {
        font-size: 16px;
    }
    
    .coordinatorName,
    .coordinatorPhone {
        font-size: 13px;
    }
    
    .actionBtn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .shareModalContent {
        padding: 20px;
        margin: 15px;
    }
}

/* Very small screens (below 320px) */
@media (max-width: 319px) {
    .container {
        padding: 0 6px;
    }
    
    .eventCalendarHero {
        padding: 60px 0 30px 0;
    }
    
    .go-HighlightHeading {
        font-size: 28px;
        line-height: 100%;
    }
    
    .heroParaTech {
        font-size: 13px;
        max-width: 280px;
    }
    
    .calendarControls {
        flex-direction: column;
        gap: 10px;
    }
    
    .currentMonthTitle {
        font-size: 14px;
        order: -1;
    }
    
    .calendarNavBtn {
        width: 36px;
        height: 36px;
    }
    
    .calendarNavBtn svg {
        width: 14px;
        height: 14px;
    }
    
    .filterControls {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .filterSelect {
        padding: 8px;
        font-size: 11px;
        width: 100%;
        min-width: auto;
    }
    
    .calendarWrapper {
        padding: 6px;
        overflow-x: hidden;
    }
    
    .calendarHeader {
        gap: 1px;
        margin-bottom: 6px;
        min-width: auto;
    }
    
    .calendarDays {
        gap: 1px;
        min-width: auto;
    }
    
    .dayHeader {
        padding: 6px 1px;
        font-size: 9px;
        min-width: auto;
    }
    
    .calendarDay {
        min-height: 50px;
        padding: 2px;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
    }
    
    .dayNumber {
        font-size: 9px;
        margin-bottom: 2px;
        flex-shrink: 0;
    }
    
    .eventIndicator {
        height: 10px;
        font-size: 6px;
        padding: 0 1px;
        margin-bottom: 1px;
        flex-shrink: 0;
    }
    
    .moreEvents {
        font-size: 6px;
        flex-shrink: 0;
    }
    
    .eventTitle {
        font-size: 16px;
    }
    
    .statusBadge {
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .detailIcon {
        width: 16px;
        font-size: 12px;
    }
    
    .detailLabel,
    .detailValue {
        font-size: 11px;
    }
    
    .eventDescription h3,
    .eventCoordinators h3 {
        font-size: 13px;
    }
    
    .eventDescription p {
        font-size: 11px;
    }
    
    .coordinatorName,
    .coordinatorPhone {
        font-size: 11px;
    }
    
    .actionBtn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Mobile Portrait (320px - 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .eventCalendarHero {
        padding: 70px 0 40px 0;
    }

    .go-HighlightHeading {
        font-size: 36px;
        line-height: 105%;
    }
    
    .heroParaTech {
        font-size: 14px;
        max-width: 300px;
        line-height: 140%;
    }
    
    .eventHeroWrapper {
        gap: 20px;
    }

    .calendarControls {
        gap: 12px;
        flex-direction: column;
    }

    .currentMonthTitle {
        font-size: 16px;
        order: -1;
    }
    
    .calendarNavBtn {
        width: 40px;
        height: 40px;
    }
    
    .calendarNavBtn svg {
        width: 16px;
        height: 16px;
    }

    .filterControls {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .filterSelect {
        padding: 10px;
        font-size: 12px;
        width: 100%;
        min-width: auto;
    }

    .calendarWrapper {
        padding: 8px;
        overflow-x: hidden;
    }
    
    .calendarHeader {
        margin-bottom: 8px;
        gap: 1px;
        min-width: auto;
    }
    
    .calendarDays {
        gap: 1px;
        min-width: auto;
    }
    
    .dayHeader {
        padding: 8px 1px;
        font-size: 10px;
        min-width: auto;
    }
    
    .calendarDay {
        min-height: 60px;
        padding: 2px;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
    }

    .dayNumber {
        font-size: 10px;
        margin-bottom: 2px;
        flex-shrink: 0;
    }

    .eventIndicator {
        height: 10px;
        font-size: 6px;
        padding: 0 1px;
        margin-bottom: 1px;
        flex-shrink: 0;
    }
    
    .moreEvents {
        font-size: 5px;
        margin-top: 1px;
        flex-shrink: 0;
        padding: 0px 1px;
    }
    
    .eventsContainer {
        flex: 1;
        min-height: 0;
        gap: 1px;
    }

    .eventModalContent {
        margin: 0;
        max-height: 100vh;
        width: 100%;
        border-radius: 0;
    }
    
    .eventBanner {
        height: 150px;
        border-radius: 0;
    }
    
    .modalHeader {
        top: 10px;
        right: 10px;
    }
    
    .closeModalBtn {
        width: 32px;
        height: 32px;
    }
    
    .closeModalBtn svg {
        width: 18px;
        height: 18px;
    }

    .eventInfo {
        padding: 12px;
    }
    
    .eventTitle {
        font-size: 18px;
        line-height: 120%;
        margin-bottom: 15px;
    }
    
    .statusBadge {
        padding: 3px 8px;
        font-size: 10px;
        margin-bottom: 12px;
    }

    .detailRow {
        margin-bottom: 10px;
        gap: 3px;
        flex-direction: column;
        align-items: flex-start;
    }

    .detailLabel {
        font-size: 12px;
        min-width: auto;
    }
    
    .detailValue {
        font-size: 12px;
    }
    
    .detailIcon {
        font-size: 14px;
        width: 20px;
    }
    
    .eventDescription {
        margin-bottom: 20px;
    }
    
    .eventDescription h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .eventDescription p {
        font-size: 12px;
        line-height: 150%;
    }
    
    .eventCoordinators {
        margin-bottom: 20px;
    }
    
    .eventCoordinators h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .coordinator {
        padding: 10px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .coordinatorName,
    .coordinatorPhone {
        font-size: 12px;
    }
    
    .eventActions {
        gap: 10px;
        flex-direction: column;
    }
    
    .actionBtn {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
        flex: none;
    }
    
    .shareModalContent {
        padding: 15px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .shareHeader h3 {
        font-size: 16px;
    }
    
    .shareOptions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .shareOption {
        padding: 10px;
        font-size: 12px;
    }
    
    .shareOption svg {
        width: 16px;
        height: 16px;
    }
    
    /* Loading and error states */
    .loadingWrapper {
        padding: 60px 0;
    }
    
    .loadingWrapper p {
        font-size: 14px;
    }
    
    .loadingSpinner {
        width: 40px;
        height: 40px;
    }
    
    .errorWrapper {
        padding: 60px 0;
    }
    
    .errorMessage {
        font-size: 14px;
    }
    
    .retryButton {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .noEventsWrapper {
        padding: 60px 0;
    }
    
    .noEventsWrapper h3 {
        font-size: 18px;
    }
    
    .noEventsWrapper p {
        font-size: 14px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .eventIndicator {
        border: 0.5px solid rgba(0, 0, 0, 0.1);
    }
    
    .calendarDay {
        border: 0.5px solid rgba(255, 255, 255, 0.05);
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .eventCalendarHero {
        padding: 40px 0 30px 0;
    }
    
    .go-HighlightHeading {
        font-size: 40px;
    }
    
    .heroParaTech {
        font-size: 14px;
    }
    
    .eventHeroWrapper {
        gap: 15px;
    }
    
    .calendarControls {
        gap: 10px;
    }
    
    .filterControls {
        gap: 10px;
    }
    
    .eventModalContent {
        max-height: 95vh;
        overflow-y: auto;
    }
}

/* Print styles */
@media print {
    .eventModal,
    .shareModal,
    .calendarControls,
    .filterControls,
    .eventActions {
        display: none !important;
    }
    
    .eventCalendarPage {
        background: white !important;
    }
    
    .calendarWrapper {
        background: white !important;
        border: 1px solid #ccc !important;
    }
    
    .go-HighlightHeading,
    .heroParaTech,
    .dayHeader,
    .dayNumber {
        color: black !important;
    }
}

/* Touch and Interaction Improvements */
.calendarNavBtn,
.filterSelect,
.actionBtn,
.shareOption,
.closeModalBtn,
.retryButton {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    .calendarNavBtn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .actionBtn {
        min-height: 44px;
    }
    
    .closeModalBtn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .shareOption {
        min-height: 44px;
    }
    
    .eventIndicator {
        min-height: 16px;
    }
}

/* Smooth scrolling for modal content */
.eventModalContent {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Focus states for accessibility */
.calendarNavBtn:focus,
.filterSelect:focus,
.actionBtn:focus,
.shareOption:focus,
.closeModalBtn:focus {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

/* Better hover states for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .calendarDay:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(250, 209, 51, 0.2);
    }
    
    .eventIndicator:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .calendarDay,
    .eventIndicator,
    .actionBtn,
    .calendarNavBtn {
        transition: none;
    }
    
    .loadingSpinner {
        animation: none;
    }
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Better text contrast on small screens */
@media (max-width: 480px) {
    .heroParaTech {
        color: var(--grey4);
    }
    
    .detailValue {
        color: var(--grey4);
    }
    
    .eventDescription p {
        color: var(--grey4);
    }
}

/* Enhanced spacing for better readability */
@media (max-width: 375px) {
    .eventDetails {
        margin-bottom: 25px;
    }
    
    .eventDescription {
        margin-bottom: 25px;
    }
    
    .eventCoordinators {
        margin-bottom: 25px;
    }
    
    .coordinatorsList {
        gap: 12px;
    }
}

/* Improved button spacing on mobile */
@media (max-width: 480px) {
    .eventActions {
        margin-top: 25px;
        gap: 12px;
    }
}

/* Loading state improvements for mobile */
@media (max-width: 768px) {
    .loadingSpinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loadingWrapper p {
        font-size: 15px;
    }
}

/* Error message improvements */
@media (max-width: 480px) {
    .errorWrapper {
        padding: 50px 0;
    }
    
    .errorMessage {
        font-size: 15px;
        text-align: center;
        line-height: 140%;
    }
    
    .retryButton {
        margin-top: 5px;
    }
}

/* Additional Mobile Calendar Improvements */
@media (max-width: 480px) {
    /* Ensure calendar takes full width on mobile */
    .calendarSection {
        padding: 40px 0 80px 0;
    }
    
    /* Make sure calendar grid is always full width */
    .calendarWrapper {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .calendarHeader,
    .calendarDays {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure each calendar day takes equal space */
    .calendarDay {
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    /* Better event indicator sizing for mobile */
    .eventIndicator {
        width: calc(100% - 2px);
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 12px;
        flex-shrink: 0;
    }
    
    /* Improve day header sizing */
    .dayHeader {
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Better touch targets */
    .calendarDay {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(250, 209, 51, 0.2);
    }
    
    .calendarDay:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }
    
    /* Events container for mobile */
    .eventsContainer {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1px;
        overflow: hidden;
        min-height: 0;
    }
    
    /* Day number styling for mobile */
    .dayNumber {
        flex-shrink: 0;
        line-height: 1;
    }
    
    /* More events indicator for mobile */
    .moreEvents {
        flex-shrink: 0;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        line-height: 1.1;
        padding: 1px 2px;
    }
}

/* Extra small mobile optimizations */
@media (max-width: 320px) {
    .calendarSection {
        padding: 30px 0 60px 0;
    }
    
    .calendarWrapper {
        border-radius: 12px;
    }
    
    .calendarDay {
        border-radius: 6px;
    }
    
    .dayHeader {
        border-radius: 6px;
        padding: 6px 1px;
    }
    
    /* Ensure content fits in small calendar cells */
    .eventIndicator {
        font-weight: 500;
        letter-spacing: -0.2px;
    }
}

/* Landscape phone improvements */
@media (max-height: 500px) and (max-width: 768px) and (orientation: landscape) {
    .calendarSection {
        padding: 20px 0 40px 0;
    }
    
    .calendarWrapper {
        padding: 15px;
    }
    
    .calendarDay {
        min-height: 60px;
        padding: 4px;
    }
    
    .eventIndicator {
        height: 12px;
        font-size: 8px;
    }
}

/* Day Events Modal (for multiple events on same day) */
.dayEventsModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.dayEventsContent {
    background: var(--black2);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dayEventsHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dayEventsHeader h3 {
    font-family: 'go-medium';
    color: var(--white);
    font-size: 20px;
    margin: 0;
}

.closeDayEvents {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.closeDayEvents:hover {
    background: var(--warning);
}

.dayEventsList {
    padding: 0;
}

.dayEventItem {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dayEventItem:last-child {
    border-bottom: none;
}

.dayEventItem:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dayEventItem h4 {
    font-family: 'go-medium';
    color: var(--white);
    font-size: 16px;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.dayEventItem p {
    font-family: 'go-regular';
    color: var(--grey5);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Mobile styles for day events modal */
@media (max-width: 480px) {
    .dayEventsModal {
        padding: 10px !important;
    }
    
    .dayEventsContent {
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .dayEventsHeader {
        padding: 15px;
    }
    
    .dayEventsHeader h3 {
        font-size: 18px;
    }
    
    .closeDayEvents {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .dayEventItem {
        padding: 12px 15px;
    }
    
    .dayEventItem h4 {
        font-size: 15px;
    }
    
    .dayEventItem p {
        font-size: 13px;
    }
}
