/* OVERALL */
* {
    font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
::-webkit-scrollbar {
    display: none;
} */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    scroll-behavior: smooth;
}

body {
    margin: auto;
    color: #F6F5F2;
}

/* nav bar */
.event-hero {
    height: fit-content;
    position: relative;
}

/* calendar */
/* CALENDAR WRAPPER */
.calendar-image-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* CALENDAR */
.calendar {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 320px;
    max-width: 420px;
}

.calendar:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* CALENDAR HEADER */
.calendar-header {
    background: linear-gradient(135deg, #86707a 0%, #754e5e 100%);
    padding: 13px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.calendar-header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.month-year {
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.arrow-c {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    color: white;
}

.arrow-c:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.arrow-c:active {
    transform: scale(0.95);
}

/* WEEKDAYS */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 8px 24px 12px;
    background: white;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DATES */
.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 12px 24px 24px;
    background: white;
}

.calendar-dates>div {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.calendar-dates>div:empty {
    cursor: default;
    pointer-events: none;
}

.calendar-dates>div:not(:empty):not(.has-image)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #9c778d, #644b51);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.calendar-dates>div:not(:empty):hover::before {
    opacity: 0.1;
}

.calendar-dates>div:not(:empty):hover {
    transform: scale(1.1);
    color: #604652;
}

.calendar-dates>div:active {
    transform: scale(0.95);
}

/* HAS IMAGE DATES */
.calendar-dates .has-image {
    background: linear-gradient(135deg, rgba(114, 81, 99, 0.1), rgba(51, 38, 44, 0.1));
    border: 2px solid #77606b;
    font-weight: 700;
    color: #886977;
    position: relative;
}

.calendar-dates .has-image:hover {
    background: linear-gradient(135deg, rgba(127, 71, 133, 0.2), rgba(118, 75, 162, 0.2));
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(223, 166, 223, 0.3);
}

.calendar-dates .has-image img {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    bottom: -6px;
    right: -6px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* .calendar-dates .has-image:hover img {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
} */

/* IMAGE SECTION */
.image-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-section::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f7b731);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(15px);
}

.image-section:hover::before {
    opacity: 0.6;
}

.image-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.image-section img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
    border-radius: 24px;
}

.image-section:hover img {
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .calendar-image-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .calendar,
    .image-section {
        max-width: 100%;
        width: 100%;
    }

    .calendar-header {
        padding: 20px 24px;
    }

    .month-year {
        font-size: 18px;
    }

    .arrow-c {
        width: 36px;
        height: 36px;
    }

    .calendar-weekdays,
    .calendar-dates {
        gap: 6px;
        padding: 20px;
    }

    .calendar-dates>div {
        font-size: 13px;
    }

    .image-section img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .calendar-weekdays div {
        font-size: 11px;
    }

    .calendar-dates>div {
        font-size: 12px;
    }

    .calendar-dates .has-image img {
        width: 24px;
        height: 24px;
    }

    .image-section img {
        height: 250px;
    }

    .has-image img {
        position: absolute;
        top: 0px !important;
        left: 50%;

    }
}

/* Image container */
.has-image {
    position: relative;
}

.has-image img {
    position: absolute;
    top: 10px;
    /* left: 50%; */
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 20px;
    object-fit: cover;
}

.calendar-image-wrapper {
    display: flex;
    gap: 160px;
    padding: 20px;
    justify-content: space-around;
}

/*  Image Banner*/
.image-section {
    flex: 1;
    max-width: 800px;
    overflow: hidden;
    border-radius: 10px;
    height: 380px;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
    border-radius: 10px;
}

.image-section img {
    transition: opacity 0.3s ease-in-out;
}

/* hashtag */
.hashtag-dropdown select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #3C3C43;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.hashtag-dropdown {
    position: relative;
    display: inline-block;
    padding-left: 93px;
}

/* event detail */
.event-detail {
    padding: 20px 20px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: space-around;
    background-color: white;
}

.event-detail h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1e293b;
}

.event-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

.event-cover img {
    width: 85%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
}

.event-body {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #374151;
}

.event-right-detail {
    max-width: 50%;
}

/*  Events card */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4pc;
    padding: 30px;
}

.card {
    background: #ffffff;
    border-radius: 28px;
    overflow: visible;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
            #7c596755,
            #c08ea566,
            #9a74807a,
            #755f65);
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(20px);
}

.card:hover::before {
    opacity: 0.6;
}

.card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.image-banner {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.image-overlay {
    position: absolute;
    top: 16px;
    right: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #ff6b6b;
    z-index: 2;
    opacity: 1;
    transform: translateX(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) saturate(1.1);
}

.card:hover .event-img {
    transform: scale(1.12) rotate(2deg);
    filter: brightness(1) saturate(1.2);
}

.card-content {
    padding: 32px;
    position: relative;
}

.card-title {
    font-size: 38px;
    font-weight: 900;
    background: linear-gradient(135deg, #7c5967 0%, #c08ea5 50%, #755f65 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    position: relative;
    transition: all 0.3s ease;
}

.card:hover .card-title {
    letter-spacing: -0.5px;
}

.title-underline {
    height: 4px;
    background: linear-gradient(90deg, #7c5967 0%, #c08ea5 50%, #755f65 100%);
    border-radius: 2px;
    width: 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
}

.card:hover .title-underline {
    width: 80px;
}

.card-description {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.card:hover .card-description {
    opacity: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.hashtag {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hashtag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hashtag:hover::before {
    width: 300px;
    height: 300px;
}

.hashtag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.share-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    width: 52px;
    height: 52px;    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b4f58, #b48799);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn:hover::before {
    width: 100%;
    height: 100%;
}

.share-btn svg {
    width: 22px;
    height: 22px;
    fill: #666;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.share-btn:hover {
    transform: scale(1.15) rotate(90deg);
    border-color: #f7cdda;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.share-btn:hover svg {
    fill: white;
    transform: scale(1.1);
}

.share-btn:active {
    transform: scale(1.05) rotate(90deg);
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    top: 0;
    left: 0;
    border-radius: 28px;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    opacity: 0;
    animation: float 3s ease-in-out infinite;
}

.card:hover .particle {
    opacity: 0.6;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 50%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    left: 80%;
    animation-delay: 1s;
}

@keyframes float {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100%) scale(1);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 32px;
    }

    .card-content {
        padding: 6px 6px;
    }

    .image-banner {
        height: 220px;
    }

    .title-underline {
        margin-bottom: 0px !important;
    }

    .card-description {
        margin-bottom: 0px;
    }

    .card-footer {
        padding: 0px 5px 0px !important;
    }

}

/* other events */
.other-events-section {
    padding: 20px;
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 12px;
    height: fit-content;
}

.other-events-section h3 {
    font-size: 20px;
    color: #c1272d;
    margin-bottom: 20px;
}

.other-events-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-3px);
}

.event-card-content {
    padding: 10px;
}

.event-card-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #222;
}

.event-card-content .event-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.event-card-content .event-desc {
    font-size: 14px;
    color: #555;
}

/* gird image in event detail */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0px;
}


.grid-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.item1 {
    grid-column: span 2;
    grid-row: span 2;
}

.item2 {
    grid-column: span 2;
    grid-row: span 1;
}

.item3 {
    grid-column: span 1;
    grid-row: span 1;
}

.item4 {
    grid-column: span 1;
    grid-row: span 1;
}

.item5 {
    grid-column: span 2;
    grid-row: span 1;
}

.grid-item img:hover {
    transform: scale(1.03);
}

/* Lightmodal  */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-modal img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}


/* back arrow-c */
.fa-chevron-left.event-detail {
    color: black;
    font-size: 20px;
    padding: 0px;
}



.card-footer {
    padding: 0 32px 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.share-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 100;
    /* Make sure it's above everything */
}

/* NAVIGATION BUTTONS */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-nav-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.event-text h2 {
    color: #2751ad;
}

/* PAGINATION */
#paginationWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 3rem 0 1rem;
}

.page-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #604652, #856071);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 70, 82, 0.4);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

#pageInfo {
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}
.image-hover-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-hover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Dark overlay */
.image-hover-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Description text */
.image-hover-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.image-hover-wrapper:hover::after {
    opacity: 1;
}

.image-hover-wrapper:hover .image-hover-desc {
    opacity: 1;
    transform: translateY(0);
}

.image-hover-wrapper:hover img {
    transform: scale(1.05);
}
