/* Prevent text selection inside calendar modal */
#eventsCalendar,
#eventsCalendar * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Optional: also prevent selection on modal header */
#eventsCalendarModal .modal-header,
#eventsCalendarModal .modal-title {
    user-select: none;
}

a.view-all-link {
    color: #115AA6;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

a.view-all-link span {
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

a.view-all-link svg {
    transition: transform 0.25s ease;
    transform-origin: center;
}

a.view-all-link:hover span {
    color: #0071e3;           /* brighter, clearer hover color */
    transform: scale(1.12);   /* enlarge text visually */
}

a.view-all-link:hover svg {
    transform: translateX(4px);
}

#home-events-talks .event-desc {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* limit description */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 992px) {
    #home-events-talks .event-card {
        flex-direction: column;
        align-items: flex-start;
        height: auto; /* natural height on mobile */
    }
    #home-events-talks .event-image {
        flex: unset;             /* no fixed basis */
        width: 100%;             /* fill container width */
        height: 200px;           /* ensure visible height */
        max-height: none;
        border-radius: 16px;
        position: relative;
    }
    #home-events-talks .event-date {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    #home-events-talks .event-date .day {
        font-size: 2.5rem;
        margin-left: 0;
    }
    #home-events-talks .event-title {
        font-size: 1.15rem;
        -webkit-line-clamp: 3;
    }
    #home-events-talks .event-desc {
        -webkit-line-clamp: 5;
    }
    .myEventsSwiper .swiper-wrapper {
        align-items: stretch !important;
    }

    .myEventsSwiper .swiper-slide {
        height: auto !important;
        display: flex;
        align-items: stretch;
    }

    .myEventsSwiper .swiper-slide > a {
        display: flex;
        flex: 1;
    }

    #home-events-talks .event-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* helps even vertical spacing */
        height: 100%;
    }
}

@media (min-width: 992px) {
    .myEventsSwiper {
        height: 900px;
    }

    .myEventsSwiper .swiper-slide {
        height: calc((100% - 2 * 24px) / 3) !important; /* 3 slides per view */
        display: flex;
        align-items: stretch;
        box-sizing: border-box;
    }

    .myEventsSwiper .swiper-slide > a {
        flex: 1;
        display: flex;
    }

    #home-events-talks .event-details {
        gap: 0.25rem; /* small internal rhythm */
        padding-left: 1.5rem; /* more gap between text & image/date */
    }

    /* Title-meta relationship stays tight */
    #home-events-talks .event-title {
        margin-bottom: 0.3rem;
        font-size: 1.28rem; /* very slightly larger, not too big */
    }

    #home-events-talks .event-meta {
        margin-bottom: 0.5rem;
    }

    /* More breathing space in desc for reading */
    #home-events-talks .event-desc {
        margin-top: 0.5rem;
        line-height: 1.7;
    }

    /* Extra spacing between the date/image and text block */
    #home-events-talks .event-card {
        gap: 2rem; /* increase horizontal space between left & right halves */
    }
}

#home-bottom-banner {
    background-color: #F2F9FF;
    position: relative;
    overflow: hidden;
    padding: 160px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
#home-bottom-banner img{
    position: absolute;
    right: -50px;
    bottom: -150px;
    height: auto;
    width: 40%;
    max-width: 420px;
    object-fit: contain;
}

/* Responsive behavior for the NUS banner */
@media (max-width: 1220px) {
    #home-bottom-banner {
        padding: 120px 40px !important;
    }
    #home-bottom-banner h2 {
        font-size: 2.4rem !important;
    }
    #home-bottom-banner p {
        font-size: 1.1rem !important;
    }
    #home-bottom-banner img{
        bottom: -100px;
    }
}

@media (max-width: 768px) {
    #home-bottom-banner {
        padding: 80px 25px !important;
        text-align: center !important;
        flex-direction: column;
    }
    #home-bottom-banner img {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        width: 80% !important;
        max-width: 220px;
        margin-top: 30px !important;
    }
    #home-bottom-banner h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    #home-bottom-banner p {
        font-size: 1rem !important;
    }
}

/* Apply Now button hover animation */
@keyframes shakeAmplify {
    0%,100% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.05) rotate(-2deg); }
    50% { transform: scale(1.08) rotate(2deg); }
    75% { transform: scale(1.05) rotate(-1deg); }
}
/* === SKELETON LOADING === */
.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            100deg,
            #e4e7eb 40%,
            #f3f4f6 50%,
            #e4e7eb 60%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite linear;
    will-change: background-position;
    transform: translateZ(0);
}
@keyframes shimmer {
    0%   { background-position-x: 200%; }
    100% { background-position-x: -200%; }
}
@keyframes gentleShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* keyframes */
@keyframes slideOutRight {
    0%   {transform:rotate(0deg) translateX(0);}
    100% {transform:rotate(5deg) translateX(600px);}
}
@keyframes slideInRight {
    0%   {transform:rotate(10deg) translateX(600px) scale(.95);}
    100% {transform:rotate(4deg) translate(8px,50px) scale(.93);}
}

/* stronger shake */
@keyframes shake {
    0%,100% {transform:rotate(-3deg) translate(0,0);}
    20% {transform:rotate(2deg) translate(3px,-3px);}
    40% {transform:rotate(-2deg) translate(-3px,3px);}
    60% {transform:rotate(3deg) translate(2px,-2px);}
    80% {transform:rotate(-1deg) translate(-2px,2px);}
}

@keyframes hoverLift {
    0%   {transform:rotate(-3deg) translate(0,0) scale(1);}
    50%  {transform:rotate(0deg) translateY(-10px) scale(1.07);}
    100% {transform:rotate(0deg) translateY(-8px) scale(1.05);}
}


/**
 ************************ Home Page - Academic Webinar ************************
 */

.event-2-hero {
    position: relative;
    min-width: 220px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.event-2-title {
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #8ECCDD;
}

.event-2-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: white;
    opacity: 1;
}

.event-2-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    opacity: 0.9;
    max-width: 600px;
    color: white;
}

.event-2-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0;
    column-gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 500;
    color: white;
}

.event-2-note {
    font-size: 0.9rem;
    line-height: 1;
    margin: 0 0 2rem 0;
    opacity: 0.9;
    max-width: 600px;
    font-style: italic;
    color: white;
}

.event-2-highlight-box {
    background: rgba(102, 164, 181, 0.8);
    max-width: 400px;
    border-radius: 12px;
    font-size: 1.2rem;
}
.event-2-highlight-box img {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
}

.event-2-separator {
    opacity: 0.7;
    margin: 0 0.5rem;
}

.event-2-action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-2-action-buttons .btn {
    min-width: 200px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.event-2-countdown-timer {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.event-2-countdown-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    height: fit-content;
}

.event-2-countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: #115aa6;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.event-2-countdown-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #115aa6;
    letter-spacing: 0.1em;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .event-2-title {
        font-size: 2.1rem;
    }

    .event-2-highlight-box {
        max-width: 400px;
        font-size: 1rem;
    }
}
@media (max-width: 767px) {
    .event-2-title {
        font-size: 1.8rem;
    }
    .event-2-countdown-timer {
        display: none;
    }

    .event-2-highlight-box {
        max-width: none;
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .event-2-title {
        font-size: 1.5rem;
    }
    .event-2-hero-title {
        font-size: 2rem;
    }
}

/* Animation for countdown fade out */
.countdown-fadeout {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}
/**
 ************************ Home Page - Twin Events ************************
 */
.twin-events {
    color: #013D7C;
}
.twin-events .wrapper1,
.twin-events .wrapper2,
.twin-events .wrapper3,
.twin-events .wrapper4 {
    border: 1px solid #013D7C;
}
.twin-events .head-title {
    display: flex;
    align-items: center;
    min-height: 135px;
    font-size: 26px;
    font-weight: 700;
    color: #013D7C;
    border-bottom: 1px solid #013D7C;
}
.twin-events .img-wrapper {
    padding: 0;
    border-radius: 0;
    border: 1px solid #013D7C;
    box-shadow: 5px 5px 0 0 rgba(0, 0, 0, 0.25);
}
.twin-events .img-wrapper img {
    width: 100%;
    height: auto;
    max-height: 70%;
    object-fit: cover;
}
.twin-events .btn {
    padding: 10px 20px;
    color: #013D7C;
    border-radius: 50px;
    border: 1px solid #013D7C;
    box-shadow: 1px 1px 3px 3px rgba(0, 0, 0, 0.3), -1px -1px 3px 3px rgba(255, 255, 255, 0.3),
    inset -1px -1px 3px 3px rgba(0, 0, 0, 0.3), inset 1px 1px 3px 3px rgba(255, 255, 255, 0.3);
    transition: all 200ms ease-in-out;
}
.twin-events .btn:hover {
    padding: 11px 20px 9px;
    box-shadow: 1px 1px 3px 3px rgba(255, 255, 255, 0.3), -1px -1px 3px 3px rgba(0, 0, 0, 0.3),
    inset -1px -1px 3px 3px rgba(255, 255, 255, 0.3), inset 1px 1px 3px 3px rgba(0, 0, 0, 0.3);
}
.twin-events .subwrap {
    border-right: 0;
}
.twin-events .subhead-title {
    display: flex;
    align-items: center;
    font-size: 30px;
    font-weight: 900;
    color: #013D7C;
}
.twin-events .cd-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: 0 7px 5px;
    padding: 5px;
    width: 60px;
    height: 60px;
    text-align: center;
    border: 1px solid #013D7C;
}
.twin-events .cd-item .val {
    font-size: 20px;
}
.twin-events .cd-item .label {
    font-size: 12px;
}
.twin-events .te-button {
    margin-bottom: 2rem;
}
.twin-events .btn-employer,
.twin-events .btn-twin {
    margin-right: 3rem;
    z-index: 40;
}
@media screen and (min-width: 1200px) {
    .twin-events .wrapper1,
    .twin-events .wrapper2 {
        border-bottom: 0;
    }

    .twin-events .wrapper1,
    .twin-events .wrapper3 {
        border-right: 0;
    }

    .twin-events .te-button {
        margin-bottom: -35px;
    }

    .twin-events .btn-twin {
        margin-right: -100px;
    }

    .twin-events .btn-employer {
        margin-right: 14%;
    }
}
@media screen and (min-width: 768px) {
    .twin-events .subwrap {
        border-right: 1px solid #013D7C;
    }
}
